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
nodeToken > groupGraphPattern > GroupGraphPattern()
@Override public R visit(OptionalGraphPattern n, A argu) { R _ret = null; n.nodeToken.accept(this, argu); n.groupGraphPattern.accept(this, argu); return _ret; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public R visit(GraphGraphPattern n, A argu) {\n R _ret = null;\n n.nodeToken.accept(this, argu);\n n.varOrIRIref.accept(this, argu);\n n.groupGraphPattern.accept(this, argu);\n return _ret;\n }", "private GraphPattern translateToGP(){\r\n\r\n\t\t//Generate the graph pattern object\r\n\t\tGraphPattern gp = new GraphPattern();\r\n\r\n\r\n\t\t//For each Node object, create an associated MyNode object\r\n\t\tint nodeCount = 0;\r\n\t\tfor (Node n : allNodes){\r\n\t\t\tMyNode myNode = new MyNode(nodeCount, \"PERSON\");\r\n\t\t\tnodesMap.put(n, myNode);\r\n\t\t\tgp.addNode(myNode);\r\n\r\n\t\t\tnodeCount++;\r\n\t\t}\r\n\r\n\t\t//For k random MyNodes add the id as an attribute/property.\r\n\t\t//This id is used for cypher queries.\r\n\t\t//This process uses simple random sampling\r\n\t\tif (rooted > allNodes.size()){\r\n\t\t\trooted = allNodes.size();\r\n\t\t}\r\n\r\n\t\tList<Node> allNodesClone = new ArrayList<Node>();\r\n\t\tallNodesClone.addAll(allNodes);\r\n\r\n\t\tfor (int i = 0; i < rooted; i++){\r\n\t\t\t//Pick a random node from allNodes and get it's corresponding MyNode\r\n\t\t\tint idx = random.nextInt(allNodesClone.size());\r\n\t\t\tNode node = allNodesClone.get(idx);\r\n\t\t\tMyNode myNode = nodesMap.get(node);\r\n\r\n\t\t\t//Add the property to myNode\r\n\t\t\ttry (Transaction tx = graphDb.beginTx()){\r\n\t\t\t\tmyNode.addAttribute(\"id\", node.getProperty(\"id\")+\"\");\r\n\t\t\t\ttx.success();\r\n\t\t\t}\r\n\t\t\t//Remove the node from allNodesClone list.\r\n\t\t\tallNodesClone.remove(idx);\r\n\t\t}\r\n\r\n\t\t//Process the relationships\r\n\t\tint relCount = 0;\r\n\t\tString relPrefix = \"rel\";\r\n\r\n\t\tfor (Relationship r : rels){\r\n\r\n\t\t\tMyNode source = null, target = null;\r\n\t\t\tRelType type = null;\r\n\r\n\t\t\t//For each relationship in rels, create a corresponding relationship in gp.\r\n\t\t\ttry (Transaction tx = graphDb.beginTx()){\r\n\t\t\t\tsource = nodesMap.get(r.getStartNode());\r\n\t\t\t\ttarget = nodesMap.get(r.getEndNode());\r\n\t\t\t\ttype = GPUtil.translateRelType(r.getType());\r\n\t\t\t\ttx.success();\r\n\t\t\t}\r\n\r\n\t\t\tMyRelationship rel = new MyRelationship(source, target, type, relCount);\r\n\t\t\trelCount++;\r\n\r\n\t\t\tif (relCount >= 25){\r\n\t\t\t\trelCount = 0;\r\n\t\t\t\trelPrefix = relPrefix + \"l\";\r\n\t\t\t}\r\n\r\n\t\t\tgp.addRelationship(rel);\r\n\t\t\trelsMap.put(r, rel);\r\n\t\t}\r\n\r\n\t\t//Set the attribute requirements\r\n\t\tattrsReq(gp, true);\r\n\t\tattrsReq(gp, false);\r\n\t\treturn gp;\r\n\t}", "Stream<PlanNode> resolveGroup(PlanNode node);", "public String group() { return group; }", "public void visitGroup(Group group) {\n\t}", "@Override\n public R visit(GroupOrUnionGraphPattern n, A argu) {\n R _ret = null;\n n.groupGraphPattern.accept(this, argu);\n n.nodeListOptional.accept(this, argu);\n return _ret;\n }", "public abstract Multigraph buildMatchedGraph();", "GroupId groupId();", "Node getNode() {\n return new Group(body.getPolygon(), head.getPolygon());\n }", "public TreeNode rewriteTreeNode(TreeNode node) {\n if (node instanceof Group) {\n BGP theBGP = new BGP(new ArrayList<TriplePatternNode>());\n Group g = (Group) node;\n ArrayList<GraphPattern> toAdd = new ArrayList<GraphPattern>(), toRemove = new ArrayList<GraphPattern>();\n\n for (GraphPattern pattern : g.getPatterns()) {\n if (pattern instanceof BGP || pattern instanceof Group) {\n if (conjoinGraphPattern(theBGP, g, pattern, toAdd))\n toRemove.add(pattern);\n }\n }\n\n for (GraphPattern gp : toRemove)\n g.removeGraphPattern(gp);\n for (GraphPattern gp : toAdd)\n g.addGraphPattern(gp);\n\n // we used to only add a BGP if it was non-empty\n // the special case of empty groups made backends more difficult\n // to implement in some cases, so now we ensure a single BGP for\n // every group, even if it is empty\n g.addGraphPattern(theBGP);\n }\n return node;\n }", "final public void GroupOrUnionGraphPattern(Exp stack) throws ParseException {\n Exp temp, res;\n res = GroupGraphPattern();\n label_36:\n while (true) {\n switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n case UNION:\n case OR:\n ;\n break;\n default:\n jj_la1[179] = jj_gen;\n break label_36;\n }\n switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n case UNION:\n jj_consume_token(UNION);\n break;\n case OR:\n jj_consume_token(OR);\n deprecated(\"or\",\"union\");\n break;\n default:\n jj_la1[180] = jj_gen;\n jj_consume_token(-1);\n throw new ParseException();\n }\n temp = res;\n res = Or.create();\n res.add(temp);\n temp = GroupGraphPattern();\n res.add(temp);\n }\n stack.add(res);\n }", "void startVisit(Group group);", "java.lang.String getGroup();", "public BiMap<String, Integer> getPatternGroups() {\n return patternGroups;\n }", "Iterable<String> groups();", "String targetGraph();", "@Override\r\n\tpublic Node visitPatternExpr(PatternExprContext ctx) {\n\t\treturn super.visitPatternExpr(ctx);\r\n\t}", "GroupOpt getGroup();", "@Override\r\n\tpublic Node visitDataParallelPattern(DataParallelPatternContext ctx) {\n\t\treturn super.visitDataParallelPattern(ctx);\r\n\t}", "public String getGroup();", "public Graph getGraph();", "public final void ruleAstInputPattern() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:1139:2: ( ( ( rule__AstInputPattern__Group__0 ) ) )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:1140:1: ( ( rule__AstInputPattern__Group__0 ) )\n {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:1140:1: ( ( rule__AstInputPattern__Group__0 ) )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:1141:1: ( rule__AstInputPattern__Group__0 )\n {\n before(grammarAccess.getAstInputPatternAccess().getGroup()); \n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:1142:1: ( rule__AstInputPattern__Group__0 )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:1142:2: rule__AstInputPattern__Group__0\n {\n pushFollow(FOLLOW_rule__AstInputPattern__Group__0_in_ruleAstInputPattern2376);\n rule__AstInputPattern__Group__0();\n\n state._fsp--;\n\n\n }\n\n after(grammarAccess.getAstInputPatternAccess().getGroup()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public final void rule__AstInputPattern__Group__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:14274:1: ( rule__AstInputPattern__Group__1__Impl rule__AstInputPattern__Group__2 )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:14275:2: rule__AstInputPattern__Group__1__Impl rule__AstInputPattern__Group__2\n {\n pushFollow(FOLLOW_rule__AstInputPattern__Group__1__Impl_in_rule__AstInputPattern__Group__128864);\n rule__AstInputPattern__Group__1__Impl();\n\n state._fsp--;\n\n pushFollow(FOLLOW_rule__AstInputPattern__Group__2_in_rule__AstInputPattern__Group__128867);\n rule__AstInputPattern__Group__2();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public final void rule__AstInputPattern__Group__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:14245:1: ( rule__AstInputPattern__Group__0__Impl rule__AstInputPattern__Group__1 )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:14246:2: rule__AstInputPattern__Group__0__Impl rule__AstInputPattern__Group__1\n {\n pushFollow(FOLLOW_rule__AstInputPattern__Group__0__Impl_in_rule__AstInputPattern__Group__028803);\n rule__AstInputPattern__Group__0__Impl();\n\n state._fsp--;\n\n pushFollow(FOLLOW_rule__AstInputPattern__Group__1_in_rule__AstInputPattern__Group__028806);\n rule__AstInputPattern__Group__1();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "@Override\n public Traversal<Vertex, Long> get_pattern_16_test() {\n return g.V().match(\n __.as(\"a\").out(\"KNOWS\").out(\"KNOWS\").as(\"c\"),\n __.as(\"a\").out(\"KNOWS\").as(\"c\"))\n .select(\"a\", \"c\")\n .by(\"firstName\")\n .by(\"firstName\")\n .count();\n }", "public final void rule__AstInputPattern__Group__0__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:14257:1: ( ( ( rule__AstInputPattern__Group_0__0 )? ) )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:14258:1: ( ( rule__AstInputPattern__Group_0__0 )? )\n {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:14258:1: ( ( rule__AstInputPattern__Group_0__0 )? )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:14259:1: ( rule__AstInputPattern__Group_0__0 )?\n {\n before(grammarAccess.getAstInputPatternAccess().getGroup_0()); \n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:14260:1: ( rule__AstInputPattern__Group_0__0 )?\n int alt121=2;\n int LA121_0 = input.LA(1);\n\n if ( (LA121_0==RULE_ID) ) {\n alt121=1;\n }\n switch (alt121) {\n case 1 :\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:14260:2: rule__AstInputPattern__Group_0__0\n {\n pushFollow(FOLLOW_rule__AstInputPattern__Group_0__0_in_rule__AstInputPattern__Group__0__Impl28833);\n rule__AstInputPattern__Group_0__0();\n\n state._fsp--;\n\n\n }\n break;\n\n }\n\n after(grammarAccess.getAstInputPatternAccess().getGroup_0()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "CyNetwork getGroupNetwork();", "void graph2() {\n\t\tconnect(\"1\", \"7\");\n\t\tconnect(\"1\", \"8\");\n\t\tconnect(\"1\", \"9\");\n\t\tconnect(\"9\", \"1\");\n\t\tconnect(\"9\", \"0\");\n\t\tconnect(\"9\", \"4\");\n\t\tconnect(\"4\", \"8\");\n\t\tconnect(\"4\", \"3\");\n\t\tconnect(\"3\", \"4\");\n\t}", "Pattern getTagPattern();", "public final void rule__AstInputPattern__Group_0__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:14434:1: ( rule__AstInputPattern__Group_0__0__Impl rule__AstInputPattern__Group_0__1 )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:14435:2: rule__AstInputPattern__Group_0__0__Impl rule__AstInputPattern__Group_0__1\n {\n pushFollow(FOLLOW_rule__AstInputPattern__Group_0__0__Impl_in_rule__AstInputPattern__Group_0__029179);\n rule__AstInputPattern__Group_0__0__Impl();\n\n state._fsp--;\n\n pushFollow(FOLLOW_rule__AstInputPattern__Group_0__1_in_rule__AstInputPattern__Group_0__029182);\n rule__AstInputPattern__Group_0__1();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "Object getGroup(int groupPosition);", "void graph4() {\n\t\tconnect(\"8\", \"9\");\n\t\tconnect(\"3\", \"1\");\n\t\tconnect(\"3\", \"2\");\n\t\tconnect(\"3\", \"9\");\n\t\tconnect(\"4\", \"3\");\n\t\t//connect(\"4\", \"5\");\n\t\t//connect(\"4\", \"7\");\n\t\t//connect(\"5\", \"7\");\t\t\n\t}", "public final void rule__AstConnection__Group__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:5906:1: ( rule__AstConnection__Group__0__Impl rule__AstConnection__Group__1 )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:5907:2: rule__AstConnection__Group__0__Impl rule__AstConnection__Group__1\n {\n pushFollow(FOLLOW_rule__AstConnection__Group__0__Impl_in_rule__AstConnection__Group__012369);\n rule__AstConnection__Group__0__Impl();\n\n state._fsp--;\n\n pushFollow(FOLLOW_rule__AstConnection__Group__1_in_rule__AstConnection__Group__012372);\n rule__AstConnection__Group__1();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public final void rule__AstInputPattern__Group__2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:14305:1: ( rule__AstInputPattern__Group__2__Impl rule__AstInputPattern__Group__3 )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:14306:2: rule__AstInputPattern__Group__2__Impl rule__AstInputPattern__Group__3\n {\n pushFollow(FOLLOW_rule__AstInputPattern__Group__2__Impl_in_rule__AstInputPattern__Group__228926);\n rule__AstInputPattern__Group__2__Impl();\n\n state._fsp--;\n\n pushFollow(FOLLOW_rule__AstInputPattern__Group__3_in_rule__AstInputPattern__Group__228929);\n rule__AstInputPattern__Group__3();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public final void rule__AstInputPattern__Group__4() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:14363:1: ( rule__AstInputPattern__Group__4__Impl rule__AstInputPattern__Group__5 )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:14364:2: rule__AstInputPattern__Group__4__Impl rule__AstInputPattern__Group__5\n {\n pushFollow(FOLLOW_rule__AstInputPattern__Group__4__Impl_in_rule__AstInputPattern__Group__429047);\n rule__AstInputPattern__Group__4__Impl();\n\n state._fsp--;\n\n pushFollow(FOLLOW_rule__AstInputPattern__Group__5_in_rule__AstInputPattern__Group__429050);\n rule__AstInputPattern__Group__5();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public final void rule__AstOutputPattern__Group__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:14652:1: ( rule__AstOutputPattern__Group__1__Impl rule__AstOutputPattern__Group__2 )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:14653:2: rule__AstOutputPattern__Group__1__Impl rule__AstOutputPattern__Group__2\n {\n pushFollow(FOLLOW_rule__AstOutputPattern__Group__1__Impl_in_rule__AstOutputPattern__Group__129609);\n rule__AstOutputPattern__Group__1__Impl();\n\n state._fsp--;\n\n pushFollow(FOLLOW_rule__AstOutputPattern__Group__2_in_rule__AstOutputPattern__Group__129612);\n rule__AstOutputPattern__Group__2();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "@Override\r\n\tpublic Node visitStreamPattern(StreamPatternContext ctx) {\n\t\treturn super.visitStreamPattern(ctx);\r\n\t}", "Relations getGroupOfRelations();", "public BranchGroup createSceneGraph() {\n BranchGroup node = new BranchGroup();\n TransformGroup TG = createSubGraph();\n TG.setCapability(TransformGroup.ALLOW_TRANSFORM_READ);\n TG.setCapability(TransformGroup.ALLOW_TRANSFORM_WRITE);\n // mouse behaviour\n MouseRotate mouse = new MouseRotate(TG);\n mouse.setSchedulingBounds(new BoundingSphere());\n // key nav\n KeyNavigatorBehavior keyNav = new KeyNavigatorBehavior(TG); //Imposto il bound del behavior\n keyNav.setSchedulingBounds(new BoundingSphere(new Point3d(), 100.0)); //Aggiungo il behavior alla scena\n TG.addChild(keyNav);\n TG.addChild(mouse);\n node.addChild(TG);\n // Add directionalLight\n node.addChild(directionalLight());\n // Add ambientLight\n node.addChild(ambientLight());\n return node;\n }", "UUID getNestedGroupId();", "private GraphParser(){ \n\t}", "GroupRefType createGroupRefType();", "public Pattern getPattern(){\n\t\treturn pattern;\n\t}", "public final void rule__AstConnection__Group__2__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:5976:1: ( ( '-->' ) )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:5977:1: ( '-->' )\n {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:5977:1: ( '-->' )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:5978:1: '-->'\n {\n before(grammarAccess.getAstConnectionAccess().getHyphenMinusHyphenMinusGreaterThanSignKeyword_2()); \n match(input,65,FOLLOW_65_in_rule__AstConnection__Group__2__Impl12521); \n after(grammarAccess.getAstConnectionAccess().getHyphenMinusHyphenMinusGreaterThanSignKeyword_2()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "final public void OptionalGraphPattern(Exp stack) throws ParseException {\n Exp e;\n switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n case OPTIONAL:\n jj_consume_token(OPTIONAL);\n break;\n case OPTION:\n jj_consume_token(OPTION);\n deprecated(\"option\",\"optional\");\n break;\n default:\n jj_la1[176] = jj_gen;\n jj_consume_token(-1);\n throw new ParseException();\n }\n e = GroupGraphPattern();\n e= Option.create(e);\n stack.add(e);\n }", "@Override\r\n protected Text generateGroupKey(IntermediateData tmo)\r\n {\n String line = ((Text) tmo.getData()).toString();\r\n String[] tokens = line.split(Main.INPUT_SPLIT);\r\n String groupkey = tokens[0];\r\n return new Text(groupkey);\r\n }", "public final void rule__AstConnection__Group__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:5935:1: ( rule__AstConnection__Group__1__Impl rule__AstConnection__Group__2 )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:5936:2: rule__AstConnection__Group__1__Impl rule__AstConnection__Group__2\n {\n pushFollow(FOLLOW_rule__AstConnection__Group__1__Impl_in_rule__AstConnection__Group__112430);\n rule__AstConnection__Group__1__Impl();\n\n state._fsp--;\n\n pushFollow(FOLLOW_rule__AstConnection__Group__2_in_rule__AstConnection__Group__112433);\n rule__AstConnection__Group__2();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "Boolean groupingEnabled();", "ZigBeeGroup getGroup(int groupId);", "ExprGroup createExprGroup();", "public long getGroup()\r\n { return group; }", "public final void rule__AstConnection__Group__0__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:5918:1: ( ( ( rule__AstConnection__Group_0__0 )? ) )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:5919:1: ( ( rule__AstConnection__Group_0__0 )? )\n {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:5919:1: ( ( rule__AstConnection__Group_0__0 )? )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:5920:1: ( rule__AstConnection__Group_0__0 )?\n {\n before(grammarAccess.getAstConnectionAccess().getGroup_0()); \n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:5921:1: ( rule__AstConnection__Group_0__0 )?\n int alt52=2;\n int LA52_0 = input.LA(1);\n\n if ( (LA52_0==RULE_ID) ) {\n int LA52_1 = input.LA(2);\n\n if ( (LA52_1==55) ) {\n alt52=1;\n }\n }\n switch (alt52) {\n case 1 :\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:5921:2: rule__AstConnection__Group_0__0\n {\n pushFollow(FOLLOW_rule__AstConnection__Group_0__0_in_rule__AstConnection__Group__0__Impl12399);\n rule__AstConnection__Group_0__0();\n\n state._fsp--;\n\n\n }\n break;\n\n }\n\n after(grammarAccess.getAstConnectionAccess().getGroup_0()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public Pattern getPattern() {\n return pattern;\n }", "public interface DirectedGraph {\n\n /**\n * Set a graph label\n * @param label a graph label\n */\n void setGraphLabel(String label);\n\n /**\n * @return the graph label\n */\n String getGraphLabel();\n\n /**\n * Add a node in graph\n * @param node\n * @throws IllegalArgumentException if node is negative\n */\n void addNode(int node);\n\n /**\n * Associating metadata to node\n * @param node the node id\n * @param key the metadata key\n * @param value the metadata value\n */\n void addNodeMetadata(int node, String key, String value);\n\n /**\n * Get the value of the metadata associated with the given node\n * @param node the node to get metadata for\n * @param key the metadata key\n * @return the value or null if not found\n */\n String getNodeMetadataValue(int node, String key);\n\n /**\n * @return the node given the label or -1 if not found\n */\n int getNodeFromMetadata(String metadata);\n\n /**\n * Add an edge in graph from tail to head and return its index\n * @param tail predecessor node\n * @param head successor node\n * @return the edge id or -1 if already exists\n */\n int addEdge(int tail, int head);\n\n /**\n * Set an edge label\n * @param edge a edge id\n * @param label a node label\n */\n void setEdgeLabel(int edge, String label);\n\n /**\n * @return the edge label\n */\n String getEdgeLabel(int edge);\n\n /**\n * @return an array of graph nodes\n */\n int[] getNodes();\n\n /**\n * @return an array of graph edges\n */\n int[] getEdges();\n\n /**\n * @return the edge id from end points or -1 if not found\n */\n int getEdge(int tail, int head);\n\n /**\n * Get the incoming and outcoming edges for the given nodes\n * @param nodes the nodes\n * @return edge indices\n */\n int[] getEdgesIncidentTo(int... nodes);\n\n /**\n * Get the incoming edges to the given nodes\n * @param nodes the nodes\n * @return edge indices\n */\n int[] getInEdges(int... nodes);\n\n /**\n * Get the outcoming edges from the given nodes\n * @param nodes the nodes\n * @return edge indices\n */\n int[] getOutEdges(int... nodes);\n\n /**\n * @return the tail node of the given edge or -1 if not found\n */\n int getTailNode(int edge);\n\n /**\n * @return the head node of the given edge or -1 if not found\n */\n int getHeadNode(int edge);\n\n /**\n * @return true if node belongs to graph else false\n */\n boolean containsNode(int node);\n\n /**\n * @return true if edge belongs to graph else false\n */\n boolean containsEdge(int edge);\n\n /**\n * @return true if tail -> head edge belongs to graph else false\n */\n boolean containsEdge(int tail, int head);\n\n /**\n * @return ancestors of the given node\n */\n int[] getAncestors(int node);\n\n /**\n * @return descendants of the given node\n */\n int[] getDescendants(int node);\n\n /**\n * @return descendants of the given node\n */\n int[] getDescendants(int node, int maxDepth);\n\n /**\n * @return true if queryDescendant is a descendant of queryAncestor\n */\n boolean isAncestorOf(int queryAncestor, int queryDescendant);\n\n /**\n * @return the predecessors of the given node\n */\n int[] getPredecessors(int node);\n\n /**\n * @return the successors of the given node\n */\n int[] getSuccessors(int node);\n\n /**\n * @return the number of head ends adjacent to the given node\n */\n int getInDegree(int node);\n\n /**\n * @return the number of tail ends adjacent to the given node\n */\n int getOutDegree(int node);\n\n /**\n * @return the sources (indegree = 0) of the graph\n */\n int[] getSources();\n\n /**\n * @return the sinks (outdegree = 0) of the graph\n */\n int[] getSinks();\n\n /**\n * @return the subgraph of this graph composed of given nodes\n */\n DirectedGraph calcSubgraph(int... nodes);\n\n /**\n * @return the total number of graph nodes\n */\n default int countNodes() {\n\n return getNodes().length;\n }\n\n /**\n * @return the total number of graph edges\n */\n default int countEdges() {\n\n return getEdges().length;\n }\n\n /**\n * @return true if queryDescendant is a descendant of queryAncestor\n */\n default boolean isDescendantOf(int queryDescendant, int queryAncestor) {\n\n return isAncestorOf(queryAncestor, queryDescendant);\n }\n\n default boolean isSource(int node) {\n return getInDegree(node) == 0 && getOutDegree(node) > 0;\n }\n\n default boolean isSink(int node) {\n return getInDegree(node) > 0 && getOutDegree(node) == 0;\n }\n\n /**\n * The height of a rooted tree is the length of the longest downward path to a leaf from the root.\n *\n * @return the longest path from the root or -1 if it is not a tree\n */\n default int calcHeight() throws NotATreeException {\n\n int[] roots = getSources();\n\n if (roots.length == 0) {\n throw new NotATreeException();\n }\n\n class WrappedCalcLongestPath {\n private int calcLongestPath(int node, TIntList path) throws CycleDetectedException {\n\n if (!containsNode(node)) {\n throw new IllegalArgumentException(\"node \"+ node + \" was not found\");\n }\n\n if (isSink(node)) {\n return path.size()-1;\n }\n\n TIntList lengths = new TIntArrayList();\n for (int edge : getOutEdges(node)) {\n\n int nextNode = getHeadNode(edge);\n\n TIntList newPath = new TIntArrayList(path);\n newPath.add(nextNode);\n\n if (path.contains(nextNode)) {\n throw new CycleDetectedException(newPath);\n }\n\n lengths.add(calcLongestPath(nextNode, newPath));\n }\n\n return lengths.max();\n }\n }\n\n // it is ok if there are multiple roots (see example of enzyme-classification-cv where it misses the root that\n // connect children EC 1.-.-.-, EC 2.-.-.-, ..., EC 6.-.-.-)\n /*if (roots.length > 1) {\n throw new NotATreeMultipleRootsException(roots);\n }*/\n\n return new WrappedCalcLongestPath().calcLongestPath(roots[0], new TIntArrayList(new int[] {roots[0]}));\n }\n\n class NotATreeException extends Exception {\n\n public NotATreeException() {\n\n super(\"not a tree\");\n }\n }\n\n class NotATreeMultipleRootsException extends NotATreeException {\n\n private final int[] roots;\n\n public NotATreeMultipleRootsException(int[] roots) {\n\n super();\n this.roots = roots;\n }\n\n @Override\n public String getMessage() {\n\n return super.getMessage() + \", roots=\" + Arrays.toString(this.roots);\n }\n }\n\n class CycleDetectedException extends NotATreeException {\n\n private final TIntList path;\n\n public CycleDetectedException(TIntList path) {\n\n super();\n\n this.path = path;\n }\n\n @Override\n public String getMessage() {\n\n return super.getMessage() + \", path=\" + this.path;\n }\n }\n}", "protected int createGroup() {\n\t\tint id = _motherGroupID + 1;\n\t\twhile (_soundNodes.containsKey(id)) { id++; }\n\t\tcreateGroup(id);\n\t\treturn id;\n\t}", "IMappingNode getMappingNode(Object groupID) throws Exception;", "private Graph simpleMigrationPerPattern(Graph graph, Storyboard storyboard) {\n srcGraphPO = new GraphPO(graph);\n\n GraphPO tgtGraphPO = (GraphPO) new GraphPO().withPattern(srcGraphPO.getPattern()).withModifier(Pattern.CREATE);\n tgtGraphPO.findNextMatch();\n\n Graph result = tgtGraphPO.getCurrentMatch();\n\n storyboard.addPattern(srcGraphPO, false);\n\n // ==========================================================================\n // copy nodes\n int noOfMatches = 0;\n\n srcGraphPO = new GraphPO(graph);\n\n NodePO srcNodePO = srcGraphPO.hasNodes();\n\n tgtGraphPO = (GraphPO) new GraphPO(tgtGraphPO.getCurrentMatch())\n .withPattern(srcGraphPO.getPattern());\n\n srcGraphPO.startCreate();\n\n NodePO tgtNodePO = tgtGraphPO.hasGcsNode();\n\n tgtNodePO.hasOrig(srcNodePO);\n\n while (srcGraphPO.getPattern().getHasMatch()) {\n tgtNodePO.withText(srcNodePO.getName());\n\n noOfMatches++;\n\n srcGraphPO.getPattern().findNextMatch();\n }\n\n systemout = \"Number of migrated nodes: \" + noOfMatches;\n\n storyboard.addPattern(srcGraphPO, false);\n\n // ==========================================================================\n noOfMatches = 0;\n\n srcGraphPO = new GraphPO(graph);\n\n EdgePO srcEdgePO = srcGraphPO.hasEdges();\n\n tgtGraphPO = new GraphPO(tgtGraphPO.getCurrentMatch()).withPattern(srcGraphPO.getPattern());\n\n tgtGraphPO.startCreate();\n\n EdgePO tgtEdgePO = tgtGraphPO.hasGcsEdge();\n\n boolean done = false;\n\n while (tgtEdgePO.getPattern().getHasMatch()) {\n tgtEdgePO.withText(srcEdgePO.getName());\n\n copySrcNodePO = new EdgePO(srcEdgePO.getCurrentMatch())\n .hasSrc()\n .hasCopy();\n\n EdgePO copyEdgePO = new EdgePO(tgtEdgePO.getCurrentMatch()).withPattern(copySrcNodePO.getPattern());\n\n copySrcNodePO.startCreate();\n\n copyEdgePO.hasSrc(copySrcNodePO);\n\n\n copyTgtNodePO = new EdgePO(srcEdgePO.getCurrentMatch())\n .hasTgt()\n .hasCopy();\n\n EdgePO copyEdgePO2 = new EdgePO(tgtEdgePO.getCurrentMatch()).withPattern(copyTgtNodePO.getPattern());\n\n copyTgtNodePO.startCreate();\n\n copyEdgePO2.hasTgt(copyTgtNodePO);\n\n noOfMatches++;\n\n tgtEdgePO.getPattern().findNextMatch();\n }\n\n systemout += \"\\nNumber of migrated Edges: \" + noOfMatches;\n\n storyboard.addPattern(tgtEdgePO, false);\n storyboard.addPattern(copySrcNodePO, false);\n storyboard.addPattern(copyTgtNodePO, false);\n\n return result;\n }", "String getGroupId();", "String getGroupId();", "private String buildWalkerGroup(WalkerGroup group, PersistentContext context) {\n final StringBuilder xml = new StringBuilder();\n xml.append(\"<walker_group>\\n\");\n xml.append(tab(walkerBuilder.buildWalker(group, context)));\n xml.append(\"\\t<walker_group_name>\").append(escape(group.getName())).append(\"</walker_group_name>\\n\");\n for (final DiagramWalker walker : group.getDiagramWalkerList()) {\n final String nodeId = context.walkerMap.get(((ERVirtualTable) walker).getRawTable());\n xml.append(\"\\t<diagram_walker>\").append(nodeId).append(\"</diagram_walker>\\n\");\n }\n xml.append(\"</walker_group>\\n\");\n return xml.toString();\n }", "GraphFactory getGraphFactory();", "public final void rule__AstOutputPattern__Group__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:14623:1: ( rule__AstOutputPattern__Group__0__Impl rule__AstOutputPattern__Group__1 )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:14624:2: rule__AstOutputPattern__Group__0__Impl rule__AstOutputPattern__Group__1\n {\n pushFollow(FOLLOW_rule__AstOutputPattern__Group__0__Impl_in_rule__AstOutputPattern__Group__029548);\n rule__AstOutputPattern__Group__0__Impl();\n\n state._fsp--;\n\n pushFollow(FOLLOW_rule__AstOutputPattern__Group__1_in_rule__AstOutputPattern__Group__029551);\n rule__AstOutputPattern__Group__1();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "protected void sequence_BY_GROUP_GroupBy(ISerializationContext context, GroupBy semanticObject) {\n\t\tgenericSequencer.createSequence(context, semanticObject);\n\t}", "String getGroupingCode();", "protected abstract Graph filterGraph();", "public final void ruleAstConnection() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:437:2: ( ( ( rule__AstConnection__Group__0 ) ) )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:438:1: ( ( rule__AstConnection__Group__0 ) )\n {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:438:1: ( ( rule__AstConnection__Group__0 ) )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:439:1: ( rule__AstConnection__Group__0 )\n {\n before(grammarAccess.getAstConnectionAccess().getGroup()); \n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:440:1: ( rule__AstConnection__Group__0 )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:440:2: rule__AstConnection__Group__0\n {\n pushFollow(FOLLOW_rule__AstConnection__Group__0_in_ruleAstConnection874);\n rule__AstConnection__Group__0();\n\n state._fsp--;\n\n\n }\n\n after(grammarAccess.getAstConnectionAccess().getGroup()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "private VertexObject addGroupVertex(IntermediateGroup group) {\n String groupLabel = group.getID().toString();\n VertexObject groupV = groupVertices.get(group.getID());\n if (groupV == null) {\n groupV = new VertexObject(groupLabel, group);\n graph.addVertex(groupV);\n\n groupVertices.put(group.getID(), groupV);\n }\n\n return groupV;\n }", "public final void rule__AstInputPattern__Group__1__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:14286:1: ( ( '[' ) )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:14287:1: ( '[' )\n {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:14287:1: ( '[' )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:14288:1: '['\n {\n before(grammarAccess.getAstInputPatternAccess().getLeftSquareBracketKeyword_1()); \n match(input,81,FOLLOW_81_in_rule__AstInputPattern__Group__1__Impl28895); \n after(grammarAccess.getAstInputPatternAccess().getLeftSquareBracketKeyword_1()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "default String getGroup() {\n return null;\n }", "public interface Semigroup<G, T> extends Magma<G, T>, Semigroupoid<G, T> {\r\n}", "public abstract String getDefaultGroup();", "public void buildGraph(){\n\t}", "abstract Node split();", "abstract Node split();", "public weighted_graph getGraph();", "public final void rule__AstInputPattern__Group__3() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:14334:1: ( rule__AstInputPattern__Group__3__Impl rule__AstInputPattern__Group__4 )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:14335:2: rule__AstInputPattern__Group__3__Impl rule__AstInputPattern__Group__4\n {\n pushFollow(FOLLOW_rule__AstInputPattern__Group__3__Impl_in_rule__AstInputPattern__Group__328986);\n rule__AstInputPattern__Group__3__Impl();\n\n state._fsp--;\n\n pushFollow(FOLLOW_rule__AstInputPattern__Group__4_in_rule__AstInputPattern__Group__328989);\n rule__AstInputPattern__Group__4();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public final void rule__AstInputPattern__Group_0__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:14463:1: ( rule__AstInputPattern__Group_0__1__Impl )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:14464:2: rule__AstInputPattern__Group_0__1__Impl\n {\n pushFollow(FOLLOW_rule__AstInputPattern__Group_0__1__Impl_in_rule__AstInputPattern__Group_0__129239);\n rule__AstInputPattern__Group_0__1__Impl();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public Group() {\n\t\t\tfirst = last = null;\n\t\t\tsize = 0;\n\t\t}", "Collection getAccessPatternsInGroup(Object groupID) throws Exception;", "public final void rule__AstOutputPattern__Group_0__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:14812:1: ( rule__AstOutputPattern__Group_0__0__Impl rule__AstOutputPattern__Group_0__1 )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:14813:2: rule__AstOutputPattern__Group_0__0__Impl rule__AstOutputPattern__Group_0__1\n {\n pushFollow(FOLLOW_rule__AstOutputPattern__Group_0__0__Impl_in_rule__AstOutputPattern__Group_0__029924);\n rule__AstOutputPattern__Group_0__0__Impl();\n\n state._fsp--;\n\n pushFollow(FOLLOW_rule__AstOutputPattern__Group_0__1_in_rule__AstOutputPattern__Group_0__029927);\n rule__AstOutputPattern__Group_0__1();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "UUID getGroupId();", "public final void rule__AstInputPattern__Group_0__1__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:14474:1: ( ( ':' ) )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:14475:1: ( ':' )\n {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:14475:1: ( ':' )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:14476:1: ':'\n {\n before(grammarAccess.getAstInputPatternAccess().getColonKeyword_0_1()); \n match(input,51,FOLLOW_51_in_rule__AstInputPattern__Group_0__1__Impl29267); \n after(grammarAccess.getAstInputPatternAccess().getColonKeyword_0_1()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "Object getGroupID(String groupName) throws Exception;", "protected String getGroupPath() {\n return panelXpath + groupPath;\n }", "public final void rule__AstOutputPattern__Group__0__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:14635:1: ( ( ( rule__AstOutputPattern__Group_0__0 )? ) )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:14636:1: ( ( rule__AstOutputPattern__Group_0__0 )? )\n {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:14636:1: ( ( rule__AstOutputPattern__Group_0__0 )? )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:14637:1: ( rule__AstOutputPattern__Group_0__0 )?\n {\n before(grammarAccess.getAstOutputPatternAccess().getGroup_0()); \n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:14638:1: ( rule__AstOutputPattern__Group_0__0 )?\n int alt124=2;\n int LA124_0 = input.LA(1);\n\n if ( (LA124_0==RULE_ID) ) {\n alt124=1;\n }\n switch (alt124) {\n case 1 :\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:14638:2: rule__AstOutputPattern__Group_0__0\n {\n pushFollow(FOLLOW_rule__AstOutputPattern__Group_0__0_in_rule__AstOutputPattern__Group__0__Impl29578);\n rule__AstOutputPattern__Group_0__0();\n\n state._fsp--;\n\n\n }\n break;\n\n }\n\n after(grammarAccess.getAstOutputPatternAccess().getGroup_0()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public String getGroup ()\n {\n return group;\n }", "public String getGroup ()\n {\n return group;\n }", "CoreLabelSequence getGrouped(CoreLabel key);", "public final void rule__AstInputPattern__Group_5__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:14560:1: ( rule__AstInputPattern__Group_5__0__Impl rule__AstInputPattern__Group_5__1 )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:14561:2: rule__AstInputPattern__Group_5__0__Impl rule__AstInputPattern__Group_5__1\n {\n pushFollow(FOLLOW_rule__AstInputPattern__Group_5__0__Impl_in_rule__AstInputPattern__Group_5__029425);\n rule__AstInputPattern__Group_5__0__Impl();\n\n state._fsp--;\n\n pushFollow(FOLLOW_rule__AstInputPattern__Group_5__1_in_rule__AstInputPattern__Group_5__029428);\n rule__AstInputPattern__Group_5__1();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public Drawable getPatternDrawable() {\n return patternDrawable;\n }", "public TerminalRule getGROUPRule() {\n\t\treturn tGROUP;\n\t}", "@Override\n public String toString() {\n return AGGREGATE_NODE_STR + \" \" + groupingVariables + \" \" + \"[\" + substitution + \"]\" ;\n }", "public abstract void visualiseGroupsOverGraph(IGraph graph, GraphOnDriveHandler initialGraphHandler, ExtendedMiningParameters miningParameters)\n\t\t\tthrows VisualisationException;", "@Override\n\tpublic String getGroup() {\n\t\treturn \"Group_\"+SliceName(stdClass);\n\t}", "protected abstract Regex pattern();", "public final void rule__AstConnection__Group_0__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:6126:1: ( rule__AstConnection__Group_0__0__Impl rule__AstConnection__Group_0__1 )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:6127:2: rule__AstConnection__Group_0__0__Impl rule__AstConnection__Group_0__1\n {\n pushFollow(FOLLOW_rule__AstConnection__Group_0__0__Impl_in_rule__AstConnection__Group_0__012807);\n rule__AstConnection__Group_0__0__Impl();\n\n state._fsp--;\n\n pushFollow(FOLLOW_rule__AstConnection__Group_0__1_in_rule__AstConnection__Group_0__012810);\n rule__AstConnection__Group_0__1();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "void add(R group);", "public final void rule__AstOutputPattern__Group__1__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:14664:1: ( ( '[' ) )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:14665:1: ( '[' )\n {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:14665:1: ( '[' )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:14666:1: '['\n {\n before(grammarAccess.getAstOutputPatternAccess().getLeftSquareBracketKeyword_1()); \n match(input,81,FOLLOW_81_in_rule__AstOutputPattern__Group__1__Impl29640); \n after(grammarAccess.getAstOutputPatternAccess().getLeftSquareBracketKeyword_1()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public final void rule__AstConnectionAttribute__Group__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:6348:1: ( rule__AstConnectionAttribute__Group__0__Impl rule__AstConnectionAttribute__Group__1 )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:6349:2: rule__AstConnectionAttribute__Group__0__Impl rule__AstConnectionAttribute__Group__1\n {\n pushFollow(FOLLOW_rule__AstConnectionAttribute__Group__0__Impl_in_rule__AstConnectionAttribute__Group__013241);\n rule__AstConnectionAttribute__Group__0__Impl();\n\n state._fsp--;\n\n pushFollow(FOLLOW_rule__AstConnectionAttribute__Group__1_in_rule__AstConnectionAttribute__Group__013244);\n rule__AstConnectionAttribute__Group__1();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public String getPattern() {\r\n \treturn pattern;\r\n }" ]
[ "0.6275479", "0.6125395", "0.59886926", "0.58359665", "0.5825332", "0.57662743", "0.5744721", "0.5641847", "0.5610012", "0.55528426", "0.5527838", "0.54922825", "0.5421525", "0.54188645", "0.53663176", "0.53626263", "0.53380096", "0.533456", "0.53298354", "0.5327045", "0.5324004", "0.52955407", "0.52912796", "0.5255359", "0.52488416", "0.52327555", "0.5216793", "0.52133775", "0.5189851", "0.51865023", "0.5183195", "0.510594", "0.50656384", "0.506442", "0.50621223", "0.5059102", "0.5057147", "0.5033186", "0.50310063", "0.50294876", "0.5025465", "0.5019414", "0.5011351", "0.5002465", "0.49998415", "0.49987787", "0.49886364", "0.4988376", "0.49859703", "0.4977037", "0.49555084", "0.49481198", "0.4944557", "0.4937085", "0.49349716", "0.49328622", "0.49315634", "0.49312606", "0.49312606", "0.49297035", "0.4929321", "0.49224803", "0.491434", "0.49135357", "0.49102768", "0.49095917", "0.49067158", "0.490368", "0.49028093", "0.48932874", "0.4891952", "0.4886007", "0.48821667", "0.48821667", "0.48745653", "0.48739606", "0.48727107", "0.4868676", "0.48609108", "0.48603678", "0.48583597", "0.4857281", "0.48567373", "0.48560846", "0.48539585", "0.48529273", "0.48529273", "0.48499793", "0.48446214", "0.48372194", "0.4835431", "0.483197", "0.48266813", "0.48258993", "0.48257828", "0.4825633", "0.4825536", "0.48128077", "0.48114246", "0.48049578" ]
0.61757165
1
nodeToken > varOrIRIref > VarOrIRIref() groupGraphPattern > GroupGraphPattern()
@Override public R visit(GraphGraphPattern n, A argu) { R _ret = null; n.nodeToken.accept(this, argu); n.varOrIRIref.accept(this, argu); n.groupGraphPattern.accept(this, argu); return _ret; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public R visit(OptionalGraphPattern n, A argu) {\n R _ret = null;\n n.nodeToken.accept(this, argu);\n n.groupGraphPattern.accept(this, argu);\n return _ret;\n }", "@Override\n public R visit(GroupOrUnionGraphPattern n, A argu) {\n R _ret = null;\n n.groupGraphPattern.accept(this, argu);\n n.nodeListOptional.accept(this, argu);\n return _ret;\n }", "final public void GroupOrUnionGraphPattern(Exp stack) throws ParseException {\n Exp temp, res;\n res = GroupGraphPattern();\n label_36:\n while (true) {\n switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n case UNION:\n case OR:\n ;\n break;\n default:\n jj_la1[179] = jj_gen;\n break label_36;\n }\n switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n case UNION:\n jj_consume_token(UNION);\n break;\n case OR:\n jj_consume_token(OR);\n deprecated(\"or\",\"union\");\n break;\n default:\n jj_la1[180] = jj_gen;\n jj_consume_token(-1);\n throw new ParseException();\n }\n temp = res;\n res = Or.create();\n res.add(temp);\n temp = GroupGraphPattern();\n res.add(temp);\n }\n stack.add(res);\n }", "private GraphPattern translateToGP(){\r\n\r\n\t\t//Generate the graph pattern object\r\n\t\tGraphPattern gp = new GraphPattern();\r\n\r\n\r\n\t\t//For each Node object, create an associated MyNode object\r\n\t\tint nodeCount = 0;\r\n\t\tfor (Node n : allNodes){\r\n\t\t\tMyNode myNode = new MyNode(nodeCount, \"PERSON\");\r\n\t\t\tnodesMap.put(n, myNode);\r\n\t\t\tgp.addNode(myNode);\r\n\r\n\t\t\tnodeCount++;\r\n\t\t}\r\n\r\n\t\t//For k random MyNodes add the id as an attribute/property.\r\n\t\t//This id is used for cypher queries.\r\n\t\t//This process uses simple random sampling\r\n\t\tif (rooted > allNodes.size()){\r\n\t\t\trooted = allNodes.size();\r\n\t\t}\r\n\r\n\t\tList<Node> allNodesClone = new ArrayList<Node>();\r\n\t\tallNodesClone.addAll(allNodes);\r\n\r\n\t\tfor (int i = 0; i < rooted; i++){\r\n\t\t\t//Pick a random node from allNodes and get it's corresponding MyNode\r\n\t\t\tint idx = random.nextInt(allNodesClone.size());\r\n\t\t\tNode node = allNodesClone.get(idx);\r\n\t\t\tMyNode myNode = nodesMap.get(node);\r\n\r\n\t\t\t//Add the property to myNode\r\n\t\t\ttry (Transaction tx = graphDb.beginTx()){\r\n\t\t\t\tmyNode.addAttribute(\"id\", node.getProperty(\"id\")+\"\");\r\n\t\t\t\ttx.success();\r\n\t\t\t}\r\n\t\t\t//Remove the node from allNodesClone list.\r\n\t\t\tallNodesClone.remove(idx);\r\n\t\t}\r\n\r\n\t\t//Process the relationships\r\n\t\tint relCount = 0;\r\n\t\tString relPrefix = \"rel\";\r\n\r\n\t\tfor (Relationship r : rels){\r\n\r\n\t\t\tMyNode source = null, target = null;\r\n\t\t\tRelType type = null;\r\n\r\n\t\t\t//For each relationship in rels, create a corresponding relationship in gp.\r\n\t\t\ttry (Transaction tx = graphDb.beginTx()){\r\n\t\t\t\tsource = nodesMap.get(r.getStartNode());\r\n\t\t\t\ttarget = nodesMap.get(r.getEndNode());\r\n\t\t\t\ttype = GPUtil.translateRelType(r.getType());\r\n\t\t\t\ttx.success();\r\n\t\t\t}\r\n\r\n\t\t\tMyRelationship rel = new MyRelationship(source, target, type, relCount);\r\n\t\t\trelCount++;\r\n\r\n\t\t\tif (relCount >= 25){\r\n\t\t\t\trelCount = 0;\r\n\t\t\t\trelPrefix = relPrefix + \"l\";\r\n\t\t\t}\r\n\r\n\t\t\tgp.addRelationship(rel);\r\n\t\t\trelsMap.put(r, rel);\r\n\t\t}\r\n\r\n\t\t//Set the attribute requirements\r\n\t\tattrsReq(gp, true);\r\n\t\tattrsReq(gp, false);\r\n\t\treturn gp;\r\n\t}", "Stream<PlanNode> resolveGroup(PlanNode node);", "Node getVariable();", "java.lang.String getGroup();", "Pattern getTagPattern();", "public interface GroupReference extends ComplexExtensionDefinition,\n SequenceDefinition, ComplexTypeDefinition, SchemaComponent {\n public static final String REF_PROPERTY = \"ref\";\n public static final String MAX_OCCURS_PROPERTY = \"maxOccurs\";\n public static final String MIN_OCCURS_PROPERTY = \"minOccurs\";\n\n String getMaxOccurs();\n void setMaxOccurs(String max);\n String getMaxOccursDefault();\n String getMaxOccursEffective();\n \n Integer getMinOccurs();\n void setMinOccurs(Integer min);\n int getMinOccursDefault();\n int getMinOccursEffective();\n \n NamedComponentReference<GlobalGroup> getRef();\n void setRef(NamedComponentReference<GlobalGroup> def);\n}", "@Override\r\n\tpublic Node visitPatternExpr(PatternExprContext ctx) {\n\t\treturn super.visitPatternExpr(ctx);\r\n\t}", "public void visitGroup(Group group) {\n\t}", "Node getNode() {\n return new Group(body.getPolygon(), head.getPolygon());\n }", "public String group() { return group; }", "String targetGraph();", "void startVisit(Group group);", "public interface GlobalNode extends Node{\n\n VariableName[] getVariableNames();\n\n}", "public Match(String subgraph) {\r\n\t\tsuper();\r\n\t\tthis.subgraph = subgraph;\r\n\t\tthis.variables = new ArrayList<Variable>();\r\n\t}", "public String getGroup();", "@Override\n public R visit(NamedGraphClause n, A argu) {\n R _ret = null;\n n.nodeToken.accept(this, argu);\n n.sourceSelector.accept(this, argu);\n return _ret;\n }", "abstract Node split();", "abstract Node split();", "ExprGroup createExprGroup();", "@Override\n public Traversal<Vertex, Long> get_pattern_16_test() {\n return g.V().match(\n __.as(\"a\").out(\"KNOWS\").out(\"KNOWS\").as(\"c\"),\n __.as(\"a\").out(\"KNOWS\").as(\"c\"))\n .select(\"a\", \"c\")\n .by(\"firstName\")\n .by(\"firstName\")\n .count();\n }", "public Literal getDeepLiteral(XDI3Segment contextNodeXri);", "public interface SimpleGrParserConstants {\n\n /** End of File. */\n int EOF = 0;\n /** RegularExpression Id. */\n int NumberLit = 6;\n /** RegularExpression Id. */\n int BooleanLit = 7;\n /** RegularExpression Id. */\n int StringLit = 8;\n /** RegularExpression Id. */\n int Null = 9;\n /** RegularExpression Id. */\n int And = 10;\n /** RegularExpression Id. */\n int Or = 11;\n /** RegularExpression Id. */\n int Not = 12;\n /** RegularExpression Id. */\n int Identifier = 13;\n /** RegularExpression Id. */\n int Equal = 14;\n /** RegularExpression Id. */\n int NotEqual = 15;\n /** RegularExpression Id. */\n int LessThan = 16;\n /** RegularExpression Id. */\n int LessEqualThan = 17;\n /** RegularExpression Id. */\n int GreaterThan = 18;\n /** RegularExpression Id. */\n int GreaterEqualThan = 19;\n /** RegularExpression Id. */\n int Plus = 20;\n /** RegularExpression Id. */\n int Minus = 21;\n /** RegularExpression Id. */\n int Div = 22;\n /** RegularExpression Id. */\n int Mult = 23;\n /** RegularExpression Id. */\n int Open = 24;\n /** RegularExpression Id. */\n int Close = 25;\n /** RegularExpression Id. */\n int Comma = 26;\n /** RegularExpression Id. */\n int Letter = 27;\n /** RegularExpression Id. */\n int Digit = 28;\n\n /** Lexical state. */\n int DEFAULT = 0;\n\n /** Literal token values. */\n String[] tokenImage = {\n \"<EOF>\",\n \"\\\" \\\"\",\n \"\\\"\\\\t\\\"\",\n \"\\\"\\\\n\\\"\",\n \"\\\"\\\\r\\\"\",\n \"\\\"\\\\f\\\"\",\n \"<NumberLit>\",\n \"<BooleanLit>\",\n \"<StringLit>\",\n \"\\\"NULL\\\"\",\n \"\\\"AND\\\"\",\n \"\\\"OR\\\"\",\n \"\\\"NOT\\\"\",\n \"<Identifier>\",\n \"\\\"==\\\"\",\n \"\\\"!=\\\"\",\n \"\\\"<\\\"\",\n \"\\\"<=\\\"\",\n \"\\\">\\\"\",\n \"\\\">=\\\"\",\n \"\\\"+\\\"\",\n \"\\\"-\\\"\",\n \"\\\"/\\\"\",\n \"\\\"*\\\"\",\n \"\\\"(\\\"\",\n \"\\\")\\\"\",\n \"\\\",\\\"\",\n \"<Letter>\",\n \"<Digit>\",\n };\n\n}", "public interface ParserASTConstants {\n\n /** End of File. */\n int EOF = 0;\n /** RegularExpression Id. */\n int KW_CLASS = 8;\n /** RegularExpression Id. */\n int KW_PUBLIC = 9;\n /** RegularExpression Id. */\n int KW_STATIC = 10;\n /** RegularExpression Id. */\n int KW_VOID = 11;\n /** RegularExpression Id. */\n int KW_MAIN = 12;\n /** RegularExpression Id. */\n int KW_STRING = 13;\n /** RegularExpression Id. */\n int KW_EXTENDS = 14;\n /** RegularExpression Id. */\n int KW_RETURN = 15;\n /** RegularExpression Id. */\n int KW_INT = 16;\n /** RegularExpression Id. */\n int KW_BOOLEAN = 17;\n /** RegularExpression Id. */\n int KW_IF = 18;\n /** RegularExpression Id. */\n int KW_ELSE = 19;\n /** RegularExpression Id. */\n int KW_WHILE = 20;\n /** RegularExpression Id. */\n int KW_TRUE = 21;\n /** RegularExpression Id. */\n int KW_FALSE = 22;\n /** RegularExpression Id. */\n int KW_THIS = 23;\n /** RegularExpression Id. */\n int KW_NEW = 24;\n /** RegularExpression Id. */\n int KW_PRINT = 25;\n /** RegularExpression Id. */\n int SYM_LBRACE = 26;\n /** RegularExpression Id. */\n int SYM_RBRACE = 27;\n /** RegularExpression Id. */\n int SYM_LPAREN = 28;\n /** RegularExpression Id. */\n int SYM_RPAREN = 29;\n /** RegularExpression Id. */\n int SYM_LSQPAREN = 30;\n /** RegularExpression Id. */\n int SYM_RSQPAREN = 31;\n /** RegularExpression Id. */\n int SYM_SEMICOLON = 32;\n /** RegularExpression Id. */\n int SYM_EQUAL = 33;\n /** RegularExpression Id. */\n int SYM_AMPAMP = 34;\n /** RegularExpression Id. */\n int SYM_BARBAR = 35;\n /** RegularExpression Id. */\n int SYM_LESS = 36;\n /** RegularExpression Id. */\n int SYM_LESSEQUAL = 37;\n /** RegularExpression Id. */\n int SYM_EQUALEQUAL = 38;\n /** RegularExpression Id. */\n int SYM_EXCLEQUAL = 39;\n /** RegularExpression Id. */\n int SYM_MORE = 40;\n /** RegularExpression Id. */\n int SYM_MOREEQUAL = 41;\n /** RegularExpression Id. */\n int SYM_PLUS = 42;\n /** RegularExpression Id. */\n int SYM_MINUS = 43;\n /** RegularExpression Id. */\n int SYM_STAR = 44;\n /** RegularExpression Id. */\n int SYM_SLASH = 45;\n /** RegularExpression Id. */\n int SYM_PERCENT = 46;\n /** RegularExpression Id. */\n int SYM_EXCL = 47;\n /** RegularExpression Id. */\n int SYM_DOT = 48;\n /** RegularExpression Id. */\n int SYM_COMMA = 49;\n /** RegularExpression Id. */\n int IDENTIFIER = 50;\n /** RegularExpression Id. */\n int INT_LITERAL = 51;\n\n /** Lexical state. */\n int DEFAULT = 0;\n\n /** Literal token values. */\n String[] tokenImage = {\n \"<EOF>\",\n \"\\\" \\\"\",\n \"\\\"\\\\t\\\"\",\n \"\\\"\\\\n\\\"\",\n \"\\\"\\\\f\\\"\",\n \"\\\"\\\\r\\\"\",\n \"<token of kind 6>\",\n \"<token of kind 7>\",\n \"\\\"class\\\"\",\n \"\\\"public\\\"\",\n \"\\\"static\\\"\",\n \"\\\"void\\\"\",\n \"\\\"main\\\"\",\n \"\\\"String\\\"\",\n \"\\\"extends\\\"\",\n \"\\\"return\\\"\",\n \"\\\"int\\\"\",\n \"\\\"boolean\\\"\",\n \"\\\"if\\\"\",\n \"\\\"else\\\"\",\n \"\\\"while\\\"\",\n \"\\\"true\\\"\",\n \"\\\"false\\\"\",\n \"\\\"this\\\"\",\n \"\\\"new\\\"\",\n \"\\\"System.out.println\\\"\",\n \"\\\"{\\\"\",\n \"\\\"}\\\"\",\n \"\\\"(\\\"\",\n \"\\\")\\\"\",\n \"\\\"[\\\"\",\n \"\\\"]\\\"\",\n \"\\\";\\\"\",\n \"\\\"=\\\"\",\n \"\\\"&&\\\"\",\n \"\\\"||\\\"\",\n \"\\\"<\\\"\",\n \"\\\"<=\\\"\",\n \"\\\"==\\\"\",\n \"\\\"!=\\\"\",\n \"\\\">\\\"\",\n \"\\\">=\\\"\",\n \"\\\"+\\\"\",\n \"\\\"-\\\"\",\n \"\\\"*\\\"\",\n \"\\\"/\\\"\",\n \"\\\"%\\\"\",\n \"\\\"!\\\"\",\n \"\\\".\\\"\",\n \"\\\",\\\"\",\n \"<IDENTIFIER>\",\n \"<INT_LITERAL>\",\n };\n\n}", "private String node(String name) { return prefix + \"AST\" + name + \"Node\"; }", "public void dotGraph(BufferedWriter out) throws IOException {\n out.write(\"digraph \\\"\"+this.method+\"\\\" {\\n\");\n IndexMap m = new IndexMap(\"MethodCallMap\");\n for (Iterator i=nodeIterator(); i.hasNext(); ) {\n Node n = (Node) i.next();\n out.write(\"n\"+n.id+\" [label=\\\"\"+n.toString_short()+\"\\\"];\\n\");\n }\n for (Iterator i=getCalls().iterator(); i.hasNext(); ) {\n ProgramLocation mc = (ProgramLocation) i.next();\n int k = m.get(mc);\n out.write(\"mc\"+k+\" [label=\\\"\"+mc+\"\\\"];\\n\");\n }\n for (Iterator i=nodeIterator(); i.hasNext(); ) {\n Node n = (Node) i.next();\n for (Iterator j=n.getNonEscapingEdges().iterator(); j.hasNext(); ) {\n Map.Entry e = (Map.Entry) j.next();\n String fieldName = \"\"+e.getKey();\n Iterator k;\n if (e.getValue() instanceof Set) k = ((Set)e.getValue()).iterator();\n else k = Collections.singleton(e.getValue()).iterator();\n while (k.hasNext()) {\n Node n2 = (Node) k.next();\n out.write(\"n\"+n.id+\" -> n\"+n2.id+\" [label=\\\"\"+fieldName+\"\\\"];\\n\");\n }\n }\n for (Iterator j=n.getAccessPathEdges().iterator(); j.hasNext(); ) {\n Map.Entry e = (Map.Entry) j.next();\n String fieldName = \"\"+e.getKey();\n Iterator k;\n if (e.getValue() instanceof Set) k = ((Set)e.getValue()).iterator();\n else k = Collections.singleton(e.getValue()).iterator();\n while (k.hasNext()) {\n Node n2 = (Node) k.next();\n out.write(\"n\"+n.id+\" -> n\"+n2.id+\" [label=\\\"\"+fieldName+\"\\\",style=dashed];\\n\");\n }\n }\n if (n.getPassedParameters() != null) {\n for (Iterator j=n.getPassedParameters().iterator(); j.hasNext(); ) {\n PassedParameter pp = (PassedParameter) j.next();\n int k = m.get(pp.m);\n out.write(\"n\"+n.id+\" -> mc\"+k+\" [label=\\\"p\"+pp.paramNum+\"\\\",style=dotted];\\n\");\n }\n }\n if (n instanceof ReturnedNode) {\n ReturnedNode rn = (ReturnedNode) n;\n int k = m.get(rn.m);\n out.write(\"mc\"+k+\" -> n\"+n.id+\" [label=\\\"r\\\",style=dotted];\\n\");\n }\n }\n for (Iterator i=castMap.entrySet().iterator(); i.hasNext(); ) {\n Map.Entry e = (Map.Entry) i.next();\n Node n = (Node)((Pair)e.getKey()).left;\n Node n2 = (Node)e.getValue();\n if (nodes.containsKey(n2))\n out.write(\"n\"+n.id+\" -> n\"+n2.id+\" [label=\\\"(cast)\\\"];\\n\");\n }\n out.write(\"}\\n\");\n }", "public TreeNode rewriteTreeNode(TreeNode node) {\n if (node instanceof Group) {\n BGP theBGP = new BGP(new ArrayList<TriplePatternNode>());\n Group g = (Group) node;\n ArrayList<GraphPattern> toAdd = new ArrayList<GraphPattern>(), toRemove = new ArrayList<GraphPattern>();\n\n for (GraphPattern pattern : g.getPatterns()) {\n if (pattern instanceof BGP || pattern instanceof Group) {\n if (conjoinGraphPattern(theBGP, g, pattern, toAdd))\n toRemove.add(pattern);\n }\n }\n\n for (GraphPattern gp : toRemove)\n g.removeGraphPattern(gp);\n for (GraphPattern gp : toAdd)\n g.addGraphPattern(gp);\n\n // we used to only add a BGP if it was non-empty\n // the special case of empty groups made backends more difficult\n // to implement in some cases, so now we ensure a single BGP for\n // every group, even if it is empty\n g.addGraphPattern(theBGP);\n }\n return node;\n }", "@Override\r\n public void visit(Procedure n, Graph argu) {\r\n String name = n.f0.f0.tokenImage;\r\n int args = Integer.parseInt(n.f2.f0.tokenImage);\r\n\r\n Graph graph = new Graph(name, args);\r\n n.f4.accept(this, graph);\r\n graph.BuildControlFlow();\r\n graph.AllocateReg();\r\n graph.Kanga();\r\n }", "final public void OptionalGraphPattern(Exp stack) throws ParseException {\n Exp e;\n switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n case OPTIONAL:\n jj_consume_token(OPTIONAL);\n break;\n case OPTION:\n jj_consume_token(OPTION);\n deprecated(\"option\",\"optional\");\n break;\n default:\n jj_la1[176] = jj_gen;\n jj_consume_token(-1);\n throw new ParseException();\n }\n e = GroupGraphPattern();\n e= Option.create(e);\n stack.add(e);\n }", "public abstract Multigraph buildMatchedGraph();", "Term getNodeTerm();", "final public Expression GraphNode(Exp stack) throws ParseException {\n Expression expression1;\n if (jj_2_17(2)) {\n expression1 = VarOrTerm(stack);\n } else {\n switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n case ATLIST:\n case ATPATH:\n case LPAREN:\n case LBRACKET:\n case AT:\n expression1 = TriplesNode(stack);\n break;\n default:\n jj_la1[229] = jj_gen;\n jj_consume_token(-1);\n throw new ParseException();\n }\n }\n {if (true) return expression1;}\n throw new Error(\"Missing return statement in function\");\n }", "GroupOpt getGroup();", "OperationNode getNode();", "abstract Shape nodeShape(String node, Graphics2D g2d);", "@Override\n public R visit(WhereClause n, A argu) {\n R _ret = null;\n n.nodeOptional.accept(this, argu);\n n.groupGraphPattern.accept(this, argu);\n return _ret;\n }", "@Override\n public String toString() {\n return AGGREGATE_NODE_STR + \" \" + groupingVariables + \" \" + \"[\" + substitution + \"]\" ;\n }", "@AutoEscape\n\tpublic String getNode_4();", "@Override\n\tpublic void visit(RegExpMatchOperator arg0) {\n\t\t\n\t}", "public Graph getGraph();", "public String getNodeValue ();", "@Override\r\n\tpublic Node visitDataParallelPattern(DataParallelPatternContext ctx) {\n\t\treturn super.visitDataParallelPattern(ctx);\r\n\t}", "GroupRefType createGroupRefType();", "public interface Node {\n public int arityOfOperation();\n public String getText(int depth) throws CalculationException;\n public double getResult() throws CalculationException;\n public boolean isReachable(int depth);\n public List<Node> getAdjacentNodes();\n public String getTitle();\n public void setDepth(int depth);\n}", "@Override\n public R visit(GraphPatternNotTriples n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "@AutoEscape\n\tpublic String getNode_2();", "Relations getGroupOfRelations();", "public final void rule__AstNetwork__Group_10__0__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:5216:1: ( ( 'var' ) )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:5217:1: ( 'var' )\n {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:5217:1: ( 'var' )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:5218:1: 'var'\n {\n before(grammarAccess.getAstNetworkAccess().getVarKeyword_10_0()); \n match(input,63,FOLLOW_63_in_rule__AstNetwork__Group_10__0__Impl11017); \n after(grammarAccess.getAstNetworkAccess().getVarKeyword_10_0()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public interface GroupFour extends DomElement {\n\n /**\n * Gets constructor.\n *\n * @return the constructor\n */\n @SubTag(\"constructor\")\n Constructor getConstructor();\n\n /**\n * Gets ids.\n *\n * @return the ids\n */\n @SubTagList(\"id\")\n List<Id> getIds();\n\n /**\n * Gets results.\n *\n * @return the results\n */\n @SubTagList(\"result\")\n List<Result> getResults();\n\n /**\n * Gets associations.\n *\n * @return the associations\n */\n @SubTagList(\"association\")\n List<Association> getAssociations();\n\n /**\n * Gets collections.\n *\n * @return the collections\n */\n @SubTagList(\"collection\")\n List<Collection> getCollections();\n\n /**\n * Gets discriminator.\n *\n * @return the discriminator\n */\n @SubTag(\"discriminator\")\n Discriminator getDiscriminator();\n}", "void endVisit(Group group);", "abstract Color nodeColor(String node);", "CyNetwork getGroupNetwork();", "public interface UmlgMetaNode<T> {\n// UmlgSet<T> getAllInstances();\n// UmlgSet<T> getAllInstances(Filter<T> filter);\n Vertex getVertex();\n Object getId();\n String getUid();\n}", "public T caseGraphicalNode(GraphicalNode object) {\n\t\treturn null;\n\t}", "private GraphParser(){ \n\t}", "@AutoEscape\n\tpublic String getNode_3();", "@Override\n public String visit(PatternExpr n, Object arg) {\n return null;\n }", "public interface GrammarConstants {\n\n /** End of File. */\n int EOF = 0;\n /** RegularExpression Id. */\n int SINGLE_LINE_COMMENT = 7;\n /** RegularExpression Id. */\n int FORMAL_COMMENT = 8;\n /** RegularExpression Id. */\n int MULTI_LINE_COMMENT = 9;\n /** RegularExpression Id. */\n int PLUS = 11;\n /** RegularExpression Id. */\n int MINUS = 12;\n /** RegularExpression Id. */\n int MULTIPLY = 13;\n /** RegularExpression Id. */\n int DIVIDE = 14;\n /** RegularExpression Id. */\n int MOD = 15;\n /** RegularExpression Id. */\n int UBANG = 16;\n /** RegularExpression Id. */\n int LESS_OP = 17;\n /** RegularExpression Id. */\n int MORE_OP = 18;\n /** RegularExpression Id. */\n int WHILE = 19;\n /** RegularExpression Id. */\n int IF = 20;\n /** RegularExpression Id. */\n int ELSE = 21;\n /** RegularExpression Id. */\n int BREAK = 22;\n /** RegularExpression Id. */\n int RETURN = 23;\n /** RegularExpression Id. */\n int CONTINUE = 24;\n /** RegularExpression Id. */\n int ID = 25;\n /** RegularExpression Id. */\n int LETTER = 26;\n /** RegularExpression Id. */\n int INT = 27;\n /** RegularExpression Id. */\n int SEMICOLON = 28;\n /** RegularExpression Id. */\n int LPAREN = 29;\n /** RegularExpression Id. */\n int RPAREN = 30;\n /** RegularExpression Id. */\n int LBRACKET = 31;\n /** RegularExpression Id. */\n int RBRACKET = 32;\n /** RegularExpression Id. */\n int EQUAL = 33;\n\n /** Lexical state. */\n int DEFAULT = 0;\n /** Lexical state. */\n int IN_FORMAL_COMMENT = 1;\n /** Lexical state. */\n int IN_MULTI_LINE_COMMENT = 2;\n\n /** Literal token values. */\n String[] tokenImage = {\n \"<EOF>\",\n \"\\\" \\\"\",\n \"\\\"\\\\r\\\"\",\n \"\\\"\\\\t\\\"\",\n \"\\\"\\\\n\\\"\",\n \"<token of kind 5>\",\n \"\\\"/*\\\"\",\n \"<SINGLE_LINE_COMMENT>\",\n \"\\\"*/\\\"\",\n \"\\\"*/\\\"\",\n \"<token of kind 10>\",\n \"\\\"+\\\"\",\n \"\\\"-\\\"\",\n \"\\\"*\\\"\",\n \"\\\"/\\\"\",\n \"\\\"%\\\"\",\n \"\\\"!\\\"\",\n \"\\\"<\\\"\",\n \"\\\">\\\"\",\n \"\\\"while\\\"\",\n \"\\\"if\\\"\",\n \"\\\"else\\\"\",\n \"\\\"break\\\"\",\n \"\\\"return\\\"\",\n \"\\\"continue\\\"\",\n \"<ID>\",\n \"<LETTER>\",\n \"<INT>\",\n \"\\\";\\\"\",\n \"\\\"(\\\"\",\n \"\\\")\\\"\",\n \"\\\"{\\\"\",\n \"\\\"}\\\"\",\n \"\\\"=\\\"\",\n \"\\\"?\\\"\",\n \"\\\":\\\"\",\n \"\\\"|\\\"\",\n \"\\\"&\\\"\",\n \"\\\"==\\\"\",\n \"\\\">=\\\"\",\n \"\\\"<=\\\"\",\n };\n\n}", "default String getGroup() {\n return null;\n }", "public interface RecursiveDescentParser\n{\n\n /**\n * Parses a regular expression and returns an NFA that describes that regular expression.\n * @return an NFA describing the regular expression that was parsed\n * @throws ParseException\n */\n public NFA parse() throws ParseException;\n\n}", "private Node createSpecialGrouperForRelOp(Node relOpNode, Node functionEntryNode, Node rhsNode,\n\t\t\tNode dataCriteriaSectionElem, String clauseName) throws XPathExpressionException {\n\t\tXmlProcessor hqmfXmlProcessor = measureExport.getHQMFXmlProcessor();\n\n\t\t// creating Entry Tag\n\t\tElement entryElem = hqmfXmlProcessor.getOriginalDoc().createElement(ENTRY);\n\t\tentryElem.setAttribute(TYPE_CODE, \"DRIV\");\n\n\t\tString localVariableName = relOpNode.getAttributes().getNamedItem(DISPLAY_NAME).getNodeValue();\n\t\tElement localVarElem = hqmfXmlProcessor.getOriginalDoc().createElement(LOCAL_VARIABLE_NAME);\n\t\tlocalVariableName = localVariableName + \"_\" + UUIDUtilClient.uuid(5);\n\t\tlocalVariableName = StringUtils.deleteWhitespace(localVariableName);\n\t\tlocalVarElem.setAttribute(VALUE, localVariableName);\n\t\tentryElem.appendChild(localVarElem);\n\n\t\tString root = relOpNode.getAttributes().getNamedItem(UUID).getNodeValue();\n\t\tString ext = StringUtils.deleteWhitespace(relOpNode.getAttributes().getNamedItem(DISPLAY_NAME).getNodeValue()\n\t\t\t\t+ \"_\" + relOpNode.getAttributes().getNamedItem(UUID).getNodeValue());\n\n\t\tNode grouperElem = generateEmptyGrouper(hqmfXmlProcessor, root, ext);\n\t\tentryElem.appendChild(grouperElem);\n\n\t\tNode subTreeParentNode = checkIfSubTree(relOpNode.getParentNode());\n\t\tNode idNode = findNode(entryElem, \"ID\");\n\t\tif (idNode != null && subTreeParentNode != null) {\n\t\t\tString idExtension = idNode.getAttributes().getNamedItem(EXTENSION).getNodeValue();\n\t\t\tString idRoot = idNode.getAttributes().getNamedItem(ROOT).getNodeValue();\n\t\t\troot = subTreeParentNode.getAttributes().getNamedItem(UUID).getNodeValue();\n\t\t\text = StringUtils.deleteWhitespace(relOpNode.getAttributes().getNamedItem(DISPLAY_NAME).getNodeValue()\n\t\t\t\t\t+ \"_\" + relOpNode.getAttributes().getNamedItem(UUID).getNodeValue());\n\t\t\tif (subTreeParentNode.getAttributes().getNamedItem(QDM_VARIABLE) != null) {\n\t\t\t\tString isQdmVariable = subTreeParentNode.getAttributes().getNamedItem(QDM_VARIABLE).getNodeValue();\n\t\t\t\tif (TRUE.equalsIgnoreCase(isQdmVariable)) {\n\t\t\t\t\tString occText = null;\n\t\t\t\t\t// Handled Occurrence Of QDM Variable.\n\t\t\t\t\tif (subTreeParentNode.getAttributes().getNamedItem(INSTANCE_OF) != null) {\n\t\t\t\t\t\toccText = \"occ\" + subTreeParentNode.getAttributes().getNamedItem(INSTANCE).getNodeValue()\n\t\t\t\t\t\t\t\t+ \"of_\";\n\t\t\t\t\t}\n\t\t\t\t\tif (occText != null) {\n\t\t\t\t\t\text = occText + \"qdm_var_\" + ext;\n\t\t\t\t\t} else {\n\t\t\t\t\t\text = \"qdm_var_\" + ext;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tidNode.getAttributes().getNamedItem(ROOT).setNodeValue(root);\n\t\t\tidNode.getAttributes().getNamedItem(EXTENSION).setNodeValue(ext);\n\t\t\t// Updated Excerpt tag idNode root and extension.\n\t\t\t// String hqmfXmlString = measureExport.getHQMFXmlProcessor().getOriginalXml();\n\t\t\tNode idNodeExcerpt = measureExport.getHQMFXmlProcessor().findNode(\n\t\t\t\t\tmeasureExport.getHQMFXmlProcessor().getOriginalDoc(),\n\t\t\t\t\t\"//entry/*/excerpt/*/id[@root='\" + idRoot + \"'][@extension=\\\"\" + idExtension + \"\\\"]\");\n\t\t\tif (idNodeExcerpt != null) {\n\t\t\t\tidNodeExcerpt.getAttributes().getNamedItem(ROOT).setNodeValue(root);\n\t\t\t\tidNodeExcerpt.getAttributes().getNamedItem(EXTENSION).setNodeValue(ext);\n\t\t\t}\n\n\t\t}\n\n\t\t// Element temporallyRelatedInfoNode = createBaseTemporalNode(relOpNode,\n\t\t// measureExport.getHQMFXmlProcessor());\n\t\tElement temporallyRelatedInfoNode = null;\n\t\tif (!FULFILLS.equalsIgnoreCase(relOpNode.getAttributes().getNamedItem(TYPE).getNodeValue())) {\n\t\t\ttemporallyRelatedInfoNode = createBaseTemporalNode(relOpNode, measureExport.getHQMFXmlProcessor());\n\t\t} else {\n\t\t\ttemporallyRelatedInfoNode = measureExport.getHQMFXmlProcessor().getOriginalDoc()\n\t\t\t\t\t.createElement(OUTBOUND_RELATIONSHIP);\n\t\t\ttemporallyRelatedInfoNode.setAttribute(TYPE_CODE, \"FLFS\");\n\t\t}\n\t\thandleRelOpRHS(rhsNode, temporallyRelatedInfoNode, clauseName);\n\t\tNode firstChild = entryElem.getFirstChild();\n\t\tif (LOCAL_VARIABLE_NAME.equals(firstChild.getNodeName())) {\n\t\t\tfirstChild = firstChild.getNextSibling();\n\t\t}\n\t\tNodeList outBoundList = ((Element) firstChild).getElementsByTagName(OUTBOUND_RELATIONSHIP);\n\t\tif (outBoundList != null && outBoundList.getLength() > 0) {\n\t\t\tNode outBound = outBoundList.item(0);\n\t\t\tfirstChild.insertBefore(temporallyRelatedInfoNode, outBound);\n\t\t} else {\n\t\t\tNodeList excerptList = ((Element) firstChild).getElementsByTagName(EXCERPT);\n\t\t\tif (excerptList != null && excerptList.getLength() > 0) {\n\t\t\t\tNode excerptNode = excerptList.item(0);\n\t\t\t\tfirstChild.insertBefore(temporallyRelatedInfoNode, excerptNode);\n\t\t\t} else {\n\t\t\t\tfirstChild.appendChild(temporallyRelatedInfoNode);\n\t\t\t}\n\t\t}\n\n\t\t// Add a outBound Relationship for the 'functionEntryNode' passed above.\n\t\tElement outBoundForFunction = measureExport.getHQMFXmlProcessor().getOriginalDoc()\n\t\t\t\t.createElement(OUTBOUND_RELATIONSHIP);\n\t\toutBoundForFunction.setAttribute(TYPE_CODE, \"COMP\");\n\t\tNode idNodeForFunctionEntryNode = findNode(functionEntryNode, \"ID\");\n\t\tNode excerptNodeForFunctionEntryNode = findNode(functionEntryNode, \"excerpt\");\n\t\tNode idNodeInExcerptNode = findNode(excerptNodeForFunctionEntryNode, \"id\");\n\t\tString newExtension = StringUtils.deleteWhitespace(clauseName) + \"_\"\n\t\t\t\t+ idNodeForFunctionEntryNode.getAttributes().getNamedItem(EXTENSION).getNodeValue();\n\n\t\tidNodeForFunctionEntryNode.getAttributes().getNamedItem(EXTENSION).setNodeValue(newExtension);\n\t\tidNodeInExcerptNode.getAttributes().getNamedItem(EXTENSION).setNodeValue(newExtension);\n\n\t\tNode firstChildOfFunctionEntryElem = functionEntryNode.getFirstChild();\n\t\tif (LOCAL_VARIABLE_NAME.equals(firstChildOfFunctionEntryElem.getNodeName())) {\n\t\t\tfirstChildOfFunctionEntryElem = firstChildOfFunctionEntryElem.getNextSibling();\n\t\t}\n\t\tNamedNodeMap criteriaNodeAttributeMap = firstChildOfFunctionEntryElem.getAttributes();\n\t\tif (criteriaNodeAttributeMap.getNamedItem(CLASS_CODE) != null\n\t\t\t\t&& criteriaNodeAttributeMap.getNamedItem(MOOD_CODE) != null) {\n\t\t\t// create criteriaRef\n\t\t\tElement criteriaReference = hqmfXmlProcessor.getOriginalDoc().createElement(CRITERIA_REFERENCE);\n\t\t\tcriteriaReference.setAttribute(CLASS_CODE,\n\t\t\t\t\tcriteriaNodeAttributeMap.getNamedItem(CLASS_CODE).getNodeValue());\n\t\t\tcriteriaReference.setAttribute(MOOD_CODE,\n\t\t\t\t\tcriteriaNodeAttributeMap.getNamedItem(MOOD_CODE).getNodeValue());\n\n\t\t\tNode idNodeForFunctionEntryNode_Clone = idNodeForFunctionEntryNode.cloneNode(true);\n\t\t\tcriteriaReference.appendChild(idNodeForFunctionEntryNode_Clone);\n\n\t\t\toutBoundForFunction.appendChild(criteriaReference);\n\t\t\tgrouperElem.appendChild(outBoundForFunction);\n\t\t}\n\t\tdataCriteriaSectionElem.appendChild(entryElem);\n\t\treturn entryElem;\n\t}", "public void setNode_4(String node_4);", "public List<AST> getChildNodes ();", "String getIdNode2();", "final public LogicalPlan Parse() throws ParseException {\n /*@bgen(jjtree) Parse */\n SimpleNode jjtn000 = new SimpleNode(JJTPARSE);\n boolean jjtc000 = true;\n jjtree.openNodeScope(jjtn000);LogicalOperator root = null;\n Token t1;\n Token t2;\n LogicalPlan lp = new LogicalPlan();\n log.trace(\"Entering Parse\");\n try {\n if (jj_2_1(3)) {\n t1 = jj_consume_token(IDENTIFIER);\n jj_consume_token(79);\n t2 = jj_consume_token(IDENTIFIER);\n switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n case AS:\n jj_consume_token(AS);\n jj_consume_token(80);\n TupleSchema();\n jj_consume_token(81);\n break;\n default:\n jj_la1[0] = jj_gen;\n ;\n }\n jj_consume_token(82);\n {if (true) throw new ParseException(\n \"Currently PIG does not support assigning an existing relation (\" + t1.image + \") to another alias (\" + t2.image + \")\");}\n } else if (jj_2_2(2)) {\n t1 = jj_consume_token(IDENTIFIER);\n jj_consume_token(79);\n root = Expr(lp);\n jj_consume_token(82);\n root.setAlias(t1.image);\n addAlias(t1.image, root);\n pigContext.setLastAlias(t1.image);\n } else {\n switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n case DEFINE:\n case LOAD:\n case FILTER:\n case FOREACH:\n case ORDER:\n case DISTINCT:\n case COGROUP:\n case JOIN:\n case CROSS:\n case UNION:\n case GROUP:\n case STREAM:\n case STORE:\n case LIMIT:\n case SAMPLE:\n case IDENTIFIER:\n case 80:\n root = Expr(lp);\n jj_consume_token(82);\n break;\n case SPLIT:\n jj_consume_token(SPLIT);\n root = SplitClause(lp);\n jj_consume_token(82);\n break;\n default:\n jj_la1[1] = jj_gen;\n jj_consume_token(-1);\n throw new ParseException();\n }\n }\n jjtree.closeNodeScope(jjtn000, true);\n jjtc000 = false;\n if(null != root) {\n log.debug(\"Adding \" + root.getAlias() + \" \" + root + \" to the lookup table \" + aliases);\n\n //Translate all the project(*) leaves in the plan to a sequence of projections\n ProjectStarTranslator translate = new ProjectStarTranslator(lp);\n translate.visit();\n\n addLogicalPlan(root, lp);\n\n try {\n log.debug(\"Root: \" + root.getClass().getName() + \" schema: \" + root.getSchema());\n } catch(FrontendException fee) {\n ParseException pe = new ParseException(fee.getMessage());\n pe.initCause(fee);\n {if (true) throw pe;}\n }\n }\n\n ArrayList<LogicalOperator> roots = new ArrayList<LogicalOperator>(lp.getRoots().size());\n for(LogicalOperator op: lp.getRoots()) {\n roots.add(op);\n }\n\n Map<LogicalOperator, Boolean> rootProcessed = new HashMap<LogicalOperator, Boolean>();\n for(LogicalOperator op: roots) {\n //At this point we have a logical plan for the pig statement\n //In order to construct the entire logical plan we need to traverse\n //each root and get the logical plan it belongs to. From each of those\n //plans we need the predecessors of the root of the current logical plan\n //and so on. This is a computationally intensive operatton but should\n //be fine as its restricted to the parser\n\n LogicalPlan rootPlan = aliases.get(op);\n if(null != rootPlan) {\n attachPlan(lp, op, rootPlan, rootProcessed);\n rootProcessed.put(op, true);\n }\n }\n\n log.trace(\"Exiting Parse\");\n {if (true) return lp;}\n } catch (Throwable jjte000) {\n if (jjtc000) {\n jjtree.clearNodeScope(jjtn000);\n jjtc000 = false;\n } else {\n jjtree.popNode();\n }\n if (jjte000 instanceof RuntimeException) {\n {if (true) throw (RuntimeException)jjte000;}\n }\n if (jjte000 instanceof ParseException) {\n {if (true) throw (ParseException)jjte000;}\n }\n {if (true) throw (Error)jjte000;}\n } finally {\n if (jjtc000) {\n jjtree.closeNodeScope(jjtn000, true);\n }\n }\n throw new Error(\"Missing return statement in function\");\n }", "@Override\r\n\tpublic Node visitStreamPattern(StreamPatternContext ctx) {\n\t\treturn super.visitStreamPattern(ctx);\r\n\t}", "void visit(Object node, String command);", "public String getPrefix() { return \"linknode\"; }", "@Test\n public void testConditionGraphNesting() {\n StringConcatenation _builder = new StringConcatenation();\n _builder.append(\"ePackageImport testmodel\");\n _builder.newLine();\n _builder.newLine();\n _builder.append(\"rule rulename() {\");\n _builder.newLine();\n _builder.append(\"\\t\");\n _builder.append(\"graph {\");\n _builder.newLine();\n _builder.append(\"\\t\\t\");\n _builder.append(\"node a:testmodel.type\");\n _builder.newLine();\n _builder.append(\"\\t\\t\");\n _builder.append(\"matchingFormula {\");\n _builder.newLine();\n _builder.append(\"\\t\\t\\t\");\n _builder.append(\"formula !conGraph\");\n _builder.newLine();\n _builder.append(\"\\t\\t\\t\");\n _builder.append(\"conditionGraph conGraph {\");\n _builder.newLine();\n _builder.append(\"\\t\\t\\t\\t\");\n _builder.append(\"node b:testmodel.type\");\n _builder.newLine();\n _builder.append(\"\\t\\t\\t\\t\");\n _builder.append(\"reuse a {\");\n _builder.newLine();\n _builder.append(\"\\t\\t\\t\\t\\t\");\n _builder.append(\"attribute=\\\"test\\\"\");\n _builder.newLine();\n _builder.append(\"\\t\\t\\t\\t\");\n _builder.append(\"}\");\n _builder.newLine();\n _builder.append(\"\\t\\t\\t\\t\");\n _builder.append(\"edges [(a->b:testmodel.type)]\");\n _builder.newLine();\n _builder.append(\"\\t\\t\\t\\t\");\n _builder.append(\"matchingFormula {\");\n _builder.newLine();\n _builder.append(\"\\t\\t\\t\\t\\t\");\n _builder.append(\"formula conNestGraph\");\n _builder.newLine();\n _builder.append(\"\\t\\t\\t\\t\\t\");\n _builder.append(\"conditionGraph conNestGraph {\");\n _builder.newLine();\n _builder.append(\"\\t\\t\\t\\t\\t\\t\");\n _builder.append(\"node c:testmodel.type\");\n _builder.newLine();\n _builder.append(\"\\t\\t\\t\\t\\t\");\n _builder.append(\"}\");\n _builder.newLine();\n _builder.append(\"\\t\\t\\t\\t\");\n _builder.append(\"}\");\n _builder.newLine();\n _builder.append(\"\\t\\t\\t\");\n _builder.append(\"}\");\n _builder.newLine();\n _builder.append(\"\\t\\t\");\n _builder.append(\"}\");\n _builder.newLine();\n _builder.append(\"\\t\");\n _builder.append(\"}\");\n _builder.newLine();\n _builder.append(\"}\");\n _builder.newLine();\n _builder.newLine();\n final String model = _builder.toString();\n final Procedure1<FormatterTestRequest> _function = new Procedure1<FormatterTestRequest>() {\n public void apply(final FormatterTestRequest it) {\n it.setToBeFormatted(model.replace(\"\\n\", \"\").replace(\"\\t\", \"\"));\n it.setExpectation(model);\n }\n };\n this.assertFormatted(_function);\n }", "public void parseCGXMLCG( Graph graph ) {\n if ( graph == null ) {\n _topLevelGraph = new Graph(); // never used\n } else {\n _topLevelGraph = graph;\n }\n Element docelem = doc.getDocumentElement();\n if ( docelem == null ) {\n return;\n }\n\n if ( !docelem.getTagName().equals( \"conceptualgraph\" ) ) {\n Global.warning( \"Outermost XML tag \\\"\" + docelem.getTagName() + \"\\\" should be \\\"conceptualgraph\\\".\" );\n }\n\n if ( !this.isPreserveGraph() ) {\n NamedNodeMap docmap = docelem.getAttributes();\n _topLevelGraph.createdTimeStamp = getNamedAttributeFromMap( docmap, \"created\" );\n _topLevelGraph.modifiedTimeStamp = getNamedAttributeFromMap( docmap, \"modified\" );;\n if ( _topLevelGraph.modifiedTimeStamp == null ) {\n _topLevelGraph.modifiedTimeStamp = _topLevelGraph.createdTimeStamp;\n }\n if ( _topLevelGraph.createdTimeStamp == null ) {\n _topLevelGraph.createdTimeStamp = _topLevelGraph.modifiedTimeStamp;\n }\n\n String s = getNamedAttributeFromMap( docmap, \"wrapLabels\" );\n if ( s != null ) {\n _topLevelGraph.wrapLabels = Boolean.parseBoolean( s );\n }\n s = getNamedAttributeFromMap( docmap, \"wrapColumns\" );\n if ( s != null ) {\n _topLevelGraph.wrapColumns = Integer.parseInt( s );\n }\n }\n\n NodeList nodes = docelem.getChildNodes();\n for ( int childnum = 0; childnum < nodes.getLength(); childnum++ ) {\n if ( nodes.item( childnum ).getNodeType() == Node.ELEMENT_NODE ) {\n // is either a top level graph element or a graph being pasted/duplicated\n Element elem = (Element)nodes.item( childnum );\n if ( isPreserveGraph() ) {\n GraphObject go = instantiateGraphObject( elem.getTagName() );\n if ( go != null ) {\n setID( elem, go ); // make sure we set the id before adding to the graph\n _topLevelGraph.insertObject( go ); // add this object to the graph\n if ( isMakeList() ) {\n _parsedObjects.add( go ); // add to the list of objects to be returned\n }\n parseGraphObjectElement( elem, go ); // populate the object\n }\n } else {\n parseCGXMLGraphTagElement( elem, _topLevelGraph );\n }\n }\n }\n }", "public int getNodeLabel ();", "void processGraphData(Graph aNodes);", "@AutoEscape\n\tpublic String getNode_1();", "public interface JavaGrammarConstants {\n\n /** End of File. */\n int EOF = 0;\n /** RegularExpression Id. */\n int PLUS = 5;\n /** RegularExpression Id. */\n int MINUS = 6;\n /** RegularExpression Id. */\n int MULTIPLY = 7;\n /** RegularExpression Id. */\n int DIVIDE = 8;\n /** RegularExpression Id. */\n int OPEN_PARENTHESIS = 9;\n /** RegularExpression Id. */\n int CLOSED_PARENTHESIS = 10;\n /** RegularExpression Id. */\n int OPEN_BRACKET = 11;\n /** RegularExpression Id. */\n int CLOSED_BRACKET = 12;\n /** RegularExpression Id. */\n int OPEN_BRACE = 13;\n /** RegularExpression Id. */\n int CLOSED_BRACE = 14;\n /** RegularExpression Id. */\n int SEMICOLON = 15;\n /** RegularExpression Id. */\n int EQUALS = 16;\n /** RegularExpression Id. */\n int COMPARISON = 17;\n /** RegularExpression Id. */\n int LESS = 18;\n /** RegularExpression Id. */\n int GREATER = 19;\n /** RegularExpression Id. */\n int NUMBER = 20;\n /** RegularExpression Id. */\n int DIGIT = 21;\n /** RegularExpression Id. */\n int LETTER = 22;\n\n /** Lexical state. */\n int DEFAULT = 0;\n\n /** Literal token values. */\n String[] tokenImage = {\n \"<EOF>\",\n \"\\\" \\\"\",\n \"\\\"\\\\r\\\"\",\n \"\\\"\\\\t\\\"\",\n \"\\\"\\\\n\\\"\",\n \"\\\"+\\\"\",\n \"\\\"-\\\"\",\n \"\\\"*\\\"\",\n \"\\\"/\\\"\",\n \"\\\"(\\\"\",\n \"\\\")\\\"\",\n \"\\\"{\\\"\",\n \"\\\"}\\\"\",\n \"\\\"[\\\"\",\n \"\\\"]\\\"\",\n \"\\\";\\\"\",\n \"\\\"=\\\"\",\n \"<COMPARISON>\",\n \"\\\"<\\\"\",\n \"\\\">\\\"\",\n \"<NUMBER>\",\n \"<DIGIT>\",\n \"<LETTER>\",\n \"\\\"new\\\"\",\n \"\\\",\\\"\",\n \"\\\"System.out.println\\\"\",\n \"\\\"\\\\\\\"\\\"\",\n \"\\\"for\\\"\",\n \"\\\"int\\\"\",\n \"\\\"++\\\"\",\n \"\\\"--\\\"\",\n };\n\n}", "private NetSqlca[] parseSQLDIAGGRP() {\n if (readFdocaOneByte() == CodePoint.NULLDATA) {\n return null;\n }\n\n parseSQLDIAGSTT();\n NetSqlca[] sqlca = parseSQLDIAGCI();\n parseSQLDIAGCN();\n\n return sqlca;\n }", "public interface GraphmlLabelParser<LabelType> extends LabelParser<LabelType> {\n\n /**\n * @return a Set of all possible attribute names\n */\n public Set<String> attributes();\n\n /**\n * @param map\n * @return the label represented by the given map\n * @throws ParseException\n */\n public LabelType parseML(Map<String, String> map) throws ParseException;\n\n /**\n * @param label\n * @return the Map representing the given label\n */\n public Map<String, String> serializeML(LabelType label);\n\n /**\n * compares and set the attributes for this Parser\n *\n * @param foundAttributes\n * @return <code>true</code>, if the attributes are possible, otherwise\n * <code>false</code>\n */\n public boolean setAttributes(Set<String> foundAttributes);\n\n}", "public Rule rewriteSeparateGM() {\n\n // Extract all the variables used in the rule\n final Set<String> vars = new HashSet<String>();\n vars.addAll(Algebra.extractVariables(this.deleteExpr, false));\n vars.addAll(Algebra.extractVariables(this.insertExpr, false));\n vars.addAll(Algebra.extractVariables(this.whereExpr, false));\n\n // Select a fresh graph variable\n String graphVarName = \"g\";\n int index = 0;\n while (vars.contains(graphVarName)) {\n graphVarName = \"g\" + index++;\n }\n final Var graphVar = new Var(graphVarName);\n\n // Generate the where expr if missing\n TupleExpr whereExpr = this.whereExpr;\n if (whereExpr == null) {\n whereExpr = new StatementPattern(new Var(\"s\"), new Var(\"p\"), new Var(\"o\"),\n graphVar.clone());\n }\n\n // Rewrite the rule\n final TupleExpr newDeleteExpr = Algebra.rewriteGraph(this.deleteExpr, graphVar);\n final TupleExpr newInsertExpr = Algebra.rewriteGraph(this.insertExpr, graphVar);\n final TupleExpr newWhereExpr = Algebra.rewriteGraph(whereExpr, graphVar);\n return new Rule(newID(this.id.stringValue()), this.fixpoint, this.phase, newDeleteExpr,\n newInsertExpr, newWhereExpr);\n }", "public interface GNode{\n\n\tpublic String getName();\n\tpublic GNode[] getChildren();\n\tpublic ArrayList<GNode> walkGraph(GNode parent);\n\tpublic ArrayList<ArrayList<GNode>> paths(GNode parent);\n\n}", "IMappingNode getMappingNode(Object groupID) throws Exception;", "@Test\n public void getGraph2() throws Exception {\n final BlankNodeOrIRI graph2Name = (BlankNodeOrIRI) dataset.stream(Optional.empty(), bob, isPrimaryTopicOf, null)\n .map(Quad::getObject).findAny().get();\n\n try (final Graph g2 = dataset.getGraph(graph2Name).get()) {\n assertEquals(4, g2.size());\n final Triple bobNameTriple = bobNameQuad.asTriple();\n assertTrue(g2.contains(bobNameTriple));\n assertTrue(g2.contains(bob, member, bnode1));\n assertTrue(g2.contains(bob, member, bnode2));\n assertFalse(g2.contains(bnode1, name, secretClubName));\n assertTrue(g2.contains(bnode2, name, companyName));\n }\n }", "void visit(Namespace namespace);", "public interface PathNodeMember extends PathNode {\n}", "public void testGetNotation() {\n System.out.println(\"getNotation\");\n\n /**\n * ***************** Teste 01 ***************\n */\n String uniquePathValue = \"/HTML[1]/BODY[1]/FONT[1]/TABLE[2]/TR[2]/TD[2]/TABLE[2]/TR[1]/TD[1]/TABLE[1]/TR[1]/TD[1]/TABLE[1]/TR[1]/TD[3]/A[1]/text()[1]\";\n String uniquePathLabel = \"/HTML[1]/BODY[1]/FONT[1]/TABLE[2]/TR[2]/TD[2]/TABLE[2]/TR[1]/TD[1]/TABLE[1]/TR[1]/TD[1]/TABLE[1]/TR[1]/TD[1]/p[2]/text()[1]\";\n String label = \"Author:\";\n\n String expResult = \"MATCH (a2:Template)<--(a1)<--(a0)<--(b)-->(c0)-->(c1)-->(c2) \"\n + \"\\nWHERE a2.VALUE={value0} AND a2.PATH={value1} AND a2.POSITION={value2} \"\n + \"\\nAND a1.VALUE={value3} AND a1.POSITION={value4} \"\n + \"\\nAND a0.VALUE={value5} AND a0.POSITION={value6} \"\n + \"\\nAND b.VALUE={value7} \"\n + \"\\nAND c0.VALUE={value8} AND c0.POSITION={value9} \"\n + \"\\nAND c1.VALUE={value10} AND c1.POSITION={value11} \"\n + \"\\nAND c2.NODE_TYPE={value12} AND c2.POSITION={value13} \"\n + \"\\nRETURN c2.VALUE AS VALUE, c2.URL AS URL, 'Template' in LABELS(c2) as template\";\n CypherNotation cypherNotation = new CypherNotation(label, uniquePathLabel, uniquePathValue);\n CypherRule result = cypherNotation.getNotation();\n assertEquals(\"Teste 01\", expResult.replaceAll(\"\\\\s+\", \"\"), result.getQuery().replaceAll(\"\\\\s+\", \"\"));\n\n /**\n * ***************** Teste 02 ***************\n */\n uniquePathValue = \"/HTML[1]/BODY[1]/FONT[1]/TABLE[2]/TR[2]/TD[2]/TABLE[2]/TR[1]/TD[1]/TABLE[1]/TR[1]/TD[1]/TABLE[1]/TR[1]/TD[3]/A[1]/text()[15]\";\n uniquePathLabel = \"/HTML[1]/BODY[1]/FONT[1]/TABLE[2]/TR[2]/TD[2]/TABLE[2]/TR[1]/TD[1]/TABLE[1]/TR[1]/TD[1]/TABLE[1]/TR[1]/TD[1]/text()[13]\";\n\n expResult = \"MATCH (a1:Template)<--(a0)<--(b)-->(c0)-->(c1)-->(c2) \"\n + \"\\nWHERE a1.VALUE={value0} AND a1.PATH={value1} AND a1.POSITION={value2} \"\n + \"\\nAND a0.VALUE={value3} AND a0.POSITION={value4} \"\n + \"\\nAND b.VALUE={value5} \"\n + \"\\nAND c0.VALUE={value6} AND c0.POSITION={value7} \"\n + \"\\nAND c1.VALUE={value8} AND c1.POSITION={value9} \"\n + \"\\nAND c2.NODE_TYPE={value10} AND c2.POSITION={value11} \"\n + \"\\nRETURN c2.VALUE AS VALUE, c2.URL AS URL, 'Template' in LABELS(c2) as template\";\n\n cypherNotation = new CypherNotation(label, uniquePathLabel, uniquePathValue);\n result = cypherNotation.getNotation();\n assertEquals(\"Teste 02\", expResult.replaceAll(\"\\\\s+\", \"\"), result.getQuery().replaceAll(\"\\\\s+\", \"\"));\n\n /**\n * ***************** Teste 03 ***************\n */\n uniquePathValue = \"/HTML[1]/BODY[1]/FONT[1]/TABLE[2]/TR[2]/TD[2]/TABLE[2]/TR[1]/TD[1]/TABLE[1]/TR[1]/TD[1]/TABLE[1]/TR[1]/TD[1]/A[1]/text()[1]\";\n uniquePathLabel = \"/HTML[1]/BODY[1]/FONT[1]/TABLE[2]/TR[2]/TD[2]/TABLE[2]/TR[1]/TD[1]/TABLE[1]/TR[1]/TD[1]/TABLE[1]/TR[1]/TD[1]/text()[1]\";\n expResult = \"MATCH (a0:Template)<--(b)-->(c0)-->(c1) \"\n + \"\\nWHERE a0.VALUE={value0} AND a0.PATH={value1} AND a0.POSITION={value2} \"\n + \"\\nAND b.VALUE={value3} \"\n + \"\\nAND c0.VALUE={value4} AND c0.POSITION={value5} \"\n + \"\\nAND c1.NODE_TYPE={value6} AND c1.POSITION={value7} \"\n + \"\\nRETURN c1.VALUE AS VALUE, c1.URL AS URL, 'Template' in LABELS(c1) as template\";\n\n cypherNotation = new CypherNotation(label, uniquePathLabel, uniquePathValue);\n result = cypherNotation.getNotation();\n System.out.println(result);\n assertEquals(\"Teste 03\", expResult.replaceAll(\"\\\\s+\", \"\"), result.getQuery().replaceAll(\"\\\\s+\", \"\"));\n }", "public final void ruleAstInputPattern() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:1139:2: ( ( ( rule__AstInputPattern__Group__0 ) ) )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:1140:1: ( ( rule__AstInputPattern__Group__0 ) )\n {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:1140:1: ( ( rule__AstInputPattern__Group__0 ) )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:1141:1: ( rule__AstInputPattern__Group__0 )\n {\n before(grammarAccess.getAstInputPatternAccess().getGroup()); \n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:1142:1: ( rule__AstInputPattern__Group__0 )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:1142:2: rule__AstInputPattern__Group__0\n {\n pushFollow(FOLLOW_rule__AstInputPattern__Group__0_in_ruleAstInputPattern2376);\n rule__AstInputPattern__Group__0();\n\n state._fsp--;\n\n\n }\n\n after(grammarAccess.getAstInputPatternAccess().getGroup()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "private void parse ( GPNode node ) {\n\n nodes++;\n\n int d = node.atDepth();\n if ( d > depth ) depth = d;\n\n for ( int i = 0; i < node.children.length; i++ )\n parse(node.children[i]);\n\n }", "public interface ParserConstants {\n\n /** End of File. */\n int EOF = 0;\n /** RegularExpression Id. */\n int IMPLIES = 1;\n /** RegularExpression Id. */\n int EQUIVALENT = 2;\n /** RegularExpression Id. */\n int AND = 3;\n /** RegularExpression Id. */\n int OR = 4;\n /** RegularExpression Id. */\n int LBRACKET = 5;\n /** RegularExpression Id. */\n int RBRACKET = 6;\n /** RegularExpression Id. */\n int NOT = 7;\n /** RegularExpression Id. */\n int EQUALS = 8;\n /** RegularExpression Id. */\n int FORALL = 9;\n /** RegularExpression Id. */\n int THEREEXISTS = 10;\n /** RegularExpression Id. */\n int VARIABLE = 11;\n /** RegularExpression Id. */\n int PREDICATE = 12;\n\n /** Literal token values. */\n String[] tokenImage = {\n \"<EOF>\",\n \"<IMPLIES>\",\n \"<EQUIVALENT>\",\n \"<AND>\",\n \"<OR>\",\n \"<LBRACKET>\",\n \"<RBRACKET>\",\n \"<NOT>\",\n \"<EQUALS>\",\n \"<FORALL>\",\n \"<THEREEXISTS>\",\n \"<VARIABLE>\",\n \"<PREDICATE>\",\n };\n\n}", "Node getNode();", "protected abstract Regex pattern();", "public void testNodesWithNames() {\n\t\tString[] grp1 = new String[] {\"Paucituberculata\", \"Microbiotheria\", \"Dasyuromorphia\", \"Peramelemorphia\", \"Didelphimorphia\"};\n\t\tString[] grp2 = new String[] {\"Omma jurassicum\", \"Omma sagitta\", \"Omma rutherfordi\"};\n\t\tString[] grp3 = new String[] {\"Meru phyllisae\", \"Haliplidae\", \"Gyrinidae\"};\n\t\t\n\t\tcompareNodesWithNames(new ArrayList(Arrays.asList(grp1)), new Long(15994));\n\t\t//Paucituberculata Microbiotheria Dasyuromorphia Peramelemorphia Didelphimorphia 15994\n\t\t\n\t\tcompareNodesWithNames(new ArrayList(Arrays.asList(grp2)), new Long(9042));\n\t\t//Omma jurassicum Omma sagitta Omma rutherfordi 9042\n\t\t\n\t\tcompareNodesWithNames(new ArrayList(Arrays.asList(grp3)), new Long(8875));\n\t\t//Meru phyllisae Haliplidae Gyrinidae 8875\n\t}", "private String buildWalkerGroup(WalkerGroup group, PersistentContext context) {\n final StringBuilder xml = new StringBuilder();\n xml.append(\"<walker_group>\\n\");\n xml.append(tab(walkerBuilder.buildWalker(group, context)));\n xml.append(\"\\t<walker_group_name>\").append(escape(group.getName())).append(\"</walker_group_name>\\n\");\n for (final DiagramWalker walker : group.getDiagramWalkerList()) {\n final String nodeId = context.walkerMap.get(((ERVirtualTable) walker).getRawTable());\n xml.append(\"\\t<diagram_walker>\").append(nodeId).append(\"</diagram_walker>\\n\");\n }\n xml.append(\"</walker_group>\\n\");\n return xml.toString();\n }", "public void visit(Literal literal) {}", "public String toDot() {\n\t\tStringBuilder b = new StringBuilder();\n\t\tb.append(\"digraph BP {\\n\");\n\n\t\t// standard style for nodes and edges\n\t\tb.append(\"graph [fontname=\\\"Helvetica\\\" nodesep=0.3 ranksep=\\\"0.2 equally\\\" fontsize=10];\\n\");\n\t\tb.append(\"node [fontname=\\\"Helvetica\\\" fontsize=8 fixedsize width=\\\".3\\\" height=\\\".3\\\" label=\\\"\\\" style=filled fillcolor=white];\\n\");\n\t\tb.append(\"edge [fontname=\\\"Helvetica\\\" fontsize=8 color=white arrowhead=none weight=\\\"20.0\\\"];\\n\");\n\n\t\t// String tokenFillString =\n\t\t// \"fillcolor=black peripheries=2 height=\\\".2\\\" width=\\\".2\\\" \";\n\t\tString cutOffFillString = \"fillcolor=gold\";\n\t\tString antiFillString = \"fillcolor=red\";\n\t\tString impliedFillString = \"fillcolor=violet\";\n\t\tString hiddenFillString = \"fillcolor=grey\";\n\n\t\t// first print all conditions\n\t\tb.append(\"\\n\\n\");\n\t\tb.append(\"node [shape=circle];\\n\");\n\t\tfor (DNode n : bp.allConditions) {\n\t\t\tif (!option_printAnti && n.isAnti)\n\t\t\t\tcontinue;\n\t\t\t/*\n\t\t\t * - print current marking if (cutNodes.contains(n))\n\t\t\t * b.append(\" c\"+n.localId+\" [\"+tokenFillString+\"]\\n\"); else\n\t\t\t */\n\t\t\tif (n.isAnti && n.isHot)\n\t\t\t\tb.append(\" c\" + n.globalId + \" [\" + antiFillString + \"]\\n\");\n\t\t\telse if (n.isCutOff)\n\t\t\t\tb.append(\" c\" + n.globalId + \" [\" + cutOffFillString + \"]\\n\");\n\t\t\telse\n\t\t\t\tb.append(\" c\" + n.globalId + \" []\\n\");\n\n//\t\t\tString auxLabel = \"\";\n\n\t\t\tb.append(\" c\" + n.globalId + \"_l [shape=none];\\n\");\n\t\t\t// Diagrams\n\t\t\t// b.append(\" c\"+n.globalId+\"_l -> c\"+n.globalId+\" [headlabel=\\\"\"+n+\" \"+auxLabel+\"\\\"]\\n\");\n\t\t}\n\n\t\t// then print all events\n\t\tb.append(\"\\n\\n\");\n\t\tb.append(\"node [shape=box];\\n\");\n\t\tfor (DNode n : bp.allEvents) {\n\t\t\tif (!option_printAnti && n.isAnti)\n\t\t\t\tcontinue;\n\t\t\tif (n.isAnti && n.isHot)\n\t\t\t\tb.append(\" e\" + n.globalId + \" [\" + antiFillString + \"]\\n\");\n\t\t\telse if (n.isAnti && !n.isHot)\n\t\t\t\tb.append(\" e\" + n.globalId + \" [\" + hiddenFillString + \"]\\n\");\n\t\t\telse if (n.isImplied)\n\t\t\t\tb.append(\" e\" + n.globalId + \" [\" + impliedFillString + \"]\\n\");\n\t\t\telse if (n.isCutOff)\n\t\t\t\tb.append(\" e\" + n.globalId + \" [\" + cutOffFillString + \"]\\n\");\n\t\t\telse\n\t\t\t\tb.append(\" e\" + n.globalId + \" []\\n\");\n\n\t\t\tString auxLabel = \"\";\n\n\t\t\tb.append(\" e\" + n.globalId + \"_l [shape=none]\\n\");\n\t\t\t// Diagrams\n\t\t\tb.append(\" e\"+n.globalId+\"_l -> e\"+n.globalId+\" [headlabel=\\\"\"+n+\" \"+auxLabel+\"\\\"]\\n\");\n//\t\t\tb.append(\" label=\\\"\"+n+\"\\\"];\\n\");\n\t\t}\n\n\t\t// finally, print all edges\n\t\tb.append(\"\\n\\n\");\n\t\tb.append(\" edge [fontname=\\\"Helvetica\\\" fontsize=8 arrowhead=normal color=black];\\n\");\n\t\tfor (DNode n : bp.allConditions) {\n\t\t\tString prefix = n.isEvent ? \"e\" : \"c\";\n\t\t\tfor (int i = 0; i < n.pre.length; i++) {\n\t\t\t\tif (n.pre[i] == null)\n\t\t\t\t\tcontinue;\n\t\t\t\tif (!option_printAnti && n.isAnti)\n\t\t\t\t\tcontinue;\n\n\t\t\t\tif (n.pre[i].isEvent)\n\t\t\t\t\tb.append(\" e\" + n.pre[i].globalId + \" -> \" + prefix\n\t\t\t\t\t\t\t+ n.globalId + \" [weight=10000.0]\\n\");\n\t\t\t\telse\n\t\t\t\t\tb.append(\" c\" + n.pre[i].globalId + \" -> \" + prefix\n\t\t\t\t\t\t\t+ n.globalId + \" [weight=10000.0]\\n\");\n\t\t\t}\n\t\t}\n\n\t\tfor (DNode n : bp.allEvents) {\n\t\t\tString prefix = n.isEvent ? \"e\" : \"c\";\n\t\t\tfor (int i = 0; i < n.pre.length; i++) {\n\t\t\t\tif (n.pre[i] == null)\n\t\t\t\t\tcontinue;\n\t\t\t\tif (!option_printAnti && n.isAnti)\n\t\t\t\t\tcontinue;\n\t\t\t\tif (n.pre[i].isEvent)\n\t\t\t\t\tb.append(\" e\" + n.pre[i].globalId + \" -> \" + prefix\n\t\t\t\t\t\t\t+ n.globalId + \" [weight=10000.0]\\n\");\n\t\t\t\telse\n\t\t\t\t\tb.append(\" c\" + n.pre[i].globalId + \" -> \" + prefix\n\t\t\t\t\t\t\t+ n.globalId + \" [weight=10000.0]\\n\");\n\t\t\t}\n\t\t}\n\n\t\t// and add links from cutoffs to corresponding events (exclusive case)\n\t\tb.append(\"\\n\\n\");\n\t\tb.append(\" edge [fontname=\\\"Helvetica\\\" fontsize=8 arrowhead=normal color=red];\\n\");\n\t\tfor (DNode n : bp.allEvents) {\n\t\t\tif (n.isCutOff\n\t\t\t\t\t&& futureEquivalence().getElementary_ccPair().get(n) != null) {\n\t\t\t\tif (!this.isCorrInLocalConfig(n, futureEquivalence()\n\t\t\t\t\t\t.getElementary_ccPair().get(n)))\n\t\t\t\t\tb.append(\" e\"\n\t\t\t\t\t\t\t+ n.globalId\n\t\t\t\t\t\t\t+ \" -> e\"\n\t\t\t\t\t\t\t+ futureEquivalence().getElementary_ccPair().get(n).globalId\n\t\t\t\t\t\t\t+ \" [weight=10000.0]\\n\");\n\t\t\t}\n\t\t}\n\n\t\t// and add links from cutoffs to corresponding events (causal case)\n\t\tb.append(\"\\n\\n\");\n\t\tb.append(\" edge [fontname=\\\"Helvetica\\\" fontsize=8 arrowhead=normal color=blue];\\n\");\n\t\tfor (DNode n : bp.allEvents) {\n\t\t\tif (n.isCutOff\n\t\t\t\t\t&& futureEquivalence().getElementary_ccPair().get(n) != null) {\n\t\t\t\tif (this.isCorrInLocalConfig(n, futureEquivalence()\n\t\t\t\t\t\t.getElementary_ccPair().get(n)))\n\t\t\t\t\tb.append(\" e\"\n\t\t\t\t\t\t\t+ n.globalId\n\t\t\t\t\t\t\t+ \" -> e\"\n\t\t\t\t\t\t\t+ futureEquivalence().getElementary_ccPair().get(n).globalId\n\t\t\t\t\t\t\t+ \" [weight=10000.0]\\n\");\n\t\t\t}\n\t\t}\n\n\t\tb.append(\"}\");\n\t\treturn b.toString();\n\t}", "String getIdNode1();", "public interface QuotedL1Node {\n\n}", "GroupIdentifierType getType();", "@AutoEscape\n\tpublic String getNode_5();", "private GraphPattern sparqlToSemQA(Element elm) throws SemQAException {\n\t\tGraphPattern ret;\r\n\t\tif (elm instanceof ElementGroup) {\r\n\t\t\tret = groupToSemQA((ElementGroup) elm);\r\n\t\t}\r\n\t\telse if (elm instanceof ElementUnion) {\r\n\t\t\tret = unionToOr((ElementUnion) elm);\r\n\t\t}\r\n\t\telse if (elm instanceof ElementTriplesBlock) {\r\n\t\t\tret = triplesBlockToJoin((ElementTriplesBlock) elm);\r\n\t\t}\r\n else if (elm instanceof ElementPathBlock) {\r\n ret = pathBlockToJoin((ElementPathBlock) elm);\r\n }\r\n\t\telse if (elm instanceof ElementFilter) {\r\n\t\t\tthrow new SemQAException(\"semQA: FILTER without pattern unsupported\");\r\n\t\t}\r\n\t\telse if (elm instanceof ElementOptional) {\r\n\t\t\tthrow new SemQAException(\"semQA: OPTIONAL without non-optional pattern unsupported\");\r\n\t\t}\r\n\t\telse {\r\n\t\t\tthrow new SemQAException(\"semQA: unsupported element: \" + elm.toString());\r\n\t\t}\r\n\t\treturn ret;\r\n\t}", "R visitFreeVariable(Formula f, String name);" ]
[ "0.64475507", "0.5839819", "0.570901", "0.55439186", "0.5357252", "0.52352715", "0.51607496", "0.51520747", "0.49921533", "0.49526307", "0.49525937", "0.4949245", "0.49392578", "0.49353483", "0.49336183", "0.48997384", "0.48800915", "0.4868388", "0.48658913", "0.4857106", "0.4857106", "0.48550445", "0.48356733", "0.48346412", "0.4830734", "0.48239562", "0.48124892", "0.4810997", "0.47969252", "0.47863626", "0.47849727", "0.47692004", "0.47564712", "0.47549307", "0.47277093", "0.47208208", "0.4716818", "0.47128227", "0.4702069", "0.46935165", "0.46844083", "0.46620753", "0.46552387", "0.46529907", "0.4651962", "0.46467295", "0.4643183", "0.46403873", "0.4627", "0.46221194", "0.46213976", "0.46192384", "0.46040282", "0.4601559", "0.45990816", "0.4595811", "0.45928407", "0.45923975", "0.45889658", "0.457384", "0.45676962", "0.45479876", "0.45347172", "0.453188", "0.4530765", "0.45303696", "0.45226738", "0.45194548", "0.45166746", "0.45112967", "0.44814214", "0.44807982", "0.44800237", "0.44735548", "0.44719717", "0.44716674", "0.44698066", "0.44656825", "0.444978", "0.44412404", "0.44337246", "0.4433227", "0.44303516", "0.44296986", "0.44275588", "0.44258037", "0.44094887", "0.4405994", "0.44051123", "0.44013867", "0.43958694", "0.43957758", "0.43925008", "0.4391139", "0.43908662", "0.438516", "0.43810707", "0.4377783", "0.4370058", "0.43624526" ]
0.7301588
0
groupGraphPattern > GroupGraphPattern() nodeListOptional > ( GroupGraphPattern() )
@Override public R visit(GroupOrUnionGraphPattern n, A argu) { R _ret = null; n.groupGraphPattern.accept(this, argu); n.nodeListOptional.accept(this, argu); return _ret; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public R visit(OptionalGraphPattern n, A argu) {\n R _ret = null;\n n.nodeToken.accept(this, argu);\n n.groupGraphPattern.accept(this, argu);\n return _ret;\n }", "public abstract Multigraph buildMatchedGraph();", "final public void GroupOrUnionGraphPattern(Exp stack) throws ParseException {\n Exp temp, res;\n res = GroupGraphPattern();\n label_36:\n while (true) {\n switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n case UNION:\n case OR:\n ;\n break;\n default:\n jj_la1[179] = jj_gen;\n break label_36;\n }\n switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n case UNION:\n jj_consume_token(UNION);\n break;\n case OR:\n jj_consume_token(OR);\n deprecated(\"or\",\"union\");\n break;\n default:\n jj_la1[180] = jj_gen;\n jj_consume_token(-1);\n throw new ParseException();\n }\n temp = res;\n res = Or.create();\n res.add(temp);\n temp = GroupGraphPattern();\n res.add(temp);\n }\n stack.add(res);\n }", "final public void OptionalGraphPattern(Exp stack) throws ParseException {\n Exp e;\n switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n case OPTIONAL:\n jj_consume_token(OPTIONAL);\n break;\n case OPTION:\n jj_consume_token(OPTION);\n deprecated(\"option\",\"optional\");\n break;\n default:\n jj_la1[176] = jj_gen;\n jj_consume_token(-1);\n throw new ParseException();\n }\n e = GroupGraphPattern();\n e= Option.create(e);\n stack.add(e);\n }", "Collection<? extends Subdomain_group> getIsVertexOf();", "private GraphPattern translateToGP(){\r\n\r\n\t\t//Generate the graph pattern object\r\n\t\tGraphPattern gp = new GraphPattern();\r\n\r\n\r\n\t\t//For each Node object, create an associated MyNode object\r\n\t\tint nodeCount = 0;\r\n\t\tfor (Node n : allNodes){\r\n\t\t\tMyNode myNode = new MyNode(nodeCount, \"PERSON\");\r\n\t\t\tnodesMap.put(n, myNode);\r\n\t\t\tgp.addNode(myNode);\r\n\r\n\t\t\tnodeCount++;\r\n\t\t}\r\n\r\n\t\t//For k random MyNodes add the id as an attribute/property.\r\n\t\t//This id is used for cypher queries.\r\n\t\t//This process uses simple random sampling\r\n\t\tif (rooted > allNodes.size()){\r\n\t\t\trooted = allNodes.size();\r\n\t\t}\r\n\r\n\t\tList<Node> allNodesClone = new ArrayList<Node>();\r\n\t\tallNodesClone.addAll(allNodes);\r\n\r\n\t\tfor (int i = 0; i < rooted; i++){\r\n\t\t\t//Pick a random node from allNodes and get it's corresponding MyNode\r\n\t\t\tint idx = random.nextInt(allNodesClone.size());\r\n\t\t\tNode node = allNodesClone.get(idx);\r\n\t\t\tMyNode myNode = nodesMap.get(node);\r\n\r\n\t\t\t//Add the property to myNode\r\n\t\t\ttry (Transaction tx = graphDb.beginTx()){\r\n\t\t\t\tmyNode.addAttribute(\"id\", node.getProperty(\"id\")+\"\");\r\n\t\t\t\ttx.success();\r\n\t\t\t}\r\n\t\t\t//Remove the node from allNodesClone list.\r\n\t\t\tallNodesClone.remove(idx);\r\n\t\t}\r\n\r\n\t\t//Process the relationships\r\n\t\tint relCount = 0;\r\n\t\tString relPrefix = \"rel\";\r\n\r\n\t\tfor (Relationship r : rels){\r\n\r\n\t\t\tMyNode source = null, target = null;\r\n\t\t\tRelType type = null;\r\n\r\n\t\t\t//For each relationship in rels, create a corresponding relationship in gp.\r\n\t\t\ttry (Transaction tx = graphDb.beginTx()){\r\n\t\t\t\tsource = nodesMap.get(r.getStartNode());\r\n\t\t\t\ttarget = nodesMap.get(r.getEndNode());\r\n\t\t\t\ttype = GPUtil.translateRelType(r.getType());\r\n\t\t\t\ttx.success();\r\n\t\t\t}\r\n\r\n\t\t\tMyRelationship rel = new MyRelationship(source, target, type, relCount);\r\n\t\t\trelCount++;\r\n\r\n\t\t\tif (relCount >= 25){\r\n\t\t\t\trelCount = 0;\r\n\t\t\t\trelPrefix = relPrefix + \"l\";\r\n\t\t\t}\r\n\r\n\t\t\tgp.addRelationship(rel);\r\n\t\t\trelsMap.put(r, rel);\r\n\t\t}\r\n\r\n\t\t//Set the attribute requirements\r\n\t\tattrsReq(gp, true);\r\n\t\tattrsReq(gp, false);\r\n\t\treturn gp;\r\n\t}", "public Graph getGraph();", "public boolean isMultiGraph();", "@Test\n public void getGraphNull() throws Exception {\n try (final Graph defaultGraph = dataset.getGraph(null).get()) {\n // TODO: Can we assume the default graph was empty before our new triples?\n assertEquals(2, defaultGraph.size());\n assertTrue(defaultGraph.contains(alice, isPrimaryTopicOf, graph1));\n // NOTE: wildcard as graph2 is a (potentially mapped) BlankNode\n assertTrue(defaultGraph.contains(bob, isPrimaryTopicOf, null));\n }\n }", "private void testBuildGraph() {\n\t\t// All test graphs have a node 8 with children [9, 10]\n\t\tSet<Node> expectedChildren = new HashSet<>();\n\t\texpectedChildren.add(new Node(9));\n\t\texpectedChildren.add(new Node(10));\n\n\t\tStudySetGraph disconnectedGraphWithoutCycle = new StudySetGraph(Edges.disconnectedGraphWithoutCycle);\n\t\tNode node = disconnectedGraphWithoutCycle.getNode(8);\n\t\tassert node != null;\n\t\tassert node.getChildren().equals(expectedChildren);\n\t\t\n\t\tStudySetGraph disconnectedGraphWithCycle = new StudySetGraph(Edges.disconnectedGraphWithCycle);\n\t\tnode = disconnectedGraphWithoutCycle.getNode(8);\n\t\tassert node != null;\n\t\tassert node.getChildren().equals(expectedChildren);\n\t\t\n\t\tStudySetGraph connectedGraphWithCycle = new StudySetGraph(Edges.connectedGraphWithCycle);\n\t\tnode = disconnectedGraphWithoutCycle.getNode(8);\n\t\tassert node != null;\n\t\tassert node.getChildren().equals(expectedChildren);\n\n\t\tStudySetGraph connectedGraphWithoutCycle = new StudySetGraph(Edges.connectedGraphWithoutCycle);\n\t\tnode = disconnectedGraphWithoutCycle.getNode(8);\n\t\tassert node != null;\n\t\tassert node.getChildren().equals(expectedChildren);\n\t}", "@Override\n public R visit(GraphGraphPattern n, A argu) {\n R _ret = null;\n n.nodeToken.accept(this, argu);\n n.varOrIRIref.accept(this, argu);\n n.groupGraphPattern.accept(this, argu);\n return _ret;\n }", "protected abstract Graph filterGraph();", "public weighted_graph getGraph();", "public void buildGraph(){\n\t}", "Relations getGroupOfRelations();", "ShapeGroup(){\n children = new ArrayList<IShape>();\n }", "Graph testGraph();", "void graph2() {\n\t\tconnect(\"1\", \"7\");\n\t\tconnect(\"1\", \"8\");\n\t\tconnect(\"1\", \"9\");\n\t\tconnect(\"9\", \"1\");\n\t\tconnect(\"9\", \"0\");\n\t\tconnect(\"9\", \"4\");\n\t\tconnect(\"4\", \"8\");\n\t\tconnect(\"4\", \"3\");\n\t\tconnect(\"3\", \"4\");\n\t}", "@GroupSequence({Default.class, GroupA.class, GroupB.class})\r\npublic interface Group {\r\n}", "public MultiGraph(boolean directed) {\r\n\t\tsuper(directed ? Type.DIRECTED : Type.UNDIRECTED);\r\n\t}", "@Override\n public abstract Collection<? extends GraphNode<N, E>> getNodes();", "public interface DirectedGraph {\n\n /**\n * Set a graph label\n * @param label a graph label\n */\n void setGraphLabel(String label);\n\n /**\n * @return the graph label\n */\n String getGraphLabel();\n\n /**\n * Add a node in graph\n * @param node\n * @throws IllegalArgumentException if node is negative\n */\n void addNode(int node);\n\n /**\n * Associating metadata to node\n * @param node the node id\n * @param key the metadata key\n * @param value the metadata value\n */\n void addNodeMetadata(int node, String key, String value);\n\n /**\n * Get the value of the metadata associated with the given node\n * @param node the node to get metadata for\n * @param key the metadata key\n * @return the value or null if not found\n */\n String getNodeMetadataValue(int node, String key);\n\n /**\n * @return the node given the label or -1 if not found\n */\n int getNodeFromMetadata(String metadata);\n\n /**\n * Add an edge in graph from tail to head and return its index\n * @param tail predecessor node\n * @param head successor node\n * @return the edge id or -1 if already exists\n */\n int addEdge(int tail, int head);\n\n /**\n * Set an edge label\n * @param edge a edge id\n * @param label a node label\n */\n void setEdgeLabel(int edge, String label);\n\n /**\n * @return the edge label\n */\n String getEdgeLabel(int edge);\n\n /**\n * @return an array of graph nodes\n */\n int[] getNodes();\n\n /**\n * @return an array of graph edges\n */\n int[] getEdges();\n\n /**\n * @return the edge id from end points or -1 if not found\n */\n int getEdge(int tail, int head);\n\n /**\n * Get the incoming and outcoming edges for the given nodes\n * @param nodes the nodes\n * @return edge indices\n */\n int[] getEdgesIncidentTo(int... nodes);\n\n /**\n * Get the incoming edges to the given nodes\n * @param nodes the nodes\n * @return edge indices\n */\n int[] getInEdges(int... nodes);\n\n /**\n * Get the outcoming edges from the given nodes\n * @param nodes the nodes\n * @return edge indices\n */\n int[] getOutEdges(int... nodes);\n\n /**\n * @return the tail node of the given edge or -1 if not found\n */\n int getTailNode(int edge);\n\n /**\n * @return the head node of the given edge or -1 if not found\n */\n int getHeadNode(int edge);\n\n /**\n * @return true if node belongs to graph else false\n */\n boolean containsNode(int node);\n\n /**\n * @return true if edge belongs to graph else false\n */\n boolean containsEdge(int edge);\n\n /**\n * @return true if tail -> head edge belongs to graph else false\n */\n boolean containsEdge(int tail, int head);\n\n /**\n * @return ancestors of the given node\n */\n int[] getAncestors(int node);\n\n /**\n * @return descendants of the given node\n */\n int[] getDescendants(int node);\n\n /**\n * @return descendants of the given node\n */\n int[] getDescendants(int node, int maxDepth);\n\n /**\n * @return true if queryDescendant is a descendant of queryAncestor\n */\n boolean isAncestorOf(int queryAncestor, int queryDescendant);\n\n /**\n * @return the predecessors of the given node\n */\n int[] getPredecessors(int node);\n\n /**\n * @return the successors of the given node\n */\n int[] getSuccessors(int node);\n\n /**\n * @return the number of head ends adjacent to the given node\n */\n int getInDegree(int node);\n\n /**\n * @return the number of tail ends adjacent to the given node\n */\n int getOutDegree(int node);\n\n /**\n * @return the sources (indegree = 0) of the graph\n */\n int[] getSources();\n\n /**\n * @return the sinks (outdegree = 0) of the graph\n */\n int[] getSinks();\n\n /**\n * @return the subgraph of this graph composed of given nodes\n */\n DirectedGraph calcSubgraph(int... nodes);\n\n /**\n * @return the total number of graph nodes\n */\n default int countNodes() {\n\n return getNodes().length;\n }\n\n /**\n * @return the total number of graph edges\n */\n default int countEdges() {\n\n return getEdges().length;\n }\n\n /**\n * @return true if queryDescendant is a descendant of queryAncestor\n */\n default boolean isDescendantOf(int queryDescendant, int queryAncestor) {\n\n return isAncestorOf(queryAncestor, queryDescendant);\n }\n\n default boolean isSource(int node) {\n return getInDegree(node) == 0 && getOutDegree(node) > 0;\n }\n\n default boolean isSink(int node) {\n return getInDegree(node) > 0 && getOutDegree(node) == 0;\n }\n\n /**\n * The height of a rooted tree is the length of the longest downward path to a leaf from the root.\n *\n * @return the longest path from the root or -1 if it is not a tree\n */\n default int calcHeight() throws NotATreeException {\n\n int[] roots = getSources();\n\n if (roots.length == 0) {\n throw new NotATreeException();\n }\n\n class WrappedCalcLongestPath {\n private int calcLongestPath(int node, TIntList path) throws CycleDetectedException {\n\n if (!containsNode(node)) {\n throw new IllegalArgumentException(\"node \"+ node + \" was not found\");\n }\n\n if (isSink(node)) {\n return path.size()-1;\n }\n\n TIntList lengths = new TIntArrayList();\n for (int edge : getOutEdges(node)) {\n\n int nextNode = getHeadNode(edge);\n\n TIntList newPath = new TIntArrayList(path);\n newPath.add(nextNode);\n\n if (path.contains(nextNode)) {\n throw new CycleDetectedException(newPath);\n }\n\n lengths.add(calcLongestPath(nextNode, newPath));\n }\n\n return lengths.max();\n }\n }\n\n // it is ok if there are multiple roots (see example of enzyme-classification-cv where it misses the root that\n // connect children EC 1.-.-.-, EC 2.-.-.-, ..., EC 6.-.-.-)\n /*if (roots.length > 1) {\n throw new NotATreeMultipleRootsException(roots);\n }*/\n\n return new WrappedCalcLongestPath().calcLongestPath(roots[0], new TIntArrayList(new int[] {roots[0]}));\n }\n\n class NotATreeException extends Exception {\n\n public NotATreeException() {\n\n super(\"not a tree\");\n }\n }\n\n class NotATreeMultipleRootsException extends NotATreeException {\n\n private final int[] roots;\n\n public NotATreeMultipleRootsException(int[] roots) {\n\n super();\n this.roots = roots;\n }\n\n @Override\n public String getMessage() {\n\n return super.getMessage() + \", roots=\" + Arrays.toString(this.roots);\n }\n }\n\n class CycleDetectedException extends NotATreeException {\n\n private final TIntList path;\n\n public CycleDetectedException(TIntList path) {\n\n super();\n\n this.path = path;\n }\n\n @Override\n public String getMessage() {\n\n return super.getMessage() + \", path=\" + this.path;\n }\n }\n}", "public interface Graph {\n\n /** @return The number of vertices in the graph. */\n int getNumVertices();\n\n /** @return The number of edges in the graph. */\n int getNumEdges();\n\n /** @return A read-only set of all the vertices in the graph. */\n Set<Vertex> getVertices();\n\n /** @return A read-only set of all edges (directed or undirected) in the graph. */\n Set<Edge> getEdges();\n\n /** Removes all vertices and edges from the graph. */\n void clear();\n\n /** Adds a vertex to this graph. */\n void add(Vertex vertex);\n\n /** Adds an edge to the graph. */\n void add(Edge edge);\n\n /** Adds all the vertices and edges in another graph to this graph. */\n void addAll(Graph graph);\n\n /** Removes vertex from the graph and any edges attached to it. */\n void remove(Vertex vertex);\n\n /** Removes an existing edge from the graph. */\n void remove(Edge edge);\n\n /** Checks if the graph contains a given vertex. */\n boolean contains(Vertex vertex);\n\n /** Checks if the graph contains a given edge. */\n boolean contains(Edge edge);\n\n /** @return An unmodifiable set of all directed edges entering vertex. */\n Set<Edge> getInEdges(Vertex vertex);\n\n /** @return An unmodifiable set of all directed edges coming out of vertex. */\n Set<Edge> getOutEdges(Vertex vertex);\n\n /** @return An unmodifiable set of all undirected edges connected to vertex. */\n Set<Edge> getUndirectedEdges(Vertex vertex);\n\n /** @return An unmodifiable set of all edges (directed and undirected) connected to vertex. */\n Set<Edge> getMixedEdges(Vertex vertex);\n\n /** @return The number of undirected edges connected to vertex. */\n int getUndirectedDegree(Vertex vertex);\n\n /** @return The number of directed edges coming into vertex. */\n int getInDegree(Vertex vertex);\n\n /** @return The number of directed edges coming out of vertex. */\n int getOutDegree(Vertex vertex);\n\n /**\n * @return The number of directed and undirected edges connected to this vertex. Equivalent to\n * inDegree + outDegree + undirectedDegree.\n */\n int getMixedDegree(Vertex vertex);\n\n /** Registers a listener for changes in the graph model. */\n void addListener(GraphListener listener);\n\n /** Unregisters a listener for changes in the graph model. */\n void removeListener(GraphListener listener);\n\n /** @return Attributes that apply to the entire graph. */\n Attributes getAttributes();\n\n /** Creates a new vertex, adds it to the graph, and returns a reference to it. */\n Vertex createVertex();\n\n /** Creates a new edge, adds it to the graph, and returns a reference to it. */\n Edge createEdge(Vertex src, Vertex tgt, boolean directed);\n}", "public abstract Collection getGroups();", "public void visitGroup(Group group) {\n\t}", "T addGraphs(Graph... graphs);", "Boolean groupingEnabled();", "void addIsVertexOf(Subdomain_group newIsVertexOf);", "String targetGraph();", "@Test\n public void shouldAssignLevelsAndInsertDummyNodes(){\n String p1 = \"p1\";\n String p2 = \"p2\";\n String p3 = \"p3\";\n ValueStreamMap graph = new ValueStreamMap(p1, null);\n graph.addDownstreamNode(new PipelineDependencyNode(p3, p3), p1);\n\n List<List<Node>> nodesAtEachLevel = graph.presentationModel().getNodesAtEachLevel();\n assertThat(nodesAtEachLevel.size(), is(2));\n VSMTestHelper.assertNodeHasChildren(graph, p1, p3);\n VSMTestHelper.assertThatLevelHasNodes(nodesAtEachLevel.get(0), 0, p1);\n VSMTestHelper.assertThatLevelHasNodes(nodesAtEachLevel.get(1), 0, p3);\n\n graph.addDownstreamNode(new PipelineDependencyNode(p2, p2), p1);\n graph.addDownstreamNode(new PipelineDependencyNode(p3, p3), p2);\n\n VSMTestHelper.assertNodeHasChildren(graph, p1, p2, p3);\n VSMTestHelper.assertNodeHasChildren(graph, p2, p3);\n VSMTestHelper.assertNodeHasParents(graph, p3, p1, p2);\n VSMTestHelper.assertNodeHasParents(graph, p2, p1);\n assertThat(graph.findNode(p3).getChildren().isEmpty(), is(true));\n assertThat(graph.findNode(p1).getParents().isEmpty(), is(true));\n\n nodesAtEachLevel = graph.presentationModel().getNodesAtEachLevel();\n assertThat(nodesAtEachLevel.size(), is(3));\n VSMTestHelper.assertThatLevelHasNodes(nodesAtEachLevel.get(0), 0, p1);\n VSMTestHelper.assertThatLevelHasNodes(nodesAtEachLevel.get(1), 1, p2);\n VSMTestHelper.assertThatLevelHasNodes(nodesAtEachLevel.get(2), 0, p3);\n }", "private static void addAllEdgeInstances (Graph graph, boolean isDirected){\n Collection<Node> noteSet = graph.getNodeSet();\n\n for (Iterator<Node> iterator = noteSet.iterator(); iterator.hasNext();) {\n Node startNode = (Node) iterator.next();\n\n for (Iterator<Node> iterator2 = noteSet.iterator(); iterator2.hasNext();) {\n Node endNode = (Node) iterator2.next();\n\n if (!(startNode == endNode)){\n graph.addEdge(startNode.toString().concat(endNode.toString()), startNode, endNode, isDirected);\n }\n\n }\n }\n }", "@Override\n\tpublic Graph<String> emptyInstance() {\n\t\treturn new ConcreteEdgesGraph();\n\t}", "@Test\n public void getGraph1() throws Exception {\n try (final Graph g1 = dataset.getGraph(graph1).get()) {\n assertEquals(4, g1.size());\n\n assertTrue(g1.contains(alice, name, aliceName));\n assertTrue(g1.contains(alice, knows, bob));\n assertTrue(g1.contains(alice, member, null));\n assertTrue(g1.contains(null, name, secretClubName));\n }\n }", "void graph4() {\n\t\tconnect(\"8\", \"9\");\n\t\tconnect(\"3\", \"1\");\n\t\tconnect(\"3\", \"2\");\n\t\tconnect(\"3\", \"9\");\n\t\tconnect(\"4\", \"3\");\n\t\t//connect(\"4\", \"5\");\n\t\t//connect(\"4\", \"7\");\n\t\t//connect(\"5\", \"7\");\t\t\n\t}", "public interface GNode{\n\n\tpublic String getName();\n\tpublic GNode[] getChildren();\n\tpublic ArrayList<GNode> walkGraph(GNode parent);\n\tpublic ArrayList<ArrayList<GNode>> paths(GNode parent);\n\n}", "public interface Graph extends Container {\n\n /**\n * returns how many elements are in the container.\n *\n * @return int = number of elements in the container.\n */\n public int size();\n\n /**\n * returns true if the container is empty, false otherwise.\n *\n * @return boolean true if container is empty\n */\n public boolean isEmpty();\n\n /**\n * return the number of vertices in the graph\n * \n * @return number of vertices in the graph\n */\n public int numVertices();\n\n /**\n * returns the number for edges in the graph\n * \n * @return number of edges in the graph\n */\n public int numEdges();\n\n /**\n * returns an Enumeration of the vertices in the graph\n * \n * @return vertices in the graph\n */\n public Enumeration vertices();\n\n \n /**\n * returns an Enumeration of the edges in the graph\n * \n * @return edges in the graph\n */\n public Enumeration edges();\n\n\n /**\n * Returns an enumeration of the directed edges in the Graph\n * \n * @return an enumeration of the directed edges in the Graph\n */\n public Enumeration directedEdges();\n\n /**\n * Returns an enumeration of the directed edges in the Graph\n * \n * @return an enumeration of the directed edges in the Graph\n */\n public Enumeration undirectedEdges();\n\n /**\n * returns the degree of the passed in Vertex vp\n * \n * @param vp Vertex to return the degree of\n * @return degree of Vertex vp\n * @exception InvalidPositionException\n * thrown when vp is invalid for Vertex container V\n */\n public int degree(Position vp) throws InvalidPositionException;\n\n /**\n * returns the in degree of the passed in Vertex vp\n * \n * @param vp Vertex to return the in degree of\n * @return in degree of Vertex vp\n * @exception InvalidPositionException\n * thrown when vp is invalid for Vertex container V\n */\n public int inDegree(Position vp) throws InvalidPositionException;\n\n /**\n * returns the out degree of the passed in Vertex vp\n * \n * @param vp Vertex to return the out degree of\n * @return out degree of Vertex vp\n * @exception InvalidPositionException\n * thrown when vp is invalid for Vertex container V\n */\n public int outDegree(Position vp) throws InvalidPositionException;\n\n /**\n * Returns an enumeration of vertices adjacent to Vertex vp\n * \n * @param vp Position of Vertex to return the adjacent vertices of\n * @return enumeration of vertices adjacent to Vertex vp\n * @exception InvalidPositionException\n * thrown if vp is not a valid Vertex for this Graph\n */\n public Enumeration adjacentVertices(Position vp) throws InvalidPositionException;\n\n /**\n * Returns an enumeration of vertices in adjacent to Vertex vp\n * \n * @param vp Position of Vertex to return the in adjacent vertices of\n * @return enumeration of vertices in adjacent to Vertex vp\n * @exception InvalidPositionException\n * thrown if vp is not a valid Vertex for this Graph\n */\n public Enumeration inAdjacentVertice(Position vp) throws InvalidPositionException;\n\n /**\n * Returns an enumeration of vertices out adjacent to Vertex vp\n * \n * @param vp Position of Vertex to return the out adjacent vertices of\n * @return enumeration of vertices out adjacent to Vertex vp\n * @exception InvalidPositionException\n * thrown if vp is not a valid Vertex for this Graph\n */\n public Enumeration outAdjacentVertices(Position vp) throws InvalidPositionException;\n\n /**\n * Returns an Enumeration of the edges incident upon the\n * Vertex in Position vp\n * \n * @param vp the Position to holding the Vertex to return the\n * Enumeration of\n * @return the Enumeration of edges incident upon vp\n * @exception InvalidPositionException\n */\n public Enumeration incidentEdges(Position vp) throws InvalidPositionException;\n\n /**\n * Returns an Enumeration of the edges in incident upon the\n * Vertex in Position vp\n * \n * @param vp the Position to holding the Vertex to return the\n * Enumeration of\n * @return the Enumeration of edges in incident upon vp\n * @exception InvalidPositionException\n */\n public Enumeration inIncidentEdges(Position vp) throws InvalidPositionException;\n\n /**\n * Returns an Enumeration of the edges out incident upon the\n * Vertex in Position vp\n * \n * @param vp the Position to holding the Vertex to return the\n * Enumeration of\n * @return the Enumeration of edges out incident upon vp\n * @exception InvalidPositionException\n */\n public Enumeration outIncidentEdges(Position vp) throws InvalidPositionException;\n\n public Position[] endVertices(Position ep) throws InvalidPositionException;\n\n /**\n * Returns the Vertex on Edge ep opposite from Vertex vp\n * \n * @param vp Vertex to find opposite of\n * @param ep Edge containing the vertices\n * @return \n * @exception InvalidPositionException\n */\n public Position opposite(Position vp, Position ep) throws InvalidPositionException;\n\n /**\n * Determine whether or not two vertices are adjacent\n * \n * @param vp Position of one Vertex to check\n * @param wp Position of other Vertex to check\n * @return true if they are adjacent, false otherwise\n * @exception InvalidPositionException\n * thrown if either Position is invalid for this container\n */\n public boolean areAdjacent(Position vp, Position wp) throws InvalidPositionException;\n\n /**\n * Returns the destination Vertex of the given Edge Position\n * \n * @param ep Edge Position to return the destination Vertex of\n * @return the destination Vertex of the given Edge Position\n * @exception InvalidPositionException\n * thrown if the Edge Position is invalid\n */\n public Position destination(Position ep) throws InvalidPositionException;\n\n /**\n * Returns the origin Vertex of the given Edge Position\n * \n * @param ep Edge Position to return the origin Vertex of\n * @return the origin Vertex of the given Edge Position\n * @exception InvalidPositionException\n * thrown if the Edge Position is invalid\n */\n public Position origin(Position ep) throws InvalidPositionException;\n\n /**\n * Returns true if the given Edge Position is directed,\n * otherwise false\n * \n * @param ep Edge Position to check directed on\n * @return true if directed, otherwise false\n * @exception InvalidPositionException\n */\n public boolean isDirected(Position ep) throws InvalidPositionException;\n\n /**\n * Inserts a new undirected Edge into the graph with end\n * Vertices given by Positions vp and wp storing Object o,\n * returns a Position object for the new Edge\n * \n * @param vp Position holding one Vertex endpoint\n * @param wp Position holding the other Vertex endpoint\n * @param o Object to store at the new Edge\n * @return Position containing the new Edge object\n * @exception InvalidPositionException\n * thrown if either of the given vertices are invalid for\n * this container\n */\n public Position insertEdge(Position vp,Position wp, Object o) throws InvalidPositionException;\n\n /**\n * Inserts a new directed Edge into the graph with end\n * Vertices given by Positions vp, the origin, and wp,\n * the destination, storing Object o,\n * returns a Position object for the new Edge\n * \n * @param vp Position holding the origin Vertex\n * @param wp Position holding the destination Vertex\n * @param o Object to store at the new Edge\n * @return Position containing the new Edge object\n * @exception InvalidPositionException\n * thrown if either of the given vertices are invalid for\n * this container\n */\n public Position insertDirectedEdge(Position vp, Position wp, Object o) throws InvalidPositionException;\n\n /**\n * Inserts a new Vertex into the graph holding Object o\n * and returns a Position holding the new Vertex\n * \n * @param o the Object to hold in this Vertex\n * @return the Position holding the Vertex\n */\n public Position insertVertex(Object o);\n\n /**\n * This method removes the Vertex held in the passed in\n * Position from the Graph\n * \n * @param vp the Position holding the Vertex to remove\n * @exception InvalidPositionException\n * thrown if the given Position is invalid for this container\n */\n public void removeVertex(Position vp) throws InvalidPositionException;\n\n /**\n * Used to remove the Edge held in Position ep from the Graph\n * \n * @param ep the Position holding the Edge to remove\n * @exception InvalidPositionException\n * thrown if Position ep is invalid for this container\n */\n public void removeEdge(Position ep) throws InvalidPositionException;\n\n /**\n * This routine is used to change a directed Edge into an\n * undirected Edge\n * \n * @param ep a Position holding the Edge to change from directed to\n * undirected\n * @exception InvalidPositionException\n */\n public void makeUndirected(Position ep) throws InvalidPositionException;\n\n /**\n * This routine can be used to reverse the diretion of a \n * directed Edge\n * \n * @param ep a Position holding the Edge to reverse\n * @exception InvalidPositionException\n * thrown if the given Position is invalid for this container\n */\n public void reverseDirection(Position ep) throws InvalidPositionException;\n\n /**\n * Changes the direction of the given Edge to be out incident\n * upone the Vertex held in the given Position\n * \n * @param ep the Edge to change the direction of\n * @param vp the Position holding the Vertex that the Edge is going\n * to be out incident upon\n * @exception InvalidPositionException\n * thrown if either of the given positions are invalid for this container\n */\n public void setDirectionFrom(Position ep, Position vp) throws InvalidPositionException;\n\n\n /**\n * Changes the direction of the given Edge to be in incident\n * upone the Vertex held in the given Position\n * \n * @param ep the Edge to change the direction of\n * @param vp the Position holding the Vertex that the Edge is going\n * to be in incident upon\n * @exception InvalidPositionException\n * thrown if either of the given positions are invalid for this container\n */\n public void setDirectionTo(Position ep, Position vp) throws InvalidPositionException;\n\n}", "Iterable<String> groups();", "public interface GroupReference extends ComplexExtensionDefinition,\n SequenceDefinition, ComplexTypeDefinition, SchemaComponent {\n public static final String REF_PROPERTY = \"ref\";\n public static final String MAX_OCCURS_PROPERTY = \"maxOccurs\";\n public static final String MIN_OCCURS_PROPERTY = \"minOccurs\";\n\n String getMaxOccurs();\n void setMaxOccurs(String max);\n String getMaxOccursDefault();\n String getMaxOccursEffective();\n \n Integer getMinOccurs();\n void setMinOccurs(Integer min);\n int getMinOccursDefault();\n int getMinOccursEffective();\n \n NamedComponentReference<GlobalGroup> getRef();\n void setRef(NamedComponentReference<GlobalGroup> def);\n}", "public boolean isDynamicGraph();", "public interface IGraph extends IGraphRepresentation, IId, ITag, IDisposable, Iterable<IVertex>\n{\n /**\n * get the graph engine\n *\n * @return IGraphEngine\n * @see IGraphEngine\n */\n IGraphEngine getGraphEngine();\n\n /**\n * the graph engine instantiation factory\n *\n * @return a graph engine\n *\n * @see IGraphEngine\n * @see AbstractGraphEngine\n */\n IGraphEngine graphEngineFactory();\n\n /**\n * does this graph support multi edges\n *\n * @return {@code true, false}\n */\n boolean hasMultiEdges();\n\n /**\n * does this graph support self loops\n *\n * @return {@code true, false}\n */\n boolean hasSelfLoops();\n\n void print();\n}", "public TreeNode rewriteTreeNode(TreeNode node) {\n if (node instanceof Group) {\n BGP theBGP = new BGP(new ArrayList<TriplePatternNode>());\n Group g = (Group) node;\n ArrayList<GraphPattern> toAdd = new ArrayList<GraphPattern>(), toRemove = new ArrayList<GraphPattern>();\n\n for (GraphPattern pattern : g.getPatterns()) {\n if (pattern instanceof BGP || pattern instanceof Group) {\n if (conjoinGraphPattern(theBGP, g, pattern, toAdd))\n toRemove.add(pattern);\n }\n }\n\n for (GraphPattern gp : toRemove)\n g.removeGraphPattern(gp);\n for (GraphPattern gp : toAdd)\n g.addGraphPattern(gp);\n\n // we used to only add a BGP if it was non-empty\n // the special case of empty groups made backends more difficult\n // to implement in some cases, so now we ensure a single BGP for\n // every group, even if it is empty\n g.addGraphPattern(theBGP);\n }\n return node;\n }", "public MutableNodeSet(Graph graph) {\n\t\tsuper(graph);\n\t\tthis.members = new TreeSet<Integer>();\n\t\tinitializeInOutWeights();\n\t}", "public interface IUndirectedGraph extends IGraph{\n\n /**\n * Check the presence of an edge between two nodes.\n *\n * @param x the source node\n * @param y the destination node\n * @return true if there is an edge between x and y\n */\n default boolean isEdge(int x, int y) {\n return getNeighbors(x).contains(y);\n }\n\n /**\n * Remove the edge between two nodes if exist.\n * @param x the source node\n * @param y the destination node\n */\n void removeEdge(int x, int y);\n\n /**\n * Add an edge between two nodes, if not already present.\n * The two nodes must be distincts.\n * @param x the source node\n * @param y the destination node\n */\n void addEdge(int x, int y);\n\n /**\n * Get the neighboors of a node\n * @param x the node\n * @return a new int array representing the neighbors\n */\n List<Integer> getNeighbors(int x);\n\n @Override\n default int[][] getGraph() {\n int order = getOrder();\n int[][] adjencyMatrix = new int[order][order];\n for (int i = 0; i < order; i++) {\n List<Integer> succ = getNeighbors(i);\n for (Integer s : succ) {\n adjencyMatrix[i][s] = 1;\n }\n }\n return adjencyMatrix;\n }\n\n @Override\n default boolean isDirected(){\n return false;\n }\n}", "@Test\n public void getGraph2() throws Exception {\n final BlankNodeOrIRI graph2Name = (BlankNodeOrIRI) dataset.stream(Optional.empty(), bob, isPrimaryTopicOf, null)\n .map(Quad::getObject).findAny().get();\n\n try (final Graph g2 = dataset.getGraph(graph2Name).get()) {\n assertEquals(4, g2.size());\n final Triple bobNameTriple = bobNameQuad.asTriple();\n assertTrue(g2.contains(bobNameTriple));\n assertTrue(g2.contains(bob, member, bnode1));\n assertTrue(g2.contains(bob, member, bnode2));\n assertFalse(g2.contains(bnode1, name, secretClubName));\n assertTrue(g2.contains(bnode2, name, companyName));\n }\n }", "@Override\n public Graph getGraph() {\n return graph;\n }", "public Group() {\n\t\t\tfirst = last = null;\n\t\t\tsize = 0;\n\t\t}", "public interface IDirectedAcyclicGraph<T> extends Serializable {\n\n /**\n * Adds an edge to the graph.\n *\n * @param from the starting point.\n * @param to the ending point.\n * @return true if the edge was actually added (i.e. not present and didn't\n * create a cycle)\n * @throws NullPointerException if from or to is null\n */\n boolean add(T from, T to) throws NullPointerException;\n\n /**\n * Returns all the nodes that can be reached following the directed edges\n * starting from the selected node. It is guaranteed that the elements are\n * partially ordered by increasing distance from the selected node. If the\n * starting point is not a node in the graph, an empty iterable is returned.\n *\n * @param start the starting point.\n * @return an iterable with all the nodes that can be reached from the\n * starting node.\n * @throws NullPointerException if start is null.\n */\n Iterable<T> followNode(T start) throws NullPointerException;\n\n /**\n * Returns the selected node, followed by all the nodes that can be reached\n * following the directed edges starting from the selected node. It is\n * guaranteed that the elements are partially ordered by increasing distance\n * from the selected node. If the starting point is not a node in the graph,\n * an iterable containing only the starting node is returned.\n *\n * @param start the starting point.\n * @return an iterable which starts with the selected node and is followed\n * by all the connected nodes.\n * @throws NullPointerException if start is null.\n */\n Iterable<T> followNodeAndSelef(T start) throws NullPointerException;\n\n}", "public Graph(){\r\n this.listEdges = new ArrayList<>();\r\n this.listNodes = new ArrayList<>();\r\n this.shown = true;\r\n }", "@Test \r\n void add_mutiple_edges_check_size(){\r\n for(int i = 0; i < 20; i++) {\r\n graph.addEdge(\"\" + i, \"\" + (i + 1));\r\n } \r\n List<String> adjacent;\r\n for(int i = 0; i < 20; i++) {\r\n adjacent = graph.getAdjacentVerticesOf(\"\"+i);\r\n if(!adjacent.contains(\"\" + (i+1))) {\r\n fail();\r\n }\r\n }\r\n if(graph.size() != 20 | graph.order() != 21) {\r\n fail();\r\n }\r\n \r\n }", "public UIFormGroupPane(final ArrayList<SchemaNode> pNodes) throws IllegalArgumentException\n\t{\n\t\tsuper();\n\t\tif (pNodes == null)\n\t\t{\n\t\t\tthrow new IllegalArgumentException(\"pNodes argument shall not be null\");\n\t\t}\n\t\tthis.nodes.addAll(pNodes);\n\t}", "public LinkedList<Group> getInputGroupList() {\n assert(invariant());\n return inputGroupList;\n }", "public abstract List<Node> getChildNodes();", "CyNetwork getGroupNetwork();", "@Override\n public R visit(GraphPatternNotTriples n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "public static void main(String[] args) {\n\n Graph myGraph = new Graph();\n myGraph.addNode(\"8\");\n myGraph.addNode(\"1\");\n myGraph.addNode(\"2\");\n myGraph.addNode(\"9\");\n myGraph.addNode(\"7\");\n myGraph.addNode(\"5\");\n myGraph.addEdge(\"8\" , \"1\" , 50);\n myGraph.addEdge(\"5\" , \"1\" , 70);\n myGraph.addEdge(\"7\" , \"5\", 20);\n myGraph.addEdge(\"8\" , \"9\", 100);\n myGraph.addEdge(\"8\" , \"2\", 40);\n String[] trip = {\"8\" , \"1\" , \"5\"};\n String[] trip2 = {\"8\" , \"5\"};\n String[] trip3 = {\"8\" , \"1\" , \"5\" , \"7\" , \"5\" , \"1\" , \"8\" , \"9\"};\n String[] trip4 = {\"8\" , \"9\" , \"5\" };\n String[] trip5 = {\"8\"};\n String[] trip6 = {\"8\" , \"2\"};\n// System.out.println(myGraph);\n// System.out.println(myGraph.getNodes());\n// System.out.println(myGraph.getNeighbors(\"8\"));\n// System.out.println(myGraph.getNeighbors(\"7\"));\n// System.out.println(myGraph.getNeighbors(\"5\"));\n// System.out.println(myGraph.size());\n// System.out.println(myGraph.breadthFirst(\"8\"));\n// System.out.println(myGraph.weightList);\n// System.out.println(myGraph.breadthFirst(\"7\"));\n// System.out.println(myGraph.breadthFirst(\"5\"));\n// System.out.println(myGraph.businessTrip(\"8\",trip));\n// System.out.println(myGraph.businessTrip(\"8\",trip2));\n// System.out.println(myGraph.businessTrip(\"8\",trip3));\n// System.out.println(myGraph.businessTrip(\"8\",trip4));\n// System.out.println(myGraph.businessTrip(\"8\",trip5));\n// System.out.println(myGraph.businessTrip(\"8\",trip6));\n System.out.println(myGraph.depthFirst(\"8\"));\n }", "public Vector<Node> GetAdditionalSubNodes();", "@Test\n public void streamDefaultGraphNameByPattern() throws Exception {\n final Optional<? extends Quad> aliceTopic = dataset.stream(Optional.empty(), null, null, null).findAny();\n assertTrue(aliceTopic.isPresent());\n // COMMONSRDF-55: should not be <urn:x-arq:defaultgraph> or similar\n assertNull(aliceTopic.get().getGraphName().orElse(null));\n assertFalse(aliceTopic.get().getGraphName().isPresent());\n }", "Node getNode() {\n return new Group(body.getPolygon(), head.getPolygon());\n }", "public GraphNode buildGraph()\n {\n GraphNode node1 = new GraphNode(1);\n GraphNode node2 = new GraphNode(2);\n GraphNode node3 = new GraphNode(3);\n GraphNode node4 = new GraphNode(4);\n List<GraphNode> v = new ArrayList<GraphNode>();\n v.add(node2);\n v.add(node4);\n node1.neighbours = v;\n v = new ArrayList<GraphNode>();\n v.add(node1);\n v.add(node3);\n node2.neighbours = v;\n v = new ArrayList<GraphNode>();\n v.add(node2);\n v.add(node4);\n node3.neighbours = v;\n v = new ArrayList<GraphNode>();\n v.add(node3);\n v.add(node1);\n node4.neighbours = v;\n return node1;\n }", "T setGraphs(List<Graph> graphs);", "public WeightedGraph() {\n super();\n }", "@Test\n\tpublic void testDAG() {\n\t\tDirectedGraph<Integer, DirectedEdge<Integer>> directedGraph = new DirectedGraph<Integer, DirectedEdge<Integer>>();\n\t\tdirectedGraph.addNode(1);\n\t\tdirectedGraph.addNode(2);\n\t\tdirectedGraph.addNode(3);\n\t\tdirectedGraph.addNode(4);\n\t\tdirectedGraph.addNode(5);\n\t\tdirectedGraph.addDirectedEdge(new DirectedEdge<Integer>(1, 2));\n\t\tdirectedGraph.addDirectedEdge(new DirectedEdge<Integer>(1, 3));\n\t\tdirectedGraph.addDirectedEdge(new DirectedEdge<Integer>(2, 3));\n\t\tdirectedGraph.addDirectedEdge(new DirectedEdge<Integer>(4, 5));\n\t\t\n\t\t// tested method calls\n\t\tSet<Integer> reachableNodesFrom1 = service.getReachableNodes(directedGraph, 1);\n\t\tSet<Integer> reachableNodesFrom2 = service.getReachableNodes(directedGraph, 2);\n\t\tSet<Integer> reachableNodesFrom3 = service.getReachableNodes(directedGraph, 3);\n\t\tSet<Integer> reachableNodesFrom4 = service.getReachableNodes(directedGraph, 4);\n\t\tSet<Integer> reachableNodesFrom5 = service.getReachableNodes(directedGraph, 5);\n\t\t\n\t\t// assertions\n\t\tassertEquals(ImmutableSet.of(2, 3), reachableNodesFrom1);\n\t\tassertEquals(ImmutableSet.of(3), reachableNodesFrom2);\n\t\tassertEquals(ImmutableSet.of(), reachableNodesFrom3);\n\t\tassertEquals(ImmutableSet.of(5), reachableNodesFrom4);\n\t\tassertEquals(ImmutableSet.of(), reachableNodesFrom5);\n\t}", "private Graph simpleMigrationPerPattern(Graph graph, Storyboard storyboard) {\n srcGraphPO = new GraphPO(graph);\n\n GraphPO tgtGraphPO = (GraphPO) new GraphPO().withPattern(srcGraphPO.getPattern()).withModifier(Pattern.CREATE);\n tgtGraphPO.findNextMatch();\n\n Graph result = tgtGraphPO.getCurrentMatch();\n\n storyboard.addPattern(srcGraphPO, false);\n\n // ==========================================================================\n // copy nodes\n int noOfMatches = 0;\n\n srcGraphPO = new GraphPO(graph);\n\n NodePO srcNodePO = srcGraphPO.hasNodes();\n\n tgtGraphPO = (GraphPO) new GraphPO(tgtGraphPO.getCurrentMatch())\n .withPattern(srcGraphPO.getPattern());\n\n srcGraphPO.startCreate();\n\n NodePO tgtNodePO = tgtGraphPO.hasGcsNode();\n\n tgtNodePO.hasOrig(srcNodePO);\n\n while (srcGraphPO.getPattern().getHasMatch()) {\n tgtNodePO.withText(srcNodePO.getName());\n\n noOfMatches++;\n\n srcGraphPO.getPattern().findNextMatch();\n }\n\n systemout = \"Number of migrated nodes: \" + noOfMatches;\n\n storyboard.addPattern(srcGraphPO, false);\n\n // ==========================================================================\n noOfMatches = 0;\n\n srcGraphPO = new GraphPO(graph);\n\n EdgePO srcEdgePO = srcGraphPO.hasEdges();\n\n tgtGraphPO = new GraphPO(tgtGraphPO.getCurrentMatch()).withPattern(srcGraphPO.getPattern());\n\n tgtGraphPO.startCreate();\n\n EdgePO tgtEdgePO = tgtGraphPO.hasGcsEdge();\n\n boolean done = false;\n\n while (tgtEdgePO.getPattern().getHasMatch()) {\n tgtEdgePO.withText(srcEdgePO.getName());\n\n copySrcNodePO = new EdgePO(srcEdgePO.getCurrentMatch())\n .hasSrc()\n .hasCopy();\n\n EdgePO copyEdgePO = new EdgePO(tgtEdgePO.getCurrentMatch()).withPattern(copySrcNodePO.getPattern());\n\n copySrcNodePO.startCreate();\n\n copyEdgePO.hasSrc(copySrcNodePO);\n\n\n copyTgtNodePO = new EdgePO(srcEdgePO.getCurrentMatch())\n .hasTgt()\n .hasCopy();\n\n EdgePO copyEdgePO2 = new EdgePO(tgtEdgePO.getCurrentMatch()).withPattern(copyTgtNodePO.getPattern());\n\n copyTgtNodePO.startCreate();\n\n copyEdgePO2.hasTgt(copyTgtNodePO);\n\n noOfMatches++;\n\n tgtEdgePO.getPattern().findNextMatch();\n }\n\n systemout += \"\\nNumber of migrated Edges: \" + noOfMatches;\n\n storyboard.addPattern(tgtEdgePO, false);\n storyboard.addPattern(copySrcNodePO, false);\n storyboard.addPattern(copyTgtNodePO, false);\n\n return result;\n }", "public static void runTest() {\n Graph mnfld = new Graph();\n float destTank = 7f;\n\n // Adding Tanks\n mnfld.addPipe( new Node( 0f, 5.0f ) );\n mnfld.addPipe( new Node( 1f, 5.0f ) );\n mnfld.addPipe( new Node( 7f, 5.0f ) );\n\n // Adding Pipes\n mnfld.addPipe( new Node( 2f, 22f, 100f ) );\n mnfld.addPipe( new Node( 3f, 33f, 150f ) );\n mnfld.addPipe( new Node( 4f, 44f, 200f ) );\n mnfld.addPipe( new Node( 5f, 55f, 250f ) );\n mnfld.addPipe( new Node( 6f, 66f, 300f ) );\n mnfld.addPipe( new Node( 8f, 88f, 200f ) );\n mnfld.addPipe( new Node( 9f, 99f, 150f ) );\n mnfld.addPipe( new Node( 10f, 1010f, 150f ) );\n mnfld.addPipe( new Node( 20f, 2020f, 150f ) );\n\n // Inserting Edges to the graph\n mnfld.insertConnection( new Edge( mnfld.getPipe( 0f ), mnfld.getPipe( 2f ), 1f ) );\n mnfld.insertConnection( new Edge( mnfld.getPipe( 0f ), mnfld.getPipe( 3f ), 1f ) );\n mnfld.insertConnection( new Edge( mnfld.getPipe( 1f ), mnfld.getPipe( 2f ), 1f ) );\n mnfld.insertConnection( new Edge( mnfld.getPipe( 22f ), mnfld.getPipe( 4f ), 1f ) );\n mnfld.insertConnection( new Edge( mnfld.getPipe( 33f ), mnfld.getPipe( 5f ), 1f ) );\n mnfld.insertConnection( new Edge( mnfld.getPipe( 44f ), mnfld.getPipe( 5f ), 1f ) );\n mnfld.insertConnection( new Edge( mnfld.getPipe( 44f ), mnfld.getPipe( 7f ), 500f ) );\n mnfld.insertConnection( new Edge( mnfld.getPipe( 55f ), mnfld.getPipe( 6f ), 1f ) );\n mnfld.insertConnection( new Edge( mnfld.getPipe( 66f ), mnfld.getPipe( 7f ), 100f ) );\n mnfld.insertConnection( new Edge( mnfld.getPipe( 66f ), mnfld.getPipe( 8f ), 1f ) );\n mnfld.insertConnection( new Edge( mnfld.getPipe( 88f ), mnfld.getPipe( 7f ), 1f ) );\n mnfld.insertConnection( new Edge( mnfld.getPipe( 33f ), mnfld.getPipe( 9f ), 1f ) );\n mnfld.insertConnection( new Edge( mnfld.getPipe( 99f ), mnfld.getPipe( 5f ), 1f ) );\n mnfld.insertConnection( new Edge( mnfld.getPipe( 33f ), mnfld.getPipe( 1010f ), 1f ) );\n mnfld.insertConnection( new Edge( mnfld.getPipe( 1010f ), mnfld.getPipe( 7f ), 1f ) );\n mnfld.insertConnection( new Edge( mnfld.getPipe( 1f ), mnfld.getPipe( 20f ), 1f ) );\n mnfld.insertConnection( new Edge( mnfld.getPipe( 2020f ), mnfld.getPipe( 3f ), 1f ) );\n\n // -- Running Dijkstra & Finding shortest Paths -- //\n// Dijkstra.findPaths( mnfld, 10, \"0.0\", destTank );\n//\n// mnfld.restoreDroppedConnections();\n//\n// System.out.println( \"\\n\\n\" );\n Dijkstra.findMinPaths( mnfld, mnfld.getPipe( 0f ) );\n Dijkstra.mergePaths( mnfld, 1f, mnfld.getPipe( destTank ).getPath(), mnfld.getPipe( destTank ) );\n\n }", "@Override\n\tpublic boolean isConnected() {\n\t\tif(this.GA.nodeSize() ==1 || this.GA.nodeSize()==0) return true;\n\t\tgraph copied = this.copy();\n\t\ttagZero(copied);\n\t\tCollection<node_data> s = copied.getV();\n\t\tIterator it = s.iterator();\n\t\tnode_data temp = (node_data) it.next();\n\t\tDFSUtil(copied,temp);\n\t\tfor (node_data node : s) {\n\t\t\tif (node.getTag() == 0) return false;\n\t\t}\n\t\ttransPose(copied);\n\t\ttagZero(copied);\n\t Collection<node_data> s1 = copied.getV();\n\t\tIterator it1 = s1.iterator();\n\t\tnode_data temp1 = (node_data) it1.next();\n\t\tDFSUtil(copied,temp1);\n\t\tfor (node_data node1 : s1) {\n\t\t\tif (node1.getTag() == 0) return false;\n\t\t}\n\n\t\treturn true;\n\t}", "public BiMap<String, Integer> getPatternGroups() {\n return patternGroups;\n }", "GraphLayout createGraphLayout();", "public interface Graph\n{\n int getNumV();\n boolean isDirected();\n void insert(Edge edge);\n boolean isEdge(int source, int dest);\n Edge getEdge(int source, int dest);\n Iterator<Edge> edgeIterator(int source);\n}", "public Enumeration directedEdges();", "public weighted_graph copy();", "public UIFormGroupPane(final SchemaNode pNode) throws IllegalArgumentException\n\t{\n\t\tsuper();\n\t\tif (pNode == null)\n\t\t{\n\t\t\tthrow new IllegalArgumentException(\"pNode argument shall not be null\");\n\t\t}\n\t\tthis.nodes.add(pNode);\n\t}", "int isCycle( Graph graph){\n int parent[] = new int[graph.V]; \n \n // Initialize all subsets as single element sets \n for (int i=0; i<graph.V; ++i) \n parent[i]=-1; \n \n // Iterate through all edges of graph, find subset of both vertices of every edge, if both subsets are same, then there is cycle in graph. \n for (int i = 0; i < graph.E; ++i){ \n int x = graph.find(parent, graph.edge[i].src); \n int y = graph.find(parent, graph.edge[i].dest); \n \n if (x == y) \n return 1; \n \n graph.Union(parent, x, y); \n } \n return 0; \n }", "public static graphNode[] createGraph() {\n\t\tgraphNode[] graph = new graphNode[16];\n\t\t\n\t\tgraph[0] = new graphNode(1, new graphNode(5, null));\n\t\tgraph[1] = new graphNode(0, null);\n\t\tgraph[2] = new graphNode(7, new graphNode(11, null));\n\t\tgraph[3] = null; //illegal, fox eats chicken\n\t\tgraph[4] = new graphNode(5, new graphNode(7, new graphNode(13, null)));\n\t\tgraph[5] = new graphNode(0, new graphNode(4, null));\n\t\tgraph[6] = null; //illegal, chicken eats grain\n\t\tgraph[7] = new graphNode(2, new graphNode(4, null));\n\t\tgraph[8] = new graphNode(11, new graphNode(13, null));\n\t\tgraph[9] = null; //illegal, chicken eats grain\n\t\tgraph[10] = new graphNode(11, new graphNode(15, null));\n\t\tgraph[11] = new graphNode(2, new graphNode(8, new graphNode(10, null)));\n\t\tgraph[12] = null; //illegal, fox eats chicken\n\t\tgraph[13] = new graphNode(4, new graphNode(8, null));\n\t\tgraph[14] = new graphNode(15, null);\n\t\tgraph[15] = new graphNode(10, new graphNode(14, null));\n\t\t\n\t\treturn graph;\n\t}", "interface Group\n{\n\n public abstract LabelMap getElements(Context context)\n throws Exception;\n\n public abstract Label getLabel(Class class1);\n\n public abstract boolean isInline();\n}", "@Test\n public void tae0()\n {\n Graph g = new Graph(2);\n g.addEdge(0, 1);\n System.out.println(g);\n assertEquals(g.toString(), \"numNodes: 2\\nedges: [[false, true], [false, false]]\");\n }", "public final void rule__AstInputPattern__Group__4__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:14375:1: ( ( ']' ) )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:14376:1: ( ']' )\n {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:14376:1: ( ']' )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:14377:1: ']'\n {\n before(grammarAccess.getAstInputPatternAccess().getRightSquareBracketKeyword_4()); \n match(input,82,FOLLOW_82_in_rule__AstInputPattern__Group__4__Impl29078); \n after(grammarAccess.getAstInputPatternAccess().getRightSquareBracketKeyword_4()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "@Test\n public void tae4()\n {\n Graph graph = new Graph(4);\n graph.addEdge(0,0);\n graph.addEdge(0,1);\n graph.addEdge(0,2);\n graph.addEdge(0,3);\n graph.addEdge(1,0);\n graph.addEdge(1,1);\n graph.addEdge(1,2);\n graph.addEdge(1,3);\n graph.addEdge(2,0);\n graph.addEdge(2,1);\n graph.addEdge(2,2);\n graph.addEdge(2,3);\n graph.addEdge(3,0);\n graph.addEdge(3,1);\n graph.addEdge(3,2);\n graph.addEdge(3,3);\n System.out.println(graph);\n assertEquals(graph.toString(), \"numNodes: 4\\nedges: [[true, true, true, true], [true, true, true, true], \" +\n \"[true, true, true, true], [true, true, true, true]]\");\n }", "@Test\n void testIsConnected(){\n weighted_graph g = new WGraph_DS();\n for(int i = 1; i <= 7; i++){\n g.addNode(i);\n }\n g.connect(1,2,20);\n g.connect(1,5,15);\n g.connect(2,3,20);\n g.connect(5,6,15);\n g.connect(3,4,20);\n g.connect(6,4,15);\n g.connect(1,7,2);\n g.connect(7,4,50);\n weighted_graph_algorithms ga = new WGraph_Algo();\n ga.init(g);\n assertTrue(ga.isConnected());\n g.removeEdge(7,4);\n g.removeEdge(6,4);\n g.removeEdge(3,4);\n assertFalse(ga.isConnected());\n }", "public MutableGraph<PatternInstance> buildPatternEvolution(PatternInstance pi){\n MutableGraph<PatternInstance> patternEvolution = GraphBuilder.directed().allowsSelfLoops(false).build();\n\n for (SoftwareVersion v : patternSummaryTable.rowKeySet()) {\n for (PatternType pt : patternSummaryTable.columnKeySet()) {\n if (pi.getPatternType().equals(pt)){\n //same pattern type; not necessary but filters some pattern instances\n for (PatternInstance allPI : patternSummaryTable.get(v, pt)) {\n if (pi.isInstanceEqual(allPI)) {\n //same pattern, (hopefully)\n patternEvolution.addNode(allPI);\n }\n }\n }\n }\n }\n\n List<PatternInstance> orderedPIs = new ArrayList<>();\n //fill nodes\n for (PatternInstance node : patternEvolution.nodes()){\n orderedPIs.add(node);\n }\n orderedPIs.sort(Comparator.comparing(PatternInstance::getSoftwareVersion));\n //sort list\n //https://stackoverflow.com/questions/16252269/how-to-sort-an-arraylist\n// Collections.sort(orderedPIs, new Comparator<PatternInstance>() {\n// @Override\n// public int compare(PatternInstance patternInstance, PatternInstance t1) {\n// return patternInstance.getSoftwareVersion().getVersionNum() - t1.getSoftwareVersion().getVersionNum();\n// }\n// });\n\n //add edges\n for (int i = 0; i < orderedPIs.size()-1; i++){\n patternEvolution.putEdge(orderedPIs.get(i), orderedPIs.get(i+1));\n }\n\n return patternEvolution;\n }", "public final void rule__AstInputPattern__Group_0__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:14434:1: ( rule__AstInputPattern__Group_0__0__Impl rule__AstInputPattern__Group_0__1 )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:14435:2: rule__AstInputPattern__Group_0__0__Impl rule__AstInputPattern__Group_0__1\n {\n pushFollow(FOLLOW_rule__AstInputPattern__Group_0__0__Impl_in_rule__AstInputPattern__Group_0__029179);\n rule__AstInputPattern__Group_0__0__Impl();\n\n state._fsp--;\n\n pushFollow(FOLLOW_rule__AstInputPattern__Group_0__1_in_rule__AstInputPattern__Group_0__029182);\n rule__AstInputPattern__Group_0__1();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "@Test\n public void getStructureTest2() {\n DummyNode root = new DummyNode();\n root.addChild(root);\n DummyNode[] nodes = new DummyNode[6];\n for (int i = 0; i < 6; i++) {\n nodes[i] = new DummyNode();\n }\n root.addChild(nodes[0]); // ___\n root.addChild(nodes[0]); // v |\n root.addChild(nodes[1]); // root-'\n nodes[0].addChild(nodes[2]); // / \\\n nodes[1].addChild(nodes[2]); // 0 1\n nodes[2].addChild(nodes[3]); // \\ /\n nodes[2].addChild(nodes[4]); // 2\n nodes[2].addChild(nodes[5]); // / | \\\n // 3 4 5\n\n // actual computation:\n GraphStructure result = getStructure(root);\n\n int nLevels = Iterators.size(result.iterator());\n assertThat(nLevels).isEqualTo(4);\n\n int[] expectedNodesPerLayer = {1, 2, 1, 3};\n Iterator<GraphLevel> actualLevels = result.iterator();\n for (int expectedNodes : expectedNodesPerLayer) {\n assertThat(actualLevels.next().getWidth()).isEqualTo(expectedNodes);\n }\n }", "private void createGraph() {\n \t\t\n \t\t// Check capacity\n \t\tCytoscape.ensureCapacity(nodes.size(), edges.size());\n \n \t\t// Extract nodes\n \t\tnodeIDMap = new OpenIntIntHashMap(nodes.size());\n \t\tginy_nodes = new IntArrayList(nodes.size());\n \t\t// OpenIntIntHashMap gml_id2order = new OpenIntIntHashMap(nodes.size());\n \n \t\tfinal HashMap gml_id2order = new HashMap(nodes.size());\n \n \t\tSet nodeNameSet = new HashSet(nodes.size());\n \n \t\tnodeMap = new HashMap(nodes.size());\n \n \t\t// Add All Nodes to Network\n \t\tfor (int idx = 0; idx < nodes.size(); idx++) {\n \t\t\t\n \t\t\tif (taskMonitor != null) {\n \t\t\t\ttaskMonitor.setPercentCompleted(percentUtil.getGlobalPercent(1,\n \t\t\t\t\t\tidx, nodes.size()));\n \t\t\t}\n \n \t\t\t// Get a node object (NOT a giny node. XGMML node!)\n \t\t\tfinal cytoscape.generated2.Node curNode = (cytoscape.generated2.Node) nodes\n \t\t\t\t\t.get(idx);\n \t\t\tfinal String nodeType = curNode.getName();\n \t\t\tfinal String label = (String) curNode.getLabel();\n \n \t\t\treadAttributes(label, curNode.getAtt(), NODE);\n \n \t\t\tnodeMap.put(curNode.getId(), label);\n \n \t\t\tif (nodeType != null) {\n \t\t\t\tif (nodeType.equals(\"metaNode\")) {\n \t\t\t\t\tfinal Iterator it = curNode.getAtt().iterator();\n \t\t\t\t\twhile (it.hasNext()) {\n \t\t\t\t\t\tfinal Att curAttr = (Att) it.next();\n \t\t\t\t\t\tif (curAttr.getName().equals(\"metanodeChildren\")) {\n \t\t\t\t\t\t\tmetanodeMap.put(label, ((Graph) curAttr.getContent()\n \t\t\t\t\t\t\t\t\t.get(0)).getNodeOrEdge());\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\tif (nodeNameSet.add(curNode.getId())) {\n \t\t\t\tfinal Node node = (Node) Cytoscape.getCyNode(label, true);\n \n \t\t\t\tginy_nodes.add(node.getRootGraphIndex());\n \t\t\t\tnodeIDMap.put(idx, node.getRootGraphIndex());\n \n \t\t\t\t// gml_id2order.put(Integer.parseInt(curNode.getId()), idx);\n \n \t\t\t\tgml_id2order.put(curNode.getId(), Integer.toString(idx));\n \n \t\t\t\t// ((KeyValue) node_root_index_pairs.get(idx)).value = (new\n \t\t\t\t// Integer(\n \t\t\t\t// node.getRootGraphIndex()));\n \t\t\t} else {\n \t\t\t\tthrow new XGMMLException(\"XGMML id \" + nodes.get(idx)\n \t\t\t\t\t\t+ \" has a duplicated label: \" + label);\n \t\t\t\t// ((KeyValue)node_root_index_pairs.get(idx)).value = null;\n \t\t\t}\n \t\t}\n \t\tnodeNameSet = null;\n \n \t\t// Extract edges\n \t\tginy_edges = new IntArrayList(edges.size());\n \t\tSet edgeNameSet = new HashSet(edges.size());\n \n \t\tfinal CyAttributes edgeAttributes = Cytoscape.getEdgeAttributes();\n \n \t\t// Add All Edges to Network\n \t\tfor (int idx = 0; idx < edges.size(); idx++) {\n \n \t\t\tif (taskMonitor != null) {\n \t\t\t\ttaskMonitor.setPercentCompleted(percentUtil.getGlobalPercent(2,\n \t\t\t\t\t\tidx, edges.size()));\n \t\t\t}\n \t\t\tfinal cytoscape.generated2.Edge curEdge = (cytoscape.generated2.Edge) edges\n \t\t\t\t\t.get(idx);\n \n \t\t\tif (gml_id2order.containsKey(curEdge.getSource())\n \t\t\t\t\t&& gml_id2order.containsKey(curEdge.getTarget())) {\n \n \t\t\t\tString edgeName = curEdge.getLabel();\n \n \t\t\t\tif (edgeName == null) {\n \t\t\t\t\tedgeName = \"N/A\";\n \t\t\t\t}\n \n \t\t\t\tint duplicate_count = 1;\n \t\t\t\twhile (!edgeNameSet.add(edgeName)) {\n \t\t\t\t\tedgeName = edgeName + \"_\" + duplicate_count;\n \t\t\t\t\tduplicate_count += 1;\n \t\t\t\t}\n \n \t\t\t\tEdge edge = Cytoscape.getRootGraph().getEdge(edgeName);\n \n \t\t\t\tif (edge == null) {\n \n \t\t\t\t\tfinal String sourceName = (String) nodeMap.get(curEdge\n \t\t\t\t\t\t\t.getSource());\n \t\t\t\t\tfinal String targetName = (String) nodeMap.get(curEdge\n \t\t\t\t\t\t\t.getTarget());\n \n \t\t\t\t\tfinal Node node_1 = Cytoscape.getRootGraph().getNode(\n \t\t\t\t\t\t\tsourceName);\n \t\t\t\t\tfinal Node node_2 = Cytoscape.getRootGraph().getNode(\n \t\t\t\t\t\t\ttargetName);\n \n \t\t\t\t\tfinal Iterator it = curEdge.getAtt().iterator();\n \t\t\t\t\tAtt interaction = null;\n \t\t\t\t\tString itrValue = \"unknown\";\n \t\t\t\t\twhile (it.hasNext()) {\n \t\t\t\t\t\tinteraction = (Att) it.next();\n \t\t\t\t\t\tif (interaction.getName().equals(\"interaction\")) {\n \t\t\t\t\t\t\titrValue = interaction.getValue();\n \t\t\t\t\t\t\tif (itrValue == null) {\n \t\t\t\t\t\t\t\titrValue = \"unknown\";\n \t\t\t\t\t\t\t}\n \t\t\t\t\t\t\tbreak;\n \t\t\t\t\t\t}\n \t\t\t\t\t}\n \n \t\t\t\t\tedge = Cytoscape.getCyEdge(node_1, node_2,\n \t\t\t\t\t\t\tSemantics.INTERACTION, itrValue, true);\n \n \t\t\t\t\t// Add interaction to CyAttributes\n \t\t\t\t\tedgeAttributes.setAttribute(edge.getIdentifier(),\n \t\t\t\t\t\t\tSemantics.INTERACTION, itrValue);\n \t\t\t\t}\n \n \t\t\t\t// Set correct ID, canonical name and interaction name\n \t\t\t\tedge.setIdentifier(edgeName);\n \n \t\t\t\treadAttributes(edgeName, curEdge.getAtt(), EDGE);\n \n \t\t\t\tginy_edges.add(edge.getRootGraphIndex());\n \t\t\t\t// ((KeyValue) edge_root_index_pairs.get(idx)).value = (new\n \t\t\t\t// Integer(\n \t\t\t\t// edge.getRootGraphIndex()));\n \t\t\t} else {\n \t\t\t\tthrow new XGMMLException(\n \t\t\t\t\t\t\"Non-existant source/target node for edge with gml (source,target): \"\n \t\t\t\t\t\t\t\t+ nodeMap.get(curEdge.getSource()) + \",\"\n \t\t\t\t\t\t\t\t+ nodeMap.get(curEdge.getTarget()));\n \t\t\t}\n \t\t}\n \t\tedgeNameSet = null;\n \n \t\tif (metanodeMap.size() != 0) {\n \t\t\tfinal Iterator it = metanodeMap.keySet().iterator();\n \t\t\twhile (it.hasNext()) {\n \t\t\t\tfinal String key = (String) it.next();\n \t\t\t\tcreateMetaNode(key, (List) metanodeMap.get(key));\n \t\t\t}\n \t\t}\n \t}", "public static boolean Util(Graph<V, DefaultEdge> g, ArrayList<V> set, int colors, HashMap<String, Integer> coloring, int i, ArrayList<arc> arcs, Queue<arc> agenda)\n {\n /*if (i == set.size())\n {\n System.out.println(\"reached max size\");\n return true;\n }*/\n if (set.isEmpty())\n {\n System.out.println(\"Set empty\");\n return true;\n }\n //V currentVertex = set.get(i);\n\n /*System.out.println(\"vertices and mrv:\");\n V start = g.vertexSet().stream().filter(V -> V.getID().equals(\"0\")).findAny().orElse(null);\n Iterator<V> iterator = new DepthFirstIterator<>(g, start);\n while (iterator.hasNext()) {\n V v = iterator.next();\n System.out.println(\"vertex \" + v.getID() + \" has mrv of \" + v.mrv);\n }*/\n\n // Find vertex with mrv\n V currentVertex;\n int index = -1;\n int mrv = colors + 10;\n for (int it = 0; it < set.size(); it++)\n {\n if (set.get(it).mrv < mrv)\n {\n mrv = set.get(it).mrv;\n index = it;\n }\n }\n currentVertex = set.remove(index);\n\n //System.out.println(\"Got vertex: \" + currentVertex.getID());\n\n\n // Try to assign that vertex a color\n for (int c = 0; c < colors; c++)\n {\n currentVertex.color = c;\n if (verifyColor(g, currentVertex))\n {\n\n // We can assign color c to vertex v\n // See if AC3 is satisfied\n /*currentVertex.domain.clear();\n currentVertex.domain.add(c);*/\n if (!agenda.isEmpty()) numAgenda++;\n while(!agenda.isEmpty())\n {\n arc temp = agenda.remove();\n\n // Make sure there exists v1, v2, in V1, V2, such that v1 != v2\n V v1 = g.vertexSet().stream().filter(V -> V.getID().equals(temp.x)).findAny().orElse(null);\n V v2 = g.vertexSet().stream().filter(V -> V.getID().equals(temp.y)).findAny().orElse(null);\n\n\n\n // No solution exists in this branch if a domain is empty\n //if ((v1.domain.isEmpty()) || (v2.domain.isEmpty())) return false;\n\n if (v2.color == -1) continue;\n else\n {\n Boolean[] toRemove = new Boolean[colors];\n Boolean domainChanged = false;\n for (Integer it : v1.domain)\n {\n if (it == v2.color)\n {\n toRemove[it] = true;\n }\n }\n for (int j = 0; j < toRemove.length; j++)\n {\n if ((toRemove[j] != null))\n {\n v1.domain.remove(j);\n domainChanged = true;\n }\n }\n // Need to check constraints with v1 on the right hand side\n if (domainChanged)\n {\n for (arc it : arcs)\n {\n // Add arc back to agenda to check constraints again\n if (it.y.equals(v1.getID()))\n {\n agenda.add(it);\n }\n }\n }\n }\n if ((v1.domain.isEmpty()) || (v2.domain.isEmpty()))\n {\n System.out.println(\"returning gfalse here\");\n return false;\n }\n }\n\n // Reset agenda to check arc consistency on next iteration\n for (int j = 0; j < arcs.size(); j++)\n {\n agenda.add(arcs.get(i));\n }\n\n\n //System.out.println(\"Checking if vertex \" + currentVertex.getID() + \" can be assigned color \" + c);\n coloring.put(currentVertex.getID(), c);\n updateMRV(g, currentVertex);\n if (Util(g, set, colors, coloring, i + 1, arcs, agenda))\n {\n\n return true;\n }\n\n //System.out.println(\"Assigning vertex \" + currentVertex.getID() + \" to color \" + currentVertex.color + \" did not work\");\n coloring.remove(currentVertex.getID());\n currentVertex.color = -1;\n }\n }\n return false;\n }", "public SubGraph(){\r\n\t\tsuper();\r\n\t}", "GraphFactory getGraphFactory();", "int getAndSequenceGroupsCount();", "void addAll(Graph graph);", "@Override\n public boolean isGroup() {\n return false;\n }", "void graph3() {\n\t\tconnect(\"0\", \"0\");\n\t\tconnect(\"2\", \"2\");\n\t\tconnect(\"2\", \"3\");\n\t\tconnect(\"3\", \"0\");\n\t}", "private void compose() {\n for(Group group : inputGroupList){\n if(group.getGroups().size() > 0){\n LinkedList<Integer> upperGroups = group.getGroups();\n for(int i = 0; i < upperGroups.size(); i++){\n int id = upperGroups.get(i);\n Group upper = findById(id);\n upper.addChild(group);\n }\n } else{\n root.addChild(group);\n }\n }\n for(Address adr : inputAddressList){\n if(adr.getGroups().size() > 0){\n LinkedList<Integer> upperGroups = adr.getGroups();\n for(int i = 0; i < upperGroups.size(); i++){\n int id = upperGroups.get(i);\n Group upper = findById(id);\n upper.addChild(adr);\n adr.addParent(upper);\n }\n } else{\n root.addChild(adr);\n }\n }\n\n assert(root.getChildren().size() > 0);\n }", "public interface PathExistsInGraph {\n\n boolean validPath(int n, int[][] edges, int start, int end);\n\n default Map<Integer, Set<Integer>> prepareGraph(final int n, final int[][] edges) {\n Map<Integer, Set<Integer>> graph = new HashMap<>();\n for (int i = 0; i < n; i++) {\n graph.put(i, new HashSet<>());\n }\n for (int[] edge : edges) {\n graph.get(edge[0]).add(edge[1]);\n graph.get(edge[1]).add(edge[0]);\n }\n return graph;\n }\n}", "LogicalGraph callForGraph(GraphsToGraphOperator operator, LogicalGraph... otherGraphs);", "@Test\n public void shouldGetTheLevelsInSortedOrder() {\n String currentPipeline = \"P1\";\n ValueStreamMap graph = new ValueStreamMap(currentPipeline, null);\n graph.addUpstreamNode(new PipelineDependencyNode(\"d1\", \"d1\"), null, currentPipeline);\n graph.addUpstreamNode(new PipelineDependencyNode(\"d2\", \"d2\"), null, currentPipeline);\n graph.addUpstreamNode(new PipelineDependencyNode(\"d3\", \"d3\"), null, \"d1\");\n graph.addUpstreamNode(new PipelineDependencyNode(\"d3\", \"d3\"), null, \"d2\");\n\n List<List<Node>> nodesAtEachLevel = graph.presentationModel().getNodesAtEachLevel();\n\n assertThat(nodesAtEachLevel.size(), is(3));\n assertThat(nodesAtEachLevel.get(0).get(0).getName(), is(\"d3\"));\n assertThat(nodesAtEachLevel.get(1).get(0).getName(), is(\"d1\"));\n assertThat(nodesAtEachLevel.get(1).get(1).getName(), is(\"d2\"));\n assertThat(nodesAtEachLevel.get(2).get(0).getName(), is(currentPipeline));\n }", "static void findGroups() {\n G2 = 0;\n while (group2()) {\n }\n\n // find group of size 3\n G3 = 0;\n while (group3()) {\n }\n }", "GroupsType createGroupsType();", "@Test\n public void tae3()\n {\n Graph graph = new Graph(3);\n graph.addEdge(0,0);\n graph.addEdge(0,1);\n graph.addEdge(1,1);\n System.out.println(graph);\n assertEquals(graph.toString(), \"numNodes: 3\\nedges: [[true, true, false], [false, true, false], \" +\n \"[false, false, false]]\");\n }", "public Graph() {\n }", "public Set getGroups() { return this.groups; }", "private BranchGroup createSceneGraph() {\n\n\t\t// create the main BranchGroup\n\t\tBranchGroup objRoot = new BranchGroup();\n\n\t\tobjRoot.setCapability(TransformGroup.ALLOW_TRANSFORM_WRITE);\n\t\tobjRoot.setCapability(TransformGroup.ALLOW_TRANSFORM_READ);\n\n\t\t// reckon the size of the graph\n\t\tint nbRules = rules.length;\n\n\t\tfloat[] maxC = new float[criteres.length];\n\t\tfloat[] minC = new float[criteres.length];\n\n\t\tint nRule, nCrit;\n\t\tAttribute attr;\n\t\tfloat val;\n\t\tHashtable htAttrs = new Hashtable();\n\n\t\tfor (nRule = 0; nRule < nbRules; nRule++) {\n\t\t\t//make a list of all attributes\n\t\t\tIterator it = (rules[nRule].getCondition()).listIterator();\n\t\t\twhile (it.hasNext()) {\n\t\t\t\tattr = (Attribute) it.next();\n\t\t\t\thtAttrs.put(attr.toString(), attr);\n\t\t\t}\n\n\t\t\tattr = rules[nRule].getConclusion();\n\t\t\thtAttrs.put(attr.toString(), attr);\n\n\t\t\t//find min & max of each criteres\n\t\t\tfor (nCrit = 0; nCrit < criteres.length; nCrit++) {\n\t\t\t\tval = (rules[nRule].getCritere(criteres[nCrit]).getValue());\n\n\t\t\t\tif (nRule == 0) {\n\t\t\t\t\tmaxC[nCrit] = val;\n\t\t\t\t\tminC[nCrit] = val;\n\t\t\t\t} else {\n\t\t\t\t\tif (maxC[nCrit] < val)\n\t\t\t\t\t\tmaxC[nCrit] = val;\n\t\t\t\t\tif (minC[nCrit] > val)\n\t\t\t\t\t\tminC[nCrit] = val;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tLinkedList lAttrs = new LinkedList(htAttrs.values());\n\t\tint nbAttrs = lAttrs.size();\n\n\t\tfloat size = .040f;\t\t\n//\t\tfloat size = 0.85f/(nbAttrs+10);\n//\t\tfloat size = 0.05f - (0.0006f * nbRules);\n\n\t\t// create a new BranchGroup to turn the scene\n\t\tTransform3D tRotateX = new Transform3D();\n\t\ttRotateX.rotX(Math.PI / 6.0d);\n\t\tTransform3D tRotateY = new Transform3D();\n\t\ttRotateY.rotY(-Math.PI / 6.0d);\n\t\ttRotateX.mul(tRotateY);\n\t\tfloat minSize = Math.min(0.75f/(nbAttrs+10), 0.05f - (0.0006f * nbRules));\n\n\n\n\t\tTransform3D tScale = new Transform3D();\n\t\ttScale.setScale(minSize/size);\n\t\ttRotateX.mul(tScale);\n\t\tTransformGroup tgRotate = new TransformGroup(tRotateX);\n\n\t\tobjRoot.addChild(tgRotate);\n\n\t\t// create a new BranchGroup \n\t\tBranchGroup bgObjGraph = new BranchGroup();\n\n\t\ttgRotate.addChild(bgObjGraph);\n\n\t\t// Draw the graph\n\t\tint nAtt;\n\t\tboolean drawn;\n\t\tRule currentRule;\n\t\tLinkedList ruleLHS;\n\t\tIterator idxRulesLHS;\n\t\tfor (nRule = 0; nRule < nbRules; nRule++) {\n\t\t\tcurrentRule = rules[nRule];\n\t\t\tfor (nAtt = 0; nAtt < nbAttrs; nAtt++) {\n\t\t\t\tidxRulesLHS = (currentRule.getCondition()).listIterator();\n\t\t\t\tdrawn = false;\n\t\t\t\tif (currentRule\n\t\t\t\t\t.getConclusion()\n\t\t\t\t\t.equals(((Attribute) lAttrs.get(nAtt)))) {\n\t\t\t\t\t//draw as a conclusion\t\n\t\t\t\t\tbgObjGraph.addChild(\n\t\t\t\t\t\tcreateBox(\n\t\t\t\t\t\t\t(nRule * size) - (nbRules / 2 * size),\n\t\t\t\t\t\t\tnAtt * size,\n\t\t\t\t\t\t\tsize,\n\t\t\t\t\t\t\tsize,\n\t\t\t\t\t\t\tnew Color3f(Color.RED)));\n\t\t\t\t\tdrawn = true;\n\t\t\t\t}\n\t\t\t\tif (!drawn) {\n\t\t\t\t\twhile (idxRulesLHS.hasNext()) {\n\t\t\t\t\t\tif (((Attribute) idxRulesLHS.next())\n\t\t\t\t\t\t\t.equals((Attribute) lAttrs.get(nAtt))) {\n\t\t\t\t\t\t\t//draw as an attribute\t\n\t\t\t\t\t\t\tbgObjGraph.addChild(\n\t\t\t\t\t\t\t\tcreateBox(\n\t\t\t\t\t\t\t\t\t(nRule * size) - (nbRules / 2 * size),\n\t\t\t\t\t\t\t\t\tnAtt * size,\n\t\t\t\t\t\t\t\t\tsize,\n\t\t\t\t\t\t\t\t\tsize,\n\t\t\t\t\t\t\t\t\tnew Color3f(Color.green)));\n\t\t\t\t\t\t\tdrawn = true;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (!drawn) {\n\t\t\t\t\t//draw as nothing\t\n\t\t\t\t\tbgObjGraph.addChild(\n\t\t\t\t\t\tcreateBox(\n\t\t\t\t\t\t\t(nRule * size) - (nbRules / 2 * size),\n\t\t\t\t\t\t\tnAtt * size,\n\t\t\t\t\t\t\tsize,\n\t\t\t\t\t\t\tsize / 10,\n\t\t\t\t\t\t\tnew Color3f(Color.BLACK)));\n\t\t\t\t}\n\n\t\t\t\t// draw criteres values\n\t\t\t\tfor (nCrit = 0; nCrit < criteres.length; nCrit++) {\n\t\t\t\t\tval = (rules[nRule].getCritere(criteres[nCrit]).getValue());\n\t\t\t\t\tbgObjGraph.addChild(\n\t\t\t\t\t\tcreateBox((nRule*size)-(nbRules/2*size),\n\t\t\t\t\t\t\t-(nCrit+1)*size,\n\t\t\t\t\t\t\tsize,\n\t\t\t\t\t\t\t5*size*nCrit+(val-minC[nCrit])*4*size/(maxC[nCrit]-minC[nCrit]),\n\t\t\t\t\t\t\tnew Color3f(ColorArray.colorArray[nCrit + 3])));\n\n\t\t\t\t}\n\n\t\t\t}\n\t\t\t//draw rule ID\t\n\t\t\tbgObjGraph.addChild(\n\t\t\t\tcreateTextY(\n\t\t\t\t\t(nRule * size) - (nbRules / 2 * size),\n\t\t\t\t\tnAtt * size,\n\t\t\t\t\tsize,\n\t\t\t\t\tcurrentRule.getId(),\n\t\t\t\t\tnew Color3f(Color.WHITE)));\n\n\t\t}\n\n\t\t// draw ladder\n\t\tint i;\n\t\tLineArray axis;\n\t\tfor (i = 0; i < 10; i++) {\n\t\t\taxis = new LineArray(2, LineArray.COORDINATES | LineArray.COLOR_3);\n\t\t\taxis.setCoordinate(\n\t\t\t\t0,\n\t\t\t\tnew Point3f(- (nbRules + 4) * size / 2, i * size, -size));\n\t\t\taxis.setCoordinate(\n\t\t\t\t1,\n\t\t\t\tnew Point3f((nbRules + 4) * size / 2, i * size, -size));\n\t\t\taxis.setColor(0, new Color3f(1f, 0f, 1f));\n\t\t\taxis.setColor(1, new Color3f(1f, 0f, 1f));\n\n\t\t\tbgObjGraph.addChild(new Shape3D(axis));\n\t\t}\n\n\t\t//draw min/max\n\t\tfor (nCrit = 0; nCrit < criteres.length; nCrit++) {\n\t\t\tbgObjGraph.addChild(\n\t\t\t\tcreateTextScale(\n\t\t\t\t\t(nbRules + 5) * size / 2,\n\t\t\t\t\tnCrit * 5 * size - size / 2,\n\t\t\t\t\tsize,\n\t\t\t\t\t(new Float(minC[nCrit])).toString(),\n\t\t\t\t\tnew Color3f(ColorArray.colorArray[nCrit + 3])));\n\t\t\tbgObjGraph.addChild(\n\t\t\t\tcreateTextScale(\n\t\t\t\t\t(nbRules + 5) * size / 2,\n\t\t\t\t\tnCrit * 5 * size + 4 * size - size / 2,\n\t\t\t\t\tsize,\n\t\t\t\t\t(new Float(maxC[nCrit])).toString(),\n\t\t\t\t\tnew Color3f(ColorArray.colorArray[nCrit + 3])));\n\t\t\tbgObjGraph.addChild(\n\t\t\t\tcreateTextScale(\n\t\t\t\t\t(nbRules + 8) * size / 2,\n\t\t\t\t\tnCrit * 5 * size + 2 * size - size / 2,\n\t\t\t\t\tsize,\n\t\t\t\t\tcriteres[nCrit],\n\t\t\t\t\tnew Color3f(ColorArray.colorArray[nCrit + 3])));\n\n\t\t}\n\n\t\t// write attributes\n\t\tfor (nAtt = 0; nAtt < nbAttrs; nAtt++) {\n\t\t\tbgObjGraph.addChild(\n\t\t\t\tcreateTextX(\n\t\t\t\t\t(nRule * size) + size - (nbRules / 2 * size),\n\t\t\t\t\tnAtt * size + size / 3,\n\t\t\t\t\tsize,\n\t\t\t\t\t((Attribute) lAttrs.get(nAtt)).toString(),\n\t\t\t\t\tnew Color3f(Color.WHITE)));\n\t\t}\n\n\n\t\t// draw legend\n\t\tbgObjGraph.addChild(createBox(- (nbRules / 2 * size),(nbAttrs+5) * size,size,size,new Color3f(Color.green)));\n\t\tbgObjGraph.addChild(createTextX( size - (nbRules / 2 * size),(nbAttrs+5) * size + size / 3,size,\"ANTECEDENT\",new Color3f(Color.WHITE)));\n\t\tbgObjGraph.addChild(createBox(- (nbRules / 2 * size),(nbAttrs+7) * size,size,size,new Color3f(Color.red)));\n\t\tbgObjGraph.addChild(createTextX( size - (nbRules / 2 * size),(nbAttrs+7) * size + size / 3,size,\"CONSEQUENT\",new Color3f(Color.WHITE)));\n\t\t\t\n\n\t\treturn objRoot;\n\t}", "private static SequenceGraph generateSequenceGraph(Set<String> sequences) {\n\t\tif (sequences == null) {\n\t\t\treturn null;\n\t\t}\n\n\t\tSequenceGraph graph = new SequenceGraph();\n\n\t\t// Pairwise check all sequences for overlapping relationships\n\t\tfor (String firstSequence : sequences) {\n\t\t\tgraph.addSequence(firstSequence);\n\n\t\t\tfor (String secondSequence : sequences) {\n\t\t\t\tif (firstSequence == secondSequence) {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\n\t\t\t\tint overlap = getSequenceOverlapIndex(firstSequence, secondSequence);\n\t\t\t\tif (overlap >= 0) {\n\t\t\t\t\tgraph.addOverlap(firstSequence, secondSequence, overlap);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn graph;\n\t}" ]
[ "0.6131746", "0.61203146", "0.57729405", "0.57059026", "0.5673607", "0.56123716", "0.5574372", "0.551384", "0.54712886", "0.54488915", "0.5439074", "0.5404794", "0.53979206", "0.537479", "0.53696954", "0.53276384", "0.52755845", "0.52346295", "0.52258337", "0.5194557", "0.5187872", "0.51874435", "0.51754427", "0.5153902", "0.5120724", "0.5109396", "0.5096299", "0.5093003", "0.5080534", "0.50801206", "0.50734985", "0.5066202", "0.5062354", "0.50574255", "0.50557464", "0.5054036", "0.5049281", "0.5048703", "0.50364", "0.5031032", "0.5013432", "0.50087553", "0.5004378", "0.4985186", "0.49844575", "0.4975154", "0.49747765", "0.49645445", "0.49594352", "0.4959342", "0.4957842", "0.4955064", "0.49530116", "0.49317327", "0.49221766", "0.49184665", "0.49171525", "0.49106035", "0.49078032", "0.49060547", "0.489857", "0.4895277", "0.4886042", "0.4885167", "0.48851025", "0.48790124", "0.48741737", "0.4871752", "0.48686847", "0.4862645", "0.4859036", "0.48585513", "0.48548394", "0.4852789", "0.48526233", "0.48486656", "0.4848195", "0.48471895", "0.4846369", "0.48430905", "0.48409456", "0.48383805", "0.48379973", "0.48359853", "0.48358876", "0.48341563", "0.4825043", "0.48240107", "0.48239127", "0.48157877", "0.480554", "0.4803401", "0.48008862", "0.4800055", "0.47983813", "0.47982872", "0.47964576", "0.47935623", "0.4791413", "0.4788569" ]
0.6369063
0
nodeToken > constraint > Constraint()
@Override public R visit(Filter n, A argu) { R _ret = null; n.nodeToken.accept(this, argu); n.constraint.accept(this, argu); return _ret; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Constraint createConstraint();", "Constraint createConstraint();", "public LinearConstraint() {\n\n }", "public interface ConstraintContext {\n Optional<TraversalConstraint> getConstraint();\n}", "public interface Constraint extends TOSCAObject<Constraint> {\n\n\tpublic String name();\n\n\tpublic default Constraint.Type type() {\n\t\treturn Type.valueOf(Type.class, name());\n\t}\n\n\t/* this is a one entry map so here we pick the single \n\t */\n\tpublic default Object expression() {\n\t\treturn info().values().iterator().next();\n\t}\n\n\tpublic enum Type {\n\t\tequal,\n\t\tgreater_than,\n\t\tgreater_or_equal,\n\t\tless_than,\n\t\tless_or_equal,\n\t\tin_range,\n\t\tvalid_values,\n\t\tlength,\n\t\tmin_length,\n\t\tmax_length,\n\t\tpattern\n\t}\n}", "private void addConstraint(String tok) throws SyntaxError {\n assert(tok.startsWith(PREFIX_OP_STR));\n \n if (!tok.endsWith(\")\")) {\n throw new SyntaxError(String.format(\"Wrong format for the constraint '%s', expected format: %s\",\n tok, CONSTR_FMT));\n }\n int pos = tok.indexOf('(');\n if (pos == -1) {\n throw new SyntaxError(String.format(\"Missing '(' in the constraint '%s', expected format: %s\",\n tok, CONSTR_FMT)); \n }\n String op = tok.substring(1, pos);\n ConstraintType type = ConstraintType.CONSTRAINT_PARENT;\n if (op.equalsIgnoreCase(CONSTR_CONTAINS)) {\n type = ConstraintType.CONSTRAINT_CONTAINS;\n } else if (!op.equalsIgnoreCase(CONSTR_PARENT)) {\n throw new SyntaxError(String.format(\"Wrong constraint name '%s' in the element '%s'\", op, tok));\n }\n // Labels cannot contain commas\n String parts[] = tok.substring(pos + 1, tok.length() - 1).split(\",\");\n if (parts.length < 2) {\n throw new SyntaxError(String.format(\n \"There should be at least 2 elements between '(' and ')'\" + \n \" in the constraint '%s', expected format %s\",\n tok, CONSTR_FMT));\n }\n String headLabel = parts[0].trim();\n Integer headId = mLabel2Id.get(headLabel);\n if (null == headId) {\n throw new SyntaxError(String.format(\"Cannot find a lexical entry \" +\n \" for the label '%s', constraint '%s'\", headLabel, tok)); \n }\n\n ArrayList<ConstraintType> constr = mConstrType.get(headId);\n ArrayList<Integer> dependIds = mDependId.get(headId);\n \n if (ConstraintType.CONSTRAINT_PARENT == type) {\n if (mTypes.get(headId) != FieldType.FIELD_ANNOTATION) {\n throw new SyntaxError(String.format(\n \"The parent in the constraint '%s' should be an annotation\", tok));\n }\n }\n \n for (int i = 1; i < parts.length; ++i) {\n String depLabel = parts[i].trim();\n Integer depId = mLabel2Id.get(depLabel);\n if (null == depId) {\n throw new SyntaxError(String.format(\"Cannot find a lexical entry \" +\n \" for the label '%s', constraint '%s'\", depLabel, tok)); \n }\n \n if (ConstraintType.CONSTRAINT_PARENT == type) {\n if (mTypes.get(depId) != FieldType.FIELD_ANNOTATION) {\n throw new SyntaxError(String.format(\n \"A child (label '%s') in the constraint '%s' should be an annotation\", \n depLabel, tok));\n }\n } \n \n constr.add(type);\n dependIds.add(depId);\n\n /*\n * This is a potentially horrible linear-time complexity search\n * in an array. However, for a reasonable-size user query \n * these arrays are going to be tiny and, in practice, \n * such a linear search be as fast as or likely even faster than \n * a hash/tree map lookup.\n */\n if (!mEdges.get(depId).contains(headId))\n mEdges.get(depId).add(headId);\n if (!mEdges.get(headId).contains(depId))\n mEdges.get(headId).add(depId);\n\n }\n }", "public InstConstraintVisitor(){}", "public FormalGenConstraint getConstraint() {\n return constraint;\n }", "@Override\n\tpublic void addConstraint(String constraint) {\n\n\t}", "public ConstraintDefinition() {\n\t\tthis(\"\");\n\t}", "public ConstraintVertex(Coordinate p) {\n super(p);\n }", "public Constraint(String cnline)\n {\n// PrintStream stdout = System.out;\n// stdout.printf(\"Constraint: line: %s\\n\", cnline);\n\tString[] cnArray = cnline.split(\" \");\n\tif (cnArray.length != 2) {\n\t debug.error(\"Invalid constraint: '%s'\", cnline);\n\t}\n\n\tthis.name = cnArray[0].toLowerCase();;\n\tthis.mf = Scoring.mf2int(cnArray[1].charAt(0));\n }", "public void addConstraint(ContextConstraint node) {\n List<ContextConstraint> list = getConstraintList();\n list.addChild(node);\n }", "public Constraint addConstraint() {\n\t\tConstraint newType = new Constraint();\n\t\tgetConstraint().add(newType);\n\t\treturn newType; \n\t}", "@DISPID(1610940427) //= 0x6005000b. The runtime will prefer the VTID if present\n @VTID(33)\n Constraints constraints();", "RegExConstraint createRegExConstraint();", "@Override\n\tprotected void getConstraintFromNetlistConstraintFile() {\n\n\t}", "public NodeConstraints createNodeConstraintsObject() {\n NodeConstraints c = new NodeConstraints(getClass().getCanonicalName(), getReturnTypes(), numChildren, NodeConstraints.ERC);\n Object[] args = getConstructorArgs();\n if (args != null) {\n c.setArgs(args);\n }\n return c;\n }", "public final void constraint() throws RecognitionException {\n CommonTree IDENTIFIER7 = null;\n Expression e = null;\n\n List<EAnnotation> anns = null;\n\n\n try {\n // parser/flatzinc/FlatzincFullExtWalker.g:722:2: ( ^( CONSTRAINT IDENTIFIER (e= expr )+ anns= annotations ) )\n // parser/flatzinc/FlatzincFullExtWalker.g:723:2: ^( CONSTRAINT IDENTIFIER (e= expr )+ anns= annotations )\n {\n\n // Solver aSolver, String id, List<Expression> exps, List<EAnnotation> annotations\n ArrayList<Expression> exps = new ArrayList();\n\n\n match(input, CONSTRAINT, FOLLOW_CONSTRAINT_in_constraint2144);\n\n match(input, Token.DOWN, null);\n IDENTIFIER7 = (CommonTree) match(input, IDENTIFIER, FOLLOW_IDENTIFIER_in_constraint2146);\n\n // parser/flatzinc/FlatzincFullExtWalker.g:727:30: (e= expr )+\n int cnt48 = 0;\n loop48:\n do {\n int alt48 = 2;\n switch (input.LA(1)) {\n case EXPR:\n case FALSE:\n case IDENTIFIER:\n case INT_CONST:\n case LB:\n case STRING:\n case TRUE: {\n alt48 = 1;\n }\n break;\n\n }\n\n switch (alt48) {\n case 1:\n // parser/flatzinc/FlatzincFullExtWalker.g:727:31: e= expr\n {\n pushFollow(FOLLOW_expr_in_constraint2151);\n e = expr();\n\n state._fsp--;\n\n\n exps.add(e);\n\n }\n break;\n\n default:\n if (cnt48 >= 1) break loop48;\n EarlyExitException eee =\n new EarlyExitException(48, input);\n throw eee;\n }\n cnt48++;\n } while (true);\n\n\n pushFollow(FOLLOW_annotations_in_constraint2158);\n anns = annotations();\n\n state._fsp--;\n\n\n match(input, Token.UP, null);\n\n\n String id = (IDENTIFIER7 != null ? IDENTIFIER7.getText() : null);\n FConstraint.make_constraint(mSolver, map, id, exps, anns);\n\n\n }\n\n } catch (RecognitionException re) {\n reportError(re);\n recover(input, re);\n } finally {\n // do for sure before leaving\n }\n return;\n }", "void visitConstraintValue(ConstraintValue value);", "public java.util.List<Constraint> getConstraint() { \n\t\tif (myConstraint == null) {\n\t\t\tmyConstraint = new java.util.ArrayList<Constraint>();\n\t\t}\n\t\treturn myConstraint;\n\t}", "public PrimitiveConstraint getConstraint() {\r\n return new XlteqC(var, value);\r\n }", "protected abstract void defineConstraints();", "ConstraintModelFactory getConstraintModelFactory();", "@Override\n public R visit(Constraint n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "public void createConstraint(ConstraintConfig constraintConfig) throws ConfigurationException;", "@objid (\"db7f3c97-1871-4855-958d-3659b2211f8a\")\n protected Object getConstraint() {\n return this.constraint;\n }", "final public ColumnConstraint ColumnConstraint() throws ParseException {Token tk = null, tk2 = null, tk3 = null, tk4 = null;\n String constraintName = null;\n String indexName = null;\n List<ColumnName> indexColumnNames = null;\n ColumnReference reference = null;\n ExpressionValue checkExpr = null;\n switch ((jj_ntk==-1)?jj_ntk_f():jj_ntk) {\n case PRIMARY:\n case CONSTRAINT:\n case UNIQUE:\n case FOREIGN:{\n switch ((jj_ntk==-1)?jj_ntk_f():jj_ntk) {\n case CONSTRAINT:{\n tk = jj_consume_token(CONSTRAINT);\n switch ((jj_ntk==-1)?jj_ntk_f():jj_ntk) {\n case S_IDENTIFIER:\n case S_QUOTED_IDENTIFIER:{\n constraintName = DbObjectName();\n break;\n }\n default:\n jj_la1[96] = jj_gen;\n ;\n }\n break;\n }\n default:\n jj_la1[97] = jj_gen;\n ;\n }\n switch ((jj_ntk==-1)?jj_ntk_f():jj_ntk) {\n case PRIMARY:{\n tk2 = jj_consume_token(PRIMARY);\n tk3 = jj_consume_token(KEY);\n switch ((jj_ntk==-1)?jj_ntk_f():jj_ntk) {\n case USING:{\n jj_consume_token(USING);\n tk4 = jj_consume_token(S_IDENTIFIER);\n break;\n }\n default:\n jj_la1[98] = jj_gen;\n ;\n }\n jj_consume_token(118);\n indexColumnNames = ColumnNames();\n jj_consume_token(119);\n switch ((jj_ntk==-1)?jj_ntk_f():jj_ntk) {\n case USING:{\n jj_consume_token(USING);\n tk4 = jj_consume_token(S_IDENTIFIER);\n break;\n }\n default:\n jj_la1[99] = jj_gen;\n ;\n }\n break;\n }\n case UNIQUE:{\n tk2 = jj_consume_token(UNIQUE);\n switch ((jj_ntk==-1)?jj_ntk_f():jj_ntk) {\n case KEY:{\n tk3 = jj_consume_token(KEY);\n break;\n }\n default:\n jj_la1[100] = jj_gen;\n ;\n }\n switch ((jj_ntk==-1)?jj_ntk_f():jj_ntk) {\n case S_IDENTIFIER:\n case S_QUOTED_IDENTIFIER:{\n indexName = DbObjectName();\n break;\n }\n default:\n jj_la1[101] = jj_gen;\n ;\n }\n switch ((jj_ntk==-1)?jj_ntk_f():jj_ntk) {\n case USING:{\n jj_consume_token(USING);\n tk4 = jj_consume_token(S_IDENTIFIER);\n break;\n }\n default:\n jj_la1[102] = jj_gen;\n ;\n }\n jj_consume_token(118);\n indexColumnNames = ColumnNames();\n jj_consume_token(119);\n switch ((jj_ntk==-1)?jj_ntk_f():jj_ntk) {\n case USING:{\n jj_consume_token(USING);\n tk4 = jj_consume_token(S_IDENTIFIER);\n break;\n }\n default:\n jj_la1[103] = jj_gen;\n ;\n }\n break;\n }\n case FOREIGN:{\n tk2 = jj_consume_token(FOREIGN);\n switch ((jj_ntk==-1)?jj_ntk_f():jj_ntk) {\n case KEY:{\n tk3 = jj_consume_token(KEY);\n break;\n }\n default:\n jj_la1[104] = jj_gen;\n ;\n }\n switch ((jj_ntk==-1)?jj_ntk_f():jj_ntk) {\n case S_IDENTIFIER:\n case S_QUOTED_IDENTIFIER:{\n indexName = DbObjectName();\n break;\n }\n default:\n jj_la1[105] = jj_gen;\n ;\n }\n jj_consume_token(118);\n indexColumnNames = ColumnNames();\n jj_consume_token(119);\n switch ((jj_ntk==-1)?jj_ntk_f():jj_ntk) {\n case REFERENCES:{\n reference = ColumnReference();\n break;\n }\n default:\n jj_la1[106] = jj_gen;\n ;\n }\n break;\n }\n default:\n jj_la1[107] = jj_gen;\n jj_consume_token(-1);\n throw new ParseException();\n }\n break;\n }\n case KEY:{\n tk2 = jj_consume_token(KEY);\n switch ((jj_ntk==-1)?jj_ntk_f():jj_ntk) {\n case S_IDENTIFIER:\n case S_QUOTED_IDENTIFIER:{\n indexName = DbObjectName();\n break;\n }\n default:\n jj_la1[108] = jj_gen;\n ;\n }\n switch ((jj_ntk==-1)?jj_ntk_f():jj_ntk) {\n case USING:{\n jj_consume_token(USING);\n tk4 = jj_consume_token(S_IDENTIFIER);\n break;\n }\n default:\n jj_la1[109] = jj_gen;\n ;\n }\n jj_consume_token(118);\n indexColumnNames = ColumnNames();\n jj_consume_token(119);\n switch ((jj_ntk==-1)?jj_ntk_f():jj_ntk) {\n case USING:{\n jj_consume_token(USING);\n tk4 = jj_consume_token(S_IDENTIFIER);\n break;\n }\n default:\n jj_la1[110] = jj_gen;\n ;\n }\n break;\n }\n case INDEX:{\n tk2 = jj_consume_token(INDEX);\n switch ((jj_ntk==-1)?jj_ntk_f():jj_ntk) {\n case S_IDENTIFIER:\n case S_QUOTED_IDENTIFIER:{\n indexName = DbObjectName();\n break;\n }\n default:\n jj_la1[111] = jj_gen;\n ;\n }\n switch ((jj_ntk==-1)?jj_ntk_f():jj_ntk) {\n case USING:{\n jj_consume_token(USING);\n tk4 = jj_consume_token(S_IDENTIFIER);\n break;\n }\n default:\n jj_la1[112] = jj_gen;\n ;\n }\n jj_consume_token(118);\n indexColumnNames = ColumnNames();\n jj_consume_token(119);\n switch ((jj_ntk==-1)?jj_ntk_f():jj_ntk) {\n case USING:{\n jj_consume_token(USING);\n tk4 = jj_consume_token(S_IDENTIFIER);\n break;\n }\n default:\n jj_la1[113] = jj_gen;\n ;\n }\n break;\n }\n case FULLTEXT:\n case SPATIAL:{\n switch ((jj_ntk==-1)?jj_ntk_f():jj_ntk) {\n case FULLTEXT:{\n tk2 = jj_consume_token(FULLTEXT);\n break;\n }\n case SPATIAL:{\n tk2 = jj_consume_token(SPATIAL);\n break;\n }\n default:\n jj_la1[114] = jj_gen;\n jj_consume_token(-1);\n throw new ParseException();\n }\n switch ((jj_ntk==-1)?jj_ntk_f():jj_ntk) {\n case INDEX:{\n tk3 = jj_consume_token(INDEX);\n break;\n }\n default:\n jj_la1[115] = jj_gen;\n ;\n }\n switch ((jj_ntk==-1)?jj_ntk_f():jj_ntk) {\n case S_IDENTIFIER:\n case S_QUOTED_IDENTIFIER:{\n indexName = DbObjectName();\n break;\n }\n default:\n jj_la1[116] = jj_gen;\n ;\n }\n jj_consume_token(118);\n indexColumnNames = ColumnNames();\n jj_consume_token(119);\n break;\n }\n case CHECK:{\n tk2 = jj_consume_token(CHECK);\n jj_consume_token(118);\n checkExpr = ExpressionValue();\n jj_consume_token(119);\n break;\n }\n default:\n jj_la1[117] = jj_gen;\n jj_consume_token(-1);\n throw new ParseException();\n }\nreturn new ColumnConstraint(tk != null, constraintName, (tk2 != null ? tk2.image : \"\") + (tk3 != null ? \" \" + tk3.image : \"\"),\n indexColumnNames, (tk4 != null ? tk4.image : null), indexName, reference, checkExpr);\n}", "private Expression(build.buf.validate.priv.Constraint constraint) {\n this(constraint.getId(), constraint.getMessage(), constraint.getExpression());\n }", "public CheckConstraints() {\n this(DSL.name(\"CHECK_CONSTRAINTS\"), null);\n }", "@DISPID(1611006004) //= 0x60060034. The runtime will prefer the VTID if present\n @VTID(79)\n boolean constraintsNodeInTree();", "public List<Constraint> getConstraints();", "private Expression(build.buf.validate.Constraint constraint) {\n this(constraint.getId(), constraint.getMessage(), constraint.getExpression());\n }", "@Override\n\tConstraintFinder findConstraints();", "public String getConstraintName() {\n return constraintName;\n }", "public interface CatalogActionConstraint extends DataContract, HasProperties, HasSentence {\n\n // create,update,delete,evaluate\n //public String getName(); = Handler\n //void setName(String h);\n\n String getSeed();\n void setSeed(String s);\n\n String getDescription();\n\n\n}", "public void setConstraint(ContextConstraint node, int i) {\n List<ContextConstraint> list = getConstraintList();\n list.setChild(node, i);\n }", "public String getConstraintReference() {\n return constraintName + '.' + clause;\n }", "public interface IHardConstraint {\n\t\n\tpublic boolean isConstraintViolated(List<Job> jobs, List<Resource> resources, Plan plan);\n\t\t\n}", "@Override\n\tpublic Clause getConstraints() {\n\t\treturn null;\n\t}", "public abstract void printConstraint();", "public G20ConstraintFunction_h8() {\n }", "ValueRangeConstraint createValueRangeConstraint();", "public void setConstraint(int constraint) {\n mConstraint = constraint;\n }", "public interface ParameterConstraint\n{\n /**\n * Gets the unique name of the constraint\n * \n * @return String constraint name\n */\n String getName();\n \n /**\n * Indicates whether the provided value satisfies the constraint. True if it does, false otherwise.\n * \n * @return boolean true if valid, false otherwise\n */\n boolean isValidValue(String value);\n \n /**\n * \n * @param value\n * @return\n */\n String getValueDisplayLabel(String value);\n \n /**\n * \n */\n Map<String, String> getAllowableValues();\n}", "protected abstract Object validateParameter(Object constraintParameter);", "LengthConstraint createLengthConstraint();", "public ConstraintDefinition(String name) {\n\t\tm_parameters = new ArrayList<ConstraintParameter>();\n\t\tm_parameterString = \"\";\n\t\tsetName(name);\n\t\tsetThresholdMultiplier(1.0);\n\t}", "protected IndigoValenceCheckerNodeModel()\r\n {\r\n super(1, 3);\r\n }", "public interface LookupConstraint {\n}", "public int constraintType()\n\t{\n\t\treturn _constraintType;\n\t}", "public TConstraintElements getTConstraintAccess() {\n\t\treturn pTConstraint;\n\t}", "public interface Constraint<ANNOTATION extends Annotation, TYPE> extends Serializable\n{\n /**\n * For each value or parameter which should be checked this method will be invoked.\n * If the method returns true the value is valid. If it returns false the value\n * is considered invalid. When all constraints have been checked a ConstraintViolationException\n * will be thrown with all the constraint violations that were found.\n *\n * @param annotation the annotation to match\n * @param value the value to be checked\n * @return true if valid, false if invalid\n */\n boolean isValid( ANNOTATION annotation, TYPE value );\n}", "public PgConstraint getConstraint(final String name) {\n PgConstraint constraint = null;\n \n for (PgConstraint curConstraint : constraints) {\n if (curConstraint.getName().equals(name)) {\n constraint = curConstraint;\n \n break;\n }\n }\n \n return constraint;\n }", "com.microsoft.schemas.crm._2011.contracts.ArrayOfConstraintRelation addNewConstraints();", "public interface MoppetConstraint<EventType> {\n\n /**\n * checks if the requirements to validate this constraint are satisfied which means e.g. the event happened on a certain component and the system is in a certainstate\n *\n * @return true if valdiation can occur\n */\n public boolean check(EventType event);\n\n /**\n * validate this constraint. which means that code is executed that checks a constraint and corrects it if possible\n *\n * @param event\n */\n public void repair(EventType event);\n}", "void addConstraintRelation(IViewRelation relation);", "public ConstraintExt(ArrayList<String> var) {\n\t\tsuper(var);\n\t\tvalTuples = new HashSet<ArrayList<Object>>();\n\t}", "public interface LookupConstraint {\n\n /**\n * @param lookedUpNodes A set of unique string representations of the nodes discovered\n * @return True if after the recent node discovery, the lookup should be ended.\n */\n boolean isLookupEnded(final Set<String> lookedUpNodes);\n\n}", "public static void buildConstraints(SOS2Primitive constraint,Matrix matrix){\n\t\tint row=matrix.numRows();\n\t\t// First the reference row \t\t\n\t\tMatrixRow rowpointer =new MatrixRow(0,0,LPX.LPX_FX,\n\t\t\t\trow,constraint.label,\"ReferenceRow\");\n\t\tmatrix.addRow(rowpointer);\t\t\n\t\trow++;\n\t\trowpointer.addElement(new MatrixElement(constraint.getDependentColumn(0),-1));\n\t\tfor(int i=0;i<constraint.xVals.length;i++){\n\t\t\trowpointer.addElement(new MatrixElement(constraint.getDependentColumn(i+1),constraint.xVals[i]));\n\t\t}\n\t\t\n\t\t// Now the convexity row\n\t\trowpointer =new MatrixRow(1,1,LPX.LPX_FX,\n\t\t\t\trow,constraint.label,\"ConvexityRow\");\n\t\tmatrix.addRow(rowpointer);\t\t\n\t\trow++;\n\t\tfor(int i=0;i<constraint.xVals.length;i++){\n\t\t\trowpointer.addElement(new MatrixElement(constraint.getDependentColumn(i+1),1));\n\t\t}\n\t\t\n\t\tint firstBinVarColumn=constraint.xVals.length+1;\n\t\t// Constraint to ensure one and only one non-zero binary variable\n\t\trowpointer =new MatrixRow(1,1,LPX.LPX_FX,\n\t\t\t\trow,constraint.label,\"BinaryNZRow\");\n\t\tmatrix.addRow(rowpointer);\t\t\n\t\trow++;\n\t\tfor(int i=0;i<(constraint.xVals.length-1);i++){\n\t\t\trowpointer.addElement(new MatrixElement(constraint.getDependentColumn(i+firstBinVarColumn),1));\n\t\t}\n\t\t\n\t\t// Now we need several rows to ensure the SOS2 property\n\t\tfor( int i=0;i<constraint.xVals.length;i++){\n\t\t\trowpointer =new MatrixRow(0,0,LPX.LPX_LO,\n\t\t\t\t\trow,constraint.label,\"SOS2Row\"+i);\n\t\t\tmatrix.addRow(rowpointer);\t\t\n\t\t\trow++;\n\t\t\trowpointer.addElement(new MatrixElement(constraint.getDependentColumn(i+1),-1));\n\t\t\tfor( int b=0;b<2;b++){\n\t\t\t\tint bc=i-b+firstBinVarColumn; // Column index for associated binary variable\n\t\t\t\tif ( bc >=firstBinVarColumn && bc < (firstBinVarColumn+constraint.xVals.length-1)){\n\t\t\t\t\trowpointer.addElement(new MatrixElement(constraint.getDependentColumn(bc),1));\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\n\t}", "@Override\n\tpublic void initialize(MyConstraint constraint) {\n\t\tSystem.out.println(\"this is my validator init \");\n\t}", "protected Command createChangeConstraintCommand( EditPart child, Object constraint ) {\n return null;\r\n }", "private void addVertexVisitConstraint(){\n\n for (int vertex=0; vertex < vertexCount; vertex++){\n Integer[] pos = new Integer[variables.length];\n for (int position =0; position < positionCount; position++){\n pos[position] = variables[position][vertex];\n }\n addExactlyOne(pos);\n }\n }", "protected Constraint add(Constraint c) throws IllegalArgumentException {\r\n\t\tif (!constraints.contains(c)) {\r\n\t\t\tif (c.getIndex() >= 0) {\r\n\t\t\t\tthrow new IllegalArgumentException();\r\n\t\t\t}\r\n\t\t\tc.setIndex(constraints.size());\r\n\t\t\tconstraints.add(c);\r\n\t\t}\r\n\t\treturn c;\r\n\t}", "QueryConstraintType createQueryConstraintType();", "public interface Node {\n Oper oper();\n CNFOrdinal toCNF();\n}", "com.microsoft.schemas.crm._2011.contracts.ArrayOfConstraintRelation getConstraints();", "public ElementDefinitionDt setConstraint(java.util.List<Constraint> theValue) {\n\t\tmyConstraint = theValue;\n\t\treturn this;\n\t}", "public final EObject ruleEConstraints() throws RecognitionException {\n EObject current = null;\n\n EObject lv_constraints_1_0 = null;\n\n\n\n \tenterRule();\n\n try {\n // InternalRMParser.g:7950:2: ( ( () ( (lv_constraints_1_0= ruleEConstraint ) )* ) )\n // InternalRMParser.g:7951:2: ( () ( (lv_constraints_1_0= ruleEConstraint ) )* )\n {\n // InternalRMParser.g:7951:2: ( () ( (lv_constraints_1_0= ruleEConstraint ) )* )\n // InternalRMParser.g:7952:3: () ( (lv_constraints_1_0= ruleEConstraint ) )*\n {\n // InternalRMParser.g:7952:3: ()\n // InternalRMParser.g:7953:4: \n {\n\n \t\t\t\tcurrent = forceCreateModelElement(\n \t\t\t\t\tgrammarAccess.getEConstraintsAccess().getEConstraintsAction_0(),\n \t\t\t\t\tcurrent);\n \t\t\t\n\n }\n\n // InternalRMParser.g:7959:3: ( (lv_constraints_1_0= ruleEConstraint ) )*\n loop61:\n do {\n int alt61=2;\n int LA61_0 = input.LA(1);\n\n if ( (LA61_0==Greater_or_equal||LA61_0==Less_or_equal||LA61_0==Greater_than||LA61_0==Valid_values||(LA61_0>=Max_length && LA61_0<=Min_length)||LA61_0==Less_than||LA61_0==In_range||LA61_0==Length||LA61_0==Equal) ) {\n alt61=1;\n }\n\n\n switch (alt61) {\n \tcase 1 :\n \t // InternalRMParser.g:7960:4: (lv_constraints_1_0= ruleEConstraint )\n \t {\n \t // InternalRMParser.g:7960:4: (lv_constraints_1_0= ruleEConstraint )\n \t // InternalRMParser.g:7961:5: lv_constraints_1_0= ruleEConstraint\n \t {\n\n \t \t\t\t\t\tnewCompositeNode(grammarAccess.getEConstraintsAccess().getConstraintsEConstraintParserRuleCall_1_0());\n \t \t\t\t\t\n \t pushFollow(FOLLOW_85);\n \t lv_constraints_1_0=ruleEConstraint();\n\n \t state._fsp--;\n\n\n \t \t\t\t\t\tif (current==null) {\n \t \t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getEConstraintsRule());\n \t \t\t\t\t\t}\n \t \t\t\t\t\tadd(\n \t \t\t\t\t\t\tcurrent,\n \t \t\t\t\t\t\t\"constraints\",\n \t \t\t\t\t\t\tlv_constraints_1_0,\n \t \t\t\t\t\t\t\"org.sodalite.dsl.RM.EConstraint\");\n \t \t\t\t\t\tafterParserOrEnumRuleCall();\n \t \t\t\t\t\n\n \t }\n\n\n \t }\n \t break;\n\n \tdefault :\n \t break loop61;\n }\n } while (true);\n\n\n }\n\n\n }\n\n\n \tleaveRule();\n\n }\n\n catch (RecognitionException re) {\n recover(input,re);\n appendSkippedTokens();\n }\n finally {\n }\n return current;\n }", "com.google.cloud.clouddms.v1.ConstraintEntity getConstraints(int index);", "public abstract\n ImmutableUniqueMemberConstraint getUniqueMemberConstraint();", "public int getNumConstraint() {\n return getConstraintList().getNumChild();\n }", "public String getConstraintInstance() {\n\t\treturn getAttribute(\"ConstraintInstance\", \"\");\n\t}", "public Constraint(Vec2 incident, Vec2 reference) {\r\n\t\tinc = incident;\r\n\t\trefA = reference;\r\n\t\trefB = null;//Ensure this is null for the solve method\r\n\t\t//Assumed reference has infinite mass\r\n\t\tincMass = 1.0;\r\n\t\trefMass = 0.0;\r\n\t}", "public ModelElement getConstraints() {\n\tmodelElement.clearConstraint();\n\tjava.util.Iterator iterator = getPnlDataSelector().getObjects().iterator();\n\ttry {\n\t\twhile (iterator.hasNext()) {\n\t\t\tObject eleo=iterator.next();\n\t\t\tConstraintDef constraintDef = null;\n\t\t\tif(eleo instanceof NlsString){\n\t\t\t\t// new constraint\n\t\t\t\tConstraintExpression expression = new ConstraintExpression();\n\t\t\t\texpression.setSyntax((NlsString)eleo);\n\t\t\t\tconstraintDef = (ConstraintDef)ElementFactory.createObject(ConstraintDef.class);\n\t\t\t\tconstraintDef.setBody(expression);\n\t\t\t}else{\n\t\t\t\t// existing constraint\n\t\t\t\tconstraintDef = (ConstraintDef)eleo;\n\t\t\t}\n\t\t\tmodelElement.addConstraint(constraintDef);\n\t\t}\n\t} catch(Throwable e) {\n\t\thandleException(e);\n\t}\n\treturn modelElement;\n}", "public static void QuestionOne(Node n) {\n\n\n\n }", "public double returnsConstraint()\n\t{\n\t\treturn _returnsConstraint;\n\t}", "public String getConstraintClauseNumber() {\n return clause;\n }", "public List<Constraint> getConstraints() {\r\n\t\treturn constraints;\r\n\t}", "void addConstraintEntity(IViewEntity entity);", "public Constraint(Vec2 incident, Vec2 referencePointA, Vec2 referencePointB) {\r\n\t\tinc = incident;\r\n\t\trefA = referencePointA;\r\n\t\trefB = referencePointB;\r\n\t\t//Assumed reference has infinite mass\r\n\t\tincMass = 1.0;\r\n\t\trefMass = 0.0;\r\n\t}", "public NlsString getConstraint() {\n\tString syntax = getPnlEditor().getText();\n\n\tif ((syntax != null) && (syntax.length() > 0)) {\n\t\t// replace current value\n\t\tif (((ConstraintExpression)constraint.getBody()).getSyntax() == null) {\n\t\t\treturn new ch.ehi.basics.types.NlsString(syntax);\n\t\t} else {\n\t\t\treturn new ch.ehi.basics.types.NlsString(((ConstraintExpression)constraint.getBody()).getSyntax(), syntax);\n\t\t}\n\t} else {\n\t\treturn null;\n\t}\n}", "public Builder addConstraint(ClusterConstraints constraint) {\n ClusterConstraints existConstraints = getConstraintsInstance(constraint.getType());\n for (ConstraintId constraintId : constraint.getConstraintItems().keySet()) {\n existConstraints\n .addConstraintItem(constraintId, constraint.getConstraintItem(constraintId));\n }\n return this;\n }", "public Constraint getConstraint(int i) {\r\n\t\treturn getConstraints().get(i);\r\n\t}", "Constraint getBodyCondition();", "public void addConstraint(final PgConstraint constraint) {\n constraints.add(constraint);\n }", "A adapt(C constraint);", "public Constraint getConstraintFirstRep() {\n\t\tif (getConstraint().isEmpty()) {\n\t\t\treturn addConstraint();\n\t\t}\n\t\treturn getConstraint().get(0); \n\t}", "public void setConstraint(Constraint constraint) {\n\tthis.constraint = constraint;\n\n\tgetPnlDataSelector().setVisible(false);\n\tgetPnlEditor().setEditable(true);\n\n\tif (((ConstraintExpression)constraint.getBody()).getSyntax() == null) {\n\t\tgetPnlEditor().setText(new String());\n\t} else {\n\t\tgetPnlEditor().setText(ElementUtils.mapNlsString(((ConstraintExpression)constraint.getBody()).getSyntax()));\n\t}\n}", "public abstract double getConstraintFitness();", "@Override\n public void initialize(ValidSamlId constraint) { /* intentionally blank */ }", "public interface FormatConstraint extends Constraint {\n\t/**\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t */\n\tString copyright = \"Copyright (C) 2012 Bertrand Florat\";\n\n}", "public interface Node extends TreeComponent {\n /**\n * The types of decision tree nodes available.\n */\n enum NodeType {\n Internal,\n Leaf\n }\n\n /**\n * Gets the type of this node.\n * @return The type of node.\n */\n NodeType getType();\n\n void print();\n\n String getClassLabel(DataTuple tuple);\n}", "void searchConstraintHit (Search search);", "LoadConstraintType getLoadConstraint();", "public Interval getConstraint (int subcl) {\n return this.constraints[subcl-1];\n }", "public interface ConstraintModelPackage extends EPackage {\n\t/**\n\t * The package name.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t */\n\tString eNAME = \"constraintModel\";\n\n\t/**\n\t * The package namespace URI.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t */\n\tString eNS_URI = \"http://www.example.org/rMSAS/constraintModel\";\n\n\t/**\n\t * The package namespace name.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t */\n\tString eNS_PREFIX = \"constraintModel\";\n\n\t/**\n\t * The singleton instance of the package.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t */\n\tConstraintModelPackage eINSTANCE = rMSAS.constraintModel.impl.ConstraintModelPackageImpl.init();\n\n\t/**\n\t * The meta object id for the '{@link rMSAS.constraintModel.impl.AbstractConditionImpl <em>Abstract Condition</em>}' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @see rMSAS.constraintModel.impl.AbstractConditionImpl\n\t * @see rMSAS.constraintModel.impl.ConstraintModelPackageImpl#getAbstractCondition()\n\t * @generated\n\t */\n\tint ABSTRACT_CONDITION = 0;\n\n\t/**\n\t * The feature id for the '<em><b>Ocl Query</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint ABSTRACT_CONDITION__OCL_QUERY = 0;\n\n\t/**\n\t * The number of structural features of the '<em>Abstract Condition</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint ABSTRACT_CONDITION_FEATURE_COUNT = 1;\n\n\t/**\n\t * The number of operations of the '<em>Abstract Condition</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint ABSTRACT_CONDITION_OPERATION_COUNT = 0;\n\n\t/**\n\t * The meta object id for the '{@link rMSAS.constraintModel.impl.PreConditionImpl <em>Pre Condition</em>}' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @see rMSAS.constraintModel.impl.PreConditionImpl\n\t * @see rMSAS.constraintModel.impl.ConstraintModelPackageImpl#getPreCondition()\n\t * @generated\n\t */\n\tint PRE_CONDITION = 1;\n\n\t/**\n\t * The feature id for the '<em><b>Ocl Query</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint PRE_CONDITION__OCL_QUERY = ABSTRACT_CONDITION__OCL_QUERY;\n\n\t/**\n\t * The number of structural features of the '<em>Pre Condition</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint PRE_CONDITION_FEATURE_COUNT = ABSTRACT_CONDITION_FEATURE_COUNT + 0;\n\n\t/**\n\t * The number of operations of the '<em>Pre Condition</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint PRE_CONDITION_OPERATION_COUNT = ABSTRACT_CONDITION_OPERATION_COUNT + 0;\n\n\t/**\n\t * The meta object id for the '{@link rMSAS.constraintModel.impl.PostConditionImpl <em>Post Condition</em>}' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @see rMSAS.constraintModel.impl.PostConditionImpl\n\t * @see rMSAS.constraintModel.impl.ConstraintModelPackageImpl#getPostCondition()\n\t * @generated\n\t */\n\tint POST_CONDITION = 2;\n\n\t/**\n\t * The feature id for the '<em><b>Ocl Query</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint POST_CONDITION__OCL_QUERY = ABSTRACT_CONDITION__OCL_QUERY;\n\n\t/**\n\t * The number of structural features of the '<em>Post Condition</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint POST_CONDITION_FEATURE_COUNT = ABSTRACT_CONDITION_FEATURE_COUNT + 0;\n\n\t/**\n\t * The number of operations of the '<em>Post Condition</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint POST_CONDITION_OPERATION_COUNT = ABSTRACT_CONDITION_OPERATION_COUNT + 0;\n\n\n\t/**\n\t * Returns the meta object for class '{@link rMSAS.constraintModel.AbstractCondition <em>Abstract Condition</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for class '<em>Abstract Condition</em>'.\n\t * @see rMSAS.constraintModel.AbstractCondition\n\t * @generated\n\t */\n\tEClass getAbstractCondition();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link rMSAS.constraintModel.AbstractCondition#getOclQuery <em>Ocl Query</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Ocl Query</em>'.\n\t * @see rMSAS.constraintModel.AbstractCondition#getOclQuery()\n\t * @see #getAbstractCondition()\n\t * @generated\n\t */\n\tEAttribute getAbstractCondition_OclQuery();\n\n\t/**\n\t * Returns the meta object for class '{@link rMSAS.constraintModel.PreCondition <em>Pre Condition</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for class '<em>Pre Condition</em>'.\n\t * @see rMSAS.constraintModel.PreCondition\n\t * @generated\n\t */\n\tEClass getPreCondition();\n\n\t/**\n\t * Returns the meta object for class '{@link rMSAS.constraintModel.PostCondition <em>Post Condition</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for class '<em>Post Condition</em>'.\n\t * @see rMSAS.constraintModel.PostCondition\n\t * @generated\n\t */\n\tEClass getPostCondition();\n\n\t/**\n\t * Returns the factory that creates the instances of the model.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the factory that creates the instances of the model.\n\t * @generated\n\t */\n\tConstraintModelFactory getConstraintModelFactory();\n\n\t/**\n\t * <!-- begin-user-doc -->\n\t * Defines literals for the meta objects that represent\n\t * <ul>\n\t * <li>each class,</li>\n\t * <li>each feature of each class,</li>\n\t * <li>each operation of each class,</li>\n\t * <li>each enum,</li>\n\t * <li>and each data type</li>\n\t * </ul>\n\t * <!-- end-user-doc -->\n\t * @generated\n\t */\n\tinterface Literals {\n\t\t/**\n\t\t * The meta object literal for the '{@link rMSAS.constraintModel.impl.AbstractConditionImpl <em>Abstract Condition</em>}' class.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see rMSAS.constraintModel.impl.AbstractConditionImpl\n\t\t * @see rMSAS.constraintModel.impl.ConstraintModelPackageImpl#getAbstractCondition()\n\t\t * @generated\n\t\t */\n\t\tEClass ABSTRACT_CONDITION = eINSTANCE.getAbstractCondition();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Ocl Query</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute ABSTRACT_CONDITION__OCL_QUERY = eINSTANCE.getAbstractCondition_OclQuery();\n\n\t\t/**\n\t\t * The meta object literal for the '{@link rMSAS.constraintModel.impl.PreConditionImpl <em>Pre Condition</em>}' class.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see rMSAS.constraintModel.impl.PreConditionImpl\n\t\t * @see rMSAS.constraintModel.impl.ConstraintModelPackageImpl#getPreCondition()\n\t\t * @generated\n\t\t */\n\t\tEClass PRE_CONDITION = eINSTANCE.getPreCondition();\n\n\t\t/**\n\t\t * The meta object literal for the '{@link rMSAS.constraintModel.impl.PostConditionImpl <em>Post Condition</em>}' class.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see rMSAS.constraintModel.impl.PostConditionImpl\n\t\t * @see rMSAS.constraintModel.impl.ConstraintModelPackageImpl#getPostCondition()\n\t\t * @generated\n\t\t */\n\t\tEClass POST_CONDITION = eINSTANCE.getPostCondition();\n\n\t}\n\n}", "public SCondition(Node node) {\n super(node);\n }", "protected Command createChangeConstraintCommand(EditPart child,\n\t\t\tObject constraint) {\n\t\tif (child instanceof HANodePart) {\n\t\t\tNodeResizeCommand cmd = new NodeResizeCommand();\n\t\t\tcmd.setNode((HANode) child.getModel());\n\t\t\tcmd.setNewRect((Rectangle) constraint);\n\t\t\treturn cmd;\n\t\t}\n\t\treturn null;\n\t}", "public interface ConstantExpression extends GenericExpression\n{\n}", "private void processCreateCheckConstraintCondition(Constraint c)\n throws HsqlException {\n\n tokenizer.getThis(Token.T_OPENBRACKET);\n\n Parser parser = new Parser(session, database, tokenizer);\n Expression condition = parser.parseExpression();\n\n tokenizer.getThis(Token.T_CLOSEBRACKET);\n\n c.core.check = condition;\n }" ]
[ "0.7548013", "0.7548013", "0.6912372", "0.67854965", "0.6755768", "0.6680271", "0.65143585", "0.6477224", "0.6464619", "0.63862574", "0.6379681", "0.6333999", "0.6314726", "0.6299011", "0.62573135", "0.6249956", "0.62243134", "0.6147509", "0.61422926", "0.60595477", "0.6027166", "0.5956325", "0.5954636", "0.5953795", "0.59339327", "0.59139776", "0.59070873", "0.58460647", "0.5844809", "0.58424693", "0.5825059", "0.5820452", "0.5783508", "0.57447237", "0.5734858", "0.57304615", "0.5700925", "0.57006204", "0.5688642", "0.5666823", "0.56554717", "0.56380564", "0.5626635", "0.5626014", "0.5602628", "0.5601675", "0.55884653", "0.55730927", "0.5572204", "0.5534015", "0.5527058", "0.55210114", "0.551678", "0.55046564", "0.54887027", "0.5403529", "0.53946", "0.53766924", "0.53713447", "0.53498214", "0.53441316", "0.5316557", "0.5306579", "0.53005713", "0.52953655", "0.5279694", "0.5275511", "0.5274909", "0.52665293", "0.52412355", "0.5235395", "0.5211029", "0.5202504", "0.5196603", "0.51842725", "0.51744276", "0.5168825", "0.51619095", "0.5153585", "0.5144189", "0.51417387", "0.5140971", "0.51362336", "0.5135448", "0.51341355", "0.5133354", "0.51305133", "0.51237494", "0.50931877", "0.50902617", "0.50867015", "0.5082641", "0.5080063", "0.5074097", "0.5067512", "0.505764", "0.5045428", "0.5030901", "0.50088227", "0.5006784", "0.49954173" ]
0.0
-1
nodeChoice > BrackettedExpression() | BuiltInCall() | FunctionCall()
@Override public R visit(Constraint n, A argu) { R _ret = null; n.nodeChoice.accept(this, argu); return _ret; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public R visit(BuiltInCall n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "@Override\n\tpublic void visit(Parenthesis arg0) {\n\t\t\n\t}", "@Override\n\tpublic void visit(Parenthesis arg0) {\n\n\t}", "@Test\n\tpublic void testFunctionCall() throws ParseException {\n\n\t\t// function call with one argument\n\t\tExpression expression = langParser(\"today('GMT')\").expression();\n\t\tassertEquals(expression.getClass(), FunctionCall.class);\n\t\tFunctionCall functionCall = (FunctionCall) expression;\n\t\tassertEquals(functionCall.getFunctionValue().getClass(), Identifier.class);\n\t\tassertEquals(((Identifier) functionCall.getFunctionValue()).getName(), \"today\");\n\t\tassertEquals(functionCall.getArguments().size(), 1);\n\t\tassertEquals(functionCall.getArguments().get(0).getClass(), StringLiteral.class);\n\t\tassertEquals(((StringLiteral) functionCall.getArguments().get(0)).getValue(), \"GMT\");\n\n\t\t// function call with no argument\n\t\texpression = langParser(\"now()\").expression();\n\t\tassertEquals(expression.getClass(), FunctionCall.class);\n\t\tfunctionCall = (FunctionCall) expression;\n\t\tassertEquals(functionCall.getFunctionValue().getClass(), Identifier.class);\n\t\tassertEquals(((Identifier) functionCall.getFunctionValue()).getName(), \"now\");\n\t\tassertEquals(functionCall.getArguments().size(), 0);\n\n\t\t// function call with an expression as function value\n\t\texpression = langParser(\"a(1)(3)\").expression();\n\t\tassertEquals(expression.getClass(), FunctionCall.class);\n\t\tfunctionCall = (FunctionCall) expression;\n\t\tassertEquals(functionCall.getFunctionValue().getClass(), FunctionCall.class);\n\t\tassertEquals(functionCall.getArguments().size(), 1);\n\n\t\t// function call with lambda expression\n\t\texpression = langParser(\"(fn(a,b)->mul(add(a,1),b))(4,5)\").expression();\n\t\tassertEquals(expression.getClass(), FunctionCall.class);\n\t\tfunctionCall = (FunctionCall) expression;\n\t\tassertEquals(functionCall.getFunctionValue().getClass(), FunctionLiteral.class);\n\t\tassertEquals(functionCall.getArguments().size(), 2);\n\t}", "@Override\r\n\tpublic void visit(FunctionCallExpression functionCallExpression) {\n\r\n\t}", "protected Evaluable parseExpression() throws ParsingException {\n Evaluable sub = parseSubExpression();\n\n while (_token != null &&\n _token.type == TokenType.Operator &&\n \">=<==!=\".indexOf(_token.text) >= 0) {\n\n String op = _token.text;\n\n next(true);\n\n Evaluable sub2 = parseSubExpression();\n\n sub = new OperatorCallExpr(new Evaluable[] { sub, sub2 }, op);\n }\n\n return sub;\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 static FunctionCallExpression parse(Expression firstOperand, TokenStream tokens)\n\t{\n\t\tFunctionCallExpression expr = null;\n\n\t\tArgumentList argList = ArgumentList.parse(tokens);\n\t\tif (argList != null) {\n\t\t\texpr = new FunctionCallExpression(firstOperand, argList,\n\t\t\t\t\tfirstOperand.getLine(), firstOperand.getColumn());\n\t\t}\n\n\t\treturn expr;\n\t}", "private Object parseCallFunc(String name) throws\n IOException,FSException {\n\n ArrayList params=new ArrayList(4);\n\n\n //Set up the parameters\n do {\n getNextToken();\n if (tok.ttype==',') {\n getNextToken();\n } else if (tok.ttype==')') {\n break;\n }\n params.add(parseExpr());\n } while (tok.ttype==',');\n\n\n return callFunction(name,params);\n\n }", "@Test\n\t\tpublic void testExpression() throws LexicalException, SyntaxException {\n\t\t\tString input = \"x + 2\";\n\t\t\tPLPParser parser = makeParser(input);\n\t\t\tExpression e = parser.expression(); //call expression here instead of parse\n\t\t\tshow(e);\t\n\t\t\tassertEquals(ExpressionBinary.class, e.getClass());\n\t\t\tExpressionBinary b = (ExpressionBinary)e;\n\t\t\tassertEquals(ExpressionIdentifier.class, b.leftExpression.getClass());//\n\t\t\tExpressionIdentifier left = (ExpressionIdentifier)b.leftExpression;\n\t\t\tassertEquals(\"x\", left.name);\n\t\t\tassertEquals(ExpressionIntegerLiteral.class, b.rightExpression.getClass());\n\t\t\tExpressionIntegerLiteral right = (ExpressionIntegerLiteral)b.rightExpression;\n\t\t\tassertEquals(2, right.value);\n\t\t\tassertEquals(OP_PLUS, b.op);\n\t\t}", "@Override\n public R visit(BrackettedExpression n, A argu) {\n R _ret = null;\n n.nodeToken.accept(this, argu);\n n.expression.accept(this, argu);\n n.nodeToken1.accept(this, argu);\n return _ret;\n }", "@Override\n public R visit(PrimaryExpression n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "public static MethodCallExpression call(Expression expression, Method method, Expression expression0, Expression expression1) { throw Extensions.todo(); }", "@Test\n\tpublic void expression1() throws SyntaxException, LexicalException {\n\t\tString input = \"2\";\n\t\tshow(input);\n\t\tScanner scanner = new Scanner(input).scan();\n\t\tshow(scanner);\n\t\tSimpleParser parser = new SimpleParser(scanner);\n\t\tparser.expression(); // Call expression directly.\n\t}", "@Override\n\tpublic Object visit(ASTParen node, Object data) {\n\t\tSystem.out.print(\"(\");\n\t\tnode.childrenAccept(this, data);\n\t\tSystem.out.print(\")\");\n\t\treturn null;\n\t}", "@Test(timeout = 4000)\n public void test075() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\") (\");\n Token token0 = xPathLexer0.equals();\n xPathLexer0.setPreviousToken(token0);\n assertEquals(21, token0.getTokenType());\n assertEquals(\")\", token0.getTokenText());\n \n Token token1 = xPathLexer0.identifierOrOperatorName();\n assertEquals(15, token1.getTokenType());\n assertEquals(\"\", token1.getTokenText());\n }", "private InfixExpression getNode()\n{\n return (InfixExpression) ast_node;\n}", "@Override\n\tpublic void VisitMethodCallNode(MethodCallNode Node) {\n\n\t}", "ParenthesisExpr createParenthesisExpr();", "public static MethodCallExpression accept(ExpressionVisitor visitor) { throw Extensions.todo(); }", "@Test\n\tpublic void testBracketsWithoutOperators() throws BcException, IOException {\n\t\tString[] params = { \"((5)0)\" };\n\t\tbcApp.run(params, inStream, outStream);\n\t\tfail(\"Should have thrown exception but did not!\");\n\n\t}", "public static MethodCallExpression call(Expression expression, Method method, Expression argument0, Expression argument1, Expression argument2) { throw Extensions.todo(); }", "public ParseTreeNode visit(CallNode call) {\n return null;\n }", "final int getNodeType0() {\n return EXPRESSION_METHOD_REFERENCE;\n }", "public R visit(Operator n) {\n R _ret=null;\n int which = n.f0.which;\n String s = \" \";\n switch (which)\n {\n case 0 : {s=\"LT\"; break;}\n case 1 : {s= \"PLUS\"; break;}\n case 2 : {s= \"MINUS\";break;}\n case 3 : {s= \"TIMES\"; break;}\n }\n \t return (R)s;\n }", "void visitOperandFunction(ArgumentFunction operand);", "@Test\n public void defaultOperatorsEvaluteTrueTest() throws Exception {\n\n assertThat(getNode(\"1 == 1\", \"expr\").render(null), is((Object)true));\n assertThat(getNode(\"1 != 2\", \"expr\").render(null), is((Object)true));\n assertThat(getNode(\"1 <> 2\", \"expr\").render(null), is((Object)true));\n assertThat(getNode(\"1 < 2\", \"expr\").render(null), is((Object)true));\n assertThat(getNode(\"2 > 1\", \"expr\").render(null), is((Object)true));\n assertThat(getNode(\"1 >= 1\", \"expr\").render(null), is((Object)true));\n assertThat(getNode(\"2 >= 1\", \"expr\").render(null), is((Object)true));\n assertThat(getNode(\"1 <= 2\", \"expr\").render(null), is((Object)true));\n assertThat(getNode(\"1 <= 1\", \"expr\").render(null), is((Object)true));\n\n // negative numbers\n assertThat(getNode(\"1 > -1\", \"expr\").render(null), is((Object)true));\n assertThat(getNode(\"-1 < 1\", \"expr\").render(null), is((Object)true));\n assertThat(getNode(\"1.0 > -1.0\", \"expr\").render(null), is((Object)true));\n assertThat(getNode(\"-1.0 < 1.0\", \"expr\").render(null), is((Object)true));\n }", "@Override\n public NodeType ExecuteOperation()\n {\n //if the first child is an operator\n if(this.childNodes[0].isOperator==true)\n {\n BasicOperator basicOperator=(BasicOperator)this.childNodes[0]; \n if(basicOperator.operands==1)\n {\n UnaryOperator unaryOperator=(UnaryOperator)childNodes[0];\n return unaryOperator.PerformOperation(childNodes[1]);\n }\n else if(basicOperator.operands==2)\n {\n BinaryOperator binaryOperator=(BinaryOperator)childNodes[0];\n return binaryOperator.PerformOperation(childNodes[1], childNodes[2]);\n }\n else if(basicOperator.operands==3)\n {\n TernaryOperator ternaryOperator=(TernaryOperator)childNodes[0];\n return ternaryOperator.PerformOperation(childNodes[1], childNodes[2], childNodes[3]);\n }\n }\n //if not an operator\n else\n {\n return this.childNodes[0].ExecuteOperation();\n }\n return null;\n }", "public static MethodCallExpression call(Expression expression, Method method) { throw Extensions.todo(); }", "@Override\n\tpublic Object visit(ASTParen node, Object data)\n\t{\n\t\treturn singleChildValid(node, data);\n\t}", "Expression expression() throws SyntaxException {\r\n\t\tToken first = t;\r\n\t\tExpression e0 = orExpression();\r\n\t\tif (isKind(OP_QUESTION)) {\r\n\t\t\tconsume();\r\n\t\t\tExpression e1 = expression();\r\n\t\t\tmatch(OP_COLON);\r\n\t\t\tExpression e2 = expression();\r\n\t\t\te0 = new ExpressionConditional(first, e0, e1, e2);\r\n\t\t}\r\n\t\treturn e0;\r\n\t}", "public static MethodCallExpression call(Method method, Expression expression0, Expression expression1) { throw Extensions.todo(); }", "void visit(Object node, String command);", "protected Evaluable parseSubExpression() throws ParsingException {\n Evaluable sub = parseTerm();\n\n while (_token != null &&\n _token.type == TokenType.Operator &&\n \"+-\".indexOf(_token.text) >= 0) {\n\n String op = _token.text;\n\n next(true);\n\n Evaluable sub2 = parseTerm();\n\n sub = new OperatorCallExpr(new Evaluable[] { sub, sub2 }, op);\n }\n\n return sub;\n }", "public final Object call() throws RecognitionException {\n Object result = null;\n\n\n CommonTree IDENT12=null;\n Object argument11 =null;\n\n\n\n ArrayList<Object> arguments = new ArrayList<Object> ();\n \n try {\n // /v/filer4b/v38q001/rjnevels/Desktop/Antlr Eclipse Test/workspace3/BFlat/src/a/b/c/EvaluatorWalker.g:263:3: ( ^( CALL IDENT ( argument )* ) )\n // /v/filer4b/v38q001/rjnevels/Desktop/Antlr Eclipse Test/workspace3/BFlat/src/a/b/c/EvaluatorWalker.g:263:5: ^( CALL IDENT ( argument )* )\n {\n match(input,CALL,FOLLOW_CALL_in_call472); \n\n match(input, Token.DOWN, null); \n IDENT12=(CommonTree)match(input,IDENT,FOLLOW_IDENT_in_call474); \n\n // /v/filer4b/v38q001/rjnevels/Desktop/Antlr Eclipse Test/workspace3/BFlat/src/a/b/c/EvaluatorWalker.g:263:18: ( argument )*\n loop13:\n do {\n int alt13=2;\n int LA13_0 = input.LA(1);\n\n if ( (LA13_0==ARG) ) {\n alt13=1;\n }\n\n\n switch (alt13) {\n \tcase 1 :\n \t // /v/filer4b/v38q001/rjnevels/Desktop/Antlr Eclipse Test/workspace3/BFlat/src/a/b/c/EvaluatorWalker.g:263:19: argument\n \t {\n \t pushFollow(FOLLOW_argument_in_call477);\n \t argument11=argument();\n\n \t state._fsp--;\n\n\n \t arguments.add(argument11); \n\n \t }\n \t break;\n\n \tdefault :\n \t break loop13;\n }\n } while (true);\n\n\n match(input, Token.UP, null); \n\n\n \n FunctInfo functInfo = findFunction((IDENT12!=null?IDENT12.getText():null));\n if (functInfo == null) {\n BFlatGUI.debugPrint(0, \"No function match found for \" + (IDENT12!=null?IDENT12.getText():null));\n } else {\n //System.out.println(\"found arguments for \"+(IDENT12!=null?IDENT12.getText():null)+\": \"+arguments);\n String[] paramNames = functInfo.paramList.split(\";\");\n if (paramNames[0].equals(\"\")) paramNames = new String[]{};\n \n if (paramNames.length != arguments.size()) {\n BFlatGUI.debugPrint(0, \"# of arguments do not match # of parameters for call to \" + (IDENT12!=null?IDENT12.getText():null));\n } else {\n String[] types = functInfo.typeList.split(\";\");\n if (types[0].equals(\"\")) types = new String[]{};\n \n boolean parameterMatchArgsTypes = checkParamArgTypes(types, arguments);\n if (!parameterMatchArgsTypes) {\n BFlatGUI.debugPrint(0, \"arguments types and parameters types don't match for call to \" + (IDENT12!=null?IDENT12.getText():null));\n } else {\n \t\t BFlatGUI.setStack(scopeStack.getStackString(\"\"));\n \t\t BFlatGUI.setSymbolTable(smanager.toString());\n BFlatGUI.debugPrint(6, \"pausing at function call \"+(IDENT12!=null?IDENT12.getText():null));\n \t\t if (stepping)\n \t\t Pauser.waitForGo();\n \t\t \n \t\t BufferedTreeNodeStream blockStream = new BufferedTreeNodeStream(functInfo.body);\n \t\t //BFlatGUI.debugPrint(3, scopeStack.getStackString(getIndent()));\n \t\t \n indent++;\n \t\t BFlatGUI.debugPrint(3, getIndent()+\"Entering \"+(IDENT12!=null?IDENT12.getText():null)+\" function!\");\n \t\t \n \t\t EvaluatorWalker e = new EvaluatorWalker(blockStream, (IDENT12!=null?IDENT12.getText():null), functionDefinitions, arguments, paramNames);\n \t\t result = e.block();\n \t\t \n BFlatGUI.debugPrint(3, getIndent()+\"Leaving \"+(IDENT12!=null?IDENT12.getText():null)+\" function!\");\n \t\t BFlatGUI.setStack(scopeStack.getStackString(\"\"));\n scopeStack.pop();\n \n \t\t indent--;\n \t\t \n \t\t lastAssignmentResult = result;\n \t\t }\n \t } \n }\n \n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n\n finally {\n \t// do for sure before leaving\n }\n return result;\n }", "@Test(timeout = 4000)\n public void test001() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"hN!SM~8ux(wB\");\n xPathLexer0.dollar();\n xPathLexer0.not();\n xPathLexer0.nextToken();\n xPathLexer0.leftParen();\n xPathLexer0.whitespace();\n xPathLexer0.plus();\n Token token0 = xPathLexer0.or();\n assertNull(token0);\n }", "@Test(timeout = 4000)\n public void test019() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\">6_XdrPl\");\n Token token0 = xPathLexer0.relationalOperator();\n assertNotNull(token0);\n assertEquals(\">\", token0.getTokenText());\n assertEquals(9, token0.getTokenType());\n \n Token token1 = xPathLexer0.rightParen();\n assertEquals(2, token1.getTokenType());\n assertEquals(\"6\", token1.getTokenText());\n \n char char0 = xPathLexer0.LA(0);\n assertEquals('6', char0);\n }", "public static MethodCallExpression call(Method method, Expression expression) { throw Extensions.todo(); }", "private void parseSimpleStatement() {\n Operand operand = parseDesignator();\n\n if (nextToken.kind == Token.ASSIGN) {\n check(Token.ASSIGN);\n if (operand.kind != Operand.KIND_ELEMENT\n && operand.kind != Operand.KIND_FIELD\n && operand.kind != Operand.KIND_LOCAL\n && operand.kind != Operand.KIND_STATIC) {\n error(\"Illegal left-hand side operand in assignment\");\n }\n\n Struct type = parseExpr().type;\n if (!(type.assignableTo(operand.type))) {\n error(\"Incompatible types in assignment\");\n }\n\n code.store(operand);\n } else {\n if (operand.kind != Operand.KIND_METHOD) {\n error(\"Designator isn't a valid method\");\n }\n parseActPars(operand.object);\n\n code.put(Code.OP_CALL);\n code.put2(operand.address);\n if (operand.kind == Operand.KIND_METHOD\n && operand.type != SymbolTable.STRUCT_NONE) {\n code.put(Code.OP_POP);\n }\n }\n check(Token.SEMICOLON);\n }", "public static MethodCallExpression call(Method method, Expression expression0, Expression expression1, Expression expression2) { throw Extensions.todo(); }", "@Test(timeout = 4000)\n public void test076() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"5!\");\n Token token0 = xPathLexer0.star();\n xPathLexer0.setPreviousToken(token0);\n assertEquals(20, token0.getTokenType());\n assertEquals(\"5\", token0.getTokenText());\n \n Token token1 = xPathLexer0.identifierOrOperatorName();\n assertEquals(15, token1.getTokenType());\n assertEquals(\"\", token1.getTokenText());\n }", "public static MethodCallExpression call(Method method, Expression argument0, Expression argument1, Expression argument2, Expression argument3) { throw Extensions.todo(); }", "@Override\n public R visit(UnaryExpression n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "@Test(timeout = 4000)\n public void test074() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\") (\");\n Token token0 = xPathLexer0.notEquals();\n xPathLexer0.setPreviousToken(token0);\n assertEquals(\") \", token0.getTokenText());\n assertEquals(22, token0.getTokenType());\n \n Token token1 = xPathLexer0.identifierOrOperatorName();\n assertEquals(15, token1.getTokenType());\n assertEquals(\"\", token1.getTokenText());\n }", "@Test(timeout = 4000)\n public void test079() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\") (\");\n Token token0 = xPathLexer0.at();\n xPathLexer0.setPreviousToken(token0);\n assertEquals(\")\", token0.getTokenText());\n assertEquals(16, token0.getTokenType());\n \n Token token1 = xPathLexer0.identifierOrOperatorName();\n assertEquals(15, token1.getTokenType());\n assertEquals(\"\", token1.getTokenText());\n }", "Expr expr();", "public Node function()\r\n\t{\r\n\t\tint index = lexer.getPosition();\r\n\t\tif(lexer.getToken()==Lexer.Token.IDENTIFIER)\r\n\t\t{\r\n\t\t\tString name = lexer.getString();\r\n\t\t\tif(lexer.getToken()==Lexer.Token.LEFT_BRACKETS)\r\n\t\t\t{\r\n\t\t\t\tNode exp = expression();\r\n\t\t\t\tif(exp!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tif(lexer.getToken()==Lexer.Token.RIGHT_BRACKETS)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif(name.equals(\"sin\")) return new Sin(exp);\r\n\t\t\t\t\t\tif(name.equals(\"cos\")) return new Cos(exp);\r\n\t\t\t\t\t\tif(name.equals(\"tan\")) return new Tan(exp);\r\n\t\t\t\t\t\tif(name.equals(\"log\")) return new Log(exp);\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\tlexer.setPosition(index);\r\n\t\treturn null;\r\n\t}", "@Override\r\n\tpublic void visit(BinaryExpression binaryExpression) {\n\r\n\t}", "private void consumeFunctionCall() throws UiSelectorSyntaxException {\n String methodName;\n StringBuilder argument = new StringBuilder();\n\n int parenIndex = text.indexOf('(');\n methodName = text.substring(0, parenIndex);\n\n int index = parenIndex+1;\n int parenCount = 1;\n while (parenCount > 0) {\n try {\n switch (text.charAt(index)) {\n case ')':\n parenCount--;\n if (parenCount > 0) {\n argument.append(text.charAt(index));\n }\n break;\n case '(':\n parenCount++;\n argument.append(text.charAt(index));\n break;\n default:\n argument.append(text.charAt(index));\n }\n } catch (StringIndexOutOfBoundsException e) {\n throw new UiSelectorSyntaxException(\"unclosed paren in expression\");\n }\n index++;\n }\n\n ArrayList<String> args = splitArgs(argument.toString());\n\n Method method = getUiScrollableMethod(methodName, args);\n\n applyArgsToMethod(method, args);\n\n // add two for parentheses surrounding arg\n text = text.substring(methodName.length() + argument.length() + 2);\n }", "@Override\r\n\tpublic void visit(RoundBracketExpression roundBracketExpression) {\n\r\n\t}", "public Object eval (Object expression);", "public String visit(BracketExpression n, LLVMRedux argu) throws Exception {\n\n\n return n.f1.accept(this,argu);\n }", "private Object evalETree(ETreeNode node) throws FSException{\n Object lVal,rVal;\n\n if ( node == null )\n {\n parseError(\"Malformed expression\");\n // this is never reached, just for readability\n return null;\n }\n\n if (node.type==ETreeNode.E_VAL){\n return node.value;\n }\n lVal=evalETree(node.left);\n rVal=evalETree(node.right);\n\n switch (((Integer)node.value).intValue()){\n //call the various eval functions\n case LexAnn.TT_PLUS:{\n return evalPlus(lVal,rVal);\n }\n case LexAnn.TT_MINUS:{\n return evalMinus(lVal,rVal);\n }\n case LexAnn.TT_MULT:{\n return evalMult(lVal,rVal);\n }\n case LexAnn.TT_DIV:{\n return evalDiv(lVal,rVal);\n }\n case LexAnn.TT_LEQ:{\n return evalEq(lVal,rVal);\n }\n case LexAnn.TT_LNEQ:{\n return evalNEq(lVal,rVal);\n }\n case LexAnn.TT_LLS:{\n return evalLs(lVal,rVal);\n }\n case LexAnn.TT_LLSE:{\n return evalLse(lVal,rVal);\n }\n case LexAnn.TT_LGR:{\n return evalGr(lVal,rVal);\n }\n case LexAnn.TT_LGRE:{\n return evalGre(lVal,rVal);\n }\n case LexAnn.TT_MOD:{\n return evalMod(lVal,rVal);\n }\n case LexAnn.TT_LAND:{\n return evalAnd(lVal,rVal);\n }\n case LexAnn.TT_LOR:{\n return evalOr(lVal,rVal);\n }\n }\n\n return null;\n }", "@Override\n public Node visit(BinaryExpression nd, Void v) {\n if (\"??\".equals(nd.getOperator())) return nd;\n return nd.getLeft().accept(this, v);\n }", "private Object parseExpr() throws IOException, FSException{\n\n ETreeNode curNode=null;\n boolean end=false;\n Object val;\n boolean negate=false; //flag for unary minus\n boolean not=false;//flag for unary not.\n boolean prevOp=true;//flag - true if previous value was an operator\n\n while (!end){\n\n switch (tok.ttype) {\n\n\n //the various possible 'values'\n case LexAnn.TT_INTEGER:\n case LexAnn.TT_DOUBLE:\n case LexAnn.TT_STRING:\n case LexAnn.TT_WORD:\n case LexAnn.TT_FUNC:\n case LexAnn.TT_NULL:\n case LexAnn.TT_ARRAY:{\n\n if (!prevOp){\n parseError(\"Expected Operator\");\n } else {\n\n val=null;\n ETreeNode node=new ETreeNode();\n node.type=ETreeNode.E_VAL;\n\n switch (tok.ttype){\n //numbers - just get them\n case LexAnn.TT_INTEGER:{\n val=tok.value;\n break;\n }\n case LexAnn.TT_DOUBLE:{\n val=tok.value;\n break;\n }\n //functions - evaluate them\n case LexAnn.TT_FUNC:{\n String name=(String)tok.value;\n getNextToken();\n val=parseCallFunc(name);\n break;\n }\n //arrays - evaluate them\n case LexAnn.TT_ARRAY:{\n String name=(String)tok.value;\n getNextToken(); //should be a '['\n getNextToken(); //should be the index\n Object index=parseExpr();\n try {\n val=host.getVarEntry(name,index);\n } catch (Exception e) {\n parseError(e.getMessage());\n }\n break;\n }\n //variables - resolve them\n case LexAnn.TT_WORD:{\n if (hasVar((String)tok.value)) {\n val=getVar((String)tok.value);\n } else {\n try {\n val=host.getVarEntry((String)tok.value,null);\n } catch (Exception e) {\n parseError(e.getMessage());\n }\n }\n break;\n }\n //strings - just get again\n case LexAnn.TT_STRING:{\n val=tok.value;\n break;\n }\n //null\n case LexAnn.TT_NULL:{\n val=new FSObject(null);\n break;\n }\n }\n\n //unary not\n if (not){\n if (val instanceof Integer){\n if (((Integer)val).intValue()==0){\n val=FS_TRUE;\n } else {\n val=FS_FALSE;\n }\n not=false;\n } else if (val instanceof FSObject && ((FSObject)val).getObject() instanceof Boolean) {\n if (((FSObject)val).getObject().equals(Boolean.FALSE)) {\n val=FS_TRUE;\n } else {\n val=FS_FALSE;\n }\n } else if (val instanceof FSObject && ((FSObject)val).getObject() instanceof Integer) {\n if (((Integer)((FSObject)val).getObject()).intValue()==0) {\n val=FS_TRUE;\n } else {\n val=FS_FALSE;\n }\n } else {\n String msg=val.getClass().getName();\n if (val instanceof FSObject) msg=\"FSObject with \"+((FSObject)val).getNullClass().getName();\n parseError(\"Type mismatch for ! \"+msg);\n }\n }\n\n //unary minus\n if (negate) {\n if (val instanceof Integer){\n val=new Integer(-((Integer)val).intValue());\n } else if (val instanceof Double){\n val=new Double(-((Double)val).doubleValue());\n } else {\n parseError(\"Type mistmatch for unary -\");\n }\n }\n\n node.value=val;\n\n if (curNode!=null){\n if (curNode.left==null){\n curNode.left=node;\n node.parent=curNode;\n curNode=node;\n\n } else if (curNode.right==null){\n curNode.right=node;\n node.parent=curNode;\n curNode=node;\n\n }\n } else {\n curNode=node;\n }\n\n prevOp=false;\n }\n break;\n }\n /*operators - have to be more carefull with these.\n We build an expression tree - inserting the nodes at the right\n points to get a reasonable approximation to correct operator\n precidence*/\n case LexAnn.TT_LEQ:\n case LexAnn.TT_LNEQ:\n case LexAnn.TT_MULT:\n case LexAnn.TT_DIV:\n case LexAnn.TT_MOD:\n case LexAnn.TT_PLUS:\n case LexAnn.TT_MINUS:\n case LexAnn.TT_LGR:\n case LexAnn.TT_LGRE:\n case LexAnn.TT_LLSE:\n case LexAnn.TT_LLS:\n case LexAnn.TT_NOT:\n case LexAnn.TT_LAND:\n case LexAnn.TT_LOR: {\n if (prevOp){\n if (tok.ttype==LexAnn.TT_MINUS){\n negate=true;\n } else if (tok.ttype==LexAnn.TT_NOT){\n not=true;\n } else {\n parseError(\"Expected Expression\");\n }\n } else {\n\n ETreeNode node=new ETreeNode();\n\n node.type=ETreeNode.E_OP;\n node.value=new Integer(tok.ttype);\n\n if (curNode.parent!=null){\n\n int curPrio=getPrio(tok.ttype);\n int parPrio=\n getPrio(((Integer)curNode.parent.value).intValue());\n\n if (curPrio<=parPrio){\n //this nodes parent is the current nodes grandparent\n node.parent=curNode.parent.parent;\n //our nodes left leg is now linked into the current nodes\n //parent\n node.left=curNode.parent;\n //hook into grandparent\n if (curNode.parent.parent!=null){\n curNode.parent.parent.right=node;\n }\n\n //the current nodes parent is now us (because of above)\n curNode.parent=node;\n //set the current node.\n curNode=node;\n } else {\n //current node's parent's right is now us.\n curNode.parent.right=node;\n //our nodes left is the current node.\n node.left=curNode;\n //our nodes parent is the current node's parent.\n node.parent=curNode.parent;\n //curent nodes parent is now us.\n curNode.parent=node;\n //set the current node.\n curNode=node;\n }\n } else {\n //our node's left is the current node\n node.left=curNode;\n //current node's parent is us now\n //we don't have to set our parent, as it is null.\n curNode.parent=node;\n //set current node\n curNode=node;\n }\n prevOp=true;\n }\n break;\n }\n case '(':\n //start of an bracketed expression, recursively call ourself\n //to get a value\n {\n getNextToken();\n val=parseExpr();\n\n if (negate) {\n if (val instanceof Integer){\n val=new Integer(-((Integer)val).intValue());\n } else if (val instanceof Double){\n val=new Double(-((Double)val).doubleValue());\n } else {\n parseError(\"Type mistmatch for unary -\");\n }\n }\n\n ETreeNode node=new ETreeNode();\n node.value=val;\n node.type=ETreeNode.E_VAL;\n\n if (curNode!=null){\n if (curNode.left==null){\n curNode.left=node;\n node.parent=curNode;\n curNode=node;\n\n } else if (curNode.right==null){\n curNode.right=node;\n node.parent=curNode;\n curNode=node;\n\n }\n } else {\n curNode=node;\n }\n prevOp=false;\n break;\n }\n\n default: {\n end=true;\n }\n\n }\n if (!end){\n tok.nextToken();\n }\n }\n\n //find the top of the tree we just built.\n if (curNode==null) parseError(\"Missing Expression\");\n while(curNode.parent!=null){\n curNode=curNode.parent;\n }\n\n\n return evalETree(curNode);\n\n }", "public String visit(BracketExpression n, Object argu) \n\t{\n\t\tString _ret=null;\n\t _ret = n.f1.accept(this, argu);\n\t return _ret;\n\t}", "@Override\n public R visit(CFunctionCallExpression exp) throws X {\n return visit((AFunctionCallExpression) exp);\n }", "@Test\n\tpublic void testExpression() throws ParseException {\n\t\tExpression expression = langParser(\"a\").expression();\n\t\tassertEquals(expression.getClass(), Identifier.class);\n\t\texpression = langParser(\"a()\").expression();\n\t\tassertEquals(expression.getClass(), FunctionCall.class);\n\t\texpression = langParser(\"a.b\").expression();\n\t\tassertEquals(expression.getClass(), MemberAccess.class);\n\t\texpression = langParser(\"1\").expression();\n\t\tassertEquals(expression.getClass(), LongLiteral.class);\n\t\texpression = langParser(\"1.1\").expression();\n\t\tassertEquals(expression.getClass(), DoubleLiteral.class);\n\t\texpression = langParser(\"if(a,b,c)\").expression();\n\t\tassertEquals(expression.getClass(), TernaryIf.class);\n\t}", "@Test(timeout = 4000)\n public void test085() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"com.werken.saxpath.XPathLexer\");\n xPathLexer0.setXPath(\"[ (2) (c)\");\n Token token0 = xPathLexer0.notEquals();\n assertEquals(22, token0.getTokenType());\n assertEquals(\"[ \", token0.getTokenText());\n \n Token token1 = xPathLexer0.nextToken();\n assertEquals(\"(\", token1.getTokenText());\n \n Token token2 = xPathLexer0.identifierOrOperatorName();\n assertNotNull(token2);\n assertEquals(15, token2.getTokenType());\n assertEquals(\"2\", token2.getTokenText());\n }", "@Test(timeout = 4000)\n public void test084() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"(xA>7o;9b=;e*Y(m\");\n Token token0 = xPathLexer0.rightParen();\n xPathLexer0.setPreviousToken(token0);\n Token token1 = xPathLexer0.identifierOrOperatorName();\n assertNull(token1);\n }", "public Object getExpression();", "@Override\n\tpublic Object visit(ASTRelational node, Object data)\n\t{\n\t\treturn visitOperatorNode(node, data);\n\t}", "final public IASTLiteralTextNode Argument() throws ParseException {\r\n IASTLiteralTextNode node = null;\r\n Token lastToken = null;\r\n Token equalToken = null;\r\n Token firstToken = null;\r\n switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\r\n case INT:\r\n firstToken = jj_consume_token(INT);\r\n if (jj_2_3(2147483647)) {\r\n equalToken = jj_consume_token(EQUAL);\r\n switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\r\n case MINUS:\r\n jj_consume_token(MINUS);\r\n break;\r\n default:\r\n jj_la1[16] = jj_gen;\r\n ;\r\n }\r\n lastToken = jj_consume_token(INT);\r\n } else {\r\n ;\r\n }\r\n if (equalToken == null) {\r\n lastToken = firstToken;\r\n }\r\n break;\r\n case ASTERISK:\r\n case WORD:\r\n case STRING:\r\n case PACKAGE_OPTION:\r\n switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\r\n case ASTERISK:\r\n firstToken = jj_consume_token(ASTERISK);\r\n break;\r\n case PACKAGE_OPTION:\r\n firstToken = jj_consume_token(PACKAGE_OPTION);\r\n break;\r\n case WORD:\r\n firstToken = jj_consume_token(WORD);\r\n break;\r\n case STRING:\r\n firstToken = jj_consume_token(STRING);\r\n break;\r\n default:\r\n jj_la1[17] = jj_gen;\r\n jj_consume_token(-1);\r\n throw new ParseException();\r\n }\r\n lastToken = firstToken;\r\n break;\r\n default:\r\n jj_la1[18] = jj_gen;\r\n jj_consume_token(-1);\r\n throw new ParseException();\r\n }\r\n node = getRawLiteralTextNodeSpanning(firstToken, lastToken);\r\n {if (true) return node;}\r\n throw new Error(\"Missing return statement in function\");\r\n }", "@Override\npublic final void accept(TreeVisitor visitor) {\n visitor.visitWord(OpCodes.OR_NAME);\n if (ops != null) {\n for (int i = 0; i < ops.length; i++) {\n ops[i].accept(visitor);\n }\n } else {\n visitor.visitConstant(null, \"?\");\n }\n visitor.visitEnd();\n }", "@Override\n\tpublic Object visit(ASTFilterParen node, Object data) {\n\t\tSystem.out.print(\"(\");\n\t\tnode.childrenAccept(this, data);\n\t\tSystem.out.print(\")\");\n\t\treturn null;\n\t}", "@Override\r\n\tpublic boolean visit(VariableDeclarationFragment node) {\r\n//\t\toperator(node);\r\n\t\treturn true;\r\n\t}", "@Test(timeout = 4000)\n public void test068() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"Y44o{5$K\");\n xPathLexer0.leftParen();\n xPathLexer0.nextToken();\n Token token0 = xPathLexer0.operatorName();\n assertNull(token0);\n }", "@Test(timeout = 4000)\n public void test135() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"d>%NV0\");\n Token token0 = xPathLexer0.leftParen();\n assertEquals(\"d\", token0.getTokenText());\n assertEquals(1, token0.getTokenType());\n \n Token token1 = xPathLexer0.nextToken();\n assertEquals(\">\", token1.getTokenText());\n assertEquals(9, token1.getTokenType());\n \n Token token2 = xPathLexer0.identifierOrOperatorName();\n assertEquals(15, token2.getTokenType());\n assertEquals(\"\", token2.getTokenText());\n }", "@Test\n\tpublic void test_ClassDeclarationAnonymousInMethod_Dec_0_Ref_1() {\n\t\tconfigureParser(\"public class Other { public void method() { Bar bar = new Bar(); bar.accept(new Foo() {public void fooMethod(){}} ); } } \", \"Foo\", 0, 1);\n\t}", "public static void expression(CommonTree ast, IRTree irt)\n {\n CommonTree ast1;\n IRTree irt1 = new IRTree();\n Token t = ast.getToken();\n int tt = t.getType();\n if (tt == REALNUM) {\n constant(ast, irt1);\n irt.setOp(\"CONST\");\n irt.addSub(irt1);\n }\n else if(tt == PLUS || tt == MINUS || tt == TIMES || tt == DIVIDE)\n {\n //do something\n irt.setOp(\"BINOP\");\n IRTree irt2 = new IRTree();\n expression((CommonTree)ast.getChild(0), irt1);\n expression((CommonTree)ast.getChild(1), irt2);\n\tif(tt == PLUS)\n \t\t irt.addSub(new IRTree(\"+\")); \n\telse if(tt == MINUS)\n\t\tirt.addSub(new IRTree(\"-\"));\n\telse if(tt == TIMES)\n\t\tirt.addSub(new IRTree(\"*\"));\n\telse if(tt == DIVIDE)\n\t\tirt.addSub(new IRTree(\"/\"));\n irt.addSub(irt1);\n irt.addSub(irt2);\n }\n else\n\tSystem.out.println(\"unrecognised type \" + tt);\n }", "public String evaluate(Node root){\n\t\tObject[] args;\n\t\tClass[] types;\n\t\tint i= 0;\n\t\tNode nxt;\n\t\tString fun;\n\t\tfun = root.getValue();\n\t\tClass c=null;\n\t\t\n\t\tLinkedList<Node> children = root.getChildren();\n\n\t\tIterator<Node> iter = children.listIterator();\n\t\tif (!iter.hasNext()){\n\t\t\treturn fun;\n\t\t}\n\t\ttypes= new Class[children.size()];\n\t\targs = new Object[children.size()];\n\t\t\n\t\t//populates types[] for getmethod and args[] for invoke\n\t\twhile (iter.hasNext()) {\n\t\t\tnxt = iter.next();\n\t\t\tfun = evaluate(nxt);\n\t\t\tswitch ( root.getReturnType()[i+1] & 0b1111 ) {\n\t\t\t\t//the argument should be a string\n\t\t\t\tcase STRING:\n\t\t\t\t\tc=String.class;\n\t\t\t\t\targs[i]=fun.replace(\"\\\"\",\"\");\n\t\t\t\t\tbreak;\n\t\t\t\t//the argument should be a float primitive\n\t\t\t\tcase FLOAT:\n\t\t\t\t\tc=float.class;\n\t\t\t\t\targs[i]=new Float(Float.parseFloat(fun));\n\t\t\t\t\tbreak;\n\t\t\t\t//the argument should be a int primitive\n\t\t\t\tcase INTEGER:\n\t\t\t\t\tc=int.class;\n\t\t\t\t\targs[i]=new Integer(Integer.parseInt(fun));\n\t\t\t\t\tbreak;\n\t\t\t\t//the argument should be a Float class\n\t\t\t\tcase BIGFLOAT:\n\t\t\t\t\tc=Float.class;\n\t\t\t\t\targs[i]=new Float(Float.parseFloat(fun));\n\t\t\t\t\tbreak;\n\t\t\t\t//the argument should be an Integer class\n\t\t\t\tcase BIGINTEGER:\n\t\t\t\t\tc=Integer.class;\n\t\t\t\t\targs[i]=new Integer(Integer.parseInt(fun));\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\n\n\t\t\ttypes[i]=c;\n\t\t\ti ++;\n\t\t\t\n\t\t}\n\t\tfun = root.getValue();\n\t\t\n\t\ttry {\n\t\t\t//get the method at this node and apply it to the evaluation of its children\n\t\t\tfun = \"\" + coms.getMethod(fun, types).invoke(coms, args);\n\t\t}catch (Exception e){\n\t\t\t//this will never ever happen\n\t\t}\n\t\t\n\t\treturn fun;\n\t}", "public Code visitCallNode(StatementNode.CallNode node) {\n beginGen(\"Call\");\n SymEntry.ProcedureEntry proc = node.getEntry();\n Code code = new Code();\n /* Generate the call instruction. The second parameter is the\n * procedure's symbol table entry. The actual address is resolved \n * at load time.\n */\n code.genCall(staticLevel - proc.getLevel(), proc);\n endGen(\"Call\");\n return code;\n }", "public static MethodCallExpression call(Method method, Expression argument0, Expression argument1, Expression argument2, Expression argument3, Expression argument4) { throw Extensions.todo(); }", "public void visit(Operand operand);", "@Override \n\tpublic void caseAMethodCallExpr(AMethodCallExpr node){\n\t\t inAMethodCallExpr(node);\n\t if(node.getTarget() != null)\n\t {\n\t node.getTarget().apply(this);\n\t }\n\t if(node.getId() != null)\n\t {\n\t node.getId().apply(this);\n\t }\n\t {\n\t List<PExpr> copy = new ArrayList<PExpr>(node.getExpr());\n\t for(PExpr e : copy)\n\t {\n\t e.apply(this);\n\t \n\t boxIt(nodeTypes.get(e));\n\t }\n\t }\n\t outAMethodCallExpr(node);\n\t\t\n\t}", "@Override\n\tpublic Object visit(ASTGeometric node, Object data)\n\t{\n\t\treturn visitOperatorNode(node, data);\n\t}", "public Arginfo visit(BracketExpression n, Arginfo argu) {\n Arginfo _ret=null;\n n.f0.accept(this, argu);\n Arginfo temp = n.f1.accept(this, argu);\n n.f2.accept(this, argu);\n \n //System.err.println(argu.classname+\" \"+argu.methodname+\" \");\n if(temp==null){\n \t //System.err.println(\"noo\");\n }\n \n return temp;\n }", "@Test(timeout = 4000)\n public void test105() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\";b_z(sF5\");\n Token token0 = xPathLexer0.leftParen();\n assertEquals(\";\", token0.getTokenText());\n assertEquals(1, token0.getTokenType());\n \n Token token1 = xPathLexer0.nextToken();\n assertEquals(\"b_z\", token1.getTokenText());\n assertEquals(15, token1.getTokenType());\n }", "@Override\n public R visit(SparqlString n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "@Override\n\tpublic Object visit(ASTLogical node, Object data)\n\t{\n\t\treturn visitOperatorNode(node, data);\n\t}", "@Override\n\tpublic Object visit(ASTPCGenBracket node, Object data)\n\t{\n\t\t//Should be stripped by the function\n\t\tFormulaSemantics semantics = (FormulaSemantics) data;\n\t\tFormulaSemanticsUtilities.setInvalid(semantics,\n\t\t\t\"Parse Error: Invalid Class: \" + node.getClass().getName()\n\t\t\t\t+ \" found in operable location (class cannot be evaluated)\");\n\t\treturn semantics;\n\t}", "@Override\n public R visit(IRIref n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "@Override\n public TreeNode parse() {\n TreeNode first = ArithmeticSubexpression.getAdditive(environment).parse();\n if (first == null) return null;\n\n // Try to parse something starting with an operator.\n List<Wrapper> wrappers = RightSideSubexpression.createKleene(\n environment, ArithmeticSubexpression.getAdditive(environment),\n BemTeVicTokenType.EQUAL, BemTeVicTokenType.DIFFERENT,\n BemTeVicTokenType.GREATER_OR_EQUALS, BemTeVicTokenType.GREATER_THAN,\n BemTeVicTokenType.LESS_OR_EQUALS, BemTeVicTokenType.LESS_THAN\n ).parse();\n\n // If did not found anything starting with an operator, return the first node.\n if (wrappers.isEmpty()) return first;\n\n // Constructs a binary operator node containing the expression.\n Iterator<Wrapper> it = wrappers.iterator();\n Wrapper secondWrapper = it.next();\n BinaryOperatorNode second = new BinaryOperatorNode(secondWrapper.getTokenType(), first, secondWrapper.getOutput());\n\n if (wrappers.size() == 1) return second;\n\n // If we reach this far, the expression has more than one operator. i.e. (x = y = z),\n // which is a shortcut for (x = y AND y = z).\n\n // Firstly, determine if the operators are compatible.\n RelationalOperatorSide side = RelationalOperatorSide.NONE;\n for (Wrapper w : wrappers) {\n side = side.next(w.getTokenType());\n }\n if (side.isMixed()) {\n environment.emitError(\"XXX\");\n }\n\n // Creates the other nodes. In the expression (a = b = c = d), The \"a = b\"\n // is in the \"second\" node. Creates \"b = c\", and \"c = d\" nodes.\n List<BinaryOperatorNode> nodes = new LinkedList<BinaryOperatorNode>();\n nodes.add(second);\n\n TreeNode prev = secondWrapper.getOutput();\n while (it.hasNext()) {\n Wrapper w = it.next();\n BinaryOperatorNode current = new BinaryOperatorNode(w.getTokenType(), prev, w.getOutput());\n prev = w.getOutput();\n nodes.add(current);\n }\n\n // Combines all of the nodes in a single one using AND.\n return new VariableArityOperatorNode(BemTeVicTokenType.AND, nodes);\n }", "private Operand parseFactor() {\n Operand operand = new Operand(SymbolTable.OBJECT_NONE);\n switch (nextToken.kind) {\n case Token.IDENT:\n operand = parseDesignator();\n\n if (nextToken.kind == Token.LPAR) {\n if (operand.kind != Operand.KIND_METHOD) {\n error(\"Illegal method call\");\n }\n parseActPars(operand.object);\n if (operand.object == SymbolTable.OBJECT_LEN) {\n code.put(Code.OP_ARRAYLENGTH);\n } else if(operand.object != SymbolTable.OBJECT_CHR\n && operand.object != SymbolTable.OBJECT_ORD) {\n code.put(Code.OP_CALL);\n code.put2(operand.address);\n }\n } else {\n code.load(operand);\n }\n\n break;\n case Token.NUMBER:\n check(Token.NUMBER);\n operand = new Operand(token.value);\n operand.type = SymbolTable.STRUCT_INT;\n code.load(new Operand(token.value));\n break;\n case Token.CHAR_CONST:\n check(Token.CHAR_CONST);\n operand = new Operand(token.value);\n operand.type = SymbolTable.STRUCT_CHAR;\n code.load(new Operand(token.value));\n break;\n case Token.NEW:\n check(Token.NEW);\n check(Token.IDENT);\n SymObject object = find(token.string);\n assertIsType(object);\n Struct type = object.type;\n if (nextToken.kind == Token.LBRACK) {\n check(Token.LBRACK);\n Struct sizeType = parseExpr().type;\n if (sizeType != SymbolTable.STRUCT_INT) {\n error(\"Array size must be an int\");\n }\n check(Token.RBRACK);\n type = new Struct(Struct.KIND_ARRAY, type);\n\n code.put(Code.OP_NEWARRAY);\n if (type.elementsType == SymbolTable.STRUCT_CHAR) {\n code.put(0);\n } else {\n code.put(1);\n }\n } else {\n if (type.kind != Struct.KIND_CLASS) {\n error(\"Illegal instantiation: type isn't a class\");\n }\n\n code.put(Code.OP_NEW);\n code.put2(type.fields.size());\n }\n operand = new Operand(Operand.KIND_EXPR, -1, type);\n break;\n case Token.LPAR:\n check(Token.LPAR);\n operand = parseExpr();\n check(Token.RPAR);\n break;\n }\n\n return operand;\n }", "public void visit(Call call) {}", "public final void rule__XFeatureCall__ExplicitOperationCallAssignment_3_0() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \t\r\n try {\r\n // InternalDroneScript.g:18785:1: ( ( ( '(' ) ) )\r\n // InternalDroneScript.g:18786:2: ( ( '(' ) )\r\n {\r\n // InternalDroneScript.g:18786:2: ( ( '(' ) )\r\n // InternalDroneScript.g:18787:3: ( '(' )\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getXFeatureCallAccess().getExplicitOperationCallLeftParenthesisKeyword_3_0_0()); \r\n }\r\n // InternalDroneScript.g:18788:3: ( '(' )\r\n // InternalDroneScript.g:18789:4: '('\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getXFeatureCallAccess().getExplicitOperationCallLeftParenthesisKeyword_3_0_0()); \r\n }\r\n match(input,76,FOLLOW_2); if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getXFeatureCallAccess().getExplicitOperationCallLeftParenthesisKeyword_3_0_0()); \r\n }\r\n\r\n }\r\n\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getXFeatureCallAccess().getExplicitOperationCallLeftParenthesisKeyword_3_0_0()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "@Test(timeout = 4000)\n public void test114() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\":Y[~gy\");\n Token token0 = xPathLexer0.leftParen();\n assertEquals(1, token0.getTokenType());\n assertEquals(\":\", token0.getTokenText());\n \n Token token1 = xPathLexer0.nextToken();\n assertEquals(15, token1.getTokenType());\n assertEquals(\"Y\", token1.getTokenText());\n }", "protected Evaluable parseTerm() throws ParsingException {\n Evaluable factor = parseFactor();\n\n while (_token != null &&\n _token.type == TokenType.Operator &&\n \"*/%\".indexOf(_token.text) >= 0) {\n\n String op = _token.text;\n\n next(true);\n\n Evaluable factor2 = parseFactor();\n\n factor = new OperatorCallExpr(new Evaluable[] { factor, factor2 }, op);\n }\n\n return factor;\n }", "@Override\n public R visit(ArgList n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "@Test(timeout = 4000)\n public void test082() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\") (\");\n Token token0 = xPathLexer0.minus();\n xPathLexer0.setPreviousToken(token0);\n assertEquals(6, token0.getTokenType());\n assertEquals(\")\", token0.getTokenText());\n \n Token token1 = xPathLexer0.identifierOrOperatorName();\n assertEquals(\"\", token1.getTokenText());\n assertEquals(15, token1.getTokenType());\n }", "private void processBracket() {\r\n\t\tif (expression[currentIndex] == '(') {\r\n\t\t\ttoken = new Token(TokenType.OPEN_BRACKET, expression[currentIndex]);\r\n\t\t} else {\r\n\t\t\ttoken = new Token(TokenType.CLOSED_BRACKET, expression[currentIndex]);\r\n\t\t}\r\n\r\n\t\tcurrentIndex++;\r\n\t}", "@Override\n protected HardwareNode visit(BinaryExpressionASTNode node) throws Exception {\n var lnode = visit(node.getLeft());\n var rnode = visit(node.getRight());\n\n HardwareExpression finalexpr = null;\n String op = node.getOperator().getAsString();\n switch (op) {\n case \"+\":\n finalexpr = new AdditionExpression((HardwareExpression) lnode, (HardwareExpression) rnode);\n break;\n case \"-\":\n finalexpr = new SubtractionExpression((HardwareExpression) lnode, (HardwareExpression) rnode);\n break;\n case \"*\":\n finalexpr = new MultiplicationExpression((HardwareExpression) lnode, (HardwareExpression) rnode);\n break;\n case \"<<\":\n finalexpr = new LeftShiftExpression((HardwareExpression) lnode, (HardwareExpression) rnode);\n break;\n case \"&\":\n finalexpr = new BitWiseAndExpression((HardwareExpression) lnode, (HardwareExpression) rnode);\n break;\n case \"==\":\n finalexpr = new ComparisonExpression((HardwareExpression) lnode, (HardwareExpression) rnode);\n break;\n default:\n // finalexpr = new UnimplementedExpression((HardwareExpression) lnode, (HardwareExpression) rnode, op);\n throw new UnimplementedExpressionException(node.getAsString());\n }\n\n return new ParenthesisExpression(finalexpr);\n }", "@Test(timeout = 4000)\n public void test011() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\") (\");\n String string0 = xPathLexer0.getXPath();\n assertEquals(\") (\", string0);\n }", "public String visit(Operator n, Object argu)\r\n\t {\r\n\t return null;\r\n\t }", "@Override\n public void visit(ProcedureCallNode procedureCallNode) {\n }", "public static Expr parse(String str) {\r\n\t\tExprBinary at = new ExprBinary(null, null); // the root of the tree\r\n\t\tStringBuilder opstore = new StringBuilder(); // stores operator characters\r\n\t\tStringBuilder adder = new StringBuilder(); // stores value characters\r\n\t\tboolean text = false; // whether inside of a string\r\n\r\n\t\tfor (int i = 0; i < str.length(); i++) {\r\n\t\t\tchar c = str.charAt(i);\r\n\t\t\tboolean add = (c != '\\\\'); // whether to add the char to adder. ignore escape char\r\n\t\t\tboolean leftSide = (opstore.length() == 0); // whether on the left side of the binary expression (before the operator)\r\n\t\t\tString adderStr = adder.toString();\r\n\t\t\tString opStr = opstore.toString();\r\n\r\n\t\t\tif (c == '\"') { // string\r\n\t\t\t\tif (i == 0 || str.charAt(i - 1) != '\\\\') {\r\n\t\t\t\t\ttext = !text; // ignore string contents\r\n\t\t\t\t}\r\n\t\t\t} else if (!text) {\r\n\t\t\t\tif (c == ' ') {\r\n\t\t\t\t\tadd = false; // ignore spaces\r\n\t\t\t\t} else if (c == '(') { // grouping or function\r\n\t\t\t\t\tint closeIndex = getExitIndex(str, i);\r\n\t\t\t\t\tString contents = str.substring(i + 1, closeIndex);\r\n\t\t\t\t\tExpr group; // the expression denoted by the parentheses group\r\n\r\n\t\t\t\t\tif (i > 0 && (!isReserved(str.charAt(i - 1)) || str.charAt(i - 1) == ')')) { // function\r\n\t\t\t\t\t\tif (adderStr.isEmpty()) { // function reference call ... func()()\r\n\t\t\t\t\t\t\tExpr leftLink = leftSide ? at.left() : at.right();\r\n\t\t\t\t\t\t\tExprCall rightLink = new ExprCall(null, contents); // a reference call is only a parameter group, null name\r\n\t\t\t\t\t\t\tgroup = new ExprCallChain(leftLink, rightLink);\r\n\r\n\t\t\t\t\t\t} else { // function call\r\n\t\t\t\t\t\t\tif (adderStr.startsWith(\".\")) { // function sub call ... func().subfunc()\r\n\t\t\t\t\t\t\t\tExpr leftLink = leftSide ? at.left() : at.right();\r\n\t\t\t\t\t\t\t\tExprCall rightLink = new ExprCall(adderStr.substring(1), contents);\r\n\t\t\t\t\t\t\t\tgroup = new ExprCallChain(leftLink, rightLink);\r\n\r\n\t\t\t\t\t\t\t} else { // standalone function ... func()\r\n\t\t\t\t\t\t\t\tif (Character.toString(adderStr.charAt(0)).equals(Operator.REF.op)) { // @func()\r\n\t\t\t\t\t\t\t\t\tgroup = new ExprFuncRef(adderStr.substring(1), contents);\r\n\t\t\t\t\t\t\t\t} else { // func()\r\n\t\t\t\t\t\t\t\t\tgroup = new ExprCall(adderStr, contents);\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} else { // parenthetical grouping\r\n\t\t\t\t\t\tchar cc = (adderStr.length() == 1 ? adderStr.charAt(0) : 0); // operator before parenthesis ... !()\r\n\t\t\t\t\t\tif (isReserved(cc)) { // operation on the group\r\n\t\t\t\t\t\t\tgroup = new ExprUnary(Operator.get(Character.toString(cc)), parse(contents));\r\n\t\t\t\t\t\t} else { // ignore character, not an operator\r\n\t\t\t\t\t\t\tgroup = parse(contents);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\t// add to tree\r\n\t\t\t\t\tif (leftSide) at.setLeft(group);\r\n\t\t\t\t\telse at.setRight(group);\r\n\r\n\t\t\t\t\tadder.setLength(0);\r\n\t\t\t\t\ti = closeIndex;\r\n\t\t\t\t\tadd = false;\r\n\r\n\t\t\t\t} else if (c == '{') { // array initializer ... {}\r\n\t\t\t\t\tint closeIndex = getExitIndex(str, i);\r\n\t\t\t\t\tExpr arr = new ExprArray(str.substring(i + 1, closeIndex), adderStr);\r\n\r\n\t\t\t\t\tif (adderStr.length() == 1 && isReserved(adderStr.charAt(0))) {\r\n\t\t\t\t\t\t// unary op done on array initializer ... !{}\r\n\t\t\t\t\t\tarr = new ExprUnary(Operator.get(Character.toString(adderStr.charAt(0))), arr);\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tif (leftSide) at.setLeft(arr);\r\n\t\t\t\t\telse at.setRight(arr);\r\n\r\n\t\t\t\t\tadder.setLength(0);\r\n\t\t\t\t\ti = closeIndex;\r\n\t\t\t\t\tadd = false;\r\n\r\n\t\t\t\t} else if (isOp(c)) { // operator\r\n\t\t\t\t\t// add value used in operation to tree\r\n\t\t\t\t\tif (!adderStr.isEmpty()) {\r\n\t\t\t\t\t\tif (leftSide) { // ex: adderStr + ___\r\n\t\t\t\t\t\t\tat.setLeft(parseValue(adderStr));\r\n\t\t\t\t\t\t} else { // ex: (___ + adderStr) + ___\r\n\t\t\t\t\t\t\tat.setRight(parseValue(adderStr));\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tif (opStr.equals(\"\") || (i > 0 && isOp(str.charAt(i - 1)))) { // accumulate operator from adjacent operator characters (ex: != consists of ! and =)\r\n\t\t\t\t\t\tif (!(adderStr.isEmpty() && (opStr + c).equals(\"-\")) && (Operator.get(opStr + c) != null || (opStr.isEmpty() && isOp(c)))) {// if the operator exists, then it is an operator character\r\n\t\t\t\t\t\t\tif (opStr.equals(\"-\") && c == '-') { // this and the above line handle negatives and double negatives\r\n\t\t\t\t\t\t\t\topStr = \"+\";\r\n\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\topStr += c;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tadd = false;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t} else { // existing operator operation must be added to tree ... in \"(a + b) * c\", \"(a+b)\" must be abstracted-out so we get \"x * c\"\r\n\t\t\t\t\t\tint endIndex = i + 1; // end index of operator\r\n\r\n\t\t\t\t\t\t// get entire operator if operator is more than 1 character long\r\n\t\t\t\t\t\tfor (int i2 = endIndex; i2 < str.length(); i2++) {\r\n\t\t\t\t\t\t\tif (isOp(str.charAt(i2))) endIndex++;\r\n\t\t\t\t\t\t\telse break;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tOperator nextOp = Operator.get(str.substring(i, endIndex)); // second (right-most) operator\r\n\t\t\t\t\t\tat.op = Operator.get(opStr); // first (left-most) operator\r\n\r\n\t\t\t\t\t\t// group values in operation by operator precedence\r\n\t\t\t\t\t\tint p1 = precedence(nextOp); // right-most op\r\n\t\t\t\t\t\tint p2 = precedence(at.op); // left-most op\r\n\r\n\t\t\t\t\t\tif (p1 > p2) { // group around the right-most op\r\n\t\t\t\t\t\t\tExprBinary right = new ExprBinary(at, nextOp);\r\n\t\t\t\t\t\t\tright.setLeft(at.right());\r\n\r\n\t\t\t\t\t\t\tat.setRight(right);\r\n\t\t\t\t\t\t\tat = right;\r\n\r\n\t\t\t\t\t\t} else if (p1 < p2) { // group around the left-most op\r\n\t\t\t\t\t\t\tExprBinary last = at;\r\n\t\t\t\t\t\t\tExprBinary match = at.parent();\r\n\r\n\t\t\t\t\t\t\t// correctly add to the binary tree based on precedence of operators\r\n\t\t\t\t\t\t\twhile (match instanceof ExprBinary && p1 < (p2 = precedence(((ExprBinary) match).op))) {\r\n\t\t\t\t\t\t\t\tlast = match;\r\n\t\t\t\t\t\t\t\tmatch = match.parent();\r\n\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\tExprBinary tr = new ExprBinary(match, nextOp);\r\n\t\t\t\t\t\t\ttr.setLeft(last);\r\n\r\n\t\t\t\t\t\t\tif (match != null) {\r\n\t\t\t\t\t\t\t\tif (last == match.right()) match.setRight(tr);\r\n\t\t\t\t\t\t\t\telse match.setLeft(tr);\r\n\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\tat = tr;\r\n\r\n\t\t\t\t\t\t} else { // group from left to right (equal operator precedence)\r\n\t\t\t\t\t\t\tExprBinary left = new ExprBinary(at, at.op); // group existing values into left node, add right to open right node spot\r\n\t\t\t\t\t\t\tleft.setLeft(at.left());\r\n\t\t\t\t\t\t\tleft.setRight(at.right());\r\n\r\n\t\t\t\t\t\t\tat.op = nextOp;\r\n\t\t\t\t\t\t\tat.setLeft(left);\r\n\t\t\t\t\t\t\tat.setRight(null);\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\topStr = nextOp.op;\r\n\t\t\t\t\t\ti = endIndex - 1;\r\n\t\t\t\t\t\tadd = false;\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tadder.setLength(0);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\t// store valid value characters\r\n\t\t\tif (add) {\r\n\t\t\t\tadder.append(c);\r\n\r\n\t\t\t\t// if this is the last character, then add the stored value to the tree.\r\n\t\t\t\t// otherwise, would be incorrectly ignored because there is no next operator\r\n\t\t\t\tif (i + 1 == str.length()) {\r\n\t\t\t\t\tif (opstore.length() == 0) {\r\n\t\t\t\t\t\tat.setLeft(parseValue(adder.toString()));\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tat.setRight(parseValue(adder.toString()));\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t// initialize binary tree operator if not done so already\r\n\t\tif (at.op == null) {\r\n\t\t\tat.op = Operator.get(opstore.toString());\r\n\t\t}\r\n\r\n\t\t// after traversing the tree to some point, we need to get back to root so we can return the entire tree\r\n\t\twhile (at.parent() != null) {\r\n\t\t\tat = (ExprBinary) at.parent();\r\n\t\t}\r\n\r\n\t\t// the expression may not actually be a binary operation\r\n\t\tif (at.op == null && at.right() == NULL) {\r\n\t\t\tif (at.left() == NULL) return NULL; // the expression is empty\r\n\t\t\treturn at.left(); // the expression is a single value/unary-operation\r\n\t\t}\r\n\r\n\t\treturn at;\r\n\t}", "private Operation selector(Scope scope, Vector queue)\r\n {\r\n Operation root;\r\n\r\n root = new Operation();\r\n\r\n if (nextSymbol == Keyword.DOTSY)\r\n {\r\n lookAhead();\r\n\r\n root.operator = nextSymbol;\r\n\r\n if (nextSymbol == Keyword.IDENTSY)\r\n {\r\n root.name = nextToken;\r\n lookAhead();\r\n root.left = argumentsOpt(scope, null, queue);\r\n }\r\n else if (nextSymbol == Keyword.SUPERSY)\r\n {\r\n matchKeyword(Keyword.SUPERSY);\r\n root.left = arguments(scope, null, queue);\r\n }\r\n else\r\n {\r\n matchKeyword(Keyword.NEWSY);\r\n root.left = innerCreator(scope, queue);\r\n }\r\n }\r\n else\r\n {\r\n root.operator = nextSymbol;\r\n matchKeyword(Keyword.LBRACKETSY);\r\n follower.add(Keyword.RBRACKETSY);\r\n unresolved.add(\"JavaArray\");\r\n root.left = expression(scope, queue);\r\n follower.remove(follower.size() - 1);\r\n matchKeyword(Keyword.RBRACKETSY);\r\n }\r\n\r\n return root;\r\n }", "@Override\n public R visit(NumericLiteral n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "protected Evaluable parseFactor() throws ParsingException {\n if (_token == null) {\n throw makeException(\"Expecting something more at end of expression\");\n }\n\n Evaluable eval = null;\n\n if (_token.type == TokenType.String) {\n eval = new LiteralExpr(_token.text);\n next(false);\n } else if (_token.type == TokenType.Regex) {\n RegexToken t = (RegexToken) _token;\n\n try {\n Pattern pattern = Pattern.compile(_token.text, t.caseInsensitive ? Pattern.CASE_INSENSITIVE : 0);\n eval = new LiteralExpr(pattern);\n next(false);\n } catch (Exception e) {\n throw makeException(\"Bad regular expression (\" + e.getMessage() + \")\");\n }\n } else if (_token.type == TokenType.Number) {\n eval = new LiteralExpr(((NumberToken)_token).value);\n next(false);\n } else if (_token.type == TokenType.Operator && _token.text.equals(\"-\")) { // unary minus?\n next(true);\n\n if (_token != null && _token.type == TokenType.Number) {\n Number n = ((NumberToken)_token).value;\n\n eval = new LiteralExpr(n instanceof Long ? -n.longValue() : -n.doubleValue());\n\n next(false);\n } else {\n throw makeException(\"Bad negative number\");\n }\n } else if (_token.type == TokenType.Identifier) {\n String text = _token.text;\n next(false);\n\n if (_token == null || _token.type != TokenType.Delimiter || !_token.text.equals(\"(\")) {\n eval = \"null\".equals(text) ? new LiteralExpr(null) : new VariableExpr(text);\n } else if( \"PI\".equals(text) ) {\n eval = new LiteralExpr(Math.PI);\n next(false);\n } else {\n Function f = ControlFunctionRegistry.getFunction(text);\n Control c = ControlFunctionRegistry.getControl(text);\n if (f == null && c == null) {\n throw makeException(\"Unknown function or control named \" + text);\n }\n\n next(true); // swallow (\n\n List<Evaluable> args = parseExpressionList(\")\");\n\n if (c != null) {\n Evaluable[] argsA = makeArray(args);\n String errorMessage = c.checkArguments(argsA);\n if (errorMessage != null) {\n throw makeException(errorMessage);\n }\n eval = new ControlCallExpr(argsA, c);\n } else {\n eval = new FunctionCallExpr(makeArray(args), f);\n }\n }\n } else if (_token.type == TokenType.Delimiter && _token.text.equals(\"(\")) {\n next(true);\n\n eval = parseExpression();\n\n if (_token != null && _token.type == TokenType.Delimiter && _token.text.equals(\")\")) {\n next(false);\n } else {\n throw makeException(\"Missing )\");\n }\n } else if (_token.type == TokenType.Delimiter && _token.text.equals(\"[\")) { // [ ... ] array\n next(true); // swallow [\n\n List<Evaluable> args = parseExpressionList(\"]\");\n\n eval = new FunctionCallExpr(makeArray(args), new ArgsToArray());\n } else {\n throw makeException(\"Missing number, string, identifier, regex, or parenthesized expression\");\n }\n\n while (_token != null) {\n if (_token.type == TokenType.Operator && _token.text.equals(\".\")) {\n next(false); // swallow .\n\n if (_token == null || _token.type != TokenType.Identifier) {\n throw makeException(\"Missing function name\");\n }\n\n String identifier = _token.text;\n next(false);\n\n if (_token != null && _token.type == TokenType.Delimiter && _token.text.equals(\"(\")) {\n next(true); // swallow (\n\n Function f = ControlFunctionRegistry.getFunction(identifier);\n if (f == null) {\n throw makeException(\"Unknown function \" + identifier);\n }\n\n List<Evaluable> args = parseExpressionList(\")\");\n args.add(0, eval);\n\n eval = new FunctionCallExpr(makeArray(args), f);\n } else {\n eval = new FieldAccessorExpr(eval, identifier);\n }\n } else if (_token.type == TokenType.Delimiter && _token.text.equals(\"[\")) {\n next(true); // swallow [\n\n List<Evaluable> args = parseExpressionList(\"]\");\n args.add(0, eval);\n\n eval = new FunctionCallExpr(makeArray(args), ControlFunctionRegistry.getFunction(\"get\"));\n } else {\n break;\n }\n }\n\n return eval;\n }", "public final Object expression() throws RecognitionException {\n Object result = null;\n\n\n CommonTree INTEGER15=null;\n CommonTree BOOL16=null;\n CommonTree IDENT17=null;\n Object op1 =null;\n\n Object op2 =null;\n\n Object call18 =null;\n\n\n try {\n // /v/filer4b/v38q001/rjnevels/Desktop/Antlr Eclipse Test/workspace3/BFlat/src/a/b/c/EvaluatorWalker.g:322:3: ( ( ^( '+' op1= expression op2= expression ) | ^( '-' op1= expression op2= expression ) | ^( '*' op1= expression op2= expression ) | ^( '/' op1= expression op2= expression ) | ^( '%' op1= expression op2= expression ) | ^( ARITH_NEGATION op1= expression ) | ^( '||' op1= expression op2= expression ) | ^( '&&' op1= expression op2= expression ) | ^( '==' op1= expression op2= expression ) | ^( '!=' op1= expression op2= expression ) | ^( '>=' op1= expression op2= expression ) | ^( '<=' op1= expression op2= expression ) | ^( '>' op1= expression op2= expression ) | ^( '<' op1= expression op2= expression ) | ^( BOOL_NEGATION op1= expression ) | INTEGER | BOOL | IDENT | call ) )\n // /v/filer4b/v38q001/rjnevels/Desktop/Antlr Eclipse Test/workspace3/BFlat/src/a/b/c/EvaluatorWalker.g:323:3: ( ^( '+' op1= expression op2= expression ) | ^( '-' op1= expression op2= expression ) | ^( '*' op1= expression op2= expression ) | ^( '/' op1= expression op2= expression ) | ^( '%' op1= expression op2= expression ) | ^( ARITH_NEGATION op1= expression ) | ^( '||' op1= expression op2= expression ) | ^( '&&' op1= expression op2= expression ) | ^( '==' op1= expression op2= expression ) | ^( '!=' op1= expression op2= expression ) | ^( '>=' op1= expression op2= expression ) | ^( '<=' op1= expression op2= expression ) | ^( '>' op1= expression op2= expression ) | ^( '<' op1= expression op2= expression ) | ^( BOOL_NEGATION op1= expression ) | INTEGER | BOOL | IDENT | call )\n {\n OperationExecuter oe = null;\n\n // /v/filer4b/v38q001/rjnevels/Desktop/Antlr Eclipse Test/workspace3/BFlat/src/a/b/c/EvaluatorWalker.g:324:3: ( ^( '+' op1= expression op2= expression ) | ^( '-' op1= expression op2= expression ) | ^( '*' op1= expression op2= expression ) | ^( '/' op1= expression op2= expression ) | ^( '%' op1= expression op2= expression ) | ^( ARITH_NEGATION op1= expression ) | ^( '||' op1= expression op2= expression ) | ^( '&&' op1= expression op2= expression ) | ^( '==' op1= expression op2= expression ) | ^( '!=' op1= expression op2= expression ) | ^( '>=' op1= expression op2= expression ) | ^( '<=' op1= expression op2= expression ) | ^( '>' op1= expression op2= expression ) | ^( '<' op1= expression op2= expression ) | ^( BOOL_NEGATION op1= expression ) | INTEGER | BOOL | IDENT | call )\n int alt14=19;\n switch ( input.LA(1) ) {\n case 32:\n {\n alt14=1;\n }\n break;\n case 34:\n {\n alt14=2;\n }\n break;\n case 31:\n {\n alt14=3;\n }\n break;\n case 35:\n {\n alt14=4;\n }\n break;\n case 29:\n {\n alt14=5;\n }\n break;\n case ARITH_NEGATION:\n {\n alt14=6;\n }\n break;\n case 50:\n {\n alt14=7;\n }\n break;\n case 30:\n {\n alt14=8;\n }\n break;\n case 39:\n {\n alt14=9;\n }\n break;\n case 28:\n {\n alt14=10;\n }\n break;\n case 41:\n {\n alt14=11;\n }\n break;\n case 37:\n {\n alt14=12;\n }\n break;\n case 40:\n {\n alt14=13;\n }\n break;\n case 36:\n {\n alt14=14;\n }\n break;\n case BOOL_NEGATION:\n {\n alt14=15;\n }\n break;\n case INTEGER:\n {\n alt14=16;\n }\n break;\n case BOOL:\n {\n alt14=17;\n }\n break;\n case IDENT:\n {\n alt14=18;\n }\n break;\n case CALL:\n {\n alt14=19;\n }\n break;\n default:\n NoViableAltException nvae =\n new NoViableAltException(\"\", 14, 0, input);\n\n throw nvae;\n\n }\n\n switch (alt14) {\n case 1 :\n // /v/filer4b/v38q001/rjnevels/Desktop/Antlr Eclipse Test/workspace3/BFlat/src/a/b/c/EvaluatorWalker.g:325:4: ^( '+' op1= expression op2= expression )\n {\n match(input,32,FOLLOW_32_in_expression564); \n\n match(input, Token.DOWN, null); \n pushFollow(FOLLOW_expression_in_expression570);\n op1=expression();\n\n state._fsp--;\n\n\n pushFollow(FOLLOW_expression_in_expression576);\n op2=expression();\n\n state._fsp--;\n\n\n match(input, Token.UP, null); \n\n\n oe = new OperationExecuter(op1,op2,\"+\"); \n\n }\n break;\n case 2 :\n // /v/filer4b/v38q001/rjnevels/Desktop/Antlr Eclipse Test/workspace3/BFlat/src/a/b/c/EvaluatorWalker.g:326:6: ^( '-' op1= expression op2= expression )\n {\n match(input,34,FOLLOW_34_in_expression590); \n\n match(input, Token.DOWN, null); \n pushFollow(FOLLOW_expression_in_expression596);\n op1=expression();\n\n state._fsp--;\n\n\n pushFollow(FOLLOW_expression_in_expression602);\n op2=expression();\n\n state._fsp--;\n\n\n match(input, Token.UP, null); \n\n\n oe = new OperationExecuter(op1,op2,\"-\"); \n\n }\n break;\n case 3 :\n // /v/filer4b/v38q001/rjnevels/Desktop/Antlr Eclipse Test/workspace3/BFlat/src/a/b/c/EvaluatorWalker.g:327:6: ^( '*' op1= expression op2= expression )\n {\n match(input,31,FOLLOW_31_in_expression614); \n\n match(input, Token.DOWN, null); \n pushFollow(FOLLOW_expression_in_expression620);\n op1=expression();\n\n state._fsp--;\n\n\n pushFollow(FOLLOW_expression_in_expression626);\n op2=expression();\n\n state._fsp--;\n\n\n match(input, Token.UP, null); \n\n\n oe = new OperationExecuter(op1,op2,\"*\"); \n\n }\n break;\n case 4 :\n // /v/filer4b/v38q001/rjnevels/Desktop/Antlr Eclipse Test/workspace3/BFlat/src/a/b/c/EvaluatorWalker.g:328:6: ^( '/' op1= expression op2= expression )\n {\n match(input,35,FOLLOW_35_in_expression638); \n\n match(input, Token.DOWN, null); \n pushFollow(FOLLOW_expression_in_expression644);\n op1=expression();\n\n state._fsp--;\n\n\n pushFollow(FOLLOW_expression_in_expression650);\n op2=expression();\n\n state._fsp--;\n\n\n match(input, Token.UP, null); \n\n\n oe = new OperationExecuter(op1,op2,\"/\"); \n\n }\n break;\n case 5 :\n // /v/filer4b/v38q001/rjnevels/Desktop/Antlr Eclipse Test/workspace3/BFlat/src/a/b/c/EvaluatorWalker.g:329:6: ^( '%' op1= expression op2= expression )\n {\n match(input,29,FOLLOW_29_in_expression662); \n\n match(input, Token.DOWN, null); \n pushFollow(FOLLOW_expression_in_expression668);\n op1=expression();\n\n state._fsp--;\n\n\n pushFollow(FOLLOW_expression_in_expression674);\n op2=expression();\n\n state._fsp--;\n\n\n match(input, Token.UP, null); \n\n\n oe = new OperationExecuter(op1,op2,\"%\"); \n\n }\n break;\n case 6 :\n // /v/filer4b/v38q001/rjnevels/Desktop/Antlr Eclipse Test/workspace3/BFlat/src/a/b/c/EvaluatorWalker.g:330:6: ^( ARITH_NEGATION op1= expression )\n {\n match(input,ARITH_NEGATION,FOLLOW_ARITH_NEGATION_in_expression686); \n\n match(input, Token.DOWN, null); \n pushFollow(FOLLOW_expression_in_expression692);\n op1=expression();\n\n state._fsp--;\n\n\n match(input, Token.UP, null); \n\n\n oe = new OperationExecuter(op1,null,\"ARITH_NEGATION\"); \n\n }\n break;\n case 7 :\n // /v/filer4b/v38q001/rjnevels/Desktop/Antlr Eclipse Test/workspace3/BFlat/src/a/b/c/EvaluatorWalker.g:331:6: ^( '||' op1= expression op2= expression )\n {\n match(input,50,FOLLOW_50_in_expression710); \n\n match(input, Token.DOWN, null); \n pushFollow(FOLLOW_expression_in_expression716);\n op1=expression();\n\n state._fsp--;\n\n\n pushFollow(FOLLOW_expression_in_expression722);\n op2=expression();\n\n state._fsp--;\n\n\n match(input, Token.UP, null); \n\n\n oe = new OperationExecuter(op1,op2,\"||\"); \n\n }\n break;\n case 8 :\n // /v/filer4b/v38q001/rjnevels/Desktop/Antlr Eclipse Test/workspace3/BFlat/src/a/b/c/EvaluatorWalker.g:332:6: ^( '&&' op1= expression op2= expression )\n {\n match(input,30,FOLLOW_30_in_expression733); \n\n match(input, Token.DOWN, null); \n pushFollow(FOLLOW_expression_in_expression739);\n op1=expression();\n\n state._fsp--;\n\n\n pushFollow(FOLLOW_expression_in_expression745);\n op2=expression();\n\n state._fsp--;\n\n\n match(input, Token.UP, null); \n\n\n oe = new OperationExecuter(op1,op2,\"&&\"); \n\n }\n break;\n case 9 :\n // /v/filer4b/v38q001/rjnevels/Desktop/Antlr Eclipse Test/workspace3/BFlat/src/a/b/c/EvaluatorWalker.g:333:6: ^( '==' op1= expression op2= expression )\n {\n match(input,39,FOLLOW_39_in_expression756); \n\n match(input, Token.DOWN, null); \n pushFollow(FOLLOW_expression_in_expression762);\n op1=expression();\n\n state._fsp--;\n\n\n pushFollow(FOLLOW_expression_in_expression768);\n op2=expression();\n\n state._fsp--;\n\n\n match(input, Token.UP, null); \n\n\n oe = new OperationExecuter(op1,op2,\"==\"); \n\n }\n break;\n case 10 :\n // /v/filer4b/v38q001/rjnevels/Desktop/Antlr Eclipse Test/workspace3/BFlat/src/a/b/c/EvaluatorWalker.g:334:6: ^( '!=' op1= expression op2= expression )\n {\n match(input,28,FOLLOW_28_in_expression779); \n\n match(input, Token.DOWN, null); \n pushFollow(FOLLOW_expression_in_expression785);\n op1=expression();\n\n state._fsp--;\n\n\n pushFollow(FOLLOW_expression_in_expression791);\n op2=expression();\n\n state._fsp--;\n\n\n match(input, Token.UP, null); \n\n\n oe = new OperationExecuter(op1,op2,\"!=\"); \n\n }\n break;\n case 11 :\n // /v/filer4b/v38q001/rjnevels/Desktop/Antlr Eclipse Test/workspace3/BFlat/src/a/b/c/EvaluatorWalker.g:335:6: ^( '>=' op1= expression op2= expression )\n {\n match(input,41,FOLLOW_41_in_expression802); \n\n match(input, Token.DOWN, null); \n pushFollow(FOLLOW_expression_in_expression808);\n op1=expression();\n\n state._fsp--;\n\n\n pushFollow(FOLLOW_expression_in_expression814);\n op2=expression();\n\n state._fsp--;\n\n\n match(input, Token.UP, null); \n\n\n oe = new OperationExecuter(op1,op2,\">=\"); \n\n }\n break;\n case 12 :\n // /v/filer4b/v38q001/rjnevels/Desktop/Antlr Eclipse Test/workspace3/BFlat/src/a/b/c/EvaluatorWalker.g:336:6: ^( '<=' op1= expression op2= expression )\n {\n match(input,37,FOLLOW_37_in_expression825); \n\n match(input, Token.DOWN, null); \n pushFollow(FOLLOW_expression_in_expression831);\n op1=expression();\n\n state._fsp--;\n\n\n pushFollow(FOLLOW_expression_in_expression837);\n op2=expression();\n\n state._fsp--;\n\n\n match(input, Token.UP, null); \n\n\n oe = new OperationExecuter(op1,op2,\"<=\"); \n\n }\n break;\n case 13 :\n // /v/filer4b/v38q001/rjnevels/Desktop/Antlr Eclipse Test/workspace3/BFlat/src/a/b/c/EvaluatorWalker.g:337:6: ^( '>' op1= expression op2= expression )\n {\n match(input,40,FOLLOW_40_in_expression848); \n\n match(input, Token.DOWN, null); \n pushFollow(FOLLOW_expression_in_expression854);\n op1=expression();\n\n state._fsp--;\n\n\n pushFollow(FOLLOW_expression_in_expression860);\n op2=expression();\n\n state._fsp--;\n\n\n match(input, Token.UP, null); \n\n\n oe = new OperationExecuter(op1,op2,\">\"); \n\n }\n break;\n case 14 :\n // /v/filer4b/v38q001/rjnevels/Desktop/Antlr Eclipse Test/workspace3/BFlat/src/a/b/c/EvaluatorWalker.g:338:6: ^( '<' op1= expression op2= expression )\n {\n match(input,36,FOLLOW_36_in_expression872); \n\n match(input, Token.DOWN, null); \n pushFollow(FOLLOW_expression_in_expression878);\n op1=expression();\n\n state._fsp--;\n\n\n pushFollow(FOLLOW_expression_in_expression884);\n op2=expression();\n\n state._fsp--;\n\n\n match(input, Token.UP, null); \n\n\n oe = new OperationExecuter(op1,op2,\"<\"); \n\n }\n break;\n case 15 :\n // /v/filer4b/v38q001/rjnevels/Desktop/Antlr Eclipse Test/workspace3/BFlat/src/a/b/c/EvaluatorWalker.g:339:6: ^( BOOL_NEGATION op1= expression )\n {\n match(input,BOOL_NEGATION,FOLLOW_BOOL_NEGATION_in_expression896); \n\n match(input, Token.DOWN, null); \n pushFollow(FOLLOW_expression_in_expression902);\n op1=expression();\n\n state._fsp--;\n\n\n match(input, Token.UP, null); \n\n\n oe = new OperationExecuter(op1,null,\"BOOL_NEGATION\"); \n\n }\n break;\n case 16 :\n // /v/filer4b/v38q001/rjnevels/Desktop/Antlr Eclipse Test/workspace3/BFlat/src/a/b/c/EvaluatorWalker.g:340:6: INTEGER\n {\n INTEGER15=(CommonTree)match(input,INTEGER,FOLLOW_INTEGER_in_expression920); \n\n oe = new OperationExecuter(localScope, (INTEGER15!=null?INTEGER15.getText():null),\"INTEGER\"); \n\n }\n break;\n case 17 :\n // /v/filer4b/v38q001/rjnevels/Desktop/Antlr Eclipse Test/workspace3/BFlat/src/a/b/c/EvaluatorWalker.g:341:6: BOOL\n {\n BOOL16=(CommonTree)match(input,BOOL,FOLLOW_BOOL_in_expression964); \n\n oe = new OperationExecuter(localScope, (BOOL16!=null?BOOL16.getText():null),\"BOOL\"); \n\n }\n break;\n case 18 :\n // /v/filer4b/v38q001/rjnevels/Desktop/Antlr Eclipse Test/workspace3/BFlat/src/a/b/c/EvaluatorWalker.g:342:6: IDENT\n {\n IDENT17=(CommonTree)match(input,IDENT,FOLLOW_IDENT_in_expression1010); \n\n oe = new OperationExecuter(localScope, (IDENT17!=null?IDENT17.getText():null),\"IDENT\"); \n\n }\n break;\n case 19 :\n // /v/filer4b/v38q001/rjnevels/Desktop/Antlr Eclipse Test/workspace3/BFlat/src/a/b/c/EvaluatorWalker.g:343:6: call\n {\n pushFollow(FOLLOW_call_in_expression1055);\n call18=call();\n\n state._fsp--;\n\n\n result = call18;\n\n }\n break;\n\n }\n\n\n if (oe != null) result = oe.doOperation();\n if (result == null)\n BFlatGUI.debugPrint(0, \"result of expression is null!\");\n \n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n\n finally {\n \t// do for sure before leaving\n }\n return result;\n }", "public interface Node {\n Oper oper();\n CNFOrdinal toCNF();\n}" ]
[ "0.62382555", "0.5991723", "0.59462065", "0.58890575", "0.5772083", "0.56805104", "0.5565346", "0.5545417", "0.5543708", "0.5535041", "0.5529495", "0.5517331", "0.54393274", "0.5410729", "0.54097474", "0.54041004", "0.53803796", "0.5376977", "0.5370564", "0.53485876", "0.53132045", "0.5309102", "0.53053373", "0.5281668", "0.5279993", "0.5271538", "0.5269091", "0.526908", "0.5268075", "0.5267803", "0.5263724", "0.5248814", "0.5232771", "0.52288723", "0.5221018", "0.52060103", "0.52020437", "0.519969", "0.51886207", "0.5188032", "0.51876295", "0.5180554", "0.5175628", "0.5170268", "0.5164778", "0.5161387", "0.51591974", "0.51589876", "0.51584005", "0.5151145", "0.514653", "0.51450765", "0.5144484", "0.5139937", "0.5139109", "0.51129794", "0.51121944", "0.5098787", "0.5097826", "0.5095208", "0.5082738", "0.5073226", "0.50732195", "0.506704", "0.5062536", "0.50620246", "0.5060148", "0.5057874", "0.50528055", "0.5046339", "0.5043462", "0.50346494", "0.50340766", "0.5033316", "0.5032502", "0.5024928", "0.50223833", "0.50169253", "0.50124794", "0.5010995", "0.5008072", "0.49975342", "0.49946612", "0.49890098", "0.49748152", "0.4972403", "0.4970217", "0.49645922", "0.4964119", "0.4961762", "0.49589995", "0.49588302", "0.49546766", "0.4946743", "0.49449575", "0.49361286", "0.49340552", "0.49298802", "0.49289578", "0.49259868", "0.49251467" ]
0.0
-1
iRIref > IRIref() argList > ArgList()
@Override public R visit(FunctionCall n, A argu) { R _ret = null; n.iRIref.accept(this, argu); n.argList.accept(this, argu); return _ret; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "ArgList createArgList();", "public interface IArgsParser {\r\n\tvoid parse(String [] aParams, Iterable<IArgument> args);\r\n}", "@Override\n protected ReferenceArgumentCollection makeReferenceArgumentCollection() {\n return new ReferenceArgumentCollection() {\n @Argument(doc = \"The reference sequence file.\", optional=true, common=false)\n public File REFERENCE_SEQUENCE;\n\n @Override\n public File getReferenceFile() {\n return REFERENCE_SEQUENCE;\n }\n };\n }", "java.util.List<com.mwr.jdiesel.api.Protobuf.Message.Argument> \n getArgumentList();", "java.util.List<com.mwr.jdiesel.api.Protobuf.Message.Argument> \n getArgumentList();", "default String args() {\n return (String) metadata().get(\"x-uri-args\");\n }", "AstroArg seq(AstroArg first, AstroArg second, AstroArg third);", "AstroArg seq(AstroArg first,\n AstroArg second,\n AstroArg third,\n AstroArg fourth);", "public ArgList(Object arg1) {\n super(1);\n addElement(arg1);\n }", "List<IArgumentBuilder> getArguments();", "java.util.List<java.lang.String>\n getArgsList();", "public listArestas_args(listArestas_args other) {\n }", "AstroArg seq(AstroArg first, AstroArg second);", "String getArguments();", "FunctionArgument getRef();", "Object[] args();", "@Override\n\tpublic void traverseArg(UniArg node) {\n\t}", "public IRubyObject aref(IRubyObject[] args) {\n switch (args.length) {\n case 1:\n return aref(args[0]);\n case 2:\n return aref(args[0], args[1]);\n default:\n Arity.raiseArgumentError(getRuntime(), args.length, 1, 2);\n return null; // not reached\n }\n }", "@Override\n\tpublic List<String> getArgumentDesc() {\n\t\treturn desc;\n\t}", "int getArgIndex();", "@Override\n\tpublic void addArg(FormulaElement arg){\n\t}", "uicargs createuicargs();", "java.lang.String getArg();", "AstroArg unpack(Astro litChars);", "java.util.List<java.lang.String>\n\t\tgetArgsList();", "public IconList (V... args) {\n\tif (args == null) { return; };\n\taddAll(Arrays.asList(args));\n }", "java.util.List<godot.wire.Wire.Value> \n getArgsList();", "Object[] getArguments();", "Object[] getArguments();", "public String argTypes() {\n return \"I\";//NOI18N\n }", "public ArgList(Object arg1, Object arg2, Object arg3, Object arg4) {\n super(4);\n addElement(arg1);\n addElement(arg2);\n addElement(arg3);\n addElement(arg4);\n }", "public Object[] getArguments() { return args;}", "public ArgList(Object arg1, Object arg2) {\n super(2);\n addElement(arg1);\n addElement(arg2);\n }", "public void harvest(List<IRI> iris);", "ImmutableList<String> mainArgs();", "java.util.List<java.lang.String>\n getArgsList();", "public ArgList(Object arg1, Object arg2, Object arg3) {\n super(3);\n addElement(arg1);\n addElement(arg2);\n addElement(arg3);\n }", "public Arginfo visit(IdentifierRest n, Arginfo argu) {\n Arginfo _ret=null;\n n.f0.accept(this, argu);\n n.f1.accept(this, argu);\n return _ret;\n }", "String getISOPref();", "public Arginfo visit(IdentifierList n, Arginfo argu) {\n Arginfo _ret=null;\n n.f0.accept(this, argu);\n n.f1.accept(this, argu);\n return _ret;\n }", "Astro bag(AstroArg args);", "void mo7375a(C1320b bVar, int i, String str, Uri uri, String str2, String str3) throws RemoteException;", "public interface IFormalParameter {\r\n\t/*\r\n\t * Fills in the given actual parameters in the formal parameters and declare\r\n\t * them in the given context\r\n\t */\r\n\tpublic void fillIn(Context context, Iterator<IReferable> _actualParams);\r\n\r\n}", "@Override\r\n\tpublic List<String> getArguments()\r\n\t{\n\t\treturn null;\r\n\t}", "public ArgList(int n) {\n super(n);\n }", "public List<String> getArgumentList()\n\t{\n\t\treturn m_argumentList;\n\t}", "public static void main(String[] args) {\n\n MethodReferences methodReferences = new MethodReferences();\n MyInterface3 myInterface3 = methodReferences::display;\n System.out.println(myInterface3.msg());\n\n\n BiFunction<Integer,Integer,Integer> addition = MyInterface4::add;\n\n int i = addition.apply(3,5);\n System.out.println(i);\n }", "@FunctionalInterface\npublic interface IRIPrinter {\n String getString(IRI iri);\n}", "@Override\n public R visit(IRIrefOrFunction n, A argu) {\n R _ret = null;\n n.iRIref.accept(this, argu);\n n.nodeOptional.accept(this, argu);\n return _ret;\n }", "public static void main(String[] args) {\n\t\t\tmeth(args);\r\n\t\t\targument_test:meth(args);\r\n\t}", "@Override\n\tprotected GATKArgumentCollection getArgumentCollection() {\n\t\treturn argCollection;\n\t}", "static void perform_inr(String passed){\n\t\tint type = type_of_inr(passed);\n\t\tswitch(type){\n\t\tcase 1:\n\t\t\tinr_reg(passed);\n\t\t\tbreak;\n\t\tcase 2:\n\t\t\tinr_mem(passed);\n\t\t\tbreak;\n\t\t}\n\t}", "public static void main(String[] args) {\n List<String> myList = new ArrayList<String>();\n\n //convert args into a List<String>\n List<String> argList = Arrays.asList(args);\n myList.addAll(argList);\n\n //call third-party api which uses raw types\n ThirdPartyAPI.addElement(myList);\n\n //Iterator is now also typesafe\n Iterator<String> theArgs = myList.iterator();\n while(theArgs.hasNext()) {\n String nextArg = theArgs.next();\n }\n }", "ArgMapListRule createArgMapListRule();", "OpFunctionArgAgregate createOpFunctionArgAgregate();", "public ArgList(Object[] argList) {\n this(argList, 0);\n }", "public Type[] getArgumentTypes() {\n/* 236 */ return Type.getArgumentTypes(this.desc);\n/* */ }", "void mo707a(int i, int i2, String str) throws RemoteException;", "static void perform_xri(String passed){\n\t\tint type = type_of_xri(passed);\n\t\tif(type==1)\n\t\t\txri_with_acc(passed);\n\t}", "public static void main(String arg[]) {\n\n }", "public interface IAbsolute extends IMeasurement_descriptor{\n\n\tpublic IRI iri();\n\n}", "godot.wire.Wire.Value getArgs(int index);", "public final String argList() throws RecognitionException {\n\t\tString out = null;\n\n\n\n\t\t\tArrayList<String> list = new ArrayList<String>();\n\t\t\tout = \"\";\n\n\t\ttry {\n\t\t\t// C:\\\\Users\\\\Samir\\\\Documents\\\\University\\\\Y2S2\\\\COMP2010\\\\LittleNic\\\\src\\\\LittleNicCodeGen.g:456:2: ( ( expr[true, list] )+ )\n\t\t\t// C:\\\\Users\\\\Samir\\\\Documents\\\\University\\\\Y2S2\\\\COMP2010\\\\LittleNic\\\\src\\\\LittleNicCodeGen.g:456:4: ( expr[true, list] )+\n\t\t\t{\n\t\t\t// C:\\\\Users\\\\Samir\\\\Documents\\\\University\\\\Y2S2\\\\COMP2010\\\\LittleNic\\\\src\\\\LittleNicCodeGen.g:456:4: ( expr[true, list] )+\n\t\t\tint cnt17=0;\n\t\t\tloop17:\n\t\t\twhile (true) {\n\t\t\t\tint alt17=2;\n\t\t\t\tint LA17_0 = input.LA(1);\n\t\t\t\tif ( ((LA17_0 >= BOOLEAN && LA17_0 <= CALL)||(LA17_0 >= ID && LA17_0 <= INTEGER)||LA17_0==NEGATION||LA17_0==22||(LA17_0 >= 25 && LA17_0 <= 26)||LA17_0==28||(LA17_0 >= 32 && LA17_0 <= 36)) ) {\n\t\t\t\t\talt17=1;\n\t\t\t\t}\n\n\t\t\t\tswitch (alt17) {\n\t\t\t\tcase 1 :\n\t\t\t\t\t// C:\\\\Users\\\\Samir\\\\Documents\\\\University\\\\Y2S2\\\\COMP2010\\\\LittleNic\\\\src\\\\LittleNicCodeGen.g:456:4: expr[true, list]\n\t\t\t\t\t{\n\t\t\t\t\tpushFollow(FOLLOW_expr_in_argList651);\n\t\t\t\t\texpr(true, list);\n\t\t\t\t\tstate._fsp--;\n\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\n\t\t\t\tdefault :\n\t\t\t\t\tif ( cnt17 >= 1 ) break loop17;\n\t\t\t\t\tEarlyExitException eee = new EarlyExitException(17, input);\n\t\t\t\t\tthrow eee;\n\t\t\t\t}\n\t\t\t\tcnt17++;\n\t\t\t}\n\n\n\t\t\t\t\t\tif (!list.isEmpty()) {\n\t\t\t\t\t\t\tout = list.get(0);\n\t\t\t\t\t\t\tfor (int i = 1; i < list.size(); i++) {\n\t\t\t\t\t\t\t\tout = out.concat(\", \" + list.get(i));\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}\n\n\t\t}\n\t\tcatch (RecognitionException re) {\n\t\t\treportError(re);\n\t\t\trecover(input,re);\n\t\t}\n\t\tfinally {\n\t\t\t// do for sure before leaving\n\t\t}\n\t\treturn out;\n\t}", "@Override public int getNumArguments()\t\t\t{ return arg_list.size(); }", "public getListFile_args(getListFile_args other) {\n }", "Argument help(String help);", "public interface GosuTypeArgumentList extends IGosuPsiElement\n{\n GosuTypeElement[] getTypeArgumentElements();\n}", "public ArgList(Object[] argList, int offset) {\n super(argList == null ? 0 : argList.length - offset);\n if (argList != null) {\n for (int i = offset; i < argList.length; i++)\n addElement(argList[i]);\n }\n }", "OclExpression getArgument();", "OBCArgs createOBCArgs();", "public IRubyObject aref(IRubyObject[] args) {\n int argc = checkArgumentCount(args, 1, 2);\n if (argc == 2) {\n int beg = RubyNumeric.fix2int(args[0]);\n int len = RubyNumeric.fix2int(args[1]);\n if (beg < 0) {\n beg += getSize();\n }\n return subseq(beg, len);\n }\n if (args[0] instanceof RubyFixnum) {\n return group(RubyNumeric.fix2int(args[0]));\n }\n if (args[0] instanceof RubyBignum) {\n throw getRuntime().newIndexError(\"index too big\");\n }\n if (args[0] instanceof RubyRange) {\n long[] begLen = ((RubyRange) args[0]).getBeginLength(getSize(), true, false);\n if (begLen == null) {\n return getRuntime().getNil();\n }\n return subseq(begLen[0], begLen[1]);\n }\n return group(RubyNumeric.num2long(args[0]));\n }", "java.util.List<org.jetbrains.r.rinterop.RRef> \n getRefsList();", "public static void main(String[] args) {\n\t\tString list = Annotation.annotateList(1, 16);\n\t\tSystem.out.println(list);\n\t\t\n\t}", "public static void main(String[] args) {\n\tLibro l1=new Libro();\r\n\tl1.InfLibro(\"Gary\", 25, \"terror\");\r\n\r\n\t}", "public ArrayList getListOfInstructions(String[] args) {\r\n\r\n ArrayList instructions = new ArrayList();\r\n\r\n SourceChooser sourceChooser = new SourceChooser();\r\n String source = sourceChooser.chooseSource(args);\r\n\r\n if(source.equals(\"command line\")) {\r\n FromCommandLine fromCommandLine = new FromCommandLine();\r\n instructions = fromCommandLine.reader(args);\r\n }\r\n if(source.equals(\"json\")) {\r\n\r\n }\r\n if(source.equals(\"txt\")) {\r\n FromTxtFile fromTxtFile = new FromTxtFile();\r\n instructions = fromTxtFile.reader();\r\n }\r\n if(source.equals(\"xml\")) {\r\n\r\n }\r\n\r\n return instructions;\r\n }", "java.util.List<com.mwr.jdiesel.api.Protobuf.Message.Argument> \n getElementList();", "AstroArg start(AstroArg top);", "public java.util.List<java.lang.String>\n getArgsList() {\n return java.util.Collections.unmodifiableList(args_);\n }", "private Term[] parseArgumentList() throws ParseException {\n \n final Term[] args = parseTermList();\n final int tt = _tokenizer.next();\n if (tt != ')') {\n _tokenizer.pushBack();\n reportError(\"Missing ')' or ','.\"); /*I18N*/\n }\n \n return args;\n }", "private ParameterInformation processArgumentReference(Argument argument,\n List<NameDescriptionType> argTypeSet,\n SequenceEntryType seqEntry,\n int seqIndex)\n {\n ParameterInformation argumentInfo = null;\n\n // Initialize the argument's attributes\n String argName = argument.getName();\n String dataType = null;\n String arraySize = null;\n String bitLength = null;\n BigInteger argBitSize = null;\n String enumeration = null;\n String description = null;\n UnitSet unitSet = null;\n String units = null;\n String minimum = null;\n String maximum = null;\n\n // Step through each command argument type\n for (NameDescriptionType argType : argTypeSet)\n {\n // Check if this is the same command argument referenced in the argument list (by\n // matching the command and argument names between the two)\n if (argument.getArgumentTypeRef().equals(argType.getName()))\n {\n boolean isInteger = false;\n boolean isUnsigned = false;\n boolean isFloat = false;\n boolean isString = false;\n\n // Check if this is an array parameter\n if (seqEntry instanceof ArrayParameterRefEntryType)\n {\n arraySize = \"\";\n\n // Store the reference to the array parameter type\n ArrayDataTypeType arrayType = (ArrayDataTypeType) argType;\n argType = null;\n\n // Step through each dimension for the array variable\n for (Dimension dim : ((ArrayParameterRefEntryType) seqEntry).getDimensionList().getDimension())\n {\n // Check if the fixed value exists\n if (dim.getEndingIndex().getFixedValue() != null)\n {\n // Build the array size string\n arraySize += String.valueOf(Integer.valueOf(dim.getEndingIndex().getFixedValue()) + 1)\n + \",\";\n }\n }\n\n arraySize = CcddUtilities.removeTrailer(arraySize, \",\");\n\n // The array parameter type references a non-array parameter type that\n // describes the individual array members. Step through each data type in the\n // parameter type set in order to locate this data type entry\n for (NameDescriptionType type : argTypeSet)\n {\n // Check if the array parameter's array type reference matches the data\n // type name\n if (arrayType.getArrayTypeRef().equals(type.getName()))\n {\n // Store the reference to the array parameter's data type and stop\n // searching\n argType = type;\n break;\n }\n }\n }\n\n // Check if a data type entry for the parameter exists in the parameter type set\n // (note that if the parameter is an array the steps above locate the data type\n // entry for the individual array members)\n if (argType != null)\n {\n long dataTypeBitSize = 0;\n\n // Check if the argument is an integer data type\n if (argType instanceof IntegerArgumentType)\n {\n IntegerArgumentType icmd = (IntegerArgumentType) argType;\n\n // Get the number of bits occupied by the argument\n argBitSize = icmd.getSizeInBits();\n\n // Get the argument units reference\n unitSet = icmd.getUnitSet();\n\n // Check if integer encoding is set to 'unsigned'\n if (icmd.getIntegerDataEncoding().getEncoding().equalsIgnoreCase(\"unsigned\"))\n {\n isUnsigned = true;\n }\n\n // Determine the smallest integer size that contains the number of bits\n // occupied by the argument\n dataTypeBitSize = 8;\n\n while (argBitSize.longValue() > dataTypeBitSize)\n {\n dataTypeBitSize *= 2;\n }\n\n // Get the argument alarm\n IntegerArgumentType.ValidRangeSet alarmType = icmd.getValidRangeSet();\n\n // Check if the argument has an alarm\n if (alarmType != null)\n {\n // Get the alarm range\n List<IntegerRangeType> alarmRange = alarmType.getValidRange();\n\n // Check if the alarm range exists\n if (alarmRange != null)\n {\n // Store the minimum alarm value\n minimum = alarmRange.get(0).getMinInclusive();\n\n // Store the maximum alarm value\n maximum = alarmRange.get(0).getMaxInclusive();\n }\n }\n\n isInteger = true;\n }\n // Check if the argument is a floating point data type\n else if (argType instanceof FloatArgumentType)\n {\n // Get the float argument attributes\n FloatArgumentType fcmd = (FloatArgumentType) argType;\n dataTypeBitSize = fcmd.getSizeInBits().longValue();\n unitSet = fcmd.getUnitSet();\n\n // Get the argument alarm\n FloatArgumentType.ValidRangeSet alarmType = fcmd.getValidRangeSet();\n\n // Check if the argument has an alarm\n if (alarmType != null)\n {\n // Get the alarm range\n List<FloatRangeType> alarmRange = alarmType.getValidRange();\n\n // Check if the alarm range exists\n if (alarmRange != null)\n {\n // Get the minimum value\n Double min = alarmRange.get(0).getMinInclusive();\n\n // Check if a minimum value exists\n if (min != null)\n {\n // Get the minimum alarm value\n minimum = String.valueOf(min);\n }\n\n // Get the maximum value\n Double max = alarmRange.get(0).getMaxInclusive();\n\n // Check if a maximum value exists\n if (max != null)\n {\n // Get the maximum alarm value\n maximum = String.valueOf(max);\n }\n }\n }\n\n isFloat = true;\n }\n // Check if the argument is a string data type\n else if (argType instanceof StringDataType)\n {\n // Get the string argument attributes\n StringDataType scmd = (StringDataType) argType;\n dataTypeBitSize = Integer.valueOf(scmd.getStringDataEncoding()\n .getSizeInBits()\n .getFixed()\n .getFixedValue());\n unitSet = scmd.getUnitSet();\n isString = true;\n }\n // Check if the argument is an enumerated data type\n else if (argType instanceof EnumeratedDataType)\n {\n EnumeratedDataType ecmd = (EnumeratedDataType) argType;\n EnumerationList enumList = ecmd.getEnumerationList();\n\n // Check if any enumeration parameters are defined\n if (enumList != null)\n {\n // Step through each enumeration parameter\n for (ValueEnumerationType enumType : enumList.getEnumeration())\n {\n // Check if this is the first parameter\n if (enumeration == null)\n {\n // Initialize the enumeration string\n enumeration = \"\";\n }\n // Not the first parameter\n else\n {\n // Add the separator for the enumerations\n enumeration += \", \";\n }\n\n // Begin building this enumeration\n enumeration += enumType.getValue() + \" | \" + enumType.getLabel();\n }\n\n argBitSize = ecmd.getIntegerDataEncoding().getSizeInBits();\n unitSet = ecmd.getUnitSet();\n\n // Check if integer encoding is set to 'unsigned'\n if (ecmd.getIntegerDataEncoding().getEncoding().equalsIgnoreCase(\"unsigned\"))\n {\n isUnsigned = true;\n }\n\n // Determine the smallest integer size that contains the number of bits\n // occupied by the argument\n dataTypeBitSize = 8;\n\n while (argBitSize.longValue() > dataTypeBitSize)\n {\n dataTypeBitSize *= 2;\n }\n\n isInteger = true;\n }\n }\n\n // Get the name of the data type from the data type table that matches the base\n // type and size of the parameter\n dataType = getMatchingDataType(dataTypeBitSize / 8,\n isInteger,\n isUnsigned,\n isFloat,\n isString,\n dataTypeHandler);\n\n // Check if the description exists\n if (argType.getLongDescription() != null)\n {\n // Store the description\n description = argType.getLongDescription();\n }\n\n // Check if the argument bit size exists\n if (argBitSize != null && argBitSize.longValue() != dataTypeBitSize)\n {\n // Store the bit length\n bitLength = argBitSize.toString();\n }\n\n // Check if the units exists\n if (unitSet != null)\n {\n List<UnitType> unitType = unitSet.getUnit();\n\n // Check if the units is set\n if (!unitType.isEmpty())\n {\n // Store the units\n units = unitType.get(0).getContent();\n }\n }\n\n argumentInfo = new ParameterInformation(argName,\n dataType,\n arraySize,\n bitLength,\n enumeration,\n units,\n minimum,\n maximum,\n description,\n 0,\n seqIndex);\n }\n\n break;\n }\n }\n\n return argumentInfo;\n }", "@java.lang.Override\n public java.util.List<godot.wire.Wire.Value> getArgsList() {\n return args_;\n }", "public Document getArguments() {\n return arguments;\n }", "com.google.protobuf.ByteString\n\t\tgetArgBytes();", "public List(int arg1, int arg2, String arg3, int arg4) {\n titleResId = arg1;\n summaryResId = arg2;\n intent = arg3;\n type = arg4;\n }", "public static String arg(CommonTree ast, IRTree irt)\n {\n Token t = ast.getToken();\n int tt = t.getType();\n if (tt == STRING) {\n String tx = t.getText();\n int a = Memory.allocateString(tx); \n String st = String.valueOf(a);\n irt.setOp(\"MEM\");\n irt.addSub(new IRTree(\"CONST\", new IRTree(st)));\n return \"string\";\n }\n else {\n expression(ast, irt);\n return \"real\";\n }\n }", "List<Parameter> uriParameters();", "private String genInterfaceMethod(ExecutableElement e, String typeArgs) {\n String[] lTypeArgs = typeArgs.split(\",\");\n String[] lListTypeArgs = new String[lTypeArgs.length];\n\n // Example: List<E> and List<M>\n for (int listTypeArgsCount = 0; listTypeArgsCount < lTypeArgs.length; ++listTypeArgsCount) {\n lListTypeArgs[listTypeArgsCount] = \"java.util.List<\" + lTypeArgs[listTypeArgsCount] + \">\";\n }\n\n String res = \"\";\n res += TAB + \"default IPrint \" + e.getSimpleName() + \"(\";\n // Notice that there is a possibility of this piece of grammar having\n // zero parameters.\n List<? extends VariableElement> params = e.getParameters();\n\n // This is the part where we create the arguments for the header of the\n // print function of this piece of grammar.\n // We go through all the parameters of this piece of grammar.\n for (int tempParamCount = 0; tempParamCount < params.size(); ++tempParamCount) {\n // In this case this parameter is List<E> or List<M>, then we'll\n // pass it in as List<IPrint>\n if (Utils.arrayContains(lListTypeArgs, params.get(tempParamCount).asType().toString()) != -1) {\n res += \"java.util.List<IPrint> p\" + tempParamCount;\n } else if (Utils.arrayContains(lTypeArgs, params.get(tempParamCount).asType().toString()) != -1) { // In\n // this\n // case\n // it's\n // a\n // normal\n // type,\n // so\n // it\n // will\n // only\n // be\n // one\n // IPrint.\n res += \"IPrint p\" + tempParamCount;\n } else { // In the last case it's likely to be a primitive type. We\n // can just put its type directly out there.\n res += params.get(tempParamCount).asType().toString() + \" p\" + tempParamCount;\n }\n // This is to add the , between parameters in Java\n if (tempParamCount < params.size() - 1)\n res += \", \";\n }\n res += \") {\\n\";\n\n // Now let me also try to output what method is being currently invoked\n // to the standard output. Debugging.\n res += TAB2 + \"System.out.println(\\\"We're currently trying to invoke default method \" + e.getSimpleName()\n + \" with parameters \" + e.getParameters() + \"\\\");\\n\";\n\n // This was the beginning of the method body\n res += TAB2 + \"return (Layouter<NoExceptions> pp) -> {\\n\";\n res += TAB3 + \"pp.beginI();\\n\";\n\n // We already defined an annotation in our framework called \"Syntax\" for\n // each language. We're just extracting that information.\n Syntax anno = e.getAnnotation(Syntax.class);\n if (anno == null) {\n System.err.println(\"Warning: method without syntax/token anno: \" + e);\n return \"\";\n }\n String syn = anno.value();\n String[] synList = syn.split(\" \");\n\n // DEBUGGING: Trying to see how NOA produces the grammar production for\n // this piece of grammar.\n List<String> realSyms = Arrays.asList(synList).subList(2, synList.length);\n Level precAnno = e.getAnnotation(Level.class);\n int prec = ConventionsPP.MAX_PRECEDENCE;\n if (precAnno != null) {\n prec = precAnno.value();\n }\n // noa.util.NormalAlt na = new noa.util.NormalAlt(synList[0], prec,\n // e.getSimpleName().toString(), realSyms, 0);\n // noa.util.NormalAlt na = new noa.util.NormalAlt(synList[0], 100,\n // e.getSimpleName().toString(), realSyms, 0);\n NormalAlt na = new NormalAlt(synList[0], 100, e.getSimpleName().toString(), realSyms, 0);\n res += TAB3 + \"// The string produced by NOA is: \" + na.toString() + \"\\n\";\n // labelCounter+=realSyms.size();\n\n // We start from synListCount = 2 bceause the first two\n // things are\n // `form =`, mandatory components of the annotation.\n int paramCount = 0, synListCount = 2;\n // We start processing all the symbols within the @Syntax annotation.\n while (synListCount < synList.length) {\n // // Debugging information\n res += TAB3 + \"// We're currently processing symbol \" + synList[synListCount] + \"\\n\";\n String s = synList[synListCount];\n String paramName = \"p\" + paramCount;\n\n if (isEOF(s)) {\n res += TAB3 + \"pp.nl();\\n\";\n } else if (s.equals(\"NEWLINE\") || s.equals(\"NEWLINE?\") || s.equals(\"NEWLINE*\") || s.equals(\"NEWLINE+\")) {\n res += TAB3 + \"pp.nl();\\n\";\n } else if (s.equals(\"INDENT\")) {\n res += TAB3 + \"pp.beginI();\\n\";\n } else if (s.equals(\"DEDENT\")) {\n res += TAB3 + \"pp.end();\\n\";\n } else if (s.equals(\"(\")) {\n // Handle the case of brackets in the grammar. e.g.\n /*\n * @Syntax(\"except_from_test = test ( 'as' NAME )?\")\n * E except_from_test(E test, String name);\n */\n // The only possible ending is )?\n // Actually we should just do nothing during the printing it seems. If there's nothing to print then it will just print nothing? Or actually no, if there's nothing to print then we shouldn't print the symbol either... In which case the logic would be a bit more complicated.\n\n // We'll have to process the substring and see if there's actually anything to print. OK.\n\n // However this we can only determine at runtime...\n //\t\t\t\tint tempSynListCount = synListCount;\n //\t\t\t\twhile (!synList[tempSynListCount].equals(\")?\")) {\n //\t\t\t\t\ttempSynListCount++;\n //\t\t\t\t}\n //\t\t\t\t// These are the symbols within ( )?\n //\t\t\t\tString[] optionalSynList = Arrays.copyOfRange(synList, synListCount+1, tempSynListCount-1);\n //\t\t\t\t// However how do we detect whether there's anything in them?... This is quite hard actually.\n //\t\t\t\t// Iterate through all those symbols, if they're not String, then see whether they're empty?\n //\t\t\t\tint tempParamCount = paramCount;\n //\t\t\t\tfor (String sym : optionalSynList) {\n //\t\t\t\t\tif (sym.startsWith(\"'\") && sym.endsWith(\"'\")) {\n //\t\t\t\t\t\tcontinue;\n //\t\t\t\t\t} else if (isToken(sym)) {\n //\t\t\t\t\t\ttempParamCount++;\n //\t\t\t\t\t\tcontinue;\n //\t\t\t\t\t} else if (isNonTerminal(sym)) {\n //\t\t\t\t\t\tString tempParamName = \"param\" + tempParamCount;\n ////\t\t\t\t\t\tres += TAB3 + \"if (!(\" + tempParamName + \" == null || \" + tempParamName + \".\"\n //\t\t\t\t\t\t// If we see that there is nothing to print, then we should just jump over this list. However the problem is that how should we perform the detection and jump at runtime?\n //\t\t\t\t\t\tres += TAB3 + \"if ((\" + tempParamName + \" == null)) {\\n\";\n //\t\t\t\t\t\tres += TAB4 + \"\";\n //\t\t\t\t\t\tif (!(tempParamName == null || (Utils.arrayContains(lListTypeArgs, params.get(tempParamCount))) && tempParam))\n //\t\t\t\t\t}\n //\n //\t\t\t\t}\n } else if (s.equals(\")?\") || s.equals(\")\")) {\n // Do nothing\n // I'm not sure if \")\" is something valid. Let's do it now anyways.\n } else if (s.equals(\"?\")) {\n // This indicates the previous thing is optional... I think we shouldn't deal with it at all then.\n }\n else if (isNonTerminal(s)) { // NonTerminals start with lowercase\n // I think it should just correspond with the current parameter.\n // Could it be the parameter with the same id as the current\n // syn? No I don't think that's necessarily related.\n // params.get(paramCount);\n\n // In this case it's just one single printer argument,\n // not a\n // list.\n res += TAB3 + \"if (!(\" + paramName + \" == null)) {\\n\";\n res += TAB4 + paramName + \".printLocal(pp);\\n\";\n res += TAB3 + \"}\\n\";\n paramCount++;\n } else if (isRegular(s)) { // \"regular\" means nonTerminal+/?\n // String n = getRegularSymbol(s);\n // if (n.equals(\"+\")) {\n //\n // } else { // else it's ?\n //\n // }\n // However I don't think being + or ? makes any difference here.\n // For the argument part it will just always be a List argument\n // of length either 1 or 0. Let's see if this assumption is\n // correct.\n // res += TAB3 + \"// The type is \" +\n // params.get(paramCount).asType().toString() + \"\\n\";\n res += TAB3 + \"System.out.println(\\\"In method + \" + e.getSimpleName() + \"\\\");\\n\";\n res += TAB3 + \"if (!(\" + paramName + \" == null)) {\\n\";\n res += TAB4 + \"System.out.println(\\\"The current param \" + paramName + \" has length: \\\" + \" + paramName + \".size());\\n\";\n res += TAB3 + \"}\\n\";\n res += TAB3 + \"else {\\n\";\n res += TAB4 + \"System.out.println(\\\"The current param \" + paramName + \" is null! \\\");\\n\";\n res += TAB3 + \"}\\n\";\n\n res += TAB3 + \"if (!(\" + paramName + \" == null) && !\" + paramName + \".isEmpty()) {\\n\";\n res += TAB4 + \"for (int count = 0; count < \" + paramName + \".size() - 1; count++) {\\n\";\n res += TAB5 + paramName + \".get(count).printLocal(pp);\\n\";\n res += TAB5 + \"pp.brk();\\n\";\n res += TAB4 + \"}\\n\";\n // Print the last element of the list without printing\n // extra breaks.\n res += TAB4 + paramName + \".get(\" + paramName + \".size() - 1).printLocal(pp);\\n\";\n res += TAB3 + \"}\\n\";\n paramCount++;\n } else if (ConventionsPP.isTokenRegular(s)) {\n res += TAB3 + \"System.out.println(\\\"In method + \" + e.getSimpleName() + \"\\\");\\n\";\n res += TAB3 + \"if (!(\" + paramName + \" == null)) {\\n\";\n res += TAB4 + \"System.out.println(\\\"The current param \" + paramName + \" has length: \\\" + \" + paramName + \".size());\\n\";\n res += TAB3 + \"}\\n\";\n res += TAB3 + \"else {\\n\";\n res += TAB4 + \"System.out.println(\\\"The current param \" + paramName + \" is null! \\\");\\n\";\n res += TAB3 + \"}\\n\";\n\n res += TAB3 + \"if (!(\" + paramName + \" == null) && !\" + paramName + \".isEmpty()) {\\n\";\n res += TAB4 + \"for (int count = 0; count < \" + paramName + \".size() - 1; count++) {\\n\";\n String temp = \"\\\"\\\" + \" + paramName + \".get(count);\\n\";\n res += TAB5 + \"pp.print(\" + temp + \");\\n\";\n res += TAB5 + \"pp.brk();\\n\";\n res += TAB4 + \"}\\n\";\n // Print the last element of the list without printing\n // extra breaks.\n res += TAB4 + paramName + \".get(\" + paramName + \".size() - 1).printLocal(pp);\\n\";\n String last = \"\\\"\\\" + \" + paramName + \".get(\" + paramName + \".size() - 1);\\n\";\n res += TAB4 + \"pp.print(\" + last + \");\\n\";\n res += TAB3 + \"}\\n\";\n paramCount++;\n }\n else if (isToken(s)) { // Token is something starting with upper\n // case. Supposedly they should all be\n // primitive types!\n // In this case it's a primitive type. We should just\n // directly print its literal representation.\n // The \\\"\\\" here is just a hack to force the param to be\n // displayed as String without having to call\n // `toString`...\n\n // In these types we will ask the user to\n // manually implement things. The code is in the method\n // \"genClassMethod\"\n\n // First we'll have to ensure there's actually some\n // param\n // out there. Otherwise this will be a mismatch. e.g.\n // newline\n if (!params.isEmpty()) {\n res += TAB3 + \"// Please write manual printing method for this piece of grammar if necessary.\\n\";\n String temp = \"\\\"\\\" + \" + paramName;\n res += TAB3 + \"pp.print(\" + temp + \");\\n\";\n paramCount++;\n } else {\n // Should remind the user to manually write\n // something\n // here.\n // Will try to add warning later.\n res += TAB3 + \"// Please write manual printing method for this piece of grammar.\\n\";\n }\n\n // We add a space unless the literal is the last one or\n // is\n // followed by )\n // However it seems there is another issue where even if\n // the previous argument is completely empty, we'd still\n // add a brk() here.\n } else if (isSepList(s)) {\n // generate seplist rules in 3 situations: token separator,\n // non-terminal separator and symbols\n String n = getSepListSymbol(s);\n // String label = labelFor(labelCounter, n);\n // String eltHead = label + \"=\" + n;\n // String eltTail = label + \"tail+=\" + n;\n String sep = getSepListToken(s);\n if (isToken(sep)) { // isToken means it's a terminal. Then it's\n // likely to be a list of strings.\n String nextParamName = \"p\" + (paramCount + 1);\n res += TAB3 + \"if (!(\" + nextParamName + \" == null) && !\" + paramName + \".isEmpty()) {\\n\";\n res += TAB4 + \"for (int count = 0; count < \" + nextParamName + \".size() - 1; count++) {\\n\";\n res += TAB5 + nextParamName + \".get(count).printLocal(pp);\\n\";\n res += TAB5 + \"pp.brk();\\n\";\n res += TAB5 + \"pp.print(\" + paramName + \".get(count));\\n\";\n res += TAB5 + \"pp.brk();\\n\";\n res += TAB4 + \"}\\n\";\n // Print the last element of the list without printing\n // extra breaks.\n res += TAB4 + nextParamName + \".get(\" + nextParamName + \".size() - 1).printLocal(pp);\\n\";\n res += TAB3 + \"}\\n\";\n paramCount += 2;\n } else if (isNonTerminal(sep)) {\n // In this case the normal pattern is that the current param\n // is the list of separators, while the next param is the\n // list of things being separated.\n String nextParamName = \"p\" + (paramCount + 1);\n res += TAB3 + \"if (!(\" + nextParamName + \" == null) && !\" + paramName + \".isEmpty()) {\\n\";\n res += TAB4 + \"for (int count = 0; count < \" + nextParamName + \".size() - 1; count++) {\\n\";\n res += TAB5 + nextParamName + \".get(count).printLocal(pp);\\n\";\n res += TAB5 + \"pp.brk();\\n\";\n res += TAB5 + paramName + \".get(count).printLocal(pp);\\n\";\n res += TAB5 + \"pp.brk();\\n\";\n res += TAB4 + \"}\\n\";\n // Print the last element of the list without printing\n // extra breaks.\n res += TAB4 + nextParamName + \".get(\" + nextParamName + \".size() - 1).printLocal(pp);\\n\";\n res += TAB3 + \"}\\n\";\n paramCount += 2;\n } else { // Else it's like to be just a symbol\n // In this case the argument itself is a list of\n // printers.\n // However actually this list can be just totally\n // empty.\n // For example (f), which just invokes the function\n // itself without any arguments. So we'll actually\n // have\n // to check this first otherwise there will be a\n // null\n // pointer exception.\n res += TAB3 + \"System.out.println(\\\"In method + \" + e.getSimpleName() + \"\\\");\\n\";\n res += TAB3 + \"if (!(\" + paramName + \" == null)) {\\n\";\n res += TAB4 + \"System.out.println(\\\"The current param \" + paramName + \" has length: \\\" + \" + paramName + \".size());\\n\";\n res += TAB3 + \"}\\n\";\n res += TAB3 + \"else {\\n\";\n res += TAB4 + \"System.out.println(\\\"The current param \" + paramName + \" is null! \\\");\\n\";\n res += TAB3 + \"}\\n\";\n\n res += TAB3 + \"if (!(\" + paramName + \" == null) && !\" + paramName + \".isEmpty()) {\\n\";\n res += TAB4 + \"for (int count = 0; count < \" + paramName + \".size() - 1; count++) {\\n\";\n res += TAB5 + paramName + \".get(count).printLocal(pp);\\n\";\n //\t\t\t\t\tif (isLiteral(sep) && sep.length() > 2 && sep.indexOf(\"'\") != sep.lastIndexOf(\"'\") && sep.indexOf(\"'\") != sep.length() - 1) {\n if (isLiteral(sep)) {\n String tempSep = sep.substring(sep.indexOf(\"'\") + 1, sep.lastIndexOf(\"'\"));\n res += TAB5 + \"pp.print(\\\"\" + tempSep + \"\\\");\\n\";\n res += TAB5 + \"pp.brk();\\n\";\n } else if (sep.isEmpty()) {\n // If no separator, should just give a new line?\n res += TAB5 + \"pp.nl();\\n\";\n } else {\n res += TAB5 + \"pp.print(\\\"\" + sep + \"\\\");\\n\";\n res += TAB5 + \"pp.brk();\\n\";\n }\n res += TAB4 + \"}\\n\";\n // Print the last element of the list without printing\n // extra breaks.\n res += TAB4 + paramName + \".get(\" + paramName + \".size() - 1).printLocal(pp);\\n\";\n res += TAB3 + \"}\\n\";\n paramCount++;\n }\n if (isZeroOrMoreSepList(s)) {\n // Do we need to do anything?\n res += TAB3 + \"// We found zeroOrMoreSepList, so?\\n\";\n }\n }\n\n else if (isLiteral(s)) { // Then it should really just be a keyword string, print it\n // as it is.\n String tempS = s.substring(s.indexOf(\"'\") + 1, s.lastIndexOf(\"'\"));\n res += TAB3 + \"pp.print(\" + \"\\\"\" + tempS + \"\\\");\\n\";\n } else {\n // Is this a bug? Is this supposed to happen at all?\n res += TAB3 + \"// We've likely encountered a bug here. What's the symbol? \" + s + \"\\n\";\n if (s.length() > 1) {\n s = s.substring(1, s.length() - 1);\n }\n res += TAB3 + \"pp.print(\" + \"\\\"\" + s + \"\\\");\\n\";\n\n }\n // If it's not the last element we should probably add a break\n // Actually now I'm not sure whether ) is a good indicator. Let's\n // see.\n //\t\t\tif (!(synListCount == synList.length - 1) && !(synList[synListCount + 1].contains(\")\") && !(s.contains(\"(\")))) {\n if (!(s.contains(\"(\") || synListCount > synList.length - 2 || synList[synListCount + 1].contains(\")\"))) {\n res += TAB3 + \"pp.brk();\\n\";\n }\n synListCount++;\n }\n res += TAB3 + \"pp.end();\\n\";\n res += TAB2 + \"};\\n\";\n res += TAB + \"}\\n\";\n\n /* print debugging info. */\n res += \"/* \\n\";\n res += \"params.size(): \" + params.size() + \"\\n\";\n res += \"Original syn: \" + syn + \"\\n\";\n res += \"Original synList: \" + Arrays.toString(synList) + \"\\n\";\n res += \"synList.length: \" + synList.length + \"\\n\";\n res += \"e.getParameters(): \" + e.getParameters() + \"\\n\";\n for (VariableElement param : params) {\n res += param.toString() + \": \" + param.asType() + \"\\n\";\n }\n res += \"typeArgs: \" + typeArgs + \"\\n\";\n res += \"lListTypeArgs: \";\n for (String t : lListTypeArgs) {\n res += t + \", \";\n }\n res += \"\\n\";\n res += e.getAnnotation(Syntax.class).value() + \"\\n\";\n res += \"\\n */ \\n\\n\";\n\n return res;\n }", "@Override\n\tpublic void handleArgument(ArrayList<String> argument) {\n\t\t\n\t}", "ArgMapRule createArgMapRule();", "public SeqArg(Argument a1, Argument a2){\n this.a1 = a1;\n this.a2 = a2;\n }", "public interface C0435b {\n void m2121a(Intent intent, List list, List list2);\n }", "@Test\r\n\tpublic void testListArg() {\r\n\t\tAssert.assertEquals(\"test[(`a,`b,`c)]\", new FunctionImpl.FunctionBuilderImpl(\"test\").param(SymbolValue.froms(\"a\", \"b\", \"c\")).build().toQ());\r\n\t}", "java.util.List<com.google.protobuf.ByteString> getArgumentsList();", "public interface iLL11Ll1 {\n C6860liLi OooO00o(C6773llLi v) throws IOException;\n}", "@Override\r\n\tpublic ObjectInspector initialize(ObjectInspector[] arguments) throws UDFArgumentException {\r\n\t\t// TODO Auto-generated method stub\r\n\t\t\r\n\t\tint length = arguments.length;\r\n\t\t\r\n\t\tif(length < 2)\r\n\t\t{\r\n\t\t\t throw new UDFArgumentLengthException(\"functions arguments must be at least two\");\r\n\t\t}\r\n\t\t\r\n\t\r\n\t\tfor (ObjectInspector objectInspector : arguments) {\r\n\t\t\t\r\n\t\t\tif(objectInspector.getCategory() != ObjectInspector.Category.PRIMITIVE)\r\n\t\t\t{\r\n\t\t\t\tthrow new UDFArgumentLengthException(\"functions arguments must be primitive, found : \" +objectInspector.getCategory());\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t//Check if all the data are strings\r\n\t\tfor (ObjectInspector objectInspector : arguments) {\r\n\t\t\t\r\n\t\t\tif(!(objectInspector instanceof StringObjectInspector))\r\n\t\t\t{\r\n\t\t\t\tthrow new UDFArgumentException(\"functions arguments must be string, found : \" +objectInspector.getTypeName());\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\r\n\t\t//The return value must be a string\r\n\t\toi = PrimitiveObjectInspectorFactory.javaStringObjectInspector;\r\n\t \r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\treturn oi;\r\n\t}", "public java.util.List<java.lang.String>\n getArgsList() {\n return args_;\n }", "public InstrAdd(List<InstructionArgument> arguments) {\n\t\tif (arguments.size() != ARGC) {\n\t\t\tthrow new IllegalArgumentException(\"Expected 3 arguments!\");\n\t\t}\n\t\tfor (int i = 0; i < ARGC; i++) {\n\t\t\tif (!arguments.get(i).isRegister() || RegisterUtil\n\t\t\t\t\t.isIndirect((Integer) arguments.get(i).getValue())) {\n\t\t\t\tthrow new IllegalArgumentException(\n\t\t\t\t\t\t\"Type mismatch for argument \" + i + \"!\");\n\t\t\t}\n\t\t}\n\t\tthis.indexRegister1 = RegisterUtil\n\t\t\t\t.getRegisterIndex((Integer) arguments.get(0).getValue());\n\t\tthis.indexRegister2 = RegisterUtil\n\t\t\t\t.getRegisterIndex((Integer) arguments.get(1).getValue());\n\t\tthis.indexRegister3 = RegisterUtil\n\t\t\t\t.getRegisterIndex((Integer) arguments.get(2).getValue());\n\t}", "@Override\n public int getNumberArguments() {\n return 1;\n }", "public ArgumentList getArgumentList()\n\t{\n\t\treturn argumentList;\n\t}", "public OImaging(final String[] args) {\n super(args);\n }" ]
[ "0.6343275", "0.59175324", "0.5827993", "0.58095396", "0.58095396", "0.57263994", "0.5703816", "0.5657584", "0.56129277", "0.5602904", "0.5597225", "0.55903566", "0.55896145", "0.55379343", "0.5531941", "0.5509359", "0.5484994", "0.54655725", "0.5458392", "0.54496145", "0.5434928", "0.54347795", "0.543257", "0.5425929", "0.54088926", "0.54088056", "0.5400343", "0.537794", "0.537794", "0.5367681", "0.53658056", "0.536114", "0.533415", "0.5331131", "0.5324542", "0.5294665", "0.52864283", "0.5260575", "0.5259046", "0.52589166", "0.5257185", "0.5237373", "0.52369374", "0.52223724", "0.5210315", "0.52088803", "0.5187969", "0.5151432", "0.51500887", "0.51412195", "0.51375693", "0.51322365", "0.51314014", "0.5112552", "0.51103437", "0.51076615", "0.5076372", "0.50709635", "0.5063217", "0.50632167", "0.505487", "0.5031912", "0.5031208", "0.50244105", "0.4997123", "0.49946356", "0.49907324", "0.49751306", "0.497482", "0.49451375", "0.49369672", "0.49351454", "0.49273497", "0.4925249", "0.49206188", "0.49160773", "0.490431", "0.49026895", "0.49021024", "0.48999137", "0.48981947", "0.489287", "0.48826525", "0.48731154", "0.4870618", "0.48675033", "0.48666182", "0.4865562", "0.48651952", "0.48635104", "0.4853475", "0.48532104", "0.4852279", "0.48499408", "0.48469412", "0.48465618", "0.48448747", "0.48415518", "0.48316866", "0.48285002" ]
0.62094444
1
nodeChoice > ( | "(" Expression() ( "," Expression() ) ")" )
@Override public R visit(ArgList n, A argu) { R _ret = null; n.nodeChoice.accept(this, argu); return _ret; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public TreeNode parse() {\n TreeNode first = ArithmeticSubexpression.getAdditive(environment).parse();\n if (first == null) return null;\n\n // Try to parse something starting with an operator.\n List<Wrapper> wrappers = RightSideSubexpression.createKleene(\n environment, ArithmeticSubexpression.getAdditive(environment),\n BemTeVicTokenType.EQUAL, BemTeVicTokenType.DIFFERENT,\n BemTeVicTokenType.GREATER_OR_EQUALS, BemTeVicTokenType.GREATER_THAN,\n BemTeVicTokenType.LESS_OR_EQUALS, BemTeVicTokenType.LESS_THAN\n ).parse();\n\n // If did not found anything starting with an operator, return the first node.\n if (wrappers.isEmpty()) return first;\n\n // Constructs a binary operator node containing the expression.\n Iterator<Wrapper> it = wrappers.iterator();\n Wrapper secondWrapper = it.next();\n BinaryOperatorNode second = new BinaryOperatorNode(secondWrapper.getTokenType(), first, secondWrapper.getOutput());\n\n if (wrappers.size() == 1) return second;\n\n // If we reach this far, the expression has more than one operator. i.e. (x = y = z),\n // which is a shortcut for (x = y AND y = z).\n\n // Firstly, determine if the operators are compatible.\n RelationalOperatorSide side = RelationalOperatorSide.NONE;\n for (Wrapper w : wrappers) {\n side = side.next(w.getTokenType());\n }\n if (side.isMixed()) {\n environment.emitError(\"XXX\");\n }\n\n // Creates the other nodes. In the expression (a = b = c = d), The \"a = b\"\n // is in the \"second\" node. Creates \"b = c\", and \"c = d\" nodes.\n List<BinaryOperatorNode> nodes = new LinkedList<BinaryOperatorNode>();\n nodes.add(second);\n\n TreeNode prev = secondWrapper.getOutput();\n while (it.hasNext()) {\n Wrapper w = it.next();\n BinaryOperatorNode current = new BinaryOperatorNode(w.getTokenType(), prev, w.getOutput());\n prev = w.getOutput();\n nodes.add(current);\n }\n\n // Combines all of the nodes in a single one using AND.\n return new VariableArityOperatorNode(BemTeVicTokenType.AND, nodes);\n }", "@Override\n\tpublic void visit(Parenthesis arg0) {\n\t\t\n\t}", "@Override\n\tpublic void visit(Parenthesis arg0) {\n\n\t}", "@Override\n public R visit(PrimaryExpression n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "public static void parse()\r\n {\r\n int initial;\r\n initial=expression();\r\n stateList.get(0).setNext1(initial);\r\n stateList.get(0).setNext2(initial);\r\n if(index<=expression.length()-1)\r\n {\r\n error();\r\n }\r\n else\r\n {\r\n state st=new state(state,\"END\",-1,-1);\r\n stateList.add(st);\r\n }\r\n }", "@Override\n public R visit(SparqlString n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "@Override\n\tpublic void visit(OrExpression arg0) {\n\t\t\n\t}", "protected Evaluable parseExpression() throws ParsingException {\n Evaluable sub = parseSubExpression();\n\n while (_token != null &&\n _token.type == TokenType.Operator &&\n \">=<==!=\".indexOf(_token.text) >= 0) {\n\n String op = _token.text;\n\n next(true);\n\n Evaluable sub2 = parseSubExpression();\n\n sub = new OperatorCallExpr(new Evaluable[] { sub, sub2 }, op);\n }\n\n return sub;\n }", "@Override\n public R visit(UnaryExpression n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "ParenthesisExpr createParenthesisExpr();", "Expr expr();", "@Override\n\tpublic void visit(OrExpression arg0) {\n\n\t}", "public Node expression()\r\n\t{\r\n\t\tNode lhs = term();\r\n\t\tif(lhs!=null)\r\n\t\t{\r\n\t\t\tint index = lexer.getPosition();\r\n\t\t\tLexer.Token token = lexer.getToken();\r\n\t\t\twhile(token == Lexer.Token.PLUS\r\n\t\t\t\t||token == Lexer.Token.MINUS)\r\n\t\t\t{\r\n\t\t\t\tNode rhs = term(); \r\n\t\t\t\tif(rhs!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tif(token == Lexer.Token.PLUS)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tlhs = new Add(lhs,rhs);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(token == Lexer.Token.MINUS)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tlhs = new Sub(lhs,rhs);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tindex = lexer.getPosition();\r\n\t\t\t\t\ttoken = lexer.getToken();\r\n\t\t\t\t}\r\n\t\t\t\telse break;\r\n\t\t\t}\r\n\t\t\tlexer.setPosition(index);\r\n\t\t}\r\n\t\treturn lhs;\r\n\t}", "@Override\n\tpublic Object visit(ASTParen node, Object data) {\n\t\tSystem.out.print(\"(\");\n\t\tnode.childrenAccept(this, data);\n\t\tSystem.out.print(\")\");\n\t\treturn null;\n\t}", "@Override\n public R visit(GraphTerm n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "@Override\n public NodeType ExecuteOperation()\n {\n //if the first child is an operator\n if(this.childNodes[0].isOperator==true)\n {\n BasicOperator basicOperator=(BasicOperator)this.childNodes[0]; \n if(basicOperator.operands==1)\n {\n UnaryOperator unaryOperator=(UnaryOperator)childNodes[0];\n return unaryOperator.PerformOperation(childNodes[1]);\n }\n else if(basicOperator.operands==2)\n {\n BinaryOperator binaryOperator=(BinaryOperator)childNodes[0];\n return binaryOperator.PerformOperation(childNodes[1], childNodes[2]);\n }\n else if(basicOperator.operands==3)\n {\n TernaryOperator ternaryOperator=(TernaryOperator)childNodes[0];\n return ternaryOperator.PerformOperation(childNodes[1], childNodes[2], childNodes[3]);\n }\n }\n //if not an operator\n else\n {\n return this.childNodes[0].ExecuteOperation();\n }\n return null;\n }", "@Test(timeout = 4000)\n public void test001() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"hN!SM~8ux(wB\");\n xPathLexer0.dollar();\n xPathLexer0.not();\n xPathLexer0.nextToken();\n xPathLexer0.leftParen();\n xPathLexer0.whitespace();\n xPathLexer0.plus();\n Token token0 = xPathLexer0.or();\n assertNull(token0);\n }", "@Override\n\tpublic Object visit(ASTXQueryComma node, Object data) {\n\t\tnode.jjtGetChild(0).jjtAccept(this, data);\n\t\tSystem.out.println(\",\");\n\t\tnode.jjtGetChild(1).jjtAccept(this, data);\n\t\treturn null;\n\t}", "Expression expression() throws SyntaxException {\r\n\t\tToken first = t;\r\n\t\tExpression e0 = orExpression();\r\n\t\tif (isKind(OP_QUESTION)) {\r\n\t\t\tconsume();\r\n\t\t\tExpression e1 = expression();\r\n\t\t\tmatch(OP_COLON);\r\n\t\t\tExpression e2 = expression();\r\n\t\t\te0 = new ExpressionConditional(first, e0, e1, e2);\r\n\t\t}\r\n\t\treturn e0;\r\n\t}", "@Override\n\tpublic Object visit(ASTCondOr node, Object data) {\n\t\tnode.jjtGetChild(0).jjtAccept(this, data);\n\t\tSystem.out.print(\" or \");\n\t\tnode.jjtGetChild(1).jjtAccept(this, data);\n\t\treturn null;\n\t}", "public R visit(Operator n) {\n R _ret=null;\n int which = n.f0.which;\n String s = \" \";\n switch (which)\n {\n case 0 : {s=\"LT\"; break;}\n case 1 : {s= \"PLUS\"; break;}\n case 2 : {s= \"MINUS\";break;}\n case 3 : {s= \"TIMES\"; break;}\n }\n \t return (R)s;\n }", "@Override\n\tpublic Object visit(ASTParen node, Object data)\n\t{\n\t\treturn singleChildValid(node, data);\n\t}", "@Test(timeout = 4000)\n public void test075() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\") (\");\n Token token0 = xPathLexer0.equals();\n xPathLexer0.setPreviousToken(token0);\n assertEquals(21, token0.getTokenType());\n assertEquals(\")\", token0.getTokenText());\n \n Token token1 = xPathLexer0.identifierOrOperatorName();\n assertEquals(15, token1.getTokenType());\n assertEquals(\"\", token1.getTokenText());\n }", "@Override\n public R visit(TriplesNode n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "private Object parseExpr() throws IOException, FSException{\n\n ETreeNode curNode=null;\n boolean end=false;\n Object val;\n boolean negate=false; //flag for unary minus\n boolean not=false;//flag for unary not.\n boolean prevOp=true;//flag - true if previous value was an operator\n\n while (!end){\n\n switch (tok.ttype) {\n\n\n //the various possible 'values'\n case LexAnn.TT_INTEGER:\n case LexAnn.TT_DOUBLE:\n case LexAnn.TT_STRING:\n case LexAnn.TT_WORD:\n case LexAnn.TT_FUNC:\n case LexAnn.TT_NULL:\n case LexAnn.TT_ARRAY:{\n\n if (!prevOp){\n parseError(\"Expected Operator\");\n } else {\n\n val=null;\n ETreeNode node=new ETreeNode();\n node.type=ETreeNode.E_VAL;\n\n switch (tok.ttype){\n //numbers - just get them\n case LexAnn.TT_INTEGER:{\n val=tok.value;\n break;\n }\n case LexAnn.TT_DOUBLE:{\n val=tok.value;\n break;\n }\n //functions - evaluate them\n case LexAnn.TT_FUNC:{\n String name=(String)tok.value;\n getNextToken();\n val=parseCallFunc(name);\n break;\n }\n //arrays - evaluate them\n case LexAnn.TT_ARRAY:{\n String name=(String)tok.value;\n getNextToken(); //should be a '['\n getNextToken(); //should be the index\n Object index=parseExpr();\n try {\n val=host.getVarEntry(name,index);\n } catch (Exception e) {\n parseError(e.getMessage());\n }\n break;\n }\n //variables - resolve them\n case LexAnn.TT_WORD:{\n if (hasVar((String)tok.value)) {\n val=getVar((String)tok.value);\n } else {\n try {\n val=host.getVarEntry((String)tok.value,null);\n } catch (Exception e) {\n parseError(e.getMessage());\n }\n }\n break;\n }\n //strings - just get again\n case LexAnn.TT_STRING:{\n val=tok.value;\n break;\n }\n //null\n case LexAnn.TT_NULL:{\n val=new FSObject(null);\n break;\n }\n }\n\n //unary not\n if (not){\n if (val instanceof Integer){\n if (((Integer)val).intValue()==0){\n val=FS_TRUE;\n } else {\n val=FS_FALSE;\n }\n not=false;\n } else if (val instanceof FSObject && ((FSObject)val).getObject() instanceof Boolean) {\n if (((FSObject)val).getObject().equals(Boolean.FALSE)) {\n val=FS_TRUE;\n } else {\n val=FS_FALSE;\n }\n } else if (val instanceof FSObject && ((FSObject)val).getObject() instanceof Integer) {\n if (((Integer)((FSObject)val).getObject()).intValue()==0) {\n val=FS_TRUE;\n } else {\n val=FS_FALSE;\n }\n } else {\n String msg=val.getClass().getName();\n if (val instanceof FSObject) msg=\"FSObject with \"+((FSObject)val).getNullClass().getName();\n parseError(\"Type mismatch for ! \"+msg);\n }\n }\n\n //unary minus\n if (negate) {\n if (val instanceof Integer){\n val=new Integer(-((Integer)val).intValue());\n } else if (val instanceof Double){\n val=new Double(-((Double)val).doubleValue());\n } else {\n parseError(\"Type mistmatch for unary -\");\n }\n }\n\n node.value=val;\n\n if (curNode!=null){\n if (curNode.left==null){\n curNode.left=node;\n node.parent=curNode;\n curNode=node;\n\n } else if (curNode.right==null){\n curNode.right=node;\n node.parent=curNode;\n curNode=node;\n\n }\n } else {\n curNode=node;\n }\n\n prevOp=false;\n }\n break;\n }\n /*operators - have to be more carefull with these.\n We build an expression tree - inserting the nodes at the right\n points to get a reasonable approximation to correct operator\n precidence*/\n case LexAnn.TT_LEQ:\n case LexAnn.TT_LNEQ:\n case LexAnn.TT_MULT:\n case LexAnn.TT_DIV:\n case LexAnn.TT_MOD:\n case LexAnn.TT_PLUS:\n case LexAnn.TT_MINUS:\n case LexAnn.TT_LGR:\n case LexAnn.TT_LGRE:\n case LexAnn.TT_LLSE:\n case LexAnn.TT_LLS:\n case LexAnn.TT_NOT:\n case LexAnn.TT_LAND:\n case LexAnn.TT_LOR: {\n if (prevOp){\n if (tok.ttype==LexAnn.TT_MINUS){\n negate=true;\n } else if (tok.ttype==LexAnn.TT_NOT){\n not=true;\n } else {\n parseError(\"Expected Expression\");\n }\n } else {\n\n ETreeNode node=new ETreeNode();\n\n node.type=ETreeNode.E_OP;\n node.value=new Integer(tok.ttype);\n\n if (curNode.parent!=null){\n\n int curPrio=getPrio(tok.ttype);\n int parPrio=\n getPrio(((Integer)curNode.parent.value).intValue());\n\n if (curPrio<=parPrio){\n //this nodes parent is the current nodes grandparent\n node.parent=curNode.parent.parent;\n //our nodes left leg is now linked into the current nodes\n //parent\n node.left=curNode.parent;\n //hook into grandparent\n if (curNode.parent.parent!=null){\n curNode.parent.parent.right=node;\n }\n\n //the current nodes parent is now us (because of above)\n curNode.parent=node;\n //set the current node.\n curNode=node;\n } else {\n //current node's parent's right is now us.\n curNode.parent.right=node;\n //our nodes left is the current node.\n node.left=curNode;\n //our nodes parent is the current node's parent.\n node.parent=curNode.parent;\n //curent nodes parent is now us.\n curNode.parent=node;\n //set the current node.\n curNode=node;\n }\n } else {\n //our node's left is the current node\n node.left=curNode;\n //current node's parent is us now\n //we don't have to set our parent, as it is null.\n curNode.parent=node;\n //set current node\n curNode=node;\n }\n prevOp=true;\n }\n break;\n }\n case '(':\n //start of an bracketed expression, recursively call ourself\n //to get a value\n {\n getNextToken();\n val=parseExpr();\n\n if (negate) {\n if (val instanceof Integer){\n val=new Integer(-((Integer)val).intValue());\n } else if (val instanceof Double){\n val=new Double(-((Double)val).doubleValue());\n } else {\n parseError(\"Type mistmatch for unary -\");\n }\n }\n\n ETreeNode node=new ETreeNode();\n node.value=val;\n node.type=ETreeNode.E_VAL;\n\n if (curNode!=null){\n if (curNode.left==null){\n curNode.left=node;\n node.parent=curNode;\n curNode=node;\n\n } else if (curNode.right==null){\n curNode.right=node;\n node.parent=curNode;\n curNode=node;\n\n }\n } else {\n curNode=node;\n }\n prevOp=false;\n break;\n }\n\n default: {\n end=true;\n }\n\n }\n if (!end){\n tok.nextToken();\n }\n }\n\n //find the top of the tree we just built.\n if (curNode==null) parseError(\"Missing Expression\");\n while(curNode.parent!=null){\n curNode=curNode.parent;\n }\n\n\n return evalETree(curNode);\n\n }", "private void parseOr(Node node) {\r\n if (switchTest) return;\r\n int saveIn = in;\r\n parse(node.left());\r\n if (ok || in > saveIn) return;\r\n parse(node.right());\r\n }", "@Override\n\tpublic Object visit(ASTRelComma node, Object data) {\n\t\tnode.jjtGetChild(0).jjtAccept(this, data);\n\t\tSystem.out.print(\", \");\n\t\tnode.jjtGetChild(1).jjtAccept(this, data);\n\t\treturn null;\n\t}", "TupleExpr createTupleExpr();", "@Override\n\tpublic Object visit(ASTFilterParen node, Object data) {\n\t\tSystem.out.print(\"(\");\n\t\tnode.childrenAccept(this, data);\n\t\tSystem.out.print(\")\");\n\t\treturn null;\n\t}", "public static int expression()\r\n {\r\n //get the start state of this term\r\n int r,t1,f1;\r\n t1=r=term();\r\n\r\n //if there is no more input, we are done\r\n if(index>expression.length()-1)\r\n {\r\n return r;\r\n }\r\n\r\n //if this is concatenation\r\n if(expression.charAt(index)=='.'||isVocab(expression.charAt(index))||expression.charAt(index)=='\\\\'\r\n ||expression.charAt(index)=='['||expression.charAt(index)=='(')\r\n {\r\n //get the start state of this expression and\r\n //update next1 and next2\r\n int t2,cur;\r\n cur=state-1;\r\n t2=expression();\r\n if(stateList.get(cur).getNext1()==stateList.get(cur).getNext2())\r\n {\r\n stateList.get(cur).setNext1(t2);\r\n }\r\n stateList.get(cur).setNext2(t2);\r\n\r\n }\r\n\r\n //if there is no more input, we are done\r\n if(index>=expression.length())\r\n {\r\n return r;\r\n }\r\n\r\n //if this is alternation\r\n if(expression.charAt(index)=='|')\r\n {\r\n //if there is nothing after '|', it is a invalid expression\r\n index++;\r\n if(index>expression.length()-1)\r\n {\r\n error();\r\n }\r\n else\r\n {\r\n //create a branch state,set the nex1 of the branch state to the term\r\n //so a|b and a|b|c both work\r\n int t2;\r\n f1=state-1;\r\n\r\n state st=new state(state,\"BR\",t1,-1);\r\n stateList.add(st);\r\n r=state;\r\n state++;\r\n\r\n //get the start state of this expression\r\n t2=expression();\r\n\r\n //update the branch state's next2 to the start state of the expression\r\n stateList.get(f1+1).setNext2(t2);\r\n\r\n //update term's next1 and next2\r\n if(stateList.get(f1).getNext1()==stateList.get(f1).getNext2())\r\n {\r\n stateList.get(f1).setNext1(state);\r\n }\r\n stateList.get(f1).setNext2(state);\r\n\r\n }\r\n\r\n }\r\n\r\n\r\n return r;\r\n }", "OrExpr createOrExpr();", "@Override\n public R visit(GraphNode n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "private CalculatableNode nextNode() throws IOException {\n\t\tint ttype;\n\t\tttype = tokenizer.nextToken();\n\t\tif (ttype == StreamTokenizer.TT_NUMBER) {\n\t\t\treturn new NumericalNode((int) tokenizer.nval);\n\t\t}\n\t\tif (ttype >= 0) {\n\t\t\t// sign character such as +-*/()\n\t\t\tchar sign = (char) tokenizer.ttype;\n\t\t\tif (sign == '(') {\n\t\t\t\tCalculatableNode node = parseNode();\n\t\t\t\treturn node;\n\t\t\t}\n\t\t}\n\t\tthrow new IllegalFormulaException(\"数式が不正です\");\n\t}", "public UnaryExpNode() {\n }", "Expr expr() throws IOException {\n\t\tExpr e = term();\n\t\twhile (look.tag == '+' || look.tag == '-') {\n\t\t\tToken tok = look;\n\t\t\tmove();\n\t\t\te = new Arith(tok, e, term());\n\t\t}\n\t\treturn e;\n\t}", "Expression orExpression() throws SyntaxException {\r\n\t\tToken first = t;\r\n\t\tExpression e0 = andExpression();\r\n\t\twhile(isKind(OP_OR)) {\r\n\t\t\tToken op = consume();\r\n\t\t\tExpression e1 = andExpression();\r\n\t\t\te0 = new ExpressionBinary(first, e0, op, e1);\r\n\t\t}\r\n\t\treturn e0;\r\n\t}", "public static Expr parse(String str) {\r\n\t\tExprBinary at = new ExprBinary(null, null); // the root of the tree\r\n\t\tStringBuilder opstore = new StringBuilder(); // stores operator characters\r\n\t\tStringBuilder adder = new StringBuilder(); // stores value characters\r\n\t\tboolean text = false; // whether inside of a string\r\n\r\n\t\tfor (int i = 0; i < str.length(); i++) {\r\n\t\t\tchar c = str.charAt(i);\r\n\t\t\tboolean add = (c != '\\\\'); // whether to add the char to adder. ignore escape char\r\n\t\t\tboolean leftSide = (opstore.length() == 0); // whether on the left side of the binary expression (before the operator)\r\n\t\t\tString adderStr = adder.toString();\r\n\t\t\tString opStr = opstore.toString();\r\n\r\n\t\t\tif (c == '\"') { // string\r\n\t\t\t\tif (i == 0 || str.charAt(i - 1) != '\\\\') {\r\n\t\t\t\t\ttext = !text; // ignore string contents\r\n\t\t\t\t}\r\n\t\t\t} else if (!text) {\r\n\t\t\t\tif (c == ' ') {\r\n\t\t\t\t\tadd = false; // ignore spaces\r\n\t\t\t\t} else if (c == '(') { // grouping or function\r\n\t\t\t\t\tint closeIndex = getExitIndex(str, i);\r\n\t\t\t\t\tString contents = str.substring(i + 1, closeIndex);\r\n\t\t\t\t\tExpr group; // the expression denoted by the parentheses group\r\n\r\n\t\t\t\t\tif (i > 0 && (!isReserved(str.charAt(i - 1)) || str.charAt(i - 1) == ')')) { // function\r\n\t\t\t\t\t\tif (adderStr.isEmpty()) { // function reference call ... func()()\r\n\t\t\t\t\t\t\tExpr leftLink = leftSide ? at.left() : at.right();\r\n\t\t\t\t\t\t\tExprCall rightLink = new ExprCall(null, contents); // a reference call is only a parameter group, null name\r\n\t\t\t\t\t\t\tgroup = new ExprCallChain(leftLink, rightLink);\r\n\r\n\t\t\t\t\t\t} else { // function call\r\n\t\t\t\t\t\t\tif (adderStr.startsWith(\".\")) { // function sub call ... func().subfunc()\r\n\t\t\t\t\t\t\t\tExpr leftLink = leftSide ? at.left() : at.right();\r\n\t\t\t\t\t\t\t\tExprCall rightLink = new ExprCall(adderStr.substring(1), contents);\r\n\t\t\t\t\t\t\t\tgroup = new ExprCallChain(leftLink, rightLink);\r\n\r\n\t\t\t\t\t\t\t} else { // standalone function ... func()\r\n\t\t\t\t\t\t\t\tif (Character.toString(adderStr.charAt(0)).equals(Operator.REF.op)) { // @func()\r\n\t\t\t\t\t\t\t\t\tgroup = new ExprFuncRef(adderStr.substring(1), contents);\r\n\t\t\t\t\t\t\t\t} else { // func()\r\n\t\t\t\t\t\t\t\t\tgroup = new ExprCall(adderStr, contents);\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} else { // parenthetical grouping\r\n\t\t\t\t\t\tchar cc = (adderStr.length() == 1 ? adderStr.charAt(0) : 0); // operator before parenthesis ... !()\r\n\t\t\t\t\t\tif (isReserved(cc)) { // operation on the group\r\n\t\t\t\t\t\t\tgroup = new ExprUnary(Operator.get(Character.toString(cc)), parse(contents));\r\n\t\t\t\t\t\t} else { // ignore character, not an operator\r\n\t\t\t\t\t\t\tgroup = parse(contents);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\t// add to tree\r\n\t\t\t\t\tif (leftSide) at.setLeft(group);\r\n\t\t\t\t\telse at.setRight(group);\r\n\r\n\t\t\t\t\tadder.setLength(0);\r\n\t\t\t\t\ti = closeIndex;\r\n\t\t\t\t\tadd = false;\r\n\r\n\t\t\t\t} else if (c == '{') { // array initializer ... {}\r\n\t\t\t\t\tint closeIndex = getExitIndex(str, i);\r\n\t\t\t\t\tExpr arr = new ExprArray(str.substring(i + 1, closeIndex), adderStr);\r\n\r\n\t\t\t\t\tif (adderStr.length() == 1 && isReserved(adderStr.charAt(0))) {\r\n\t\t\t\t\t\t// unary op done on array initializer ... !{}\r\n\t\t\t\t\t\tarr = new ExprUnary(Operator.get(Character.toString(adderStr.charAt(0))), arr);\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tif (leftSide) at.setLeft(arr);\r\n\t\t\t\t\telse at.setRight(arr);\r\n\r\n\t\t\t\t\tadder.setLength(0);\r\n\t\t\t\t\ti = closeIndex;\r\n\t\t\t\t\tadd = false;\r\n\r\n\t\t\t\t} else if (isOp(c)) { // operator\r\n\t\t\t\t\t// add value used in operation to tree\r\n\t\t\t\t\tif (!adderStr.isEmpty()) {\r\n\t\t\t\t\t\tif (leftSide) { // ex: adderStr + ___\r\n\t\t\t\t\t\t\tat.setLeft(parseValue(adderStr));\r\n\t\t\t\t\t\t} else { // ex: (___ + adderStr) + ___\r\n\t\t\t\t\t\t\tat.setRight(parseValue(adderStr));\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tif (opStr.equals(\"\") || (i > 0 && isOp(str.charAt(i - 1)))) { // accumulate operator from adjacent operator characters (ex: != consists of ! and =)\r\n\t\t\t\t\t\tif (!(adderStr.isEmpty() && (opStr + c).equals(\"-\")) && (Operator.get(opStr + c) != null || (opStr.isEmpty() && isOp(c)))) {// if the operator exists, then it is an operator character\r\n\t\t\t\t\t\t\tif (opStr.equals(\"-\") && c == '-') { // this and the above line handle negatives and double negatives\r\n\t\t\t\t\t\t\t\topStr = \"+\";\r\n\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\topStr += c;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tadd = false;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t} else { // existing operator operation must be added to tree ... in \"(a + b) * c\", \"(a+b)\" must be abstracted-out so we get \"x * c\"\r\n\t\t\t\t\t\tint endIndex = i + 1; // end index of operator\r\n\r\n\t\t\t\t\t\t// get entire operator if operator is more than 1 character long\r\n\t\t\t\t\t\tfor (int i2 = endIndex; i2 < str.length(); i2++) {\r\n\t\t\t\t\t\t\tif (isOp(str.charAt(i2))) endIndex++;\r\n\t\t\t\t\t\t\telse break;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tOperator nextOp = Operator.get(str.substring(i, endIndex)); // second (right-most) operator\r\n\t\t\t\t\t\tat.op = Operator.get(opStr); // first (left-most) operator\r\n\r\n\t\t\t\t\t\t// group values in operation by operator precedence\r\n\t\t\t\t\t\tint p1 = precedence(nextOp); // right-most op\r\n\t\t\t\t\t\tint p2 = precedence(at.op); // left-most op\r\n\r\n\t\t\t\t\t\tif (p1 > p2) { // group around the right-most op\r\n\t\t\t\t\t\t\tExprBinary right = new ExprBinary(at, nextOp);\r\n\t\t\t\t\t\t\tright.setLeft(at.right());\r\n\r\n\t\t\t\t\t\t\tat.setRight(right);\r\n\t\t\t\t\t\t\tat = right;\r\n\r\n\t\t\t\t\t\t} else if (p1 < p2) { // group around the left-most op\r\n\t\t\t\t\t\t\tExprBinary last = at;\r\n\t\t\t\t\t\t\tExprBinary match = at.parent();\r\n\r\n\t\t\t\t\t\t\t// correctly add to the binary tree based on precedence of operators\r\n\t\t\t\t\t\t\twhile (match instanceof ExprBinary && p1 < (p2 = precedence(((ExprBinary) match).op))) {\r\n\t\t\t\t\t\t\t\tlast = match;\r\n\t\t\t\t\t\t\t\tmatch = match.parent();\r\n\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\tExprBinary tr = new ExprBinary(match, nextOp);\r\n\t\t\t\t\t\t\ttr.setLeft(last);\r\n\r\n\t\t\t\t\t\t\tif (match != null) {\r\n\t\t\t\t\t\t\t\tif (last == match.right()) match.setRight(tr);\r\n\t\t\t\t\t\t\t\telse match.setLeft(tr);\r\n\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\tat = tr;\r\n\r\n\t\t\t\t\t\t} else { // group from left to right (equal operator precedence)\r\n\t\t\t\t\t\t\tExprBinary left = new ExprBinary(at, at.op); // group existing values into left node, add right to open right node spot\r\n\t\t\t\t\t\t\tleft.setLeft(at.left());\r\n\t\t\t\t\t\t\tleft.setRight(at.right());\r\n\r\n\t\t\t\t\t\t\tat.op = nextOp;\r\n\t\t\t\t\t\t\tat.setLeft(left);\r\n\t\t\t\t\t\t\tat.setRight(null);\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\topStr = nextOp.op;\r\n\t\t\t\t\t\ti = endIndex - 1;\r\n\t\t\t\t\t\tadd = false;\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tadder.setLength(0);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\t// store valid value characters\r\n\t\t\tif (add) {\r\n\t\t\t\tadder.append(c);\r\n\r\n\t\t\t\t// if this is the last character, then add the stored value to the tree.\r\n\t\t\t\t// otherwise, would be incorrectly ignored because there is no next operator\r\n\t\t\t\tif (i + 1 == str.length()) {\r\n\t\t\t\t\tif (opstore.length() == 0) {\r\n\t\t\t\t\t\tat.setLeft(parseValue(adder.toString()));\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tat.setRight(parseValue(adder.toString()));\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t// initialize binary tree operator if not done so already\r\n\t\tif (at.op == null) {\r\n\t\t\tat.op = Operator.get(opstore.toString());\r\n\t\t}\r\n\r\n\t\t// after traversing the tree to some point, we need to get back to root so we can return the entire tree\r\n\t\twhile (at.parent() != null) {\r\n\t\t\tat = (ExprBinary) at.parent();\r\n\t\t}\r\n\r\n\t\t// the expression may not actually be a binary operation\r\n\t\tif (at.op == null && at.right() == NULL) {\r\n\t\t\tif (at.left() == NULL) return NULL; // the expression is empty\r\n\t\t\treturn at.left(); // the expression is a single value/unary-operation\r\n\t\t}\r\n\r\n\t\treturn at;\r\n\t}", "@Override\n\tpublic Object visit(ASTRelational node, Object data)\n\t{\n\t\treturn visitOperatorNode(node, data);\n\t}", "public interface Node {\n Oper oper();\n CNFOrdinal toCNF();\n}", "public ExpressionNodes(String data)\n\t {\n\t this.data = data;\n\t this.left = null;\n\t this.right = null;\n\t }", "private TreeNode exprTreeHelper(String expr) {\n if (expr.charAt(0) != '(') {\n \n \treturn new TreeNode(expr); // you fill this in\n } else{\n // expr is a parenthesized expression.\n // Strip off the beginning and ending parentheses,\n // find the main operator (an occurrence of + or * not nested\n // in parentheses, and construct the two subtrees.\n int nesting = 0;\n int opPos = 0;\n char myChar='\\0';\n \n for (int k = 1; k < expr.length() - 1; k++) {\n myChar = expr.charAt(k);\n \tif(myChar == '('){\n \tnesting++;\n }\n if(myChar==')'){\n \tnesting--;\n }\n if(nesting == 0){\n \tif(myChar == '+' || myChar == '*'){\n \t\topPos = k;\n \t break;\t\n \t}\n }\n }\n \n String opnd1 = expr.substring(1, opPos);\n String opnd2 = expr.substring(opPos + 1, expr.length() - 1);\n String op = expr.substring(opPos, opPos + 1);\n System.out.println(\"expression = \" + expr);\n System.out.println(\"operand 1 = \" + opnd1);\n System.out.println(\"operator = \" + op);\n System.out.println(\"operand 2 = \" + opnd2);\n System.out.println();\n return new TreeNode(op,exprTreeHelper(opnd1),exprTreeHelper(opnd2));\n \n }\n }", "@Override\npublic final void accept(TreeVisitor visitor) {\n visitor.visitWord(OpCodes.OR_NAME);\n if (ops != null) {\n for (int i = 0; i < ops.length; i++) {\n ops[i].accept(visitor);\n }\n } else {\n visitor.visitConstant(null, \"?\");\n }\n visitor.visitEnd();\n }", "@Override\n public R visit(VarOrTerm n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "ExpOperand createExpOperand();", "@Override\n\tpublic String visitCompexpr(CompexprContext ctx) {\n\t\t\n\t\tif(ctx.getChildCount()==3)\n\t\t{\n\t\t\t\n\t\t\t\n\t\t\tif(ctx.getChild(1).getText().equals(\"==\"))\n\t\t\t{\n\t\t\t\treturn \"EQL \"+visit(ctx.getChild(0)) +\" \"+visit(ctx.getChild(2));\n\t\t\t}\n\t\t\telse if(ctx.getChild(1).getText().equals(\">=\"))\n\t\t\t{\n\t\t\t\treturn \"GTE \"+visit(ctx.getChild(0)) +\" \"+visit(ctx.getChild(2));\n\t\t\t}\n\t\t\telse if(ctx.getChild(1).getText().equals(\"<=\"))\n\t\t\t{\n\t\t\t\treturn \"LTE \"+visit(ctx.getChild(0)) +\" \"+visit(ctx.getChild(2));\n\t\t\t}\n\t\t\telse if(ctx.getChild(1).getText().equals(\"<\"))\n\t\t\t{\n\t\t\t\treturn \"LT \"+visit(ctx.getChild(0)) +\" \"+visit(ctx.getChild(2));\n\t\t\t}\n\t\t\telse if(ctx.getChild(1).getText().equals(\">\"))\n\t\t\t{\n\t\t\t\treturn \"GT \"+visit(ctx.getChild(0)) +\" \"+visit(ctx.getChild(2));\n\t\t\t}\n\t\t\telse if(ctx.getChild(1).getText().equals(\"~=\"))\n\t\t\t{\n\t\t\t\treturn \"NE \"+visit(ctx.getChild(0)) +\" \"+visit(ctx.getChild(2));\n\t\t\t}\n\t\t}\n\t\telse if(ctx.getChildCount()==1)\n\t\t{\n\t\t\n\t\t\treturn ctx.getChild(0).getText();\n\t\t}\n\t\treturn \"\";\n\t\n\t\t\n\t\t\n\t\t\n\t}", "Expression() { }", "@Override\n public Expression asExpression(TokenValue<?> token, Deque<Value<Expression>> next) {\n Additive op = token.getValue(); // + | -\n // + is always followed by an argument\n Expression arg = next.pollFirst().getTarget(); // b argument\n Term<Additive> term = new Term<>(op, arg);\n return term;\n }", "private Object evalETree(ETreeNode node) throws FSException{\n Object lVal,rVal;\n\n if ( node == null )\n {\n parseError(\"Malformed expression\");\n // this is never reached, just for readability\n return null;\n }\n\n if (node.type==ETreeNode.E_VAL){\n return node.value;\n }\n lVal=evalETree(node.left);\n rVal=evalETree(node.right);\n\n switch (((Integer)node.value).intValue()){\n //call the various eval functions\n case LexAnn.TT_PLUS:{\n return evalPlus(lVal,rVal);\n }\n case LexAnn.TT_MINUS:{\n return evalMinus(lVal,rVal);\n }\n case LexAnn.TT_MULT:{\n return evalMult(lVal,rVal);\n }\n case LexAnn.TT_DIV:{\n return evalDiv(lVal,rVal);\n }\n case LexAnn.TT_LEQ:{\n return evalEq(lVal,rVal);\n }\n case LexAnn.TT_LNEQ:{\n return evalNEq(lVal,rVal);\n }\n case LexAnn.TT_LLS:{\n return evalLs(lVal,rVal);\n }\n case LexAnn.TT_LLSE:{\n return evalLse(lVal,rVal);\n }\n case LexAnn.TT_LGR:{\n return evalGr(lVal,rVal);\n }\n case LexAnn.TT_LGRE:{\n return evalGre(lVal,rVal);\n }\n case LexAnn.TT_MOD:{\n return evalMod(lVal,rVal);\n }\n case LexAnn.TT_LAND:{\n return evalAnd(lVal,rVal);\n }\n case LexAnn.TT_LOR:{\n return evalOr(lVal,rVal);\n }\n }\n\n return null;\n }", "@Override\n\tpublic Object visit(ASTLogical node, Object data)\n\t{\n\t\treturn visitOperatorNode(node, data);\n\t}", "public Snippet visit(AndExpression n, Snippet argu) {\n\t Snippet _ret= new Snippet(\"\",\"\",null,false);\n\t Snippet f0 = n.identifier.accept(this, argu);\n\t n.nodeToken.accept(this, argu);\n\t Snippet f2 = n.identifier1.accept(this, argu);\n\t _ret.returnTemp = f0.returnTemp+\" & \"+f2.returnTemp;\n\t return _ret;\n\t }", "private Expr or() { // This uses the same recursive matching structure as other binary operators.\n Expr expr = and(); // OR takes precedence over AND.\n while(match(OR)) {\n Token operator = previous();\n Expr right = and();\n expr = new Expr.Logical(expr, operator, right);\n }\n return expr;\n }", "@Override\n public R visit(BuiltInCall n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "@Override \n\tpublic void caseAOpExpr(AOpExpr node){\n\t\tExpressionType expType = (ExpressionType) nodeTypes.get(node.getOp()); \n\t\tswitch (expType){\n\t\t\tcase AND :\n\t\t\tcreateShortCircuitAnd(node);\n\t\t\t\tbreak;\n\t\t\tcase OR :\n\t\t\tcreateShortCircuiteOR(node);\n\t\t\t\tbreak;\n\t\t\tcase ADD :\n\t\t\t\tType left = nodeTypes.get(node.getLeft()); \n\t\t\t\tif (left == Type.STRING_TYPE){\n\t\t\t\t\tthis.createStringConcat(node);\n\t\t\t\t\tbreak; \n\t\t\t\t}\n\t\t\tdefault : \n\t\t\t\tsuper.caseAOpExpr(node); \n\t\t}\n\t}", "@Test(timeout = 4000)\n public void test146() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"(2><\");\n Token token0 = xPathLexer0.leftParen();\n assertEquals(\"(\", token0.getTokenText());\n assertEquals(1, token0.getTokenType());\n \n Token token1 = xPathLexer0.nextToken();\n assertEquals(\"2\", token1.getTokenText());\n assertEquals(30, token1.getTokenType());\n }", "public interface ExpressionNode\n{\n /** Node id for matrix nodes (remain constant) */\n public static final int MATRIX_NODE = 1;\n /** Node id for addition nodes */\n public static final int ADDITION_NODE = 2;\n /** Node id for multiplication nodes */\n public static final int MULTIPLICATION_NODE = 3;\n\n /**\n * Returns the type of the node.ExpressionNode\n *\n * Each class derived from ExpressionNode representing a specific\n * role in the expression should return the type according to that\n * role.\n * \n * @return type of the node\n */\n public int getType();\n \n /**\n * Calculates and returns the value of the sub-expression represented by\n * the node.\n * \n * @return value of expression\n */\n public Matrix getValue();\n \n /**\n * Method needed for the visitor design pattern\n * \n * @param visitor\n * the visitor\n */\n public void accept(ExpressionNodeVisitor visitor);\n\n}", "@Override\n\tpublic void outAOpExpr(AOpExpr node) {\n\t\tExpressionType expType = (ExpressionType) nodeTypes.get(node.getOp()); \n\t\tType left = nodeTypes.get(node.getLeft()); \n\t\tswitch (expType){\n\t\t\tcase DIV :\n\t\t\t\tcreateBinArithmetic(\"/\"); \n\t\t\t\tbreak; \n\t\t\tcase MINUS: \n\t\t\t\tcreateBinArithmetic(\"-\"); \n\t\t\t\tbreak; \n\t\t\tcase MOD: \n\t\t\t\tcreateBinArithmetic(\"%\"); \n\t\t\t\tbreak;\n\t\t\tcase MUL:\n\t\t\t\tcreateBinArithmetic(\"*\"); \n\t\t\t\tbreak; \n\t\t\tcase ADD : \n\t\t\t\tif ( left != Type.STRING_TYPE ){\n\t\t\t\t\tcreateBinArithmetic(\"+\"); \n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase AINVERSE : \n\t\t\t\til.append(new INEG()); \n\t\t\t\tbreak;\n\t\t\t\t//TODO comparison \n\t\t\tcase LOWEREQ:\n\t\t\t\tcreateCmpOp(Constants.IF_ICMPGT);\n\t\t\t\tbreak; \n\t\t\tcase LOWER :\n\t\t\t\tcreateCmpOp(Constants.IF_ICMPGE); \n\t\t\t\tbreak; \n\t\t\tcase BIGGEREQ:\n\t\t\t\tcreateCmpOp(Constants.IF_ICMPLT);\n\t\t\t\tbreak; \n\t\t\tcase BIGGER : \n\t\t\t\tcreateCmpOp(Constants.IF_ICMPLE); \n\t\t\t\tbreak; \n\t\t\tcase EQ :\n\t\t\t\tif (left == Type.BOOLEAN_TYPE || left == Type.INTEGER_TYPE)\n\t\t\t\t\tcreateCmpOp(Constants.IF_ICMPNE);\n\t\t\t\telse\n\t\t\t\t\tcreateCmpOp(Constants.IF_ACMPNE); \n\t\t\t\tbreak;\n\t\t\tcase NEQ :\n\t\t\t\tif (left == Type.BOOLEAN_TYPE || left == Type.INTEGER_TYPE)\n\t\t\t\t\tcreateCmpOp(Constants.IF_ICMPEQ);\n\t\t\t\telse\n\t\t\t\t\tcreateCmpOp(Constants.IF_ACMPEQ); \n\t\t\t\tbreak; \n\t\t\tcase NOT : \n\t\t\t\tcreateCmpOp(Constants.IFNE); \n\t\t\t\tbreak;\n\t\t}\n\t}", "private Expression parseParen(Tokenizer in) {\n\t\tExpression expr = parseExpr(in,OperatorLevel.lowest);\n\t\tToken expectParen = in.next();\n\t\tif (expectParen.type != Token.TokenType.CLOSE_PARENTHESIS)\n\t\t\tthrow new SyntaxError(\"Expected ) got: '\" + expectParen + \"'\" + expectParen.generateLineChar());\n\t\treturn expr;\n\t}", "@Override\r\n\tpublic boolean visit(QualifiedName node) {\r\n\t\toperand(node,node.getFullyQualifiedName());\r\n\t\treturn false;\r\n\t}", "@Override\n\tpublic Object visit(ASTFilterOr node, Object data) {\n\t\tSystem.out.print(node.jjtGetChild(0).jjtAccept(this, data));\n\t\tSystem.out.print(\" or \");\n\t\tSystem.out.print(node.jjtGetChild(1).jjtAccept(this, data));\n\t\treturn null;\n\t}", "Expression createExpression();", "private TreeNode exprTreeHelper(String expr) {\n if (expr.charAt(0) != '(') {\n return new TreeNode(expr); // you fill this in\n } else {\n // expr is a parenthesized expression.\n // Strip off the beginning and ending parentheses,\n // find the main operator (an occurrence of + or * not nested\n // in parentheses, and construct the two subtrees.\n int nesting = 0;\n int opPos = 0;\n for (int k = 1; k < expr.length() - 1; k++) {\n // you supply the missing code\n \tif (nesting == 0) {\n \t\tif (expr.charAt(k) == '+' || expr.charAt(k) == '*') {\n \t\t\topPos = k;\n \t\t}\n \t}\n \tif (expr.charAt(k) == '(') {\n \t\tnesting++;\n \t} else if (expr.charAt(k) == ')') {\n \t\tnesting--;\n \t}\n }\n String opnd1 = expr.substring(1, opPos);\n String opnd2 = expr.substring(opPos + 1, expr.length() - 1);\n String op = expr.substring(opPos, opPos + 1);\n System.out.println(\"expression = \" + expr);\n System.out.println(\"operand 1 = \" + opnd1);\n System.out.println(\"operator = \" + op);\n System.out.println(\"operand 2 = \" + opnd2);\n System.out.println();\n return new TreeNode(op, exprTreeHelper(opnd1), exprTreeHelper(opnd2)); // you fill this in\n }\n }", "private InfixExpression getNode()\n{\n return (InfixExpression) ast_node;\n}", "@Test(timeout = 4000)\n public void test074() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\") (\");\n Token token0 = xPathLexer0.notEquals();\n xPathLexer0.setPreviousToken(token0);\n assertEquals(\") \", token0.getTokenText());\n assertEquals(22, token0.getTokenType());\n \n Token token1 = xPathLexer0.identifierOrOperatorName();\n assertEquals(15, token1.getTokenType());\n assertEquals(\"\", token1.getTokenText());\n }", "@Override\n public R visit(IRIref n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "public Element compileExpression() {\n\t\tElement ele = null;\n\t\tString token, tokenType;\n\t\tboolean op;\n\t\tboolean oper = false;\n\t\tString command = \"\";\n\t\tElement expressionParent = document.createElement(\"expression\");\n\n\t\t// if the term-op-term-op cycle breaks, that means its the end of the expression\n\t\tdo {\n\n\t\t\t// At least one term\n\t\t\texpressionParent.appendChild(compileTerm());\n\t\t\t\n\t\t\t//If an operand has been encountered, then can write the command as it is postfix\n\t\t\tif (oper) {\n\t\t\t\twriter.writeCommand(command);\n\t\t\t}\n\t\t\tjackTokenizer clone = new jackTokenizer(jTokenizer);\n\t\t\tclone.advance();\n\t\t\ttoken = clone.presentToken;\n\n\t\t\t// zero or more ops\n\t\t\tif (token.matches(\"\\\\+|-|\\\\*|/|\\\\&|\\\\||<|=|>|~\")) {\n\t\t\t\toper = true;\n\n\t\t\t\tswitch (token) {\n\t\t\t\tcase \"+\":\n\t\t\t\t\tcommand = \"add\";\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"-\":\n\t\t\t\t\tcommand = \"sub\";\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"*\":\n\t\t\t\t\tcommand = \"call Math.multiply 2\";\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"/\":\n\t\t\t\t\tcommand = \"call Math.divide 2\";\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"<\":\n\t\t\t\t\tcommand = \"lt\";\n\t\t\t\t\tbreak;\n\t\t\t\tcase \">\":\n\t\t\t\t\tcommand = \"gt\";\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"=\":\n\t\t\t\t\tcommand = \"eq\";\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"&\":\n\t\t\t\t\tcommand = \"and\";\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"|\":\n\t\t\t\t\tcommand = \"or\";\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t\tjTokenizer.advance();\n\t\t\t\ttokenType = jTokenizer.tokenType();\n\t\t\t\tele = createXMLnode(tokenType);\n\t\t\t\texpressionParent.appendChild(ele);\n\t\t\t\tjTokenizer.advance();\n\t\t\t\top = true;\n\t\t\t} else {\n\t\t\t\top = false;\n\t\t\t}\n\t\t} while (op);\n\n\t\treturn expressionParent;\n\t}", "@Override\r\n\tpublic String toString() {\r\n\t\tString string = \"\";\r\n\t\tif (expressionTree.getNumberOfChildren()==0)\r\n\t\t\treturn expressionTree.getValue();\r\n\t\telse{\r\n\t\t\tstring += \"(\";\r\n\t\t\tfor (int i = 0; i < expressionTree.getNumberOfChildren(); i++){\r\n\t\t\t\tTree<String> subtree = expressionTree.getChild(i);\r\n\t\t\t\tif (subtree.getNumberOfChildren()==0)\r\n\t\t\t\t\tstring += subtree.getValue();\r\n\t\t\t\telse\r\n\t\t\t\t\tstring += (new Expression(subtree.toString())).toString()+\" \";\r\n\t\t\t\tif (i < expressionTree.getNumberOfChildren()-1)\r\n\t\t\t\t\tstring += \" \" + expressionTree.getValue()+\" \";\r\n\t\t\t}\r\n\t\t\tstring += \")\";\r\n\t\t}\r\n\t\treturn string;\r\n\t}", "public ExpressionTree(String initValue, TreeNode initLeft, TreeNode initRight) {\n\t\tsuper(initValue, initLeft, initRight);\n\t}", "@Test\n\t\tpublic void testExpression() throws LexicalException, SyntaxException {\n\t\t\tString input = \"x + 2\";\n\t\t\tPLPParser parser = makeParser(input);\n\t\t\tExpression e = parser.expression(); //call expression here instead of parse\n\t\t\tshow(e);\t\n\t\t\tassertEquals(ExpressionBinary.class, e.getClass());\n\t\t\tExpressionBinary b = (ExpressionBinary)e;\n\t\t\tassertEquals(ExpressionIdentifier.class, b.leftExpression.getClass());//\n\t\t\tExpressionIdentifier left = (ExpressionIdentifier)b.leftExpression;\n\t\t\tassertEquals(\"x\", left.name);\n\t\t\tassertEquals(ExpressionIntegerLiteral.class, b.rightExpression.getClass());\n\t\t\tExpressionIntegerLiteral right = (ExpressionIntegerLiteral)b.rightExpression;\n\t\t\tassertEquals(2, right.value);\n\t\t\tassertEquals(OP_PLUS, b.op);\n\t\t}", "@Override public JannotTreeJCExpression getLeftOperand()\n{\n return createTree(getNode().getLeftOperand()); \n}", "@Override\n public R visit(Constraint n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "public String visit(AndExpression n, String s) {\n n.f0.accept(this, null);\n n.f2.accept(this, null);\n return null;\n }", "int parseExpression() {\r\n\t\t\t\tint x = parseTerm();\r\n\t\t\t\tfor (;;) {\r\n\t\t\t\t\tif (eat('+'))\r\n\t\t\t\t\t\tx += parseTerm(); // addition\r\n\t\t\t\t\telse if (eat('-'))\r\n\t\t\t\t\t\tx -= parseTerm(); // subtraction\r\n\t\t\t\t\telse\r\n\t\t\t\t\t\treturn x;\r\n\t\t\t\t}\r\n\t\t\t}", "public Rule itAdd()\n \t{\n \t\treturn sequence(expr(), SP_COMMA/*oneOrMore(sequence(SP_COMMA, expr())), optional(SP_COMMA), eos()*/);\n \t}", "@Override\n\tpublic Object visit(ASTCondAnd node, Object data) {\n\t\tnode.jjtGetChild(0).jjtAccept(this, data);\n\t\tSystem.out.print(\" and \");\n\t\tnode.jjtGetChild(1).jjtAccept(this, data);\n\t\treturn null;\n\t}", "@FunctionalInterface\npublic interface StepExpr extends Expr {\n\n /**\n * {@inheritDoc}\n *\n * @return evaluated XML node views\n */\n @Override\n <N extends Node> IterableNodeView<N> resolve(Navigator<N> navigator, NodeView<N> view, boolean greedy)\n throws XmlBuilderException;\n\n}", "@Override\r\n\tpublic void visit(BinaryExpression binaryExpression) {\n\r\n\t}", "@Override\n public Node visit(BinaryExpression nd, Void v) {\n if (\"??\".equals(nd.getOperator())) return nd;\n return nd.getLeft().accept(this, v);\n }", "@Test\n public void defaultOperatorsEvaluteTrueTest() throws Exception {\n\n assertThat(getNode(\"1 == 1\", \"expr\").render(null), is((Object)true));\n assertThat(getNode(\"1 != 2\", \"expr\").render(null), is((Object)true));\n assertThat(getNode(\"1 <> 2\", \"expr\").render(null), is((Object)true));\n assertThat(getNode(\"1 < 2\", \"expr\").render(null), is((Object)true));\n assertThat(getNode(\"2 > 1\", \"expr\").render(null), is((Object)true));\n assertThat(getNode(\"1 >= 1\", \"expr\").render(null), is((Object)true));\n assertThat(getNode(\"2 >= 1\", \"expr\").render(null), is((Object)true));\n assertThat(getNode(\"1 <= 2\", \"expr\").render(null), is((Object)true));\n assertThat(getNode(\"1 <= 1\", \"expr\").render(null), is((Object)true));\n\n // negative numbers\n assertThat(getNode(\"1 > -1\", \"expr\").render(null), is((Object)true));\n assertThat(getNode(\"-1 < 1\", \"expr\").render(null), is((Object)true));\n assertThat(getNode(\"1.0 > -1.0\", \"expr\").render(null), is((Object)true));\n assertThat(getNode(\"-1.0 < 1.0\", \"expr\").render(null), is((Object)true));\n }", "@Test(timeout = 4000)\n public void test153() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\") (\");\n Token token0 = xPathLexer0.nextToken();\n assertEquals(\")\", token0.getTokenText());\n assertEquals(2, token0.getTokenType());\n }", "@Override\n public R visit(DatasetClause n, A argu) {\n R _ret = null;\n n.nodeToken.accept(this, argu);\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "protected Evaluable parseSubExpression() throws ParsingException {\n Evaluable sub = parseTerm();\n\n while (_token != null &&\n _token.type == TokenType.Operator &&\n \"+-\".indexOf(_token.text) >= 0) {\n\n String op = _token.text;\n\n next(true);\n\n Evaluable sub2 = parseTerm();\n\n sub = new OperatorCallExpr(new Evaluable[] { sub, sub2 }, op);\n }\n\n return sub;\n }", "Expression addExpression() throws SyntaxException {\r\n\t\tToken first = t;\r\n\t\tExpression e0 = multExpression();\r\n\t\twhile(isKind(OP_PLUS, OP_MINUS)) {\r\n\t\t\tToken op = consume();\r\n\t\t\tExpression e1 = multExpression();\r\n\t\t\te0 = new ExpressionBinary(first,e0,op,e1);\r\n\t\t}\r\n\t\treturn e0;\r\n\t}", "private void parse(Node node) {\r\n if (tracing && ! skipTrace) System.out.println(node.trace());\r\n skipTrace = false;\r\n switch(node.op()) {\r\n case Error: case Temp: case List: case Empty: break;\r\n case Rule: parseRule(node); break;\r\n case Id: parseId(node); break;\r\n case Or: parseOr(node); break;\r\n case And: parseAnd(node); break;\r\n case Opt: parseOpt(node); break;\r\n case Any: parseAny(node); break;\r\n case Some: parseSome(node); break;\r\n case See: parseSee(node); break;\r\n case Has: parseHas(node); break;\r\n case Not: parseNot(node); break;\r\n case Tag: parseTag(node); break;\r\n case Success: parseSuccess(node); break;\r\n case Fail: parseFail(node); break;\r\n case Eot: parseEot(node); break;\r\n case Char: parseChar(node); break;\r\n case Text: parseText(node); break;\r\n case Set: parseSet(node); break;\r\n case Range: parseRange(node); break;\r\n case Split: parseSplit(node); break;\r\n case Point: parsePoint(node); break;\r\n case Cat: parseCat(node); break;\r\n case Mark: parseMark(node); break;\r\n case Drop: parseDrop(node); break;\r\n case Act: parseAct(node); break;\r\n default: assert false : \"Unexpected node type \" + node.op(); break;\r\n }\r\n }", "@Test\n\tpublic void expression1() throws SyntaxException, LexicalException {\n\t\tString input = \"2\";\n\t\tshow(input);\n\t\tScanner scanner = new Scanner(input).scan();\n\t\tshow(scanner);\n\t\tSimpleParser parser = new SimpleParser(scanner);\n\t\tparser.expression(); // Call expression directly.\n\t}", "TupleLiteralExp createTupleLiteralExp();", "@Override\n\tpublic Object visit(ASTGeometric node, Object data)\n\t{\n\t\treturn visitOperatorNode(node, data);\n\t}", "@Test(timeout = 4000)\n public void test079() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\") (\");\n Token token0 = xPathLexer0.at();\n xPathLexer0.setPreviousToken(token0);\n assertEquals(\")\", token0.getTokenText());\n assertEquals(16, token0.getTokenType());\n \n Token token1 = xPathLexer0.identifierOrOperatorName();\n assertEquals(15, token1.getTokenType());\n assertEquals(\"\", token1.getTokenText());\n }", "public String visit(Operator n, Object argu)\r\n\t {\r\n\t return null;\r\n\t }", "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 Object visitLogicalOrExpression(GNode n) {\n if (dostring) {\n Object a = dispatch(n.getGeneric(0));\n Object b = dispatch(n.getGeneric(1));\n \n if (a instanceof Long && b instanceof Long) {\n return (Long) a | (Long) b;\n }\n else {\n return parens(a) + \" || \" + parens(b);\n }\n }\n else {\n BDD a, b, bdd;\n \n a = ensureBDD(dispatch(n.getGeneric(0)));\n b = ensureBDD(dispatch(n.getGeneric(1)));\n \n bdd = a.orWith(b);\n \n return bdd;\n }\n }", "@Test(timeout = 4000)\n public void test149() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"m6l-dKX`qghFq8(,{\");\n Token token0 = xPathLexer0.rightParen();\n assertEquals(2, token0.getTokenType());\n assertEquals(\"m\", token0.getTokenText());\n \n Token token1 = xPathLexer0.notEquals();\n assertEquals(\"6l\", token1.getTokenText());\n assertEquals(22, token1.getTokenType());\n \n Token token2 = xPathLexer0.nextToken();\n assertEquals(\"-\", token2.getTokenText());\n assertEquals(6, token2.getTokenType());\n }", "@Test\n\tpublic void testBuildExpressionWithThreeArguments() {\n\t\t\n\t\tWord wordA = new Word(\"apple\", 1);\n\t\tWord wordB = new Word(\"car\", 1);\n\t\tWord wordC = new Word(\"roof\", 2);\n\t\t\n\t\tExpressionBuilder<Word> builder = new ExpressionBuilder<>();\n\t\tbuilder.append(null, wordA);\n\t\tbuilder.append(new AndOperator<Word>(), wordB);\n\t\tbuilder.append(new OrOperator<Word>(), wordC);\n\t\t\n\t\tExpression<Word> resultExpression = builder.getExpression();\n\t\t\n\t\tString expectedResult = \"((apple [1] AND car [1]) OR roof [2])\";\n\t\t\n\t\tSystem.out.println(resultExpression.evaluate());\n\t\tassertEquals(expectedResult, resultExpression.toString());\n\t\t\n\t}", "@Override\n public R visit(NumericLiteral n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "@Override\n public R visit(Consequent n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "public interface ExpressionVisitor{\n\n void handel(BracketExpression bracketExpression);\n\n void handel(NaturalNumber naturalNumber);\n\n\n void handel(Sum sum);\n void handel(Difference difference);\n void handel(Product product);\n void handel(Quotient quotient);\n\n void handel(VariableExpression variableExpression);\n}", "@Test(timeout = 4000)\n public void test011() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\") (\");\n String string0 = xPathLexer0.getXPath();\n assertEquals(\") (\", string0);\n }", "public static Node executeExpressions(Node node, Environment env) {\n Node statement = node;\n Node nextStatement = statement.getCdr();\n\n\n while (!nextStatement.isNull()) {\n statement.getCar().eval(statement, env);\n statement = nextStatement;\n nextStatement = nextStatement.getCdr();\n }\n return statement.getCar().eval(statement, env);\n }", "@Override\n public R visit(GraphPatternNotTriples n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\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 Snippet visit(ExclusiveOrExpression n, Snippet argu) {\n\t\t Snippet _ret= new Snippet(\"\",\"\",null,false);\n\t Snippet f0 = n.identifier.accept(this, argu);\n\t n.nodeToken.accept(this, argu);\n\t Snippet f2 = n.identifier1.accept(this, argu);\n\t _ret.returnTemp = f0.returnTemp+\" ^ \"+f2.returnTemp;\n\t return _ret;\n\t }" ]
[ "0.59950525", "0.586711", "0.58274895", "0.58071643", "0.5764216", "0.57434016", "0.56643635", "0.5619925", "0.5601928", "0.55924374", "0.5560622", "0.55581486", "0.5499428", "0.549818", "0.5488596", "0.5488579", "0.5475318", "0.54713184", "0.543465", "0.5404063", "0.5399985", "0.53853506", "0.5384591", "0.5359499", "0.5347201", "0.534628", "0.53305453", "0.53244114", "0.5295228", "0.5293786", "0.52818847", "0.52707326", "0.526956", "0.5263989", "0.5263023", "0.5246714", "0.5241146", "0.5234233", "0.5232665", "0.52326405", "0.52282906", "0.5226984", "0.522167", "0.5217178", "0.5216695", "0.51999855", "0.51964784", "0.5195046", "0.51916534", "0.5181716", "0.5177827", "0.5176537", "0.5176251", "0.51753885", "0.5173577", "0.5167724", "0.5163509", "0.51577216", "0.5157429", "0.5154971", "0.51540613", "0.514759", "0.5141899", "0.51399887", "0.51369035", "0.51226336", "0.5112421", "0.51054585", "0.510504", "0.5090546", "0.5085118", "0.5084103", "0.5083834", "0.5071776", "0.5062735", "0.5060647", "0.50530016", "0.50493693", "0.50415266", "0.5038749", "0.50197226", "0.5016228", "0.50130236", "0.5012235", "0.5010467", "0.5008859", "0.50058514", "0.500382", "0.5001023", "0.49996758", "0.49966976", "0.49951315", "0.49878153", "0.49744913", "0.4973977", "0.49649456", "0.4964847", "0.49619758", "0.4959326", "0.49558225" ]
0.53660053
23
triplesSameSubject > TriplesSameSubject() nodeOptional > ( "." ( ConstructTriples() )? )?
@Override public R visit(ConstructTriples n, A argu) { R _ret = null; n.triplesSameSubject.accept(this, argu); n.nodeOptional.accept(this, argu); return _ret; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "final public void TriplesSameSubject(Exp stack) throws ParseException {\n Expression expression1;\n if (jj_2_12(2)) {\n expression1 = VarOrTerm(stack);\n stack = PropertyListNotEmpty(expression1, stack);\n } else {\n switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n case ATLIST:\n case ATPATH:\n case LPAREN:\n case LBRACKET:\n case AT:\n expression1 = TriplesNode(stack);\n stack = PropertyList(expression1, stack);\n break;\n case TUPLE:\n stack = tuple(stack);\n break;\n default:\n jj_la1[187] = jj_gen;\n jj_consume_token(-1);\n throw new ParseException();\n }\n }\n }", "@Override\n public R visit(TriplesSameSubject n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "@Override\n public R visit(TriplesBlock n, A argu) {\n R _ret = null;\n n.triplesSameSubject.accept(this, argu);\n n.nodeOptional.accept(this, argu);\n return _ret;\n }", "private void generateRDFTriplesFromPredicateObjectMap(\n \t\t\tSesameDataSet sesameDataSet, TriplesMap triplesMap,\n \t\t\tResource subject, Set<URI> subjectGraphs,\n \t\t\tPredicateObjectMap predicateObjectMap) throws SQLException,\n \t\t\tR2RMLDataError, UnsupportedEncodingException {\n \t\tSet<URI> predicates = new HashSet<URI>();\n \t\tfor (PredicateMap pm : predicateObjectMap.getPredicateMaps()) {\n \t\t\tMap<ColumnIdentifier, byte[]> pmFromRow = applyValueToRow(pm);\n \t\t\tboolean nullFound = false;\n \t\t\tfor (ColumnIdentifier value : pmFromRow.keySet())\n \t\t\t\tif (pmFromRow.get(value) == null) {\n \t\t\t\t\tlog.debug(\"[R2RMLEngine:genereateRDFTriplesFromRow] NULL found, this object will be ignored.\");\n \t\t\t\t\tnullFound = true;\n \t\t\t\t\tbreak;\n \t\t\t\t}\n \t\t\tif (nullFound)\n \t\t\t\tcontinue;\n \t\t\tURI predicate = (URI) extractValueFromTermMap(pm, pmFromRow,\n \t\t\t\t\ttriplesMap);\n \t\t\tlog.debug(\"[R2RMLEngine:genereateRDFTriplesFromRow] Generate predicate : \"\n \t\t\t\t\t+ predicate);\n \t\t\tpredicates.add(predicate);\n \t\t}\n \t\t// 2. Let objects be the set of generated RDF terms that result from\n \t\t// applying each of\n \t\t// the predicate-object map's object maps (but not referencing object\n \t\t// maps) to row\n \t\tSet<Value> objects = new HashSet<Value>();\n \t\tfor (ObjectMap om : predicateObjectMap.getObjectMaps()) {\n \t\t\tMap<ColumnIdentifier, byte[]> omFromRow = applyValueToRow(om);\n \t\t\tboolean nullFound = false;\n \t\t\tfor (ColumnIdentifier value : omFromRow.keySet())\n \t\t\t\tif (omFromRow.get(value) == null) {\n \t\t\t\t\tlog.debug(\"[R2RMLEngine:genereateRDFTriplesFromRow] NULL found, this object will be ignored.\");\n \t\t\t\t\tnullFound = true;\n \t\t\t\t\tbreak;\n \t\t\t\t}\n \t\t\tif (nullFound)\n \t\t\t\tcontinue;\n \t\t\tValue object = extractValueFromTermMap(om, omFromRow, triplesMap);\n \t\t\tlog.debug(\"[R2RMLEngine:genereateRDFTriplesFromRow] Generate object : \"\n \t\t\t\t\t+ object);\n \t\t\tobjects.add(object);\n \t\t}\n \t\t// 3. Let pogm be the set of graph maps of the predicate-object map\n \t\tSet<GraphMap> pogm = predicateObjectMap.getGraphMaps();\n \t\t// 4. Let predicate-object_graphs be the set of generated RDF\n \t\t// terms that result from applying each graph map in pogm to row\n \t\tSet<URI> predicate_object_graphs = new HashSet<URI>();\n \t\t// 4+. Add graph of subject graphs set\n \t\tif (subjectGraphs != null)\n \t\t\tpredicate_object_graphs.addAll(subjectGraphs);\n \t\tfor (GraphMap graphMap : pogm) {\n \t\t\tMap<ColumnIdentifier, byte[]> pogmFromRow = applyValueToRow(graphMap);\n \t\t\tURI predicate_object_graph = (URI) extractValueFromTermMap(\n \t\t\t\t\tgraphMap, pogmFromRow, triplesMap);\n \t\t\tlog.debug(\"[R2RMLEngine:genereateRDFTriplesFromRow] Generate predicate object graph : \"\n \t\t\t\t\t+ predicate_object_graph);\n \t\t\tpredicate_object_graphs.add(predicate_object_graph);\n \t\t}\n \t\t// 5. For each possible combination <predicate, object> where predicate\n \t\t// is a member\n \t\t// of predicates and object is a member of objects,\n \t\t// add triples to the output dataset\n \t\tfor (URI predicate : predicates) {\n \t\t\tfor (Value object : objects) {\n \t\t\t\taddTriplesToTheOutputDataset(sesameDataSet, subject, predicate,\n \t\t\t\t\t\tobject, predicate_object_graphs);\n \t\t\t}\n \t\t}\n \t}", "TripleGraph createTripleGraph();", "@Override\r\n public void insertTripleDistributedBySubject(Triple triple) {\n\r\n }", "private void generateRDFTriplesFromRow(SesameDataSet sesameDataSet,\n \t\t\tTriplesMap triplesMap, SubjectMap sm, Set<URI> classes,\n \t\t\tSet<GraphMap> sgm) throws SQLException, R2RMLDataError,\n \t\t\tUnsupportedEncodingException {\n \t\tMap<ColumnIdentifier, byte[]> smFromRow = applyValueToRow(sm);\n \t\tResource subject = (Resource) extractValueFromTermMap(sm, smFromRow,\n \t\t\t\ttriplesMap);\n \t\tif (subject == null) {\n \t\t\tlog.debug(\"[R2RMLEngine:genereateRDFTriplesFromRow] NULL found, this subject will be ignored.\");\n \t\t\treturn;\n \t\t} else\n \t\t\tlog.debug(\"[R2RMLEngine:genereateRDFTriplesFromRow] Generate subject : \"\n \t\t\t\t\t+ subject.stringValue());\n \n \t\t// 2. Let subject_graphs be the set of the generated RDF terms\n \t\t// that result from applying each term map in sgm to row\n \t\tSet<URI> subject_graphs = new HashSet<URI>();\n \t\tfor (GraphMap graphMap : sgm) {\n \t\t\tMap<ColumnIdentifier, byte[]> sgmFromRow = applyValueToRow(graphMap);\n \t\t\tURI subject_graph = (URI) extractValueFromTermMap(graphMap,\n \t\t\t\t\tsgmFromRow, triplesMap);\n \t\t\tlog.debug(\"[R2RMLEngine:genereateRDFTriplesFromRow] Generate subject graph : \"\n \t\t\t\t\t+ subject_graph);\n \t\t\tsubject_graphs.add(subject_graph);\n \t\t}\n \t\t// 3. For each classIRI in classes, add triples to the output dataset\n \t\tfor (URI classIRI : sm.getClassIRIs()) {\n \t\t\tURI predicate = vf.createURI(R2RMLVocabulary.RDF_NAMESPACE\n \t\t\t\t\t+ R2RMLTerm.TYPE);\n \t\t\taddTriplesToTheOutputDataset(sesameDataSet, subject, predicate,\n \t\t\t\t\tclassIRI, subject_graphs);\n \t\t}\n \t\t// 4. For each predicate-object map of the triples map, apply the\n \t\t// following method\n \t\tfor (PredicateObjectMap predicateObjectMap : triplesMap\n \t\t\t\t.getPredicateObjectMaps())\n \t\t\tgenerateRDFTriplesFromPredicateObjectMap(sesameDataSet, triplesMap,\n \t\t\t\t\tsubject, subject_graphs, predicateObjectMap);\n \n \t}", "public ArrayList<Triple> createTenCommonAnnotationTriples(Node subject ,TenLearningObjectAnnotationsBean tenLearningObjectAnnotationsBean){\r\n\t\t\r\n\t\tString LOG_METHOD_NAME = \"ArrayList createTenCommonAnnotationTriples(Node, TenLearningObjectAnnotationsBean)\";\r\n\t\tlog.debug(this.getClass() + TripleStoreConstants.LOG_BEGIN + LOG_METHOD_NAME);\r\n\t\t\r\n\t\tArrayList<Triple> tripleList = new ArrayList<>();\r\n\t\tNode predicate = null, predicate_value=null;\r\n\t\t\r\n\t\ttry{\r\n\t\t\t//modified\r\n\t\t\tif(!Utils.isEmptyOrNull(tenLearningObjectAnnotationsBean.getModified())){\r\n\t\t\t\tpredicate = Node.createURI(TripleStoreConstants.URI_PREDICATE_TEN_COMMON_MODIFIED);\r\n\t\t\t\tpredicate_value = Node.createLiteral(tenLearningObjectAnnotationsBean.getModified());\r\n\t\t\t\ttripleList.add(new Triple(subject, predicate, predicate_value));\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//rightsHolder\t\r\n\t\t\tif(!Utils.isEmptyOrNull(tenLearningObjectAnnotationsBean.getRightsHolder())){\r\n\t\t\t\tpredicate = Node.createURI(TripleStoreConstants.URI_PREDICATE_TEN_COMMON_RIGHTS_HOLDER);\r\n\t\t\t\tpredicate_value = Node.createLiteral(tenLearningObjectAnnotationsBean.getRightsHolder());\r\n\t\t\t\ttripleList.add(new Triple(subject, predicate, predicate_value));\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//isPartOf\t\r\n\t\t\tif(!Utils.isEmptyOrNull(tenLearningObjectAnnotationsBean.getIsPartOf())){\r\n\t\t\t\tpredicate = Node.createURI(TripleStoreConstants.URI_PREDICATE_TEN_COMMON_ISPARTOF);\r\n\t\t\t\tpredicate_value = Node.createURI(tenLearningObjectAnnotationsBean.getIsPartOf());\r\n\t\t\t\ttripleList.add(new Triple(subject, predicate, predicate_value));\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//hasPart\t\r\n\t\t\tif(!Utils.isEmptyOrNull(tenLearningObjectAnnotationsBean.getHasPart())){\r\n\t\t\t\tpredicate = Node.createURI(TripleStoreConstants.URI_PREDICATE_TEN_COMMON_HASPART);\r\n\t\t\t\tpredicate_value = Node.createURI(tenLearningObjectAnnotationsBean.getHasPart());\r\n\t\t\t\ttripleList.add(new Triple(subject, predicate, predicate_value));\r\n\t\t\t}\t\t\t\r\n\t\t}catch(Exception ex)\r\n\t\t{\r\n\t\t\tlog.error(ex);\r\n\t\t\tthrow ex;\r\n\t\t}finally{\r\n\t\t\tlog.debug(this.getClass() + TripleStoreConstants.LOG_END + LOG_METHOD_NAME);\r\n\t\t}\r\n\t\t\r\n\t\treturn tripleList;\r\n\t}", "public ArrayList<Triple> createCourseAnnotationTriples(Node subject ,CourseAnnotationsBean courseAnnotationBean){\r\n\t\t\r\n\t\tString LOG_METHOD_NAME = \"ArrayList<Triple> createCourseAnnotationTriples(Node subject ,CourseAnnotationsBean courseAnnotationBean)\";\r\n\t\tlog.debug(this.getClass() + TripleStoreConstants.LOG_BEGIN + LOG_METHOD_NAME);\r\n\t\t\r\n\t\tArrayList<Triple> tripleList = new ArrayList<>();\r\n\t\tNode predicate = null, predicate_value=null;\r\n\t\t\r\n\t\ttry{\r\n\t\t\t\r\n\t\t\t//modified\r\n\t\t\tif(!Utils.isEmptyOrNull(courseAnnotationBean.getModified())){\r\n\t\t\t\tpredicate = Node.createURI(TripleStoreConstants.URI_PREDICATE_TEN_COMMON_MODIFIED);\r\n\t\t\t\tpredicate_value = Node.createLiteral(courseAnnotationBean.getModified());\r\n\t\t\t\ttripleList.add(new Triple(subject, predicate, predicate_value));\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//rightsHolder\t\r\n\t\t\tif(!Utils.isEmptyOrNull(courseAnnotationBean.getRightsHolder())){\r\n\t\t\t\tpredicate = Node.createURI(TripleStoreConstants.URI_PREDICATE_TEN_COMMON_RIGHTS_HOLDER);\r\n\t\t\t\tpredicate_value = Node.createLiteral(courseAnnotationBean.getRightsHolder());\r\n\t\t\t\ttripleList.add(new Triple(subject, predicate, predicate_value));\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//hasPart\t\r\n\t\t\tif(!Utils.isEmptyOrNull(courseAnnotationBean.getHasPart())){\r\n\t\t\t\tpredicate = Node.createURI(TripleStoreConstants.URI_PREDICATE_TEN_COMMON_HASPART);\r\n\t\t\t\tpredicate_value = Node.createLiteral(courseAnnotationBean.getHasPart());\r\n\t\t\t\ttripleList.add(new Triple(subject, predicate, predicate_value));\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\t//creator\r\n\t\t\tif(!Utils.isEmptyOrNull(courseAnnotationBean.getCreator())){\r\n\t\t\t\tpredicate = Node.createURI(TripleStoreConstants.URI_PREDICATE_DC_CREATOR);\r\n\t\t\t\tpredicate_value = Node.createLiteral(courseAnnotationBean.getCreator());\r\n\t\t\t\ttripleList.add(new Triple(subject, predicate, predicate_value));\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//description \r\n\t\t\tif(!Utils.isEmptyOrNull(courseAnnotationBean.getDescription())){\r\n\t\t\t\tpredicate = Node.createURI(TripleStoreConstants.URI_PREDICATE_DC_DESCRIPTION);\r\n\t\t\t\tpredicate_value = Node.createLiteral(courseAnnotationBean.getDescription());\r\n\t\t\t\ttripleList.add(new Triple(subject, predicate, predicate_value));\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//keywords\r\n\t\t\tif(!Utils.isEmptyOrNull(courseAnnotationBean.getKeywords())){\r\n\t\t\t\tpredicate = Node.createURI(TripleStoreConstants.URI_PREDICATE_TEN_KEYWORDS);\r\n\t\t\t\tpredicate_value = Node.createLiteral(courseAnnotationBean.getKeywords());\r\n\t\t\t\ttripleList.add(new Triple(subject, predicate, predicate_value));\r\n\t\t\t}\r\n\t\t}catch(Exception ex)\r\n\t\t{\r\n\t\t\tlog.error(ex);\r\n\t\t\tthrow ex;\r\n\t\t}finally{\r\n\t\t\tlog.debug(this.getClass() + TripleStoreConstants.LOG_END + LOG_METHOD_NAME);\r\n\t\t}\r\n\t\t\r\n\t\treturn tripleList;\r\n\t}", "@Test\n public void shouldNotAddDuplicateDependents() {\n String currentPipeline = \"p5\";\n ValueStreamMap graph = new ValueStreamMap(currentPipeline, null);\n Node p4 = graph.addUpstreamNode(new PipelineDependencyNode(\"p4\", \"p4\"), null, currentPipeline);\n graph.addUpstreamNode(new PipelineDependencyNode(\"p4\", \"p4\"), null, currentPipeline);\n\n assertThat(p4.getChildren().size(), is(1));\n VSMTestHelper.assertThatNodeHasChildren(graph, \"p4\", 0, \"p5\");\n }", "@Override\n public R visit(DeleteTriples n, A argu) {\n R _ret = null;\n n.triplesSameSubject.accept(this, argu);\n n.nodeOptional.accept(this, argu);\n return _ret;\n }", "Boolean same(MultiSet<X> s);", "public void testConvertTopo (Topology tp)\n {\n Node root = tp.getNodes().get(0);\n //root.setColor(Color.green);\n parcours(root, visitedlist, compo1);\n set.addAll(composante);\n ArrayList distinctList = new ArrayList(set);\n System.out.println(distinctList.size());\n for ( int i = 0; i < distinctList.size(); i++ )\n System.out.println(distinctList.get(i));\n ArrayList<Link> liste = connectedL(tp);\n /*for (int i = 0; i < liste.size(); i++)\n System.out.println(liste.get(i));*/\n Convert(liste);\n /*for ( int i = 0; i < listConvert.size(); i++ )\n System.out.println(listConvert.get(i));*/\n ConvertMinimiz(listConvert);\n minimisationConvCompo(distinctList);\n minimisationAllNeighbor(listConvert,tp);\n //minimisation4(listConvert,tp);\n }", "private void generateRDFTriplesFromReferencingRow(\n \t\t\tSesameDataSet sesameDataSet, TriplesMap triplesMap, SubjectMap sm,\n \t\t\tSubjectMap psm, Set<GraphMap> pogm, Set<GraphMap> sgm,\n \t\t\tPredicateObjectMap predicateObjectMap, int n) throws SQLException,\n \t\t\tR2RMLDataError, UnsupportedEncodingException {\n \t\tMap<ColumnIdentifier, byte[]> smFromRow = applyValueToChildRow(sm, n);\n \t\tboolean nullFound = false;\n \t\tfor (ColumnIdentifier value : smFromRow.keySet())\n \t\t\tif (smFromRow.get(value) == null) {\n \t\t\t\tlog.debug(\"[R2RMLEngine:genereateRDFTriplesFromRow] NULL found, this object will be ignored.\");\n \t\t\t\tnullFound = true;\n \t\t\t\tbreak;\n \t\t\t}\n \t\tif (nullFound)\n \t\t\treturn;\n \t\tResource subject = (Resource) extractValueFromTermMap(sm, smFromRow,\n \t\t\t\ttriplesMap);\n \t\tlog.debug(\"[R2RMLEngine:generateRDFTriplesFromReferencingRow] Generate subject : \"\n \t\t\t\t+ subject.stringValue());\n \t\t// 4. Let predicates be the set of generated RDF terms that result from\n \t\t// applying each of the predicate-object map's predicate maps to\n \t\t// child_row\n \t\tSet<URI> predicates = new HashSet<URI>();\n \t\tfor (PredicateMap pm : predicateObjectMap.getPredicateMaps()) {\n \t\t\tMap<ColumnIdentifier, byte[]> pmFromRow = applyValueToChildRow(pm, n);\n \t\t\tURI predicate = (URI) extractValueFromTermMap(pm, pmFromRow,\n \t\t\t\t\ttriplesMap);\n \t\t\tlog.debug(\"[R2RMLEngine:generateRDFTriplesFromReferencingRow] Generate predicate : \"\n \t\t\t\t\t+ predicate);\n \t\t\tpredicates.add(predicate);\n \t\t}\n \t\t// 5. Let object be the generated RDF term that results from applying\n \t\t// psm to parent_row\n \t\tMap<ColumnIdentifier, byte[]> omFromRow = applyValueToParentRow(psm, n);\n \t\tResource object = (Resource) extractValueFromTermMap(psm, omFromRow,\n \t\t\t\tpsm.getOwnTriplesMap());\n \t\tlog.debug(\"[R2RMLEngine:generateRDFTriplesFromReferencingRow] Generate object : \"\n \t\t\t\t+ object);\n \t\t// 6. Let subject_graphs be the set of generated RDF terms that result\n \t\t// from applying each graph map of sgm to child_row\n \t\tSet<URI> subject_graphs = new HashSet<URI>();\n \t\tfor (GraphMap graphMap : sgm) {\n \t\t\tMap<ColumnIdentifier, byte[]> sgmFromRow = applyValueToChildRow(graphMap, n);\n \t\t\tURI subject_graph = (URI) extractValueFromTermMap(graphMap,\n \t\t\t\t\tsgmFromRow, triplesMap);\n \t\t\tlog.debug(\"[R2RMLEngine:generateRDFTriplesFromReferencingRow] Generate subject graph : \"\n \t\t\t\t\t+ subject_graph);\n \t\t\tsubject_graphs.add(subject_graph);\n \t\t}\n \t\t// 7. Let predicate-object_graphs be the set of generated RDF terms\n \t\t// that result from applying each graph map in pogm to child_row\n \t\tSet<URI> predicate_object_graphs = new HashSet<URI>();\n \t\tfor (GraphMap graphMap : pogm) {\n \t\t\tMap<ColumnIdentifier, byte[]> pogmFromRow = applyValueToChildRow(graphMap, n);\n \t\t\tURI predicate_object_graph = (URI) extractValueFromTermMap(\n \t\t\t\t\tgraphMap, pogmFromRow, triplesMap);\n \t\t\tlog.debug(\"[R2RMLEngine:generateRDFTriplesFromReferencingRow] Generate predicate object graph : \"\n \t\t\t\t\t+ predicate_object_graph);\n \t\t\tpredicate_object_graphs.add(predicate_object_graph);\n \t\t}\n \t\t// 8. For each predicate in predicates, add triples to the output\n \t\t// dataset\n \t\tfor (URI predicate : predicates) {\n \t\t\t// If neither sgm nor pogm has any graph maps: rr:defaultGraph;\n \t\t\t// otherwise: union of subject_graphs and predicate-object_graphs\n \t\t\tSet<URI> targetGraphs = new HashSet<URI>();\n \t\t\ttargetGraphs.addAll(subject_graphs);\n \t\t\ttargetGraphs.addAll(predicate_object_graphs);\n \t\t\taddTriplesToTheOutputDataset(sesameDataSet, subject, predicate,\n \t\t\t\t\tobject, targetGraphs);\n \t\t}\n \t}", "@Test\n public void testPackagesTriples() {\n int expected = 12 + 50; // parashot + perakim, sefer is not added\n assertEquals(expected, packagesJson[1].subjects.size()); // note that element in position 0 is null\n\n // test the number of packages objects in sefer Devarim\n expected = 11 + 34; // sefer + parashot + perakim\n assertEquals(expected, packagesJson[5].subjects.size());\n\n // test the number of packages objects in sefer Divrey Hayamim B\n expected = 0 + 36; // sefer + parashot + perakim\n assertEquals(expected, packagesJson[39].subjects.size());\n }", "Neq createNeq();", "public void testSubgraphsDontPolluteDefaultPrefix() \n {\n String imported = \"http://imported#\", local = \"http://local#\";\n g1.getPrefixMapping().setNsPrefix( \"\", imported );\n poly.getPrefixMapping().setNsPrefix( \"\", local );\n assertEquals( null, poly.getPrefixMapping().getNsURIPrefix( imported ) );\n }", "@Test\n public void tr1()\n {\n Graph graph = new Graph(2);\n Set<Integer> sources = new TreeSet<Integer>();\n Set<Integer> targets = new TreeSet<Integer>();\n sources.add(0);\n targets.add(1);\n assertFalse(graph.reachable(sources, targets));\n }", "public ArrayList<Triple> addPublisherAnnotationTriples(Node subject ,DigitalRightsManagementBean digitalRightsManagementBean){\r\n\t\t\r\n\t\tString LOG_METHOD_NAME = \" ArrayList<Triple> addPublisherAnnotationTriples(Node, DigitalRightsManagementBean)\";\r\n\t\tlog.debug(this.getClass() + TripleStoreConstants.LOG_BEGIN + LOG_METHOD_NAME);\r\n\t\t\r\n\t\tArrayList<Triple> tripleList = new ArrayList<>();\r\n\t\tNode predicate = null, predicate_value=null;\r\n\t\ttry{\t\t\t\t\t\t\r\n\t\t\t//PUBLISHER information\r\n\t\t\tpredicate = Node.createURI(TripleStoreConstants.URI_PREDICATE_TEN_PUBLISHER);\r\n\t\t\tStringBuffer publisherAttributes = new StringBuffer();\r\n\t\t\t\r\n\t\t\t//id\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getPublisher())){\r\n\t\t\t\tpublisherAttributes.append(TripleStoreConstants.ATTRIBUTE_ID);\r\n\t\t\t\tpublisherAttributes.append(\"=\");\r\n\t\t\t\tpublisherAttributes.append(digitalRightsManagementBean.getPublisher());\r\n\t\t\t\tpublisherAttributes.append(\";\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//email\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getPublisherEmail())){\r\n\t\t\t\tpublisherAttributes.append(TripleStoreConstants.ATTRIBUTE_EMAIL);\r\n\t\t\t\tpublisherAttributes.append(\"=\");\r\n\t\t\t\tpublisherAttributes.append(digitalRightsManagementBean.getPublisherEmail());\r\n\t\t\t\tpublisherAttributes.append(\";\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//approved\r\n\t\t\tboolean approved = (!Utils.isEmptyOrNull(digitalRightsManagementBean.getPublisherApproved()) \r\n\t\t\t\t\t&& \"true\".equals(digitalRightsManagementBean.getPublisherApproved()))?true:false;\r\n\t\t\tpublisherAttributes.append(TripleStoreConstants.ATTRIBUTE_APPROVED);\r\n\t\t\tpublisherAttributes.append(\"=\");\r\n\t\t\tpublisherAttributes.append(approved);\r\n\t\t\tpublisherAttributes.append(\";\");\r\n\t\t\t\t\t\t\r\n\t\t\t//cell phone\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getPublisherCellPhone())){\r\n\t\t\t\tpublisherAttributes.append(TripleStoreConstants.ATTRIBUTE_CELL_PHONE);\r\n\t\t\t\tpublisherAttributes.append(\"=\");\r\n\t\t\t\tpublisherAttributes.append(digitalRightsManagementBean.getPublisherCellPhone());\r\n\t\t\t\tpublisherAttributes.append(\";\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//office phone\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getPublisherOfficePhone())){\r\n\t\t\t\tpublisherAttributes.append(TripleStoreConstants.ATTRIBUTE_OFFICE_PHONE);\r\n\t\t\t\tpublisherAttributes.append(\"=\");\r\n\t\t\t\tpublisherAttributes.append(digitalRightsManagementBean.getPublisherOfficePhone());\r\n\t\t\t\tpublisherAttributes.append(\";\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//FAX\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getPublisherFax())){\r\n\t\t\t\tpublisherAttributes.append(TripleStoreConstants.ATTRIBUTE_FAX);\r\n\t\t\t\tpublisherAttributes.append(\"=\");\r\n\t\t\t\tpublisherAttributes.append(digitalRightsManagementBean.getPublisherFax());\r\n\t\t\t\tpublisherAttributes.append(\";\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//street address\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getPublisherStreetAddress())){\r\n\t\t\t\tpublisherAttributes.append(TripleStoreConstants.ATTRIBUTE_STREET_ADDRESS);\r\n\t\t\t\tpublisherAttributes.append(\"=\");\r\n\t\t\t\tpublisherAttributes.append(digitalRightsManagementBean.getPublisherStreetAddress());\r\n\t\t\t\tpublisherAttributes.append(\";\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//other address\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getPublisherOtherAddress())){\r\n\t\t\t\tpublisherAttributes.append(TripleStoreConstants.ATTRIBUTE_OTHER_ADDRESS);\r\n\t\t\t\tpublisherAttributes.append(\"=\");\r\n\t\t\t\tpublisherAttributes.append(digitalRightsManagementBean.getPublisherOtherAddress());\r\n\t\t\t\tpublisherAttributes.append(\";\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//city\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getPublisherCity())){\r\n\t\t\t\tpublisherAttributes.append(TripleStoreConstants.ATTRIBUTE_CITY);\r\n\t\t\t\tpublisherAttributes.append(\"=\");\r\n\t\t\t\tpublisherAttributes.append(digitalRightsManagementBean.getPublisherCity());\r\n\t\t\t\tpublisherAttributes.append(\";\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//state\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getPublisherState())){\r\n\t\t\t\tpublisherAttributes.append(TripleStoreConstants.ATTRIBUTE_STATE);\r\n\t\t\t\tpublisherAttributes.append(\"=\");\r\n\t\t\t\tpublisherAttributes.append(digitalRightsManagementBean.getPublisherState());\r\n\t\t\t\tpublisherAttributes.append(\";\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//state\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getPublisherZipCode())){\r\n\t\t\t\tpublisherAttributes.append(TripleStoreConstants.ATTRIBUTE_ZIP_CODE);\r\n\t\t\t\tpublisherAttributes.append(\"=\");\r\n\t\t\t\tpublisherAttributes.append(digitalRightsManagementBean.getPublisherZipCode());\r\n\t\t\t\tpublisherAttributes.append(\";\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tpredicate_value = Node.createLiteral(publisherAttributes.toString());\r\n\t\t\ttripleList.add(new Triple(subject, predicate, predicate_value));\r\n\t\t}catch(Exception ex)\r\n\t\t{\r\n\t\t\tlog.error(ex);\r\n\t\t\tthrow ex;\r\n\t\t}finally{\r\n\t\t\tlog.debug(this.getClass() + TripleStoreConstants.LOG_END + LOG_METHOD_NAME);\r\n\t\t}\r\n\t\t\r\n\t\treturn tripleList;\r\n\t}", "final public Expression TriplesNode(Exp stack) throws ParseException {\n Expression expression1;\n switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n case ATLIST:\n case ATPATH:\n case LPAREN:\n case AT:\n expression1 = Collection(stack);\n break;\n case LBRACKET:\n expression1 = BlankNodePropertyList(stack);\n break;\n default:\n jj_la1[224] = jj_gen;\n jj_consume_token(-1);\n throw new ParseException();\n }\n {if (true) return expression1;}\n throw new Error(\"Missing return statement in function\");\n }", "@Test\n public void tr2()\n {\n Graph graph = new Graph(2);\n Set<Integer> sources = new TreeSet<Integer>();\n Set<Integer> targets = new TreeSet<Integer>();\n sources.add(0);\n targets.add(1);\n graph.addEdge(0,1);\n assertTrue(graph.reachable(sources, targets));\n\n\n }", "@Test\n public void tr3()\n {\n Graph graph = new Graph(2);\n Set<Integer> sources = new TreeSet<Integer>();\n Set<Integer> targets = new TreeSet<Integer>();\n sources.add(0);\n targets.add(1);\n graph.addEdge(1,0);\n assertFalse(graph.reachable(sources, targets));\n }", "public TrieDifferentCombinations() {\n this.root = new TrieDifferentCombinationsNode();\n }", "public interface OneToNAlgorithm {\n\t/**\n\t * Runs the algorithm.\n\t * @param source Source to start the algorithm.\n\t * @param request Request for which the algorithm has to run.\n\t */\n\tvoid computePathsToAnyNodeFrom(Node source, Request request);\n\n\t/**\n\t * Gets the Path obtained by the algorithm to a given destination.\n\t * @param destination Destination of the Path that must be returned.\n\t * @return The found shortest path or null if PATH found.\n\t * @throws RoutingException if 'computePathsToAnyNodeFrom' has never been\n\t * called before.\n\t */\n\tPath getPathFromNodeTo(Node destination);\n}", "@Test\n public void getGraphNull() throws Exception {\n try (final Graph defaultGraph = dataset.getGraph(null).get()) {\n // TODO: Can we assume the default graph was empty before our new triples?\n assertEquals(2, defaultGraph.size());\n assertTrue(defaultGraph.contains(alice, isPrimaryTopicOf, graph1));\n // NOTE: wildcard as graph2 is a (potentially mapped) BlankNode\n assertTrue(defaultGraph.contains(bob, isPrimaryTopicOf, null));\n }\n }", "private void phaseTwo(){\r\n\r\n\t\tCollections.shuffle(allNodes, random);\r\n\t\tList<Pair<Node, Node>> pairs = new ArrayList<Pair<Node, Node>>();\r\n\t\t\r\n\t\t//For each node in allNode, get all relationshpis and iterate through each relationship.\r\n\t\tfor (Node n1 : allNodes){\r\n\r\n\t\t\ttry (Transaction tx = graphDb.beginTx()){\r\n\t\t\t\t//If a node n1 is related to any other node in allNodes, add those relationships to rels.\r\n\t\t\t\t//Avoid duplication, and self loops.\r\n\t\t\t\tIterable<Relationship> ite = n1.getRelationships(Direction.BOTH);\t\t\t\t\r\n\r\n\t\t\t\tfor (Relationship rel : ite){\r\n\t\t\t\t\tNode n2 = rel.getOtherNode(n1);\t//Get the other node\r\n\t\t\t\t\tif (allNodes.contains(n2) && !n1.equals(n2)){\t\t\t\t\t//If n2 is part of allNodes and n1 != n2\r\n\t\t\t\t\t\tif (!rels.contains(rel)){\t\t\t\t\t\t\t\t\t//If the relationship is not already part of rels\r\n\t\t\t\t\t\t\tPair<Node, Node> pA = new Pair<Node, Node>(n1, n2);\r\n\t\t\t\t\t\t\tPair<Node, Node> pB = new Pair<Node, Node>(n2, n1);\r\n\r\n\t\t\t\t\t\t\tif (!pairs.contains(pA)){\r\n\t\t\t\t\t\t\t\trels.add(rel);\t\t\t\t\t\t\t\t\t\t\t//Add the relationship to the lists.\r\n\t\t\t\t\t\t\t\tpairs.add(pA);\r\n\t\t\t\t\t\t\t\tpairs.add(pB);\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\t\t\ttx.success();\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn;\r\n\t}", "private ScheduleGrph initializeIdenticalTaskEdges(ScheduleGrph input) {\n\n\t\tScheduleGrph correctedInput = (ScheduleGrph) SerializationUtils.clone(input);\n\t\t// FORKS AND TODO JOINS\n\t\t/*\n\t\t * for (int vert : input.getVertices()) { TreeMap<Integer, List<Integer>> sorted\n\t\t * = new TreeMap<Integer, List<Integer>>(); for (int depend :\n\t\t * input.getOutNeighbors(vert)) { int edge = input.getSomeEdgeConnecting(vert,\n\t\t * depend); int weight = input.getEdgeWeightProperty().getValueAsInt(edge); if\n\t\t * (sorted.get(weight) != null) { sorted.get(weight).add(depend); } else {\n\t\t * ArrayList<Integer> a = new ArrayList(); a.add(depend); sorted.put(weight, a);\n\t\t * }\n\t\t * \n\t\t * } int curr = -1; for (List<Integer> l : sorted.values()) { for (int head : l)\n\t\t * {\n\t\t * \n\t\t * if (curr != -1) { correctedInput.addDirectedSimpleEdge(curr, head); } curr =\n\t\t * head; }\n\t\t * \n\t\t * } }\n\t\t */\n\n\t\tfor (int vert : input.getVertices()) {\n\t\t\tfor (int vert2 : input.getVertices()) {\n\t\t\t\tint vertWeight = input.getVertexWeightProperty().getValueAsInt(vert);\n\t\t\t\tint vert2Weight = input.getVertexWeightProperty().getValueAsInt(vert2);\n\n\t\t\t\tIntSet vertParents = input.getInNeighbors(vert);\n\t\t\t\tIntSet vert2Parents = input.getInNeighbors(vert2);\n\n\t\t\t\tIntSet vertChildren = input.getOutNeighbors(vert);\n\t\t\t\tIntSet vert2Children = input.getOutNeighbors(vert2);\n\n\t\t\t\tboolean childrenEqual = vertChildren.containsAll(vert2Children)\n\t\t\t\t\t\t&& vert2Children.containsAll(vertChildren);\n\n\t\t\t\tboolean parentEqual = vertParents.containsAll(vert2Parents) && vert2Parents.containsAll(vertParents);\n\n\t\t\t\tboolean inWeightsSame = true;\n\t\t\t\tfor (int parent : vertParents) {\n\t\t\t\t\tfor (int parent2 : vert2Parents) {\n\t\t\t\t\t\tif (parent == parent2 && input.getEdgeWeightProperty()\n\t\t\t\t\t\t\t\t.getValue(input.getSomeEdgeConnecting(parent, vert)) == input.getEdgeWeightProperty()\n\t\t\t\t\t\t\t\t.getValue(input.getSomeEdgeConnecting(parent2, vert2))) {\n\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tinWeightsSame = false;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif (!inWeightsSame) {\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tboolean outWeightsSame = true;\n\t\t\t\tfor (int child : vertChildren) {\n\t\t\t\t\tfor (int child2 : vert2Children) {\n\t\t\t\t\t\tif (child == child2 && input.getEdgeWeightProperty()\n\t\t\t\t\t\t\t\t.getValue(input.getSomeEdgeConnecting(vert, child)) == input.getEdgeWeightProperty()\n\t\t\t\t\t\t\t\t.getValue(input.getSomeEdgeConnecting(vert2, child2))) {\n\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\toutWeightsSame = false;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif (!outWeightsSame) {\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tboolean alreadyEdge = correctedInput.areVerticesAdjacent(vert, vert2)\n\t\t\t\t\t\t|| correctedInput.areVerticesAdjacent(vert2, vert);\n\n\t\t\t\tif (vert != vert2 && vertWeight == vert2Weight && parentEqual && childrenEqual && inWeightsSame\n\t\t\t\t\t\t&& outWeightsSame && !alreadyEdge) {\n\t\t\t\t\tint edge = correctedInput.addDirectedSimpleEdge(vert, vert2);\n\t\t\t\t\tcorrectedInput.getEdgeWeightProperty().setValue(edge, 0);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn correctedInput;\n\t}", "private boolean isNoteworthy(ThingTimeTriple firstTriple, ThingTimeTriple previousTriple)\r\n/* 129: */ {\r\n/* 130:137 */ Mark.say(\r\n/* 131: */ \r\n/* 132: */ \r\n/* 133: */ \r\n/* 134: */ \r\n/* 135: */ \r\n/* 136: */ \r\n/* 137: */ \r\n/* 138: */ \r\n/* 139: */ \r\n/* 140: */ \r\n/* 141: */ \r\n/* 142: */ \r\n/* 143: */ \r\n/* 144: */ \r\n/* 145: */ \r\n/* 146: */ \r\n/* 147: */ \r\n/* 148: */ \r\n/* 149: */ \r\n/* 150: */ \r\n/* 151: */ \r\n/* 152: */ \r\n/* 153: */ \r\n/* 154: */ \r\n/* 155: */ \r\n/* 156: */ \r\n/* 157: */ \r\n/* 158: */ \r\n/* 159: */ \r\n/* 160: */ \r\n/* 161: */ \r\n/* 162: */ \r\n/* 163: */ \r\n/* 164: */ \r\n/* 165: */ \r\n/* 166: */ \r\n/* 167: */ \r\n/* 168: */ \r\n/* 169: */ \r\n/* 170: */ \r\n/* 171: */ \r\n/* 172: */ \r\n/* 173: */ \r\n/* 174:181 */ new Object[] { \"Inputs to isNoteworthy\", firstTriple.english, previousTriple.english });\r\n/* 175:138 */ if (previousTriple == null)\r\n/* 176: */ {\r\n/* 177:139 */ resetReference(firstTriple);\r\n/* 178:140 */ return true;\r\n/* 179: */ }\r\n/* 180:143 */ if (previousTriple.english.equals(firstTriple.english))\r\n/* 181: */ {\r\n/* 182:144 */ Mark.say(new Object[] {\"English is the same\" });\r\n/* 183: */ }\r\n/* 184: */ else\r\n/* 185: */ {\r\n/* 186:147 */ String type = firstTriple.t.getType();\r\n/* 187:148 */ Mark.say(new Object[] {\"Significant types\", type, this.significantEvents });\r\n/* 188:150 */ if (this.significantEvents.contains(type))\r\n/* 189: */ {\r\n/* 190:151 */ Mark.say(new Object[] {firstTriple.english, \"is significant\" });\r\n/* 191: */ \r\n/* 192: */ \r\n/* 193: */ \r\n/* 194:155 */ ThingTimeTriple previousEventOfSameType = (ThingTimeTriple)this.previousTriples.get(type);\r\n/* 195:157 */ if (previousEventOfSameType == null)\r\n/* 196: */ {\r\n/* 197:158 */ resetReference(firstTriple);\r\n/* 198:159 */ return true;\r\n/* 199: */ }\r\n/* 200:162 */ if (overlaps(firstTriple, previousEventOfSameType))\r\n/* 201: */ {\r\n/* 202:167 */ Connections.getPorts(this).transmit(TO_TEXT_VIEWER, new BetterSignal(new Object[] { \"Commentary\", Html.line(\"Events overlap [\" + \r\n/* 203:168 */ previousEventOfSameType.from / 1000L + \" \" + previousEventOfSameType.to / 1000L + \"] [\" + firstTriple.from / 1000L + \" \" + \r\n/* 204:169 */ firstTriple.to / 1000L + \"] \") }));\r\n/* 205: */ }\r\n/* 206: */ else\r\n/* 207: */ {\r\n/* 208:172 */ resetReference(firstTriple);\r\n/* 209:173 */ return true;\r\n/* 210: */ }\r\n/* 211: */ }\r\n/* 212: */ else\r\n/* 213: */ {\r\n/* 214:177 */ Mark.say(new Object[] {firstTriple.english, \"NOT significant\" });\r\n/* 215: */ }\r\n/* 216: */ }\r\n/* 217:180 */ return false;\r\n/* 218: */ }", "@Test\r\n void test_insert_same_vertex_twice() {\r\n graph.addVertex(\"1\");\r\n graph.addVertex(\"1\"); \r\n graph.addVertex(\"1\"); \r\n vertices = graph.getAllVertices();\r\n if(vertices.size() != 1 ||graph.order() != 1) {\r\n fail();\r\n }\r\n }", "@Test\r\n public void testCreateTourWithoutDuplicates_MultipleDups() {\r\n Tour tour = new Tour(new int[][]{{1, 1}, {2, 2}, {1, 1}, {3, 3}, {1, 1}, {1, 1}});\r\n Tour result = tour.createTourWithoutDuplicates();\r\n Tour expected = new Tour(new int[][]{{1, 1}, {2, 2}, {3, 3}});\r\n assertTrue(result.toString(), expected.isEqual(result));\r\n }", "public ArrayList<Triple> addCopyRightHolderAnnotationTriples(Node subject ,DigitalRightsManagementBean digitalRightsManagementBean){\r\n\t\t\r\n\t\tString LOG_METHOD_NAME = \" ArrayList<Triple> addCopyRightHolderTriples(Node, DigitalRightsManagementBean)\";\r\n\t\tlog.debug(this.getClass() + TripleStoreConstants.LOG_BEGIN + LOG_METHOD_NAME);\r\n\t\t\r\n\t\tArrayList<Triple> tripleList = new ArrayList<>();\r\n\t\tNode predicate = null, predicate_value=null;\r\n\t\ttry{\t\t\t\t\t\t\r\n\t\t\t//copy right holder\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getCopyRightHolderNotAvailable()) && (\"true\".equals(digitalRightsManagementBean.getCopyRightHolderNotAvailable()))){\r\n\t\t\t\t//copy right holder not available\r\n\t\t\t\tpredicate = Node.createURI(TripleStoreConstants.URI_PREDICATE_TEN_COPY_RIGHT_HOLDER_NOT_AVAILABLE);\r\n\t\t\t\tpredicate_value = Node.createLiteral(digitalRightsManagementBean.getCopyRightHolderNotAvailable());\r\n\t\t\t\ttripleList.add(new Triple(subject, predicate, predicate_value));\r\n\t\t\t\t\r\n\t\t\t\t//copy right holder finder info\r\n\t\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getCopyRightHolderFinderInfo())){\r\n\t\t\t\t\tpredicate = Node.createURI(TripleStoreConstants.URI_PREDICATE_TEN_COPY_RIGHT_HOLDER_FINDER_INFO);\r\n\t\t\t\t\tpredicate_value = Node.createLiteral(digitalRightsManagementBean.getCopyRightHolderFinderInfo());\r\n\t\t\t\t\ttripleList.add(new Triple(subject, predicate, predicate_value));\r\n\t\t\t\t}\r\n\t\t\t}else{\r\n\t\t\t\t//copy right holder not available\r\n\t\t\t\tpredicate = Node.createURI(TripleStoreConstants.URI_PREDICATE_TEN_COPY_RIGHT_HOLDER_NOT_AVAILABLE);\r\n\t\t\t\tpredicate_value = Node.createLiteral(\"false\");\r\n\t\t\t\ttripleList.add(new Triple(subject, predicate, predicate_value));\r\n\t\t\t\t\r\n\t\t\t\t//copy right holder information\r\n\t\t\t\tpredicate = Node.createURI(TripleStoreConstants.URI_PREDICATE_TEN_COPY_RIGHT_HOLDER);\r\n\t\t\t\tStringBuffer copyRightHolderAttributes = new StringBuffer();\r\n\t\t\t\t\r\n\t\t\t\t//id\r\n\t\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getCopyRightHolderId())){\r\n\t\t\t\t\tcopyRightHolderAttributes.append(TripleStoreConstants.ATTRIBUTE_ID);\r\n\t\t\t\t\tcopyRightHolderAttributes.append(\"=\");\r\n\t\t\t\t\tcopyRightHolderAttributes.append(digitalRightsManagementBean.getCopyRightHolderId());\r\n\t\t\t\t\tcopyRightHolderAttributes.append(\";\");\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t//email\r\n\t\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getCopyRightHolderEmail())){\r\n\t\t\t\t\tcopyRightHolderAttributes.append(TripleStoreConstants.ATTRIBUTE_EMAIL);\r\n\t\t\t\t\tcopyRightHolderAttributes.append(\"=\");\r\n\t\t\t\t\tcopyRightHolderAttributes.append(digitalRightsManagementBean.getCopyRightHolderEmail());\r\n\t\t\t\t\tcopyRightHolderAttributes.append(\";\");\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t//copy right holder approved\r\n\t\t\t\tboolean approved = (!Utils.isEmptyOrNull(digitalRightsManagementBean.getCopyRightHolderApproved()) \r\n\t\t\t\t\t\t\t\t\t&& \"true\".equals(digitalRightsManagementBean.getCopyRightHolderApproved()))?true:false;\r\n\t\t\t\tcopyRightHolderAttributes.append(TripleStoreConstants.ATTRIBUTE_APPROVED);\r\n\t\t\t\tcopyRightHolderAttributes.append(\"=\");\r\n\t\t\t\tcopyRightHolderAttributes.append(approved);\r\n\t\t\t\tcopyRightHolderAttributes.append(\";\");\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t//cell phone\r\n\t\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getCopyRightHolderCellPhone())){\r\n\t\t\t\t\tcopyRightHolderAttributes.append(TripleStoreConstants.ATTRIBUTE_CELL_PHONE);\r\n\t\t\t\t\tcopyRightHolderAttributes.append(\"=\");\r\n\t\t\t\t\tcopyRightHolderAttributes.append(digitalRightsManagementBean.getCopyRightHolderCellPhone());\r\n\t\t\t\t\tcopyRightHolderAttributes.append(\";\");\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t//office phone\r\n\t\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getCopyRightHolderOfficePhone())){\r\n\t\t\t\t\tcopyRightHolderAttributes.append(TripleStoreConstants.ATTRIBUTE_OFFICE_PHONE);\r\n\t\t\t\t\tcopyRightHolderAttributes.append(\"=\");\r\n\t\t\t\t\tcopyRightHolderAttributes.append(digitalRightsManagementBean.getCopyRightHolderOfficePhone());\r\n\t\t\t\t\tcopyRightHolderAttributes.append(\";\");\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t//FAX\r\n\t\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getCopyRightHolderFax())){\r\n\t\t\t\t\tcopyRightHolderAttributes.append(TripleStoreConstants.ATTRIBUTE_FAX);\r\n\t\t\t\t\tcopyRightHolderAttributes.append(\"=\");\r\n\t\t\t\t\tcopyRightHolderAttributes.append(digitalRightsManagementBean.getCopyRightHolderFax());\r\n\t\t\t\t\tcopyRightHolderAttributes.append(\";\");\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t//street address\r\n\t\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getCopyRightHolderStreetAddress())){\r\n\t\t\t\t\tcopyRightHolderAttributes.append(TripleStoreConstants.ATTRIBUTE_STREET_ADDRESS);\r\n\t\t\t\t\tcopyRightHolderAttributes.append(\"=\");\r\n\t\t\t\t\tcopyRightHolderAttributes.append(digitalRightsManagementBean.getCopyRightHolderStreetAddress());\r\n\t\t\t\t\tcopyRightHolderAttributes.append(\";\");\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t//other address\r\n\t\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getCopyRightHolderOtherAddress())){\r\n\t\t\t\t\tcopyRightHolderAttributes.append(TripleStoreConstants.ATTRIBUTE_OTHER_ADDRESS);\r\n\t\t\t\t\tcopyRightHolderAttributes.append(\"=\");\r\n\t\t\t\t\tcopyRightHolderAttributes.append(digitalRightsManagementBean.getCopyRightHolderOtherAddress());\r\n\t\t\t\t\tcopyRightHolderAttributes.append(\";\");\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t//city\r\n\t\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getCopyRightHolderCity())){\r\n\t\t\t\t\tcopyRightHolderAttributes.append(TripleStoreConstants.ATTRIBUTE_CITY);\r\n\t\t\t\t\tcopyRightHolderAttributes.append(\"=\");\r\n\t\t\t\t\tcopyRightHolderAttributes.append(digitalRightsManagementBean.getCopyRightHolderCity());\r\n\t\t\t\t\tcopyRightHolderAttributes.append(\";\");\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t//state\r\n\t\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getCopyRightHolderState())){\r\n\t\t\t\t\tcopyRightHolderAttributes.append(TripleStoreConstants.ATTRIBUTE_STATE);\r\n\t\t\t\t\tcopyRightHolderAttributes.append(\"=\");\r\n\t\t\t\t\tcopyRightHolderAttributes.append(digitalRightsManagementBean.getCopyRightHolderState());\r\n\t\t\t\t\tcopyRightHolderAttributes.append(\";\");\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t//state\r\n\t\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getCopyRightHolderZipCode())){\r\n\t\t\t\t\tcopyRightHolderAttributes.append(TripleStoreConstants.ATTRIBUTE_ZIP_CODE);\r\n\t\t\t\t\tcopyRightHolderAttributes.append(\"=\");\r\n\t\t\t\t\tcopyRightHolderAttributes.append(digitalRightsManagementBean.getCopyRightHolderZipCode());\r\n\t\t\t\t\tcopyRightHolderAttributes.append(\";\");\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tpredicate_value = Node.createLiteral(copyRightHolderAttributes.toString());\r\n\t\t\t\ttripleList.add(new Triple(subject, predicate, predicate_value));\r\n\t\t\t}\r\n\t\t}catch(Exception ex)\r\n\t\t{\r\n\t\t\tlog.error(ex);\r\n\t\t\tthrow ex;\r\n\t\t}finally{\r\n\t\t\tlog.debug(this.getClass() + TripleStoreConstants.LOG_END + LOG_METHOD_NAME);\r\n\t\t}\r\n\t\t\r\n\t\treturn tripleList;\r\n\t}", "@Test\n public void performKTails1Test() throws InternalSynopticException,\n ParseException {\n PartitionGraph pGraph = KTails.performKTails(makeSimpleGraph(), 2);\n // Only the two b nodes should be merged.\n assertTrue(pGraph.getNodes().size() == 6);\n }", "public static void main(String[] args) {\n Trip diving = new Trip(\"ScubaDiving\", new Money(2000.00, Currency.GBP),\n new HashSet<Gear>(Arrays.asList(Gear.BCD, Gear.DIVING_SUITS)),\n LocalDate.of(2021, 5, 3),\n new HashSet<Qualification>(Arrays.asList(Qualification.PADI_ADVANCED_OPEN_WATER)));\n\n // trip 2 - freediving trip\n // price per person\n Trip freeDiving = new Trip(\"FreeDiving\",\n new Money(500.00, Currency.GBP),\n new HashSet<Gear>(Arrays.asList(Gear.FREEDIVING_FINS, Gear.FREEDIVING_WET_SUITS, Gear.FREEDIVING_MASK)),\n LocalDate.of(2021, 8, 18),\n new HashSet<Qualification>(Arrays.asList(Qualification.AIDA_2)));\n\n // Lynn person detail\n Person lynn = new Person(\"Lynn\",\n new HashSet<Gear>(Arrays.asList(Gear.BCD, Gear.DIVING_SUITS)),\n new Money(2000.00, Currency.GBP),\n new HashSet<LocalDate>(Arrays.asList(LocalDate.of(2021, 5, 1), LocalDate.of(2021, 5, 2),\n LocalDate.of(2021, 5, 3))),\n new HashSet<Qualification>(Arrays.asList(Qualification.PADI_ADVANCED_OPEN_WATER, Qualification.PADI_OPEN_WATER)));\n\n // Tao person detail\n Person tao = new Person(\"TAO\",\n new HashSet<Gear>(Arrays.asList(Gear.BCD, Gear.DIVING_SUITS, Gear.FREEDIVING_MASK, Gear.FREEDIVING_WET_SUITS, Gear.FREEDIVING_FINS)),\n new Money(10000.00, Currency.GBP),\n new HashSet<LocalDate>(Arrays.asList(LocalDate.of(2021, 8, 18), LocalDate.of(2021, 5, 2),\n LocalDate.of(2021, 5, 3))),\n new HashSet<Qualification>(Arrays.asList(Qualification.PADI_ADVANCED_OPEN_WATER, Qualification.PADI_OPEN_WATER, Qualification.AIDA_2, Qualification.AIDA_3)));\n\n HashSet<Person> persons = new HashSet<>();\n HashSet<Trip> trips = new HashSet<>();\n\n persons.add(lynn);\n persons.add(tao);\n trips.add(diving);\n trips.add(freeDiving);\n\n// findTrip(persons, trips);\n\n Trip tripToGo = tripWithMaxPersons(persons, trips);\n\n System.out.println(\"Trip to go: \" + tripToGo.getName());\n System.out.println(\"=================================\");\n\n\n HashMap<Trip, HashSet<Person>> tripsAndPersons = findWhoReady(persons, trips);\n for(Trip trip: tripsAndPersons.keySet()){\n System.out.println(\"Trip \" + trip.getName() + \" ready: \" );\n HashSet<Person> personPerTrip = tripsAndPersons.get(trip);\n for(Person person: personPerTrip) {\n System.out.println(person.getName());\n }\n System.out.println(\"-------------------------------\");\n\n }\n\n\n // currency EURO\n // exchange rate?\n\n\n\n }", "public void test_ck_03() {\n // part A - surprising reification\n OntModel model1 = ModelFactory.createOntologyModel(OntModelSpec.DAML_MEM, null);\n OntModel model2 = ModelFactory.createOntologyModel(OntModelSpec.DAML_MEM_RULE_INF, null);\n \n Individual sub = model1.createIndividual(\"http://mytest#i1\", model1.getProfile().CLASS());\n OntProperty pred = model1.createOntProperty(\"http://mytest#\");\n Individual obj = model1.createIndividual(\"http://mytest#i2\", model1.getProfile().CLASS());\n OntProperty probabilityP = model1.createOntProperty(\"http://mytest#prob\");\n \n Statement st = model1.createStatement(sub, pred, obj);\n model1.add(st);\n st.createReifiedStatement().addProperty(probabilityP, 0.9);\n assertTrue(\"st should be reified\", st.isReified());\n \n Statement st2 = model2.createStatement(sub, pred, obj);\n model2.add(st2);\n st2.createReifiedStatement().addProperty(probabilityP, 0.3);\n assertTrue(\"st2 should be reified\", st2.isReified());\n \n sub.addProperty(probabilityP, 0.3);\n sub.removeAll(probabilityP).addProperty(probabilityP, 0.3); //!!!\n // exception\n \n // Part B - exception in remove All\n Individual sub2 = model2.createIndividual(\"http://mytest#i1\", model1.getProfile().CLASS());\n \n sub.addProperty(probabilityP, 0.3);\n sub.removeAll(probabilityP); //!!! exception\n \n sub2.addProperty(probabilityP, 0.3);\n sub2.removeAll(probabilityP); //!!! exception\n \n }", "public static void main(String[] args) {\n\t\t\r\n\t\tPunto pto1= new Punto(2,5);\r\n\t\tPunto pto2= new Punto(3,5);\r\n\t\tPunto pto3= new Punto(2,5);\r\n\t\t\r\n\t\tSystem.out.println(pto1.toString());\r\n\t\tSystem.out.println(pto2.equals(pto3));\r\n\t\tSystem.out.println(pto1.equals(pto3));\r\n\t}", "@Test\n public void shouldNotConsiderTriangleDependencyAsCyclic(){\n\n String a = \"A\";\n String b = \"B\";\n String c = \"C\";\n String d = \"D\";\n ValueStreamMap valueStreamMap = new ValueStreamMap(c, null);\n valueStreamMap.addUpstreamNode(new PipelineDependencyNode(a, a), null, c);\n valueStreamMap.addUpstreamNode(new PipelineDependencyNode(b, b), null, c);\n valueStreamMap.addUpstreamNode(new PipelineDependencyNode(d, d), null, b);\n valueStreamMap.addUpstreamNode(new PipelineDependencyNode(a, a), null, d);\n valueStreamMap.addUpstreamMaterialNode(new SCMDependencyNode(\"g\", \"g\", \"git\"), null, a, new MaterialRevision(null));\n\n assertThat(valueStreamMap.hasCycle(), is(false));\n }", "@Test\n public void addBlankNodesFromMultipleDatasets() throws Exception {\n try (final Dataset g1 = createDataset1();\n final Dataset g2 = createDataset2();\n final Dataset g3 = factory.createDataset()) {\n\n addAllQuads(g1, g3);\n addAllQuads(g2, g3);\n\n // Let's make a map to find all those blank nodes after insertion\n // (The Dataset implementation is not currently required to\n // keep supporting those BlankNodes with contains() - see\n // COMMONSRDF-15)\n\n final Map<String, BlankNodeOrIRI> whoIsWho = new ConcurrentHashMap<>();\n // ConcurrentHashMap as we will try parallel forEach below,\n // which should not give inconsistent results (it does with a\n // HashMap!)\n\n // look up BlankNodes by name\n final IRI name = factory.createIRI(\"http://xmlns.com/foaf/0.1/name\");\n try (Stream<? extends Quad> stream = g3.stream(null, null, name, null)) {\n stream.parallel().forEach(t -> whoIsWho.put(t.getObject().ntriplesString(), t.getSubject()));\n }\n\n assertEquals(4, whoIsWho.size());\n // and contains 4 unique values\n assertEquals(4, new HashSet<>(whoIsWho.values()).size());\n\n final BlankNodeOrIRI b1Alice = whoIsWho.get(\"\\\"Alice\\\"\");\n assertNotNull(b1Alice);\n final BlankNodeOrIRI b2Bob = whoIsWho.get(\"\\\"Bob\\\"\");\n assertNotNull(b2Bob);\n final BlankNodeOrIRI b1Charlie = whoIsWho.get(\"\\\"Charlie\\\"\");\n assertNotNull(b1Charlie);\n final BlankNodeOrIRI b2Dave = whoIsWho.get(\"\\\"Dave\\\"\");\n assertNotNull(b2Dave);\n\n // All blank nodes should differ\n notEquals(b1Alice, b2Bob);\n notEquals(b1Alice, b1Charlie);\n notEquals(b1Alice, b2Dave);\n notEquals(b2Bob, b1Charlie);\n notEquals(b2Bob, b2Dave);\n notEquals(b1Charlie, b2Dave);\n\n // And we should be able to query with them again\n // as we got them back from g3\n final IRI hasChild = factory.createIRI(\"http://example.com/hasChild\");\n // FIXME: Check graph2 BlankNode in these ..?\n assertTrue(g3.contains(null, b1Alice, hasChild, b2Bob));\n assertTrue(g3.contains(null, b2Dave, hasChild, b1Charlie));\n // But not\n assertFalse(g3.contains(null, b1Alice, hasChild, b1Alice));\n assertFalse(g3.contains(null, b1Alice, hasChild, b1Charlie));\n assertFalse(g3.contains(null, b1Alice, hasChild, b2Dave));\n // nor\n assertFalse(g3.contains(null, b2Dave, hasChild, b1Alice));\n assertFalse(g3.contains(null, b2Dave, hasChild, b1Alice));\n\n // and these don't have any children (as far as we know)\n assertFalse(g3.contains(null, b2Bob, hasChild, null));\n assertFalse(g3.contains(null, b1Charlie, hasChild, null));\n }\n }", "@Override\n public R visit(InsertTriples n, A argu) {\n R _ret = null;\n n.triplesSameSubject.accept(this, argu);\n n.nodeOptional.accept(this, argu);\n return _ret;\n }", "public boolean hasCycle(Node<T> first) {\n Iterator itOne = this.iterator();\n Iterator itTwo = this.iterator();\n try {\n while (true) {\n T one = (T) itOne.next();\n itTwo.next();\n T two = (T) itTwo.next();\n if (one.equals(two)) {\n return true;\n }\n }\n } catch (NullPointerException ex) {\n ex.printStackTrace();\n }\n return false;\n }", "public static void main(String[] args) {\n\t\t\n//\t\t//PA4 a\n//\t\tArrayList<ArrayList<String>> rhs1 = new ArrayList<>();\n//\t\tArrayList<String> rhs11 = new ArrayList<>();\n//\t\trhs11.add(\"S\");rhs11.add(\"a\");\n//\t\tArrayList<String> rhs12 = new ArrayList<>();\n//\t\trhs12.add(\"b\");\t\t\n//\t\trhs1.add(rhs11);\n//\t\trhs1.add(rhs12);\n//\n//\t\tRule r1 = new Rule(\"S\", rhs1); // S -> Aa | b\n//\t\tArrayList<Rule> rules = new ArrayList<>();\n//\t\trules.add(r1);\n//\t\tGrammar g = new Grammar(rules);\n//\t\tg.eliminateEpsilonRule();\n//\t\tg.eliminateLR();\n//\t\tSystem.out.println(g);\n//\t\tSystem.out.println(\"----------------------\");\n\t\t\n//\t\t//PA4 b\n//\t\tArrayList<ArrayList<String>> rhs1 = new ArrayList<>();\n//\t\tArrayList<String> rhs11 = new ArrayList<>();\n//\t\trhs11.add(\"S\");rhs11.add(\"a\");rhs11.add(\"b\");\n//\t\tArrayList<String> rhs12 = new ArrayList<>();\n//\t\trhs12.add(\"c\");rhs12.add(\"d\");\t\t\n//\t\trhs1.add(rhs11);\n//\t\trhs1.add(rhs12);\n//\n//\t\tRule r1 = new Rule(\"S\", rhs1); // S -> Aa | b\n//\t\tArrayList<Rule> rules = new ArrayList<>();\n//\t\trules.add(r1);\n//\t\tGrammar g = new Grammar(rules);\n//\t\tg.eliminateEpsilonRule();\n//\t\tg.eliminateLR();\n//\t\tSystem.out.println(g);\n//\t\tSystem.out.println(\"----------------------\");\n\t\t\n//\t\t//PA4 c\n//\t\tArrayList<ArrayList<String>> rhs1 = new ArrayList<>();\n//\t\tArrayList<String> rhs11 = new ArrayList<>();\n//\t\trhs11.add(\"S\");rhs11.add(\"U\");rhs11.add(\"S\");\n//\t\tArrayList<String> rhs12 = new ArrayList<>();\n//\t\trhs12.add(\"S\");rhs12.add(\"S\");\t\t\n//\t\tArrayList<String> rhs13 = new ArrayList<>();\n//\t\trhs13.add(\"S\");rhs13.add(\"*\");\n//\t\tArrayList<String> rhs14 = new ArrayList<>();\n//\t\trhs14.add(\"(\");rhs14.add(\"S\");rhs14.add(\")\");\n//\t\tArrayList<String> rhs15 = new ArrayList<>();\n//\t\trhs15.add(\"a\");\n//\t\trhs1.add(rhs11);\n//\t\trhs1.add(rhs12);\n//\t\trhs1.add(rhs13);\n//\t\trhs1.add(rhs14);\n//\t\trhs1.add(rhs15);\n//\n//\n//\t\tRule r1 = new Rule(\"S\", rhs1); // S -> Aa | b\n//\t\tArrayList<Rule> rules = new ArrayList<>();\n//\t\trules.add(r1);\n//\t\tGrammar g = new Grammar(rules);\n//\t\tg.eliminateEpsilonRule();\n//\t\tg.eliminateLR();\n//\t\tSystem.out.println(g);\n//\t\tSystem.out.println(\"----------------------\");\n\t\t\n\t\t\n//\t\t//PA-3 d\n//\t\t\n//\t\tArrayList<ArrayList<String>> rhs1 = new ArrayList<>();\n//\t\tArrayList<String> rhs11 = new ArrayList<>();\n//\t\trhs11.add(\"rexpr\");rhs11.add(\"U\");rhs11.add(\"rterm\");\t\n//\t\tArrayList<String> rhs12 = new ArrayList<>();\n//\t\trhs12.add(\"rterm\");\n//\t\trhs1.add(rhs11);\n//\t\trhs1.add(rhs12);\n//\t\tRule r1 = new Rule(\"rexpr\", rhs1);\n//\n//\t\tArrayList<ArrayList<String>> rhs2 = new ArrayList<>();\n//\t\tArrayList<String> rhs21 = new ArrayList<>();\n//\t\trhs21.add(\"rterm\");rhs21.add(\"r factor\");\n//\t\tArrayList<String> rhs22 = new ArrayList<>();\n//\t\trhs22.add(\"r factor\");\n//\t\trhs2.add(rhs21);\n//\t\trhs2.add(rhs22);\n//\t\tRule r2 = new Rule(\"rterm\", rhs2);\n//\n//\t\tArrayList<ArrayList<String>> rhs3 = new ArrayList<>();\n//\t\tArrayList<String> rhs31 = new ArrayList<>();\n//\t\trhs31.add(\"r factor\");rhs31.add(\"*\");\n//\t\tArrayList<String> rhs32 = new ArrayList<>();\n//\t\trhs32.add(\"rprimary\");\n//\t\trhs3.add(rhs31);\n//\t\trhs3.add(rhs32);\n//\t\tRule r3 = new Rule(\"r factor\", rhs3);\n//\t\t\n//\t\tArrayList<ArrayList<String>> rhs4 = new ArrayList<>();\n//\t\tArrayList<String> rhs41 = new ArrayList<>();\n//\t\trhs41.add(\"a\");\n//\t\tArrayList<String> rhs42 = new ArrayList<>();\n//\t\trhs42.add(\"b\");\n//\t\trhs4.add(rhs41);\n//\t\trhs4.add(rhs42);\n//\t\tRule r4 = new Rule(\"rprimary\", rhs4);\n//\n//\t\tArrayList<Rule> rules = new ArrayList<>();\n//\t\trules.add(r1);\n//\t\trules.add(r2);\n//\t\trules.add(r3);\n//\t\trules.add(r4);\n//\t\tGrammar g = new Grammar(rules);\n//\t\tg.eliminateEpsilonRule();\n//\t\tg.eliminateLR();\n//\n//\t\tSystem.out.println(g);\n//\t\tSystem.out.println(\"----------------------\");\t\n\t\t\t\n//\t\t//PA-3 e\t\n//\t\t\n//\t\tArrayList<ArrayList<String>> rhs1 = new ArrayList<>();\n//\t\tArrayList<String> rhs11 = new ArrayList<>();\n//\t\trhs11.add(\"0\");\n//\t\tArrayList<String> rhs12 = new ArrayList<>();\n//\t\trhs12.add(\"T\");rhs12.add(\"1\");\t\t\n//\t\trhs1.add(rhs11);\n//\t\trhs1.add(rhs12);\n//\t\t\n//\t\tArrayList<ArrayList<String>> rhs2 = new ArrayList<>();\n//\t\tArrayList<String> rhs21 = new ArrayList<>();\n//\t\trhs21.add(\"1\");\n//\t\tArrayList<String> rhs22 = new ArrayList<>();\n//\t\trhs22.add(\"A\");rhs22.add(\"0\");\t\t\n//\t\trhs2.add(rhs21);\n//\t\trhs2.add(rhs22);\n//\n//\t\tRule r1 = new Rule(\"A\", rhs1);\n//\t\tRule r2 = new Rule(\"T\", rhs2);\n//\n//\t\tArrayList<Rule> rules = new ArrayList<>();\n//\t\trules.add(r1);\n//\t\trules.add(r2);\n//\t\tGrammar g = new Grammar(rules);\n//\t\tg.eliminateEpsilonRule();\n//\t\tg.eliminateLR();\n//\t\tSystem.out.println(g);\n//\t\tSystem.out.println(\"----------------------\");\n\n\n\t\t\n//\t\t//PA-3 f\n//\t\t\n//\t\tArrayList<ArrayList<String>> rhs1 = new ArrayList<>();\n//\t\tArrayList<String> rhs11 = new ArrayList<>();\n//\t\trhs11.add(\"B\");rhs11.add(\"C\");\t\n//\t\trhs1.add(rhs11);\n//\t\tRule r1 = new Rule(\"A\", rhs1);\n//\n//\t\tArrayList<ArrayList<String>> rhs2 = new ArrayList<>();\n//\t\tArrayList<String> rhs21 = new ArrayList<>();\n//\t\trhs21.add(\"B\");rhs21.add(\"b\");\n//\t\tArrayList<String> rhs22 = new ArrayList<>();\n//\t\trhs22.add(\"e\");\n//\t\trhs2.add(rhs21);\n//\t\trhs2.add(rhs22);\n//\t\tRule r2 = new Rule(\"B\", rhs2);\n//\n//\t\tArrayList<ArrayList<String>> rhs3 = new ArrayList<>();\n//\t\tArrayList<String> rhs31 = new ArrayList<>();\n//\t\trhs31.add(\"A\");rhs31.add(\"C\");\n//\t\tArrayList<String> rhs32 = new ArrayList<>();\n//\t\trhs32.add(\"a\");\n//\t\trhs3.add(rhs31);\n//\t\trhs3.add(rhs32);\n//\t\tRule r3 = new Rule(\"C\", rhs3);\n//\n//\t\tArrayList<Rule> rules = new ArrayList<>();\n//\t\trules.add(r1);\n//\t\trules.add(r2);\n//\t\trules.add(r3);\n//\t\tGrammar g = new Grammar(rules);\n//\t\tSystem.out.println(g);\n//\t\tg.eliminateEpsilonRule();\n//\t\tSystem.out.println(g);\n//\n//\t\tg.eliminateLR();\n//\n//\t\tSystem.out.println(g);\n//\t\tSystem.out.println(\"----------------------\");\n\n\t}", "@Test\n public void checkIfPassportAndIDDocumentCombinationReturnsPassport() {\n triplets.add(new Triplets<String, Integer, Double>(\"iddocument\", 1, 90.00));\n triplets.add(new Triplets<String, Integer, Double>(\"passport\", 2, 90.00));\n Triplets<String, Integer, Double> resultTriplet = Triplets.rankRecords(triplets);\n Assert.assertEquals(\"passport\", resultTriplet.getLabel());\n Assert.assertEquals(new Integer(2), resultTriplet.getImageNumber());\n Assert.assertEquals(new Double(90.00), resultTriplet.getMatchConfidence());\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 }", "@Test\n public void testEquals04() {\n System.out.println(\"equals\");\n\n Set<City> cities = new HashSet<>();\n cities.add(new City(new Pair(41.243345, -8.674084), \"city0\", 28));\n cities.add(new City(new Pair(41.237364, -8.846746), \"city1\", 72));\n cities.add(new City(new Pair(40.519841, -8.085113), \"city2\", 81));\n cities.add(new City(new Pair(41.118700, -8.589700), \"city3\", 42));\n cities.add(new City(new Pair(41.467407, -8.964340), \"city4\", 64));\n cities.add(new City(new Pair(41.337408, -8.291943), \"city5\", 74));\n cities.add(new City(new Pair(41.314965, -8.423371), \"city6\", 80));\n cities.add(new City(new Pair(40.822244, -8.794953), \"city7\", 11));\n cities.add(new City(new Pair(40.781886, -8.697502), \"city8\", 7));\n cities.add(new City(new Pair(40.851360, -8.136585), \"city9\", 65));\n\n Object otherObject = new SocialNetwork(new HashSet(), cities);\n boolean result = sn10.equals(otherObject);\n assertFalse(result);\n }", "private static Set<Subject> findEquivalentSubjects(SubjectInfo subjectInfo, Subject targetSubject) {\n Set<Subject> subjects = new HashSet<Subject>();\n //first to try if this is a person \n AuthUtils.findPersonsSubjects(subjects, subjectInfo, targetSubject);\n if(subjects.isEmpty() || subjects.size() == 1) {\n //the return subjects from looking persons is o or 1. This means it can be group or a person without any groups.\n //let's try the group\n findEquivalentSubjectsForGroup(subjects, subjectInfo, targetSubject);\n }\n return subjects;\n }", "public void getCTPfromQuery(List<String> queryTriplets, int dedGraphId, int indxLogCleanQuery) {\n\n int indxValue = -1;\n int indxLogQueryDedGraph = mapLogClQueryToDedGraph.get(indxLogCleanQuery);\n int indxNewTPDedGraph = -1;\n List<String> tmpTripletClean = null;\n List<Integer> allIdPats = null;\n List<Integer> deducedTPnotCoveredTimestamp = new LinkedList<>();\n String strDedQueryId = Integer.toString(dedGraphId);\n boolean flagTriplePatternOutOfTimeRange = false;\n\n //For all triple patterns\n for (int f = 0; f < queryTriplets.size(); f += 3) {\n\n tmpTripletClean = myDedUtils.getCleanTP(new LinkedList<>(queryTriplets.subList(f, f + 3)));\n\n //Check if query is an Exclusive Group\n checkTPinEG(queryTriplets, tmpTripletClean, indxLogCleanQuery);\n\n //Check if query is a Bound Join implementation or it's a single TP query\n checkSingleTPorBoundJ(queryTriplets, tmpTripletClean, indxLogCleanQuery);\n\n //[CASE A] When both subjects and objects are variables, or inverseMapping is disabled\n if (tmpTripletClean.get(0).contains(\"?\") && tmpTripletClean.get(2).contains(\"?\") || !inverseMapping) {\n\n //A_(i) It's the frist time we see this CTP\n allIdPats = myDedUtils.getIdemCTPs(DTPCandidates, tmpTripletClean.get(0), tmpTripletClean.get(1), tmpTripletClean.get(2));\n\n if (allIdPats.isEmpty()) {\n\n myDedUtils.setNewCTPInfo(tmpTripletClean, \"\", indxLogCleanQuery, indxLogQueryDedGraph, strDedQueryId, \"\");\n myDedUtils.setTPtoSrcAns(tmpTripletClean, indxLogCleanQuery, \"\", DTPCandidates.size() - 1);\n } //A_(ii) It's not the first time we identify it\n else {\n\n //Then, we must be sure that it's not an existing CTP\n for (int l = allIdPats.size() - 1; l >= 0; l--) {\n\n indxNewTPDedGraph = mapCTPtoDedGraph.get(allIdPats.get(l));\n\n //First we check it belongs to the same graph with previous identified CTP\n if (indxNewTPDedGraph != indxLogQueryDedGraph) {\n\n flagTriplePatternOutOfTimeRange = true;\n myDedUtils.setNewCTPInfo(tmpTripletClean, tmpTripletClean.get(0), indxLogCleanQuery, indxLogQueryDedGraph, strDedQueryId, \"_\" + allIdPats.size());\n myDedUtils.setTPtoSrcAns(tmpTripletClean, indxLogCleanQuery, \"\", DTPCandidates.size() - 1);\n deducedTPnotCoveredTimestamp.add(DTPCandidates.size() - 1);\n break;\n } //if not, it's a new CTP (we distinguish them with \"_#number\")\n //This happens when Tjoin is not big enough to merge some subqueries\n //with same characteristics\n else {\n\n myDedUtils.updateCTPInfo(tmpTripletClean, \"\", indxLogCleanQuery, indxLogQueryDedGraph, allIdPats.get(l));\n myDedUtils.setTPtoSrcAns(tmpTripletClean, indxLogCleanQuery, \"\", allIdPats.get(l));\n\n if ((DTPCandidates.get(allIdPats.get(l)).get(0).contains(\"?\") && DTPCandidates.get(allIdPats.get(l)).get(0).contains(\"_\"))\n || (DTPCandidates.get(allIdPats.get(l)).get(2).contains(\"?\") && DTPCandidates.get(allIdPats.get(l)).get(2).contains(\"_\"))) {\n\n deducedTPnotCoveredTimestamp.add(allIdPats.get(l));\n }\n\n break;\n }\n\n }\n\n }\n\n } //If subject or object is a constant, we repeat the procedure depending \n //on if it is a Single TP or part of BoundJoin\n else {\n\n if (inverseMapping) {\n\n indxValue = myDedUtils.getIndxConstant(tmpTripletClean);\n }\n\n setOrUpdateCTPList(tmpTripletClean, indxValue, strDedQueryId, indxLogCleanQuery);\n }\n\n }\n\n //check for an exclusive group relation between CTP\n //It could be a EG or NLEG\n if (queryTriplets.size() >= 6 && !flagTriplePatternOutOfTimeRange && !queries.get(indxLogCleanQuery).contains(\"UNION\")) {\n\n if (checkEGJoin(queryTriplets)) {\n for (int i = 0; i < deducedTPnotCoveredTimestamp.size(); i++) {\n if (mapDTPToAnyJoin.get(deducedTPnotCoveredTimestamp.get(i)) == null) {\n\n mapDTPToDeducedID.put(DTPCandidates.get(deducedTPnotCoveredTimestamp.get(i)), deducedTPnotCoveredTimestamp.get(i));\n mapDTPToAnyJoin.put(deducedTPnotCoveredTimestamp.get(i), -1);\n }\n }\n }\n }\n\n }", "@Test\n\tpublic void testMultipleAddConsistency() {\n\n\t\tcontroller.addNewNodes(2);\n\t\tSignalNode first = controller.getNodesToTest().getFirst();\n\t\tSignalNode last = controller.getNodesToTest().getLast();\n\n\t\tcontroller.addSignalsToNode(first, 10000);\n\n\t\ttry {\n\t\t\tSignal sig = src.next();\n\t\t\tResult r1 = first.findSimilarTo(sig);\n\t\t\tResult r2 = last.findSimilarTo(sig);\n\t\t\tAssert.assertEquals(r1, r2);\n\t\t} catch (RemoteException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}", "private static String constructClassInstanceTriples(Class subjectClass, Property uniqueIdentifierProperty,\n\t\t\tArrayList<InsertionPropertyValue> instancePropertyValueList) {\n\n\t\t/*\n\t\t * triplesBuilder is used to build instance triples\n\t\t */\n\t\tStringBuilder triplesBuilder = new StringBuilder();\n\n\t\t/*\n\t\t * tempBuilder is a tempBuilder to hold triples.\n\t\t * \n\t\t * I used this String builder because the subjectUniqueIdentifier is the\n\t\t * value of uniqueIdentifierPrefixedPropertyName and to construct right\n\t\t * triples it must begin with the subjectUniqueIdentifier so tempBuilder\n\t\t * will hold all the triples then at the end I will append it to\n\t\t * triplesBuilder that will have the subjectUniqueIdentifier\n\t\t */\n\t\tStringBuilder tempBuilder = new StringBuilder();\n\n\t\tString subjectUniqueIdentifier = \"\";\n\n\t\t/*\n\t\t * check if the last propertyValue is the uniqueIdentifierPropertyValue\n\t\t */\n\t\tint size = instancePropertyValueList.size();\n\n\t\t/*\n\t\t * iterate over instancePropertyValueList to construct triples\n\t\t */\n\t\tint count = 0;\n\t\tString uniqueIdentifierPrefixedPropertyName = uniqueIdentifierProperty.getPrefix().getPrefix()\n\t\t\t\t+ uniqueIdentifierProperty.getName();\n\n\t\tfor (InsertionPropertyValue propertyValue : instancePropertyValueList) {\n\n\t\t\t/*\n\t\t\t * finding subjectUniqueIdentifier\n\t\t\t */\n\t\t\tif (propertyValue.getPropertyName().equals(uniqueIdentifierPrefixedPropertyName)) {\n\t\t\t\tsubjectUniqueIdentifier = propertyValue.getValue().toString().toLowerCase().replace(\" \", \"\");\n\t\t\t\tpropertyValue.setValue(getValue(uniqueIdentifierProperty, propertyValue.getValue()));\n\t\t\t}\n\n\t\t\t/*\n\t\t\t * checking if the propertyValue is the last one to end the\n\t\t\t * statement with .\n\t\t\t */\n\t\t\tif (count == size - 1) {\n\t\t\t\ttempBuilder.append(\n\t\t\t\t\t\tpropertyValue.getPropertyName() + \" \" + propertyValue.getValue().toString() + \" . \\n\");\n\t\t\t} else {\n\t\t\t\ttempBuilder.append(\n\t\t\t\t\t\tpropertyValue.getPropertyName() + \" \" + propertyValue.getValue().toString() + \" ; \\n\");\n\t\t\t}\n\n\t\t\tcount++;\n\t\t}\n\n\t\t/*\n\t\t * add subjectUniqueIdentifier and add triple that tells that\n\t\t * subjectUniqueIdentifier is of type subjectClass\n\t\t */\n\t\ttriplesBuilder.append(Prefix.IOT_PLATFORM.getPrefix() + subjectUniqueIdentifier + \" a \"\n\t\t\t\t+ subjectClass.getPrefix().getPrefix() + subjectClass.getName() + \" ; \\n\");\n\n\t\t/*\n\t\t * get all superClasses of subjectClass to identify that the new\n\t\t * instance is also an instance of all superClasses of subjectClass\n\t\t */\n\n\t\tfor (Class superClass : subjectClass.getSuperClassesList()) {\n\t\t\ttriplesBuilder.append(\" a \" + superClass.getPrefix().getPrefix() + superClass.getName() + \" ; \\n\");\n\n\t\t}\n\n\t\t/*\n\t\t * add rest of triples by appending tempBuilder\n\t\t */\n\n\t\ttriplesBuilder.append(tempBuilder.toString());\n\n\t\treturn triplesBuilder.toString();\n\n\t}", "public static void main(String args[]) throws CloneNotSupportedException\n\t{\n\t\tSystem.out.println(getRandomNumber(2, 2));\n\t\t//Node n1 = org.apache.commons.lang3.SerializationUtils.clone(n);\n\t\t//n.getNextNodes().get(\"1\").getNextNodes().put(\"1\", null);\n\t\t//System.out.println(n1.getNextNodes().get(\"1\").getNextNodes().get(\"1\"));\n\t}", "public void test_ck_02() {\n OntModel vocabModel = ModelFactory.createOntologyModel();\n ObjectProperty p = vocabModel.createObjectProperty(\"p\");\n OntClass A = vocabModel.createClass(\"A\");\n \n OntModel workModel = ModelFactory.createOntologyModel();\n Individual sub = workModel.createIndividual(\"uri1\", A);\n Individual obj = workModel.createIndividual(\"uri2\", A);\n workModel.createStatement(sub, p, obj);\n }", "public void testEquals() {\n TaskSeries s1 = new TaskSeries(\"S\");\n s1.add(new Task(\"T1\", new Date(1), new Date(2)));\n s1.add(new Task(\"T2\", new Date(11), new Date(22)));\n TaskSeries s2 = new TaskSeries(\"S\");\n s2.add(new Task(\"T1\", new Date(1), new Date(2)));\n s2.add(new Task(\"T2\", new Date(11), new Date(22)));\n TaskSeriesCollection c1 = new TaskSeriesCollection();\n c1.add(s1);\n c1.add(s2);\n TaskSeries s1b = new TaskSeries(\"S\");\n s1b.add(new Task(\"T1\", new Date(1), new Date(2)));\n s1b.add(new Task(\"T2\", new Date(11), new Date(22)));\n TaskSeries s2b = new TaskSeries(\"S\");\n s2b.add(new Task(\"T1\", new Date(1), new Date(2)));\n s2b.add(new Task(\"T2\", new Date(11), new Date(22)));\n TaskSeriesCollection c2 = new TaskSeriesCollection();\n c2.add(s1b);\n c2.add(s2b);\n }", "@Test\n public void performKTails0Test() throws InternalSynopticException,\n ParseException {\n PartitionGraph pGraph = KTails.performKTails(makeSimpleGraph(), 1);\n // All a's and b's should be merged + initial + terminal.\n assertTrue(pGraph.getNodes().size() == 4);\n }", "@Test\n public void TestIfNoCycle() {\n final int NUMBER_OF_ELEMENTS = 100;\n TripleList<Integer> tripleList = new TripleList<>();\n for (int i = 0; i < NUMBER_OF_ELEMENTS; ++i) {\n tripleList.add(i);\n }\n /**\n * Created 2 TripleLists, first jumps every single element, another\n * every two elements, in out case every two elements means every\n * NextElement*\n */\n TripleList<Integer> tripleListEverySingleNode = tripleList;\n TripleList<Integer> tripleListEveryTwoNodes = tripleList.getNext();\n for (int i = 0; i < NUMBER_OF_ELEMENTS * NUMBER_OF_ELEMENTS; ++i) {\n Assert.assertNotSame(tripleListEverySingleNode, tripleListEveryTwoNodes);\n //JumpToNextElement(ref tripleListEverySingleNode);\n if (null == tripleListEveryTwoNodes.getNext()) {\n // if list has end means there are no cycles\n break;\n } else {\n tripleListEveryTwoNodes = tripleListEveryTwoNodes.getNext();\n }\n }\n }", "public static void main(String[] args) {\n\t\tNode test = new Node(1);\n\t\t\n\t\tlogger.info(String.valueOf(hasCycle(test)));\n\t\t\n\t\t//Test second list - 1 -> 2 -> 3 -> 2 -> 3 [...]\n\t\tNode head = new Node(1);\n\t\tNode next = new Node(2);\n\t head.setNext(next); \n\t head.getNext().setNext(new Node(3));\n\t head.getNext().getNext().setNext(next);\n\t \n\t logger.info(String.valueOf(hasCycle(head)));\n\t}", "@Test\n public void checkIfNullandPassportRecord() {\n triplets.add(null);\n triplets.add(new Triplets<String, Integer, Double>(\"passport\", 1, 90.00));\n triplets.add(new Triplets<String, Integer, Double>(\"iddocument\", 1, 90.00));\n Triplets<String, Integer, Double> resultTriplet = Triplets.rankRecords(triplets);\n Assert.assertEquals(\"passport\", resultTriplet.getLabel());\n Assert.assertEquals(new Integer(1), resultTriplet.getImageNumber());\n Assert.assertEquals(new Double(90.0), resultTriplet.getMatchConfidence());\n }", "@Test\n public void testEquals() {\n Term t1 = structure(\"abc\", atom(\"a\"), atom(\"b\"), atom(\"c\"));\n Term t2 = structure(\"abc\", integerNumber(), decimalFraction(), variable());\n PredicateKey k1 = PredicateKey.createForTerm(t1);\n PredicateKey k2 = PredicateKey.createForTerm(t2);\n testEquals(k1, k2);\n }", "public static void main(String[] args) {\n\t\tNode n = new Node(0);\r\n\t\tNode dummy = n;\r\n\t\tn.next = new Node(1);\r\n\t\tn = n.next;\r\n\t\tn.next = new Node(1);\r\n\t\tn = n.next;\r\n\t\tfor (int i = 1; i < 10; i ++) {\r\n\t\t\tn.next = new Node(i);\r\n\t\t\tn = n.next;\r\n\t\t}\r\n\t\tremoveDuplicate(dummy);\r\n\t\twhile(dummy != null) {\r\n\t\t\tSystem.out.println(dummy.val);\r\n\t\t\tdummy = dummy.next;\r\n\t\t}\r\n\t\t\r\n\t}", "boolean isTransitive();", "@Test\n public void identicalLinearGraphsTest() throws Exception {\n // Create two a->b->c->d graphs\n String events[] = new String[] { \"a\", \"b\", \"c\", \"d\" };\n EventNode[] g1Nodes = getChainTraceGraphNodesInOrder(events);\n EventNode[] g2Nodes = getChainTraceGraphNodesInOrder(events);\n\n // Check that g1 and g2 are equivalent for all k at every corresponding\n // node, regardless of subsumption.\n\n // NOTE: both graphs have an additional INITIAL and TERMINAL nodes, thus\n // the +2 in the loop condition.\n EventNode e1, e2;\n for (int i = 0; i < (events.length + 2); i++) {\n e1 = g1Nodes[i];\n e2 = g2Nodes[i];\n for (int k = 1; k < 6; k++) {\n testKEqual(e1, e2, k);\n testKEqual(e1, e1, k);\n }\n }\n }", "public ArrayList<Triple> addAdministrativeAnnotationTriples(Node subject ,DigitalRightsManagementBean digitalRightsManagementBean){\r\n\t\t\r\n\t\tString LOG_METHOD_NAME = \" ArrayList<Triple> addAdministrativeAnnotationTriples(Node, DigitalRightsManagementBean)\";\r\n\t\tlog.debug(this.getClass() + TripleStoreConstants.LOG_BEGIN + LOG_METHOD_NAME);\r\n\t\t\r\n\t\tArrayList<Triple> tripleList = new ArrayList<>();\r\n\t\tNode predicate = null, predicate_value=null;\r\n\t\ttry{\t\t\t\t\t\t\r\n\t\t\t//physicalDescription\t\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getPhysicalDescription())){\r\n\t\t\t\tpredicate = Node.createURI(TripleStoreConstants.URI_PREDICATE_TEN_PHYSICAL_DESCRIPTION);\r\n\t\t\t\tpredicate_value = Node.createLiteral(digitalRightsManagementBean.getPhysicalDescription());\r\n\t\t\t\ttripleList.add(new Triple(subject, predicate, predicate_value));\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//loan period\t\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getLoanPeriod())){\r\n\t\t\t\tpredicate = Node.createURI(TripleStoreConstants.URI_PREDICATE_TEN_LOAN_PERIOD);\r\n\t\t\t\tpredicate_value = Node.createLiteral(digitalRightsManagementBean.getLoanPeriod());\r\n\t\t\t\ttripleList.add(new Triple(subject, predicate, predicate_value));\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//identifier\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getIdentifier())){\r\n\t\t\t\tpredicate = Node.createURI(TripleStoreConstants.URI_PREDICATE_TEN_SOURCE_IDENTIFIER);\r\n\t\t\t\tpredicate_value = Node.createLiteral(digitalRightsManagementBean.getIdentifier());\r\n\t\t\t\ttripleList.add(new Triple(subject, predicate, predicate_value));\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//identifier description\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getIdentifierDescription())){\r\n\t\t\t\tpredicate = Node.createURI(TripleStoreConstants.URI_PREDICATE_TEN_SOURCE_IDENTIFIER_DESCRIPTION);\r\n\t\t\t\tpredicate_value = Node.createLiteral(digitalRightsManagementBean.getIdentifierDescription());\r\n\t\t\t\ttripleList.add(new Triple(subject, predicate, predicate_value));\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//handling instructions\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getHandlingInstructions())){\r\n\t\t\t\tpredicate = Node.createURI(TripleStoreConstants.URI_PREDICATE_TEN_HANDLING_INSTRUCTIONS);\r\n\t\t\t\tpredicate_value = Node.createLiteral(digitalRightsManagementBean.getHandlingInstructions());\r\n\t\t\t\ttripleList.add(new Triple(subject, predicate, predicate_value));\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//rights\t\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getRights())){\r\n\t\t\t\tpredicate = Node.createURI(TripleStoreConstants.URI_PREDICATE_DC_RIGHTS);\r\n\t\t\t\tpredicate_value = Node.createLiteral(digitalRightsManagementBean.getRights());\r\n\t\t\t\ttripleList.add(new Triple(subject, predicate, predicate_value));\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//intaker\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getIntaker())){\r\n\t\t\t\tpredicate = Node.createURI(TripleStoreConstants.URI_PREDICATE_TEN_INTAKER);\r\n\t\t\t\tpredicate_value = Node.createLiteral(digitalRightsManagementBean.getIntaker());\r\n\t\t\t\ttripleList.add(new Triple(subject, predicate, predicate_value));\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//date of learning object creation\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getDateOfUpload())){\r\n\t\t\t\tpredicate = Node.createURI(TripleStoreConstants.URI_PREDICATE_TEN_DATE_UPLOAD);\r\n\t\t\t\tpredicate_value = Node.createLiteral(digitalRightsManagementBean.getDateOfUpload());\r\n\t\t\t\ttripleList.add(new Triple(subject, predicate, predicate_value));\r\n\t\t\t}\t\t\t\r\n\t\t\t\r\n\t\t\t//Story provided\r\n\t\t\tboolean storyProvided = (!Utils.isEmptyOrNull(digitalRightsManagementBean.getStoryProvided()) \r\n\t\t\t\t\t&& \"true\".equals(digitalRightsManagementBean.getStoryProvided()))?true:false;\r\n\t\t\tpredicate = Node.createURI(TripleStoreConstants.URI_PREDICATE_TEN_STORY_PROVIDED);\r\n\t\t\tpredicate_value = Node.createLiteral(String.valueOf(storyProvided));\r\n\t\t\ttripleList.add(new Triple(subject, predicate, predicate_value));\r\n\t\t\t\r\n\t\t\t//story\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getStory())){\r\n\t\t\t\tpredicate = Node.createURI(TripleStoreConstants.URI_PREDICATE_TEN_STORY);\r\n\t\t\t\tpredicate_value = Node.createLiteral(digitalRightsManagementBean.getStory());\r\n\t\t\t\ttripleList.add(new Triple(subject, predicate, predicate_value));\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\t//story context\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getStoryContext())){\r\n\t\t\t\tpredicate = Node.createURI(TripleStoreConstants.URI_PREDICATE_TEN_STORY_CONTEXT);\r\n\t\t\t\tpredicate_value = Node.createLiteral(digitalRightsManagementBean.getStoryContext());\r\n\t\t\t\ttripleList.add(new Triple(subject, predicate, predicate_value));\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(storyProvided){\r\n\t\t\t\ttripleList.addAll(addStoryProviderAnnotationTriples(subject, digitalRightsManagementBean));\r\n\t\t\t}\r\n\t\t\t\t\t\r\n\t\t}catch(Exception ex)\r\n\t\t{\r\n\t\t\tlog.error(ex);\r\n\t\t\tthrow ex;\r\n\t\t}finally{\r\n\t\t\tlog.debug(this.getClass() + TripleStoreConstants.LOG_END + LOG_METHOD_NAME);\r\n\t\t}\r\n\t\t\r\n\t\treturn tripleList;\r\n\t}", "@Test\n public void testParallelPropagationLoopBack3SitesNtoNTopologyPutFromOneDS() {\n Integer lnPort = vm0.invoke(() -> WANTestBase.createFirstLocatorWithDSId(1));\n Integer nyPort = vm1.invoke(() -> WANTestBase.createFirstRemoteLocator(2, lnPort));\n Integer tkPort = vm2.invoke(() -> WANTestBase.createFirstRemoteLocator(3, lnPort));\n\n createCacheInVMs(lnPort, vm3, vm6);\n createCacheInVMs(nyPort, vm4, vm7);\n createCacheInVMs(tkPort, vm5);\n vm3.invoke(WANTestBase::createReceiver);\n vm4.invoke(WANTestBase::createReceiver);\n vm5.invoke(WANTestBase::createReceiver);\n\n // site1\n vm3.invoke(() -> WANTestBase.createSender(\"ln1\", 2, true, 100, 10, false, false, null, true));\n vm6.invoke(() -> WANTestBase.createSender(\"ln1\", 2, true, 100, 10, false, false, null, true));\n\n vm3.invoke(() -> WANTestBase.createSender(\"ln2\", 3, true, 100, 10, false, false, null, true));\n vm6.invoke(() -> WANTestBase.createSender(\"ln2\", 3, true, 100, 10, false, false, null, true));\n\n // site2\n vm4.invoke(() -> WANTestBase.createSender(\"ny1\", 1, true, 100, 10, false, false, null, true));\n vm7.invoke(() -> WANTestBase.createSender(\"ny1\", 1, true, 100, 10, false, false, null, true));\n\n vm4.invoke(() -> WANTestBase.createSender(\"ny2\", 3, true, 100, 10, false, false, null, true));\n vm7.invoke(() -> WANTestBase.createSender(\"ny2\", 3, true, 100, 10, false, false, null, true));\n\n // site3\n vm5.invoke(() -> WANTestBase.createSender(\"tk1\", 1, true, 100, 10, false, false, null, true));\n vm5.invoke(() -> WANTestBase.createSender(\"tk2\", 2, true, 100, 10, false, false, null, true));\n\n // create PR\n vm3.invoke(() -> WANTestBase.createPartitionedRegion(getTestMethodName() + \"_PR\", \"ln1,ln2\", 0,\n 1, isOffHeap()));\n vm6.invoke(() -> WANTestBase.createPartitionedRegion(getTestMethodName() + \"_PR\", \"ln1,ln2\", 0,\n 1, isOffHeap()));\n\n vm4.invoke(() -> WANTestBase.createPartitionedRegion(getTestMethodName() + \"_PR\", \"ny1,ny2\", 0,\n 1, isOffHeap()));\n vm7.invoke(() -> WANTestBase.createPartitionedRegion(getTestMethodName() + \"_PR\", \"ny1,ny2\", 0,\n 1, isOffHeap()));\n\n vm5.invoke(() -> WANTestBase.createPartitionedRegion(getTestMethodName() + \"_PR\", \"tk1,tk2\", 0,\n 1, isOffHeap()));\n\n // start all the senders\n vm3.invoke(() -> WANTestBase.startSender(\"ln1\"));\n vm3.invoke(() -> WANTestBase.startSender(\"ln2\"));\n vm6.invoke(() -> WANTestBase.startSender(\"ln1\"));\n vm6.invoke(() -> WANTestBase.startSender(\"ln2\"));\n\n vm4.invoke(() -> WANTestBase.startSender(\"ny1\"));\n vm4.invoke(() -> WANTestBase.startSender(\"ny2\"));\n vm7.invoke(() -> WANTestBase.startSender(\"ny1\"));\n vm7.invoke(() -> WANTestBase.startSender(\"ny2\"));\n\n vm5.invoke(() -> WANTestBase.startSender(\"tk1\"));\n vm5.invoke(() -> WANTestBase.startSender(\"tk2\"));\n\n // pause senders on all the sites\n vm3.invoke(() -> WANTestBase.pauseSender(\"ln1\"));\n vm3.invoke(() -> WANTestBase.pauseSender(\"ln2\"));\n vm6.invoke(() -> WANTestBase.pauseSender(\"ln1\"));\n vm6.invoke(() -> WANTestBase.pauseSender(\"ln2\"));\n\n vm4.invoke(() -> WANTestBase.pauseSender(\"ny1\"));\n vm4.invoke(() -> WANTestBase.pauseSender(\"ny2\"));\n vm7.invoke(() -> WANTestBase.pauseSender(\"ny1\"));\n vm7.invoke(() -> WANTestBase.pauseSender(\"ny2\"));\n\n vm5.invoke(() -> WANTestBase.pauseSender(\"tk1\"));\n vm5.invoke(() -> WANTestBase.pauseSender(\"tk2\"));\n\n // this is required since sender pause doesn't take effect immediately\n Wait.pause(1000);\n\n // do puts on site1\n vm3.invoke(() -> WANTestBase.doPuts(getTestMethodName() + \"_PR\", 100));\n\n // verify queue size on site1 and site3\n vm3.invoke(() -> WANTestBase.verifyQueueSize(\"ln1\", 100));\n vm3.invoke(() -> WANTestBase.verifyQueueSize(\"ln2\", 100));\n\n // resume sender (from site1 to site2) on site1\n vm3.invoke(() -> WANTestBase.resumeSender(\"ln1\"));\n vm6.invoke(() -> WANTestBase.resumeSender(\"ln1\"));\n\n // validate region size on site2\n vm4.invoke(() -> WANTestBase.validateRegionSize(getTestMethodName() + \"_PR\", 100));\n\n // verify queue size on site2 (sender 2 to 1)\n // should remain at 0 as the events from site1 should not go back to site1\n vm4.invoke(() -> WANTestBase.verifyQueueSize(\"ny1\", 0));\n\n // verify queue size on site2 (sender 2 to 3)\n // should remain at 0 as events from site1 will reach site3 directly..site2 need not send to\n // site3 again\n vm4.invoke(() -> WANTestBase.verifyQueueSize(\"ny2\", 0));\n\n // do more puts on site3\n vm5.invoke(() -> WANTestBase.doPutsFrom(getTestMethodName() + \"_PR\", 100, 200));\n\n // resume sender (from site3 to site2) on site3\n vm5.invoke(() -> WANTestBase.resumeSender(\"tk2\"));\n\n // validate region size on site2\n vm4.invoke(() -> WANTestBase.validateRegionSize(getTestMethodName() + \"_PR\", 200));\n\n // verify queue size on site2 (sender 2 to 3)\n // should remain at 0 as the events from site3 should not go back to site3\n vm4.invoke(() -> WANTestBase.verifyQueueSize(\"ny2\", 0));\n\n // verify queue size on site2 (sender 2 to 1)\n // should remain at 0 as events from site3 will reach site1 directly..site2 need not send to\n // site1 again\n vm4.invoke(() -> WANTestBase.verifyQueueSize(\"ny1\", 0));\n\n // resume all senders\n vm3.invoke(() -> WANTestBase.resumeSender(\"ln2\"));\n vm6.invoke(() -> WANTestBase.resumeSender(\"ln2\"));\n\n vm4.invoke(() -> WANTestBase.resumeSender(\"ny1\"));\n vm4.invoke(() -> WANTestBase.resumeSender(\"ny2\"));\n vm7.invoke(() -> WANTestBase.resumeSender(\"ny1\"));\n vm7.invoke(() -> WANTestBase.resumeSender(\"ny2\"));\n\n vm5.invoke(() -> WANTestBase.resumeSender(\"tk1\"));\n\n // validate region size on all sites\n vm3.invoke(() -> WANTestBase.validateRegionSize(getTestMethodName() + \"_PR\", 200));\n vm4.invoke(() -> WANTestBase.validateRegionSize(getTestMethodName() + \"_PR\", 200));\n vm5.invoke(() -> WANTestBase.validateRegionSize(getTestMethodName() + \"_PR\", 200));\n }", "public abstract int numOfSameTypeNeighbourToReproduce();", "public static void main(String[] args) {\n\n ListNode head = new ListNode(1);\n ListNode node2 = new ListNode(1);\n ListNode node3 = new ListNode(1);\n ListNode node4 = new ListNode(1);\n ListNode node5 = new ListNode(1);\n ListNode node6 = new ListNode(2);\n\n node5.next = node6;\n node4.next = node5;\n node3.next = node4;\n node2.next = node3;\n head.next = node2;\n\n removeDuplicateNodes(head);\n\n return;\n }", "public MinimumTrialsSourceToDestWord()\n {\n nodeList = new HashMap<T, GraphNode>();\n }", "public static void main(String[] args)\r\n\t{\r\n\t\r\n\t\tSet<String> lhs = new LinkedHashSet<>();\r\n\t\tlhs.add(\"Srividhya\");\r\n\t\tlhs.add(\"Srinath\");\r\n\t\tlhs.add(\"Shringesh\");\r\n\t\tlhs.add(\"Srividhya\");\r\n\t\tlhs.add(null);\r\n\t\t\r\n\t\tfor (String lhselement : lhs)\r\n\t\t{\r\n\t\t\tSystem.out.println(\"print the linked hasset elemenet :\"+lhselement);\r\n\t\t}\r\n\t\t\r\n\r\n\t}", "public void insertTripleDistributedByObject(Triple triple) {\n\r\n }", "public void containsNoDuplicates() {\n List<Entry<T>> duplicates = Lists.newArrayList();\n for (Multiset.Entry<T> entry : LinkedHashMultiset.create(getSubject()).entrySet()) {\n if (entry.getCount() > 1) {\n duplicates.add(entry);\n }\n }\n if (!duplicates.isEmpty()) {\n failWithRawMessage(\"%s has the following duplicates: <%s>\", getDisplaySubject(), duplicates);\n }\n }", "@Override\n public boolean equals(Object object) {\n if (!(object instanceof Trips)) {\n return false;\n }\n Trips other = (Trips) object;\n if ((this.tripId == null && other.tripId != null) || (this.tripId != null && !this.tripId.equals(other.tripId))) {\n return false;\n }\n return true;\n }", "public static void main(String[] args) {\n\t\t\r\n\t\tRemoveDuplicates r=new RemoveDuplicates();\r\n\t\tNode4 n1=new Node4(3);\r\n\t\tn1.next=null;\r\n\t\t//n1.next.next=new Node4(7);\r\n\t//\tn1.next.next.next=new Node4(6);\r\n\t\t//n1.next.next.next.next=new Node4(7);\r\n\t n1=r.removingDuplicates(n1);\r\n\twhile(n1!=null)\r\n\t\t{\tSystem.out.print(n1.val+\"->\");\r\n\t\t\tn1=n1.next;}\r\n\t\r\n\t\t\r\n\t}", "public boolean checkEGJoin(List<String> queryTriplets) {\n\n boolean flagEG = false;\n boolean foundEG = false;\n List<List<String>> newEGpair = null;\n List<List<String>> newEGpair2 = null;\n List<String> innerDTP = null;\n List<String> outerDTP = null;\n List<String> currEG = null;\n\n if (queryTriplets.size() >= 6) {\n\n for (int key : mapTmpEGtoAllTPs.keySet()) {\n\n currEG = mapTmpEGtoAllTPs.get(key);\n int commElems = myBasUtils.candidateTPcomElems(currEG, queryTriplets);\n\n if (currEG.size() == queryTriplets.size()) {\n\n // the second condition, is used to capture Nested Loop with EG operator, made by FedX\n if (commElems == currEG.size() || commElems == currEG.size() - 1) {\n\n if (commElems == currEG.size() - 1) {\n\n mapEGtoCancel.put(key, 1);\n mapEGtoOccurs.put(currEG, 2);\n }\n\n foundEG = true;\n break;\n }\n\n }\n\n }\n\n //If it's the first time we see this EG or NLEG, we save each pairWise join as EG\n if (!foundEG) {\n\n int indEG = mapTmpEGtoAllTPs.size();\n mapTmpEGtoAllTPs.put(indEG, queryTriplets);\n mapEGtoOccurs.put(currEG, 1);\n\n for (int i = 0; i < queryTriplets.size(); i += 3) {\n\n outerDTP = myDedUtils.getCleanTP(new LinkedList<>(queryTriplets.subList(i, i + 3)));\n for (int f = i + 3; f < queryTriplets.size(); f += 3) {\n\n flagEG = true;\n innerDTP = myDedUtils.getCleanTP(new LinkedList<>(queryTriplets.subList(f, f + 3)));\n newEGpair = Arrays.asList(innerDTP, outerDTP);\n newEGpair2 = Arrays.asList(outerDTP, innerDTP);\n myDedUtils.setNewEGInfo(outerDTP, innerDTP, newEGpair, newEGpair2, indEG);\n }\n\n }\n }\n\n }\n\n return flagEG;\n }", "public MultiGraph(boolean directed) {\r\n\t\tsuper(directed ? Type.DIRECTED : Type.UNDIRECTED);\r\n\t}", "public TSPMSTSolution(int iterations)\n {\n// System.out.println(\"NODE CREATED\");\n this.included = new int[0];\n this.includedT = new int[0];\n this.excluded = new int[0];\n this.excludedT = new int[0];\n this.iterations = iterations;\n }", "protected String[] getTriples() {\n\t\tString[] contents = new String[3];\n\t\tString message = \"\";\n\t\tint rowcount = tripleTable.getRowCount();\n\t\tlogger.log(Level.SEVERE, tripleTable.getText(0, 0));\n\t\twhile (rowcount > 1) {\n\t\t\tlogger.log(Level.SEVERE, \"Rowcount is: \" + rowcount);\n\n\t\t\tcontents[0] = (tripleTable.getText(rowcount - 1, 0));\n\t\t\tcontents[1] = (tripleTable.getText(rowcount - 1, 1));\n\t\t\tcontents[2] = (tripleTable.getText(rowcount - 1, 2));\n\t\t\tmessage += \"\\nSubject: \" + contents[0] + \"\\nPredicate: \" + contents[1] + \"\\nObject: \" + contents[2];\n\t\t\tlogger.log(Level.SEVERE, contents[1]);\n\t\t\ttripleTable.removeRow(rowcount - 1);\n\n\t\t\tfinal AsyncCallback<String[]> sendToTripleStore = new AsyncCallback<String[]>() {\n\n\t\t\t\t@Override\n\t\t\t\tpublic void onFailure(Throwable caught) {\n\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\tWindow.alert(\"FAILED TO UPLOAD\");\n\t\t\t\t}\n\n\t\t\t\t@Override\n\t\t\t\tpublic void onSuccess(String[] result) {\n\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\tWindow.alert(\"UPLOADED\");\n\t\t\t\t}\n\n\t\t\t};\n\t\t\tgreetingService.sendToTripleStore(contents, sendToTripleStore);\n\t\t\tlogger.log(Level.SEVERE, \"Uploaded a triple\");\n\t\t\trowcount = tripleTable.getRowCount();\n\t\t\t// logger.log(Level.SEVERE, \"rowcount= \" + rowcount);\n\t\t}\n\n\t\t// StringEscapeUtils seu = new StringEscapeUtils();\n\t\tHTML triples_sent = new HTML(message);\n\t\tdialogBoxContents.add(triples_sent);\n\t\tdialogBoxContents.add(close);\n\t\tdBox.setWidget(dialogBoxContents);\n\t\tdBox.center();\n\t\t// return new_triple_list;\n\t\treturn contents;\n\t}", "@Test\r\n void test_remove_same_edge_twice() {\r\n // Add two vertices with one edge\r\n graph.addEdge(\"A\", \"B\");\r\n graph.addEdge(\"A\", \"C\");\r\n graph.removeEdge(\"A\", \"B\");\r\n graph.removeEdge(\"A\", \"B\");\r\n if (graph.size() != 1) {\r\n fail();\r\n }\r\n if (graph.getAdjacentVerticesOf(\"A\").contains(\"B\")) {\r\n fail();\r\n } \r\n }", "public Trips(String alias) {\n this(alias, TRIPS);\n }", "@Test\n public void testListWithNulls() {\n Node makeNull = Node.ROOT\n .withName(\"makeNull\")\n .withFunction(\"test/makeNull\")\n .withInputAdded(Port.floatPort(\"value\", 0.0));\n Node net = Node.NETWORK\n .withChildAdded(threeNumbers)\n .withChildAdded(makeNull)\n .connect(\"threeNumbers\", \"makeNull\", \"value\");\n assertResultsEqual(net, makeNull);\n }", "public Trips(Trip[] trips) {\n filters = new HashMap<>();\n comparator = Comparator.comparing(Trip::getTravelTime);\n this.trips = new ArrayList<>(Arrays.asList(trips));\n modifiedSinceLastResult = true;\n }", "@Test\n public void getGraph2() throws Exception {\n final BlankNodeOrIRI graph2Name = (BlankNodeOrIRI) dataset.stream(Optional.empty(), bob, isPrimaryTopicOf, null)\n .map(Quad::getObject).findAny().get();\n\n try (final Graph g2 = dataset.getGraph(graph2Name).get()) {\n assertEquals(4, g2.size());\n final Triple bobNameTriple = bobNameQuad.asTriple();\n assertTrue(g2.contains(bobNameTriple));\n assertTrue(g2.contains(bob, member, bnode1));\n assertTrue(g2.contains(bob, member, bnode2));\n assertFalse(g2.contains(bnode1, name, secretClubName));\n assertTrue(g2.contains(bnode2, name, companyName));\n }\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 }", "public Trips() {\n this(\"trips\", null);\n }", "@Test\n public void example10 () throws Exception {\n ValueFactory f = repo.getValueFactory();\n String exns = \"http://example.org/people/\";\n URI alice = f.createURI(exns, \"alice\");\n URI bob = f.createURI(exns, \"bob\");\n URI ted = f.createURI(exns, \"ted\"); \n URI person = f.createURI(\"http://example.org/ontology/Person\");\n URI name = f.createURI(\"http://example.org/ontology/name\");\n Literal alicesName = f.createLiteral(\"Alice\");\n Literal bobsName = f.createLiteral(\"Bob\");\n Literal tedsName = f.createLiteral(\"Ted\"); \n URI context1 = f.createURI(exns, \"cxt1\"); \n URI context2 = f.createURI(exns, \"cxt2\"); \n conn.add(alice, RDF.TYPE, person, context1);\n conn.add(alice, name, alicesName, context1);\n conn.add(bob, RDF.TYPE, person, context2);\n conn.add(bob, name, bobsName, context2);\n conn.add(ted, RDF.TYPE, person);\n conn.add(ted, name, tedsName);\n \n assertSetsEqual(\n stmts(new Stmt[] {\n new Stmt(alice, RDF.TYPE, person, context1),\n new Stmt(alice, name, alicesName, context1),\n new Stmt(bob, RDF.TYPE, person, context2),\n new Stmt(bob, name, bobsName, context2),\n new Stmt(ted, RDF.TYPE, person),\n new Stmt(ted, name, tedsName)\n }),\n statementSet(conn.getStatements(null, null, null, false)));\n assertSetsEqual(\n stmts(new Stmt[] {\n new Stmt(alice, RDF.TYPE, person, context1),\n new Stmt(alice, name, alicesName, context1),\n new Stmt(bob, RDF.TYPE, person, context2),\n new Stmt(bob, name, bobsName, context2)\n }),\n statementSet(conn.getStatements(null, null, null, false, context1, context2)));\n assertSetsEqual(\n stmts(new Stmt[] {\n new Stmt(bob, RDF.TYPE, person, context2),\n new Stmt(bob, name, bobsName, context2),\n new Stmt(ted, RDF.TYPE, person),\n new Stmt(ted, name, tedsName)\n }),\n statementSet(conn.getStatements(null, null, null, false, null, context2)));\n \n // testing named graph query\n DatasetImpl ds = new DatasetImpl();\n ds.addNamedGraph(context1);\n ds.addNamedGraph(context2);\n TupleQuery tupleQuery = conn.prepareTupleQuery(\n QueryLanguage.SPARQL, \"SELECT ?s ?p ?o ?g WHERE { GRAPH ?g {?s ?p ?o . } }\");\n tupleQuery.setDataset(ds);\n assertSetsEqual(\n stmts(new Stmt[] {\n new Stmt(alice, RDF.TYPE, person, context1),\n new Stmt(alice, name, alicesName, context1),\n new Stmt(bob, RDF.TYPE, person, context2),\n new Stmt(bob, name, bobsName, context2)\n }),\n statementSet(tupleQuery.evaluate()));\n \n ds = new DatasetImpl();\n ds.addDefaultGraph(null);\n tupleQuery = conn.prepareTupleQuery(QueryLanguage.SPARQL, \"SELECT ?s ?p ?o WHERE {?s ?p ?o . }\");\n tupleQuery.setDataset(ds);\n assertSetsEqual(\n stmts(new Stmt[] {\n new Stmt(ted, RDF.TYPE, person),\n new Stmt(ted, name, tedsName)\n }),\n statementSet(tupleQuery.evaluate()));\n }", "private static PropertyFunctionInstance magicProperty(Context context,\n Triple pfTriple,\n BasicPattern triples)\n {\n List<Triple> listTriples = new ArrayList<>() ;\n\n GNode sGNode = new GNode(triples, pfTriple.getSubject()) ;\n GNode oGNode = new GNode(triples, pfTriple.getObject()) ;\n List<Node> sList = null ;\n List<Node> oList = null ;\n \n if ( GraphList.isListNode(sGNode) )\n {\n sList = GraphList.members(sGNode) ;\n GraphList.allTriples(sGNode, listTriples) ;\n }\n if ( GraphList.isListNode(oGNode) )\n {\n oList = GraphList.members(oGNode) ;\n GraphList.allTriples(oGNode, listTriples) ;\n }\n \n PropFuncArg subjArgs = new PropFuncArg(sList, pfTriple.getSubject()) ;\n PropFuncArg objArgs = new PropFuncArg(oList, pfTriple.getObject()) ;\n \n // Confuses single arg with a list of one. \n PropertyFunctionInstance pfi = new PropertyFunctionInstance(subjArgs, pfTriple.getPredicate(), objArgs) ;\n \n triples.getList().removeAll(listTriples) ;\n return pfi ;\n }", "public abstract Multigraph buildMatchedGraph();", "public static void main(String[] args){\n String[] l1 = {\"Preben\", \"Morten\", \"Rudi\", \"Mikael\", \"Marianne\", \"Cecilie\"};\n String[] l2 = {\"Preben\", \"Morten\", \"Rudi\", \"Mikael\", \"Marianne\", \"Cecilie\", \"Alfa\"};\n String[] l3 = {\"Preben\", \"Morten\", \"Rudi\", \"Mikael\", \"Marianne\", \"Cecilie\", \"Alfa\"};\n String[] l4 = {\"Preben\", \"Morten\", \"Rudi\", \"Mikael\", \"Marianne\", \"Cecilie\", \"Beta\", \"Quatro\", \"Alfa\"};\n String result = checkList(l1, l2, l3,l4);\n if (result == \"\")\n System.out.println(\"No triplet\");\n else\n System.out.println(result);\n }", "@Test\r\n void test_insert_same_edge_twice() {\r\n // Add two vertices with one edge\r\n graph.addEdge(\"A\", \"B\");\r\n graph.addEdge(\"A\", \"B\");\r\n if (graph.size() != 1) {\r\n fail();\r\n }\r\n if (!graph.getAdjacentVerticesOf(\"A\").contains(\"B\")) {\r\n fail();\r\n }\r\n\r\n }", "@Test\n public void cyclicalGraphs3Test() throws Exception {\n // Test graphs with multiple loops. g1 has two different loops, which\n // have to be correctly matched to g2 -- which is build in a different\n // order but is topologically identical to g1.\n\n ChainsTraceGraph g1 = new ChainsTraceGraph();\n List<EventNode> g1Nodes = addNodesToGraph(g1, new String[] { \"a\", \"b\",\n \"c\", \"d\", \"b\", \"c\" });\n\n // Create loop1 in g1, with the first 4 nodes.\n g1Nodes.get(0).addTransition(g1Nodes.get(1), Event.defTimeRelationStr);\n g1Nodes.get(1).addTransition(g1Nodes.get(2), Event.defTimeRelationStr);\n g1Nodes.get(2).addTransition(g1Nodes.get(3), Event.defTimeRelationStr);\n g1Nodes.get(3).addTransition(g1Nodes.get(0), Event.defTimeRelationStr);\n\n // Create loop2 in g1, with the last 2 nodes, plus the initial node.\n g1Nodes.get(0).addTransition(g1Nodes.get(4), Event.defTimeRelationStr);\n g1Nodes.get(4).addTransition(g1Nodes.get(5), Event.defTimeRelationStr);\n g1Nodes.get(5).addTransition(g1Nodes.get(0), Event.defTimeRelationStr);\n\n exportTestGraph(g1, 0);\n\n // //////////////////\n // Now create g2, by generating the two identical loops in the reverse\n // order.\n\n ChainsTraceGraph g2 = new ChainsTraceGraph();\n List<EventNode> g2Nodes = addNodesToGraph(g2, new String[] { \"a\", \"b\",\n \"c\", \"d\", \"b\", \"c\" });\n\n // Create loop2 in g2, with the last 2 nodes, plus the initial node.\n g2Nodes.get(0).addTransition(g2Nodes.get(4), Event.defTimeRelationStr);\n g2Nodes.get(4).addTransition(g2Nodes.get(5), Event.defTimeRelationStr);\n g2Nodes.get(5).addTransition(g2Nodes.get(0), Event.defTimeRelationStr);\n\n // Create loop1 in g2, with the first 4 nodes.\n g2Nodes.get(0).addTransition(g2Nodes.get(1), Event.defTimeRelationStr);\n g2Nodes.get(1).addTransition(g2Nodes.get(2), Event.defTimeRelationStr);\n g2Nodes.get(2).addTransition(g2Nodes.get(3), Event.defTimeRelationStr);\n g2Nodes.get(3).addTransition(g2Nodes.get(0), Event.defTimeRelationStr);\n\n exportTestGraph(g2, 1);\n\n // //////////////////\n // Now test that the two graphs are identical for all k starting at the\n // initial node.\n\n for (int k = 1; k < 7; k++) {\n testKEqual(g1Nodes.get(0), g2Nodes.get(0), k);\n }\n }", "@Override\n boolean isSameTransitTrip(TransitNode transitNode) {\n if (transitNode instanceof SubwayStation) {\n return this.startLocation.getLine().equals(((SubwayStation) transitNode).getLine());\n }\n return false;\n }", "@Test\n\tpublic void equalGraphsWhichMatchTerms(){\n\t\tTerm term = new Term();\n\t\tterm.setName(\"tutorials\");\n\t\tterm.setNodeid(\"24\");\n\t\ttermRepository.save(term);\n\t\tList<Term> termList = termRepository.findTerms();\n\t\tAssert.assertEquals(\"tutorials\", term.getName());\n\t\tAssert.assertEquals(\"24\", term.getNodeid());\n\t}", "@org.junit.Test\n public void constrCompelemNodeid1() {\n final XQuery query = new XQuery(\n \"for $x in <a/>, $y in element elem {$x} return exactly-one($y/a) is $x\",\n ctx);\n try {\n result = new QT3Result(query.value());\n } catch(final Throwable trw) {\n result = new QT3Result(trw);\n } finally {\n query.close();\n }\n test(\n assertBoolean(false)\n );\n }", "@Override\n\tpublic List<Tsubject> randomOneFindSubject() {\n\t\treturn subjectMapper.randomOneFindSubject();\n\t}", "public static void main(String []args){\n\t\tString format = \"TURTLE\";\n\t\tInputStream is = Thread.currentThread().getContextClassLoader().\n\t\t\t\tgetResourceAsStream(\"test_ontologies/cp-11.ttl\");\n\t\tOntDocumentManager dm = OntDocumentManager.getInstance();\n\t\tdm.setProcessImports(false);\n\t\tOntModelSpec spec = new OntModelSpec(OntModelSpec.OWL_DL_MEM);\n\t\tspec.setDocumentManager(dm); \n\t\t//spec.setReasoner(reasoner);\n\t\tOntModel ontModel = ModelFactory.createOntologyModel( spec, null );\n\t\tontModel.read(is,\"\",format);\n\t\ttry {\n\t\t\tStmtIterator it = ontModel.listStatements();\n\t\t\tSystem.out.println(\"STATEMENTS\");\n\t\t\tStatement st;\n\t\t\twhile(it.hasNext()){\n\t\t\t\tst = it.next();\n\t\t\t\tif(st.getSubject().isAnon() || st.getObject().isAnon()){\n\t\t\t\t\t\n\t\t\t\t}else{\n\t\t\t\t\tSystem.out.println(it.next());\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\tSystem.out.println(\"REIFIED STATEMENTS\");\n\t\t\tRSIterator it2 = ontModel.listReifiedStatements();\n\t\t\twhile(it2.hasNext()){\n\t\t\t\tSystem.out.println(it2.next());\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t} catch (Exception e) {\n\t\t\tlogger.error(e);\n\t\t}\n\n\t}", "public ArrayList<Triple> addContributorAnnotationTriples(Node subject ,DigitalRightsManagementBean digitalRightsManagementBean){\r\n\t\t\r\n\t\tString LOG_METHOD_NAME = \" ArrayList<Triple> addContributorAnnotationTriples(Node, DigitalRightsManagementBean)\";\r\n\t\tlog.debug(this.getClass() + TripleStoreConstants.LOG_BEGIN + LOG_METHOD_NAME);\r\n\t\t\r\n\t\tArrayList<Triple> tripleList = new ArrayList<>();\r\n\t\tNode predicate = null, predicate_value=null;\r\n\t\ttry{\t\t\t\t\t\t\r\n\t\t\t//copy right holder information\r\n\t\t\tpredicate = Node.createURI(TripleStoreConstants.URI_PREDICATE_TEN_CONTRIBUTOR);\r\n\t\t\tStringBuffer contributorAttributes = new StringBuffer();\r\n\t\t\t\r\n\t\t\t//id\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getContributor())){\r\n\t\t\t\tcontributorAttributes.append(TripleStoreConstants.ATTRIBUTE_ID);\r\n\t\t\t\tcontributorAttributes.append(\"=\");\r\n\t\t\t\tcontributorAttributes.append(digitalRightsManagementBean.getContributor());\r\n\t\t\t\tcontributorAttributes.append(\";\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//email\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getContributorEmail())){\r\n\t\t\t\tcontributorAttributes.append(TripleStoreConstants.ATTRIBUTE_EMAIL);\r\n\t\t\t\tcontributorAttributes.append(\"=\");\r\n\t\t\t\tcontributorAttributes.append(digitalRightsManagementBean.getContributorEmail());\r\n\t\t\t\tcontributorAttributes.append(\";\");\r\n\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t//approved\t\t\t\r\n\t\t\tboolean approved = (!Utils.isEmptyOrNull(digitalRightsManagementBean.getContributorApproved()) \r\n\t\t\t\t\t&& \"true\".equals(digitalRightsManagementBean.getContributorApproved()))?true:false;\r\n\t\t\tcontributorAttributes.append(TripleStoreConstants.ATTRIBUTE_APPROVED);\r\n\t\t\tcontributorAttributes.append(\"=\");\r\n\t\t\tcontributorAttributes.append(approved);\r\n\t\t\tcontributorAttributes.append(\";\");\r\n\t\t\t\t\t\t\r\n\t\t\t//cell phone\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getContributorCellPhone())){\r\n\t\t\t\tcontributorAttributes.append(TripleStoreConstants.ATTRIBUTE_CELL_PHONE);\r\n\t\t\t\tcontributorAttributes.append(\"=\");\r\n\t\t\t\tcontributorAttributes.append(digitalRightsManagementBean.getContributorCellPhone());\r\n\t\t\t\tcontributorAttributes.append(\";\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//office phone\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getContributorOfficePhone())){\r\n\t\t\t\tcontributorAttributes.append(TripleStoreConstants.ATTRIBUTE_OFFICE_PHONE);\r\n\t\t\t\tcontributorAttributes.append(\"=\");\r\n\t\t\t\tcontributorAttributes.append(digitalRightsManagementBean.getContributorOfficePhone());\r\n\t\t\t\tcontributorAttributes.append(\";\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//FAX\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getContributorFax())){\r\n\t\t\t\tcontributorAttributes.append(TripleStoreConstants.ATTRIBUTE_FAX);\r\n\t\t\t\tcontributorAttributes.append(\"=\");\r\n\t\t\t\tcontributorAttributes.append(digitalRightsManagementBean.getContributorFax());\r\n\t\t\t\tcontributorAttributes.append(\";\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//street address\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getContributorStreetAddress())){\r\n\t\t\t\tcontributorAttributes.append(TripleStoreConstants.ATTRIBUTE_STREET_ADDRESS);\r\n\t\t\t\tcontributorAttributes.append(\"=\");\r\n\t\t\t\tcontributorAttributes.append(digitalRightsManagementBean.getContributorStreetAddress());\r\n\t\t\t\tcontributorAttributes.append(\";\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//other address\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getContributorOtherAddress())){\r\n\t\t\t\tcontributorAttributes.append(TripleStoreConstants.ATTRIBUTE_OTHER_ADDRESS);\r\n\t\t\t\tcontributorAttributes.append(\"=\");\r\n\t\t\t\tcontributorAttributes.append(digitalRightsManagementBean.getContributorOtherAddress());\r\n\t\t\t\tcontributorAttributes.append(\";\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//city\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getContributorCity())){\r\n\t\t\t\tcontributorAttributes.append(TripleStoreConstants.ATTRIBUTE_CITY);\r\n\t\t\t\tcontributorAttributes.append(\"=\");\r\n\t\t\t\tcontributorAttributes.append(digitalRightsManagementBean.getContributorCity());\r\n\t\t\t\tcontributorAttributes.append(\";\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//state\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getContributorState())){\r\n\t\t\t\tcontributorAttributes.append(TripleStoreConstants.ATTRIBUTE_STATE);\r\n\t\t\t\tcontributorAttributes.append(\"=\");\r\n\t\t\t\tcontributorAttributes.append(digitalRightsManagementBean.getContributorState());\r\n\t\t\t\tcontributorAttributes.append(\";\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//state\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getContributorZipCode())){\r\n\t\t\t\tcontributorAttributes.append(TripleStoreConstants.ATTRIBUTE_ZIP_CODE);\r\n\t\t\t\tcontributorAttributes.append(\"=\");\r\n\t\t\t\tcontributorAttributes.append(digitalRightsManagementBean.getContributorZipCode());\r\n\t\t\t\tcontributorAttributes.append(\";\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//tribal affiliation\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getContributorTribalAffiliation())){\r\n\t\t\t\tcontributorAttributes.append(TripleStoreConstants.ATTRIBUTE_TRIBAL_AFFILIATION);\r\n\t\t\t\tcontributorAttributes.append(\"=\");\r\n\t\t\t\tcontributorAttributes.append(digitalRightsManagementBean.getContributorTribalAffiliation());\r\n\t\t\t\tcontributorAttributes.append(\";\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tpredicate_value = Node.createLiteral(contributorAttributes.toString());\r\n\t\t\ttripleList.add(new Triple(subject, predicate, predicate_value));\r\n\t\t}catch(Exception ex)\r\n\t\t{\r\n\t\t\tlog.error(ex);\r\n\t\t\tthrow ex;\r\n\t\t}finally{\r\n\t\t\tlog.debug(this.getClass() + TripleStoreConstants.LOG_END + LOG_METHOD_NAME);\r\n\t\t}\r\n\t\t\r\n\t\treturn tripleList;\r\n\t}", "@Test\n public void tr0()\n {\n Graph g = new Graph(1);\n Set<Integer> nodes = new TreeSet<Integer>();\n nodes.add(0);\n assertTrue(g.reachable(nodes, nodes));\n }", "private static void demo_WordNetOps() throws Exception {\n\n RoWordNet r1, r2, result;\n Synset s;\n Timer timer = new Timer();\n String time = \"\";\n\n IO.outln(\"Creating two RoWN objects R1 and R2\");\n timer.start();\n r1 = new RoWordNet();\n r2 = new RoWordNet();\n\n // adding synsets to O1\n s = new Synset();\n s.setId(\"S1\");\n s.setLiterals(new ArrayList<Literal>(asList(new Literal(\"L1\"))));\n r1.addSynset(s, false); // adding synset S1 to O2;\n\n s = new Synset();\n s.setId(\"S2\");\n s.setLiterals(new ArrayList<Literal>(asList(new Literal(\"L2\"))));\n r1.addSynset(s, false); // adding synset S2 to O1;\n\n // adding synsets to O2\n s = new Synset();\n s.setId(\"S1\");\n s.setLiterals(new ArrayList<Literal>(asList(new Literal(\"L1\"))));\n r2.addSynset(s, false); // adding synset S1 to O2;\n\n s = new Synset();\n s.setId(\"S2\");\n s.setLiterals(new ArrayList<Literal>(asList(new Literal(\"L4\"))));\n r2.addSynset(s, false); // adding synset S2 to O2, but with literal L4\n // not L2;\n\n s = new Synset();\n s.setId(\"S3\");\n s.setLiterals(new ArrayList<Literal>(asList(new Literal(\"L3\"))));\n r2.addSynset(s, false); // adding synset S3 to O2;\n time = timer.mark();\n\n // print current objects\n IO.outln(\"\\n Object R1:\");\n for (Synset syn : r1.synsets) {\n IO.outln(syn.toString());\n }\n\n IO.outln(\"\\n Object R2:\");\n for (Synset syn : r2.synsets) {\n IO.outln(syn.toString());\n }\n IO.outln(\"Done: \" + time);\n\n // DIFFERENCE\n IO.outln(\"\\nOperation DIFFERENCE(R1,R2) (different synsets in R1 and R2 having the same id):\");\n timer.start();\n String[] diff = Operation.diff(r1, r2);\n time = timer.mark();\n\n for (String id : diff) {\n IO.outln(\"Different synset having the same id in both RoWN objects: \" + id);\n }\n\n IO.outln(\"Done: \" + time);\n\n // UNION\n IO.outln(\"\\nOperation UNION(R1,R2):\");\n timer.start();\n try {\n result = new RoWordNet(r1);// we copy-construct the result object\n // after r1 because the union and merge\n // methods work in-place directly on the\n // first parameter of the methods\n result = Operation.union(result, r2);\n IO.outln(\" Union object:\");\n for (Synset syn : result.synsets) {\n IO.outln(syn.toString());\n }\n } catch (Exception ex) {\n IO.outln(\"Union operation failed (as it should, as synset S2 is in both objects but has a different literal and are thus two different synsets having the same id that cannot reside in a single RoWN object). \\nException message: \" + ex\n .getMessage());\n }\n IO.outln(\"Done: \" + timer.mark());\n\n // MERGE\n IO.outln(\"\\nOperation MERGE(R1,R2):\");\n\n result = new RoWordNet(r1);\n timer.start();\n result = Operation.merge(result, r2);\n time = timer.mark();\n\n IO.outln(\" Merged object (R2 overwritten on R1):\");\n for (Synset syn : result.synsets) {\n IO.outln(syn.toString());\n }\n IO.outln(\"Done: \" + time);\n\n // COMPLEMENT\n IO.outln(\"\\nOperation COMPLEMENT(R2,R1) (compares only synset ids):\");\n timer.start();\n String[] complement = Operation.complement(r2, r1);\n time = timer.mark();\n IO.outln(\" Complement ids:\");\n for (String id : complement) {\n IO.outln(\"Synset that is in R2 but not in R1: \" + id);\n }\n IO.outln(\"Done: \" + timer.mark());\n\n // INTERSECTION\n IO.outln(\"\\nOperation INTERSECTION(R1,R2) (fully compares synsets):\");\n timer.start();\n String[] intersection = Operation.intersection(r1, r2);\n time = timer.mark();\n IO.outln(\" Intersection ids:\");\n for (String id : intersection) {\n IO.outln(\"Equal synset in both R1 and R2: \" + id);\n }\n IO.outln(\"Done: \" + timer.mark());\n\n // IO.outln(((Synset) r1.getSynsetById(\"S1\")).equals((Synset)\n // r2.getSynsetById(\"S1\")));\n\n }", "@Test\n\tpublic void testAddLinkOkMultNtoNLinkedHashSet() {\n\t\t// configure collection properties of Location and ClosingPeriod\n\t\t// to use TreeSet as collection implementing class\n\t\t((TypePropertyCollection) (new Location()).getProperty(\"closedons\").getType())\n\t\t\t\t.setCollectionClass(LinkedHashSet.class);\n\t\t((TypePropertyCollection) (new ClosingPeriod()).getProperty(\"locations\").getType())\n\t\t\t\t.setCollectionClass(LinkedHashSet.class);\n\t\ttstNMAssociationInverse();\n\t}", "private void duplicateTags(Topology topology) {\n // This one pass implementation is dependent on Edges being\n // topologically sorted - ancestor Edges appear before their descendants.\n for (Edge e : topology.graph().getEdges()) {\n Object o = e.getTarget().getInstance();\n if (o instanceof Peek || o instanceof FanOut) {\n duplicateTags(e);\n }\n }\n }", "public static void main(String[] args) {\n\n\t\tString peopleAndPets = \"C:/people+pets.owl\"; \n\n\t\tString ip = \"localhost\";\n\t\tint port = 8088;\n\n\t\tRacerClient racer = new RacerClient(ip,port);\t\t\n\n\t\ttry {\n\n\t\t\tracer.openConnection();\n\n\t\t\tracer.loggingOn();\n\t\t\tracer.sendRaw(\"(logging-on)\");\n\n\t\t\tracer.fullReset();\n\n\t\t\tracer.owlReadFile(\"\\\"\"+peopleAndPets+\"\\\"\"); \n\n\t\t\tSystem.out.println(racer.taxonomy()); \n\t\t\tSystem.out.println(racer.taxonomy$()); \n\n\t\t\tRacerList<RacerList>\n\t\t\tres1 = (RacerList<RacerList>)\n\t\t\tracer.taxonomy$(); \n\n\t\t\tfor (RacerList triple : res1) {\n\t\t\t\tSystem.out.println(\"--------\"); \n\t\t\t\tSystem.out.println(\"Concept : \"+triple.getValue().get(0)); \n\t\t\t\tSystem.out.println(\"Parents : \"+triple.getValue().get(1)); \n\t\t\t\tSystem.out.println(\"Children: \"+triple.getValue().get(2)); \n\t\t\t} \n\n\t\t\tSystem.out.println(racer.currentAbox()); \n\t\t\tSystem.out.println(racer.currentAbox$()); \n\n\t\t\tracer.instanceM(\"i\",\"C\"); \n\n\t\t\tSystem.out.println(racer.aboxConsistentP()); \n\t\t\tSystem.out.println(racer.aboxConsistentP(racer.currentAbox())); \n\t\t\tSystem.out.println(racer.aboxConsistentMP(racer.currentAbox())); \n\t\t\tSystem.out.println(racer.aboxConsistentP(racer.currentAbox$())); \n\t\t\tSystem.out.println(racer.aboxConsistentMP(racer.currentAbox$())); \n\n\t\t\tSystem.out.println(racer.racerAnswerQuery(\"(?x ?y)\",\n\t\t\t\t\t\"(and (?x #!:person) (?x ?y #!:has_pet))\")); \n\n\t\t\tRacerList<RacerList<RacerList<RacerSymbol>>>\n\t\t\tres2 = (RacerList<RacerList<RacerList<RacerSymbol>>>)\n\t\t\tracer.racerAnswerQuery$(\"(?x ?y)\",\"(and (?x #!:person) (?x ?y #!:has_pet))\"); \n\n\t\t\tfor (RacerList<RacerList<RacerSymbol>> bindings : res2) {\n\t\t\t\tfor (RacerList<RacerSymbol> binding : bindings) {\n\t\t\t\t\tfor (RacerSymbol varval : binding) {\n\t\t\t\t\t\tSystem.out.println(varval);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} \n\n\n\t\t\tSystem.out.println(racer.retrieveM$(\"(?x ?y)\",\n\t\t\t\t\t\"(and (?x #!:person) (?x ?y #!:has_pet))\")); \n\n\t\t\tRacerList<RacerList<RacerList<RacerSymbol>>>\n\t\t\tres2b = (RacerList<RacerList<RacerList<RacerSymbol>>>)\n\t\t\tracer.racerAnswerQuery$(\"(?x ?y)\",\"(and (?x #!:person) (?x ?y #!:has_pet))\"); \n\n\t\t\tfor (RacerList<RacerList<RacerSymbol>> bindings : res2b) {\n\t\t\t\tfor (RacerList<RacerSymbol> binding : bindings) {\n\t\t\t\t\tfor (RacerSymbol varval : binding) {\n\t\t\t\t\t\tSystem.out.println(varval);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tSystem.out.println(racer.describeAllQueries()); \n\t\t\tSystem.out.println(racer.describeAllQueries(true)); \n\t\t\tSystem.out.println(racer.describeAllQueries(false)); \n\t\t\tSystem.out.println(racer.describeAllQueries$(true)); \n\t\t\tSystem.out.println(racer.describeAllQueries$(\"nil\")); \n\t\t\tSystem.out.println(racer.describeAllQueries$(\"t\")); \n\t\t\tSystem.out.println(racer.describeAllQueries$(new RacerSymbol(\"nil\"))); \n\t\t\tSystem.out.println(racer.describeAllQueries$(new RacerSymbol(\"t\"))); \n\t\t\tSystem.out.println(racer.describeAllQueries(new RacerSymbol(\"nil\"))); \n\t\t\tSystem.out.println(racer.describeAllQueries(new RacerSymbol(\"t\"))); \n\n\t\t\tRacerList res3 = (RacerList)\n\t\t\t\t\tracer.racerAnswerQuery$(\"(?x)\",\n\t\t\t\t\t\t\t\"(?x #!:person)\",\n\t\t\t\t\t\t\t\":how-many\",3,\n\t\t\t\t\t\t\t\":exclude-permutations\",true);\n\n\t\t\tSystem.out.println(res3); \n\n\t\t\tString res4 = \n\t\t\t\t\tracer.racerAnswerQuery(\"(?x)\",\n\t\t\t\t\t\t\t\"(?x #!:person)\",\n\t\t\t\t\t\t\t\":how-many\",3,\n\t\t\t\t\t\t\t\":exclude-permutations\",true);\n\n\t\t\tSystem.out.println(res4); \n\n\t\t\tRacerList<RacerList<RacerResult>>\n\t\t\tres5 = (RacerList<RacerList<RacerResult>>)\n\t\t\tracer.allConceptAssertions$(); \n\n\t\t\tfor (RacerList<RacerResult> ass : res5) {\n\t\t\t\tSystem.out.println(\"-----------\");\n\t\t\t\tSystem.out.println(\"Individual: \"+ass.getValue().get(0)); \n\t\t\t\tSystem.out.println(\"Concept : \"+ass.getValue().get(1)+\" of \"+ass.getValue().get(1).getClass()); \n\n\t\t\t}\n\n\t\t\tRacerList<RacerList<RacerResult>>\n\t\t\tres6 = (RacerList<RacerList<RacerResult>>)\n\t\t\tracer.allAnnotationConceptAssertions$(); \n\n\t\t\tfor (RacerList<RacerResult> ass : res6) {\n\t\t\t\tSystem.out.println(\"-----------\");\n\t\t\t\tSystem.out.println(\"Individual: \"+ass.getValue().get(0)); \n\t\t\t\tSystem.out.println(\"Concept : \"+ass.getValue().get(1)+\" of \"+ass.getValue().get(1).getClass()); \n\n\t\t\t}\n\n\t\t\tracer.withUniqueNameAssumption(); \n\n\t\t\tracer.aboxConsistentP(); \n\n\t\t\tracer.withNrqlSettings(\":how-many-tuples\",1); \n\t\t\tSystem.out.println(racer.racerAnswerQuery$(\"(?x)\",\"(?x #!:person)\")); \n\n\t\t\tracer.endWithNrqlSettings(); \n\n\t\t\tSystem.out.println(racer.racerAnswerQuery$(\"(?x)\",\"(?x #!:person)\")); \n\n\t\t\tRacerList<RacerSymbol> head = new RacerList();\n\t\t\thead.getValue().add(new RacerSymbol(\"?x\")); \n\t\t\tRacerList body = (RacerList)racer.parseRacerAnswer(\"(?x #!:person)\"); \n\t\t\tSystem.out.println(racer.racerAnswerQuery$(head,body)); \n\t\t\tracer.endWithUniqueNameAssumption(); \n\n\t\t\tSystem.out.println(racer.racerAnswerQuery(head,body)); \n\n\t\t\t// sometimes, type casts and dynamic type checks can't be avoided: \n\n\t\t\tfor(String concept : new String[] {\"top\",\"#!:person\",\"#!:mad_cow\",\"bottom\"}) {\n\n\t\t\t\tSystem.out.println(); \n\t\t\t\tSystem.out.println(\"Retrieving instances of \"+concept+\":\"); \n\n\t\t\t\tRacerResult \n\t\t\t\tres7 = (RacerResult)\n\t\t\t\tracer.conceptInstancesM$(concept); \n\n\t\t\t\tif (res7 instanceof RacerSymbol) { // no instances? nil can't be cast in a RacerList!\n\t\t\t\t\tSystem.out.println(\"No instances!\"); \n\t\t\t\t} else {\n\t\t\t\t\tfor (RacerSymbol ind : (RacerList<RacerSymbol>) res7) {\n\t\t\t\t\t\tSystem.out.println(ind); \n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tSystem.out.println(racer.evaluateM$(\"(+ 1 2)\")); \n\n\t\t\tracer.mirror(\"\\\"http://www.people+pets.owl/people+pets.owl\\\"\",\"\\\"file://\"+peopleAndPets+\"\\\"\");\n\n\t\t\tracer.owlReadDocument(\"\\\"http://www.people+pets.owl/people+pets.owl\\\"\");\n\n\t\t\tracer.fullReset();\n\n\t\t\tracer.mirror(racer.RacerStringArgument(\"http://www.people+pets.owl/people+pets.owl\"),\n\t\t\t\t\tracer.RacerStringArgument(\"file://\"+peopleAndPets));\n\n\t\t\tracer.owlReadDocument(racer.RacerStringArgument(\"http://www.people+pets.owl/people+pets.owl\"));\n\n\t\t\tSystem.out.println(racer.describeAbox(racer.currentAbox())); \n\n\t\t\tSystem.out.println(racer.describeAbox(racer.RacerSymbolArgument(\"file://\"+peopleAndPets))); \n\n\t\t\tSystem.out.println(racer.racerAnswerQuery(\n\t\t\t\t\t\"(?x ?y)\",\n\t\t\t\t\t\"(and (?x #!:person) (?x ?y #!:has_pet))\")); \n\n\t\t\tSystem.out.println(racer.describeQuery(racer.RacerSymbolArgument(\":last\"),racer.RacerBooleanArgument(true)));\n\n\t\t\t// System.out.println(racer.exitServer());\n\n\t\t} catch (Exception e) {\n\n\t\t\te.printStackTrace();\n\n\t\t}\n\n\t}", "@Override\n\tpublic float similarity(PetriNet pn1, PetriNet pn2) {\n\t\treturn similarity((PetriNet) pn1.clone(), (PetriNet) pn2.clone(), 1);\n\t}", "public Triple createTriple(Expression subject, Atom predicate, Expression object){\r\n\t\tExpression exp = predicate.getExpression();\r\n\t\tTriple t;\r\n\t\tif (exp == null){\r\n\t\t\tt = Triple.create(subject, predicate, object);\r\n\t\t}\r\n\t\telse {\r\n\t\t\tt = createPath(subject, predicate, object, exp);\r\n\t\t}\r\n\t\treturn t;\r\n\t}", "public void testCreateAndSetOnSameVertexShouldCreateOnlyVertexOnly() {\n }", "public static void main(String args[]) {\n IsIdenticalLists llist1 = new IsIdenticalLists();\n IsIdenticalLists llist2 = new IsIdenticalLists();\n\n /* The constructed linked lists are :\n llist1: 3->2->1\n llist2: 3->2->1 */\n\n llist1.push(1);\n llist1.push(2);\n llist1.push(3);\n\n llist2.push(1);\n llist2.push(2);\n llist2.push(3);\n\n if (llist1.areIdentical(llist2) == true)\n System.out.println(\"Identical \");\n else\n System.out.println(\"Not identical \");\n\n }" ]
[ "0.7054789", "0.59252185", "0.5772184", "0.54657614", "0.5337264", "0.5247815", "0.5226493", "0.50893825", "0.5033531", "0.4967331", "0.4962811", "0.49607673", "0.49362203", "0.48850462", "0.48384976", "0.48360163", "0.4799535", "0.47849008", "0.4774306", "0.47395092", "0.47393554", "0.47331256", "0.47223863", "0.47222123", "0.4718086", "0.4716561", "0.4631877", "0.46314412", "0.46241155", "0.46207792", "0.46114993", "0.4607554", "0.4603234", "0.4600666", "0.45961767", "0.4590834", "0.45883435", "0.45858163", "0.45647243", "0.4557353", "0.4556811", "0.45557094", "0.4542739", "0.45419964", "0.45387045", "0.45366633", "0.45211485", "0.4518804", "0.45175347", "0.45161122", "0.45027632", "0.44899273", "0.44854942", "0.44819763", "0.4480828", "0.4468508", "0.44681725", "0.44679034", "0.4464486", "0.446027", "0.4453648", "0.44477168", "0.44450954", "0.44426164", "0.44370055", "0.44356245", "0.44312567", "0.44089147", "0.44022763", "0.43970317", "0.43942738", "0.43890178", "0.43889183", "0.43888938", "0.43860313", "0.43826205", "0.43792605", "0.4371661", "0.437022", "0.43676227", "0.4358315", "0.43574703", "0.43509138", "0.4349262", "0.4344639", "0.4342982", "0.43419674", "0.43312448", "0.43311653", "0.4329987", "0.43258306", "0.4317796", "0.43166518", "0.43160057", "0.43136963", "0.43046612", "0.42986548", "0.42944044", "0.4291942", "0.4291272" ]
0.6177179
1
nodeChoice > VarOrTerm() PropertyListNotEmpty() | TriplesNode() PropertyList()
@Override public R visit(TriplesSameSubject n, A argu) { R _ret = null; n.nodeChoice.accept(this, argu); return _ret; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public R visit(TriplesNode n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "@Override\n public R visit(VarOrTerm n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "@Override\n public R visit(GraphTerm n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "@Override\n public R visit(VarOrIRIref n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "public interface Node {\n Oper oper();\n CNFOrdinal toCNF();\n}", "public interface Node extends TreeComponent {\n /**\n * The types of decision tree nodes available.\n */\n enum NodeType {\n Internal,\n Leaf\n }\n\n /**\n * Gets the type of this node.\n * @return The type of node.\n */\n NodeType getType();\n\n void print();\n\n String getClassLabel(DataTuple tuple);\n}", "@Override\n public R visit(PropertyListNotEmpty n, A argu) {\n R _ret = null;\n n.verb.accept(this, argu);\n n.objectList.accept(this, argu);\n n.nodeListOptional.accept(this, argu);\n return _ret;\n }", "private RDF_Term testTerm(Node node, PrefixMap pmap, boolean asValue) {\n RDF_Term rt = ProtobufConvert.convert(node, pmap, asValue) ;\n\n if ( node == null) {\n assertTrue(rt.hasUndefined());\n return rt;\n }\n\n switch (rt.getTermCase()) {\n// message RDF_Term {\n// oneof term {\n// RDF_IRI iri = 1 ;\n// RDF_BNode bnode = 2 ;\n// RDF_Literal literal = 3 ;\n// RDF_PrefixName prefixName = 4 ;\n// RDF_VAR variable = 5 ;\n// RDF_Triple tripleTerm = 6 ;\n// RDF_ANY any = 7 ;\n// RDF_UNDEF undefined = 8 ;\n// RDF_REPEAT repeat = 9 ;\n//\n// // Value forms of literals.\n// int64 valInteger = 20 ;\n// double valDouble = 21 ;\n// RDF_Decimal valDecimal = 22 ;\n// }\n// }\n case IRI : {\n RDF_IRI iri = rt.getIri() ;\n assertEquals(node.getURI(), iri.getIri()) ;\n break;\n }\n case BNODE : {\n RDF_BNode bnode = rt.getBnode() ;\n assertEquals(node.getBlankNodeLabel(), bnode.getLabel()) ;\n break;\n }\n case LITERAL : {\n RDF_Literal lit = rt.getLiteral() ;\n assertEquals(node.getLiteralLexicalForm(), lit.getLex()) ;\n\n if (JenaRuntime.isRDF11) {\n // RDF 1.1\n if ( Util.isSimpleString(node) ) {\n assertTrue(lit.getSimple());\n // Protobug default is \"\"\n assertNullPB(lit.getDatatype()) ;\n assertEquals(RDF_PrefixName.getDefaultInstance(), lit.getDtPrefix());\n assertNullPB(lit.getLangtag()) ;\n } else if ( Util.isLangString(node) ) {\n assertFalse(lit.getSimple());\n assertNullPB(lit.getDatatype()) ;\n assertEquals(RDF_PrefixName.getDefaultInstance(), lit.getDtPrefix());\n assertNotSame(\"\", lit.getLangtag()) ;\n }\n else {\n assertFalse(lit.getSimple());\n // Regular typed literal.\n assertTrue(lit.getDatatype() != null || lit.getDtPrefix() != null );\n assertNullPB(lit.getLangtag()) ;\n }\n } else {\n // RDF 1.0\n if ( node.getLiteralDatatype() == null ) {\n if ( Util.isLangString(node ) ) {\n assertFalse(lit.getSimple());\n assertNullPB(lit.getDatatype()) ;\n assertNull(lit.getDtPrefix()) ;\n assertNotSame(\"\", lit.getLangtag()) ;\n } else {\n assertTrue(lit.getSimple());\n assertNullPB(lit.getDatatype()) ;\n assertEquals(RDF_PrefixName.getDefaultInstance(), lit.getDtPrefix());\n assertNullPB(lit.getLangtag()) ;\n }\n } else {\n assertTrue(lit.getDatatype() != null || lit.getDtPrefix() != null );\n }\n }\n break;\n }\n case PREFIXNAME : {\n assertNotNull(rt.getPrefixName().getPrefix()) ;\n assertNotNull(rt.getPrefixName().getLocalName()) ;\n String x = pmap.expand(rt.getPrefixName().getPrefix(), rt.getPrefixName().getLocalName());\n assertEquals(node.getURI(),x);\n break;\n }\n case VARIABLE :\n assertEquals(node.getName(), rt.getVariable().getName());\n break;\n case TRIPLETERM : {\n RDF_Triple encTriple = rt.getTripleTerm();\n Triple t = node.getTriple();\n RDF_Term rt_s = testTerm(t.getSubject(), pmap, asValue);\n RDF_Term rt_p = testTerm(t.getPredicate(), pmap, asValue);\n RDF_Term rt_o = testTerm(t.getObject(), pmap, asValue);\n assertEquals(encTriple.getS(), rt_s);\n assertEquals(encTriple.getP(), rt_p);\n assertEquals(encTriple.getO(), rt_o);\n break;\n }\n case ANY :\n assertEquals(Node.ANY, node);\n case REPEAT :\n break;\n case UNDEFINED :\n assertNull(node);\n return rt;\n case VALINTEGER : {\n long x = rt.getValInteger();\n assertTrue(integerSubTypes.contains(node.getLiteralDatatype()));\n //assertEquals(node.getLiteralDatatype(), XSDDatatype.XSDinteger);\n long x2 = Long.parseLong(node.getLiteralLexicalForm());\n assertEquals(x,x2);\n break;\n }\n case VALDOUBLE : {\n double x = rt.getValDouble();\n assertEquals(node.getLiteralDatatype(), XSDDatatype.XSDdouble);\n double x2 = Double.parseDouble(node.getLiteralLexicalForm());\n assertEquals(x, x2, 0.01);\n break;\n }\n case VALDECIMAL : {\n assertEquals(node.getLiteralDatatype(), XSDDatatype.XSDdecimal);\n NodeValue nv = NodeValue.makeNode(node);\n assertTrue(nv.isDecimal());\n\n long value = rt.getValDecimal().getValue() ;\n int scale = rt.getValDecimal().getScale() ;\n BigDecimal d = BigDecimal.valueOf(value, scale) ;\n assertEquals(nv.getDecimal(), d);\n break;\n }\n case TERM_NOT_SET :\n break;\n }\n\n // And reverse\n if ( ! asValue ) {\n // Value based does not preserve exact datatype or lexical form.\n Node n2 = ProtobufConvert.convert(rt, pmap);\n assertEquals(node, n2) ;\n }\n\n return rt;\n }", "@Override\n public R visit(BlankNodePropertyList n, A argu) {\n R _ret = null;\n n.nodeToken.accept(this, argu);\n n.propertyListNotEmpty.accept(this, argu);\n n.nodeToken1.accept(this, argu);\n return _ret;\n }", "public abstract int getNodeType();", "TermNode() {\n this.fac = new FacNode();\n this.term = null;\n this.selection = 1;\n }", "Term getNodeTerm();", "@Override\n public R visit(SparqlString n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "NodeType getType();", "public void mutateNonterminalNode() {\n Node[] nodes = getRandomNonterminalNode(false);\n if (nodes != null)\n ((CriteriaNode) nodes[1]).randomizeIndicator();\n }", "public String getElement()\n {\n return nodeChoice;\n }", "public void test_lt_01() {\n OntModel m = ModelFactory.createOntologyModel();\n \n DatatypeProperty p = m.createDatatypeProperty(NS + \"p\");\n OntClass c = m.createClass(NS + \"A\");\n \n Individual i = m.createIndividual(NS + \"i\", c);\n i.addProperty(p, \"testData\");\n \n int count = 0;\n \n for (Iterator j = i.listPropertyValues(p); j.hasNext();) {\n //System.err.println(\"Individual i has p value: \" + j.next());\n j.next();\n count++;\n }\n \n assertEquals(\"i should have one property\", 1, count);\n }", "@Override\n public R visit(GraphPatternNotTriples n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "@Override\n public R visit(IRIref n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "@Override\n public R visit(ArgList n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "public interface Node extends WrappedIndividual {\r\n\r\n /* ***************************************************\r\n * Property http://www.sifemontologies.com/ontologies/FEMSettingsPAK.owl#hasNodeSettings\r\n */\r\n \r\n /**\r\n * Gets all property values for the hasNodeSettings property.<p>\r\n * \r\n * @returns a collection of values for the hasNodeSettings property.\r\n */\r\n Collection<? extends NodeSettings> getHasNodeSettings();\r\n\r\n /**\r\n * Checks if the class has a hasNodeSettings property value.<p>\r\n * \r\n * @return true if there is a hasNodeSettings property value.\r\n */\r\n boolean hasHasNodeSettings();\r\n\r\n /**\r\n * Adds a hasNodeSettings property value.<p>\r\n * \r\n * @param newHasNodeSettings the hasNodeSettings property value to be added\r\n */\r\n void addHasNodeSettings(NodeSettings newHasNodeSettings);\r\n\r\n /**\r\n * Removes a hasNodeSettings property value.<p>\r\n * \r\n * @param oldHasNodeSettings the hasNodeSettings property value to be removed.\r\n */\r\n void removeHasNodeSettings(NodeSettings oldHasNodeSettings);\r\n\r\n\r\n /* ***************************************************\r\n * Property http://www.sifemontologies.com/ontologies/FiniteElementModel.owl#isBoundaryNodeOf\r\n */\r\n \r\n /**\r\n * Gets all property values for the isBoundaryNodeOf property.<p>\r\n * \r\n * @returns a collection of values for the isBoundaryNodeOf property.\r\n */\r\n Collection<? extends Boundary> getIsBoundaryNodeOf();\r\n\r\n /**\r\n * Checks if the class has a isBoundaryNodeOf property value.<p>\r\n * \r\n * @return true if there is a isBoundaryNodeOf property value.\r\n */\r\n boolean hasIsBoundaryNodeOf();\r\n\r\n /**\r\n * Adds a isBoundaryNodeOf property value.<p>\r\n * \r\n * @param newIsBoundaryNodeOf the isBoundaryNodeOf property value to be added\r\n */\r\n void addIsBoundaryNodeOf(Boundary newIsBoundaryNodeOf);\r\n\r\n /**\r\n * Removes a isBoundaryNodeOf property value.<p>\r\n * \r\n * @param oldIsBoundaryNodeOf the isBoundaryNodeOf property value to be removed.\r\n */\r\n void removeIsBoundaryNodeOf(Boundary oldIsBoundaryNodeOf);\r\n\r\n\r\n /* ***************************************************\r\n * Property http://www.sifemontologies.com/ontologies/FiniteElementModel.owl#isNodeOf\r\n */\r\n \r\n /**\r\n * Gets all property values for the isNodeOf property.<p>\r\n * \r\n * @returns a collection of values for the isNodeOf property.\r\n */\r\n Collection<? extends Subdomain> getIsNodeOf();\r\n\r\n /**\r\n * Checks if the class has a isNodeOf property value.<p>\r\n * \r\n * @return true if there is a isNodeOf property value.\r\n */\r\n boolean hasIsNodeOf();\r\n\r\n /**\r\n * Adds a isNodeOf property value.<p>\r\n * \r\n * @param newIsNodeOf the isNodeOf property value to be added\r\n */\r\n void addIsNodeOf(Subdomain newIsNodeOf);\r\n\r\n /**\r\n * Removes a isNodeOf property value.<p>\r\n * \r\n * @param oldIsNodeOf the isNodeOf property value to be removed.\r\n */\r\n void removeIsNodeOf(Subdomain oldIsNodeOf);\r\n\r\n\r\n /* ***************************************************\r\n * Property http://www.sifemontologies.com/ontologies/FiniteElementModel.owl#isVertexOf\r\n */\r\n \r\n /**\r\n * Gets all property values for the isVertexOf property.<p>\r\n * \r\n * @returns a collection of values for the isVertexOf property.\r\n */\r\n Collection<? extends Subdomain_group> getIsVertexOf();\r\n\r\n /**\r\n * Checks if the class has a isVertexOf property value.<p>\r\n * \r\n * @return true if there is a isVertexOf property value.\r\n */\r\n boolean hasIsVertexOf();\r\n\r\n /**\r\n * Adds a isVertexOf property value.<p>\r\n * \r\n * @param newIsVertexOf the isVertexOf property value to be added\r\n */\r\n void addIsVertexOf(Subdomain_group newIsVertexOf);\r\n\r\n /**\r\n * Removes a isVertexOf property value.<p>\r\n * \r\n * @param oldIsVertexOf the isVertexOf property value to be removed.\r\n */\r\n void removeIsVertexOf(Subdomain_group oldIsVertexOf);\r\n\r\n\r\n /* ***************************************************\r\n * Property http://www.sifemontologies.com/ontologies/FiniteElementModel.owl#hasNodeID\r\n */\r\n \r\n /**\r\n * Gets all property values for the hasNodeID property.<p>\r\n * \r\n * @returns a collection of values for the hasNodeID property.\r\n */\r\n Collection<? extends Integer> getHasNodeID();\r\n\r\n /**\r\n * Checks if the class has a hasNodeID property value.<p>\r\n * \r\n * @return true if there is a hasNodeID property value.\r\n */\r\n boolean hasHasNodeID();\r\n\r\n /**\r\n * Adds a hasNodeID property value.<p>\r\n * \r\n * @param newHasNodeID the hasNodeID property value to be added\r\n */\r\n void addHasNodeID(Integer newHasNodeID);\r\n\r\n /**\r\n * Removes a hasNodeID property value.<p>\r\n * \r\n * @param oldHasNodeID the hasNodeID property value to be removed.\r\n */\r\n void removeHasNodeID(Integer oldHasNodeID);\r\n\r\n\r\n\r\n /* ***************************************************\r\n * Property http://www.sifemontologies.com/ontologies/FiniteElementModel.owl#hasXCoordinate\r\n */\r\n \r\n /**\r\n * Gets all property values for the hasXCoordinate property.<p>\r\n * \r\n * @returns a collection of values for the hasXCoordinate property.\r\n */\r\n Collection<? extends Object> getHasXCoordinate();\r\n\r\n /**\r\n * Checks if the class has a hasXCoordinate property value.<p>\r\n * \r\n * @return true if there is a hasXCoordinate property value.\r\n */\r\n boolean hasHasXCoordinate();\r\n\r\n /**\r\n * Adds a hasXCoordinate property value.<p>\r\n * \r\n * @param newHasXCoordinate the hasXCoordinate property value to be added\r\n */\r\n void addHasXCoordinate(Object newHasXCoordinate);\r\n\r\n /**\r\n * Removes a hasXCoordinate property value.<p>\r\n * \r\n * @param oldHasXCoordinate the hasXCoordinate property value to be removed.\r\n */\r\n void removeHasXCoordinate(Object oldHasXCoordinate);\r\n\r\n\r\n\r\n /* ***************************************************\r\n * Property http://www.sifemontologies.com/ontologies/FiniteElementModel.owl#hasYCoordinate\r\n */\r\n \r\n /**\r\n * Gets all property values for the hasYCoordinate property.<p>\r\n * \r\n * @returns a collection of values for the hasYCoordinate property.\r\n */\r\n Collection<? extends Object> getHasYCoordinate();\r\n\r\n /**\r\n * Checks if the class has a hasYCoordinate property value.<p>\r\n * \r\n * @return true if there is a hasYCoordinate property value.\r\n */\r\n boolean hasHasYCoordinate();\r\n\r\n /**\r\n * Adds a hasYCoordinate property value.<p>\r\n * \r\n * @param newHasYCoordinate the hasYCoordinate property value to be added\r\n */\r\n void addHasYCoordinate(Object newHasYCoordinate);\r\n\r\n /**\r\n * Removes a hasYCoordinate property value.<p>\r\n * \r\n * @param oldHasYCoordinate the hasYCoordinate property value to be removed.\r\n */\r\n void removeHasYCoordinate(Object oldHasYCoordinate);\r\n\r\n\r\n\r\n /* ***************************************************\r\n * Property http://www.sifemontologies.com/ontologies/FiniteElementModel.owl#hasZCoordinate\r\n */\r\n \r\n /**\r\n * Gets all property values for the hasZCoordinate property.<p>\r\n * \r\n * @returns a collection of values for the hasZCoordinate property.\r\n */\r\n Collection<? extends Object> getHasZCoordinate();\r\n\r\n /**\r\n * Checks if the class has a hasZCoordinate property value.<p>\r\n * \r\n * @return true if there is a hasZCoordinate property value.\r\n */\r\n boolean hasHasZCoordinate();\r\n\r\n /**\r\n * Adds a hasZCoordinate property value.<p>\r\n * \r\n * @param newHasZCoordinate the hasZCoordinate property value to be added\r\n */\r\n void addHasZCoordinate(Object newHasZCoordinate);\r\n\r\n /**\r\n * Removes a hasZCoordinate property value.<p>\r\n * \r\n * @param oldHasZCoordinate the hasZCoordinate property value to be removed.\r\n */\r\n void removeHasZCoordinate(Object oldHasZCoordinate);\r\n\r\n\r\n\r\n /* ***************************************************\r\n * Property http://www.sifemontologies.com/ontologies/FiniteElementModel.owl#isCentralNode\r\n */\r\n \r\n /**\r\n * Gets all property values for the isCentralNode property.<p>\r\n * \r\n * @returns a collection of values for the isCentralNode property.\r\n */\r\n Collection<? extends Boolean> getIsCentralNode();\r\n\r\n /**\r\n * Checks if the class has a isCentralNode property value.<p>\r\n * \r\n * @return true if there is a isCentralNode property value.\r\n */\r\n boolean hasIsCentralNode();\r\n\r\n /**\r\n * Adds a isCentralNode property value.<p>\r\n * \r\n * @param newIsCentralNode the isCentralNode property value to be added\r\n */\r\n void addIsCentralNode(Boolean newIsCentralNode);\r\n\r\n /**\r\n * Removes a isCentralNode property value.<p>\r\n * \r\n * @param oldIsCentralNode the isCentralNode property value to be removed.\r\n */\r\n void removeIsCentralNode(Boolean oldIsCentralNode);\r\n\r\n\r\n\r\n /* ***************************************************\r\n * Property http://www.sifemontologies.com/ontologies/FiniteElementModel.owl#isMidNode\r\n */\r\n \r\n /**\r\n * Gets all property values for the isMidNode property.<p>\r\n * \r\n * @returns a collection of values for the isMidNode property.\r\n */\r\n Collection<? extends Boolean> getIsMidNode();\r\n\r\n /**\r\n * Checks if the class has a isMidNode property value.<p>\r\n * \r\n * @return true if there is a isMidNode property value.\r\n */\r\n boolean hasIsMidNode();\r\n\r\n /**\r\n * Adds a isMidNode property value.<p>\r\n * \r\n * @param newIsMidNode the isMidNode property value to be added\r\n */\r\n void addIsMidNode(Boolean newIsMidNode);\r\n\r\n /**\r\n * Removes a isMidNode property value.<p>\r\n * \r\n * @param oldIsMidNode the isMidNode property value to be removed.\r\n */\r\n void removeIsMidNode(Boolean oldIsMidNode);\r\n\r\n\r\n\r\n /* ***************************************************\r\n * Common interfaces\r\n */\r\n\r\n OWLNamedIndividual getOwlIndividual();\r\n\r\n OWLOntology getOwlOntology();\r\n\r\n void delete();\r\n\r\n}", "public boolean isNodeProp() {\n \t\treturn isNodeProp;\n \t}", "public NodeType getNodeType();", "public short getNodeType();", "private Term parseTerm(final boolean required) throws ParseException {\n return parseAssign(required);\n }", "public interface Node extends Serializable {\n\n\tvoid setOwner(Object owner);\n Object getOwner();\n\n String getName();\n Node getChild(int i);\n List<Node> childList();\n\n Node attach(int id, Node n) throws VetoTypeInduction;\n void induceOutputType(Class type) throws VetoTypeInduction;\n int getInputCount();\n\tClass getInputType(int id);\n List<Class> getInputTypes();\n Class getOutputType();\n Tuple.Two<Class,List<Class>> getType();\n\n Object evaluate();\n\n boolean isTerminal();\n\n <T extends Node> T copy();\n String debugString(Set<Node> set);\n}", "public interface Node {\n public int arityOfOperation();\n public String getText(int depth) throws CalculationException;\n public double getResult() throws CalculationException;\n public boolean isReachable(int depth);\n public List<Node> getAdjacentNodes();\n public String getTitle();\n public void setDepth(int depth);\n}", "@Test\n public void testList() {\n SLNode one = new SLNode(1, null);\n SLNode twoOne = new SLNode(2, one);\n SLNode threeTwoOne = new SLNode(3, twoOne);\n\n SLNode x = SLNode.of(3, 2, 1);\n assertEquals(threeTwoOne, x);\n }", "@Override\n public R visit(Verb n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "@Test\n public void testListWithValue() {\n Node makeNumbers1 = makeNumbersNode.withName(\"makeNumbers1\").withInputValue(\"string\", \"1 2 3\");\n Node add1 = addNode.extend().withName(\"add1\").withInputValue(\"v2\", 100.0);\n Node net = Node.NETWORK\n .withChildAdded(makeNumbers1)\n .withChildAdded(add1)\n .connect(\"makeNumbers1\", \"add1\", \"v1\");\n assertResultsEqual(context.renderChild(net, add1), 101.0, 102.0, 103.0);\n }", "@Override\n public R visit(PropertyList n, A argu) {\n R _ret = null;\n n.nodeOptional.accept(this, argu);\n return _ret;\n }", "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\n public R visit(ObjectList n, A argu) {\n R _ret = null;\n n.sparqlObject.accept(this, argu);\n n.nodeListOptional.accept(this, argu);\n return _ret;\n }", "public Vector<Node> GetAdditionalSubNodes();", "private BNode generateBlankNodeTermType(TermMap termMap, String value) {\n \t\tif (value == null)\n \t\t\treturn vf.createBNode();\n \t\telse\n \t\t\treturn vf.createBNode(value);\n \t}", "interface Matcher<R extends OWLPropertyRange, F extends R, P extends OWLPropertyExpression<R, P>> {\n boolean isMatch(OWLClassExpression c, P p, R f);\n\n boolean isMatch(OWLClassExpression c, P p, R f, boolean direct);\n\n /** Perform a recursive search, adding nodes that match. If direct is true\n * only add nodes if they have no subs that match\n * \n * @param c\n * class\n * @param p\n * property\n * @param start\n * start\n * @param direct\n * direct\n * @return set of leave nodes */\n NodeSet<F> getLeaves(OWLClassExpression c, P p, R start, boolean direct);\n\n /** Perform a search on the direct subs of start, adding nodes that match. If\n * direct is false then recurse into descendants of start\n * \n * @param c\n * class\n * @param p\n * property\n * @param start\n * start\n * @param direct\n * direct\n * @return set of root nodes */\n NodeSet<F> getRoots(OWLClassExpression c, P p, R start, boolean direct);\n}", "public INodeType getNodeType();", "@Override\n public R visit(Constraint n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "public Node term(Node n_parent) {\r\n\r\n if (token.get(lookAheadPossition).contains(\"ident(\") || token.get(lookAheadPossition).contains(\"num(\") || token.get(lookAheadPossition).contains(\"boollit(\") || token.get(lookAheadPossition).equals(\"LP\")) {\r\n System.out.println(\":: term:if:\" + n_parent.getData());\r\n Node n_factor = this.factor(n_parent);\r\n //if (n_parent.getData().contains(\"*\")) {n_parent.setNodeChild(n_factor); }\r\n //if (n_parent.getData().contains(\"DIV\")) {n_parent.setNodeChild(n_factor); }\r\n //if (n_parent.getData().contains(\"MOD\")) {n_parent.setNodeChild(n_factor); }\r\n //if (!(n_parent.getData().equals(\"makeown\"))) {n_parent.setNodeChild(n_factor); }\r\n return (this.restTerm(n_parent, n_factor));\r\n } else {\r\n\r\n return (null);\r\n }\r\n }", "public NodePropertyDialog(Frame parent, NateNode node) {\r\n\t \r\n super(parent, true);\r\n this.node = node;\r\n\t initComponents();\r\n System.out.println(\"\\n\" + node.toString());\r\n setTitle(\"Node: \" + node.toString());\r\n //this.replyTextField.setValue(node.getReply());\r\n this.replyTextField.setText(node.getReply());\r\n this.nameTextField.setText(node.getSpeaker());\r\n \r\n }", "public abstract AbstractNodeType getType();", "private static interface T {@Symbolic Term.List t();}", "List<Node> nodes();", "public TaxoNode(\r\n\t\t\tString\t\tname,\r\n\t\t\tString\t\tdisplayName,\r\n\t\t\tString\t\tcontrolName,\r\n\t\t\tint\t\t\t\tid,\r\n\t\t\tint\t\t\t\ttermID,\r\n\t\t\tint\t\t\t\tfacetid,\r\n\t\t\tTaxoNode\tparent,\r\n\t\t\tString\t\tsort,\r\n\t\t\tboolean\t\tisGuide,\r\n\t\t\tboolean\t\tinferredByChildren,\r\n\t\t\tboolean\t\tselectSingle ) {\r\n\t\tthis.name = name;\r\n\t\tthis.displayName = displayName;\r\n\t\tthis.controlName = controlName;\r\n\t\tif( id < 0 )\r\n\t\t\tid = nextID++;\r\n\t\tthis.id= id;\r\n\t\tthis.termID= termID;\r\n\t\tthis.facetid= facetid;\t\t// Only applies to categories\r\n\t\tthis.parent = parent;\r\n\t\tthis.sort = sort;\r\n\t\tthis.isGuideTerm = isGuide;\r\n\t\tthis.inferredByChildren = inferredByChildren;\r\n\t\tthis.selectSingle = selectSingle;\r\n\t\tchildren = null;\r\n\t\tsynset = null; \t\t// No syns unless specified\r\n\t\texclset = null; \t// No exclusions unless specified\r\n\t\timpliedNodes = null; \t// No implied (other than parent) unless specified\r\n\t\tiMaskBase = -1;\r\n\t\tnMasks = 0;\r\n\t\tiBitInMask = -1;\r\n\t}", "@Override\r\n\t\tpublic short getNodeType()\r\n\t\t\t{\n\t\t\t\treturn 0;\r\n\t\t\t}", "@SuppressWarnings( \"unchecked\" )\n public List<Node> getSecondChoices() {\n final List<Part> relatedParts = findRelatedParts();\n final Node node = getNode();\n final Node other = getOther();\n return (List<Node>) CollectionUtils.select(\n IteratorUtils.toList( node.getSegment().parts() ),\n new Predicate() {\n @Override\n public boolean evaluate( Object object ) {\n Part part = (Part) object;\n return !part.equals( node )\n && !part.equals( other )\n && !relatedParts.contains( part );\n }\n }\n );\n }", "Node getVariable();", "TriNode() {\r\n children = new HashMap<>();\r\n isValidWord = false;\r\n }", "NetworkNodeType getIsA();", "@Override\n public R visit(GraphNode n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "public static void QuestionOne(Node n) {\n\n\n\n }", "List<CyNode> getNodeList();", "public void test_anon_0() {\n String NS = \"http://example.org/foo#\";\n String sourceT =\n \"<rdf:RDF \"\n + \" xmlns:rdf='http://www.w3.org/1999/02/22-rdf-syntax-ns#'\"\n + \" xmlns:rdfs='http://www.w3.org/2000/01/rdf-schema#'\"\n + \" xmlns:ex='http://example.org/foo#'\"\n + \" xmlns:owl='http://www.w3.org/2002/07/owl#'>\"\n + \" <owl:ObjectProperty rdf:about='http://example.org/foo#p' />\"\n + \" <owl:Class rdf:about='http://example.org/foo#A' />\"\n + \" <ex:A rdf:about='http://example.org/foo#x' />\"\n + \" <owl:Class rdf:about='http://example.org/foo#B'>\"\n + \" <owl:equivalentClass>\"\n + \" <owl:Restriction>\" \n + \" <owl:onProperty rdf:resource='http://example.org/foo#p' />\" \n + \" <owl:hasValue rdf:resource='http://example.org/foo#x' />\" \n + \" </owl:Restriction>\"\n + \" </owl:equivalentClass>\"\n + \" </owl:Class>\"\n + \"</rdf:RDF>\";\n \n OntModel m = ModelFactory.createOntologyModel(OntModelSpec.OWL_MEM, null);\n m.read(new ByteArrayInputStream(sourceT.getBytes()), \"http://example.org/foo\");\n \n OntClass B = m.getOntClass( NS + \"B\");\n Restriction r = B.getEquivalentClass().asRestriction();\n HasValueRestriction hvr = r.asHasValueRestriction();\n RDFNode n = hvr.getHasValue();\n \n assertTrue( \"Should be an individual\", n instanceof Individual );\n }", "public void test_ck_02() {\n OntModel vocabModel = ModelFactory.createOntologyModel();\n ObjectProperty p = vocabModel.createObjectProperty(\"p\");\n OntClass A = vocabModel.createClass(\"A\");\n \n OntModel workModel = ModelFactory.createOntologyModel();\n Individual sub = workModel.createIndividual(\"uri1\", A);\n Individual obj = workModel.createIndividual(\"uri2\", A);\n workModel.createStatement(sub, p, obj);\n }", "@Override\n public R visit(PrimaryExpression n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "OperationNode getNode();", "private void parse(Node node) {\r\n if (tracing && ! skipTrace) System.out.println(node.trace());\r\n skipTrace = false;\r\n switch(node.op()) {\r\n case Error: case Temp: case List: case Empty: break;\r\n case Rule: parseRule(node); break;\r\n case Id: parseId(node); break;\r\n case Or: parseOr(node); break;\r\n case And: parseAnd(node); break;\r\n case Opt: parseOpt(node); break;\r\n case Any: parseAny(node); break;\r\n case Some: parseSome(node); break;\r\n case See: parseSee(node); break;\r\n case Has: parseHas(node); break;\r\n case Not: parseNot(node); break;\r\n case Tag: parseTag(node); break;\r\n case Success: parseSuccess(node); break;\r\n case Fail: parseFail(node); break;\r\n case Eot: parseEot(node); break;\r\n case Char: parseChar(node); break;\r\n case Text: parseText(node); break;\r\n case Set: parseSet(node); break;\r\n case Range: parseRange(node); break;\r\n case Split: parseSplit(node); break;\r\n case Point: parsePoint(node); break;\r\n case Cat: parseCat(node); break;\r\n case Mark: parseMark(node); break;\r\n case Drop: parseDrop(node); break;\r\n case Act: parseAct(node); break;\r\n default: assert false : \"Unexpected node type \" + node.op(); break;\r\n }\r\n }", "public abstract String getSelectedNode();", "protected IndigoValenceCheckerNodeModel()\r\n {\r\n super(1, 3);\r\n }", "@Override\n public R visit(SparqlCollection n, A argu) {\n R _ret = null;\n n.nodeToken.accept(this, argu);\n n.nodeList.accept(this, argu);\n n.nodeToken1.accept(this, argu);\n return _ret;\n }", "@Override\n\tpublic void visit(OWLObjectPropertyAssertionAxiom axiom) {\n\n\t\taddFact(RewritingVocabulary.TRIPLE, //\n\t\t\t\taxiom.getSubject().asOWLNamedIndividual().getIRI(), //\n\t\t\t\taxiom.getProperty().asOWLObjectProperty().getIRI(), //\n\t\t\t\taxiom.getObject().asOWLNamedIndividual().getIRI() //\n\t\t);\n\t}", "@Test\n public void test34(){\n Tree<PermissionDO> tree = permissionService.getTree(16);\n for (Tree<PermissionDO> permissionDOTree : tree.getChildren()) {\n if((boolean)(permissionDOTree.getState().get(\"selected\"))){\n System.out.println(permissionDOTree.getText());\n }\n System.out.println(\"--------------------\");\n }\n }", "public Node() \r\n\t{\r\n\t\tincludedNode = new ArrayList<Node>();\r\n\t\tin = false; \r\n\t\tout = false;\r\n\t}", "public Element getPredicateVariable();", "public Node factor(Node n_parent) {\r\n String identifier=\"\";\r\n String type=\"\";\r\n if(token.get(lookAheadPossition).contains(\"ident(\")){\r\n System.out.println(\":: factor:if:\");\r\n identifier = token.get(lookAheadPossition).substring(6, token.get(lookAheadPossition).length() - 1);\r\n type = (String) symbolTable.get(identifier);\r\n type=type.toLowerCase();\r\n\r\n this.CheckError(token.get(lookAheadPossition));\r\n Node n_factor =new Node(identifier+\":\"+type);\r\n\r\n return n_factor;\r\n }\r\n else if(token.get(lookAheadPossition).contains(\"num(\")){\r\n System.out.println(\":: factor:if\");\r\n identifier = token.get(lookAheadPossition).substring(4, token.get(lookAheadPossition).length() - 1);\r\n type = \"int\";\r\n\r\n this.CheckError(token.get(lookAheadPossition));\r\n Node n_factor =new Node(identifier+\":\"+type);\r\n return n_factor;\r\n }\r\n else if(token.get(lookAheadPossition).contains(\"boollit(\")){\r\n System.out.println(\":: factor:if\");\r\n identifier = token.get(lookAheadPossition).substring(8, token.get(lookAheadPossition).length() - 1);\r\n\r\n System.out.println(\":: factor:if:boollit \"+identifier);\r\n if (identifier.contentEquals(\"true\") || identifier.contentEquals(\"false\") ){ type=\"bool\";}else { type = (String) symbolTable.get(identifier); type = type.toLowerCase();}\r\n System.out.println(\":: factor:if:boolint\"+type);\r\n this.CheckError(token.get(lookAheadPossition));\r\n Node n_factor =new Node(identifier+\":\"+type);\r\n return n_factor;\r\n }\r\n else if(token.get(lookAheadPossition).equals(\"LP\")){\r\n System.out.println(\":: factor:if:: LP\");\r\n//\r\n this.CheckError(\"LP\");\r\n// Node n_LP_RP = n_parent.setChildren(\"LP:RP\");\r\n //this.simpleExpression(n_parent );\r\n Node n_factor = this.simpleExpression(n_parent);\r\n this.CheckError(\"RP\");\r\n return n_factor;\r\n }\r\n return(null);\r\n }", "public void printTerm(){\n\n // print fac node\n this.fac.printFac();\n\n // check selection\n if (this.selection == 2) {\n\n // print \"*\"\n System.out.print(\" * \");\n\n // print term node\n this.term.printTerm();\n\n }\n\n }", "public abstract boolean isNodeTypeCollection();", "private List getLeavesMatchingRule(String node,\n String svc,\n String prop)\n throws AlertException {\n\n List res = new ArrayList();\n // All the leaves...\n if (node.equals(\"*\") &&\n svc.equals(\"*\") &&\n prop.equals(\"*\")) {\n for (int i = 0; i < propertiesMap.size(); i++) {\n Iterator it = propertiesMap.values().iterator();\n while (it.hasNext()) {\n res.add(it.next());\n }\n }\n return res;\n \n // All the nodes. \n } else if (node.equals(\"*\")) {\n for (int i = 0; i < CMM.MAX_NODES; i++) {\n if (propertiesNode[i].size() == 0) {\n continue;\n }\n String curNode =\n ((AlertComponent.AlertProperty) root.getComponent().\n getPropertyChild(i)).getName();\n getLeavesMatchingRule(i, curNode, svc, prop, res);\n }\n return res;\n } else {\n\n // One specific node\n AlertComponent compRoot = root.getComponent();\n for (int i = 0; i < compRoot.getNbChildren(); i++) {\n String curNode =\n ((AlertComponent.AlertProperty) root.getComponent().\n getPropertyChild(i)).getName();\n if (node.equals(curNode)) {\n if (propertiesNode[i].size() != 0) {\n getLeavesMatchingRule(i, node, svc, prop, res);\n }\n }\n }\n return res;\n }\n }", "public List<Node> getNodes();", "@Test public void term_value_roundtriple_1() {\n RDF_Term rt = testTermValue(\"'123'^^xsd:integer\") ;\n assertEquals(123, rt.getValInteger()) ;\n Node n = ProtobufConvert.convert(rt, prefixMap);\n assertEquals(XSDDatatype.XSDinteger, n.getLiteralDatatype());\n assertEquals(\"123\", n.getLiteralLexicalForm());\n }", "short getNodeType(Object node);", "@Override\n public void visitTerminal(TerminalNode node) {\n\n }", "public interface NodeList {\n\n /**\n * Getter for the number of nodes.\n *\n * @return the number of nodes in the list.\n */\n int getLength();\n\n /**\n * Getter method for a node on the specified position.\n *\n * @param index the index of the node to retrieve.\n * @return the {@link Node} on the specified position.\n */\n Node item(int index);\n\n}", "List<Node> getNode(String str);", "public Node restTerm(Node n_parent, Node n_factor){\r\n String multiplicative=\"\";\r\n if(token.get(lookAheadPossition).contains(\"MULTIPLICATIVE(\")){\r\n System.out.println(\":: restTerm:if:\"+n_parent.getData());\r\n multiplicative = token.get(lookAheadPossition).substring(15, token.get(lookAheadPossition).length() - 1);\r\n Node n_multiplicative = new Node (multiplicative+\":int\");\r\n n_multiplicative.setNodeChild(n_factor);\r\n //if (!(n_parent.getData().equals(\"makeown\"))) {n_parent.setNodeChild(n_multiplicative); }\r\n this.CheckError(token.get(lookAheadPossition));\r\n\r\n\r\n Node n_return = this.term(n_multiplicative);\r\n System.out.println(\":: restTerm:n_return:\"+n_return.getData());\r\n n_multiplicative.setNodeChild(n_return);\r\n return ( n_multiplicative );\r\n }else {\r\n //n_parent.setNodeChild(n_factor);\r\n //if (!(n_parent.getData().equals(\"makeown\"))) {n_parent.setNodeChild(n_factor); }\r\n return (n_factor);\r\n }\r\n\r\n }", "public Node getGoal(){\n return goal;\n }", "final public Expression TriplesNode(Exp stack) throws ParseException {\n Expression expression1;\n switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n case ATLIST:\n case ATPATH:\n case LPAREN:\n case AT:\n expression1 = Collection(stack);\n break;\n case LBRACKET:\n expression1 = BlankNodePropertyList(stack);\n break;\n default:\n jj_la1[224] = jj_gen;\n jj_consume_token(-1);\n throw new ParseException();\n }\n {if (true) return expression1;}\n throw new Error(\"Missing return statement in function\");\n }", "public String getNodeValue ();", "Object visitSubtype(SubtypeNode node, Object state);", "@Override\n\tpublic void visit(OWLObjectProperty property) {\n\t\taddFact(RewritingVocabulary.ROLE, property.getIRI());\n\t}", "uk.ac.cam.acr31.features.javac.proto.GraphProtos.FeatureNode.NodeType getType();", "List<Node> getNodes();", "public Object[] getSuccessorNodes (Object node) throws InvalidComponentException;", "boolean hasIsNodeOf();", "public TreeItem(Symbol term, Symbol var) {\n\n\t\ttruncated = false;\n\t\tnumChildren = 0;\n\t\tnumNodes = 1;\n\t\t// weight is meaningless in the context of this construction\n\t\tweight = -1;\n\t\tchildren = null;\n\t\t//memoized_leaves = null;\n\t\tlabel = term;\n\t\tdecideNorm = true;\n\t\tisNorm = true;\n\t\tisEmptyString = false;\n\t\thiddenVariable = var;\n\t\tisTransducerState = true;\n\t}", "java.util.List<? extends io.netifi.proteus.admin.om.NodeOrBuilder> \n getNodesOrBuilderList();", "Collection<? extends Subdomain> getIsNodeOf();", "private Term parseLogicalOr(final boolean required) throws ParseException {\n Term t1 = parseLogicalAnd(required);\n while (t1 != null) {\n /*int tt =*/ _tokenizer.next();\n if (isSpecial(\"||\") || isKeyword(\"or\")) {\n Term t2 = parseLogicalAnd(true);\n if ((t1.isB() && t2.isB()) || !isTypeChecking()) {\n t1 = new Term.OrB(t1, t2);\n } else {\n reportTypeErrorB2(\"'||' or 'or'\");\n }\n } else {\n _tokenizer.pushBack();\n break;\n }\n }\n return t1;\n }", "@Override\n\t\t\tpublic void onChange(Widget sender) {\n\t\t\t\tint listIndex = property_Resources.getSelectedIndex();\n\t\t\t\tlogger.log(Level.SEVERE, property_Resources.getItemText(listIndex));\n\t\t\t\tif (!(property_Resources.getItemText(listIndex).equals(\"RDF.type\"))) {\n\t\t\t\t\tlogger.log(Level.SEVERE, \"not rdf.type\");\n\t\t\t\t\tString uri = ontology.get(ontologies.getSelectedIndex()).getBaseURI();\n\t\t\t\t\tString item = uri + property_Resources.getItemText(listIndex);\n\t\t\t\t\taddPredicate(item);\n\t\t\t\t} else {\n\t\t\t\t\tlogger.log(Level.SEVERE, \"rdf.type\");\n\t\t\t\t\tString item = property_Resources.getItemText(listIndex);\n\t\t\t\t\taddPredicate(item);\n\t\t\t\t}\n\n\t\t\t}", "@Test public void term_value_01() {\n RDF_Term rt = testTermValue(\"123\") ;\n assertEquals(rt.getTermCase(), TermCase.VALINTEGER);\n assertEquals(123, rt.getValInteger()) ;\n }", "public void test_sf_969475() {\n String SOURCE=\n \"<?xml version='1.0'?>\" +\n \"<!DOCTYPE owl [\" +\n \" <!ENTITY rdf 'http://www.w3.org/1999/02/22-rdf-syntax-ns#' >\" +\n \" <!ENTITY rdfs 'http://www.w3.org/2000/01/rdf-schema#' >\" +\n \" <!ENTITY xsd 'http://www.w3.org/2001/XMLSchema#' >\" +\n \" <!ENTITY owl 'http://www.w3.org/2002/07/owl#' >\" +\n \" <!ENTITY dc 'http://purl.org/dc/elements/1.1/' >\" +\n \" <!ENTITY base 'http://jena.hpl.hp.com/test' >\" +\n \" ]>\" +\n \"<rdf:RDF xmlns:owl ='&owl;' xmlns:rdf='&rdf;' xmlns:rdfs='&rdfs;' xmlns:dc='&dc;' xmlns='&base;#' xml:base='&base;'>\" +\n \" <owl:ObjectProperty rdf:ID='p0'>\" +\n \" <owl:inverseOf>\" +\n \" <owl:ObjectProperty rdf:ID='q0' />\" +\n \" </owl:inverseOf>\" +\n \" </owl:ObjectProperty>\" +\n \" <owl:ObjectProperty rdf:ID='p1'>\" +\n \" <owl:inverseOf>\" +\n \" <owl:ObjectProperty rdf:ID='q1' />\" +\n \" </owl:inverseOf>\" +\n \" </owl:ObjectProperty>\" +\n \"</rdf:RDF>\";\n OntModel m = ModelFactory.createOntologyModel( OntModelSpec.OWL_MEM );\n m.read( new StringReader( SOURCE ), null );\n \n ObjectProperty p0 = m.getObjectProperty( \"http://jena.hpl.hp.com/test#p0\");\n Object invP0 = p0.getInverseOf();\n \n assertEquals( m.getResource( \"http://jena.hpl.hp.com/test#q0\"), invP0 );\n assertTrue( \"Should be an ObjectProperty facet\", invP0 instanceof ObjectProperty );\n \n ObjectProperty q1 = m.getObjectProperty( \"http://jena.hpl.hp.com/test#q1\");\n Object invQ1 = q1.getInverse();\n \n assertEquals( m.getResource( \"http://jena.hpl.hp.com/test#p1\"), invQ1 );\n assertTrue( \"Should be an ObjectProperty facet\", invQ1 instanceof ObjectProperty );\n }", "public TrieNode(){}", "@Override\n\tArrayList<Prop> MakeClause() {\n\t\treturn null;\n\t}", "@Test\n\tpublic void testNodeInit() {\n\t\tNode<Integer> node = new Node<Integer>(3);\n\t\tassertTrue(node.getData() == 3);\n\t\tassertTrue(node.getParent() == null);\n\t\tassertTrue(node.countChildren() == 0);\n\t}", "@Override\n\tpublic int getNodeType() {\n\t\treturn nodeType;\n\t}", "public List<Node> getFirstChoices() {\n Set<Node> firstChoices = new HashSet<Node>();\n // find non-redundant connectors of matching needs or capabilities.\n for ( Connector connector : findRelatedLocalConnectors() ) {\n if ( !isRedundant( connector ) )\n firstChoices.add( connector );\n }\n // Find related external connectors\n for ( Connector connector : findRelatedExternalConnectors() ) {\n if ( !isRedundant( connector ) )\n firstChoices.add( connector );\n }\n // Find all parts involved in related sharing but without related need or capability\n for ( Part part : findRelatedParts() ) {\n if ( !isRedundant( part ) )\n firstChoices.add( part );\n }\n return new ArrayList<Node>( firstChoices );\n }", "@Test\n\tpublic void equalGraphsWhichMatchTerms(){\n\t\tTerm term = new Term();\n\t\tterm.setName(\"tutorials\");\n\t\tterm.setNodeid(\"24\");\n\t\ttermRepository.save(term);\n\t\tList<Term> termList = termRepository.findTerms();\n\t\tAssert.assertEquals(\"tutorials\", term.getName());\n\t\tAssert.assertEquals(\"24\", term.getNodeid());\n\t}", "TNode createTNode();", "public List<PropertyValueMember> terms() {\n return terms != null ? terms : new ArrayList<>();\n }", "private void parseTerm() throws IOException {\r\n\t\tString line;\r\n\t\tTerm newTerm = new Term();\r\n\t\twhile((line=next(0))!=null) {\r\n\t\t\tif(line.startsWith(\"[\"))\r\n\t\t\t\t{\r\n\t\t\t\tthis.buffer=line;\r\n\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\tint colon=line.indexOf(':');\r\n\t\t\tif(colon==-1) continue;\r\n\t\t\tif(line.startsWith(\"id:\"))\r\n\t\t\t\t{\r\n\t\t\t\tnewTerm.id = line.substring(colon+1).trim();\r\n\t\t\t\tcontinue;\r\n\t\t\t\t}\r\n\t\t\tif(line.startsWith(\"name:\"))\r\n\t\t\t\t{\r\n\t\t\t\tnewTerm.name=nocomment(line.substring(colon+1));\r\n\t\t\t\tcontinue;\r\n\t\t\t\t}\r\n\t\t\tif(line.startsWith(\"namespace:\"))\r\n\t\t\t\t{\r\n\t\t\t\tnewTerm.namespace=nocomment(line.substring(colon+1));\r\n\t\t\t\tcontinue;\r\n\t\t\t\t}\r\n\t\t\telse if(line.startsWith(\"def:\"))\r\n\t\t\t\t{\r\n\t\t\t\tnewTerm.def=nocomment(line.substring(colon+1));\r\n\t\t\t\tterms.addTerm(newTerm);\r\n\t\t\t\tif (newTerm.namespace.equals(\"molecular_function\")){\r\n\t\t\t\t\tdagMF.addVertex(newTerm);\r\n\t\t\t\t}\r\n\t\t\t\telse if (newTerm.namespace.equals(\"biological_process\")){\r\n\t\t\t\t\tdagBP.addVertex(newTerm);\t\r\n\t\t\t\t}\r\n\t\t\t\telse if (newTerm.namespace.equals(\"cellular_component\")){\r\n\t\t\t\t\tdagCC.addVertex(newTerm);\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tSystem.out.println(\"TERM WAS NOT ADDED, NO NAMESPACE!\");\r\n\t\t\t\t}\r\n\t\t\t\tcontinue;\r\n\t\t\t\t}\r\n\t\t}\r\n\t}" ]
[ "0.57503194", "0.57047504", "0.56047285", "0.53528965", "0.5191475", "0.51872236", "0.5168723", "0.5164177", "0.51545495", "0.51341885", "0.50922173", "0.5091356", "0.50261843", "0.50260776", "0.5008985", "0.49942893", "0.4991269", "0.49554196", "0.4936207", "0.49360576", "0.49288532", "0.4920634", "0.48959804", "0.48959163", "0.48950627", "0.48900697", "0.48870087", "0.48816094", "0.4865494", "0.48525137", "0.4849964", "0.48406893", "0.48127964", "0.4810302", "0.48093814", "0.48081192", "0.47995526", "0.4798695", "0.47849515", "0.4784724", "0.47779113", "0.47752184", "0.47652343", "0.47636744", "0.47514504", "0.47365382", "0.468741", "0.46859157", "0.46796584", "0.46370593", "0.46341354", "0.4619657", "0.45872718", "0.45846292", "0.4574451", "0.45579398", "0.45502627", "0.45458564", "0.4542901", "0.4542103", "0.4541974", "0.45379025", "0.4536894", "0.45366699", "0.4533467", "0.45209634", "0.4507031", "0.44800168", "0.4478166", "0.44702062", "0.44645998", "0.44630086", "0.44612142", "0.44608298", "0.44561613", "0.44444644", "0.4444008", "0.4440717", "0.44398683", "0.44396576", "0.4437362", "0.44309595", "0.4421196", "0.4420585", "0.44087347", "0.44020405", "0.4398836", "0.43977618", "0.43961605", "0.43947807", "0.4391931", "0.43914926", "0.4390072", "0.43896446", "0.43861043", "0.43811223", "0.43696636", "0.43681356", "0.43593115", "0.4358972" ]
0.49459165
18
verb > Verb() objectList > ObjectList() nodeListOptional > ( ";" ( Verb() ObjectList() )? )
@Override public R visit(PropertyListNotEmpty n, A argu) { R _ret = null; n.verb.accept(this, argu); n.objectList.accept(this, argu); n.nodeListOptional.accept(this, argu); return _ret; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public R visit(ObjectList n, A argu) {\n R _ret = null;\n n.sparqlObject.accept(this, argu);\n n.nodeListOptional.accept(this, argu);\n return _ret;\n }", "void list()\n\t{\n\t\toperation.list();\n\t\t\n\t}", "public List<VerbPhrase> getVpList(){\n\t\tSet<NounPhrase> entitySet = this.getEntConsiderPass(\"O\");\n\t\tList<VerbPhrase> vpList = new ArrayList<VerbPhrase>();\n\t\t\n\t\tfor(NounPhrase object : entitySet){\t\t\n\t\t\t//vpList.add(new VerbPhrase(this.getActionStr(), object));\n\t\t\tvpList.add(new VerbPhrase(this.action, object));\n\t\t}\t\t\n\t\treturn vpList;\n\t}", "interface List extends Follow {\n @Out Network[] networks();\n\n /**\n * Sets the maximum number of networks to return. If not specified all the networks are returned.\n */\n @In Integer max();\n\n /**\n * A query string used to restrict the returned networks.\n */\n @In String search();\n\n /**\n * Indicates if the search performed using the `search` parameter should be performed taking case into\n * account. The default value is `true`, which means that case is taken into account. If you want to search\n * ignoring case set it to `false`.\n */\n @In Boolean caseSensitive();\n }", "Object visitArrayOfObjects(ArrayOfObjectsNode node, Object state);", "void mo29842a(IObjectWrapper iObjectWrapper, zzatk zzatk, List<String> list) throws RemoteException;", "List<?> query(Object inputObject, Settings settings);", "List<SoftObjectReference> getObjects();", "@GET\n\t@Path(\"/helloJSONList\")\n\t/**\n\t * Here is an example of a simple REST get request that returns a String.\n\t * We also illustrate here how we can convert Java objects to JSON strings.\n\t * @return - List of words as JSON\n\t * @throws IOException\n\t */\n\tpublic String helloJSONList() throws IOException {\n\n\t\tList<String> listOfWords = new ArrayList<String>();\n\t\tlistOfWords.add(\"Hello\");\n\t\tlistOfWords.add(\"World!\");\n\n\t\t// We can turn arbatory Java objects directly into JSON strings using\n\t\t// Jackson seralization, assuming that the Java objects are not too complex.\n\t\tString listAsJSONString = oWriter.writeValueAsString(listOfWords);\n\n\t\treturn listAsJSONString;\n\t}", "@Test public void testObjectsList() throws Exception {\n \t\tdeleteAll();\n \t\tStorage ss=makeServicesStorage(base+\"/cspace-services/\");\n \t\tString p1=ss.autocreateJSON(\"collection-object/\",getJSON(\"obj3.json\"));\n \t\tString p2=ss.autocreateJSON(\"collection-object/\",getJSON(\"obj4.json\"));\n \t\tString p3=ss.autocreateJSON(\"collection-object/\",getJSON(\"obj4.json\"));\n \t\tString[] names=ss.getPaths(\"collection-object\",null);\n \t\tassertArrayContainsString(names,p1);\n \t\tassertArrayContainsString(names,p2);\n \t\tassertArrayContainsString(names,p3);\n \t}", "public boolean isList();", "public boolean isList();", "public T caseList(List object)\n {\n return null;\n }", "List<Object> buscar(Object o);", "public list() {\r\n }", "Object getTolist();", "public UserList list();", "@Override\n public String getName() {\n return \"list\";\n }", "@VTID(38)\n boolean getList();", "public void listar() {\n\t\t\n\t}", "public void updateObjectLists() {\n Enumeration e = inspectors.elements();\n while (e.hasMoreElements())\n ((InspectorInterface)e.nextElement()).updateObjectList();\n}", "ListType createListType();", "List<ObjectMessage> getObjects(long stream, long version, ObjectType... types);", "@Override\n\tpublic void selectList(RestRequest request, RestResponse response) throws Exception {\n\t\t\n\t}", "ObjectDeclaration objects( Predicate<? super ObjectAssembly> specification );", "@Test\r\n public void testParamterizedWithObject()\r\n {\r\n test(Types.create(List.class).withSubtypeOf(Object.class).build());\r\n }", "protected void sequence_ParameterList(ISerializationContext context, ParameterList semanticObject) {\n\t\tif (errorAcceptor != null) {\n\t\t\tif (transientValues.isValueTransient(semanticObject, TdlPackage.Literals.PARAMETER_LIST__CODE_BLOCK) == ValueTransient.YES)\n\t\t\t\terrorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, TdlPackage.Literals.PARAMETER_LIST__CODE_BLOCK));\n\t\t}\n\t\tSequenceFeeder feeder = createSequencerFeeder(context, semanticObject);\n\t\tfeeder.accept(grammarAccess.getParameterListAccess().getCodeBlockCodeBlockParserRuleCall_2_0(), semanticObject.getCodeBlock());\n\t\tfeeder.finish();\n\t}", "public void listOrder()\r\n {o.listOrder();}", "List<CommandInfo> list();", "public static serverObjects respond(final RequestHeader header, final serverObjects post, final serverSwitch env) {\n listManager.switchboard = (Switchboard) env;\r\n listManager.listsPath = new File(listManager.switchboard.getRootPath(),listManager.switchboard.getConfig(\"listManager.listsPath\", \"DATA/LISTS\"));\r\n \r\n final serverObjects prop = new serverObjects();\r\n prop.putHTML(\"blacklistEngine\", Switchboard.urlBlacklist.getEngineInfo());\r\n \r\n // do all post operations \r\n if(post != null && post.containsKey(\"testList\")) {\r\n prop.put(\"testlist\", \"1\");\r\n String urlstring = post.get(\"testurl\", \"\");\r\n if(!urlstring.startsWith(\"http://\") &&\r\n !urlstring.startsWith(\"https://\")&&\r\n !urlstring.startsWith(\"ftp://\")\r\n ) urlstring = \"http://\"+urlstring;\r\n yacyURL testurl = null;\r\n try {\r\n testurl = new yacyURL(urlstring, null);\r\n } catch (final MalformedURLException e) { testurl = null; }\r\n if(testurl != null) {\r\n prop.putHTML(\"url\",testurl.toString());\r\n prop.putHTML(\"testlist_url\",testurl.toString());\r\n if(Switchboard.urlBlacklist.isListed(Blacklist.BLACKLIST_CRAWLER, testurl))\r\n prop.put(\"testlist_listedincrawler\", \"1\");\r\n if(Switchboard.urlBlacklist.isListed(Blacklist.BLACKLIST_DHT, testurl))\r\n prop.put(\"testlist_listedindht\", \"1\");\r\n if(Switchboard.urlBlacklist.isListed(Blacklist.BLACKLIST_NEWS, testurl))\r\n prop.put(\"testlist_listedinnews\", \"1\");\r\n if(Switchboard.urlBlacklist.isListed(Blacklist.BLACKLIST_PROXY, testurl))\r\n prop.put(\"testlist_listedinproxy\", \"1\");\r\n if(Switchboard.urlBlacklist.isListed(Blacklist.BLACKLIST_SEARCH, testurl))\r\n prop.put(\"testlist_listedinsearch\", \"1\");\r\n if(Switchboard.urlBlacklist.isListed(Blacklist.BLACKLIST_SURFTIPS, testurl))\r\n prop.put(\"testlist_listedinsurftips\", \"1\");\r\n }\r\n else {\r\n prop.putHTML(\"url\",urlstring);\r\n prop.put(\"testlist\", \"2\");\r\n }\r\n } else {\r\n prop.putHTML(\"url\", \"http://\");\r\n }\r\n return prop;\r\n }", "interface List extends Follow {\n /**\n * The list of available bookmarks.\n *\n * @author Oved Ourfali <[email protected]>\n * @date 12 Dec 2016\n * @status added\n */\n @Out Bookmark[] bookmarks();\n\n /**\n * Sets the maximum number of bookmarks to return. If not specified all the bookmarks are returned.\n */\n @In Integer max();\n }", "@Test\n\tpublic void listTests(){\n\t\tSemanticActions actions = new SemanticActions();\n\t\tList<Integer> l1 = actions.makeList(30);\n\t\tList<Integer> l2 = actions.makeList(200);\n\t\tList<Integer> l3 = actions.merge(l1, l2);\n\t\tList<Integer> test1 = new ArrayList<Integer>();\n\t\ttest1.add(30);\n\t\ttest1.add(200);\n\t\tassertEquals(test1, l3);\n\t\tl2.add(40);\n\t\tl2.add(7);\n\t\tList<Integer> l4 = actions.merge(l1, l2);\n\t\ttest1.add(40);\n\t\ttest1.add(7);\n\t\tassertEquals(test1, l4);\n\t\tl4.add(90);\n\t\tassertFalse(test1.equals(l4));\n\t}", "public List()\n\t{\n\t\tthis(null, null);\n\t}", "@DISPID(10)\n\t// = 0xa. The runtime will prefer the VTID if present\n\t@VTID(19)\n\t@ReturnValue(type = NativeType.Dispatch)\n\tcom4j.Com4jObject list();", "protected void sequence_ParameterList(ISerializationContext context, ParameterList semanticObject) {\r\n\t\tgenericSequencer.createSequence(context, semanticObject);\r\n\t}", "public ActionForward list_object_json( final ActionMapping mapping, final ActionForm form, final HttpServletRequest request, final HttpServletResponse response )\r\n throws KANException\r\n {\r\n\r\n return null;\r\n }", "@JsonProperty(\"verbs\")\n @NotNull\n public List<String> getVerbs() {\n return verbs;\n }", "@Override\n\tpublic ActionForward list(HttpServletRequest request, HttpServletResponse response) {\n\t\treturn null;\n\t}", "@Override\n\tpublic ActionForward list(HttpServletRequest request, HttpServletResponse response) {\n\t\treturn null;\n\t}", "@ApiModelProperty(required = true, value = \"`verbs` is a list of matching verbs and may not be empty. \\\"*\\\" matches all verbs and, if present, must be the only entry. Required.\")\n\n public List<String> getVerbs() {\n return verbs;\n }", "private void verbos(String texto, ArrayList<String> listaVerbos){\n\t Document doc = new Document(texto);\n\t for (Sentence sent : doc.sentences()) { \n//\t \tSystem.out.println(\"sent.length() \"+sent.length());\n\t for(int i=0; i < sent.length(); i++) {\n\t \t//adicionando o verbo a lista dos identificados\n\t\t \tString temp = sent.posTag(i);\n\t\t if(temp.compareTo(\"VB\") == 0) {\n//\t\t \tSystem.out.println(\"O verbo eh \" + sent.word(i));\n\t\t\t listaVerbos.add(sent.word(i));\n\t\t }\n\t\t else {\n//\t\t \tSystem.out.println(\"Não verbo \" + sent.word(i));\n\t\t }\n\t }\n\t }\n \tSystem.out.println(\"Os verbos sao:\");\n \tSystem.out.println(listaVerbos);\n\n\t}", "com.google.protobuf.ProtocolStringList\n getListList();", "@Override\n\t\tpublic void rest() {\n\t\t\t\n\t\t}", "@Override\n public List<Object> list() {\n return null;\n }", "OpList createOpList();", "@Override\r\n protected void delete_objectList( ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response ) throws KANException\r\n {\n\r\n }", "java.util.List<TransmissionProtocol.Request> \n getRequestList();", "@Override\n\tpublic void acheter(List<Object> la) {\n\t\t\n\t}", "Rule ListType() {\n // Push 1 ListTypeNode onto the value stack\n return Sequence(\n \"list \",\n \"<\",\n FieldType(),\n \"> \",\n Optional(CppType()),\n actions.pushListTypeNode());\n }", "public void deepList() throws Exception;", "protected void sequence_TypeList(ISerializationContext context, TypeList semanticObject) {\r\n\t\tgenericSequencer.createSequence(context, semanticObject);\r\n\t}", "public ListNode(Object object, Class<?> componentType) {\n\t\t\tthis.converter = ConverterRegistry.getConverter();\n\t\t\tthis.list = (List<Object>) object;\n\t\t\tthis.componentType = componentType;\n\t\t}", "void mo29846a(IObjectWrapper iObjectWrapper, zzxz zzxz, String str, String str2, zzamv zzamv, zzady zzady, List<String> list) throws RemoteException;", "void mo29841a(IObjectWrapper iObjectWrapper, zzaiq zzaiq, List<zzaiw> list) throws RemoteException;", "@Override\n\tpublic List<ReplyVO4> list(Integer bno) throws Exception {\n\t\treturn session.selectList(namespace+\".list4\",bno);\n\t}", "@Override\r\n\tpublic List<Object> findList(Object o) {\n\t\treturn null;\r\n\t}", "java.util.List<godot.wire.Wire.Value> \n getArgsList();", "public List(ObjectProvider ownerOP, AbstractMemberMetaData mmd)\r\n {\r\n super(ownerOP, mmd);\r\n }", "public ListCommand() {\n super();\n }", "void mo7380a(C1320b bVar, List<String> list) throws RemoteException;", "private void handleListOperation() {\n\n Client client = ClientBuilder.newBuilder().build();\n WebTarget webTarget = client.target(\"http://localhost:8080/pa165/rest/bricks/\");\n webTarget.register(auth);\n Invocation.Builder invocationBuilder = webTarget.request(MediaType.APPLICATION_JSON);\n Response response = invocationBuilder.get();\n\n if (response.getStatus() == Response.Status.OK.getStatusCode()) {\n List<BrickDto> brickDtoList = response.readEntity(new GenericType<List<BrickDto>>() {\n });\n System.out.println(\"Number of bricks returned: \" + brickDtoList.size());\n\n for (BrickDto b : brickDtoList) {\n System.out.println(b);\n }\n } else {\n System.out.println(\"Error code:\" + response.getStatus());\n }\n }", "public abstract List<Object> getAll();", "public abstract <T> List<T> query(String paramString, Class<T> paramClass, Object[] paramArrayOfObject);", "boolean getIsList();", "boolean getIsList();", "public static void clientFunc(){\n List list = new ArrayList(); //rawtype list\n list.add(10);\n list.add(\"jenkins\");\n list.add(new Object());\n\n //unsafe classcast exception at runtime\n //rawtypes are unsafe\n List<String> stringList = list;\n\n ListIterator listIterator = list.listIterator();\n while(listIterator.hasNext()){\n System.out.println(listIterator.next());\n }\n }", "com.icare.eai.schema.om.evSORequest.ListOfServiceElementsComplexType getListOfServiceElements();", "public List<Blog> list();", "protected List getList() {\n/* 88 */ return (List)getCollection();\n/* */ }", "public List(){\n\t\tthis(\"list\", new DefaultComparator());\n\t}", "@VTID(41)\n com.exceljava.com4j.excel.ListObject getListObject();", "public abstract <T> List<T> listByExample(T searchObject);", "public MemberList(List members)\n/* 10: */ {\n/* 11:10 */ this.members = members;\n/* 12: */ }", "public T caseNonEmptyList(NonEmptyList object)\n {\n return null;\n }", "void testCanGetList();", "public com.google.protobuf.ProtocolStringList\n getVerbsList() {\n return verbs_;\n }", "public List<Product> list();", "private Lists() { }", "public int processingContract(String json,List<Object[]> list);", "public ObjectListNode() {\n info = null;\n next = null;\n }", "interface List { // List ADT\npublic void clear(); // Remove all Objects from list\npublic void insert(Object item); // Insert Object at curr position\npublic void append(Object item); // Insert Object at tail of list\npublic Object remove(); // Remove/return current Object\npublic void setFirst(); // Set current to first position\npublic void next(); // Move current to next position\npublic void prev(); // Move current to prev position\npublic int length(); // Return current length of list\npublic void setPos(int pos); // Set current to specified pos\npublic void setValue(Object val); // Set current Object's value\npublic Object currValue(); // Return value of current Object\npublic boolean isEmpty(); // Return true if list is empty\npublic boolean isInList(); // True if current is within list\npublic void print(); // Print all of list's elements\n}", "public List<New> list();", "void setListProperty(Object name, List<Object> list) throws JMSException;", "void printList();", "WsTodoList[] getAllTodoLists();", "public void ouvrirListe(){\n\t\n}", "slco.Object getObject2();", "public String[] listObjectNames();", "List<DocumentationItem> documentation();", "@Override\r\n\tprotected void delete_objectList(ActionMapping mapping, ActionForm form,\r\n\t\t\tHttpServletRequest request, HttpServletResponse response)\r\n\t\t\tthrows KANException {\n\t\t\r\n\t}", "public List()\n {\n list = new Object [10];\n }", "public void linkList(List<Student> list)\r\n\t{\r\n\t\tlist.add(s1);\r\n\t\tlist.add(s2);\r\n\t\tlist.add(s3);\r\n\t\tlist.add(s4);\r\n\t\tlist.add(s5);\r\n\t\tlist.add(s6);\r\n\t\tSystem.out.println(\"Objects of LinkedList\");\r\n\t\tfor(int i=0;i<list.size();i++)\r\n\t\t{\r\n\t\t\tSystem.out.println(list.get(i));\r\n\t\t}\r\n\t\tSystem.out.println();\r\n\t\tSystem.out.println(\"enter the choice:\");\r\n\t\tSystem.out.println(\"1. Delete an object 2. Add an object \");\r\n\t\tint choice = scanner.nextInt();\r\n\t\tif(choice==1)\r\n\t\t\tdeleteListObject(list);\r\n\t\telse \r\n\t\t\taddListObject(list);\r\n\t\t\t\t\r\n\t}", "com.microsoft.schemas.crm._2011.contracts.ArrayOfObjectiveRelation getObjectives();", "public ObjectListNode (Object o) {\n info = o;\n next = null;\n }", "@Override\n public R visit(BlankNodePropertyList n, A argu) {\n R _ret = null;\n n.nodeToken.accept(this, argu);\n n.propertyListNotEmpty.accept(this, argu);\n n.nodeToken1.accept(this, argu);\n return _ret;\n }", "public List select(Object[] obj) {\n\t\treturn null;\n\t}", "private void sendGetObjectsResponse(final HttpTransaction tx, final Console console, final String path) throws IOException\r\n {\r\n String[] params = path.split(\"/\");\r\n if (params.length == 1)\r\n { // With one parameter we call getObjects(className)\r\n tx.sendResponse(HTTP_OK, \"application/json\", JSON.fromObject(console.getObjects(params[0])));\r\n }\r\n else if (params.length == 2)\r\n { // With two parameters we call getObjects(packageName, className)\r\n //System.out.println(\"params = \" + params[0] + \", \" + params[1]);\r\n tx.sendResponse(HTTP_OK, \"application/json\", JSON.fromObject(console.getObjects(params[0], params[1])));\r\n }\r\n else if (params.length == 3)\r\n { // TODO With three parameters we call getObjects(packageName, className, agent)\r\n //System.out.println(\"params = \" + params[0] + \", \" + params[1] + \", \" + params[2]);\r\n tx.sendResponse(HTTP_NOT_FOUND, \"text/plain\", \"404 Too many parameters for objects GET request.\");\r\n } else {\r\n tx.sendResponse(HTTP_NOT_FOUND, \"text/plain\", \"404 Too many parameters for objects GET request.\");\r\n }\r\n }", "public abstract void execute(List<Object> list);", "public String getOntologyListString()\n {\n String returnString = \"\";\n \n for(int i=0;i<getOntologyListSize();i++)\n {\n VueMetadataElement vme = getOntologyListElement(i);\n returnString += vme.getObject() + \"|\";\n }\n \n return returnString;\n }", "public abstract List get(List oids) throws OIDDoesNotExistException;" ]
[ "0.6403963", "0.59190166", "0.5565275", "0.5462888", "0.5370237", "0.53321147", "0.53094935", "0.5309432", "0.5286782", "0.524496", "0.52356565", "0.52356565", "0.51852274", "0.517189", "0.51581144", "0.5128077", "0.5097811", "0.5087064", "0.50823194", "0.50616527", "0.5059949", "0.50562656", "0.50383836", "0.50348794", "0.50178164", "0.5017507", "0.5007473", "0.49930418", "0.49798372", "0.49666622", "0.49605244", "0.495228", "0.49458084", "0.49355492", "0.4933995", "0.4922791", "0.49193618", "0.4917903", "0.4917903", "0.49163458", "0.49156386", "0.48784795", "0.4877794", "0.48757142", "0.4871063", "0.48649943", "0.48633173", "0.48584142", "0.48524523", "0.4849885", "0.48389155", "0.48387673", "0.4837041", "0.48144415", "0.48089707", "0.48087558", "0.48076418", "0.48070577", "0.47979796", "0.4794418", "0.47851512", "0.47824046", "0.47802526", "0.47742686", "0.47742686", "0.47715518", "0.47559154", "0.4754491", "0.47539774", "0.4749226", "0.47491792", "0.47426507", "0.4731398", "0.4728219", "0.47262388", "0.4725837", "0.47195554", "0.47187394", "0.4714674", "0.47053543", "0.4705168", "0.4704893", "0.4695795", "0.46928412", "0.46847722", "0.46801522", "0.4678872", "0.46776667", "0.46724066", "0.46718657", "0.46638763", "0.4662648", "0.46593115", "0.46520072", "0.46460953", "0.4645464", "0.4639149", "0.46388274", "0.46378693", "0.4632996" ]
0.6450136
0
nodeOptional > ( PropertyListNotEmpty() )?
@Override public R visit(PropertyList n, A argu) { R _ret = null; n.nodeOptional.accept(this, argu); return _ret; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public R visit(BlankNodePropertyList n, A argu) {\n R _ret = null;\n n.nodeToken.accept(this, argu);\n n.propertyListNotEmpty.accept(this, argu);\n n.nodeToken1.accept(this, argu);\n return _ret;\n }", "@Override\n public R visit(PropertyListNotEmpty n, A argu) {\n R _ret = null;\n n.verb.accept(this, argu);\n n.objectList.accept(this, argu);\n n.nodeListOptional.accept(this, argu);\n return _ret;\n }", "QueryElement addNotEmpty(String collectionProperty);", "QueryElement addOrNotEmpty(String collectionProperty);", "QueryElement addOrEmpty(String collectionProperty);", "private boolean isEmpty(ListItem<PropertyWrapper> attribute) {\n return false;\n }", "boolean isOptional();", "QueryElement addEmpty(String collectionProperty);", "boolean hasProperty0();", "protected boolean isOptional()\n {\n return false;\n }", "@Test\r\n @ConditionalIgnore(condition = IgnoreReported.class)\r\n public void testListPropertyChangeOnSetEmptyToNull() {\r\n ListProperty listProperty = new SimpleListProperty();\r\n ListChangeReport report = new ListChangeReport(listProperty);\r\n listProperty.set(createObservableList(false));\r\n Change c = report.getLastChange();\r\n while(c.next()) {\r\n boolean type = c.wasAdded() || c.wasRemoved() || c.wasPermutated() || c.wasUpdated();\r\n assertTrue(\"at least one of the change types must be true\", type);\r\n }\r\n }", "public boolean supportsEmptyInList() {\n \t\treturn true;\n \t}", "public boolean isEmptyStepList(){ return this.step==null&&this.rest==null;}", "boolean hasOptionalValue();", "@Override\npublic Boolean isEmpty() {\n\treturn null;\n}", "@Test\n public void emptyElementsInPropertyFile() throws Exception {\n String output = \"\";\n\n StmtIterator msIter = propertyOutput.listStatements();\n while (msIter.hasNext()) {\n Statement msStmt = msIter.nextStatement();\n if (msStmt.getSubject().toString().equals(\"\") ||\n msStmt.getPredicate().toString().equals(\"\") ||\n msStmt.getObject().toString().equals(\"\") ||\n msStmt.getSubject().toString().equals(\"urn:\") ||\n msStmt.getPredicate().toString().equals(\"urn:\") ||\n msStmt.getObject().toString().equals(\"urn:\")\n ) {\n output += msStmt.getSubject() + \" \" + msStmt.getPredicate().toString() + \" \" + msStmt.getObject().toString() + \" .\\n\";\n }\n }\n // Output assertion with message of results\n if (!output.equals(\"\"))\n assertTrue(\"\\nThe following triples in \" + propertyOutputFileName + \" have an empty element:\\n\" + output\n , false);\n else\n assertTrue(true);\n }", "boolean optional();", "public void setNotEmpty(){\n this.empty = false;\n }", "@Override\n public boolean parseOptional(PsiBuilder builder) {\n boolean parsed = rule.parseOptional(builder);\n if (!parsed) {\n return false;\n }\n\n while (rule.parseOptional(builder)) {\n }\n\n return true;\n }", "abstract ChildListPropertyDescriptor internalElseDeclarationsProperty();", "@Test\r\n @ConditionalIgnore(condition = IgnoreReported.class)\r\n public void testListPropertyChangeOnSetEmptyToEmpty() {\r\n ListProperty listProperty = new SimpleListProperty(createObservableList(false));\r\n ListChangeReport report = new ListChangeReport(listProperty);\r\n listProperty.set(createObservableList(false));\r\n Change c = report.getLastChange();\r\n while(c.next()) {\r\n boolean type = c.wasAdded() || c.wasRemoved() || c.wasPermutated() || c.wasUpdated();\r\n assertTrue(\"at least one of the change types must be true\", type);\r\n }\r\n }", "boolean hasProperty2();", "@Test\n public void testWithNonEmptyList() throws org.nfunk.jep.ParseException\n {\n Stack<Object> parameters = CollectionsUtils.newParametersStack(Arrays.asList(\"test\"));\n function.run(parameters);\n assertEquals(FALSE, parameters.pop());\n }", "private boolean isNotEmptyAndNotNull(final Node node)\r\n {\r\n if (\"null\".equals(node.getNodeValue()))\r\n {\r\n return false;\r\n }\r\n if (node.getNodeValue().trim().isEmpty())\r\n {\r\n return false;\r\n }\r\n return true;\r\n }", "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 }", "public boolean isEmpty(){\n\t\treturn firstNode == null; //return true if List is empty\n\t}", "public boolean isEmptyNestedClauses ();", "@Override\npublic boolean isEmpty() {\n\treturn false;\n}", "@Override\n public boolean isDefined()\n {\n return getValue() != null || getChildrenCount() > 0\n || getAttributeCount() > 0;\n }", "@Override\n\tpublic boolean isEmpty()\n\t{\n\t\treturn nodeList.isEmpty() && edgeList.isEmpty();\n\t}", "boolean hasProperty1();", "boolean isEmpty() {\n\t\treturn m_list_nodes.size() == 0;\n\t}", "@Test\n public void testGetPropertyValueSetEmptyCollection(){\n assertEquals(emptySet(), CollectionsUtil.getPropertyValueSet(new ArrayList<>(), \"id\", Integer.class));\n }", "public Boolean getOptional() {\n return this.optional;\n }", "private boolean getOptionalBooleanProperty(String[] propertyNameList, boolean defaultValue) {\n\t\tString value = getOptionalStringProperty(propertyNameList);\n if (value != null)\n return value.equalsIgnoreCase(\"true\") || value.equalsIgnoreCase(\"yes\");\n return defaultValue;\n\t}", "@Override\n public boolean isMissingNode() { return false; }", "@Override\r\n\t\tpublic final boolean combinePropertyLists()\r\n\t\t{\r\n\t\t\treturn true;\r\n\t\t}", "public boolean isEmpty() {\n\t\t\treturn properties.isEmpty();\n\t\t}", "@Override\n\tpublic boolean isEmpty() {\n\t\tif(nodeCount == 0) return true;\n\t\telse return false;\n\t}", "boolean hasProperty();", "boolean hasProperty();", "boolean hasProperty();", "@SuppressWarnings(\"unchecked\")\n\t@Test\n\tpublic void testNewOkDefaultEmpty() {\n\t\tthis.createTestBean();\n\t\tPropertyCollection prop = this\n\t\t\t\t.createCollectionProperty(\"<property name=\\\"test\\\"\" + \" targettype=\\\"TestBean\\\"\" + \" default=\\\"\\\"/>\");\n\t\tCollection<Link> col = (Collection<Link>) prop.getValue();\n\t\tAssert.assertEquals(0, col.size());\n\t}", "public DPropertyElement() {\n super(null, null);\n }", "@Override\n public boolean isEmpty() { return true; }", "public Boolean isEmpty() {\n\t\tBoolean empty=true;\n\t\tif(nodes.isEmpty()==false) {\n\t\t\tempty=false;\n\t\t}\n\t\treturn empty;\n\t}", "public void testEmptyList() {\n SortedLinkedList s = new SortedLinkedList();\n assertEquals(s.getName(0), null);\n assertEquals(s.getQuantity(0), -1);\n assertEquals(s.length(), 0);\n assertTrue(s.isMember(null)); \n }", "@Override\n public boolean isEmpty()\n {\n return list.size()<1;\n }", "@Override\n\tpublic boolean isEmpty()\n\t{\n if (list.isEmpty())\n {\n return true;\n } \n else\n {\n return false;\n }\n\t}", "public void testEmptyMultiPropFind() throws Exception\n {\n String content = TestUtils.getFileContent();\n String file = TestUtils.getFileName();\n\n Node node =\n TestUtils.addContent(session, file, new ByteArrayInputStream(content.getBytes()), WEBDAV_NT_FILE,\n WEBDAV_NT_RESOURCE, CONTENT_TYPE);\n // set empty multi-valued property\n node.getNode(\"jcr:content\").setProperty(WEBDAV_TEST_PROPERTY, new String[]{});\n session.save();\n\n MultivaluedMap<String, String> headers = new MultivaluedMapImpl();\n headers.add(HttpHeaders.CONTENT_TYPE, CONTENT_TYPE);\n\n ContainerResponse responseFind =\n service(WebDAVMethods.PROPFIND, getPathWS() + file, \"\", headers, multiPropFindXML.getBytes());\n assertEquals(HTTPStatus.MULTISTATUS, responseFind.getStatus());\n ByteArrayOutputStream outputStream = new ByteArrayOutputStream();\n PropFindResponseEntity entity = (PropFindResponseEntity)responseFind.getEntity();\n entity.write(outputStream);\n String find = outputStream.toString();\n assertTrue(\"Response should contain requested property element.\", find.contains(WEBDAV_TEST_PROPERTY));\n }", "public abstract QueryElement addOrNotEquals(String property, Object value);", "@Override\r\n\tpublic boolean isEmpty() {\r\n\t\treturn getNumberOfNodes() == 0;\r\n\t}", "@Test\n public void testListWithNulls() {\n Node makeNull = Node.ROOT\n .withName(\"makeNull\")\n .withFunction(\"test/makeNull\")\n .withInputAdded(Port.floatPort(\"value\", 0.0));\n Node net = Node.NETWORK\n .withChildAdded(threeNumbers)\n .withChildAdded(makeNull)\n .connect(\"threeNumbers\", \"makeNull\", \"value\");\n assertResultsEqual(net, makeNull);\n }", "boolean getConditionListNull();", "boolean hasValue(PropertyValue<?, ?> value);", "public boolean isPropertyMissing() {\n \t\t\t\t\t\t\t\t\treturn false;\n \t\t\t\t\t\t\t\t}", "Object getPropertyexists();", "@Test(expected = IllegalArgumentException.class)\n public void testGetPropertyValueSetEmptyPropertyName1(){\n List<User> list = toList(new User(2L), new User(5L), new User(5L));\n CollectionsUtil.getPropertyValueSet(list, \" \", Integer.class);\n }", "public boolean isEmpty()\n{\n // If any attributes are not default return false\n if(getMaxTime()!=5 || getFrameRate()!=25 || !SnapUtils.equals(getEndAction(),\"Loop\"))\n return false;\n \n // Iterate over owner children and if any are not empty, return false\n for(int i=0, iMax=getOwner().getChildCount(); i<iMax; i++)\n if(!isEmpty(getOwner().getChild(i)))\n return false;\n \n // Return true since every child was empty\n return true;\n}", "@Optional\n Property<String> bhkz();", "@Override\n\t\tpublic boolean isEmpty() {\n\t\t\treturn false;\n\t\t}", "@Override\n\t\tpublic boolean isEmpty() {\n\t\t\treturn false;\n\t\t}", "protected Node getOptionalNode(Node parent, int idx)\n {\n if (hasArgument(parent, idx)) {\n return parent.jjtGetChild(idx);\n }\n return null;\n }", "public abstract QueryElement addNotEquals(String property, Object value);", "@And(\"the number of children option is selected as none\")\r\n public void selectNoOfChildren(){\n }", "@Test\n public void testWithEmptyList() throws org.nfunk.jep.ParseException\n {\n Stack<Object> parameters = CollectionsUtils.newParametersStack(new ArrayList<String>());\n function.run(parameters);\n assertEquals(TRUE, parameters.pop());\n }", "public boolean isOptional() {\n return optional;\n }", "@Override\n\t\t\tpublic boolean isEmpty() {\n\t\t\t\treturn false;\n\t\t\t}", "public boolean isOptional() {\n\t\treturn optional;\n\t}", "private Optional() {\r\n\t\tthis.value = null;\r\n\t}", "@Override\r\n\tpublic boolean isEmpty() {\n\t\treturn data != null && data.list != null && data.list.isEmpty();\r\n\t}", "public boolean isEmpty(){\n return firstNode == null;\n }", "public boolean isEmpty(){\n return firstNode == null;\n }", "@Override\n\tpublic boolean isEmpty() {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean isEmpty() {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean isEmpty() {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean isEmpty() {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean isEmpty() {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean isEmpty() {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean isEmpty() {\n\t\treturn false;\n\t}", "public boolean isOptional() {\n\t\treturn _optional;\n\t}", "public boolean isNotEmpty(){\n return root != null;\n }", "@Override\n\tpublic boolean isEmpty ()\n\t{\n\t\treturn false;\n\t}", "@Test(expected = IllegalArgumentException.class)\n public void testGetPropertyValueSetEmptyPropertyName(){\n List<User> list = toList(new User(2L), new User(5L), new User(5L));\n CollectionsUtil.getPropertyValueSet(list, \"\", Integer.class);\n }", "boolean hasPropType();", "public boolean isEmpty() {\n\t\treturn firstNode == null; // return true if List is empty\n\t}", "@Override\n public boolean isEmpty() {\n return this.numNodes == 0;\n }", "boolean hasHasNodeSettings();", "@Test\n public void allowedEmptyLeaf() throws Exception {\n Query query = Query.parse(\"/allow-empty-leaf\");\n doAllowedEmptyTest(query);\n }", "Collection<? extends NodeSettings> getHasNodeSettings();", "default boolean isEmpty() {\n return get() == null;\n }", "@Test public void onePredicate() {\n query(\"//ul/li['']\", \"\");\n query(\"//ul/li['x']\", LI1 + '\\n' + LI2);\n query(\"//ul/li[<a b='{\" + _RANDOM_INTEGER.args() + \" }'/>]\", LI1 + '\\n' + LI2);\n\n query(\"//ul/li[0]\", \"\");\n query(\"//ul/li[1]\", LI1);\n query(\"//ul/li[2]\", LI2);\n query(\"//ul/li[3]\", \"\");\n query(\"//ul/li[last()]\", LI2);\n }", "public boolean isEmpty() { return head==null;}", "public boolean isEmpty(){\n\n \treturn list.size() == 0;\n\n }", "public boolean hasProperty() {\n return !properties.isEmpty();\n }", "@Override\n public boolean isEmpty() {\n return false;\n }", "boolean isListRemainingEmpty();", "public Boolean isOptional() {\n return this.optional;\n }", "public /*@ pure @*/ boolean isEmpty() {\n return the_list == null;\n }", "@Override\n public boolean isEmpty()\n {\n return false;\n }" ]
[ "0.6866105", "0.6769174", "0.63216823", "0.6079299", "0.5974657", "0.5824687", "0.57529074", "0.57270604", "0.571617", "0.56690717", "0.5552488", "0.55203104", "0.5515559", "0.5498157", "0.54733986", "0.5431542", "0.5392547", "0.539074", "0.5370368", "0.5365007", "0.5332178", "0.5326397", "0.5326353", "0.5293593", "0.5285671", "0.527963", "0.5270812", "0.5231689", "0.5215186", "0.5203042", "0.5194913", "0.5192131", "0.51522875", "0.5141853", "0.513865", "0.5138343", "0.51355267", "0.5131439", "0.51239717", "0.5117465", "0.5117465", "0.5117465", "0.51133305", "0.5108492", "0.5097741", "0.50852406", "0.50755507", "0.50542074", "0.5048841", "0.50487757", "0.504486", "0.50313663", "0.50297606", "0.5027995", "0.5023121", "0.500486", "0.50045687", "0.49978846", "0.4992226", "0.49897388", "0.49888435", "0.49888435", "0.49861485", "0.4982031", "0.4973445", "0.4971136", "0.49706492", "0.49577788", "0.49539766", "0.4950829", "0.49483138", "0.49472624", "0.49472624", "0.4940691", "0.4940691", "0.4940691", "0.4940691", "0.4940691", "0.4940691", "0.4940691", "0.49394974", "0.49347824", "0.49337673", "0.4930844", "0.4928033", "0.49273708", "0.49257693", "0.4924464", "0.49213728", "0.49206918", "0.49146858", "0.4912677", "0.49070027", "0.4902811", "0.4899091", "0.48981616", "0.4895932", "0.48915857", "0.48872876", "0.48841748" ]
0.70819056
0
sparqlObject > SparqlObject() nodeListOptional > ( "," SparqlObject() )
@Override public R visit(ObjectList n, A argu) { R _ret = null; n.sparqlObject.accept(this, argu); n.nodeListOptional.accept(this, argu); return _ret; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public R visit(SparqlCollection n, A argu) {\n R _ret = null;\n n.nodeToken.accept(this, argu);\n n.nodeList.accept(this, argu);\n n.nodeToken1.accept(this, argu);\n return _ret;\n }", "Object executeQuery(String sparqlQuery);", "@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 }", "QueryElement addEmpty(String collectionProperty);", "@Test\n public void example13 () throws Exception {\n Map<String, Stmt> inputs = example2setup();\n conn.setNamespace(\"ex\", \"http://example.org/people/\");\n conn.setNamespace(\"ont\", \"http://example.org/ontology/\");\n String prefix = \"PREFIX ont: \" + \"<http://example.org/ontology/>\\n\";\n \n String queryString = \"select ?s ?p ?o where { ?s ?p ?o} \";\n TupleQuery tupleQuery = conn.prepareTupleQuery(QueryLanguage.SPARQL, queryString);\n assertSetsEqual(\"SELECT result:\", inputs.values(),\n statementSet(tupleQuery.evaluate()));\n \n assertTrue(\"Boolean result\",\n conn.prepareBooleanQuery(QueryLanguage.SPARQL,\n prefix + \n \"ask { ?s ont:name \\\"Alice\\\" } \").evaluate());\n assertFalse(\"Boolean result\",\n conn.prepareBooleanQuery(QueryLanguage.SPARQL,\n prefix + \n \"ask { ?s ont:name \\\"NOT Alice\\\" } \").evaluate());\n \n queryString = \"construct {?s ?p ?o} where { ?s ?p ?o . filter (?o = \\\"Alice\\\") } \";\n GraphQuery constructQuery = conn.prepareGraphQuery(QueryLanguage.SPARQL, queryString);\n assertSetsEqual(\"Construct result\",\n mapKeep(new String[] {\"an\"}, inputs).values(),\n statementSet(constructQuery.evaluate()));\n \n queryString = \"describe ?s where { ?s ?p ?o . filter (?o = \\\"Alice\\\") } \";\n GraphQuery describeQuery = conn.prepareGraphQuery(QueryLanguage.SPARQL, queryString);\n assertSetsEqual(\"Describe result\",\n mapKeep(new String[] {\"an\", \"at\"}, inputs).values(),\n statementSet(describeQuery.evaluate()));\n }", "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 }", "public SPARQL() {\n initComponents();\n \n model = ModelFactory.createOntologyModel(OntModelSpec.OWL_LITE_MEM_RDFS_INF);\n model.setDynamicImports(true);\n model.read(\"file:\"+\"data/ontologies/Papers_Ready.owl\", \"http://www.l3g.pl/ontologies/OntoBeef/Papers.owl\", \"N-TRIPLE\");\n model.loadImports();\n \n for (Individual i : model.listIndividuals(model.getOntClass(\"http://www.l3g.pl/ontologies/OntoBeef/Conceptualisation.owl#Category\")).toSet())\n {\n System.out.println(i.listLabels(null).toSet());\n }\n }", "public HashMap<String, ArrayList<String>> queryRecommendedLearningObjects(StudentAnnotationsBean studentAnnotationsBean, String keywords) throws Exception{\r\n\t\r\n\tString LOG_METHOD_NAME = \"void queryLearningObject(StudentAnnotationsBean studentAnnotationsBean, ArrayList<String> orSearchTerms)\";\r\n\tlog.debug(this.getClass() + TripleStoreConstants.LOG_BEGIN + LOG_METHOD_NAME);\r\n\tArrayList<String> imagesList = new ArrayList<String>();\r\n\tArrayList<String> audioList = new ArrayList<String>();\r\n\tArrayList<String> videoList = new ArrayList<String>();\r\n\tArrayList<String> textList = new ArrayList<String>();\r\n\tHashMap<String, ArrayList<String>> returnMap = new HashMap<String, ArrayList<String>>();\r\n\ttry{\r\n\t\t\r\n\t\tStringBuffer sparqlQueryString = new StringBuffer();\r\n\t\tsparqlQueryString.append(TripleStoreConstants.PREFIX_TEN_ONTOLOGY);\r\n\t\tsparqlQueryString.append(TripleStoreConstants.PREFIX_TEN_IMAGE);\r\n\t\tsparqlQueryString.append(TripleStoreConstants.PREFIX_TEN_AUDIO);\r\n\t\tsparqlQueryString.append(TripleStoreConstants.PREFIX_TEN_VIDEO);\r\n\t\tsparqlQueryString.append(TripleStoreConstants.PREFIX_TEN_TEXT);\r\n\t\tsparqlQueryString.append(TripleStoreConstants.PREFIX_RDF);\r\n\t\tsparqlQueryString.append(TripleStoreConstants.PREFIX_DUBLIN_CORE);\t\t\r\n\t\tsparqlQueryString.append(\" SELECT DISTINCT ?learning_object ?learningObjectType \");\r\n\t\tsparqlQueryString.append(\" WHERE { \");\r\n\t\t\t\r\n\t\t//base query with basic keywords conditions\r\n\t\tStringBuffer baseQuery = new StringBuffer();\t\t\r\n\t\tbaseQuery.append(\" ?learning_object a ?learningObjectType\");\r\n\t\tbaseQuery.append(\" ;?predicate ?object\");\t\r\n\t\t\r\n\t\t//exclude type predicate\r\n\t\tbaseQuery.append(\" . FILTER (\");\r\n\t\tbaseQuery.append(\" (?predicate != rdf:type)\"); \r\n\t\t\r\n\t\t//add filter for keywords\r\n if(!Utils.isEmptyOrNull(keywords)){\r\n \tArrayList<String> orSearchTerms = new ArrayList<String>();\r\n\t\t\tStringTokenizer st = new StringTokenizer(keywords);\r\n\t\t\twhile (st.hasMoreTokens()) {\r\n\t\t\t\torSearchTerms.add(st.nextToken().trim());\r\n\t\t\t}\r\n\t\t\t\r\n \tint i = 0;\r\n \tif((orSearchTerms != null) && (orSearchTerms.size()>0)){\r\n\t \ti=0;\r\n\t \tbaseQuery.append(\" && \");\r\n\t\t for(String searchTerm:orSearchTerms){\r\n\t\t \tbaseQuery.append(\"(regex(?object, \\\"\");\r\n\t\t \tbaseQuery.append(searchTerm);\r\n\t\t \tbaseQuery.append(\"\\\", \\\"i\\\"))\");\r\n\t\t \t//if this is not the last element add ||\r\n\t\t \tif(i != (orSearchTerms.size()-1)){\r\n\t\t \t\tbaseQuery.append(\" || \");\r\n\t\t \t}\r\n\t\t \ti++;\r\n\t\t }\t\r\n \t}\r\n }\r\n baseQuery.append(\" )\");\r\n \r\n //add learning object type preference\r\n\t\tif(!Utils.isEmptyOrNull(studentAnnotationsBean.getPreferredLearningObjectType())){\r\n\t\t\tbaseQuery.append(\"FILTER ( ?learningObjectType = TenOntology:\" + studentAnnotationsBean.getPreferredLearningObjectType() + \" )\");\r\n\t\t}else{\r\n\t\t\tbaseQuery.append(\"FILTER ((?learningObjectType = TenOntology:\" + TripleStoreConstants.LEARNING_OBJECT_TYPE_IMAGE + \" )\");\r\n\t\t\tbaseQuery.append(\"|| (?learningObjectType = TenOntology:\" + TripleStoreConstants.LEARNING_OBJECT_TYPE_TEXT + \" )\");\r\n\t\t\tbaseQuery.append(\"|| (?learningObjectType = TenOntology:\" + TripleStoreConstants.LEARNING_OBJECT_TYPE_AUDIO + \" )\");\r\n\t\t\tbaseQuery.append(\"|| (?learningObjectType = TenOntology:\" + TripleStoreConstants.LEARNING_OBJECT_TYPE_VIDEO + \" )\");\r\n\t\t\tbaseQuery.append(\" )\");\r\n\t\t}\r\n\t\t\t\r\n\t\tboolean upperCondition = false;\r\n\t\t//Add tribe\r\n\t\tif(!Utils.isEmptyOrNull(studentAnnotationsBean.getTribe())){\r\n\t\t\tif(upperCondition){\r\n\t\t\t\tsparqlQueryString.append( \" UNION \" );\r\n\t\t\t}\r\n\t\t\tsparqlQueryString.append(\" { \");\r\n\t\t\tsparqlQueryString.append(baseQuery.toString());\t\t\t\r\n\t\t\tsparqlQueryString.append(\" ?learning_object <\" + TripleStoreConstants.URI_PREDICATE_TEN_LO_TRIBE + \"> ?tribe . \");\r\n\t\t\tsparqlQueryString.append(\" FILTER (regex(?tribe, \\\"\" + studentAnnotationsBean.getTribe() + \"\\\", \\\"i\\\" ))\" );\r\n\t\t\tsparqlQueryString.append(\" } \");\r\n\t\t\tupperCondition = true;\r\n\t\t}\r\n\t\t\r\n\t\t//Add language preference\r\n\t\tif(!Utils.isEmptyOrNull(studentAnnotationsBean.getPreferredLanguage())){\r\n\t\t\tif(upperCondition){\r\n\t\t\t\tsparqlQueryString.append( \" UNION \" );\r\n\t\t\t}\r\n\t\t\tsparqlQueryString.append(\" { \");\r\n\t\t\tsparqlQueryString.append(baseQuery.toString());\r\n\t\t\tsparqlQueryString.append(\" ?learning_object <\" + TripleStoreConstants.URI_PREDICATE_DC_LANGUAGE + \"> ?language . \");\r\n\t\t\tsparqlQueryString.append(\" FILTER (regex(?language, \\\"\" + studentAnnotationsBean.getPreferredLanguage() + \"\\\", \\\"i\\\" ))\" );\r\n\t\t\tsparqlQueryString.append(\" } \");\r\n\t\t\tupperCondition = true;\r\n\t\t}\r\n\t\t\r\n\t\t//Add preferred text type\r\n\t\tif(!Utils.isEmptyOrNull(studentAnnotationsBean.getPreferredTextContent())){\r\n\t\t\tif(upperCondition){\r\n\t\t\t\tsparqlQueryString.append( \" UNION \" );\r\n\t\t\t}\r\n\t\t\tsparqlQueryString.append(\" { \");\r\n\t\t\tsparqlQueryString.append(baseQuery.toString());\r\n\t\t\tsparqlQueryString.append(\" ?learning_object <\" + TripleStoreConstants.URI_PREDICATE_TEN_TEXT_TYPE + \"> ?textType . \");\r\n\t\t\tsparqlQueryString.append(\" FILTER (regex(?textType, \\\"\" + studentAnnotationsBean.getPreferredTextContent() + \"\\\", \\\"i\\\" ))\" );\r\n\t\t\tsparqlQueryString.append(\" } \");\r\n\t\t\tupperCondition = true;\r\n\t\t}\r\n\t\t\r\n\t\t//Add preferred image type\r\n\t\tif(!Utils.isEmptyOrNull(studentAnnotationsBean.getPreferredImageContent())){\r\n\t\t\tif(upperCondition){\r\n\t\t\t\tsparqlQueryString.append( \" UNION \" );\r\n\t\t\t}\r\n\t\t\tsparqlQueryString.append(\" { \");\r\n\t\t\tsparqlQueryString.append(baseQuery.toString());\r\n\t\t\tsparqlQueryString.append(\" { ?learning_object <\" + TripleStoreConstants.URI_PREDICATE_TEN_IMAGE_TYPE + \"> ?imageType . \");\r\n\t\t\tsparqlQueryString.append(\" FILTER (regex(?imageType, \\\"\" + studentAnnotationsBean.getPreferredImageContent() + \"\\\", \\\"i\\\" )) \" );\r\n\t\t\tsparqlQueryString.append(\" } \");\r\n\t\t\tupperCondition = true;\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\t//display learning objects of type as recommeded\r\n\t\tif((upperCondition == false) && (!Utils.isEmptyOrNull(studentAnnotationsBean.getPreferredLearningObjectType()))){\r\n\t\t\tsparqlQueryString.append(baseQuery.toString());\r\n\t\t\tupperCondition = true;\r\n\t\t}\r\n\t\t\r\n\t\tsparqlQueryString.append(\" }\");\r\n\t\t\r\n\t\tlog.debug(\"SEARCH QUERY: \" + sparqlQueryString.toString());\r\n\t\t\r\n\t\tif(upperCondition == true){\r\n\t\t\t//STEP 1 - Connect to virtuoso database\r\n\t\t\tVirtGraph graph = new VirtGraph (TripleStoreConstants.VIRTUOSO_GRAPH_URI, m_ds);\r\n\t\t\t\r\n\t\t\tQuery sparql = QueryFactory.create(sparqlQueryString.toString());\r\n\t\t\t\r\n\t\t\tVirtuosoQueryExecution vqe = VirtuosoQueryExecutionFactory.create(sparql.toString(), graph);\r\n\t\r\n\t\t\t//STEP 3 - Execute\r\n\t\t\tResultSet results = vqe.execSelect();\r\n\t\t\twhile (results.hasNext()) {\r\n\t\t\t\tQuerySolution result = results.nextSolution();\r\n\t\t\t RDFNode rdfNodeSubject = result.get(\"learning_object\");\r\n\t\t\t RDFNode rdfNodeObject = result.get(\"learningObjectType\");\r\n\t\t\t if((TripleStoreConstants.URI_TEN_ONTOLOGY + TripleStoreConstants.LEARNING_OBJECT_TYPE_IMAGE).equals(rdfNodeObject.toString())){\r\n\t\t\t \timagesList.add(rdfNodeSubject.toString());\r\n\t\t\t }else if((TripleStoreConstants.URI_TEN_ONTOLOGY + TripleStoreConstants.LEARNING_OBJECT_TYPE_AUDIO).equals(rdfNodeObject.toString())){\r\n\t\t\t \taudioList.add(rdfNodeSubject.toString());\r\n\t\t\t }else if((TripleStoreConstants.URI_TEN_ONTOLOGY + TripleStoreConstants.LEARNING_OBJECT_TYPE_VIDEO).equals(rdfNodeObject.toString())){\r\n\t\t\t \tvideoList.add(rdfNodeSubject.toString());\r\n\t\t\t }else if((TripleStoreConstants.URI_TEN_ONTOLOGY + TripleStoreConstants.LEARNING_OBJECT_TYPE_TEXT).equals(rdfNodeObject.toString())){\r\n\t\t\t \ttextList.add(rdfNodeSubject.toString());\r\n\t\t\t }\r\n\t\t\t }\r\n\t\t}\t\t\r\n\t\treturnMap.put(TripleStoreConstants.LEARNING_OBJECT_TYPE_IMAGE, imagesList);\r\n\t\treturnMap.put(TripleStoreConstants.LEARNING_OBJECT_TYPE_AUDIO, audioList);\r\n\t\treturnMap.put(TripleStoreConstants.LEARNING_OBJECT_TYPE_VIDEO, videoList);\r\n\t\treturnMap.put(TripleStoreConstants.LEARNING_OBJECT_TYPE_TEXT, textList);\r\n\t\t\r\n\t}catch (Exception ex) {\r\n\t\tlog.error(ex);\r\n\t\tthrow ex;\r\n\t}finally{\t\t\t\r\n\t\tlog.debug(this.getClass() + TripleStoreConstants.LOG_END + LOG_METHOD_NAME);\r\n\t}\r\n\treturn returnMap;\r\n}", "public void test_sf_969475() {\n String SOURCE=\n \"<?xml version='1.0'?>\" +\n \"<!DOCTYPE owl [\" +\n \" <!ENTITY rdf 'http://www.w3.org/1999/02/22-rdf-syntax-ns#' >\" +\n \" <!ENTITY rdfs 'http://www.w3.org/2000/01/rdf-schema#' >\" +\n \" <!ENTITY xsd 'http://www.w3.org/2001/XMLSchema#' >\" +\n \" <!ENTITY owl 'http://www.w3.org/2002/07/owl#' >\" +\n \" <!ENTITY dc 'http://purl.org/dc/elements/1.1/' >\" +\n \" <!ENTITY base 'http://jena.hpl.hp.com/test' >\" +\n \" ]>\" +\n \"<rdf:RDF xmlns:owl ='&owl;' xmlns:rdf='&rdf;' xmlns:rdfs='&rdfs;' xmlns:dc='&dc;' xmlns='&base;#' xml:base='&base;'>\" +\n \" <owl:ObjectProperty rdf:ID='p0'>\" +\n \" <owl:inverseOf>\" +\n \" <owl:ObjectProperty rdf:ID='q0' />\" +\n \" </owl:inverseOf>\" +\n \" </owl:ObjectProperty>\" +\n \" <owl:ObjectProperty rdf:ID='p1'>\" +\n \" <owl:inverseOf>\" +\n \" <owl:ObjectProperty rdf:ID='q1' />\" +\n \" </owl:inverseOf>\" +\n \" </owl:ObjectProperty>\" +\n \"</rdf:RDF>\";\n OntModel m = ModelFactory.createOntologyModel( OntModelSpec.OWL_MEM );\n m.read( new StringReader( SOURCE ), null );\n \n ObjectProperty p0 = m.getObjectProperty( \"http://jena.hpl.hp.com/test#p0\");\n Object invP0 = p0.getInverseOf();\n \n assertEquals( m.getResource( \"http://jena.hpl.hp.com/test#q0\"), invP0 );\n assertTrue( \"Should be an ObjectProperty facet\", invP0 instanceof ObjectProperty );\n \n ObjectProperty q1 = m.getObjectProperty( \"http://jena.hpl.hp.com/test#q1\");\n Object invQ1 = q1.getInverse();\n \n assertEquals( m.getResource( \"http://jena.hpl.hp.com/test#p1\"), invQ1 );\n assertTrue( \"Should be an ObjectProperty facet\", invQ1 instanceof ObjectProperty );\n }", "QueryElement addOrEmpty(String collectionProperty);", "@Override\n\tpublic List<T> decodeSparqlResult(String jsonString) {\n\n\t\tList<T> result = new ArrayList<T>();\n\n\t\tJSONObject jsObject = new JSONObject(JSON.decode(jsonString));\n\t\tJSONObject jsResults = jsObject.get(\"results\").isObject();\n\t\tJSONArray bindings = jsResults.get(\"bindings\").isArray();\n\n\t\tfor (int i = 0; i < bindings.size(); i++) {\n\n\t\t\tresult.add(codec.decode(recodeJSON(bindings.get(i).isObject())));\n\t\t}\n\t\treturn result;\n\t}", "public List<T> query(QueryObject qo) {\n\t\treturn null;\n\t}", "public static void main( String[] args ) {\n\n Model m = ModelFactory.createOntologyModel(OntModelSpec.OWL_DL_MEM_RDFS_INF);\n\n\n FileManager.get().readModel( m, owlFile );\n String myOntologyName = \"http://www.w3.org/2002/07/owl#\";\n String myOntologyNS = \"http://www.w3.org/2002/07/owl#\";\n////\n////\n// String rdfPrefix = \"PREFIX rdf: <\"+RDF.getURI()+\">\" ;\n// String myOntologyPrefix = \"PREFIX \"+myOntologyName+\": <\"+myOntologyNS+\">\" ;\n// String myOntologyPrefix1 = \"PREFIX \"+myOntologyName ;\n String myOntologyPrefix2 = \"prefix pizza: <http://www.w3.org/2002/07/owl#> \";\n//\n//\n//// String queryString = myOntologyPrefix + NL\n//// + rdfPrefix + NL +\n//// \"SELECT ?subject\" ;\n \n String queryString = rdfPrefix + myOntologyPrefix2 +\n// \t\t \"prefix pizza: <http://www.w3.org/2002/07/owl#> \"+ \n \t\t \"prefix rdfs: <\" + RDFS.getURI() + \"> \" +\n \t\t \"prefix owl: <\" + OWL.getURI() + \"> \" +\n// \t\t \"select ?o where {?s ?p ?o}\";\n \n//\t\t\t\t\t\t\"select ?s where {?s rdfs:label \"苹果\"@zh}\";\n \n// \"SELECT ?label WHERE { ?subject rdfs:label ?label }\" ;\n// \"SELECT DISTINCT ?predicate ?label WHERE { ?subject ?predicate ?object. ?predicate rdfs:label ?label .}\";\n// \"SELECT DISTINCT ?s WHERE {?s rdfs:label \\\"Italy\\\"@en}\" ;\n// \"SELECT DISTINCT ?s WHERE {?s rdfs:label \\\"苹果\\\"@zh}\" ;\n// \"SELECT DISTINCT ?s WHERE\" +\n// \"{?object rdfs:label \\\"水果\\\"@zh.\" +\n// \"?subject rdfs:subClassOf ?object.\" +\n// \"?subject rdfs:label ?s}\";\n //星号是转义字符,分号是转义字符\n\t\t\t\t\"SELECT DISTINCT ?e ?s WHERE {?entity a ?subject.?subject rdfs:subClassOf ?object.\"+\n \"?object rdfs:label \\\"富士苹果\\\"@zh.?entity rdfs:label ?e.?subject rdfs:label ?s}ORDER BY ?s\";\n \t\t\n\n \n \t\tcom.hp.hpl.jena.query.Query query = QueryFactory.create(queryString);\n \t\tQueryExecution qe = QueryExecutionFactory.create(query, m);\n \t\tcom.hp.hpl.jena.query.ResultSet results = qe.execSelect();\n\n \t\tResultSetFormatter.out(System.out, results, query);\n \t\tqe.close();\n\n// Query query = QueryFactory.create(queryString) ;\n\n query.serialize(new IndentedWriter(System.out,true)) ;\n System.out.println() ;\n\n\n\n QueryExecution qexec = QueryExecutionFactory.create(query, m) ;\n\n try {\n\n ResultSet rs = qexec.execSelect() ;\n\n\n for ( ; rs.hasNext() ; ){\n QuerySolution rb = rs.nextSolution() ;\n RDFNode y = rb.get(\"person\");\n System.out.print(\"name : \"+y+\"--- \");\n Resource z = (Resource) rb.getResource(\"person\");\n System.out.println(\"plus simplement \"+z.getLocalName());\n }\n }\n finally{\n qexec.close() ;\n }\n }", "@Test\n public void testListWithNulls() {\n Node makeNull = Node.ROOT\n .withName(\"makeNull\")\n .withFunction(\"test/makeNull\")\n .withInputAdded(Port.floatPort(\"value\", 0.0));\n Node net = Node.NETWORK\n .withChildAdded(threeNumbers)\n .withChildAdded(makeNull)\n .connect(\"threeNumbers\", \"makeNull\", \"value\");\n assertResultsEqual(net, makeNull);\n }", "public Query( String queryString ) {\r\n\tStringTokenizer tok = new StringTokenizer( queryString );\r\n\twhile ( tok.hasMoreTokens() ) {\r\n\t terms.add( tok.nextToken() );\r\n\t weights.add( new Double(1) );\r\n\t} \r\n }", "@Override\n public R visit(PropertyListNotEmpty n, A argu) {\n R _ret = null;\n n.verb.accept(this, argu);\n n.objectList.accept(this, argu);\n n.nodeListOptional.accept(this, argu);\n return _ret;\n }", "@Override\n\tpublic Set<String> getQueryElementNames() {\n\t\treturn null;\n\t}", "@Test\n public void getGraph2() throws Exception {\n final BlankNodeOrIRI graph2Name = (BlankNodeOrIRI) dataset.stream(Optional.empty(), bob, isPrimaryTopicOf, null)\n .map(Quad::getObject).findAny().get();\n\n try (final Graph g2 = dataset.getGraph(graph2Name).get()) {\n assertEquals(4, g2.size());\n final Triple bobNameTriple = bobNameQuad.asTriple();\n assertTrue(g2.contains(bobNameTriple));\n assertTrue(g2.contains(bob, member, bnode1));\n assertTrue(g2.contains(bob, member, bnode2));\n assertFalse(g2.contains(bnode1, name, secretClubName));\n assertTrue(g2.contains(bnode2, name, companyName));\n }\n }", "public List<TbNode> qureyNodeList(NodeParam queryParam) throws NodeMgrException {\n log.debug(\"start qureyNodeList queryParam:{}\", JsonTools.toJSONString(queryParam));\n\n // query node list\n List<TbNode> listOfNode = nodeMapper.getList(queryParam);\n\n log.debug(\"end qureyNodeList listOfNode:{}\", JsonTools.toJSONString(listOfNode));\n return listOfNode;\n }", "ObstacleQuery createObstacleQuery();", "public SPARQLBooleanXMLParser() {\n\t\tsuper();\n\t}", "protected StmtIterator getRelationIter(Resource resource, SKOSObjectProperty skosObjectProperty, Collection<SKOSConceptScheme> conceptSchemes, Collection<SKOSCollection> skosCollections) {\n if (resource != null) {\n if (skosObjectProperty != null) {\n Property property = PropertyFactory.create(skosObjectProperty);\n StmtFilter csFilter = null;\n if (conceptSchemes!=null && !conceptSchemes.isEmpty()) {\n csFilter = new OrStmtFilter();\n for (SKOSConceptScheme conceptScheme: conceptSchemes) {\n Resource csRes = this.getJenaResource(conceptScheme);\n if (csRes != null) {\n Property inSchemeProp = PropertyFactory.inScheme;\n ((OrStmtFilter)csFilter).add(new StmtObjectHasPropertyFilter(inSchemeProp, csRes));\n }\n else return null;\n }\n }\n StmtFilter collFilter = null;\n if (skosCollections!=null && !skosCollections.isEmpty()) {\n collFilter = new OrStmtFilter();\n for (SKOSCollection collection: skosCollections) {\n Resource collRes = this.getJenaResource(collection);\n if (collRes != null) {\n ((OrStmtFilter)collFilter).add(new StmtObjectIsPropertyOfFilter(collRes, PropertyFactory.member));\n }\n else return null;\n }\n }\n\n StmtFilter stmtFilter = null;\n\n if (csFilter != null) {\n if (collFilter != null) {\n stmtFilter = new AndStmtFilter(csFilter);\n ((AndStmtFilter)stmtFilter).add(collFilter);\n }\n else {\n stmtFilter = csFilter;\n }\n }\n else {\n if (collFilter != null) {\n stmtFilter = collFilter;\n }\n }\n\n Selector selector;\n if (stmtFilter != null) selector = new FilteredSelector(resource, property, (RDFNode)null, stmtFilter);\n else selector = new SimpleSelector(resource, property, (RDFNode)null);\n\n return this.model.listStatements(selector);\n }\n else throw new IllegalArgumentException(\"SKOSObjectProperty must not be null!\");\n }\n else return null;\n }", "private RDFPairs getRDFPairs() {\n return this.rdfPairs;\n }", "String getJournalsCentralGraphQuery();", "@Override\n public R visit(PropertyList n, A argu) {\n R _ret = null;\n n.nodeOptional.accept(this, argu);\n return _ret;\n }", "@Test\n public void example10 () throws Exception {\n ValueFactory f = repo.getValueFactory();\n String exns = \"http://example.org/people/\";\n URI alice = f.createURI(exns, \"alice\");\n URI bob = f.createURI(exns, \"bob\");\n URI ted = f.createURI(exns, \"ted\"); \n URI person = f.createURI(\"http://example.org/ontology/Person\");\n URI name = f.createURI(\"http://example.org/ontology/name\");\n Literal alicesName = f.createLiteral(\"Alice\");\n Literal bobsName = f.createLiteral(\"Bob\");\n Literal tedsName = f.createLiteral(\"Ted\"); \n URI context1 = f.createURI(exns, \"cxt1\"); \n URI context2 = f.createURI(exns, \"cxt2\"); \n conn.add(alice, RDF.TYPE, person, context1);\n conn.add(alice, name, alicesName, context1);\n conn.add(bob, RDF.TYPE, person, context2);\n conn.add(bob, name, bobsName, context2);\n conn.add(ted, RDF.TYPE, person);\n conn.add(ted, name, tedsName);\n \n assertSetsEqual(\n stmts(new Stmt[] {\n new Stmt(alice, RDF.TYPE, person, context1),\n new Stmt(alice, name, alicesName, context1),\n new Stmt(bob, RDF.TYPE, person, context2),\n new Stmt(bob, name, bobsName, context2),\n new Stmt(ted, RDF.TYPE, person),\n new Stmt(ted, name, tedsName)\n }),\n statementSet(conn.getStatements(null, null, null, false)));\n assertSetsEqual(\n stmts(new Stmt[] {\n new Stmt(alice, RDF.TYPE, person, context1),\n new Stmt(alice, name, alicesName, context1),\n new Stmt(bob, RDF.TYPE, person, context2),\n new Stmt(bob, name, bobsName, context2)\n }),\n statementSet(conn.getStatements(null, null, null, false, context1, context2)));\n assertSetsEqual(\n stmts(new Stmt[] {\n new Stmt(bob, RDF.TYPE, person, context2),\n new Stmt(bob, name, bobsName, context2),\n new Stmt(ted, RDF.TYPE, person),\n new Stmt(ted, name, tedsName)\n }),\n statementSet(conn.getStatements(null, null, null, false, null, context2)));\n \n // testing named graph query\n DatasetImpl ds = new DatasetImpl();\n ds.addNamedGraph(context1);\n ds.addNamedGraph(context2);\n TupleQuery tupleQuery = conn.prepareTupleQuery(\n QueryLanguage.SPARQL, \"SELECT ?s ?p ?o ?g WHERE { GRAPH ?g {?s ?p ?o . } }\");\n tupleQuery.setDataset(ds);\n assertSetsEqual(\n stmts(new Stmt[] {\n new Stmt(alice, RDF.TYPE, person, context1),\n new Stmt(alice, name, alicesName, context1),\n new Stmt(bob, RDF.TYPE, person, context2),\n new Stmt(bob, name, bobsName, context2)\n }),\n statementSet(tupleQuery.evaluate()));\n \n ds = new DatasetImpl();\n ds.addDefaultGraph(null);\n tupleQuery = conn.prepareTupleQuery(QueryLanguage.SPARQL, \"SELECT ?s ?p ?o WHERE {?s ?p ?o . }\");\n tupleQuery.setDataset(ds);\n assertSetsEqual(\n stmts(new Stmt[] {\n new Stmt(ted, RDF.TYPE, person),\n new Stmt(ted, name, tedsName)\n }),\n statementSet(tupleQuery.evaluate()));\n }", "stars.StarListDocument.StarList getStarList();", "public List<NeonValue> getValues();", "StringBuffer getSparqlHeader(StringBuffer sb) {\r\n \tString SPACE = KeywordPP.SPACE;\r\n \tList<Constant> from = getFrom();\r\n \tList<Constant> named = getNamed();\r\n \tList<Variable> select = getSelectVar();\r\n\r\n \t// Select\r\n \tif (isSelect()) {\r\n \t\tsb.append(KeywordPP.SELECT + SPACE);\r\n \t\t\r\n \t\tif (isDebug())\r\n \t\t\tsb.append(KeywordPP.DEBUG + SPACE);\r\n \t\t\r\n \t\tif (isMore())\r\n \t\t\tsb.append(KeywordPP.MORE + SPACE);\r\n \t\t\r\n \t\tif (isDistinct())\r\n \t\t\tsb.append(KeywordPP.DISTINCT + SPACE);\r\n\r\n \t\tif (isSelectAll()) {\r\n \t\t\tsb.append(KeywordPP.STAR + SPACE);\r\n \t\t}\r\n \t\t\r\n \t\tif (select != null && select.size()>0){\r\n \t\t\tfor (Variable s : getSelectVar()){\r\n \r\n \t\t\t\tif (getExpression(s) != null) {\r\n \t\t\t\t\texpr(getExpression(s), s, sb);\r\n \t\t\t\t}\r\n \t\t\t\telse {\r\n \t\t\t\t\tsb.append(s);\r\n \t\t\t\t}\r\n sb.append(SPACE);\r\n \t\t\t}\r\n \t\t} \r\n \t\t\r\n \t} \r\n \telse if (isAsk()) {\r\n \t\tsb.append(KeywordPP.ASK + SPACE);\r\n \t} \r\n \telse if (isDelete()) {\r\n \t\tsb.append(KeywordPP.DELETE + SPACE); \r\n \t\tif (isDeleteData()){\r\n \t\t\tsb.append(KeywordPP.DATA + SPACE); \r\n\t\t\t}\r\n \t\tgetDelete().toString(sb);\r\n \t\t\r\n \t\tif (isInsert()){\r\n \t\t\tsb.append(KeywordPP.INSERT + SPACE); \r\n \t\tgetInsert().toString(sb); \r\n \t\t}\r\n \t\t\r\n \t}\r\n \telse if (isConstruct()) {\r\n \t\tif (isInsert()){\r\n \t\t\tsb.append(KeywordPP.INSERT + SPACE); \r\n \t\t\tif (isInsertData()){\r\n \t\t\tsb.append(KeywordPP.DATA + SPACE); \r\n \t\t\t}\r\n \t\tgetInsert().toString(sb); \r\n \t\t}\r\n \t\telse if (getConstruct() != null){\r\n \t\tsb.append(KeywordPP.CONSTRUCT + SPACE); \r\n \t\tgetConstruct().toString(sb); \r\n \t\t}\r\n \t\telse if (getInsert() != null){\r\n \t\tsb.append(KeywordPP.INSERT + SPACE); \r\n \t\tgetInsert().toString(sb); \r\n \t\t}\r\n \t\telse if (getDelete() != null){\r\n \t\tsb.append(KeywordPP.DELETE + SPACE); \r\n \t\tif (isDeleteData()){\r\n \t\t\tsb.append(KeywordPP.DATA + SPACE); \r\n \t\t\t}\r\n \t\tgetDelete().toString(sb); \r\n \t\t}\r\n \t} \r\n \telse if (isDescribe()) {\r\n \t\tsb.append(KeywordPP.DESCRIBE + SPACE);\r\n \t\t\r\n \t\tif (isDescribeAll()) {\r\n \t\t\tsb.append(KeywordPP.STAR + SPACE);\r\n \t\t} \r\n \t\telse if (adescribe != null && adescribe.size()>0) {\r\n\r\n \t\t\tfor (Atom at : adescribe) {\r\n \t\t\t\tat.toString(sb);\r\n \t\t\t\tsb.append(SPACE);\r\n \t\t\t}\r\n \t\t}\r\n \t} \r\n \t\r\n \t// DataSet\r\n \t//if (! isConstruct()) // because it's already done in the construct case\r\n \t\tsb.append(NL);\r\n \t\r\n \t// From\r\n \tfor (Atom name: from) {\r\n \t\tsb.append(KeywordPP.FROM + SPACE);\r\n \t\tname.toString(sb);\r\n \t\tsb.append(NL);\r\n \t}\r\n \t\r\n \t// From Named\r\n \tfor (Atom name : named) {\r\n \t\tsb.append(KeywordPP.FROM + SPACE + KeywordPP.NAMED + SPACE);\r\n \t\tname.toString(sb);\r\n \t\tsb.append(NL);\r\n \t}\r\n \t\r\n \t// Where\r\n \tif ((! (isDescribe() && ! isWhere())) && ! isData() ){\r\n \t\tsb.append(KeywordPP.WHERE + NL) ; \r\n \t}\r\n\r\n \treturn sb;\r\n }", "@Override\n public R visit(SparqlString n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "java.util.List<WorldUps.UQuery> \n getQueriesList();", "@Override\r\n\tpublic ArrayList<ArrayList<Value>> getResults(Value[] quad) throws IOException {\n\t\treturn null;\r\n\t}", "@Override\n public R visit(SparqlSpin n, A argu) {\n R _ret = null;\n n.prologue.accept(this, argu);\n n.nodeList.accept(this, argu);\n return _ret;\n }", "@Override\n\tpublic List queryAll() throws Exception {\n\t\treturn null;\n\t}", "ArrayList<Map<String,Object>> parseQueryResult(Object result) { return null;}", "public String ExecuteCypherQueryJSONListStringReturn(String cypherQuery) {\r\n\t\t\r\n String resultString = \"\";\r\n\t\tNodeController nc = new NodeController();\r\n\t\tExecutionEngine engine = new ExecutionEngine( _db );\r\n\t\tExecutionResult result = null;\r\n\t\tTransaction tx = _db.beginTx();\r\n\t\ttry {\r\n\t\t result = engine.execute(cypherQuery);\r\n\t\t resultString = nc.convertIteratorToJSONArray(result);\t\r\n \r\n\t\t tx.success();\r\n\t\t} catch (Exception ex) {\r\n\t\t\tex.printStackTrace();\r\n\t\t\tSystem.out.print(\"issues with fetching node and its relations\");\r\n\t\t\ttx.failure();\r\n\t\t\t//return \"failed\";\r\n\t\t} finally {\r\n\t\t\ttx.close();\r\n\t\t}\r\n\t\t\r\n\t\treturn resultString;\r\n\t}", "String getJournalsLantindexGraphQuery();", "List<CyNode> getNodeList();", "List<NjProductTaticsRelation> selectByExample(NjProductTaticsRelationExample example);", "java.util.List<? extends WorldUps.UQueryOrBuilder> \n getQueriesOrBuilderList();", "@Override\n public R visit(BlankNodePropertyList n, A argu) {\n R _ret = null;\n n.nodeToken.accept(this, argu);\n n.propertyListNotEmpty.accept(this, argu);\n n.nodeToken1.accept(this, argu);\n return _ret;\n }", "java.util.List<uk.ac.cam.acr31.features.javac.proto.GraphProtos.FeatureNode> \n getNodeList();", "public NodeList convertToNodeset() {\n/* 242 */ if (this.m_obj instanceof NodeList) {\n/* 243 */ return (NodeList)this.m_obj;\n/* */ }\n/* 245 */ return new DTMNodeList(asNodeIterator());\n/* */ }", "public String getOntologyListString()\n {\n String returnString = \"\";\n \n for(int i=0;i<getOntologyListSize();i++)\n {\n VueMetadataElement vme = getOntologyListElement(i);\n returnString += vme.getObject() + \"|\";\n }\n \n return returnString;\n }", "public Collection<URI> searchWithSPARQL(final String queryString)\n {\n if (DEBUG.SEARCH) Log.debug(\"searchWithSPARQL; queryString:\\n\" + Util.tags(queryString));\n \n final Collection<URI> resultSet = new ArrayList<URI>();\n final com.hp.hpl.jena.query.Query query = QueryFactory.create(queryString);\n \n if (DEBUG.SEARCH) Log.debug(\"QF created \" + Util.tag(query)\n + \"; memory=\" + Runtime.getRuntime().freeMemory()\n + \"\\n\" + query.toString().trim().replaceAll(\"\\n\\n\", \"\\n\"));\n\n final QueryExecution qe = QueryExecutionFactory.create(query, this); // 2nd arg is for Model or for FileManager?\n if (DEBUG.SEARCH) Log.debug(\"created QEF \" + qe + \"; memory=\" + Runtime.getRuntime().freeMemory());\n\n final ResultSet results = qe.execSelect();\n if (DEBUG.SEARCH) Log.debug(\"execSelect returned; memory=\" + Runtime.getRuntime().freeMemory());\n \n while (results.hasNext()) {\n final QuerySolution qs = results.nextSolution();\n if (DEBUG.SEARCH) {\n final String qss = qs.toString().replaceAll(\"<http://vue.tufts.edu\", \"...\"); // shorten debug output\n Log.debug(\"qSol \" + String.format(\"%.190s%s\", qss, qss.length() > 190 ? (\"...x\"+qss.length()) : \"\"));\n }\n if (false) {\n // debug debug all vars from query\n //Util.dumpIterator(qs.varNames());\n Iterator<String> vn = qs.varNames(); \n while (vn.hasNext()) {\n String v = vn.next();\n Log.debug(\"\\t\" + Util.tags(v) + \"=\" + Util.tags(qs.get(v)));\n }\n }\n try {\n resultSet.add(new URI(qs.getResource(\"rid\").getURI()));\n } catch (Throwable t) {\n Log.warn(\"handling QuerySolution \" + qs, t);\n }\n }\n qe.close();\n return resultSet;\n }", "@SuppressWarnings(\"rawtypes\")\n\t@Test\n\tpublic void retrieveArrays() {\n\t\tObjectSet result = db.queryByExample(new double[] { 0.6, 0.4 });\n\t\tlistResult(result);\n\n\t\t// Important note QBE does not work well with arrays\n\t\tassertEquals(0, result.size());\n\n\t}", "public void test_dn_0() {\n OntModel schema = ModelFactory.createOntologyModel( OntModelSpec.OWL_LITE_MEM_RULES_INF, null );\n \n schema.read( \"file:doc/inference/data/owlDemoSchema.xml\", null );\n \n int count = 0;\n for (Iterator i = schema.listIndividuals(); i.hasNext(); ) {\n //Resource r = (Resource) i.next();\n i.next();\n count++;\n /* Debugging * /\n for (StmtIterator j = r.listProperties(RDF.type); j.hasNext(); ) {\n System.out.println( \"ind - \" + r + \" rdf:type = \" + j.nextStatement().getObject() );\n }\n System.out.println(\"----------\"); /**/\n }\n \n assertEquals( \"Expecting 6 individuals\", 6, count );\n }", "QueryElement addNotEmpty(String collectionProperty);", "public SortedSet<Example> getExamplesByQTL(List<String> positives,List<String> negatives,Set<String> questionWords)\n \t{\n \t\tlogger.info(\"getExamplesByQTL(\"+positives+\",\"+negatives+\",\"+questionWords+\")\");\n //\t\tCache cache = getCacheManager().getCache(\"qtl\");\n //\t\tList<Collection> parameters = new LinkedList<Collection>(Arrays.asList(new Collection[]{positives,negatives,questionWords}));\n //\t\t{\n //\t\t\tElement e;\n //\t\t\tif((e=cache.get(parameters))!=null) {return (SortedSet<Example>)e.getValue();}\n //\t\t}\n \t\tQTL qtl = new QTL(endpoint, selectCache);\n \t\tqtl.setExamples(positives, negatives);\n \t\tif(questionWords!=null) {qtl.addStatementFilter(new QuestionBasedStatementFilter(questionWords));}\n \t\tqtl.start();\n \t\t// TODO extract relevant words\n \t\t// behält nur die kanten wo die property mit einem wort oder das objekt ähnlichkeit hat\t\t\n \t\tString query = qtl.getBestSPARQLQuery();\n \t\t// get all triples belonging to the subjects\n \t\tquery = query.replace(\"SELECT ?x0 WHERE {\", \"SELECT ?x0 ?p ?o WHERE {?x0 ?p ?o. \");\n \t\tquery = query.replace(\"?x0\", \"?s\");\n \n \t\ttry\n \t\t{\n \t\t\tResultSet rs = SparqlQuery.convertJSONtoResultSet(selectCache.executeSelectQuery(endpoint, query));\n \t\t\tSortedSet<Example> examples = fillExamples(null, rs);\n \t\t\t//\t\t\tcache.put(new Element(parameters,examples));\n \t\t\t//\t\t\tcache.flush();\n \t\t\tif(examples.size()>MAX_NUMBER_OF_EXAMPLES) {return new TreeSet<Example>(new LinkedList<Example>(examples).subList(0, MAX_NUMBER_OF_EXAMPLES-1));}\n \t\t\treturn examples;\n \n \n \t\t\t//\t\t\tMap<String,Example> examples = new HashMap<String,Example>();\n \t\t\t//\t\t\tLanguageResolver resolver = new LanguageResolver();\n \t\t\t//\t\t\tfor(QuerySolution qs=rs.next(); rs.hasNext();qs=rs.next())\n \t\t\t//\t\t\t{\n \t\t\t//\t\t\t\tString property = qs.getResource(\"p\").getURI();\n \t\t\t//\t\t\t\tif(BlackList.dbpedia.contains(property)) {continue;}\n \t\t\t//\t\t\t\tString uri = qs.getResource(\"x0\").getURI();\n \t\t\t//\n \t\t\t//\t\t\t\tExample e=examples.containsKey(uri)?examples.get(uri):new Example(uri);\n \t\t\t//\t\t\t\texamples.put(uri,e);\n \t\t\t//\n \t\t\t//\t\t\t\tString object = qs.get(\"o\").toString();\n \t\t\t//\n \t\t\t//\t\t\t\tString oldObject=e.get(property);\n \t\t\t//\t\t\t\tif(oldObject!=null)\n \t\t\t//\t\t\t\t{\n \t\t\t//\t\t\t\t\te.set(property, resolver.resolve(oldObject, object));\n \t\t\t//\t\t\t\t}\n \t\t\t//\n \t\t\t//\t\t\t\te.set(property,object.toString());\n \t\t\t//\t\t\t}\n \t\t\t//\t\t\treturn new ArrayList<Example>(examples.values());\n \t\t}\n \t\tcatch(Exception e)\n \t\t{\n \t\t\tthrow new SPARQLException(e,query,endpoint.toString());\n \t\t}\n \t}", "@Override\n public String visit(NodeList n, Object arg) {\n return null;\n }", "public Iterable<Vertex> multiIndexSearch(Object searchObject){\n\t\treturn null;\n\t}", "protected StmtIterator getRelationIter(Resource resource, SKOSObjectProperty skosObjectProperty, SKOSConceptScheme conceptScheme, SKOSCollection skosCollection) {\n if (resource != null) {\n if (skosObjectProperty != null) {\n Property property = PropertyFactory.create(skosObjectProperty);\n StmtFilter csFilter = null;\n if (conceptScheme!=null) {\n Resource csRes = this.getJenaResource(conceptScheme);\n if (csRes != null) {\n Property inSchemeProp = PropertyFactory.inScheme;\n csFilter = new StmtObjectHasPropertyFilter(inSchemeProp, csRes);\n }\n else return null;\n }\n StmtFilter collFilter = null;\n if (skosCollection!=null) {\n Resource collRes = this.getJenaResource(skosCollection);\n if (collRes != null) {\n collFilter = new StmtObjectIsPropertyOfFilter(collRes, PropertyFactory.member);\n }\n else return null;\n }\n\n StmtFilter stmtFilter = null;\n\n if (csFilter != null) {\n if (collFilter != null) {\n stmtFilter = new AndStmtFilter(csFilter);\n ((AndStmtFilter)stmtFilter).add(collFilter);\n }\n else {\n stmtFilter = csFilter;\n }\n }\n else {\n if (collFilter != null) {\n stmtFilter = collFilter;\n }\n }\n\n Selector selector;\n if (stmtFilter != null) selector = new FilteredSelector(resource, property, (RDFNode)null, stmtFilter);\n else selector = new SimpleSelector(resource, property, (RDFNode)null);\n\n return this.model.listStatements(selector);\n }\n else throw new IllegalArgumentException(\"SKOSObjectProperty must not be null!\");\n }\n else return null;\n }", "List<SPerms> selectByExample(SPermsExample example);", "public final EObject ruleSparqlQueryVariable() throws RecognitionException {\n EObject current = null;\n\n Token otherlv_0=null;\n Token lv_variable_1_0=null;\n Token otherlv_2=null;\n Token lv_variable_3_0=null;\n\n enterRule(); \n \n try {\n // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:1780:28: ( (otherlv_0= '?' ( (lv_variable_1_0= RULE_STRING ) ) (otherlv_2= '?' ( (lv_variable_3_0= RULE_STRING ) ) )* ) )\n // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:1781:1: (otherlv_0= '?' ( (lv_variable_1_0= RULE_STRING ) ) (otherlv_2= '?' ( (lv_variable_3_0= RULE_STRING ) ) )* )\n {\n // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:1781:1: (otherlv_0= '?' ( (lv_variable_1_0= RULE_STRING ) ) (otherlv_2= '?' ( (lv_variable_3_0= RULE_STRING ) ) )* )\n // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:1781:3: otherlv_0= '?' ( (lv_variable_1_0= RULE_STRING ) ) (otherlv_2= '?' ( (lv_variable_3_0= RULE_STRING ) ) )*\n {\n otherlv_0=(Token)match(input,34,FOLLOW_34_in_ruleSparqlQueryVariable3970); \n\n \tnewLeafNode(otherlv_0, grammarAccess.getSparqlQueryVariableAccess().getQuestionMarkKeyword_0());\n \n // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:1785:1: ( (lv_variable_1_0= RULE_STRING ) )\n // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:1786:1: (lv_variable_1_0= RULE_STRING )\n {\n // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:1786:1: (lv_variable_1_0= RULE_STRING )\n // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:1787:3: lv_variable_1_0= RULE_STRING\n {\n lv_variable_1_0=(Token)match(input,RULE_STRING,FOLLOW_RULE_STRING_in_ruleSparqlQueryVariable3987); \n\n \t\t\tnewLeafNode(lv_variable_1_0, grammarAccess.getSparqlQueryVariableAccess().getVariableSTRINGTerminalRuleCall_1_0()); \n \t\t\n\n \t if (current==null) {\n \t current = createModelElement(grammarAccess.getSparqlQueryVariableRule());\n \t }\n \t\taddWithLastConsumed(\n \t\t\tcurrent, \n \t\t\t\"variable\",\n \t\tlv_variable_1_0, \n \t\t\"STRING\");\n \t \n\n }\n\n\n }\n\n // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:1803:2: (otherlv_2= '?' ( (lv_variable_3_0= RULE_STRING ) ) )*\n loop18:\n do {\n int alt18=2;\n int LA18_0 = input.LA(1);\n\n if ( (LA18_0==34) ) {\n alt18=1;\n }\n\n\n switch (alt18) {\n \tcase 1 :\n \t // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:1803:4: otherlv_2= '?' ( (lv_variable_3_0= RULE_STRING ) )\n \t {\n \t otherlv_2=(Token)match(input,34,FOLLOW_34_in_ruleSparqlQueryVariable4005); \n\n \t \tnewLeafNode(otherlv_2, grammarAccess.getSparqlQueryVariableAccess().getQuestionMarkKeyword_2_0());\n \t \n \t // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:1807:1: ( (lv_variable_3_0= RULE_STRING ) )\n \t // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:1808:1: (lv_variable_3_0= RULE_STRING )\n \t {\n \t // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:1808:1: (lv_variable_3_0= RULE_STRING )\n \t // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:1809:3: lv_variable_3_0= RULE_STRING\n \t {\n \t lv_variable_3_0=(Token)match(input,RULE_STRING,FOLLOW_RULE_STRING_in_ruleSparqlQueryVariable4022); \n\n \t \t\t\tnewLeafNode(lv_variable_3_0, grammarAccess.getSparqlQueryVariableAccess().getVariableSTRINGTerminalRuleCall_2_1_0()); \n \t \t\t\n\n \t \t if (current==null) {\n \t \t current = createModelElement(grammarAccess.getSparqlQueryVariableRule());\n \t \t }\n \t \t\taddWithLastConsumed(\n \t \t\t\tcurrent, \n \t \t\t\t\"variable\",\n \t \t\tlv_variable_3_0, \n \t \t\t\"STRING\");\n \t \t \n\n \t }\n\n\n \t }\n\n\n \t }\n \t break;\n\n \tdefault :\n \t break loop18;\n }\n } while (true);\n\n\n }\n\n\n }\n\n leaveRule(); \n }\n \n catch (RecognitionException re) { \n recover(input,re); \n appendSkippedTokens();\n } \n finally {\n }\n return current;\n }", "@Override\n\tpublic void visit(ValueListExpression arg0) {\n\t\t\n\t}", "@Test public void onePredicate() {\n query(\"//ul/li['']\", \"\");\n query(\"//ul/li['x']\", LI1 + '\\n' + LI2);\n query(\"//ul/li[<a b='{\" + _RANDOM_INTEGER.args() + \" }'/>]\", LI1 + '\\n' + LI2);\n\n query(\"//ul/li[0]\", \"\");\n query(\"//ul/li[1]\", LI1);\n query(\"//ul/li[2]\", LI2);\n query(\"//ul/li[3]\", \"\");\n query(\"//ul/li[last()]\", LI2);\n }", "@org.junit.Test\n public void constrCompelemNodeid2() {\n final XQuery query = new XQuery(\n \"for $x in <a b=\\\"b\\\"/>, $y in element elem {$x/@b} return $y/@b is $x/@b\",\n ctx);\n try {\n result = new QT3Result(query.value());\n } catch(final Throwable trw) {\n result = new QT3Result(trw);\n } finally {\n query.close();\n }\n test(\n assertBoolean(false)\n );\n }", "public static void querying(String constructQuery2) {\n\t\t//construct the new query\n\t\t//String constructQuery2 = prefix+\" \"+select+\" \"+selectValues+\" \"+where+openBracket+openBracket+\" \"+local+\" \"+service+\" \"+openBracket+\" \"+remote+\" \"+closeBracket+closeBracket;\n\t\t//constructQuery2 = constructQuery2+\" UNION \"+\" \"+openBracket+\" \"+local+\" \"+service+\" \"+openBracket+\" \"+remote+\" \"+closeBracket+closeBracket+closeBracket;\n\t\t\n\t\tSystem.out.println(constructQuery2);\n\t\tQuery query2 = QueryFactory.create(constructQuery2);\n\t\tQueryExecution qe2 = QueryExecutionFactory.sparqlService(\n\t\t\t\t\"http://localhost:3030/USNA/query\", query2);\n\t\t\n\t\tResultSet results1 = qe2.execSelect();\n\t\tif(constantOutput == \"\") {\n\t\t\tResultSetFormatter.out(System.out, results1);\n\t\t}else {\n\t\t\tString NS = \"http://www.usna.org/ns#\";\n\t\t\tModel rdfssExample = ModelFactory.createDefaultModel();\n\t\t\tString [] constant = constantOutput.trim().split(\" \");\n\t\t\t\n\t\t\tString [] headers = selectValues.split(\" \");\n\t\t System.out.println(\"--------------------------------------------------------------------------------------------------------------------------------------------\");\n\t\t\tfor(int i = 0; i< headers.length; i++) {\n\t\t\t\t//System.out.print(headers[i].substring(1,headers[i].length()).trim()+\"\\t\\t\\t\\t\\t\\t\");\n\t\t\t\tSystem.out.print(headers[i].substring(1,headers[i].length()).trim()+\"\\t\\t\\t\\t\\t\\t\");\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t\tSystem.out.println(\"----------------------------------------------------------------------------------------------------------------------------------------------\");\n\t\t\tSystem.out.println();\n\t\t\t\n\t\t\ttry {\n\t\t\t\t int count = 0;\n\t\t while ( results1.hasNext() ) {\n\t\t \t //Resource Response = rdfssExample.createResource(NS+constant[count]);\n\t\t \t \n\t\t QuerySolution soln = results1.nextSolution();\n\t\t Resource first = soln.getResource(headers[0].substring(1,headers[0].length()).trim());\n\t\t //Resource second = soln.getResource(headers[1].substring(1,headers[1].length()).trim());\n\t\t //Resource third = soln.getResource(headers[2].substring(1,headers[2].length()).trim());\n\t\t //Resource fourth = soln.getResource(headers[3].substring(1,headers[3].length()).trim());\n\t\t for(int i=0; i< constant.length; i++) {\n\t\t \t Resource Response = rdfssExample.createResource(NS+constant[i]);\n\t\t \t System.out.format(\"%10s %50s\",first, Response);\n\t\t \t System.out.println();\n\t\t\t\t\t //count++;\n\t\t }\n\t\t //System.out.format(\"%10s %50s\",first, Response);\n\t\t //System.out.format(\"%10s\",first);\n\t\t\t\t System.out.println();\n\t\t\t\t //count++;\n\t\t\t\t \n\t\t\t\t //System.out.println(count);\n\t\t \n\t\t }\n\t\t } finally {\n\t\t \t qe2.close();\n\t\t}\n\t\t\t \n\t\t}\t\t \n\t}", "public Vector<Node> GetAdditionalSubNodes();", "SparqlResultObject callSelectQuery(String name, Map<String, String> params);", "public void test_ck_02() {\n OntModel vocabModel = ModelFactory.createOntologyModel();\n ObjectProperty p = vocabModel.createObjectProperty(\"p\");\n OntClass A = vocabModel.createClass(\"A\");\n \n OntModel workModel = ModelFactory.createOntologyModel();\n Individual sub = workModel.createIndividual(\"uri1\", A);\n Individual obj = workModel.createIndividual(\"uri2\", A);\n workModel.createStatement(sub, p, obj);\n }", "public List<IPSQueryNode> getParameters()\n {\n if (m_parameters == null)\n return null;\n else\n return Collections.unmodifiableList(m_parameters);\n }", "java.util.List<java.lang.String>\n getQueryItemsList();", "public void nodata();", "List<?> query(Object inputObject, Settings settings);", "@Override\n\tpublic List<N> getNodeList()\n\t{\n\t\treturn new ArrayList<N>(nodeList);\n\t}", "@Test\n public void testList() {\n SLNode one = new SLNode(1, null);\n SLNode twoOne = new SLNode(2, one);\n SLNode threeTwoOne = new SLNode(3, twoOne);\n\n SLNode x = SLNode.of(3, 2, 1);\n assertEquals(threeTwoOne, x);\n }", "void emptyType(ComplexTypeSG type) throws SAXException;", "public /*@ non_null @*/ String toString() {\n String ret = \"[\";\n JMLListEqualsNode<E> thisLst = this;\n boolean firstTime = true;\n while (thisLst != null) {\n if (!firstTime) {\n ret += \", \";\n } else {\n firstTime = false;\n }\n if (thisLst.val == null) {\n ret += \"null\";\n } else {\n ret += thisLst.val.toString();\n }\n thisLst = thisLst.next;\n }\n ret += \"]\";\n return ret;\n }", "public void test_der_02() {\n String SOURCE=\n \"<?xml version='1.0'?>\" +\n \"<!DOCTYPE owl [\" +\n \" <!ENTITY rdf 'http://www.w3.org/1999/02/22-rdf-syntax-ns#' >\" +\n \" <!ENTITY rdfs 'http://www.w3.org/2000/01/rdf-schema#' >\" +\n \" <!ENTITY xsd 'http://www.w3.org/2001/XMLSchema#' >\" +\n \" <!ENTITY owl 'http://www.w3.org/2002/07/owl#' >\" +\n \" <!ENTITY dc 'http://purl.org/dc/elements/1.1/' >\" +\n \" <!ENTITY base 'http://jena.hpl.hp.com/test' >\" +\n \" ]>\" +\n \"<rdf:RDF xmlns:owl ='&owl;' xmlns:rdf='&rdf;' xmlns:rdfs='&rdfs;' xmlns:dc='&dc;' xmlns='&base;#' xml:base='&base;'>\" +\n \" <owl:ObjectProperty rdf:ID='hasPublications'>\" +\n \" <rdfs:domain>\" +\n \" <owl:Class>\" +\n \" <owl:unionOf rdf:parseType='Collection'>\" +\n \" <owl:Class rdf:about='#Project'/>\" +\n \" <owl:Class rdf:about='#Task'/>\" +\n \" </owl:unionOf>\" +\n \" </owl:Class>\" +\n \" </rdfs:domain>\" +\n \" <rdfs:domain rdf:resource='#Dummy' />\" +\n \" <rdfs:range rdf:resource='#Publications'/>\" +\n \" </owl:ObjectProperty>\" +\n \" <owl:Class rdf:ID='Dummy'>\" +\n \" </owl:Class>\" +\n \"</rdf:RDF>\";\n String NS = \"http://jena.hpl.hp.com/test#\";\n OntModel m = ModelFactory.createOntologyModel(OntModelSpec.OWL_MEM, null);\n m.read(new ByteArrayInputStream( SOURCE.getBytes()), NS );\n \n OntClass dummy = m.getOntClass( NS + \"Dummy\" );\n // assert commented out - bug not accepted -ijd\n //TestUtil.assertIteratorValues( this, dummy.listDeclaredProperties(), \n // new Object[] {m.getObjectProperty( NS+\"hasPublications\")} );\n }", "public String getRuleBodySQLQueries(List<SWRLAtom> bodyAtoms, Map<String, String> v2prefix) {\n\t\tOntopOWLConnection conn = null;\n\t\tOntopOWLStatement st = null;\n\t\tString sql = null;\n\t\ttry{\n\t\t\tconn = _reasoner.getConnection();\n\t\t\tst = conn.createStatement();\n\t\t\tList<String> lines = new LinkedList<String>();\n\t\t\t\n\t\t\t// parse atoms into sparql query constraints\n\t\t\tfor(SWRLAtom atom : bodyAtoms) {\n\t\t\t\tif (atom instanceof SWRLClassAtom) {\n\t\t\t\t\t// class assertion\n\t\t\t\t\tString cls = atom.getPredicate().toString();\n\t\t\t\t\tString var = null;\n\t\t\t\t\tfor(SWRLArgument arg : atom.getAllArguments()) {\n\t\t\t\t\t\tif (arg instanceof SWRLVariable) {\n\t\t\t\t\t\t\t var = ((SWRLVariable)arg).getIRI().getRemainder().get();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tlines.add(String.format(\"?%s a %s .\", var, cls));\n\t\t\t\t}else if(atom instanceof SWRLDataPropertyAtom) {\n\t\t\t\t\t//data value property\n\t\t\t\t\tString pred = atom.getPredicate().toString();\n\t\t\t\t\tList<String> vars = new LinkedList<String>();\n\t\t\t\t\tString val = \"\";\n\t\t\t\t\tfor(SWRLArgument arg : atom.getAllArguments()) {\n\t\t\t\t\t\tif (arg instanceof SWRLVariable) {\n\t\t\t\t\t\t\tvars.add(((SWRLVariable)arg).getIRI().getRemainder().get());\n\t\t\t\t\t\t}else if (arg instanceof SWRLLiteralArgument) {\n\t\t\t\t\t\t\t val = arg.toString();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif (vars.size() == 2)\n\t\t\t\t\t\tlines.add(String.format(\"?%s %s ?%s .\", vars.get(0), pred, vars.get(1)));\n\t\t\t\t\telse\n\t\t\t\t\t\tlines.add(String.format(\"?%s %s %s .\", vars.get(0), pred, val));\n\t\t\t\t}else if(atom instanceof SWRLObjectPropertyAtom) {\n\t\t\t\t\t// object property\n\t\t\t\t\tString pred = atom.getPredicate().toString();\n\t\t\t\t\tList<String> vars = new LinkedList<String>();\n\t\t\t\t\tfor(SWRLArgument arg : atom.getAllArguments()) {\n\t\t\t\t\t\tif (arg instanceof SWRLVariable) {\n\t\t\t\t\t\t\tvars.add(((SWRLVariable)arg).getIRI().getRemainder().get());\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif (vars.size() == 2)\n\t\t\t\t\t\tlines.add(String.format(\"?%s %s ?%s .\", vars.get(0), pred, vars.get(1)));\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\tString sparqlQuery = String.format(queryTemplate, String.join(\"\\n\", lines));\n\t\t\t_logger.info(String.format(\"SPARQL: [%s]\", sparqlQuery));\n\t sql = st.getExecutableQuery(sparqlQuery).toString();\n } catch(Exception e){\n \te.printStackTrace();\n }finally {\n \tif (conn != null) {\n \t\ttry {\n \t\t\tst.close();\n\t\t\t\t\tconn.close();\n\t\t\t\t} catch (OWLException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n \t}\n }\n\t\tif (null != sql) {\n\t\t\tsql = clearGeneratedSQl(sql);\n\t\t\tsql = fixURIPrefixIssue(sql, v2prefix);\n\t\t}\n\t\t_logger.info(String.format(\"translated SQL is: [%s]\", sql));\n\t\treturn sql;\n\t}", "TripleGraph createTripleGraph();", "public sparqles.avro.analytics.EPViewInteroperability.Builder clearSPARQL1Features() {\n SPARQL1Features = null;\n fieldSetFlags()[0] = false;\n return this;\n }", "private List<Query> createSynonymQueries(SolrParams solrParams, List<String> alternateQueryTexts) {\n \n String nullsafeOriginalString = getQueryStringFromParser();\n \n List<Query> result = new ArrayList<>();\n for (String alternateQueryText : alternateQueryTexts) {\n if (alternateQueryText.equalsIgnoreCase(nullsafeOriginalString)) { \n // alternate query is the same as what the user entered\n continue;\n }\n \n synonymQueryParser.setString(alternateQueryText);\n try {\n result.add(synonymQueryParser.parse());\n } catch (SyntaxError e) {\n // TODO: better error handling - for now just bail out; ignore this synonym\n e.printStackTrace(System.err);\n }\n }\n \n return result;\n }", "List<TrackRailsSingleNodeElement> values();", "public List<Artist> getArtistsWhichHaveNoReleases();", "@Override\n\tprotected String findAllStatement() {\n\t\treturn null;\n\t}", "public interface SparqlQueryService {\n\n\t/**\n\t * Generic method to invoke a supplied query regardless of its type. The\n\t * client has to inspect and cast the result object accordingly.\n\t * \n\t * @param name\n\t * @param params\n\t * @return\n\t */\n\tObject executeQuery(String sparqlQuery);\n\n\t/**\n\t * Generic method to invoke a query regardless of its type. The client has\n\t * to inspect and cast the result object accordingly.\n\t * \n\t * @param name\n\t * @param params\n\t * @return\n\t */\n\tObject callQuery(String name, Map<String, String> params);\n\n\t/**\n\t * Invocation of a SPARQL SELECT query. The resultant JSON structure is\n\t * serialized according to the W3C SPARQL 1.1 Query Results JSON Format.\n\t * \n\t * @see http://www.w3.org/TR/sparql11-query/#select\n\t * @param name\n\t * @param params\n\t * @return JSON result structure.\n\t */\n\tSparqlResultObject callSelectQuery(String name, Map<String, String> params);\n\n\t/**\n\t * Invocation of a SPARQL CONSTRUCT query resulting in new graph serialized\n\t * according to RDF/JSON format\n\t * (http://jena.apache.org/documentation/io/rdf-json.html).\n\t * \n\t * \n\t * @see http://www.w3.org/TR/sparql11-query/#construct\n\t * @param name\n\t * @param params\n\t * @return\n\t */\n\tGraph callConstructQuery(String name, Map<String, String> params);\n\n\t/**\n\t * Invocation of a SPARQL ASK query resulting in a boolean value.\n\t * \n\t * @see\n\t * \n\t * @param name\n\t * Unique name of the query.\n\t * @param params\n\t * Map of required parameter-value pairs.\n\t * @return true or false, depending whether the pattern matches.\n\t */\n\tBoolean callAskQuery(String name, Map<String, String> params);\n\n}", "@Override\n\tpublic Query objectQuery(String query) throws Exception {\n\t\treturn null;\n\t}", "@Test\n\tpublic void testSparqlQuery() throws OWLOntologyCreationException,\n\t\t\tIOException {\n\t\tInputStream ontStream = LDLPReasonerTest.class\n\t\t\t\t.getResourceAsStream(\"/data/university0-0.owl\");\n\t\tOWLOntologyManager manager = OWLManager.createOWLOntologyManager();\n\t\tOWLOntology ontology = manager\n\t\t\t\t.loadOntologyFromOntologyDocument(ontStream);\n\n\t\tInputStream queryStream = LDLPReasonerTest.class\n\t\t\t\t.getResourceAsStream(\"/data/lubm-query4.sparql\");\n\n\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(\n\t\t\t\tqueryStream));\n\t\tString line;\n\t\tString queryText = \"\";\n\t\twhile ((line = reader.readLine()) != null) {\n\t\t\tqueryText = queryText + line + \"\\n\";\n\t\t}\n\n\t\tQuery query = QueryFactory.create(queryText, Syntax.syntaxARQ);\n\t\tLDLPReasoner reasoner = new LDLPReasoner(ontology);\n\t\tList<Literal> results = reasoner.executeQuery(query);\n\t\tSystem.out.println(results.size() + \" answers :\");\n\t\tfor (Literal result : results) {\n\t\t\tSystem.out.println(result);\n\t\t}\n\t\tLDLPCompilerManager m = LDLPCompilerManager.getInstance();\n\n\t\t// m.dump();\n\n\t}", "@Override\n\tpublic NodeIterator search(String queryString) throws Exception {\n\t\treturn null;\n\t}", "boolean isOQL();", "@Test\n public void getGraphNull() throws Exception {\n try (final Graph defaultGraph = dataset.getGraph(null).get()) {\n // TODO: Can we assume the default graph was empty before our new triples?\n assertEquals(2, defaultGraph.size());\n assertTrue(defaultGraph.contains(alice, isPrimaryTopicOf, graph1));\n // NOTE: wildcard as graph2 is a (potentially mapped) BlankNode\n assertTrue(defaultGraph.contains(bob, isPrimaryTopicOf, null));\n }\n }", "@Test\n public void addBlankNodesFromMultipleDatasets() throws Exception {\n try (final Dataset g1 = createDataset1();\n final Dataset g2 = createDataset2();\n final Dataset g3 = factory.createDataset()) {\n\n addAllQuads(g1, g3);\n addAllQuads(g2, g3);\n\n // Let's make a map to find all those blank nodes after insertion\n // (The Dataset implementation is not currently required to\n // keep supporting those BlankNodes with contains() - see\n // COMMONSRDF-15)\n\n final Map<String, BlankNodeOrIRI> whoIsWho = new ConcurrentHashMap<>();\n // ConcurrentHashMap as we will try parallel forEach below,\n // which should not give inconsistent results (it does with a\n // HashMap!)\n\n // look up BlankNodes by name\n final IRI name = factory.createIRI(\"http://xmlns.com/foaf/0.1/name\");\n try (Stream<? extends Quad> stream = g3.stream(null, null, name, null)) {\n stream.parallel().forEach(t -> whoIsWho.put(t.getObject().ntriplesString(), t.getSubject()));\n }\n\n assertEquals(4, whoIsWho.size());\n // and contains 4 unique values\n assertEquals(4, new HashSet<>(whoIsWho.values()).size());\n\n final BlankNodeOrIRI b1Alice = whoIsWho.get(\"\\\"Alice\\\"\");\n assertNotNull(b1Alice);\n final BlankNodeOrIRI b2Bob = whoIsWho.get(\"\\\"Bob\\\"\");\n assertNotNull(b2Bob);\n final BlankNodeOrIRI b1Charlie = whoIsWho.get(\"\\\"Charlie\\\"\");\n assertNotNull(b1Charlie);\n final BlankNodeOrIRI b2Dave = whoIsWho.get(\"\\\"Dave\\\"\");\n assertNotNull(b2Dave);\n\n // All blank nodes should differ\n notEquals(b1Alice, b2Bob);\n notEquals(b1Alice, b1Charlie);\n notEquals(b1Alice, b2Dave);\n notEquals(b2Bob, b1Charlie);\n notEquals(b2Bob, b2Dave);\n notEquals(b1Charlie, b2Dave);\n\n // And we should be able to query with them again\n // as we got them back from g3\n final IRI hasChild = factory.createIRI(\"http://example.com/hasChild\");\n // FIXME: Check graph2 BlankNode in these ..?\n assertTrue(g3.contains(null, b1Alice, hasChild, b2Bob));\n assertTrue(g3.contains(null, b2Dave, hasChild, b1Charlie));\n // But not\n assertFalse(g3.contains(null, b1Alice, hasChild, b1Alice));\n assertFalse(g3.contains(null, b1Alice, hasChild, b1Charlie));\n assertFalse(g3.contains(null, b1Alice, hasChild, b2Dave));\n // nor\n assertFalse(g3.contains(null, b2Dave, hasChild, b1Alice));\n assertFalse(g3.contains(null, b2Dave, hasChild, b1Alice));\n\n // and these don't have any children (as far as we know)\n assertFalse(g3.contains(null, b2Bob, hasChild, null));\n assertFalse(g3.contains(null, b1Charlie, hasChild, null));\n }\n }", "public List<XMLObject> getUnknownXMLObjects();", "String getPublicationsCentralGraphQuery();", "public static ArrayList<String> markov_blank(String node_name, String Rchain_value,Connection con2) throws SQLException{\n\t\t\n\t\t//list of the children of the node \n\t\tArrayList<String> children=new ArrayList<String>(); \n\t\t//list of markov blanket\n\t\tArrayList<String> blanket=new ArrayList<String>(); \n\t\t//first store markov blanket in a set to reduce the duplicate\n\t Set<String> markov_blanket=new HashSet<String>();\n\t \n\t Statement st=con2.createStatement();\n\t //select the parents of the node\n\t String query1=\"select distinct parent from `Path_BayesNets` where child = '\"+node_name+\"' and Rchain= '\"+Rchain_value+\"' and parent <> '';\";\n\t //System.out.println(query1);\n\t\tResultSet rst1=st.executeQuery(query1);\n\t\twhile(rst1.next()){\n\t\t\t//add parents to markov blanket\n\t\t\tmarkov_blanket.add(rst1.getString(1));\n\t\t\t\n\t\t}\n\t\t\n\t\t//select the children of the node\n\t\tString query2=\"select distinct child from `Path_BayesNets` where parent = '\"+node_name+\"' and Rchain= '\"+Rchain_value+\"';\";\n\t//\tSystem.out.println(query2);\n\t\tResultSet rst2=st.executeQuery(query2);\n\t\n\t\twhile(rst2.next()){\n\t\t\t//add children to markov blanket and children list\n\t\t\tchildren.add(rst2.getString(1));\n\t\t\tmarkov_blanket.add(rst2.getString(1));\n\t\t} \n\t\t\n\t\t//select the spouses of the node\n\t\tfor(int i=0;i<children.size();i++){\n\t\t\tResultSet rst_temp;\n\t\t\tString temp=children.get(i);\n\t\t\tString query_temp=\"select distinct parent from `Path_BayesNets` where child = '\"+temp+\"' and Rchain= '\"+Rchain_value+\"' and parent <>'' and parent<> '\"+node_name+\"' ;\";\n\t\t\t//System.out.println(query_temp);\n\t\t\trst_temp=st.executeQuery(query_temp);\n\t\t\twhile(rst_temp.next())markov_blanket.add(rst_temp.getString(1));\n\t\t}\n\t\t\t\t\n\t\t\n\t\tObject[] list_blanket=markov_blanket.toArray();\n\t\tfor(int i=0;i<list_blanket.length;i++){\n\t\t\tblanket.add(list_blanket[i].toString()) ; \t\t\n\t\t}\n\t\t\n\t\tst.close();\n\t\treturn blanket;\n\t}", "public List<News> query(List<float[]> waypoints);", "@Override\n\tpublic ArrayList<Edge<Object>> getPath(String startNode, String endNode) {\n\t\treturn null;\n\t}", "private MetaSparqlRequest createQueryMT2() {\n\t\treturn createQueryMT1();\n\t}", "@Override\n public List<ArrayList<String>> queryInstructor(Token token, int instructorID) {\n // TODO Auto-generated method stub\n return null;\n }", "private List<String> getEmptyRoomsFromResultSet(ResultSet emptyQueryResults) {\n ArrayList<String> rooms = new ArrayList<String>();\n boolean hasNext = emptyQueryResults.next();\n while(hasNext) {\n String room = emptyQueryResults.getString(\"r1.roomid\");\n rooms.add(room);\n hasNext = emptyQueryResults.next();\n }\n return rooms;\n}", "public boolean supportsEmptyInList() {\n \t\treturn true;\n \t}", "@org.junit.Test\n public void constrCompelemNodeid1() {\n final XQuery query = new XQuery(\n \"for $x in <a/>, $y in element elem {$x} return exactly-one($y/a) is $x\",\n ctx);\n try {\n result = new QT3Result(query.value());\n } catch(final Throwable trw) {\n result = new QT3Result(trw);\n } finally {\n query.close();\n }\n test(\n assertBoolean(false)\n );\n }", "DListNode2(Object vertex1) {\r\n vertex = vertex1;\r\n list = null;\r\n prev = null;\r\n next = null;\r\n }", "public String toString(){\r\n\t DoubleLinkedSeq clone = new DoubleLinkedSeq(); \r\n\t clone = this.clone();\r\n\t String elements = \"{\";\r\n\t for(clone.cursor = head; clone.cursor != null; clone.cursor = clone.cursor.getLink()){\r\n\t\t elements = elements + (clone.cursor.getData() + \",\"); \r\n\t }\r\n\t \r\n\t elements = elements + \")\";\r\n\t \r\n\t return elements; \r\n }", "public List<Object> sqlQuery(Class<Object> class1, String string) {\n return null;\n }", "private void montaQuery(Publicacao object, Query q) {\t\t\n\t}", "public Object[] getStartNodes ();", "com.icare.eai.schema.om.evSORequest.ListOfServiceElementsComplexType getListOfServiceElements();" ]
[ "0.52232784", "0.5220416", "0.51501495", "0.5072992", "0.50687975", "0.5048789", "0.5027577", "0.5011158", "0.49300796", "0.48764405", "0.4781857", "0.47703806", "0.47451028", "0.47213924", "0.47100052", "0.46780038", "0.46149352", "0.46116084", "0.46105298", "0.457549", "0.45740885", "0.45352954", "0.45330083", "0.4514521", "0.45133564", "0.4509764", "0.45093018", "0.45085064", "0.45006716", "0.4492626", "0.44829664", "0.44806933", "0.44751966", "0.44620734", "0.44588143", "0.44424996", "0.44411394", "0.44356835", "0.44188666", "0.4410277", "0.44068348", "0.44038966", "0.44002053", "0.43996614", "0.43989077", "0.43860468", "0.43800342", "0.43725103", "0.43702844", "0.43668813", "0.4365503", "0.43646204", "0.43544406", "0.43465298", "0.43437698", "0.43374917", "0.43155724", "0.4313112", "0.4310593", "0.4296473", "0.42944223", "0.4293208", "0.42915428", "0.42875034", "0.42842752", "0.42831874", "0.42826483", "0.42790884", "0.42763555", "0.42728642", "0.42724237", "0.4269535", "0.42606866", "0.42536175", "0.42488936", "0.4243247", "0.42427593", "0.42405593", "0.42372635", "0.42341962", "0.42293245", "0.42271948", "0.42240313", "0.42215645", "0.4219805", "0.42196047", "0.42171356", "0.42159343", "0.42155778", "0.42111754", "0.42108935", "0.42106083", "0.42092064", "0.4205082", "0.42036012", "0.4196952", "0.4194774", "0.41939986", "0.41936547", "0.4193066" ]
0.67879766
0
nodeChoice > VarOrIRIref() | | PutativeLiteral()
@Override public R visit(Verb n, A argu) { R _ret = null; n.nodeChoice.accept(this, argu); return _ret; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@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 R visit(VarOrIRIref n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "public void visit(Literal literal) {}", "public Literal setDeepLiteral(XDI3Segment contextNodeXri, Object literalData);", "public Literal setLiteral(Object literalData);", "public Literal setDeepLiteralString(XDI3Segment contextNodeXri, String literalData);", "Literal createLiteral();", "Literal createLiteral();", "@Override\n public R visit(VarOrTerm n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "public Literal getLiteral();", "public Literal getLiteral();", "public Literal setLiteralString(String literalData);", "@Override\n public R visit(SparqlString n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "String getLiteral();", "String getLiteral();", "Node getVariable();", "Rule Literal() {\n // Push 1 LiteralNode onto the value stack\n return Sequence(\n FirstOf(\n SingleQuotedLiteral(),\n DoubleQuotedLiteral()),\n actions.pushLiteralNode());\n }", "@Override\n public R visit(IRIref n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "SimpleLiteral createSimpleLiteral();", "public Literal getLiteral(Object literalData);", "public Literal getDeepLiteral(XDI3Segment contextNodeXri, Object literalData);", "public Literal getDeepLiteral(XDI3Segment contextNodeXri);", "private void createImplicitVariableType(XtextResource resource, IAcceptor<? super ICodeMining> acceptor) {\n\t\tcreateImplicitVarValType(resource, acceptor, XtendVariableDeclaration.class,\n\t\t\tit -> it.getType(),\n\t\t\tit -> {\n\t\t\t\tLightweightTypeReference type = getLightweightType(it.getRight());\n\t\t\t\tif (type.isAny()) {\n\t\t\t\t\ttype = getTypeForVariableDeclaration(it.getRight());\n\t\t\t\t}\n\t\t\t\treturn type.getSimpleName();\n\t\t\t},\n\t\t\tit -> it.getRight(),\n\t\t\t() -> this.grammar.getXVariableDeclarationAccess().getRightAssignment_3_1());\n\t}", "public ParseTreeNode visit(LiteralNode literalNode) {\n return null;\n }", "VarReference createVarReference();", "public void visit(Literal n) {\n n.f0.accept(this);\n }", "public Literal getDeepLiteralString(XDI3Segment contextNodeXri, String literalData);", "public final void rule__CompositeLit__LiteralvAssignment_1() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \t\r\n try {\r\n // InternalGo.g:18530:1: ( ( ruleLiteralValue ) )\r\n // InternalGo.g:18531:2: ( ruleLiteralValue )\r\n {\r\n // InternalGo.g:18531:2: ( ruleLiteralValue )\r\n // InternalGo.g:18532:3: ruleLiteralValue\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getCompositeLitAccess().getLiteralvLiteralValueParserRuleCall_1_0()); \r\n }\r\n pushFollow(FOLLOW_2);\r\n ruleLiteralValue();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getCompositeLitAccess().getLiteralvLiteralValueParserRuleCall_1_0()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "public Literal setDeepLiteralBoolean(XDI3Segment contextNodeXri, Boolean literalData);", "@Override\n public R visit(NumericLiteral n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "public Snippet visit(TypeAnnotation n, Snippet argu) {\n\t Snippet _ret= new Snippet(\"\",\"\",null,false);\n\t _ret = n.nodeChoice.accept(this, argu);\n\t return _ret;\n\t }", "public final ValueNode literal() throws RecognitionException {\n ValueNode value = null;\n\n CommonTree NUMBER11=null;\n CommonTree FPNUMBER12=null;\n CommonTree STRING13=null;\n\n try {\n // C:\\\\Users\\\\Lyle\\\\BitTorrent Sync\\\\workspace\\\\SIDSL\\\\src\\\\JSONHandler\\\\JSONTreeConstruct.g:47:3: ( NUMBER | FPNUMBER | STRING | TRUE | FALSE | NULL )\n int alt9=6;\n switch ( input.LA(1) ) {\n case NUMBER:\n {\n alt9=1;\n }\n break;\n case FPNUMBER:\n {\n alt9=2;\n }\n break;\n case STRING:\n {\n alt9=3;\n }\n break;\n case TRUE:\n {\n alt9=4;\n }\n break;\n case FALSE:\n {\n alt9=5;\n }\n break;\n case NULL:\n {\n alt9=6;\n }\n break;\n default:\n NoViableAltException nvae =\n new NoViableAltException(\"\", 9, 0, input);\n\n throw nvae;\n }\n\n switch (alt9) {\n case 1 :\n // C:\\\\Users\\\\Lyle\\\\BitTorrent Sync\\\\workspace\\\\SIDSL\\\\src\\\\JSONHandler\\\\JSONTreeConstruct.g:47:5: NUMBER\n {\n NUMBER11=(CommonTree)match(input,NUMBER,FOLLOW_NUMBER_in_literal248); \n value = new ValueNode((NUMBER11!=null?NUMBER11.getText():null), \"int\");\n\n }\n break;\n case 2 :\n // C:\\\\Users\\\\Lyle\\\\BitTorrent Sync\\\\workspace\\\\SIDSL\\\\src\\\\JSONHandler\\\\JSONTreeConstruct.g:48:5: FPNUMBER\n {\n FPNUMBER12=(CommonTree)match(input,FPNUMBER,FOLLOW_FPNUMBER_in_literal256); \n value = new ValueNode((FPNUMBER12!=null?FPNUMBER12.getText():null), \"double\");\n\n }\n break;\n case 3 :\n // C:\\\\Users\\\\Lyle\\\\BitTorrent Sync\\\\workspace\\\\SIDSL\\\\src\\\\JSONHandler\\\\JSONTreeConstruct.g:49:5: STRING\n {\n STRING13=(CommonTree)match(input,STRING,FOLLOW_STRING_in_literal264); \n value = new ValueNode((STRING13!=null?STRING13.getText():null), \"string\");\n\n }\n break;\n case 4 :\n // C:\\\\Users\\\\Lyle\\\\BitTorrent Sync\\\\workspace\\\\SIDSL\\\\src\\\\JSONHandler\\\\JSONTreeConstruct.g:50:5: TRUE\n {\n match(input,TRUE,FOLLOW_TRUE_in_literal272); \n value = new ValueNode(\"true\", \"boolean\");\n\n }\n break;\n case 5 :\n // C:\\\\Users\\\\Lyle\\\\BitTorrent Sync\\\\workspace\\\\SIDSL\\\\src\\\\JSONHandler\\\\JSONTreeConstruct.g:51:5: FALSE\n {\n match(input,FALSE,FOLLOW_FALSE_in_literal280); \n value = new ValueNode(\"false\", \"boolean\");\n\n }\n break;\n case 6 :\n // C:\\\\Users\\\\Lyle\\\\BitTorrent Sync\\\\workspace\\\\SIDSL\\\\src\\\\JSONHandler\\\\JSONTreeConstruct.g:52:5: NULL\n {\n match(input,NULL,FOLLOW_NULL_in_literal288); \n value = new ValueNode(\"null\", \"null\");\n\n }\n break;\n\n }\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n }\n return value;\n }", "public LiteralExpression (String str){\n _value = str;\n }", "public Literal getLiteralString(String literalData);", "public Snippet visit(Type n, Snippet argu) {\n\t Snippet _ret=null;\n\t _ret = n.nodeChoice.accept(this, argu);\n\t return _ret;\n\t }", "public void testBoundToVariable()\n throws Exception\n {\n String varname =\"ITEM\";\n String id = \"occ_hermes1\";\n Occurrence occ = (Occurrence) tm.getObjectByID(id);\n // resolver shall resolve by id\n tag.setOccurrence(occ);\n\n // resolved topic shall be stored in\n // the variable named TOPIC\n tag.setVar(varname);\n \n // resolve\n setScriptForTagBody(tag);\n tag.doTag(null);\n \n // the item should be stored in the variable\n assertEquals(occ, ctx.getVariable(varname));\n \n // make a new tag, bound to the same variable \n // set resolvement to non existant topic\n tag = new UseOccurrenceTag();\n tag.setContext(ctx);\n tag.setVar(varname);\n tag.setId(\"nonexistantntifd\");\n\n // resolve\n tag.doTag(null);\n\n // the variable should be resetted\n assertNull(ctx.getVariable(varname));\n \n }", "VarAssignment createVarAssignment();", "@Override\n public JsonNode visit(JmesPathLiteral literal, JsonNode input) {\n return literal.getValue();\n }", "@Override\n\tpublic Node apply(Node t) {\n\t\tNode result = t;\n\t\tif(t instanceof NodePathletPath) {\n\t\t\tPath path = ((NodePathletPath)t).getValue();\n\t\t\tSupplier<VarRefStatic> varRefSupplier = pathletContainer.resolvePath(path);\n\t\t\t\t\n\t\t\tresult = new NodeVarRefStaticSupplier(varRefSupplier);\n\t\t}\n\t\t\n\t\treturn result;\n\t}", "@Test\n public void testExplicitDatatypeDeclaration() throws RepositoryException {\n assertExtract(\"/html/rdfa/xmlliteral-datatype-test.html\");\n logger.debug(dumpModelToTurtle());\n\n RepositoryResult<Statement> stmts = conn\n .getStatements(RDFUtils.iri(\"http://dbpedia.org/resource/Albert_Einstein\"), vFOAF.name, null, false);\n Assert.assertTrue(stmts.hasNext());\n Value obj = stmts.next().getObject();\n Assert.assertTrue(obj instanceof Literal);\n Literal lit = (Literal) obj;\n Assert.assertEquals(lit.getDatatype(), RDF.XMLLITERAL);\n Assert.assertEquals(lit.getLabel(),\n \"Albert <strong xmlns=\\\"http://www.w3.org/1999/xhtml\\\" \" + \"xmlns:foaf=\\\"http://xmlns.com/foaf/0.1/\\\" \"\n + \"xmlns:rdf=\\\"http://www.w3.org/1999/02/22-rdf-syntax-ns#\\\" \"\n + \"xmlns:rdfs=\\\"http://www.w3.org/2000/01/rdf-schema#\\\" \"\n + \"xmlns:xsd=\\\"http://www.w3.org/2001/XMLSchema#\\\">Einstein</strong>\");\n }", "public static Node buildLiteral(final String label) {\n\t\treturn NodeFactory.createLiteral(label);\n\t}", "public interface QuotedL1Node {\n\n}", "@Override\n\tpublic Object visitLiteral(Literal literal) {\n\t\treturn null;\n\t}", "@Override\n public R visit(NumericLiteralUnsigned n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "interface Literals {\n\t\t/**\n\t\t * The meta object literal for the '{@link edu.cmu.attackimpact.impl.NodeImpl <em>Node</em>}' class.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see edu.cmu.attackimpact.impl.NodeImpl\n\t\t * @see edu.cmu.attackimpact.impl.AttackImpactPackageImpl#getNode()\n\t\t * @generated\n\t\t */\n\t\tEClass NODE = eINSTANCE.getNode();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Name</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute NODE__NAME = eINSTANCE.getNode_Name();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Description</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute NODE__DESCRIPTION = eINSTANCE.getNode_Description();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Vulnerabilities</b></em>' containment reference list feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEReference NODE__VULNERABILITIES = eINSTANCE.getNode_Vulnerabilities();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Propagations</b></em>' containment reference list feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEReference NODE__PROPAGATIONS = eINSTANCE.getNode_Propagations();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Related Object</b></em>' reference feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEReference NODE__RELATED_OBJECT = eINSTANCE.getNode_RelatedObject();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Tags</b></em>' attribute list feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute NODE__TAGS = eINSTANCE.getNode_Tags();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Domains</b></em>' attribute list feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute NODE__DOMAINS = eINSTANCE.getNode_Domains();\n\n\t\t/**\n\t\t * The meta object literal for the '{@link edu.cmu.attackimpact.impl.VulnerabilityImpl <em>Vulnerability</em>}' class.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see edu.cmu.attackimpact.impl.VulnerabilityImpl\n\t\t * @see edu.cmu.attackimpact.impl.AttackImpactPackageImpl#getVulnerability()\n\t\t * @generated\n\t\t */\n\t\tEClass VULNERABILITY = eINSTANCE.getVulnerability();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Name</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute VULNERABILITY__NAME = eINSTANCE.getVulnerability_Name();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Description</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute VULNERABILITY__DESCRIPTION = eINSTANCE.getVulnerability_Description();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Severity</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute VULNERABILITY__SEVERITY = eINSTANCE.getVulnerability_Severity();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Type</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute VULNERABILITY__TYPE = eINSTANCE.getVulnerability_Type();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Propagations</b></em>' containment reference list feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEReference VULNERABILITY__PROPAGATIONS = eINSTANCE.getVulnerability_Propagations();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Tags</b></em>' attribute list feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute VULNERABILITY__TAGS = eINSTANCE.getVulnerability_Tags();\n\n\t\t/**\n\t\t * The meta object literal for the '{@link edu.cmu.attackimpact.impl.PropagationImpl <em>Propagation</em>}' class.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see edu.cmu.attackimpact.impl.PropagationImpl\n\t\t * @see edu.cmu.attackimpact.impl.AttackImpactPackageImpl#getPropagation()\n\t\t * @generated\n\t\t */\n\t\tEClass PROPAGATION = eINSTANCE.getPropagation();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Destinations</b></em>' reference list feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEReference PROPAGATION__DESTINATIONS = eINSTANCE.getPropagation_Destinations();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Severity</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute PROPAGATION__SEVERITY = eINSTANCE.getPropagation_Severity();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Tags</b></em>' attribute list feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute PROPAGATION__TAGS = eINSTANCE.getPropagation_Tags();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Type</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute PROPAGATION__TYPE = eINSTANCE.getPropagation_Type();\n\n\t\t/**\n\t\t * The meta object literal for the '{@link edu.cmu.attackimpact.impl.ModelImpl <em>Model</em>}' class.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see edu.cmu.attackimpact.impl.ModelImpl\n\t\t * @see edu.cmu.attackimpact.impl.AttackImpactPackageImpl#getModel()\n\t\t * @generated\n\t\t */\n\t\tEClass MODEL = eINSTANCE.getModel();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Name</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute MODEL__NAME = eINSTANCE.getModel_Name();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Description</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute MODEL__DESCRIPTION = eINSTANCE.getModel_Description();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Nodes</b></em>' containment reference list feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEReference MODEL__NODES = eINSTANCE.getModel_Nodes();\n\n\t\t/**\n\t\t * The meta object literal for the '{@link edu.cmu.attackimpact.vulnerabilityType <em>vulnerability Type</em>}' enum.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see edu.cmu.attackimpact.vulnerabilityType\n\t\t * @see edu.cmu.attackimpact.impl.AttackImpactPackageImpl#getvulnerabilityType()\n\t\t * @generated\n\t\t */\n\t\tEEnum VULNERABILITY_TYPE = eINSTANCE.getvulnerabilityType();\n\n\t\t/**\n\t\t * The meta object literal for the '{@link edu.cmu.attackimpact.propagationType <em>propagation Type</em>}' enum.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see edu.cmu.attackimpact.propagationType\n\t\t * @see edu.cmu.attackimpact.impl.AttackImpactPackageImpl#getpropagationType()\n\t\t * @generated\n\t\t */\n\t\tEEnum PROPAGATION_TYPE = eINSTANCE.getpropagationType();\n\n\t}", "public interface IInstanceVariable extends INameNode {\n}", "private Value generateLiteralTermType(TermMap termMap, String value)\n \t\t\tthrows R2RMLDataError, SQLException {\n \t\tif (termMap.getLanguageTag() != null) {\n \t\t\tif (!RDFDataValidator.isValidLanguageTag(termMap.getLanguageTag()))\n \t\t\t\tthrow new R2RMLDataError(\n \t\t\t\t\t\t\"[R2RMLEngine:generateLiteralTermType] This language tag is not valid : \"\n \t\t\t\t\t\t\t\t+ value);\n \t\t\treturn vf.createLiteral(value, termMap.getLanguageTag());\n \t\t} else if (termMap.getDataType() != null) {\n \t\t\t// 2. Otherwise, if the term map has a non-empty specified datatype\n \t\t\t// that is different from the natural RDF datatype corresponding to\n \t\t\t// the term map's\n \t\t\t// implicit SQL datatype,\n \t\t\t// then return the datatype-override RDF literal corresponding to\n \t\t\t// value and the specified datatype.\n \t\t\tif (!RDFDataValidator.isValidDatatype(termMap.getDataType()\n \t\t\t\t\t.getAbsoluteStringURI()))\n \t\t\t\tthrow new R2RMLDataError(\n \t\t\t\t// If the typed literal is ill-typed, then a data error is\n \t\t\t\t// raised.\n \t\t\t\t\t\t\"[R2RMLEngine:generateLiteralTermType] This datatype is not valid : \"\n \t\t\t\t\t\t\t\t+ value);\n \t\t\tSQLType implicitDatatype = extractImplicitDatatype((ObjectMap) termMap);\n \t\t\t// Convert implicit datatype into XSD\n \t\t\tXSDType implicitXSDType = SQLToXMLS\n \t\t\t\t\t.getEquivalentType(implicitDatatype);\n \t\t\tif (implicitXSDType != termMap.getDataType()) {\n \t\t\t\t// Type overidden\n \t\t\t\tlog.debug(\"[R2RMLEngine:generateLiteralTermType] Type will be overidden : \"\n \t\t\t\t\t\t+ termMap.getDataType() + \" != \" + implicitXSDType);\n \n \t\t\t}\n \t\t\t// Lexical RDF Natural form\n \t\t\t// value =\n \t\t\t// XSDLexicalTransformation.extractNaturalRDFFormFrom(termMap.getDataType(),\n \t\t\t// value);\n \t\t\tURI datatype = vf.createURI(termMap.getDataType()\n \t\t\t\t\t.getAbsoluteStringURI());\n \t\t\treturn vf.createLiteral(value, datatype);\n \n \t\t} else {\n \t\t\t// 3. Otherwise, return the natural RDF literal corresponding to\n \t\t\t// value.\n \t\t\treturn extractNaturalLiteralFormFrom(termMap, value);\n \t\t}\n \t}", "public T caseLiteral(Literal object)\n {\n return null;\n }", "@Override\n\tpublic void setLiteral(Literal literal) {\n\t\theldObj.setLiteral(literal);\n\t}", "public Literal setDeepLiteralNumber(XDI3Segment contextNodeXri, Double literalData);", "public Expression substitute(String var, Expression replacement) {\n\treturn \n\t new UnaryPrimitiveApplication(operator, \n\t\t\t\t\t argument.substitute(var, \n\t\t\t\t\t\t\t replacement));\n }", "public Snippet visit(ReturnType n, Snippet argu) {\n\t Snippet _ret=null;\n\t _ret = n.nodeChoice.accept(this, argu);\n\t return _ret;\n\t }", "public boolean containsLiteral();", "public void setLiteral(boolean isLiteral)\n {\n this.literal = isLiteral;\n }", "@Override\n public String visit(TextBlockLiteralExpr n, Object arg) {\n return null;\n }", "public LiteralOPToken(String s, int nTypeCode, String sNudASTName)\n {\n this(s, nTypeCode);\n m_sNudASTName = sNudASTName;\n }", "public LiteralOPToken(String s, int nTypeCode)\n {\n super(s);\n m_nType = nTypeCode;\n setBindingPower(OPToken.PRECEDENCE_IDENTIFIER);\n }", "SigLitNode SigLitNode(Token t, OpNode op, PayElemList pay);", "@Override\n public R visit(GraphTerm n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "VariableRef createVariableRef();", "@Override\n\tpublic Object evaluate(Interpreter interpreter)\n\t{\n\t\t((VarToken) A).assign(interpreter, (String) B.evaluate(interpreter));\n\t\treturn null;\n\t}", "public interface AssignmentNode extends StackOperationNode {\n\n TemporaryVariableName getValueName();\n\n}", "StringLiteralExp createStringLiteralExp();", "VarRef createVarRef();", "private static void writeLiteral(XMLStreamWriter w, String el, Value val)\n\t\tthrows XMLStreamException {\n\t\tif (val instanceof Literal) {\n\t\t\tw.writeStartElement(el);\n\t\t\t// write language or datatype\n\t\t\tString lang = ((Literal) val).getLanguage().orElse(\"\");\n\t\t\tif (!lang.isEmpty()) {\n\t\t\t\tw.writeAttribute(\"xml:lang\", lang);\n\t\t\t} else {\n\t\t\t\tIRI dtype = ((Literal) val).getDatatype();\n\t\t\t\tif ((dtype != null) && !dtype.equals(XSD.STRING)) {\n\t\t\t\t\tw.writeAttribute(\"rdf:datatype\", dtype.toString());\n\t\t\t\t}\n\t\t\t}\n\t\t\tString str = val.stringValue();\n\t\t\tif (str.contains(\"<\")) {\n\t\t\t\tw.writeCData(str);\n\t\t\t} else {\n\t\t\t\tw.writeCharacters(str);\n\t\t\t}\n\t\t\tw.writeEndElement();\n\t\t}\n\t\tif (val instanceof IRI) {\n\t\t\tw.writeStartElement(el);\n\t\t\tw.writeAttribute(\"rdf:datatype\", ANYURI);\n\t\t\tw.writeCharacters(val.stringValue());\n\t\t\tw.writeEndElement();\n\t\t}\n\t}", "ObjectLiteral createObjectLiteral();", "public boolean isLiteral() {\n return false;\n }", "@Test public void term_value_roundtriple_1() {\n RDF_Term rt = testTermValue(\"'123'^^xsd:integer\") ;\n assertEquals(123, rt.getValInteger()) ;\n Node n = ProtobufConvert.convert(rt, prefixMap);\n assertEquals(XSDDatatype.XSDinteger, n.getLiteralDatatype());\n assertEquals(\"123\", n.getLiteralLexicalForm());\n }", "public Snippet visit(Expression n, Snippet argu) {\n\t Snippet _ret=null;\n\t _ret = n.nodeChoice.accept(this, argu);\n\t return _ret;\n\t }", "@Override\n public String visit(StringLiteralExpr n, Object arg) {\n return null;\n }", "@Override\n public R visit(TriplesNode n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "public interface TeaVariable extends TeaNamedElement {\n boolean hasInitializer();\n TeaExpression getInitializer();\n void setInitializer(TeaExpression expr) throws IncorrectOperationException;\n TeaType getType();\n// boolean isConst();\n ASTNode findNameIdentifier();\n\n TeaReferenceExpression findNameExpression();\n}", "public final void ruleLiteralType() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \t\r\n try {\r\n // InternalGo.g:2767:2: ( ( ( rule__LiteralType__Alternatives ) ) )\r\n // InternalGo.g:2768:2: ( ( rule__LiteralType__Alternatives ) )\r\n {\r\n // InternalGo.g:2768:2: ( ( rule__LiteralType__Alternatives ) )\r\n // InternalGo.g:2769:3: ( rule__LiteralType__Alternatives )\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getLiteralTypeAccess().getAlternatives()); \r\n }\r\n // InternalGo.g:2770:3: ( rule__LiteralType__Alternatives )\r\n // InternalGo.g:2770:4: rule__LiteralType__Alternatives\r\n {\r\n pushFollow(FOLLOW_2);\r\n rule__LiteralType__Alternatives();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getLiteralTypeAccess().getAlternatives()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "@Override\n\tpublic Object visitStringLiteral(StringLiteral literal) {\n\t\treturn null;\n\t}", "@Override\n public R visit(NumericLiteralPositive n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "protected void sequence_Literal(ISerializationContext context, Literal semanticObject) {\r\n\t\tgenericSequencer.createSequence(context, semanticObject);\r\n\t}", "public final AstValidator.literal_return literal() throws RecognitionException {\n AstValidator.literal_return retval = new AstValidator.literal_return();\n retval.start = input.LT(1);\n\n\n CommonTree root_0 = null;\n\n CommonTree _first_0 = null;\n CommonTree _last = null;\n\n AstValidator.scalar_return scalar417 =null;\n\n AstValidator.map_return map418 =null;\n\n AstValidator.bag_return bag419 =null;\n\n AstValidator.tuple_return tuple420 =null;\n\n\n\n try {\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:652:9: ( scalar | map | bag | tuple )\n int alt116=4;\n switch ( input.LA(1) ) {\n case BIGDECIMALNUMBER:\n case BIGINTEGERNUMBER:\n case DOUBLENUMBER:\n case FALSE:\n case FLOATNUMBER:\n case INTEGER:\n case LONGINTEGER:\n case MINUS:\n case NULL:\n case QUOTEDSTRING:\n case TRUE:\n {\n alt116=1;\n }\n break;\n case MAP_VAL:\n {\n alt116=2;\n }\n break;\n case BAG_VAL:\n {\n alt116=3;\n }\n break;\n case TUPLE_VAL:\n {\n alt116=4;\n }\n break;\n default:\n if (state.backtracking>0) {state.failed=true; return retval;}\n NoViableAltException nvae =\n new NoViableAltException(\"\", 116, 0, input);\n\n throw nvae;\n\n }\n\n switch (alt116) {\n case 1 :\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:652:11: scalar\n {\n root_0 = (CommonTree)adaptor.nil();\n\n\n _last = (CommonTree)input.LT(1);\n pushFollow(FOLLOW_scalar_in_literal3432);\n scalar417=scalar();\n\n state._fsp--;\n if (state.failed) return retval;\n if ( state.backtracking==0 ) \n adaptor.addChild(root_0, scalar417.getTree());\n\n\n if ( state.backtracking==0 ) {\n }\n }\n break;\n case 2 :\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:652:20: map\n {\n root_0 = (CommonTree)adaptor.nil();\n\n\n _last = (CommonTree)input.LT(1);\n pushFollow(FOLLOW_map_in_literal3436);\n map418=map();\n\n state._fsp--;\n if (state.failed) return retval;\n if ( state.backtracking==0 ) \n adaptor.addChild(root_0, map418.getTree());\n\n\n if ( state.backtracking==0 ) {\n }\n }\n break;\n case 3 :\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:652:26: bag\n {\n root_0 = (CommonTree)adaptor.nil();\n\n\n _last = (CommonTree)input.LT(1);\n pushFollow(FOLLOW_bag_in_literal3440);\n bag419=bag();\n\n state._fsp--;\n if (state.failed) return retval;\n if ( state.backtracking==0 ) \n adaptor.addChild(root_0, bag419.getTree());\n\n\n if ( state.backtracking==0 ) {\n }\n }\n break;\n case 4 :\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:652:32: tuple\n {\n root_0 = (CommonTree)adaptor.nil();\n\n\n _last = (CommonTree)input.LT(1);\n pushFollow(FOLLOW_tuple_in_literal3444);\n tuple420=tuple();\n\n state._fsp--;\n if (state.failed) return retval;\n if ( state.backtracking==0 ) \n adaptor.addChild(root_0, tuple420.getTree());\n\n\n if ( state.backtracking==0 ) {\n }\n }\n break;\n\n }\n if ( state.backtracking==0 ) {\n\n retval.tree = (CommonTree)adaptor.rulePostProcessing(root_0);\n }\n\n }\n\n catch(RecognitionException re) {\n throw re;\n }\n\n finally {\n \t// do for sure before leaving\n }\n return retval;\n }", "@Override\n public R visit(Consequent n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "public VariableNode(String attr)\n {\n this.name = attr;\n }", "public final void rule__CompositeLit__LiteraltAssignment_0() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \t\r\n try {\r\n // InternalGo.g:18515:1: ( ( ruleLiteralType ) )\r\n // InternalGo.g:18516:2: ( ruleLiteralType )\r\n {\r\n // InternalGo.g:18516:2: ( ruleLiteralType )\r\n // InternalGo.g:18517:3: ruleLiteralType\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getCompositeLitAccess().getLiteraltLiteralTypeParserRuleCall_0_0()); \r\n }\r\n pushFollow(FOLLOW_2);\r\n ruleLiteralType();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getCompositeLitAccess().getLiteraltLiteralTypeParserRuleCall_0_0()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "public final void ruleLiteral() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \t\r\n try {\r\n // InternalGo.g:2692:2: ( ( ( rule__Literal__Alternatives ) ) )\r\n // InternalGo.g:2693:2: ( ( rule__Literal__Alternatives ) )\r\n {\r\n // InternalGo.g:2693:2: ( ( rule__Literal__Alternatives ) )\r\n // InternalGo.g:2694:3: ( rule__Literal__Alternatives )\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getLiteralAccess().getAlternatives()); \r\n }\r\n // InternalGo.g:2695:3: ( rule__Literal__Alternatives )\r\n // InternalGo.g:2695:4: rule__Literal__Alternatives\r\n {\r\n pushFollow(FOLLOW_2);\r\n rule__Literal__Alternatives();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getLiteralAccess().getAlternatives()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "final public IASTLiteralTextNode Argument() throws ParseException {\r\n IASTLiteralTextNode node = null;\r\n Token lastToken = null;\r\n Token equalToken = null;\r\n Token firstToken = null;\r\n switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\r\n case INT:\r\n firstToken = jj_consume_token(INT);\r\n if (jj_2_3(2147483647)) {\r\n equalToken = jj_consume_token(EQUAL);\r\n switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\r\n case MINUS:\r\n jj_consume_token(MINUS);\r\n break;\r\n default:\r\n jj_la1[16] = jj_gen;\r\n ;\r\n }\r\n lastToken = jj_consume_token(INT);\r\n } else {\r\n ;\r\n }\r\n if (equalToken == null) {\r\n lastToken = firstToken;\r\n }\r\n break;\r\n case ASTERISK:\r\n case WORD:\r\n case STRING:\r\n case PACKAGE_OPTION:\r\n switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\r\n case ASTERISK:\r\n firstToken = jj_consume_token(ASTERISK);\r\n break;\r\n case PACKAGE_OPTION:\r\n firstToken = jj_consume_token(PACKAGE_OPTION);\r\n break;\r\n case WORD:\r\n firstToken = jj_consume_token(WORD);\r\n break;\r\n case STRING:\r\n firstToken = jj_consume_token(STRING);\r\n break;\r\n default:\r\n jj_la1[17] = jj_gen;\r\n jj_consume_token(-1);\r\n throw new ParseException();\r\n }\r\n lastToken = firstToken;\r\n break;\r\n default:\r\n jj_la1[18] = jj_gen;\r\n jj_consume_token(-1);\r\n throw new ParseException();\r\n }\r\n node = getRawLiteralTextNodeSpanning(firstToken, lastToken);\r\n {if (true) return node;}\r\n throw new Error(\"Missing return statement in function\");\r\n }", "protected void sequence_LiteralValue(ISerializationContext context, LiteralValue semanticObject) {\r\n\t\tgenericSequencer.createSequence(context, semanticObject);\r\n\t}", "private PseudostateKind(int value, String name, String literal) {\r\n\t\tthis.value = value;\r\n\t\tthis.name = name;\r\n\t\tthis.literal = literal;\r\n\t}", "public R visit(com.biosimilarity.lift.lib.scalar.Absyn.Mention p, A arg)\n {\n\n p.variableexpr_.accept(new VariableExprVisitor<R,A>(), arg);\n\n return null;\n }", "VariableExp createVariableExp();", "@Override\n public R visit(GraphGraphPattern n, A argu) {\n R _ret = null;\n n.nodeToken.accept(this, argu);\n n.varOrIRIref.accept(this, argu);\n n.groupGraphPattern.accept(this, argu);\n return _ret;\n }", "@Override\n\tpublic Object visit(ASTPCGenSingleWord node, Object data)\n\t{\n\t\tFormulaSemantics semantics = (FormulaSemantics) data;\n\t\tif (node.jjtGetNumChildren() != 0)\n\t\t{\n\t\t\tFormulaSemanticsUtilities.setInvalid(semantics,\n\t\t\t\tgetInvalidCountReport(node, 0));\n\t\t\treturn semantics;\n\t\t}\n\t\tString varName = node.getText();\n\t\tFormatManager<?> formatManager =\n\t\t\t\tfm.getFactory().getVariableFormat(legalScope, varName);\n\t\tif (formatManager != null)\n\t\t{\n\t\t\tsemantics.setInfo(FormulaSemanticsUtilities.SEM_FORMAT,\n\t\t\t\tnew FormulaFormat(formatManager.getManagedClass()));\n\t\t}\n\t\telse\n\t\t{\n\t\t\tFormulaSemanticsUtilities.setInvalid(semantics, \"Variable: \"\n\t\t\t\t+ varName + \" was not found\");\n\t\t}\n\t\treturn semantics;\n\t}", "@Override\n public R visit(DatasetClause n, A argu) {\n R _ret = null;\n n.nodeToken.accept(this, argu);\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "protected void sequence_Literal(ISerializationContext context, Literal semanticObject) {\n\t\tgenericSequencer.createSequence(context, semanticObject);\n\t}", "private LiteralAnnotationTerm appendLiteralArgument(Node bme, Tree.Term literal) {\n if (spread) {\n bme.addError(\"Spread static arguments not supported\");\n }\n LiteralAnnotationTerm argument = new LiteralAnnotationTerm();\n argument.setTerm(literal);\n this.term = argument;\n return argument;\n }", "interface Literals\n {\n /**\n * The meta object literal for the '{@link org.xtext.tesis.gramatica.gramatica.impl.DocumentoImpl <em>Documento</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see org.xtext.tesis.gramatica.gramatica.impl.DocumentoImpl\n * @see org.xtext.tesis.gramatica.gramatica.impl.GramaticaPackageImpl#getDocumento()\n * @generated\n */\n EClass DOCUMENTO = eINSTANCE.getDocumento();\n\n /**\n * The meta object literal for the '<em><b>Path Modelo</b></em>' attribute feature.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n EAttribute DOCUMENTO__PATH_MODELO = eINSTANCE.getDocumento_PathModelo();\n\n /**\n * The meta object literal for the '<em><b>Path Ocl</b></em>' attribute feature.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n EAttribute DOCUMENTO__PATH_OCL = eINSTANCE.getDocumento_PathOcl();\n\n /**\n * The meta object literal for the '<em><b>Oraciones</b></em>' containment reference list feature.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n EReference DOCUMENTO__ORACIONES = eINSTANCE.getDocumento_Oraciones();\n\n /**\n * The meta object literal for the '{@link org.xtext.tesis.gramatica.gramatica.impl.OracionImpl <em>Oracion</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see org.xtext.tesis.gramatica.gramatica.impl.OracionImpl\n * @see org.xtext.tesis.gramatica.gramatica.impl.GramaticaPackageImpl#getOracion()\n * @generated\n */\n EClass ORACION = eINSTANCE.getOracion();\n\n /**\n * The meta object literal for the '<em><b>Contenido</b></em>' containment reference feature.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n EReference ORACION__CONTENIDO = eINSTANCE.getOracion_Contenido();\n\n /**\n * The meta object literal for the '{@link org.xtext.tesis.gramatica.gramatica.impl.SimpleImpl <em>Simple</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see org.xtext.tesis.gramatica.gramatica.impl.SimpleImpl\n * @see org.xtext.tesis.gramatica.gramatica.impl.GramaticaPackageImpl#getSimple()\n * @generated\n */\n EClass SIMPLE = eINSTANCE.getSimple();\n\n /**\n * The meta object literal for the '<em><b>Determinante</b></em>' containment reference feature.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n EReference SIMPLE__DETERMINANTE = eINSTANCE.getSimple_Determinante();\n\n /**\n * The meta object literal for the '<em><b>Atributo</b></em>' containment reference feature.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n EReference SIMPLE__ATRIBUTO = eINSTANCE.getSimple_Atributo();\n\n /**\n * The meta object literal for the '<em><b>Sintagma</b></em>' containment reference feature.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n EReference SIMPLE__SINTAGMA = eINSTANCE.getSimple_Sintagma();\n\n /**\n * The meta object literal for the '<em><b>Contexto</b></em>' containment reference feature.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n EReference SIMPLE__CONTEXTO = eINSTANCE.getSimple_Contexto();\n\n /**\n * The meta object literal for the '<em><b>Obligacion</b></em>' containment reference feature.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n EReference SIMPLE__OBLIGACION = eINSTANCE.getSimple_Obligacion();\n\n /**\n * The meta object literal for the '<em><b>Operacion</b></em>' containment reference feature.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n EReference SIMPLE__OPERACION = eINSTANCE.getSimple_Operacion();\n\n /**\n * The meta object literal for the '<em><b>Literal</b></em>' attribute feature.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n EAttribute SIMPLE__LITERAL = eINSTANCE.getSimple_Literal();\n\n /**\n * The meta object literal for the '<em><b>Fin Oracion</b></em>' attribute feature.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n EAttribute SIMPLE__FIN_ORACION = eINSTANCE.getSimple_FinOracion();\n\n /**\n * The meta object literal for the '{@link org.xtext.tesis.gramatica.gramatica.impl.DeterminanteImpl <em>Determinante</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see org.xtext.tesis.gramatica.gramatica.impl.DeterminanteImpl\n * @see org.xtext.tesis.gramatica.gramatica.impl.GramaticaPackageImpl#getDeterminante()\n * @generated\n */\n EClass DETERMINANTE = eINSTANCE.getDeterminante();\n\n /**\n * The meta object literal for the '<em><b>Descripcion</b></em>' attribute feature.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n EAttribute DETERMINANTE__DESCRIPCION = eINSTANCE.getDeterminante_Descripcion();\n\n /**\n * The meta object literal for the '{@link org.xtext.tesis.gramatica.gramatica.impl.AtributoImpl <em>Atributo</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see org.xtext.tesis.gramatica.gramatica.impl.AtributoImpl\n * @see org.xtext.tesis.gramatica.gramatica.impl.GramaticaPackageImpl#getAtributo()\n * @generated\n */\n EClass ATRIBUTO = eINSTANCE.getAtributo();\n\n /**\n * The meta object literal for the '<em><b>Name</b></em>' attribute feature.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n EAttribute ATRIBUTO__NAME = eINSTANCE.getAtributo_Name();\n\n /**\n * The meta object literal for the '{@link org.xtext.tesis.gramatica.gramatica.impl.SintagmaPreposicionalImpl <em>Sintagma Preposicional</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see org.xtext.tesis.gramatica.gramatica.impl.SintagmaPreposicionalImpl\n * @see org.xtext.tesis.gramatica.gramatica.impl.GramaticaPackageImpl#getSintagmaPreposicional()\n * @generated\n */\n EClass SINTAGMA_PREPOSICIONAL = eINSTANCE.getSintagmaPreposicional();\n\n /**\n * The meta object literal for the '<em><b>Descripcion</b></em>' attribute feature.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n EAttribute SINTAGMA_PREPOSICIONAL__DESCRIPCION = eINSTANCE.getSintagmaPreposicional_Descripcion();\n\n /**\n * The meta object literal for the '{@link org.xtext.tesis.gramatica.gramatica.impl.ObligacionImpl <em>Obligacion</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see org.xtext.tesis.gramatica.gramatica.impl.ObligacionImpl\n * @see org.xtext.tesis.gramatica.gramatica.impl.GramaticaPackageImpl#getObligacion()\n * @generated\n */\n EClass OBLIGACION = eINSTANCE.getObligacion();\n\n /**\n * The meta object literal for the '<em><b>Negacion</b></em>' containment reference feature.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n EReference OBLIGACION__NEGACION = eINSTANCE.getObligacion_Negacion();\n\n /**\n * The meta object literal for the '<em><b>Obligacion Deber</b></em>' containment reference feature.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n EReference OBLIGACION__OBLIGACION_DEBER = eINSTANCE.getObligacion_ObligacionDeber();\n\n /**\n * The meta object literal for the '{@link org.xtext.tesis.gramatica.gramatica.impl.ObligacionDeberImpl <em>Obligacion Deber</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see org.xtext.tesis.gramatica.gramatica.impl.ObligacionDeberImpl\n * @see org.xtext.tesis.gramatica.gramatica.impl.GramaticaPackageImpl#getObligacionDeber()\n * @generated\n */\n EClass OBLIGACION_DEBER = eINSTANCE.getObligacionDeber();\n\n /**\n * The meta object literal for the '<em><b>Descripcion</b></em>' attribute feature.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n EAttribute OBLIGACION_DEBER__DESCRIPCION = eINSTANCE.getObligacionDeber_Descripcion();\n\n /**\n * The meta object literal for the '{@link org.xtext.tesis.gramatica.gramatica.impl.NegacionImpl <em>Negacion</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see org.xtext.tesis.gramatica.gramatica.impl.NegacionImpl\n * @see org.xtext.tesis.gramatica.gramatica.impl.GramaticaPackageImpl#getNegacion()\n * @generated\n */\n EClass NEGACION = eINSTANCE.getNegacion();\n\n /**\n * The meta object literal for the '<em><b>Descripcion</b></em>' attribute feature.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n EAttribute NEGACION__DESCRIPCION = eINSTANCE.getNegacion_Descripcion();\n\n /**\n * The meta object literal for the '{@link org.xtext.tesis.gramatica.gramatica.impl.OperacionImpl <em>Operacion</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see org.xtext.tesis.gramatica.gramatica.impl.OperacionImpl\n * @see org.xtext.tesis.gramatica.gramatica.impl.GramaticaPackageImpl#getOperacion()\n * @generated\n */\n EClass OPERACION = eINSTANCE.getOperacion();\n\n /**\n * The meta object literal for the '<em><b>Descripcion</b></em>' attribute feature.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n EAttribute OPERACION__DESCRIPCION = eINSTANCE.getOperacion_Descripcion();\n\n /**\n * The meta object literal for the '{@link org.xtext.tesis.gramatica.gramatica.impl.ClaseImpl <em>Clase</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see org.xtext.tesis.gramatica.gramatica.impl.ClaseImpl\n * @see org.xtext.tesis.gramatica.gramatica.impl.GramaticaPackageImpl#getClase()\n * @generated\n */\n EClass CLASE = eINSTANCE.getClase();\n\n /**\n * The meta object literal for the '<em><b>Name</b></em>' attribute feature.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n EAttribute CLASE__NAME = eINSTANCE.getClase_Name();\n\n /**\n * The meta object literal for the '{@link org.xtext.tesis.gramatica.gramatica.impl.CompuestaImpl <em>Compuesta</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see org.xtext.tesis.gramatica.gramatica.impl.CompuestaImpl\n * @see org.xtext.tesis.gramatica.gramatica.impl.GramaticaPackageImpl#getCompuesta()\n * @generated\n */\n EClass COMPUESTA = eINSTANCE.getCompuesta();\n\n /**\n * The meta object literal for the '<em><b>Simple Inicial</b></em>' containment reference feature.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n EReference COMPUESTA__SIMPLE_INICIAL = eINSTANCE.getCompuesta_SimpleInicial();\n\n /**\n * The meta object literal for the '<em><b>Nexo</b></em>' containment reference feature.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n EReference COMPUESTA__NEXO = eINSTANCE.getCompuesta_Nexo();\n\n /**\n * The meta object literal for the '<em><b>Simple Final</b></em>' containment reference feature.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n EReference COMPUESTA__SIMPLE_FINAL = eINSTANCE.getCompuesta_SimpleFinal();\n\n /**\n * The meta object literal for the '{@link org.xtext.tesis.gramatica.gramatica.impl.NexoImpl <em>Nexo</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see org.xtext.tesis.gramatica.gramatica.impl.NexoImpl\n * @see org.xtext.tesis.gramatica.gramatica.impl.GramaticaPackageImpl#getNexo()\n * @generated\n */\n EClass NEXO = eINSTANCE.getNexo();\n\n /**\n * The meta object literal for the '<em><b>Descripcion</b></em>' attribute feature.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n EAttribute NEXO__DESCRIPCION = eINSTANCE.getNexo_Descripcion();\n\n /**\n * The meta object literal for the '{@link org.xtext.tesis.gramatica.gramatica.impl.ComplejaImpl <em>Compleja</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see org.xtext.tesis.gramatica.gramatica.impl.ComplejaImpl\n * @see org.xtext.tesis.gramatica.gramatica.impl.GramaticaPackageImpl#getCompleja()\n * @generated\n */\n EClass COMPLEJA = eINSTANCE.getCompleja();\n\n /**\n * The meta object literal for the '<em><b>Determinante</b></em>' containment reference feature.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n EReference COMPLEJA__DETERMINANTE = eINSTANCE.getCompleja_Determinante();\n\n /**\n * The meta object literal for the '<em><b>Atr</b></em>' containment reference feature.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n EReference COMPLEJA__ATR = eINSTANCE.getCompleja_Atr();\n\n /**\n * The meta object literal for the '<em><b>Sintagma</b></em>' containment reference feature.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n EReference COMPLEJA__SINTAGMA = eINSTANCE.getCompleja_Sintagma();\n\n /**\n * The meta object literal for the '<em><b>Contexto</b></em>' containment reference feature.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n EReference COMPLEJA__CONTEXTO = eINSTANCE.getCompleja_Contexto();\n\n /**\n * The meta object literal for the '<em><b>Conect</b></em>' containment reference feature.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n EReference COMPLEJA__CONECT = eINSTANCE.getCompleja_Conect();\n\n /**\n * The meta object literal for the '<em><b>Operacion Coleccion</b></em>' containment reference feature.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n EReference COMPLEJA__OPERACION_COLECCION = eINSTANCE.getCompleja_OperacionColeccion();\n\n /**\n * The meta object literal for the '<em><b>Determinante1</b></em>' containment reference feature.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n EReference COMPLEJA__DETERMINANTE1 = eINSTANCE.getCompleja_Determinante1();\n\n /**\n * The meta object literal for the '<em><b>Clase</b></em>' containment reference feature.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n EReference COMPLEJA__CLASE = eINSTANCE.getCompleja_Clase();\n\n /**\n * The meta object literal for the '<em><b>Conect1</b></em>' containment reference feature.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n EReference COMPLEJA__CONECT1 = eINSTANCE.getCompleja_Conect1();\n\n /**\n * The meta object literal for the '<em><b>Atr1</b></em>' containment reference feature.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n EReference COMPLEJA__ATR1 = eINSTANCE.getCompleja_Atr1();\n\n /**\n * The meta object literal for the '<em><b>Ope3</b></em>' containment reference feature.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n EReference COMPLEJA__OPE3 = eINSTANCE.getCompleja_Ope3();\n\n /**\n * The meta object literal for the '<em><b>Lit1</b></em>' attribute feature.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n EAttribute COMPLEJA__LIT1 = eINSTANCE.getCompleja_Lit1();\n\n /**\n * The meta object literal for the '<em><b>Atr2</b></em>' containment reference feature.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n EReference COMPLEJA__ATR2 = eINSTANCE.getCompleja_Atr2();\n\n /**\n * The meta object literal for the '<em><b>Ope4</b></em>' containment reference feature.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n EReference COMPLEJA__OPE4 = eINSTANCE.getCompleja_Ope4();\n\n /**\n * The meta object literal for the '<em><b>Atr4</b></em>' containment reference feature.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n EReference COMPLEJA__ATR4 = eINSTANCE.getCompleja_Atr4();\n\n /**\n * The meta object literal for the '<em><b>Ope5</b></em>' containment reference feature.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n EReference COMPLEJA__OPE5 = eINSTANCE.getCompleja_Ope5();\n\n /**\n * The meta object literal for the '<em><b>Lit2</b></em>' attribute feature.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n EAttribute COMPLEJA__LIT2 = eINSTANCE.getCompleja_Lit2();\n\n /**\n * The meta object literal for the '<em><b>Atr5</b></em>' containment reference feature.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n EReference COMPLEJA__ATR5 = eINSTANCE.getCompleja_Atr5();\n\n /**\n * The meta object literal for the '<em><b>Conec1</b></em>' containment reference feature.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n EReference COMPLEJA__CONEC1 = eINSTANCE.getCompleja_Conec1();\n\n /**\n * The meta object literal for the '<em><b>Ope Col</b></em>' containment reference feature.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n EReference COMPLEJA__OPE_COL = eINSTANCE.getCompleja_OpeCol();\n\n /**\n * The meta object literal for the '<em><b>Ope6</b></em>' containment reference feature.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n EReference COMPLEJA__OPE6 = eINSTANCE.getCompleja_Ope6();\n\n /**\n * The meta object literal for the '<em><b>Lit3</b></em>' attribute feature.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n EAttribute COMPLEJA__LIT3 = eINSTANCE.getCompleja_Lit3();\n\n /**\n * The meta object literal for the '<em><b>Atr3</b></em>' containment reference feature.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n EReference COMPLEJA__ATR3 = eINSTANCE.getCompleja_Atr3();\n\n /**\n * The meta object literal for the '<em><b>Fin Oracion</b></em>' attribute feature.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n EAttribute COMPLEJA__FIN_ORACION = eINSTANCE.getCompleja_FinOracion();\n\n /**\n * The meta object literal for the '{@link org.xtext.tesis.gramatica.gramatica.impl.ConectorImpl <em>Conector</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see org.xtext.tesis.gramatica.gramatica.impl.ConectorImpl\n * @see org.xtext.tesis.gramatica.gramatica.impl.GramaticaPackageImpl#getConector()\n * @generated\n */\n EClass CONECTOR = eINSTANCE.getConector();\n\n /**\n * The meta object literal for the '<em><b>Descripcion</b></em>' attribute feature.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n EAttribute CONECTOR__DESCRIPCION = eINSTANCE.getConector_Descripcion();\n\n /**\n * The meta object literal for the '{@link org.xtext.tesis.gramatica.gramatica.impl.OperacionColeccionImpl <em>Operacion Coleccion</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see org.xtext.tesis.gramatica.gramatica.impl.OperacionColeccionImpl\n * @see org.xtext.tesis.gramatica.gramatica.impl.GramaticaPackageImpl#getOperacionColeccion()\n * @generated\n */\n EClass OPERACION_COLECCION = eINSTANCE.getOperacionColeccion();\n\n /**\n * The meta object literal for the '<em><b>Descripcion</b></em>' attribute feature.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n EAttribute OPERACION_COLECCION__DESCRIPCION = eINSTANCE.getOperacionColeccion_Descripcion();\n\n }", "public ConceptAtom(IRI iri)\n {\n super(iri);\n this.strVariable = \"\"; \n }", "@Override\n public String visit(VarType n, Object arg) {\n return null;\n }", "public interface Literals {\n\n\t\t/**\n\t\t * The meta object literal for the '{@link org.dresdenocl.essentialocl.types.impl.BagTypeImpl <em>Bag Type</em>}' class.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see org.dresdenocl.essentialocl.types.impl.BagTypeImpl\n\t\t * @see org.dresdenocl.essentialocl.types.impl.TypesPackageImpl#getBagType()\n\t\t * @generated\n\t\t */\n\t\tpublic static final EClass BAG_TYPE = eINSTANCE.getBagType();\n\n\t\t/**\n\t\t * The meta object literal for the '{@link org.dresdenocl.essentialocl.types.impl.TupleTypeImpl <em>Tuple Type</em>}' class.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see org.dresdenocl.essentialocl.types.impl.TupleTypeImpl\n\t\t * @see org.dresdenocl.essentialocl.types.impl.TypesPackageImpl#getTupleType()\n\t\t * @generated\n\t\t */\n\t\tpublic static final EClass TUPLE_TYPE = eINSTANCE.getTupleType();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Ocl Library</b></em>' reference feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tpublic static final EReference TUPLE_TYPE__OCL_LIBRARY = eINSTANCE\n\t\t\t\t.getTupleType_OclLibrary();\n\n\t\t/**\n\t\t * The meta object literal for the '{@link org.dresdenocl.essentialocl.types.impl.CollectionTypeImpl <em>Collection Type</em>}' class.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see org.dresdenocl.essentialocl.types.impl.CollectionTypeImpl\n\t\t * @see org.dresdenocl.essentialocl.types.impl.TypesPackageImpl#getCollectionType()\n\t\t * @generated\n\t\t */\n\t\tpublic static final EClass COLLECTION_TYPE = eINSTANCE\n\t\t\t\t.getCollectionType();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Element Type</b></em>' reference feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tpublic static final EReference COLLECTION_TYPE__ELEMENT_TYPE = eINSTANCE\n\t\t\t\t.getCollectionType_ElementType();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Ocl Library</b></em>' reference feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tpublic static final EReference COLLECTION_TYPE__OCL_LIBRARY = eINSTANCE\n\t\t\t\t.getCollectionType_OclLibrary();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Kind</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tpublic static final EAttribute COLLECTION_TYPE__KIND = eINSTANCE\n\t\t\t\t.getCollectionType_Kind();\n\n\t\t/**\n\t\t * The meta object literal for the '{@link org.dresdenocl.essentialocl.types.impl.InvalidTypeImpl <em>Invalid Type</em>}' class.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see org.dresdenocl.essentialocl.types.impl.InvalidTypeImpl\n\t\t * @see org.dresdenocl.essentialocl.types.impl.TypesPackageImpl#getInvalidType()\n\t\t * @generated\n\t\t */\n\t\tpublic static final EClass INVALID_TYPE = eINSTANCE.getInvalidType();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Ocl Library</b></em>' container reference feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tpublic static final EReference INVALID_TYPE__OCL_LIBRARY = eINSTANCE\n\t\t\t\t.getInvalidType_OclLibrary();\n\n\t\t/**\n\t\t * The meta object literal for the '{@link org.dresdenocl.essentialocl.types.impl.OrderedSetTypeImpl <em>Ordered Set Type</em>}' class.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see org.dresdenocl.essentialocl.types.impl.OrderedSetTypeImpl\n\t\t * @see org.dresdenocl.essentialocl.types.impl.TypesPackageImpl#getOrderedSetType()\n\t\t * @generated\n\t\t */\n\t\tpublic static final EClass ORDERED_SET_TYPE = eINSTANCE\n\t\t\t\t.getOrderedSetType();\n\n\t\t/**\n\t\t * The meta object literal for the '{@link org.dresdenocl.essentialocl.types.impl.SequenceTypeImpl <em>Sequence Type</em>}' class.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see org.dresdenocl.essentialocl.types.impl.SequenceTypeImpl\n\t\t * @see org.dresdenocl.essentialocl.types.impl.TypesPackageImpl#getSequenceType()\n\t\t * @generated\n\t\t */\n\t\tpublic static final EClass SEQUENCE_TYPE = eINSTANCE.getSequenceType();\n\n\t\t/**\n\t\t * The meta object literal for the '{@link org.dresdenocl.essentialocl.types.impl.SetTypeImpl <em>Set Type</em>}' class.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see org.dresdenocl.essentialocl.types.impl.SetTypeImpl\n\t\t * @see org.dresdenocl.essentialocl.types.impl.TypesPackageImpl#getSetType()\n\t\t * @generated\n\t\t */\n\t\tpublic static final EClass SET_TYPE = eINSTANCE.getSetType();\n\n\t\t/**\n\t\t * The meta object literal for the '{@link org.dresdenocl.essentialocl.types.impl.VoidTypeImpl <em>Void Type</em>}' class.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see org.dresdenocl.essentialocl.types.impl.VoidTypeImpl\n\t\t * @see org.dresdenocl.essentialocl.types.impl.TypesPackageImpl#getVoidType()\n\t\t * @generated\n\t\t */\n\t\tpublic static final EClass VOID_TYPE = eINSTANCE.getVoidType();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Ocl Library</b></em>' container reference feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tpublic static final EReference VOID_TYPE__OCL_LIBRARY = eINSTANCE\n\t\t\t\t.getVoidType_OclLibrary();\n\n\t\t/**\n\t\t * The meta object literal for the '{@link org.dresdenocl.essentialocl.types.impl.TypeTypeImpl <em>Type Type</em>}' class.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see org.dresdenocl.essentialocl.types.impl.TypeTypeImpl\n\t\t * @see org.dresdenocl.essentialocl.types.impl.TypesPackageImpl#getTypeType()\n\t\t * @generated\n\t\t */\n\t\tpublic static final EClass TYPE_TYPE = eINSTANCE.getTypeType();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Represented Type</b></em>' reference feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tpublic static final EReference TYPE_TYPE__REPRESENTED_TYPE = eINSTANCE\n\t\t\t\t.getTypeType_RepresentedType();\n\n\t\t/**\n\t\t * The meta object literal for the '{@link org.dresdenocl.essentialocl.types.impl.OclLibraryImpl <em>Ocl Library</em>}' class.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see org.dresdenocl.essentialocl.types.impl.OclLibraryImpl\n\t\t * @see org.dresdenocl.essentialocl.types.impl.TypesPackageImpl#getOclLibrary()\n\t\t * @generated\n\t\t */\n\t\tpublic static final EClass OCL_LIBRARY = eINSTANCE.getOclLibrary();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Ocl Void</b></em>' containment reference feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tpublic static final EReference OCL_LIBRARY__OCL_VOID = eINSTANCE\n\t\t\t\t.getOclLibrary_OclVoid();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Ocl Any</b></em>' containment reference feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tpublic static final EReference OCL_LIBRARY__OCL_ANY = eINSTANCE\n\t\t\t\t.getOclLibrary_OclAny();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Ocl Collection</b></em>' containment reference feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tpublic static final EReference OCL_LIBRARY__OCL_COLLECTION = eINSTANCE\n\t\t\t\t.getOclLibrary_OclCollection();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Ocl Sequence</b></em>' containment reference feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tpublic static final EReference OCL_LIBRARY__OCL_SEQUENCE = eINSTANCE\n\t\t\t\t.getOclLibrary_OclSequence();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Ocl Bag</b></em>' containment reference feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tpublic static final EReference OCL_LIBRARY__OCL_BAG = eINSTANCE\n\t\t\t\t.getOclLibrary_OclBag();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Ocl Set</b></em>' containment reference feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tpublic static final EReference OCL_LIBRARY__OCL_SET = eINSTANCE\n\t\t\t\t.getOclLibrary_OclSet();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Ocl Ordered Set</b></em>' containment reference feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tpublic static final EReference OCL_LIBRARY__OCL_ORDERED_SET = eINSTANCE\n\t\t\t\t.getOclLibrary_OclOrderedSet();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Ocl Tuple</b></em>' containment reference list feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tpublic static final EReference OCL_LIBRARY__OCL_TUPLE = eINSTANCE\n\t\t\t\t.getOclLibrary_OclTuple();\n\n\t\t/**\n\t\t * The meta object literal for the '{@link org.dresdenocl.essentialocl.types.impl.AnyTypeImpl <em>Any Type</em>}' class.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see org.dresdenocl.essentialocl.types.impl.AnyTypeImpl\n\t\t * @see org.dresdenocl.essentialocl.types.impl.TypesPackageImpl#getAnyType()\n\t\t * @generated\n\t\t */\n\t\tpublic static final EClass ANY_TYPE = eINSTANCE.getAnyType();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Ocl Boolean</b></em>' containment reference feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tpublic static final EReference OCL_LIBRARY__OCL_BOOLEAN = eINSTANCE\n\t\t\t\t.getOclLibrary_OclBoolean();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Ocl String</b></em>' containment reference feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tpublic static final EReference OCL_LIBRARY__OCL_STRING = eINSTANCE\n\t\t\t\t.getOclLibrary_OclString();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Ocl Integer</b></em>' containment reference feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tpublic static final EReference OCL_LIBRARY__OCL_INTEGER = eINSTANCE\n\t\t\t\t.getOclLibrary_OclInteger();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Ocl Real</b></em>' containment reference feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tpublic static final EReference OCL_LIBRARY__OCL_REAL = eINSTANCE\n\t\t\t\t.getOclLibrary_OclReal();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Ocl Invalid</b></em>' containment reference feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tpublic static final EReference OCL_LIBRARY__OCL_INVALID = eINSTANCE\n\t\t\t\t.getOclLibrary_OclInvalid();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Ocl Type</b></em>' containment reference feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tpublic static final EReference OCL_LIBRARY__OCL_TYPE = eINSTANCE\n\t\t\t\t.getOclLibrary_OclType();\n\n\t}", "public T caseStringLiteralExpCS(StringLiteralExpCS object) {\r\n return null;\r\n }", "public void setNode_3(String node_3);", "protected void sequence_CompositeLit(ISerializationContext context, CompositeLit semanticObject) {\r\n\t\tif (errorAcceptor != null) {\r\n\t\t\tif (transientValues.isValueTransient(semanticObject, GoPackage.Literals.COMPOSITE_LIT__LITERALT) == ValueTransient.YES)\r\n\t\t\t\terrorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, GoPackage.Literals.COMPOSITE_LIT__LITERALT));\r\n\t\t\tif (transientValues.isValueTransient(semanticObject, GoPackage.Literals.COMPOSITE_LIT__LITERALV) == ValueTransient.YES)\r\n\t\t\t\terrorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, GoPackage.Literals.COMPOSITE_LIT__LITERALV));\r\n\t\t}\r\n\t\tSequenceFeeder feeder = createSequencerFeeder(context, semanticObject);\r\n\t\tfeeder.accept(grammarAccess.getCompositeLitAccess().getLiteraltLiteralTypeParserRuleCall_0_0(), semanticObject.getLiteralt());\r\n\t\tfeeder.accept(grammarAccess.getCompositeLitAccess().getLiteralvLiteralValueParserRuleCall_1_0(), semanticObject.getLiteralv());\r\n\t\tfeeder.finish();\r\n\t}", "public Literal setLiteralBoolean(Boolean literalData);", "RealLiteralExp createRealLiteralExp();" ]
[ "0.66867334", "0.6443409", "0.6260124", "0.61788255", "0.6071785", "0.59938645", "0.598193", "0.598193", "0.591656", "0.58352953", "0.58352953", "0.5747221", "0.56763506", "0.5616454", "0.5616454", "0.5484703", "0.5455359", "0.54303426", "0.5426206", "0.54179215", "0.5397074", "0.53711796", "0.53704983", "0.53320867", "0.5324575", "0.5246377", "0.52070695", "0.5202996", "0.51855063", "0.51693946", "0.5150903", "0.5132185", "0.5118407", "0.50937724", "0.50803167", "0.5076721", "0.50695074", "0.50638616", "0.50399715", "0.5039863", "0.5016004", "0.49983713", "0.49603686", "0.49529862", "0.494253", "0.49403974", "0.49377748", "0.49373", "0.4932722", "0.4928336", "0.49057576", "0.48990354", "0.48827857", "0.4878048", "0.48755017", "0.48452303", "0.48344672", "0.48306152", "0.48291406", "0.48261884", "0.48253566", "0.48201826", "0.48182505", "0.4812823", "0.4809885", "0.47988924", "0.47953102", "0.47817615", "0.47612646", "0.47572526", "0.47548532", "0.4751698", "0.47490785", "0.47443205", "0.47414973", "0.47354975", "0.47323284", "0.47246492", "0.47243544", "0.47242907", "0.47126874", "0.47102425", "0.46977642", "0.4695297", "0.4685038", "0.46817452", "0.46771196", "0.46741992", "0.46716157", "0.46630132", "0.46548295", "0.46459565", "0.46445563", "0.46422222", "0.46412885", "0.46384367", "0.4634385", "0.4629198", "0.46260172", "0.46254867" ]
0.5102992
33
nodeChoice > SparqlCollection() | BlankNodePropertyList()
@Override public R visit(TriplesNode n, A argu) { R _ret = null; n.nodeChoice.accept(this, argu); return _ret; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public R visit(SparqlCollection n, A argu) {\n R _ret = null;\n n.nodeToken.accept(this, argu);\n n.nodeList.accept(this, argu);\n n.nodeToken1.accept(this, argu);\n return _ret;\n }", "@Override\n public R visit(SparqlString n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "@Override\n public R visit(ObjectList n, A argu) {\n R _ret = null;\n n.sparqlObject.accept(this, argu);\n n.nodeListOptional.accept(this, argu);\n return _ret;\n }", "QueryElement addEmpty(String collectionProperty);", "public SPARQL() {\n initComponents();\n \n model = ModelFactory.createOntologyModel(OntModelSpec.OWL_LITE_MEM_RDFS_INF);\n model.setDynamicImports(true);\n model.read(\"file:\"+\"data/ontologies/Papers_Ready.owl\", \"http://www.l3g.pl/ontologies/OntoBeef/Papers.owl\", \"N-TRIPLE\");\n model.loadImports();\n \n for (Individual i : model.listIndividuals(model.getOntClass(\"http://www.l3g.pl/ontologies/OntoBeef/Conceptualisation.owl#Category\")).toSet())\n {\n System.out.println(i.listLabels(null).toSet());\n }\n }", "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 }", "QueryElement addOrEmpty(String collectionProperty);", "@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 }", "public void test_sf_969475() {\n String SOURCE=\n \"<?xml version='1.0'?>\" +\n \"<!DOCTYPE owl [\" +\n \" <!ENTITY rdf 'http://www.w3.org/1999/02/22-rdf-syntax-ns#' >\" +\n \" <!ENTITY rdfs 'http://www.w3.org/2000/01/rdf-schema#' >\" +\n \" <!ENTITY xsd 'http://www.w3.org/2001/XMLSchema#' >\" +\n \" <!ENTITY owl 'http://www.w3.org/2002/07/owl#' >\" +\n \" <!ENTITY dc 'http://purl.org/dc/elements/1.1/' >\" +\n \" <!ENTITY base 'http://jena.hpl.hp.com/test' >\" +\n \" ]>\" +\n \"<rdf:RDF xmlns:owl ='&owl;' xmlns:rdf='&rdf;' xmlns:rdfs='&rdfs;' xmlns:dc='&dc;' xmlns='&base;#' xml:base='&base;'>\" +\n \" <owl:ObjectProperty rdf:ID='p0'>\" +\n \" <owl:inverseOf>\" +\n \" <owl:ObjectProperty rdf:ID='q0' />\" +\n \" </owl:inverseOf>\" +\n \" </owl:ObjectProperty>\" +\n \" <owl:ObjectProperty rdf:ID='p1'>\" +\n \" <owl:inverseOf>\" +\n \" <owl:ObjectProperty rdf:ID='q1' />\" +\n \" </owl:inverseOf>\" +\n \" </owl:ObjectProperty>\" +\n \"</rdf:RDF>\";\n OntModel m = ModelFactory.createOntologyModel( OntModelSpec.OWL_MEM );\n m.read( new StringReader( SOURCE ), null );\n \n ObjectProperty p0 = m.getObjectProperty( \"http://jena.hpl.hp.com/test#p0\");\n Object invP0 = p0.getInverseOf();\n \n assertEquals( m.getResource( \"http://jena.hpl.hp.com/test#q0\"), invP0 );\n assertTrue( \"Should be an ObjectProperty facet\", invP0 instanceof ObjectProperty );\n \n ObjectProperty q1 = m.getObjectProperty( \"http://jena.hpl.hp.com/test#q1\");\n Object invQ1 = q1.getInverse();\n \n assertEquals( m.getResource( \"http://jena.hpl.hp.com/test#p1\"), invQ1 );\n assertTrue( \"Should be an ObjectProperty facet\", invQ1 instanceof ObjectProperty );\n }", "public Vector<Node> GetAdditionalSubNodes();", "List<CyNode> getNodeList();", "@Test\n public void example13 () throws Exception {\n Map<String, Stmt> inputs = example2setup();\n conn.setNamespace(\"ex\", \"http://example.org/people/\");\n conn.setNamespace(\"ont\", \"http://example.org/ontology/\");\n String prefix = \"PREFIX ont: \" + \"<http://example.org/ontology/>\\n\";\n \n String queryString = \"select ?s ?p ?o where { ?s ?p ?o} \";\n TupleQuery tupleQuery = conn.prepareTupleQuery(QueryLanguage.SPARQL, queryString);\n assertSetsEqual(\"SELECT result:\", inputs.values(),\n statementSet(tupleQuery.evaluate()));\n \n assertTrue(\"Boolean result\",\n conn.prepareBooleanQuery(QueryLanguage.SPARQL,\n prefix + \n \"ask { ?s ont:name \\\"Alice\\\" } \").evaluate());\n assertFalse(\"Boolean result\",\n conn.prepareBooleanQuery(QueryLanguage.SPARQL,\n prefix + \n \"ask { ?s ont:name \\\"NOT Alice\\\" } \").evaluate());\n \n queryString = \"construct {?s ?p ?o} where { ?s ?p ?o . filter (?o = \\\"Alice\\\") } \";\n GraphQuery constructQuery = conn.prepareGraphQuery(QueryLanguage.SPARQL, queryString);\n assertSetsEqual(\"Construct result\",\n mapKeep(new String[] {\"an\"}, inputs).values(),\n statementSet(constructQuery.evaluate()));\n \n queryString = \"describe ?s where { ?s ?p ?o . filter (?o = \\\"Alice\\\") } \";\n GraphQuery describeQuery = conn.prepareGraphQuery(QueryLanguage.SPARQL, queryString);\n assertSetsEqual(\"Describe result\",\n mapKeep(new String[] {\"an\", \"at\"}, inputs).values(),\n statementSet(describeQuery.evaluate()));\n }", "@Override\n public R visit(PropertyListNotEmpty n, A argu) {\n R _ret = null;\n n.verb.accept(this, argu);\n n.objectList.accept(this, argu);\n n.nodeListOptional.accept(this, argu);\n return _ret;\n }", "private String getSelect(Rule rule) throws MediatorException {\n\n\tString s = \"PREFIX vocab: <\" + propertyNamespace + \"> \";\n\ts += \"\\n SELECT DISTINCT \";\n\n\tArrayList<String> headVars = rule.getAllAntecedentVars();\n\n\tfor (int i = 0; i < headVars.size(); i++) {\n\t String var = headVars.get(i);\n\t if (var.endsWith(\"*\")) {\n\t\tvar = var.substring(0, var.length() - 1);\n\t }\n\n\t s += \" ?\" + var + \" \";\n\t}\n\n\t// add to the select list the table objects\n\tfor (int i = 0; i < rule.getAntecedent().size(); i++) {\n\t Predicate p = rule.getAntecedent().get(i);\n\t s += \" ?o_\" + p.getName();\n\t}\n\n\t/*\n\t * //NOTE: In jena 2.6.4 \"As\" constructs are allowed (See below) //this\n\t * made it easier to construct the query. I could have all the\n\t * intermediary objects in the select // including the object referenced\n\t * in the input URI //in 2.6.2 I can't have this, so I have to deal with\n\t * that object separately //look in RuleRDFMapper.getUri() for (int i=0;\n\t * i<queryRule.getBody().size(); i++){ Predicate p =\n\t * queryRule.getBody().get(i); s += \" (?o_\" + p.getName() + \" as ?o_\" +\n\t * p.getName() + \"_return) \"; }\n\t */\n\treturn s;\n }", "@Test\n public void testList() {\n SLNode one = new SLNode(1, null);\n SLNode twoOne = new SLNode(2, one);\n SLNode threeTwoOne = new SLNode(3, twoOne);\n\n SLNode x = SLNode.of(3, 2, 1);\n assertEquals(threeTwoOne, x);\n }", "public List<Node> getFirstChoices() {\n Set<Node> firstChoices = new HashSet<Node>();\n // find non-redundant connectors of matching needs or capabilities.\n for ( Connector connector : findRelatedLocalConnectors() ) {\n if ( !isRedundant( connector ) )\n firstChoices.add( connector );\n }\n // Find related external connectors\n for ( Connector connector : findRelatedExternalConnectors() ) {\n if ( !isRedundant( connector ) )\n firstChoices.add( connector );\n }\n // Find all parts involved in related sharing but without related need or capability\n for ( Part part : findRelatedParts() ) {\n if ( !isRedundant( part ) )\n firstChoices.add( part );\n }\n return new ArrayList<Node>( firstChoices );\n }", "public abstract boolean isNodeTypeCollection();", "@Override\n public R visit(GraphTerm n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "public abstract T queryRootNode();", "@SuppressWarnings( \"unchecked\" )\n public List<Node> getSecondChoices() {\n final List<Part> relatedParts = findRelatedParts();\n final Node node = getNode();\n final Node other = getOther();\n return (List<Node>) CollectionUtils.select(\n IteratorUtils.toList( node.getSegment().parts() ),\n new Predicate() {\n @Override\n public boolean evaluate( Object object ) {\n Part part = (Part) object;\n return !part.equals( node )\n && !part.equals( other )\n && !relatedParts.contains( part );\n }\n }\n );\n }", "public void test_anon_0() {\n String NS = \"http://example.org/foo#\";\n String sourceT =\n \"<rdf:RDF \"\n + \" xmlns:rdf='http://www.w3.org/1999/02/22-rdf-syntax-ns#'\"\n + \" xmlns:rdfs='http://www.w3.org/2000/01/rdf-schema#'\"\n + \" xmlns:ex='http://example.org/foo#'\"\n + \" xmlns:owl='http://www.w3.org/2002/07/owl#'>\"\n + \" <owl:ObjectProperty rdf:about='http://example.org/foo#p' />\"\n + \" <owl:Class rdf:about='http://example.org/foo#A' />\"\n + \" <ex:A rdf:about='http://example.org/foo#x' />\"\n + \" <owl:Class rdf:about='http://example.org/foo#B'>\"\n + \" <owl:equivalentClass>\"\n + \" <owl:Restriction>\" \n + \" <owl:onProperty rdf:resource='http://example.org/foo#p' />\" \n + \" <owl:hasValue rdf:resource='http://example.org/foo#x' />\" \n + \" </owl:Restriction>\"\n + \" </owl:equivalentClass>\"\n + \" </owl:Class>\"\n + \"</rdf:RDF>\";\n \n OntModel m = ModelFactory.createOntologyModel(OntModelSpec.OWL_MEM, null);\n m.read(new ByteArrayInputStream(sourceT.getBytes()), \"http://example.org/foo\");\n \n OntClass B = m.getOntClass( NS + \"B\");\n Restriction r = B.getEquivalentClass().asRestriction();\n HasValueRestriction hvr = r.asHasValueRestriction();\n RDFNode n = hvr.getHasValue();\n \n assertTrue( \"Should be an individual\", n instanceof Individual );\n }", "@Override\n\t\t\tpublic void onChange(Widget sender) {\n\t\t\t\tint listIndex = property_Resources.getSelectedIndex();\n\t\t\t\tlogger.log(Level.SEVERE, property_Resources.getItemText(listIndex));\n\t\t\t\tif (!(property_Resources.getItemText(listIndex).equals(\"RDF.type\"))) {\n\t\t\t\t\tlogger.log(Level.SEVERE, \"not rdf.type\");\n\t\t\t\t\tString uri = ontology.get(ontologies.getSelectedIndex()).getBaseURI();\n\t\t\t\t\tString item = uri + property_Resources.getItemText(listIndex);\n\t\t\t\t\taddPredicate(item);\n\t\t\t\t} else {\n\t\t\t\t\tlogger.log(Level.SEVERE, \"rdf.type\");\n\t\t\t\t\tString item = property_Resources.getItemText(listIndex);\n\t\t\t\t\taddPredicate(item);\n\t\t\t\t}\n\n\t\t\t}", "Collection<Node> allNodes();", "public abstract String getSelectedNode();", "QueryElement addNotEmpty(String collectionProperty);", "List<Node> nodes();", "public void testWriteRDF() {\n\n\t\trunQuery(new LinkQueryTerm(relationVocabulary.is_a(),NEURON), \"subclass\");\n\n\t\trunQuery(new LinkQueryTerm(MELANOCYTE),\"any link\");\n\t\t\n\t\trunQuery(new LinkQueryTerm(relationVocabulary.part_of(),MELANOCYTE),\"part_of (class)\");\n\t\t\n\t\trunQuery(new LinkQueryTerm(relationVocabulary.inheres_in(),\tnew LinkQueryTerm(relationVocabulary.part_of(),HUMAN_EYE)),\"phenotype in some part of the eye\");\n\t\t\n\t\trunQuery(new AnnotationLinkQueryTerm(MELANOCYTE),\"anything annotated to melanocyte\");\n\t\t\n\t\trunQuery(new AnnotationLinkQueryTerm(new LinkQueryTerm(relationVocabulary.inheres_in(),\tMELANOCYTE)),\"anything annotated to a melanocyte phenotype\");\n\t\t\n\t\tQueryTerm classQt =\tnew BooleanQueryTerm(new LinkQueryTerm(relationVocabulary.inheres_in(),NEURON),\tnew LinkQueryTerm(relationVocabulary.inheres_in(),BEHAVIOR));\n\t\t\n\t\trunQuery(new AnnotationLinkQueryTerm(classQt),\"boolean query\");\n\n\n\t}", "String showAllNodes();", "@Override\n public String visit(NodeList n, Object arg) {\n return null;\n }", "public E choose() throws JMLNoSuchElementException {\n if (the_list != null) {\n E entry = the_list.val;\n if (entry == null) {\n //@ assume containsNull;\n return null;\n } else {\n E o = entry ;\n //@ assume o instanceof Object;\n //@ assume \\typeof(o) <: elementType;\n return o;\n }\n } else {\n throw new JMLNoSuchElementException(\"Tried to .choose() \"\n + \"with JMLObjectSet empty\");\n }\n }", "@Override\n\tpublic List<N> getNodeList()\n\t{\n\t\treturn new ArrayList<N>(nodeList);\n\t}", "@Test\n public void testListWithValue() {\n Node makeNumbers1 = makeNumbersNode.withName(\"makeNumbers1\").withInputValue(\"string\", \"1 2 3\");\n Node add1 = addNode.extend().withName(\"add1\").withInputValue(\"v2\", 100.0);\n Node net = Node.NETWORK\n .withChildAdded(makeNumbers1)\n .withChildAdded(add1)\n .connect(\"makeNumbers1\", \"add1\", \"v1\");\n assertResultsEqual(context.renderChild(net, add1), 101.0, 102.0, 103.0);\n }", "@Test public void onePredicate() {\n query(\"//ul/li['']\", \"\");\n query(\"//ul/li['x']\", LI1 + '\\n' + LI2);\n query(\"//ul/li[<a b='{\" + _RANDOM_INTEGER.args() + \" }'/>]\", LI1 + '\\n' + LI2);\n\n query(\"//ul/li[0]\", \"\");\n query(\"//ul/li[1]\", LI1);\n query(\"//ul/li[2]\", LI2);\n query(\"//ul/li[3]\", \"\");\n query(\"//ul/li[last()]\", LI2);\n }", "@Override\n public R visit(IRIref n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "List<NjProductTaticsRelation> selectByExample(NjProductTaticsRelationExample example);", "public ListSelection()\n {\n super( DocumentType.CALC );\n }", "public NodeList convertToNodeset() {\n/* 242 */ if (this.m_obj instanceof NodeList) {\n/* 243 */ return (NodeList)this.m_obj;\n/* */ }\n/* 245 */ return new DTMNodeList(asNodeIterator());\n/* */ }", "@Override\n public R visit(TriplesSameSubject n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "@Test\n public void example10 () throws Exception {\n ValueFactory f = repo.getValueFactory();\n String exns = \"http://example.org/people/\";\n URI alice = f.createURI(exns, \"alice\");\n URI bob = f.createURI(exns, \"bob\");\n URI ted = f.createURI(exns, \"ted\"); \n URI person = f.createURI(\"http://example.org/ontology/Person\");\n URI name = f.createURI(\"http://example.org/ontology/name\");\n Literal alicesName = f.createLiteral(\"Alice\");\n Literal bobsName = f.createLiteral(\"Bob\");\n Literal tedsName = f.createLiteral(\"Ted\"); \n URI context1 = f.createURI(exns, \"cxt1\"); \n URI context2 = f.createURI(exns, \"cxt2\"); \n conn.add(alice, RDF.TYPE, person, context1);\n conn.add(alice, name, alicesName, context1);\n conn.add(bob, RDF.TYPE, person, context2);\n conn.add(bob, name, bobsName, context2);\n conn.add(ted, RDF.TYPE, person);\n conn.add(ted, name, tedsName);\n \n assertSetsEqual(\n stmts(new Stmt[] {\n new Stmt(alice, RDF.TYPE, person, context1),\n new Stmt(alice, name, alicesName, context1),\n new Stmt(bob, RDF.TYPE, person, context2),\n new Stmt(bob, name, bobsName, context2),\n new Stmt(ted, RDF.TYPE, person),\n new Stmt(ted, name, tedsName)\n }),\n statementSet(conn.getStatements(null, null, null, false)));\n assertSetsEqual(\n stmts(new Stmt[] {\n new Stmt(alice, RDF.TYPE, person, context1),\n new Stmt(alice, name, alicesName, context1),\n new Stmt(bob, RDF.TYPE, person, context2),\n new Stmt(bob, name, bobsName, context2)\n }),\n statementSet(conn.getStatements(null, null, null, false, context1, context2)));\n assertSetsEqual(\n stmts(new Stmt[] {\n new Stmt(bob, RDF.TYPE, person, context2),\n new Stmt(bob, name, bobsName, context2),\n new Stmt(ted, RDF.TYPE, person),\n new Stmt(ted, name, tedsName)\n }),\n statementSet(conn.getStatements(null, null, null, false, null, context2)));\n \n // testing named graph query\n DatasetImpl ds = new DatasetImpl();\n ds.addNamedGraph(context1);\n ds.addNamedGraph(context2);\n TupleQuery tupleQuery = conn.prepareTupleQuery(\n QueryLanguage.SPARQL, \"SELECT ?s ?p ?o ?g WHERE { GRAPH ?g {?s ?p ?o . } }\");\n tupleQuery.setDataset(ds);\n assertSetsEqual(\n stmts(new Stmt[] {\n new Stmt(alice, RDF.TYPE, person, context1),\n new Stmt(alice, name, alicesName, context1),\n new Stmt(bob, RDF.TYPE, person, context2),\n new Stmt(bob, name, bobsName, context2)\n }),\n statementSet(tupleQuery.evaluate()));\n \n ds = new DatasetImpl();\n ds.addDefaultGraph(null);\n tupleQuery = conn.prepareTupleQuery(QueryLanguage.SPARQL, \"SELECT ?s ?p ?o WHERE {?s ?p ?o . }\");\n tupleQuery.setDataset(ds);\n assertSetsEqual(\n stmts(new Stmt[] {\n new Stmt(ted, RDF.TYPE, person),\n new Stmt(ted, name, tedsName)\n }),\n statementSet(tupleQuery.evaluate()));\n }", "@Override\n public R visit(VarOrIRIref n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "SelectSubSet createSelectSubSet();", "@Override\n public R visit(BlankNodePropertyList n, A argu) {\n R _ret = null;\n n.nodeToken.accept(this, argu);\n n.propertyListNotEmpty.accept(this, argu);\n n.nodeToken1.accept(this, argu);\n return _ret;\n }", "public void test_der_02() {\n String SOURCE=\n \"<?xml version='1.0'?>\" +\n \"<!DOCTYPE owl [\" +\n \" <!ENTITY rdf 'http://www.w3.org/1999/02/22-rdf-syntax-ns#' >\" +\n \" <!ENTITY rdfs 'http://www.w3.org/2000/01/rdf-schema#' >\" +\n \" <!ENTITY xsd 'http://www.w3.org/2001/XMLSchema#' >\" +\n \" <!ENTITY owl 'http://www.w3.org/2002/07/owl#' >\" +\n \" <!ENTITY dc 'http://purl.org/dc/elements/1.1/' >\" +\n \" <!ENTITY base 'http://jena.hpl.hp.com/test' >\" +\n \" ]>\" +\n \"<rdf:RDF xmlns:owl ='&owl;' xmlns:rdf='&rdf;' xmlns:rdfs='&rdfs;' xmlns:dc='&dc;' xmlns='&base;#' xml:base='&base;'>\" +\n \" <owl:ObjectProperty rdf:ID='hasPublications'>\" +\n \" <rdfs:domain>\" +\n \" <owl:Class>\" +\n \" <owl:unionOf rdf:parseType='Collection'>\" +\n \" <owl:Class rdf:about='#Project'/>\" +\n \" <owl:Class rdf:about='#Task'/>\" +\n \" </owl:unionOf>\" +\n \" </owl:Class>\" +\n \" </rdfs:domain>\" +\n \" <rdfs:domain rdf:resource='#Dummy' />\" +\n \" <rdfs:range rdf:resource='#Publications'/>\" +\n \" </owl:ObjectProperty>\" +\n \" <owl:Class rdf:ID='Dummy'>\" +\n \" </owl:Class>\" +\n \"</rdf:RDF>\";\n String NS = \"http://jena.hpl.hp.com/test#\";\n OntModel m = ModelFactory.createOntologyModel(OntModelSpec.OWL_MEM, null);\n m.read(new ByteArrayInputStream( SOURCE.getBytes()), NS );\n \n OntClass dummy = m.getOntClass( NS + \"Dummy\" );\n // assert commented out - bug not accepted -ijd\n //TestUtil.assertIteratorValues( this, dummy.listDeclaredProperties(), \n // new Object[] {m.getObjectProperty( NS+\"hasPublications\")} );\n }", "interface Matcher<R extends OWLPropertyRange, F extends R, P extends OWLPropertyExpression<R, P>> {\n boolean isMatch(OWLClassExpression c, P p, R f);\n\n boolean isMatch(OWLClassExpression c, P p, R f, boolean direct);\n\n /** Perform a recursive search, adding nodes that match. If direct is true\n * only add nodes if they have no subs that match\n * \n * @param c\n * class\n * @param p\n * property\n * @param start\n * start\n * @param direct\n * direct\n * @return set of leave nodes */\n NodeSet<F> getLeaves(OWLClassExpression c, P p, R start, boolean direct);\n\n /** Perform a search on the direct subs of start, adding nodes that match. If\n * direct is false then recurse into descendants of start\n * \n * @param c\n * class\n * @param p\n * property\n * @param start\n * start\n * @param direct\n * direct\n * @return set of root nodes */\n NodeSet<F> getRoots(OWLClassExpression c, P p, R start, boolean direct);\n}", "public String getElement()\n {\n return nodeChoice;\n }", "@Override\n\tArrayList<Prop> MakeClause() {\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 }", "public List<Node> getNodes();", "public interface Node extends WrappedIndividual {\r\n\r\n /* ***************************************************\r\n * Property http://www.sifemontologies.com/ontologies/FEMSettingsPAK.owl#hasNodeSettings\r\n */\r\n \r\n /**\r\n * Gets all property values for the hasNodeSettings property.<p>\r\n * \r\n * @returns a collection of values for the hasNodeSettings property.\r\n */\r\n Collection<? extends NodeSettings> getHasNodeSettings();\r\n\r\n /**\r\n * Checks if the class has a hasNodeSettings property value.<p>\r\n * \r\n * @return true if there is a hasNodeSettings property value.\r\n */\r\n boolean hasHasNodeSettings();\r\n\r\n /**\r\n * Adds a hasNodeSettings property value.<p>\r\n * \r\n * @param newHasNodeSettings the hasNodeSettings property value to be added\r\n */\r\n void addHasNodeSettings(NodeSettings newHasNodeSettings);\r\n\r\n /**\r\n * Removes a hasNodeSettings property value.<p>\r\n * \r\n * @param oldHasNodeSettings the hasNodeSettings property value to be removed.\r\n */\r\n void removeHasNodeSettings(NodeSettings oldHasNodeSettings);\r\n\r\n\r\n /* ***************************************************\r\n * Property http://www.sifemontologies.com/ontologies/FiniteElementModel.owl#isBoundaryNodeOf\r\n */\r\n \r\n /**\r\n * Gets all property values for the isBoundaryNodeOf property.<p>\r\n * \r\n * @returns a collection of values for the isBoundaryNodeOf property.\r\n */\r\n Collection<? extends Boundary> getIsBoundaryNodeOf();\r\n\r\n /**\r\n * Checks if the class has a isBoundaryNodeOf property value.<p>\r\n * \r\n * @return true if there is a isBoundaryNodeOf property value.\r\n */\r\n boolean hasIsBoundaryNodeOf();\r\n\r\n /**\r\n * Adds a isBoundaryNodeOf property value.<p>\r\n * \r\n * @param newIsBoundaryNodeOf the isBoundaryNodeOf property value to be added\r\n */\r\n void addIsBoundaryNodeOf(Boundary newIsBoundaryNodeOf);\r\n\r\n /**\r\n * Removes a isBoundaryNodeOf property value.<p>\r\n * \r\n * @param oldIsBoundaryNodeOf the isBoundaryNodeOf property value to be removed.\r\n */\r\n void removeIsBoundaryNodeOf(Boundary oldIsBoundaryNodeOf);\r\n\r\n\r\n /* ***************************************************\r\n * Property http://www.sifemontologies.com/ontologies/FiniteElementModel.owl#isNodeOf\r\n */\r\n \r\n /**\r\n * Gets all property values for the isNodeOf property.<p>\r\n * \r\n * @returns a collection of values for the isNodeOf property.\r\n */\r\n Collection<? extends Subdomain> getIsNodeOf();\r\n\r\n /**\r\n * Checks if the class has a isNodeOf property value.<p>\r\n * \r\n * @return true if there is a isNodeOf property value.\r\n */\r\n boolean hasIsNodeOf();\r\n\r\n /**\r\n * Adds a isNodeOf property value.<p>\r\n * \r\n * @param newIsNodeOf the isNodeOf property value to be added\r\n */\r\n void addIsNodeOf(Subdomain newIsNodeOf);\r\n\r\n /**\r\n * Removes a isNodeOf property value.<p>\r\n * \r\n * @param oldIsNodeOf the isNodeOf property value to be removed.\r\n */\r\n void removeIsNodeOf(Subdomain oldIsNodeOf);\r\n\r\n\r\n /* ***************************************************\r\n * Property http://www.sifemontologies.com/ontologies/FiniteElementModel.owl#isVertexOf\r\n */\r\n \r\n /**\r\n * Gets all property values for the isVertexOf property.<p>\r\n * \r\n * @returns a collection of values for the isVertexOf property.\r\n */\r\n Collection<? extends Subdomain_group> getIsVertexOf();\r\n\r\n /**\r\n * Checks if the class has a isVertexOf property value.<p>\r\n * \r\n * @return true if there is a isVertexOf property value.\r\n */\r\n boolean hasIsVertexOf();\r\n\r\n /**\r\n * Adds a isVertexOf property value.<p>\r\n * \r\n * @param newIsVertexOf the isVertexOf property value to be added\r\n */\r\n void addIsVertexOf(Subdomain_group newIsVertexOf);\r\n\r\n /**\r\n * Removes a isVertexOf property value.<p>\r\n * \r\n * @param oldIsVertexOf the isVertexOf property value to be removed.\r\n */\r\n void removeIsVertexOf(Subdomain_group oldIsVertexOf);\r\n\r\n\r\n /* ***************************************************\r\n * Property http://www.sifemontologies.com/ontologies/FiniteElementModel.owl#hasNodeID\r\n */\r\n \r\n /**\r\n * Gets all property values for the hasNodeID property.<p>\r\n * \r\n * @returns a collection of values for the hasNodeID property.\r\n */\r\n Collection<? extends Integer> getHasNodeID();\r\n\r\n /**\r\n * Checks if the class has a hasNodeID property value.<p>\r\n * \r\n * @return true if there is a hasNodeID property value.\r\n */\r\n boolean hasHasNodeID();\r\n\r\n /**\r\n * Adds a hasNodeID property value.<p>\r\n * \r\n * @param newHasNodeID the hasNodeID property value to be added\r\n */\r\n void addHasNodeID(Integer newHasNodeID);\r\n\r\n /**\r\n * Removes a hasNodeID property value.<p>\r\n * \r\n * @param oldHasNodeID the hasNodeID property value to be removed.\r\n */\r\n void removeHasNodeID(Integer oldHasNodeID);\r\n\r\n\r\n\r\n /* ***************************************************\r\n * Property http://www.sifemontologies.com/ontologies/FiniteElementModel.owl#hasXCoordinate\r\n */\r\n \r\n /**\r\n * Gets all property values for the hasXCoordinate property.<p>\r\n * \r\n * @returns a collection of values for the hasXCoordinate property.\r\n */\r\n Collection<? extends Object> getHasXCoordinate();\r\n\r\n /**\r\n * Checks if the class has a hasXCoordinate property value.<p>\r\n * \r\n * @return true if there is a hasXCoordinate property value.\r\n */\r\n boolean hasHasXCoordinate();\r\n\r\n /**\r\n * Adds a hasXCoordinate property value.<p>\r\n * \r\n * @param newHasXCoordinate the hasXCoordinate property value to be added\r\n */\r\n void addHasXCoordinate(Object newHasXCoordinate);\r\n\r\n /**\r\n * Removes a hasXCoordinate property value.<p>\r\n * \r\n * @param oldHasXCoordinate the hasXCoordinate property value to be removed.\r\n */\r\n void removeHasXCoordinate(Object oldHasXCoordinate);\r\n\r\n\r\n\r\n /* ***************************************************\r\n * Property http://www.sifemontologies.com/ontologies/FiniteElementModel.owl#hasYCoordinate\r\n */\r\n \r\n /**\r\n * Gets all property values for the hasYCoordinate property.<p>\r\n * \r\n * @returns a collection of values for the hasYCoordinate property.\r\n */\r\n Collection<? extends Object> getHasYCoordinate();\r\n\r\n /**\r\n * Checks if the class has a hasYCoordinate property value.<p>\r\n * \r\n * @return true if there is a hasYCoordinate property value.\r\n */\r\n boolean hasHasYCoordinate();\r\n\r\n /**\r\n * Adds a hasYCoordinate property value.<p>\r\n * \r\n * @param newHasYCoordinate the hasYCoordinate property value to be added\r\n */\r\n void addHasYCoordinate(Object newHasYCoordinate);\r\n\r\n /**\r\n * Removes a hasYCoordinate property value.<p>\r\n * \r\n * @param oldHasYCoordinate the hasYCoordinate property value to be removed.\r\n */\r\n void removeHasYCoordinate(Object oldHasYCoordinate);\r\n\r\n\r\n\r\n /* ***************************************************\r\n * Property http://www.sifemontologies.com/ontologies/FiniteElementModel.owl#hasZCoordinate\r\n */\r\n \r\n /**\r\n * Gets all property values for the hasZCoordinate property.<p>\r\n * \r\n * @returns a collection of values for the hasZCoordinate property.\r\n */\r\n Collection<? extends Object> getHasZCoordinate();\r\n\r\n /**\r\n * Checks if the class has a hasZCoordinate property value.<p>\r\n * \r\n * @return true if there is a hasZCoordinate property value.\r\n */\r\n boolean hasHasZCoordinate();\r\n\r\n /**\r\n * Adds a hasZCoordinate property value.<p>\r\n * \r\n * @param newHasZCoordinate the hasZCoordinate property value to be added\r\n */\r\n void addHasZCoordinate(Object newHasZCoordinate);\r\n\r\n /**\r\n * Removes a hasZCoordinate property value.<p>\r\n * \r\n * @param oldHasZCoordinate the hasZCoordinate property value to be removed.\r\n */\r\n void removeHasZCoordinate(Object oldHasZCoordinate);\r\n\r\n\r\n\r\n /* ***************************************************\r\n * Property http://www.sifemontologies.com/ontologies/FiniteElementModel.owl#isCentralNode\r\n */\r\n \r\n /**\r\n * Gets all property values for the isCentralNode property.<p>\r\n * \r\n * @returns a collection of values for the isCentralNode property.\r\n */\r\n Collection<? extends Boolean> getIsCentralNode();\r\n\r\n /**\r\n * Checks if the class has a isCentralNode property value.<p>\r\n * \r\n * @return true if there is a isCentralNode property value.\r\n */\r\n boolean hasIsCentralNode();\r\n\r\n /**\r\n * Adds a isCentralNode property value.<p>\r\n * \r\n * @param newIsCentralNode the isCentralNode property value to be added\r\n */\r\n void addIsCentralNode(Boolean newIsCentralNode);\r\n\r\n /**\r\n * Removes a isCentralNode property value.<p>\r\n * \r\n * @param oldIsCentralNode the isCentralNode property value to be removed.\r\n */\r\n void removeIsCentralNode(Boolean oldIsCentralNode);\r\n\r\n\r\n\r\n /* ***************************************************\r\n * Property http://www.sifemontologies.com/ontologies/FiniteElementModel.owl#isMidNode\r\n */\r\n \r\n /**\r\n * Gets all property values for the isMidNode property.<p>\r\n * \r\n * @returns a collection of values for the isMidNode property.\r\n */\r\n Collection<? extends Boolean> getIsMidNode();\r\n\r\n /**\r\n * Checks if the class has a isMidNode property value.<p>\r\n * \r\n * @return true if there is a isMidNode property value.\r\n */\r\n boolean hasIsMidNode();\r\n\r\n /**\r\n * Adds a isMidNode property value.<p>\r\n * \r\n * @param newIsMidNode the isMidNode property value to be added\r\n */\r\n void addIsMidNode(Boolean newIsMidNode);\r\n\r\n /**\r\n * Removes a isMidNode property value.<p>\r\n * \r\n * @param oldIsMidNode the isMidNode property value to be removed.\r\n */\r\n void removeIsMidNode(Boolean oldIsMidNode);\r\n\r\n\r\n\r\n /* ***************************************************\r\n * Common interfaces\r\n */\r\n\r\n OWLNamedIndividual getOwlIndividual();\r\n\r\n OWLOntology getOwlOntology();\r\n\r\n void delete();\r\n\r\n}", "SparqlResultObject callSelectQuery(String name, Map<String, String> params);", "public interface QfShopMapper {\n ShopNode selectList();\n}", "@Override\n public R visit(GraphPatternNotTriples n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "List<Node> getNodes();", "NodeList getNodeList(String path)\n throws ProcessingException;", "public void test_ck_02() {\n OntModel vocabModel = ModelFactory.createOntologyModel();\n ObjectProperty p = vocabModel.createObjectProperty(\"p\");\n OntClass A = vocabModel.createClass(\"A\");\n \n OntModel workModel = ModelFactory.createOntologyModel();\n Individual sub = workModel.createIndividual(\"uri1\", A);\n Individual obj = workModel.createIndividual(\"uri2\", A);\n workModel.createStatement(sub, p, obj);\n }", "public static void main( String[] args ) {\n\n Model m = ModelFactory.createOntologyModel(OntModelSpec.OWL_DL_MEM_RDFS_INF);\n\n\n FileManager.get().readModel( m, owlFile );\n String myOntologyName = \"http://www.w3.org/2002/07/owl#\";\n String myOntologyNS = \"http://www.w3.org/2002/07/owl#\";\n////\n////\n// String rdfPrefix = \"PREFIX rdf: <\"+RDF.getURI()+\">\" ;\n// String myOntologyPrefix = \"PREFIX \"+myOntologyName+\": <\"+myOntologyNS+\">\" ;\n// String myOntologyPrefix1 = \"PREFIX \"+myOntologyName ;\n String myOntologyPrefix2 = \"prefix pizza: <http://www.w3.org/2002/07/owl#> \";\n//\n//\n//// String queryString = myOntologyPrefix + NL\n//// + rdfPrefix + NL +\n//// \"SELECT ?subject\" ;\n \n String queryString = rdfPrefix + myOntologyPrefix2 +\n// \t\t \"prefix pizza: <http://www.w3.org/2002/07/owl#> \"+ \n \t\t \"prefix rdfs: <\" + RDFS.getURI() + \"> \" +\n \t\t \"prefix owl: <\" + OWL.getURI() + \"> \" +\n// \t\t \"select ?o where {?s ?p ?o}\";\n \n//\t\t\t\t\t\t\"select ?s where {?s rdfs:label \"苹果\"@zh}\";\n \n// \"SELECT ?label WHERE { ?subject rdfs:label ?label }\" ;\n// \"SELECT DISTINCT ?predicate ?label WHERE { ?subject ?predicate ?object. ?predicate rdfs:label ?label .}\";\n// \"SELECT DISTINCT ?s WHERE {?s rdfs:label \\\"Italy\\\"@en}\" ;\n// \"SELECT DISTINCT ?s WHERE {?s rdfs:label \\\"苹果\\\"@zh}\" ;\n// \"SELECT DISTINCT ?s WHERE\" +\n// \"{?object rdfs:label \\\"水果\\\"@zh.\" +\n// \"?subject rdfs:subClassOf ?object.\" +\n// \"?subject rdfs:label ?s}\";\n //星号是转义字符,分号是转义字符\n\t\t\t\t\"SELECT DISTINCT ?e ?s WHERE {?entity a ?subject.?subject rdfs:subClassOf ?object.\"+\n \"?object rdfs:label \\\"富士苹果\\\"@zh.?entity rdfs:label ?e.?subject rdfs:label ?s}ORDER BY ?s\";\n \t\t\n\n \n \t\tcom.hp.hpl.jena.query.Query query = QueryFactory.create(queryString);\n \t\tQueryExecution qe = QueryExecutionFactory.create(query, m);\n \t\tcom.hp.hpl.jena.query.ResultSet results = qe.execSelect();\n\n \t\tResultSetFormatter.out(System.out, results, query);\n \t\tqe.close();\n\n// Query query = QueryFactory.create(queryString) ;\n\n query.serialize(new IndentedWriter(System.out,true)) ;\n System.out.println() ;\n\n\n\n QueryExecution qexec = QueryExecutionFactory.create(query, m) ;\n\n try {\n\n ResultSet rs = qexec.execSelect() ;\n\n\n for ( ; rs.hasNext() ; ){\n QuerySolution rb = rs.nextSolution() ;\n RDFNode y = rb.get(\"person\");\n System.out.print(\"name : \"+y+\"--- \");\n Resource z = (Resource) rb.getResource(\"person\");\n System.out.println(\"plus simplement \"+z.getLocalName());\n }\n }\n finally{\n qexec.close() ;\n }\n }", "protected StmtIterator getRelationIter(Resource resource, SKOSObjectProperty skosObjectProperty, SKOSConceptScheme conceptScheme, SKOSCollection skosCollection) {\n if (resource != null) {\n if (skosObjectProperty != null) {\n Property property = PropertyFactory.create(skosObjectProperty);\n StmtFilter csFilter = null;\n if (conceptScheme!=null) {\n Resource csRes = this.getJenaResource(conceptScheme);\n if (csRes != null) {\n Property inSchemeProp = PropertyFactory.inScheme;\n csFilter = new StmtObjectHasPropertyFilter(inSchemeProp, csRes);\n }\n else return null;\n }\n StmtFilter collFilter = null;\n if (skosCollection!=null) {\n Resource collRes = this.getJenaResource(skosCollection);\n if (collRes != null) {\n collFilter = new StmtObjectIsPropertyOfFilter(collRes, PropertyFactory.member);\n }\n else return null;\n }\n\n StmtFilter stmtFilter = null;\n\n if (csFilter != null) {\n if (collFilter != null) {\n stmtFilter = new AndStmtFilter(csFilter);\n ((AndStmtFilter)stmtFilter).add(collFilter);\n }\n else {\n stmtFilter = csFilter;\n }\n }\n else {\n if (collFilter != null) {\n stmtFilter = collFilter;\n }\n }\n\n Selector selector;\n if (stmtFilter != null) selector = new FilteredSelector(resource, property, (RDFNode)null, stmtFilter);\n else selector = new SimpleSelector(resource, property, (RDFNode)null);\n\n return this.model.listStatements(selector);\n }\n else throw new IllegalArgumentException(\"SKOSObjectProperty must not be null!\");\n }\n else return null;\n }", "NodeSet<F> getRoots(OWLClassExpression c, P p, R start, boolean direct);", "@Test\n public void testListWithNulls() {\n Node makeNull = Node.ROOT\n .withName(\"makeNull\")\n .withFunction(\"test/makeNull\")\n .withInputAdded(Port.floatPort(\"value\", 0.0));\n Node net = Node.NETWORK\n .withChildAdded(threeNumbers)\n .withChildAdded(makeNull)\n .connect(\"threeNumbers\", \"makeNull\", \"value\");\n assertResultsEqual(net, makeNull);\n }", "public LinkedList <AbsAttraction> filter(ISelect s){\r\n return new LinkedList <AbsAttraction>(); \r\n }", "java.util.List<entities.Torrent.NodeSearchResult>\n getResultsList();", "QueryElement addOrNotEmpty(String collectionProperty);", "@Override\n public R visit(VarOrTerm n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "@And(\"the number of children option is selected as none\")\r\n public void selectNoOfChildren(){\n }", "public abstract Collection<Node> getAllSuccessors();", "public abstract List<Patient> getAllPatientNode();", "public void test_sf_940570() {\n OntModel m = ModelFactory.createOntologyModel( OntModelSpec.OWL_MEM_RDFS_INF );\n OntClass C = m.createClass( NS + \"C\" );\n Resource a = m.createResource( NS + \"a\", C );\n \n TestUtil.assertIteratorValues( this, m.listIndividuals(), new Object[] {a} );\n \n OntModel dm = ModelFactory.createOntologyModel( OntModelSpec.DAML_MEM_RULE_INF );\n OntClass D = dm.createClass( NS + \"D\" );\n Resource b = dm.createResource( NS + \"b\", D );\n \n TestUtil.assertIteratorValues( this, dm.listIndividuals(), new Object[] {b} );\n }", "abstract public void showSelection(Node[] nodes) ;", "private static HashSet<String> simpleExecution(Query query, OntModel ontologie) {\n HashSet<String> propertySet = new HashSet<>();\n try (QueryExecution qexec = QueryExecutionFactory.create(query, ontologie)) {\n ResultSet results = qexec.execSelect();\n int i = 0;\n while (results.hasNext()) {\n propertySet.add(results.next().getResource(\"prop\").getURI());\n\n i++;\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n return propertySet;\n }", "public interface NodeList {\n\n /**\n * Getter for the number of nodes.\n *\n * @return the number of nodes in the list.\n */\n int getLength();\n\n /**\n * Getter method for a node on the specified position.\n *\n * @param index the index of the node to retrieve.\n * @return the {@link Node} on the specified position.\n */\n Node item(int index);\n\n}", "public ReactorResult<org.ontoware.rdf2go.model.node.Node> getAllPartOfSet_asNode_() {\r\n\t\treturn Base.getAll_as(this.model, this.getResource(), PARTOFSET, org.ontoware.rdf2go.model.node.Node.class);\r\n\t}", "List<SPerms> selectByExample(SPermsExample example);", "@Override\n\tpublic List selectList() {\n\t\treturn null;\n\t}", "@org.junit.Test\n public void constrCompelemNodeid1() {\n final XQuery query = new XQuery(\n \"for $x in <a/>, $y in element elem {$x} return exactly-one($y/a) is $x\",\n ctx);\n try {\n result = new QT3Result(query.value());\n } catch(final Throwable trw) {\n result = new QT3Result(trw);\n } finally {\n query.close();\n }\n test(\n assertBoolean(false)\n );\n }", "@Override public Graph<String> emptyInstance() {\n return new ConcreteVerticesGraph<String>();\n }", "@Test\n\tpublic void testAddLinkOkMultNtoNLinkedHashSet() {\n\t\t// configure collection properties of Location and ClosingPeriod\n\t\t// to use TreeSet as collection implementing class\n\t\t((TypePropertyCollection) (new Location()).getProperty(\"closedons\").getType())\n\t\t\t\t.setCollectionClass(LinkedHashSet.class);\n\t\t((TypePropertyCollection) (new ClosingPeriod()).getProperty(\"locations\").getType())\n\t\t\t\t.setCollectionClass(LinkedHashSet.class);\n\t\ttstNMAssociationInverse();\n\t}", "public List<NetworkNode> listNetworkNode();", "public abstract void select ( XmlInformation info );", "public NodeListImpl(final Collection<Node> collection) {\n super();\n nodeList = new ArrayList<>(collection);\n }", "public Collection<Node> getNodeList(){\r\n return nodesMap.values();\r\n }", "public Node() \r\n\t{\r\n\t\tincludedNode = new ArrayList<Node>();\r\n\t\tin = false; \r\n\t\tout = false;\r\n\t}", "public void emptySelectionLists() {\n\t\tArrayList selectionsCopy = new ArrayList();\n\t\tselectionsCopy.addAll(selections);\n\t\tIterator it = selectionsCopy.iterator();\n\t\twhile (it.hasNext()) {\n\t\t\tXsdNode node = (XsdNode) it.next();\n\t\t\tunselectNode(node);\n\t\t}\n\t\tlineNode = null;\n\t\telementFilters = new HashMap();\n\t}", "@Override\n\tpublic Graph<String> emptyInstance() {\n\t\treturn new ConcreteEdgesGraph();\n\t}", "Collection<? extends Subdomain> getIsNodeOf();", "public MyMultiset() {\n\t\tthis.set = new HashSet<Node>();\n\t}", "@Override\n\tpublic List selectList() {\n\t\t\n\t\t\n\t\t\n\t\treturn null;\n\t}", "@Override\n\tpublic List<DataDictionaryValueEntity> querySpecialPickUp() {\n\t\treturn null;\n\t}", "java.util.List<uk.ac.cam.acr31.features.javac.proto.GraphProtos.FeatureNode> \n getNodeList();", "public String getNodeValue ();", "void getNodes(List<Node> lNode, List<Node> lSelNode, List<Node> lExistNode, boolean blank) {\n\n switch (type()) {\n\n case FILTER:\n // get exists {} nodes\n // draft\n getExistNodes(getFilter().getExp(), lExistNode);\n break;\n\n case NODE:\n add(lNode, getNode(), blank);\n break;\n\n case EDGE:\n case PATH:\n case XPATH:\n case EVAL:\n for (int i = 0; i < nbNode(); i++) {\n Node node = getNode(i);\n add(lNode, node, blank);\n }\n break;\n\n case ACCEPT:\n //use case: join() check connection, need all variables\n add(lNode, getNode());\n break;\n\n case VALUES:\n for (Node var : getNodeList()) {\n add(lNode, var);\n }\n break;\n\n case MINUS:\n // second argument does not bind anything: skip it\n if (first() != null) {\n first().getNodes(lNode, lSelNode, lExistNode, blank);\n }\n break;\n\n case BIND:\n add(lSelNode, getNode());\n break;\n\n case QUERY:\n\n // use case: select * where { {select ?y fun() as ?var where {}} }\n // we want ?y & ?var for select *\t\t\t\n for (Exp ee : getQuery().getSelectFun()) {\n add(lSelNode, ee.getNode());\n }\n break;\n\n default:\n for (Exp ee : this) {\n ee.getNodes(lNode, lSelNode, lExistNode, blank);\n }\n }\n\n }", "public abstract List<Node> getChildNodes();", "@Override\n\tpublic String getCollection() {\n\t\treturn null;\n\t}", "private Nodes xPathQuery(String query)\r\n \t{\r\n \t\treturn document.query(query, context);\r\n \t}", "@Override\r\n\tpublic List<LabelArticle> selectAll() {\n\t\treturn null;\r\n\t}", "@Override\n public R visit(ArgList n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "@Override\n\tpublic NodeIterator search(String queryString) throws Exception {\n\t\treturn null;\n\t}", "public ClosableIterator<org.ontoware.rdf2go.model.node.Node> getAllPartOfSet_asNode() {\r\n\t\treturn Base.getAll_asNode(this.model, this.getResource(), PARTOFSET);\r\n\t}", "protected StmtIterator getRelationIter(Resource resource, SKOSObjectProperty skosObjectProperty, Collection<SKOSConceptScheme> conceptSchemes, Collection<SKOSCollection> skosCollections) {\n if (resource != null) {\n if (skosObjectProperty != null) {\n Property property = PropertyFactory.create(skosObjectProperty);\n StmtFilter csFilter = null;\n if (conceptSchemes!=null && !conceptSchemes.isEmpty()) {\n csFilter = new OrStmtFilter();\n for (SKOSConceptScheme conceptScheme: conceptSchemes) {\n Resource csRes = this.getJenaResource(conceptScheme);\n if (csRes != null) {\n Property inSchemeProp = PropertyFactory.inScheme;\n ((OrStmtFilter)csFilter).add(new StmtObjectHasPropertyFilter(inSchemeProp, csRes));\n }\n else return null;\n }\n }\n StmtFilter collFilter = null;\n if (skosCollections!=null && !skosCollections.isEmpty()) {\n collFilter = new OrStmtFilter();\n for (SKOSCollection collection: skosCollections) {\n Resource collRes = this.getJenaResource(collection);\n if (collRes != null) {\n ((OrStmtFilter)collFilter).add(new StmtObjectIsPropertyOfFilter(collRes, PropertyFactory.member));\n }\n else return null;\n }\n }\n\n StmtFilter stmtFilter = null;\n\n if (csFilter != null) {\n if (collFilter != null) {\n stmtFilter = new AndStmtFilter(csFilter);\n ((AndStmtFilter)stmtFilter).add(collFilter);\n }\n else {\n stmtFilter = csFilter;\n }\n }\n else {\n if (collFilter != null) {\n stmtFilter = collFilter;\n }\n }\n\n Selector selector;\n if (stmtFilter != null) selector = new FilteredSelector(resource, property, (RDFNode)null, stmtFilter);\n else selector = new SimpleSelector(resource, property, (RDFNode)null);\n\n return this.model.listStatements(selector);\n }\n else throw new IllegalArgumentException(\"SKOSObjectProperty must not be null!\");\n }\n else return null;\n }", "@Override\n public R visit(GraphNode n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "protected abstract Node[] getAllNodes();" ]
[ "0.5910771", "0.5883152", "0.58456194", "0.54372865", "0.52645427", "0.5232322", "0.5211149", "0.5194085", "0.50845325", "0.50834864", "0.5060521", "0.5056826", "0.4982826", "0.49734253", "0.4953459", "0.4939612", "0.4930455", "0.4928883", "0.49222317", "0.49094066", "0.49035534", "0.490006", "0.48994294", "0.4889535", "0.48858634", "0.48801604", "0.4874268", "0.48628923", "0.48605004", "0.48404506", "0.48221377", "0.48153841", "0.4810096", "0.47984537", "0.4789821", "0.47619772", "0.47614068", "0.47337958", "0.47289908", "0.47206578", "0.4710298", "0.4709584", "0.4688402", "0.4684707", "0.46839058", "0.46804672", "0.46717674", "0.46558854", "0.4649206", "0.46457446", "0.46400127", "0.46324453", "0.46280757", "0.46187624", "0.4613744", "0.4604438", "0.4603867", "0.4600732", "0.45909062", "0.45862982", "0.45762435", "0.45686936", "0.45530525", "0.4550425", "0.45450258", "0.45437694", "0.45415944", "0.45323423", "0.45292535", "0.45283285", "0.45271912", "0.45258167", "0.4523651", "0.4519123", "0.45137727", "0.45128816", "0.4509165", "0.45091632", "0.4508892", "0.45014918", "0.44996795", "0.44963667", "0.44854516", "0.44791645", "0.4477828", "0.4476827", "0.4475322", "0.44709092", "0.44663468", "0.44610286", "0.4459656", "0.44408", "0.4434318", "0.4432927", "0.44286823", "0.44186053", "0.4414256", "0.44138953", "0.44119424", "0.44064733" ]
0.49746278
13
nodeToken > "[" propertyListNotEmpty > PropertyListNotEmpty() nodeToken1 > "]"
@Override public R visit(BlankNodePropertyList n, A argu) { R _ret = null; n.nodeToken.accept(this, argu); n.propertyListNotEmpty.accept(this, argu); n.nodeToken1.accept(this, argu); return _ret; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public R visit(PropertyListNotEmpty n, A argu) {\n R _ret = null;\n n.verb.accept(this, argu);\n n.objectList.accept(this, argu);\n n.nodeListOptional.accept(this, argu);\n return _ret;\n }", "PropertyArray(PropertyTokener x) throws PropertyException {\n this();\n if (x.nextClean() != '[') {\n throw x.syntaxError(\"A JSONArray text must start with '['\");\n }\n\n char nextChar = x.nextClean();\n if (nextChar == 0) {\n // array is unclosed. No ']' found, instead EOF\n throw x.syntaxError(\"Expected a ',' or ']'\");\n }\n if (nextChar != ']') {\n x.back();\n for (; ; ) {\n if (x.nextClean() == ',') {\n x.back();\n this.myArrayList.add(PropertyObject.NULL);\n } else {\n x.back();\n this.myArrayList.add(x.nextValue());\n }\n switch (x.nextClean()) {\n case 0:\n // array is unclosed. No ']' found, instead EOF\n throw x.syntaxError(\"Expected a ',' or ']'\");\n case ',':\n nextChar = x.nextClean();\n if (nextChar == 0) {\n // array is unclosed. No ']' found, instead EOF\n throw x.syntaxError(\"Expected a ',' or ']'\");\n }\n if (nextChar == ']') {\n return;\n }\n x.back();\n break;\n case ']':\n return;\n default:\n throw x.syntaxError(\"Expected a ',' or ']'\");\n }\n }\n }\n }", "@Test(timeout = 4000)\n public void test023() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"Z&9#+FDLX&o2GJ-\");\n boolean boolean0 = xPathLexer0.isIdentifierStartChar(']');\n assertFalse(boolean0);\n }", "@Test(expectedExceptions = ParseException.class)\n\tpublic void testListLiteralMissingFirstElement() throws ParseException {\n\t\tparser(\"<%=[,]%>\").block();\n\t}", "@Test\n public void testWithNonEmptyList() throws org.nfunk.jep.ParseException\n {\n Stack<Object> parameters = CollectionsUtils.newParametersStack(Arrays.asList(\"test\"));\n function.run(parameters);\n assertEquals(FALSE, parameters.pop());\n }", "@Test(expectedExceptions = ParseException.class)\n\tpublic void testListLiteralMissingSecondElement() throws ParseException {\n\t\tparser(\"<%=[a,]%>\").block();\n\t}", "@Test(timeout = 4000)\n public void test022() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"[ (\");\n xPathLexer0.setPreviousToken((Token) null);\n assertEquals(\"[ (\", xPathLexer0.getXPath());\n }", "QueryElement addNotEmpty(String collectionProperty);", "@Test(timeout = 4000)\n public void test026() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer();\n boolean boolean0 = xPathLexer0.isIdentifierChar('}');\n assertFalse(boolean0);\n }", "public boolean isEmptyNestedClauses ();", "@Test(timeout = 4000)\n public void test110() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"]]M7v~P|3Iosxo9ON=\");\n Token token0 = xPathLexer0.nextToken();\n assertEquals(\"]\", token0.getTokenText());\n assertEquals(4, token0.getTokenType());\n }", "@Test(timeout = 4000)\n public void test075() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\") (\");\n Token token0 = xPathLexer0.equals();\n xPathLexer0.setPreviousToken(token0);\n assertEquals(21, token0.getTokenType());\n assertEquals(\")\", token0.getTokenText());\n \n Token token1 = xPathLexer0.identifierOrOperatorName();\n assertEquals(15, token1.getTokenType());\n assertEquals(\"\", token1.getTokenText());\n }", "@Test(timeout = 4000)\n public void test061() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\") (\");\n Token token0 = xPathLexer0.whitespace();\n assertEquals(\"\", token0.getTokenText());\n assertEquals((-2), token0.getTokenType());\n }", "@Test\n public void emptyElementsInPropertyFile() throws Exception {\n String output = \"\";\n\n StmtIterator msIter = propertyOutput.listStatements();\n while (msIter.hasNext()) {\n Statement msStmt = msIter.nextStatement();\n if (msStmt.getSubject().toString().equals(\"\") ||\n msStmt.getPredicate().toString().equals(\"\") ||\n msStmt.getObject().toString().equals(\"\") ||\n msStmt.getSubject().toString().equals(\"urn:\") ||\n msStmt.getPredicate().toString().equals(\"urn:\") ||\n msStmt.getObject().toString().equals(\"urn:\")\n ) {\n output += msStmt.getSubject() + \" \" + msStmt.getPredicate().toString() + \" \" + msStmt.getObject().toString() + \" .\\n\";\n }\n }\n // Output assertion with message of results\n if (!output.equals(\"\"))\n assertTrue(\"\\nThe following triples in \" + propertyOutputFileName + \" have an empty element:\\n\" + output\n , false);\n else\n assertTrue(true);\n }", "@Test\n public void testWithEmptyList() throws org.nfunk.jep.ParseException\n {\n Stack<Object> parameters = CollectionsUtils.newParametersStack(new ArrayList<String>());\n function.run(parameters);\n assertEquals(TRUE, parameters.pop());\n }", "@Test(timeout = 4000)\n public void test153() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\") (\");\n Token token0 = xPathLexer0.nextToken();\n assertEquals(\")\", token0.getTokenText());\n assertEquals(2, token0.getTokenType());\n }", "@Test(timeout = 4000)\n public void test133() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"P@,DtvglU*(KV:16h\");\n Token token0 = xPathLexer0.leftParen();\n assertEquals(1, token0.getTokenType());\n assertEquals(\"P\", token0.getTokenText());\n \n Token token1 = xPathLexer0.nextToken();\n assertEquals(\"@\", token1.getTokenText());\n assertEquals(16, token1.getTokenType());\n }", "@Override\n\tpublic void visit(ValueListExpression arg0) {\n\t\t\n\t}", "boolean hasProperty0();", "static public Vector getPropertyValues (Properties props, String propName)\n{\n String propertyDelimiterName = \"property.token.delimiter\";\n String delimiter = props.getProperty (propertyDelimiterName, \"::\");\n\n String listStartTokenName = \"list.startToken\";\n String listStartToken = props.getProperty (listStartTokenName, \"(\");\n\n String listEndTokenName = \"list.endToken\";\n String listEndToken = props.getProperty (listEndTokenName, \")\");\n\n Vector result = new Vector ();\n String propString = props.getProperty (propName);\n if (propString == null)\n return result;\n String propStringTrimmed = propString.trim ();\n String [] tokens = Misc.parseList (propStringTrimmed, listStartToken, listEndToken, delimiter);\n\n for (int i=0; i < tokens.length; i++)\n result.add (tokens [i]);\n\n return result;\n\n}", "@Test(timeout = 4000)\n public void test074() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\") (\");\n Token token0 = xPathLexer0.notEquals();\n xPathLexer0.setPreviousToken(token0);\n assertEquals(\") \", token0.getTokenText());\n assertEquals(22, token0.getTokenType());\n \n Token token1 = xPathLexer0.identifierOrOperatorName();\n assertEquals(15, token1.getTokenType());\n assertEquals(\"\", token1.getTokenText());\n }", "@Test\n public void allowedEmptyLeaf() throws Exception {\n Query query = Query.parse(\"/allow-empty-leaf\");\n doAllowedEmptyTest(query);\n }", "@Test(timeout = 4000)\n public void test068() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"Y44o{5$K\");\n xPathLexer0.leftParen();\n xPathLexer0.nextToken();\n Token token0 = xPathLexer0.operatorName();\n assertNull(token0);\n }", "@Test\n\tpublic void testExpressionList() throws ParseException {\n\t\tList<Expression> list = langParser(\"\").expressionList();\n\t\tassertEquals(list.size(), 0);\n\t\tlist = langParser(\"a\").expressionList();\n\t\tassertEquals(list.size(), 1);\n\t\tlist = langParser(\"a, b\").expressionList();\n\t\tassertEquals(list.size(), 2);\n\t}", "QueryElement addEmpty(String collectionProperty);", "@Test\n \tpublic void whereClauseForNodeIsToken() {\n \t\tnode23.setToken(true);\n \t\tcheckWhereCondition(\"_node23.is_token IS TRUE\");\n \t}", "QueryElement addOrEmpty(String collectionProperty);", "@Test(timeout = 4000)\n public void test114() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\":Y[~gy\");\n Token token0 = xPathLexer0.leftParen();\n assertEquals(1, token0.getTokenType());\n assertEquals(\":\", token0.getTokenText());\n \n Token token1 = xPathLexer0.nextToken();\n assertEquals(15, token1.getTokenType());\n assertEquals(\"Y\", token1.getTokenText());\n }", "@Test public void onePredicate() {\n query(\"//ul/li['']\", \"\");\n query(\"//ul/li['x']\", LI1 + '\\n' + LI2);\n query(\"//ul/li[<a b='{\" + _RANDOM_INTEGER.args() + \" }'/>]\", LI1 + '\\n' + LI2);\n\n query(\"//ul/li[0]\", \"\");\n query(\"//ul/li[1]\", LI1);\n query(\"//ul/li[2]\", LI2);\n query(\"//ul/li[3]\", \"\");\n query(\"//ul/li[last()]\", LI2);\n }", "@Test(timeout = 4000)\n public void test146() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"(2><\");\n Token token0 = xPathLexer0.leftParen();\n assertEquals(\"(\", token0.getTokenText());\n assertEquals(1, token0.getTokenType());\n \n Token token1 = xPathLexer0.nextToken();\n assertEquals(\"2\", token1.getTokenText());\n assertEquals(30, token1.getTokenType());\n }", "@Test(timeout = 4000)\n public void test001() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"hN!SM~8ux(wB\");\n xPathLexer0.dollar();\n xPathLexer0.not();\n xPathLexer0.nextToken();\n xPathLexer0.leftParen();\n xPathLexer0.whitespace();\n xPathLexer0.plus();\n Token token0 = xPathLexer0.or();\n assertNull(token0);\n }", "@Test(timeout = 4000)\n public void test004() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"d>%NV0\");\n Token token0 = xPathLexer0.operatorName();\n assertNull(token0);\n }", "@Test\r\n @ConditionalIgnore(condition = IgnoreReported.class)\r\n public void testListPropertyChangeOnSetEmptyToEmpty() {\r\n ListProperty listProperty = new SimpleListProperty(createObservableList(false));\r\n ListChangeReport report = new ListChangeReport(listProperty);\r\n listProperty.set(createObservableList(false));\r\n Change c = report.getLastChange();\r\n while(c.next()) {\r\n boolean type = c.wasAdded() || c.wasRemoved() || c.wasPermutated() || c.wasUpdated();\r\n assertTrue(\"at least one of the change types must be true\", type);\r\n }\r\n }", "@Test(timeout = 4000)\n public void test164() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer();\n Token token0 = xPathLexer0.leftBracket();\n assertEquals(3, token0.getTokenType());\n }", "@Test(timeout = 4000)\n public void test011() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\") (\");\n String string0 = xPathLexer0.getXPath();\n assertEquals(\") (\", string0);\n }", "QueryElement addOrNotEmpty(String collectionProperty);", "private boolean isParameterList() throws IOException\n\t{\n\t\tboolean isValid = false;\n\t\t\n\t\tif(isParameter())\n\t\t{\n\t\t\tif(theNextToken.TokenType == TokenType.COMMA)\n\t\t\t{\n\t\t\t\tupdateToken();\n\t\t\t\tupdateToken();\n\t\t\t\t\n\t\t\t\tif(isParameterList())\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println(\"Parameter list!\");\n\t\t\t\t\tisValid = true;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tSystem.out.println(\"Parameter list!\");\n\t\t\t\tisValid = true;\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn isValid;\n\t}", "@Test(timeout = 4000)\n public void test135() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"d>%NV0\");\n Token token0 = xPathLexer0.leftParen();\n assertEquals(\"d\", token0.getTokenText());\n assertEquals(1, token0.getTokenType());\n \n Token token1 = xPathLexer0.nextToken();\n assertEquals(\">\", token1.getTokenText());\n assertEquals(9, token1.getTokenType());\n \n Token token2 = xPathLexer0.identifierOrOperatorName();\n assertEquals(15, token2.getTokenType());\n assertEquals(\"\", token2.getTokenText());\n }", "@Test\n\tpublic void testListLiteral() throws ParseException {\n\t\tListLiteral listLiteral = langParser(\"[]\").listLiteral();\n\t\tassertEquals(listLiteral.getElements().size(), 0);\n\t\tlistLiteral = langParser(\"[101,a,'b']\").listLiteral();\n\t\tassertEquals(listLiteral.getElements().size(), 3);\n\t\tassertEquals(listLiteral.getElements().get(0).getClass(), LongLiteral.class);\n\t\tassertEquals(((LongLiteral) listLiteral.getElements().get(0)).longValue(), 101L);\n\t\tassertEquals(listLiteral.getElements().get(1).getClass(), Identifier.class);\n\t\tassertEquals(((Identifier) listLiteral.getElements().get(1)).getName(), \"a\");\n\t\tassertEquals(listLiteral.getElements().get(2).getClass(), StringLiteral.class);\n\t\tassertEquals(((StringLiteral) listLiteral.getElements().get(2)).getValue(), \"b\");\n\t}", "@Test\r\n @ConditionalIgnore(condition = IgnoreReported.class)\r\n public void testListPropertyChangeOnSetEmptyToNull() {\r\n ListProperty listProperty = new SimpleListProperty();\r\n ListChangeReport report = new ListChangeReport(listProperty);\r\n listProperty.set(createObservableList(false));\r\n Change c = report.getLastChange();\r\n while(c.next()) {\r\n boolean type = c.wasAdded() || c.wasRemoved() || c.wasPermutated() || c.wasUpdated();\r\n assertTrue(\"at least one of the change types must be true\", type);\r\n }\r\n }", "@Test(timeout = 4000)\n public void test066() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"d>%NV0\");\n xPathLexer0.leftParen();\n Token token0 = xPathLexer0.div();\n assertNull(token0);\n }", "@Test(timeout = 4000)\n public void test088() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"<y\");\n Token token0 = xPathLexer0.leftParen();\n assertEquals(\"<\", token0.getTokenText());\n assertEquals(1, token0.getTokenType());\n \n Token token1 = xPathLexer0.nextToken();\n assertEquals(\"y\", token1.getTokenText());\n assertEquals(15, token1.getTokenType());\n }", "static public boolean isList (String listString, String startToken, String endToken,\n String delimiter)\n{\n String s = listString.trim ();\n Vector list = new Vector ();\n\n if (s.startsWith (startToken) && s.endsWith (endToken)) \n return true;\n else\n return false;\n\n\n}", "public void testEmptyMultiPropFind() throws Exception\n {\n String content = TestUtils.getFileContent();\n String file = TestUtils.getFileName();\n\n Node node =\n TestUtils.addContent(session, file, new ByteArrayInputStream(content.getBytes()), WEBDAV_NT_FILE,\n WEBDAV_NT_RESOURCE, CONTENT_TYPE);\n // set empty multi-valued property\n node.getNode(\"jcr:content\").setProperty(WEBDAV_TEST_PROPERTY, new String[]{});\n session.save();\n\n MultivaluedMap<String, String> headers = new MultivaluedMapImpl();\n headers.add(HttpHeaders.CONTENT_TYPE, CONTENT_TYPE);\n\n ContainerResponse responseFind =\n service(WebDAVMethods.PROPFIND, getPathWS() + file, \"\", headers, multiPropFindXML.getBytes());\n assertEquals(HTTPStatus.MULTISTATUS, responseFind.getStatus());\n ByteArrayOutputStream outputStream = new ByteArrayOutputStream();\n PropFindResponseEntity entity = (PropFindResponseEntity)responseFind.getEntity();\n entity.write(outputStream);\n String find = outputStream.toString();\n assertTrue(\"Response should contain requested property element.\", find.contains(WEBDAV_TEST_PROPERTY));\n }", "@Override\n public R visit(PropertyList n, A argu) {\n R _ret = null;\n n.nodeOptional.accept(this, argu);\n return _ret;\n }", "protected boolean readMoreListElements() throws java.io.IOException {\n char c = readCharWord();\n if (c=='}') {\n next();\n return false;\n }\n if (c=='*') {\n next();\n return true;\n }\n throw error();\n }", "@Test(timeout = 4000)\n public void test159() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"g\\\"K@1\");\n Token token0 = xPathLexer0.leftParen();\n assertEquals(\"g\", token0.getTokenText());\n assertEquals(1, token0.getTokenType());\n \n Token token1 = xPathLexer0.nextToken();\n assertEquals((-1), token1.getTokenType());\n }", "@Test(timeout = 4000)\n public void test149() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"m6l-dKX`qghFq8(,{\");\n Token token0 = xPathLexer0.rightParen();\n assertEquals(2, token0.getTokenType());\n assertEquals(\"m\", token0.getTokenText());\n \n Token token1 = xPathLexer0.notEquals();\n assertEquals(\"6l\", token1.getTokenText());\n assertEquals(22, token1.getTokenType());\n \n Token token2 = xPathLexer0.nextToken();\n assertEquals(\"-\", token2.getTokenText());\n assertEquals(6, token2.getTokenType());\n }", "public interface QuotedL1Node {\n\n}", "@Test(timeout = 4000)\n public void test116() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"LW>$p??\");\n Token token0 = xPathLexer0.leftParen();\n assertEquals(\"L\", token0.getTokenText());\n assertEquals(1, token0.getTokenType());\n \n Token token1 = xPathLexer0.nextToken();\n assertEquals(\"W\", token1.getTokenText());\n assertEquals(15, token1.getTokenType());\n }", "@Test(timeout = 4000)\n public void test096() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"ml'}{GbV%Y&X\");\n Token token0 = xPathLexer0.leftParen();\n assertEquals(1, token0.getTokenType());\n assertEquals(\"m\", token0.getTokenText());\n \n Token token1 = xPathLexer0.nextToken();\n assertEquals(\"l\", token1.getTokenText());\n assertEquals(15, token1.getTokenType());\n }", "@Test(timeout = 4000)\n public void test084() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"(xA>7o;9b=;e*Y(m\");\n Token token0 = xPathLexer0.rightParen();\n xPathLexer0.setPreviousToken(token0);\n Token token1 = xPathLexer0.identifierOrOperatorName();\n assertNull(token1);\n }", "@Test(timeout = 4000)\n public void test060() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer();\n Token token0 = xPathLexer0.relationalOperator();\n assertNull(token0);\n }", "@Test\n public void testCombinedConfigurationListNodes()\n throws ConfigurationException\n {\n factory.setFile(INIT_FILE);\n CombinedConfiguration cc = factory.getConfiguration(true);\n Set<String> listNodes = cc.getNodeCombiner().getListNodes();\n assertEquals(\"Wrong number of list nodes\", 2, listNodes.size());\n assertTrue(\"table node not a list node\", listNodes.contains(\"table\"));\n assertTrue(\"list node not a list node\", listNodes.contains(\"list\"));\n\n CombinedConfiguration cca = (CombinedConfiguration) cc\n .getConfiguration(DefaultConfigurationBuilder.ADDITIONAL_NAME);\n listNodes = cca.getNodeCombiner().getListNodes();\n assertTrue(\"Found list nodes for additional combiner\", listNodes\n .isEmpty());\n }", "@Test(timeout = 4000)\n public void test161() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\") T/\");\n Token token0 = xPathLexer0.leftParen();\n assertEquals(1, token0.getTokenType());\n assertEquals(\")\", token0.getTokenText());\n \n Token token1 = xPathLexer0.nextToken();\n assertEquals(15, token1.getTokenType());\n assertEquals(\"T\", token1.getTokenText());\n }", "public boolean isEmptyStepList(){ return this.step==null&&this.rest==null;}", "public static UnaryExpression isNotEmpty(String propertyName) {\n return new UnaryExpression(Operator.NOT_EMPTY, propertyName);\n }", "boolean hasProperty2();", "@Test(timeout = 4000)\n public void test132() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"3APV;W&5C\\\"!eSgJk*X\");\n Token token0 = xPathLexer0.leftParen();\n assertEquals(1, token0.getTokenType());\n assertEquals(\"3\", token0.getTokenText());\n \n Token token1 = xPathLexer0.nextToken();\n assertEquals(\"APV\", token1.getTokenText());\n assertEquals(15, token1.getTokenType());\n }", "@Test(timeout = 4000)\n public void test065() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer();\n Token token0 = xPathLexer0.and();\n assertNull(token0);\n }", "@Test(timeout = 4000)\n public void test112() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"ji{:[5xw96\");\n Token token0 = xPathLexer0.rightParen();\n assertEquals(2, token0.getTokenType());\n assertEquals(\"j\", token0.getTokenText());\n \n Token token1 = xPathLexer0.dollar();\n assertEquals(26, token1.getTokenType());\n assertEquals(\"i\", token1.getTokenText());\n \n Token token2 = xPathLexer0.notEquals();\n assertEquals(\"{:\", token2.getTokenText());\n assertEquals(22, token2.getTokenType());\n \n Token token3 = xPathLexer0.nextToken();\n assertEquals(3, token3.getTokenType());\n assertEquals(\"[\", token3.getTokenText());\n \n Token token4 = xPathLexer0.identifierOrOperatorName();\n assertEquals(15, token4.getTokenType());\n assertEquals(\"5xw96\", token4.getTokenText());\n }", "private boolean isNotEmptyAndNotNull(final Node node)\r\n {\r\n if (\"null\".equals(node.getNodeValue()))\r\n {\r\n return false;\r\n }\r\n if (node.getNodeValue().trim().isEmpty())\r\n {\r\n return false;\r\n }\r\n return true;\r\n }", "@Test(timeout = 4000)\n public void test085() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"com.werken.saxpath.XPathLexer\");\n xPathLexer0.setXPath(\"[ (2) (c)\");\n Token token0 = xPathLexer0.notEquals();\n assertEquals(22, token0.getTokenType());\n assertEquals(\"[ \", token0.getTokenText());\n \n Token token1 = xPathLexer0.nextToken();\n assertEquals(\"(\", token1.getTokenText());\n \n Token token2 = xPathLexer0.identifierOrOperatorName();\n assertNotNull(token2);\n assertEquals(15, token2.getTokenType());\n assertEquals(\"2\", token2.getTokenText());\n }", "@Override\n\tpublic Object visit(ASTCondEmpty node, Object data) {\n\t\tSystem.out.print(\"empty (\");\n\t\tnode.jjtGetChild(0).jjtAccept(this, data);\n\t\tSystem.out.print(\")\");\n\t\treturn null;\n\t}", "@Test(timeout = 4000)\n public void test101() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"qgS3&9T,:6UK}hF\");\n Token token0 = xPathLexer0.leftParen();\n assertEquals(\"q\", token0.getTokenText());\n assertEquals(1, token0.getTokenType());\n \n Token token1 = xPathLexer0.nextToken();\n assertEquals(\"gS3\", token1.getTokenText());\n assertEquals(15, token1.getTokenType());\n }", "public boolean supportsEmptyInList() {\n \t\treturn true;\n \t}", "public static void parseStList() {\n if (currToken.tokenType == Token.END) {\n \n return;\n } //First of <st list> : IF, ID \n else if (currToken.tokenType == Token.IF || currToken.tokenType == Token.ID) {\n //TODO expected either if or id\n parseNeStList();\n sb.append(\";\\n\");\n \n }\n \n else {\n //Empty st list\n }\n \n }", "@Test(timeout = 4000)\n public void test076() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"5!\");\n Token token0 = xPathLexer0.star();\n xPathLexer0.setPreviousToken(token0);\n assertEquals(20, token0.getTokenType());\n assertEquals(\"5\", token0.getTokenText());\n \n Token token1 = xPathLexer0.identifierOrOperatorName();\n assertEquals(15, token1.getTokenType());\n assertEquals(\"\", token1.getTokenText());\n }", "@Test(expected = IllegalArgumentException.class)\n public void testGetPropertyValueSetEmptyPropertyName1(){\n List<User> list = toList(new User(2L), new User(5L), new User(5L));\n CollectionsUtil.getPropertyValueSet(list, \" \", Integer.class);\n }", "public void test_lt_01() {\n OntModel m = ModelFactory.createOntologyModel();\n \n DatatypeProperty p = m.createDatatypeProperty(NS + \"p\");\n OntClass c = m.createClass(NS + \"A\");\n \n Individual i = m.createIndividual(NS + \"i\", c);\n i.addProperty(p, \"testData\");\n \n int count = 0;\n \n for (Iterator j = i.listPropertyValues(p); j.hasNext();) {\n //System.err.println(\"Individual i has p value: \" + j.next());\n j.next();\n count++;\n }\n \n assertEquals(\"i should have one property\", 1, count);\n }", "boolean hasProperty1();", "@Test(timeout = 4000)\n public void test007() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"!9'|l*JR\");\n Token token0 = xPathLexer0.nextToken();\n assertEquals(23, token0.getTokenType());\n assertEquals(\"!\", token0.getTokenText());\n }", "@Test(timeout = 4000)\n public void test121() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"#OPh7\");\n Token token0 = xPathLexer0.not();\n assertEquals(\"#\", token0.getTokenText());\n assertEquals(23, token0.getTokenType());\n \n Token token1 = xPathLexer0.nextToken();\n assertEquals(15, token1.getTokenType());\n assertEquals(\"OPh7\", token1.getTokenText());\n }", "@Test(timeout = 4000)\n public void test000() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"oofT'b.HnXtsd.\");\n Token token0 = xPathLexer0.or();\n assertNull(token0);\n }", "private static boolean isListProperty(String prop) {\n prop = prop.intern();\n for (int i = 0; i < listProperties.length; i++) {\n if (prop == listProperties[i]) {\n return true;\n }\n }\n return false;\n }", "public void testCreateEmptyArray() {\n System.out.println(\"createEmptyArray\"); // NOI18N\n \n TypeID componentType = new TypeID(TypeID.Kind.COMPONENT,\"Root\"); // NOI18N\n \n PropertyValue result = PropertyValue.createEmptyArray(componentType);\n List<PropertyValue> expResult = new ArrayList<PropertyValue> (0);\n \n assertEquals(expResult, result.getArray());\n }", "@Test(timeout = 4000)\n public void test119() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"gQFm^#}*F\");\n Token token0 = xPathLexer0.leftParen();\n assertEquals(\"g\", token0.getTokenText());\n assertEquals(1, token0.getTokenType());\n \n Token token1 = xPathLexer0.nextToken();\n assertEquals(\"QFm\", token1.getTokenText());\n assertEquals(15, token1.getTokenType());\n }", "boolean hasFirstToken();", "@Test(timeout = 4000)\n public void test059() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"<= \");\n Token token0 = xPathLexer0.relationalOperator();\n assertEquals(8, token0.getTokenType());\n assertNotNull(token0);\n assertEquals(\"<=\", token0.getTokenText());\n }", "@Test(timeout = 4000)\n public void test124() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"Z uKBSX,^\");\n Token token0 = xPathLexer0.rightParen();\n assertEquals(\"Z\", token0.getTokenText());\n assertEquals(2, token0.getTokenType());\n \n Token token1 = xPathLexer0.notEquals();\n assertEquals(22, token1.getTokenType());\n assertEquals(\" u\", token1.getTokenText());\n \n Token token2 = xPathLexer0.nextToken();\n assertEquals(\"KBSX\", token2.getTokenText());\n assertEquals(15, token2.getTokenType());\n }", "@Test(timeout = 4000)\n public void test141() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"z8I-qq3BBV%.C. *\");\n Token token0 = xPathLexer0.leftParen();\n assertEquals(1, token0.getTokenType());\n assertEquals(\"z\", token0.getTokenText());\n \n Token token1 = xPathLexer0.nextToken();\n assertEquals(30, token1.getTokenType());\n assertEquals(\"8\", token1.getTokenText());\n }", "@Test(timeout = 4000)\n public void test008() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"](\");\n boolean boolean0 = xPathLexer0.hasMoreChars();\n assertTrue(boolean0);\n }", "@Test(timeout = 4000)\n public void test081() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"fEp<jmD0Y<2\");\n Token token0 = xPathLexer0.rightParen();\n assertEquals(\"f\", token0.getTokenText());\n assertEquals(2, token0.getTokenType());\n \n Token token1 = xPathLexer0.notEquals();\n assertEquals(22, token1.getTokenType());\n assertEquals(\"Ep\", token1.getTokenText());\n \n Token token2 = xPathLexer0.nextToken();\n assertEquals(\"<\", token2.getTokenText());\n assertEquals(7, token2.getTokenType());\n \n Token token3 = xPathLexer0.identifierOrOperatorName();\n assertEquals(15, token3.getTokenType());\n assertEquals(\"jmD0Y\", token3.getTokenText());\n }", "private boolean processPhysicalPropertyToken(final ParseToken token) {\n if (physicBlock == null) {\n physicBlock = new OrbitPhysicalProperties(metadata.getEpochT0());\n }\n anticipateNext(this::processDataSubStructureToken);\n try {\n return token.getName() != null &&\n OrbitPhysicalPropertiesKey.valueOf(token.getName()).process(token, context, physicBlock);\n } catch (IllegalArgumentException iae) {\n // token has not been recognized\n return false;\n }\n }", "@Test\r\n public void testListProperty() {\r\n ObservableList<String> list = createObservableList(true);\r\n ListProperty<String> property = new SimpleListProperty<>(list);\r\n ChangeReport report = new ChangeReport(property);\r\n property.set(createObservableList(true));\r\n assertEquals(\"listProperty must fire on not-same list\", 1, report.getEventCount());\r\n }", "@Test(timeout = 4000)\n public void test111() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"RHKY[MJwf75K\\\"K\");\n Token token0 = xPathLexer0.nextToken();\n assertEquals(\"RHKY\", token0.getTokenText());\n assertEquals(15, token0.getTokenType());\n }", "@Test(timeout = 4000)\n public void test069() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer();\n xPathLexer0.nextToken();\n xPathLexer0.setXPath(\"y]jad[mR3w=N\");\n xPathLexer0.leftParen();\n xPathLexer0.doubleColon();\n xPathLexer0.pipe();\n xPathLexer0.consume();\n xPathLexer0.minus();\n Token token0 = xPathLexer0.identifierOrOperatorName();\n assertNull(token0);\n }", "@Test(timeout = 4000)\n public void test093() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"com.werken.saxpath.XPathLexer\");\n xPathLexer0.setXPath(\"r1p%9otIqOp|?D[\");\n Token token0 = xPathLexer0.notEquals();\n assertEquals(22, token0.getTokenType());\n assertEquals(\"r1\", token0.getTokenText());\n \n Token token1 = xPathLexer0.nextToken();\n assertEquals(\"p\", token1.getTokenText());\n assertEquals(15, token1.getTokenType());\n }", "@Test(timeout = 4000)\n public void test117() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"_V)2V93#c=~\\\")I\");\n Token token0 = xPathLexer0.leftParen();\n assertEquals(1, token0.getTokenType());\n assertEquals(\"_\", token0.getTokenText());\n \n Token token1 = xPathLexer0.nextToken();\n assertEquals(\"V\", token1.getTokenText());\n assertEquals(15, token1.getTokenType());\n }", "@Test(timeout = 4000)\n public void test11() throws Throwable {\n SimpleNode simpleNode0 = new SimpleNode(73);\n simpleNode0.setIdentifier(\"`n\\tw8u)p!WbK\");\n StringWriter stringWriter0 = new StringWriter(51);\n FileSystemHandling.appendStringToFile((EvoSuiteFile) null, \"<=\");\n FileSystemHandling.appendStringToFile((EvoSuiteFile) null, (String) null);\n FileSystemHandling.appendLineToFile((EvoSuiteFile) null, \">=\");\n FileSystemHandling.createFolder((EvoSuiteFile) null);\n FileSystemHandling.setPermissions((EvoSuiteFile) null, true, false, false);\n simpleNode0.setIdentifier(\"]\\\"\");\n simpleNode0.setIdentifier(\"<=\");\n FileSystemHandling fileSystemHandling0 = new FileSystemHandling();\n StringWriter stringWriter1 = new StringWriter();\n simpleNode0.setIdentifier(\"UUC^1taN`<+z\");\n FileSystemHandling.setPermissions((EvoSuiteFile) null, true, false, true);\n FileSystemHandling.shouldAllThrowIOExceptions();\n simpleNode0.toString();\n JavaParser javaParser0 = new JavaParser(\"]\\\"\");\n simpleNode0.dump(\"ConditionalExpression\", stringWriter0);\n assertEquals(\"<Block>\\n <identifier>`n\\tw8u)p!WbK</identifier>\\n <identifier>]\\\"</identifier>\\n <identifier>*le</identifier>\\n <identifier>UUC^1taN`<+z</identifier>\\n</Block>\\n\", stringWriter0.toString());\n }", "public Element compileExpressionList() {\n\t\tElement ele = null;\n\t\tString token, tokenType;\n\t\tboolean contFlag = false;\n\n\t\tElement expListParent = document.createElement(\"expressionList\");\n\t\ttoken = jTokenizer.returnTokenVal();\n\t\tif (token.equals(\")\")) {\n\t\t\t// expListParent.setTextContent(\"\\n\");\n\t\t\treturn expListParent;\n\t\t}\n\t\tdo {\n\t\t\texpListParent.appendChild(compileExpression());\n\n\t\t\tjTokenizer.advance();\n\t\t\ttoken = jTokenizer.returnTokenVal();\n\n\t\t\tif (token.equals(\",\")) {\n\t\t\t\t// tokenType= jTokenizer.tokenType();\n\t\t\t\t// ele= createXMLnode(tokenType);\n\t\t\t\t// expListParent.appendChild(ele);\n\t\t\t\tjTokenizer.advance();\n\t\t\t\tcontFlag = true;\n\t\t\t} else {\n\t\t\t\tcontFlag = false;\n\t\t\t}\n\t\t} while (contFlag);\n\t\treturn expListParent;\n\t}", "private void parseProperties()\n {\n List children = rootElement.getChildren(\"property\");\n\n for (Object aChildren : children)\n {\n Element child = (Element) aChildren;\n Property property = new Property(child, properties, this);\n }\n }", "public static boolean ObjectPropertyList(PsiBuilder b, int l) {\n if (!recursion_guard_(b, l, \"ObjectPropertyList\")) return false;\n boolean r;\n Marker m = enter_section_(b, l, _NONE_, OBJECT_PROPERTY_LIST, \"<object property list>\");\n r = ObjectProperty(b, l + 1);\n r = r && ObjectPropertyList_1(b, l + 1);\n r = r && ObjectPropertyList_2(b, l + 1);\n exit_section_(b, l, m, r, false, null);\n return r;\n }", "public void setNotEmpty(){\n this.empty = false;\n }", "public void visit(OWLAnnotationProperty arg0) throws OWLException {\n\t\t\t\n\t\t}", "@Test(timeout = 4000)\n public void test162() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"com.werken.saxpath.XPathLexer\");\n xPathLexer0.rightParen();\n xPathLexer0.notEquals();\n xPathLexer0.nextToken();\n Token token0 = xPathLexer0.identifierOrOperatorName();\n assertNull(token0);\n }", "@Test(timeout = 4000)\n public void test083() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\".s,=X(+aojF=\");\n Token token0 = xPathLexer0.rightBracket();\n xPathLexer0.setPreviousToken(token0);\n assertEquals(4, token0.getTokenType());\n assertEquals(\".\", token0.getTokenText());\n \n Token token1 = xPathLexer0.nextToken();\n assertEquals(\"s,=X(+aojF=\", token1.getTokenText());\n }", "@Test(timeout = 4000)\n public void test070() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer();\n xPathLexer0.nextToken();\n xPathLexer0.setXPath(\"y]jad[mR3w=N\");\n xPathLexer0.leftParen();\n xPathLexer0.doubleColon();\n Token token0 = xPathLexer0.identifierOrOperatorName();\n assertNull(token0);\n }", "@Test(timeout = 4000)\n public void test039() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"[ (\");\n xPathLexer0.consume((-663));\n // Undeclared exception!\n try { \n xPathLexer0.operatorName();\n fail(\"Expecting exception: StringIndexOutOfBoundsException\");\n \n } catch(StringIndexOutOfBoundsException e) {\n }\n }", "@Test\r\n public void testListValuedObjectPropertyInvalidation() {\r\n ObservableList<String> list = createObservableList(true);\r\n ObjectProperty<ObservableList<String>> property = new SimpleObjectProperty<>(list);\r\n InvalidationReport report = new InvalidationReport(property);\r\n property.set(createObservableList(true));\r\n assertEquals(\"supported: list-valued objectProperty must fire on not-same list\", \r\n 1, report.getEventCount());\r\n }" ]
[ "0.5818374", "0.5554676", "0.54346263", "0.5424242", "0.53623027", "0.53427273", "0.5333316", "0.5333213", "0.5261432", "0.5168012", "0.5152339", "0.5123552", "0.51157874", "0.5096278", "0.50566775", "0.5008538", "0.50029135", "0.49879575", "0.49650946", "0.49604377", "0.49601647", "0.495698", "0.49228513", "0.4903913", "0.4862357", "0.48619166", "0.48391026", "0.48321798", "0.4831057", "0.48147413", "0.48106915", "0.48035538", "0.47863293", "0.4775984", "0.4758675", "0.47416103", "0.47277313", "0.47252014", "0.47249067", "0.47243086", "0.4713101", "0.47127876", "0.47005802", "0.46979868", "0.46907607", "0.46794277", "0.46644762", "0.46600944", "0.46581787", "0.46497998", "0.46484154", "0.46401393", "0.4630979", "0.46209145", "0.46203098", "0.4615593", "0.46150768", "0.46071583", "0.4605811", "0.45876715", "0.45871812", "0.45859635", "0.45783186", "0.45733157", "0.45722166", "0.45701614", "0.45581478", "0.4557677", "0.45498428", "0.4545316", "0.45412117", "0.45409182", "0.4538739", "0.4536882", "0.45264533", "0.45217243", "0.4519364", "0.4516151", "0.45132697", "0.45130667", "0.45105323", "0.4508401", "0.45081043", "0.45078558", "0.44998434", "0.4484856", "0.4480495", "0.44796643", "0.44791847", "0.4471372", "0.44682202", "0.44680798", "0.44679305", "0.4464476", "0.4458774", "0.4458514", "0.44544378", "0.4454311", "0.4447547", "0.44436923" ]
0.7006142
0
nodeToken > "(" nodeList > ( GraphNode() )+ nodeToken1 > ")"
@Override public R visit(SparqlCollection n, A argu) { R _ret = null; n.nodeToken.accept(this, argu); n.nodeList.accept(this, argu); n.nodeToken1.accept(this, argu); return _ret; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void token(TokenNode node);", "final public Expression GraphNode(Exp stack) throws ParseException {\n Expression expression1;\n if (jj_2_17(2)) {\n expression1 = VarOrTerm(stack);\n } else {\n switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n case ATLIST:\n case ATPATH:\n case LPAREN:\n case LBRACKET:\n case AT:\n expression1 = TriplesNode(stack);\n break;\n default:\n jj_la1[229] = jj_gen;\n jj_consume_token(-1);\n throw new ParseException();\n }\n }\n {if (true) return expression1;}\n throw new Error(\"Missing return statement in function\");\n }", "public interface Node {\n public int arityOfOperation();\n public String getText(int depth) throws CalculationException;\n public double getResult() throws CalculationException;\n public boolean isReachable(int depth);\n public List<Node> getAdjacentNodes();\n public String getTitle();\n public void setDepth(int depth);\n}", "T visit(Addition node);", "private String node(String name) { return prefix + \"AST\" + name + \"Node\"; }", "public List<AST> getChildNodes ();", "public interface QuotedL1Node {\n\n}", "Node[] merge(List<Node> nodeList1, List<Node> nodeList2, List<Node> exhaustedNodes);", "Term getNodeTerm();", "private InfixExpression getNode()\n{\n return (InfixExpression) ast_node;\n}", "private CalculatableNode nextNode() throws IOException {\n\t\tint ttype;\n\t\tttype = tokenizer.nextToken();\n\t\tif (ttype == StreamTokenizer.TT_NUMBER) {\n\t\t\treturn new NumericalNode((int) tokenizer.nval);\n\t\t}\n\t\tif (ttype >= 0) {\n\t\t\t// sign character such as +-*/()\n\t\t\tchar sign = (char) tokenizer.ttype;\n\t\t\tif (sign == '(') {\n\t\t\t\tCalculatableNode node = parseNode();\n\t\t\t\treturn node;\n\t\t\t}\n\t\t}\n\t\tthrow new IllegalFormulaException(\"数式が不正です\");\n\t}", "@Override\n public TreeNode parse() {\n TreeNode first = ArithmeticSubexpression.getAdditive(environment).parse();\n if (first == null) return null;\n\n // Try to parse something starting with an operator.\n List<Wrapper> wrappers = RightSideSubexpression.createKleene(\n environment, ArithmeticSubexpression.getAdditive(environment),\n BemTeVicTokenType.EQUAL, BemTeVicTokenType.DIFFERENT,\n BemTeVicTokenType.GREATER_OR_EQUALS, BemTeVicTokenType.GREATER_THAN,\n BemTeVicTokenType.LESS_OR_EQUALS, BemTeVicTokenType.LESS_THAN\n ).parse();\n\n // If did not found anything starting with an operator, return the first node.\n if (wrappers.isEmpty()) return first;\n\n // Constructs a binary operator node containing the expression.\n Iterator<Wrapper> it = wrappers.iterator();\n Wrapper secondWrapper = it.next();\n BinaryOperatorNode second = new BinaryOperatorNode(secondWrapper.getTokenType(), first, secondWrapper.getOutput());\n\n if (wrappers.size() == 1) return second;\n\n // If we reach this far, the expression has more than one operator. i.e. (x = y = z),\n // which is a shortcut for (x = y AND y = z).\n\n // Firstly, determine if the operators are compatible.\n RelationalOperatorSide side = RelationalOperatorSide.NONE;\n for (Wrapper w : wrappers) {\n side = side.next(w.getTokenType());\n }\n if (side.isMixed()) {\n environment.emitError(\"XXX\");\n }\n\n // Creates the other nodes. In the expression (a = b = c = d), The \"a = b\"\n // is in the \"second\" node. Creates \"b = c\", and \"c = d\" nodes.\n List<BinaryOperatorNode> nodes = new LinkedList<BinaryOperatorNode>();\n nodes.add(second);\n\n TreeNode prev = secondWrapper.getOutput();\n while (it.hasNext()) {\n Wrapper w = it.next();\n BinaryOperatorNode current = new BinaryOperatorNode(w.getTokenType(), prev, w.getOutput());\n prev = w.getOutput();\n nodes.add(current);\n }\n\n // Combines all of the nodes in a single one using AND.\n return new VariableArityOperatorNode(BemTeVicTokenType.AND, nodes);\n }", "@Override\n\tpublic void visit(Parenthesis arg0) {\n\t\t\n\t}", "@Override\n\tpublic void visit(Parenthesis arg0) {\n\n\t}", "Node currentNode();", "public Vector<Node> GetAdditionalSubNodes();", "List<Node> getNode(String str);", "abstract Node split();", "abstract Node split();", "List<Node> nodes();", "@Override\n\tpublic void visit(AdditionListNode node) {\n\t\tstackPair.push(new Pair<>(\"+\", 2));\n\t\tnode.getNext().accept(this);\n\t}", "@AutoEscape\n\tpublic String getNode_2();", "void graph2() {\n\t\tconnect(\"1\", \"7\");\n\t\tconnect(\"1\", \"8\");\n\t\tconnect(\"1\", \"9\");\n\t\tconnect(\"9\", \"1\");\n\t\tconnect(\"9\", \"0\");\n\t\tconnect(\"9\", \"4\");\n\t\tconnect(\"4\", \"8\");\n\t\tconnect(\"4\", \"3\");\n\t\tconnect(\"3\", \"4\");\n\t}", "OperationNode getNode();", "public void addNode(Node node){subNodes.add(node);}", "@Test(timeout = 4000)\n public void test075() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\") (\");\n Token token0 = xPathLexer0.equals();\n xPathLexer0.setPreviousToken(token0);\n assertEquals(21, token0.getTokenType());\n assertEquals(\")\", token0.getTokenText());\n \n Token token1 = xPathLexer0.identifierOrOperatorName();\n assertEquals(15, token1.getTokenType());\n assertEquals(\"\", token1.getTokenText());\n }", "@Test(timeout = 4000)\n public void test146() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"(2><\");\n Token token0 = xPathLexer0.leftParen();\n assertEquals(\"(\", token0.getTokenText());\n assertEquals(1, token0.getTokenType());\n \n Token token1 = xPathLexer0.nextToken();\n assertEquals(\"2\", token1.getTokenText());\n assertEquals(30, token1.getTokenType());\n }", "@Test(timeout = 4000)\n public void test153() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\") (\");\n Token token0 = xPathLexer0.nextToken();\n assertEquals(\")\", token0.getTokenText());\n assertEquals(2, token0.getTokenType());\n }", "@AutoEscape\n\tpublic String getNode_1();", "private void parse ( GPNode node ) {\n\n nodes++;\n\n int d = node.atDepth();\n if ( d > depth ) depth = d;\n\n for ( int i = 0; i < node.children.length; i++ )\n parse(node.children[i]);\n\n }", "@Override\n public Expression asExpression(TokenValue<?> token, Deque<Value<Expression>> next) {\n Additive op = token.getValue(); // + | -\n // + is always followed by an argument\n Expression arg = next.pollFirst().getTarget(); // b argument\n Term<Additive> term = new Term<>(op, arg);\n return term;\n }", "public Node setNextNode(Node node);", "uk.ac.cam.acr31.features.javac.proto.GraphProtos.FeatureNode getFirstToken();", "public void start(Node n) {}", "Node getNode();", "@Override\n\tpublic void preVisit(ASTNode node) {\n\t\tnodeList.add(node);\n\t}", "final public Expression TriplesNode(Exp stack) throws ParseException {\n Expression expression1;\n switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n case ATLIST:\n case ATPATH:\n case LPAREN:\n case AT:\n expression1 = Collection(stack);\n break;\n case LBRACKET:\n expression1 = BlankNodePropertyList(stack);\n break;\n default:\n jj_la1[224] = jj_gen;\n jj_consume_token(-1);\n throw new ParseException();\n }\n {if (true) return expression1;}\n throw new Error(\"Missing return statement in function\");\n }", "public static void lmd_parseTree(){\n\n e_stack.push(\"$\");\n e_stack.push(pc.first_rule);\n head_node=new node(pc.first_rule);\n\n // Evaluate\n // Building the tree as well\n\n node cur=head_node;\n\n for(int i=0;i<token_stream.length;i++){\n System.out.println(e_stack);\n if(!pc.isTerminal(e_stack.peek())){\n String rule_token =pc.parse_Table.get(e_stack.pop(),token_stream[i]).right;\n\n if(!rule_token.equals(\"empty\")) {\n String to_put[]=rule_token.split(\" \");\n for(int j=to_put.length-1;j>=0;j--)\n e_stack.push(to_put[j]);\n\n // add children\n for(int j=0;j<to_put.length;j++)\n addNode(cur,to_put[j]);\n // set cur\n cur=cur.next;\n }\n else {\n // if rule_token is empty\n addNode(cur,\"empty\");\n cur=cur.next.next; // as \"empty\" node will not have any children\n }\n i--;\n }\n else {\n // if(e_stack.peek().equals(token_stream[i]))\n e_stack.pop();\n if(cur.next!=null ) cur=cur.next;\n }\n }\n }", "Graph(){\n\t\taddNode();\n\t\tcurrNode=myNodes.get(0);\n\t}", "private interface OperationOverNodes {\n\t\tvoid operate(Node node);\n\t}", "@Override\n public R visit(GraphGraphPattern n, A argu) {\n R _ret = null;\n n.nodeToken.accept(this, argu);\n n.varOrIRIref.accept(this, argu);\n n.groupGraphPattern.accept(this, argu);\n return _ret;\n }", "@Test(timeout = 4000)\n public void test133() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"P@,DtvglU*(KV:16h\");\n Token token0 = xPathLexer0.leftParen();\n assertEquals(1, token0.getTokenType());\n assertEquals(\"P\", token0.getTokenText());\n \n Token token1 = xPathLexer0.nextToken();\n assertEquals(\"@\", token1.getTokenText());\n assertEquals(16, token1.getTokenType());\n }", "@Override\n public Object visit(ASTJoinList node, Object data) {\n\t\tint indent = (Integer) data;\n\t\tprintIndent(indent);\n\t\t\n\t\tSystem.out.print(\"[\");\n\t\tint numOfChild = node.jjtGetNumChildren();\n\t\tboolean first = true;\n\t\tfor (int i = 0; i < numOfChild; i++) {\n\t\t\tif (first)\n\t\t\t\tfirst = false;\n\t\t\telse\n\t\t\t\tSystem.out.print(\", \");\n\t\t\tnode.jjtGetChild(i).jjtAccept(this, data);\n\t\t}\n\t\tSystem.out.print(\"]\");\n\t return null;\n }", "public void setNode_2(String node_2);", "@Test(timeout = 4000)\n public void test159() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"g\\\"K@1\");\n Token token0 = xPathLexer0.leftParen();\n assertEquals(\"g\", token0.getTokenText());\n assertEquals(1, token0.getTokenType());\n \n Token token1 = xPathLexer0.nextToken();\n assertEquals((-1), token1.getTokenType());\n }", "String targetGraph();", "void visit(Object node, String command);", "public AStarNode(Node node)\n \t{\n \t\tthis.node = node;\n \t}", "@Override public JannotTreeJCExpression getLeftOperand()\n{\n return createTree(getNode().getLeftOperand()); \n}", "@Test(timeout = 4000)\n public void test076() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"5!\");\n Token token0 = xPathLexer0.star();\n xPathLexer0.setPreviousToken(token0);\n assertEquals(20, token0.getTokenType());\n assertEquals(\"5\", token0.getTokenText());\n \n Token token1 = xPathLexer0.identifierOrOperatorName();\n assertEquals(15, token1.getTokenType());\n assertEquals(\"\", token1.getTokenText());\n }", "@Test(timeout = 4000)\n public void test114() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\":Y[~gy\");\n Token token0 = xPathLexer0.leftParen();\n assertEquals(1, token0.getTokenType());\n assertEquals(\":\", token0.getTokenText());\n \n Token token1 = xPathLexer0.nextToken();\n assertEquals(15, token1.getTokenType());\n assertEquals(\"Y\", token1.getTokenText());\n }", "private void getAllNodesBreadthFirstSearch(List<Expression> nodesList)\n/* */ {\n/* 156 */ int indx = 0;\n/* 157 */ nodesList.add(this);\n/* */ \n/* 159 */ while (indx < nodesList.size()) {\n/* 160 */ Expression node = (Expression)nodesList.get(indx++);\n/* 161 */ for (Expression child : node.childs) {\n/* 162 */ nodesList.add(child);\n/* */ }\n/* */ }\n/* */ }", "@Override\n public R visit(NamedGraphClause n, A argu) {\n R _ret = null;\n n.nodeToken.accept(this, argu);\n n.sourceSelector.accept(this, argu);\n return _ret;\n }", "public interface Node {\n Oper oper();\n CNFOrdinal toCNF();\n}", "@Override\n\tpublic void VisitUnaryNode(UnaryOperatorNode Node) {\n\n\t}", "@Test(timeout = 4000)\n public void test161() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\") T/\");\n Token token0 = xPathLexer0.leftParen();\n assertEquals(1, token0.getTokenType());\n assertEquals(\")\", token0.getTokenText());\n \n Token token1 = xPathLexer0.nextToken();\n assertEquals(15, token1.getTokenType());\n assertEquals(\"T\", token1.getTokenText());\n }", "NNode(String[] tokenized) {\r\n\t\tthis(NodeTypeEnum.valueOf(tokenized[3]), Integer.parseInt(tokenized[1]), NodeLabelEnum.valueOf(tokenized[4]));\t\t\r\n\t\tfType = NodeFuncEnum.valueOf(tokenized[2]);\r\n\t\tif (tokenized.length > 5) System.out.println(\"ERROR: Too many segments on reading node from file.\");\r\n\t}", "NodeChain createNodeChain();", "@Test(timeout = 4000)\n public void test084() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"(xA>7o;9b=;e*Y(m\");\n Token token0 = xPathLexer0.rightParen();\n xPathLexer0.setPreviousToken(token0);\n Token token1 = xPathLexer0.identifierOrOperatorName();\n assertNull(token1);\n }", "@Override\n\tpublic void visit(Addition arg0) {\n\t\t\n\t}", "Optional<Node<UnderlyingData>> nextNode(Node<UnderlyingData> node);", "public Node(){\r\n primarySequence = null;\r\n dotBracketString = null;\r\n validity = false;\r\n prev = null;\r\n next = null;\r\n }", "public HuffmanNode (HuffmanToken token) {\n \ttotalFrequency = token.getFrequency();\n \ttokens = new ArrayList<HuffmanToken>();\n \ttokens.add(token);\n \tleft = null;\n \tright = null;\n }", "uk.ac.cam.acr31.features.javac.proto.GraphProtos.FeatureNodeOrBuilder getFirstTokenOrBuilder();", "public void setNode_1(String node_1);", "public String getNodeValue ();", "public SqlNode asNode() {\n return node;\n }", "@Test(timeout = 4000)\n public void test079() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\") (\");\n Token token0 = xPathLexer0.at();\n xPathLexer0.setPreviousToken(token0);\n assertEquals(\")\", token0.getTokenText());\n assertEquals(16, token0.getTokenType());\n \n Token token1 = xPathLexer0.identifierOrOperatorName();\n assertEquals(15, token1.getTokenType());\n assertEquals(\"\", token1.getTokenText());\n }", "@Override\n public TreeNode make(Parser parser) {\n Token token = parser.peek();\n if(token.getTokenID() == Token.TIDEN){\n return nAlistNode.make(parser); //alist trans (dont consume token alist will need it)\n }\n return null; //eps trans\n }", "static void visit (Node node, int[] lev, Node[] list) {\n\t\t\n\t}", "@Test(timeout = 4000)\n public void test088() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"<y\");\n Token token0 = xPathLexer0.leftParen();\n assertEquals(\"<\", token0.getTokenText());\n assertEquals(1, token0.getTokenType());\n \n Token token1 = xPathLexer0.nextToken();\n assertEquals(\"y\", token1.getTokenText());\n assertEquals(15, token1.getTokenType());\n }", "void visit(Text node);", "void addNodes(List<CyNode> nodes);", "@AutoEscape\n\tpublic String getNode_3();", "@Override\n\tpublic Void visit(Plus plus) {\n\t\tprintIndent(plus.token.getText());\n\t\tindent++;\n\t\tplus.left.accept(this);\n\t\tplus.right.accept(this);\n\t\tindent--;\n\t\treturn null;\n\t}", "public OrderByNode() {\n super();\n }", "@Test(timeout = 4000)\n public void test096() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"ml'}{GbV%Y&X\");\n Token token0 = xPathLexer0.leftParen();\n assertEquals(1, token0.getTokenType());\n assertEquals(\"m\", token0.getTokenText());\n \n Token token1 = xPathLexer0.nextToken();\n assertEquals(\"l\", token1.getTokenText());\n assertEquals(15, token1.getTokenType());\n }", "public interface GNode{\n\n\tpublic String getName();\n\tpublic GNode[] getChildren();\n\tpublic ArrayList<GNode> walkGraph(GNode parent);\n\tpublic ArrayList<ArrayList<GNode>> paths(GNode parent);\n\n}", "void processGraphData(Graph aNodes);", "@Test\n void testExample1() {\n List<Token> input = Arrays.asList(\n new Token(Token.Type.IDENTIFIER, \"LET\", -1),\n new Token(Token.Type.IDENTIFIER, \"first\", -1),\n new Token(Token.Type.OPERATOR, \":\", -1),\n new Token(Token.Type.IDENTIFIER, \"INTEGER\", -1),\n new Token(Token.Type.OPERATOR, \"=\", -1),\n new Token(Token.Type.INTEGER, \"1\", -1),\n new Token(Token.Type.OPERATOR, \";\", -1),\n\n new Token(Token.Type.IDENTIFIER, \"WHILE\", -1),\n new Token(Token.Type.IDENTIFIER, \"first\", -1),\n new Token(Token.Type.OPERATOR, \"!=\", -1),\n new Token(Token.Type.INTEGER, \"10\", -1),\n new Token(Token.Type.IDENTIFIER, \"DO\", -1),\n\n new Token(Token.Type.IDENTIFIER, \"PRINT\", -1),\n new Token(Token.Type.OPERATOR, \"(\", -1),\n new Token(Token.Type.IDENTIFIER, \"first\", -1),\n new Token(Token.Type.OPERATOR, \")\", -1),\n new Token(Token.Type.OPERATOR, \";\", -1),\n\n new Token(Token.Type.IDENTIFIER, \"first\", -1),\n new Token(Token.Type.OPERATOR, \"=\", -1),\n new Token(Token.Type.IDENTIFIER, \"first\", -1),\n new Token(Token.Type.OPERATOR, \"+\", -1),\n new Token(Token.Type.INTEGER, \"1\", -1),\n new Token(Token.Type.OPERATOR, \";\", -1),\n\n new Token(Token.Type.IDENTIFIER, \"END\", -1)\n );\n Ast.Source expected = new Ast.Source(Arrays.asList(\n new Ast.Statement.Declaration(\"first\", \"INTEGER\",\n Optional.of(new Ast.Expression.Literal(BigInteger.valueOf(1)))),\n new Ast.Statement.While(\n new Ast.Expression.Binary(\"!=\",\n new Ast.Expression.Variable(\"first\"),\n new Ast.Expression.Literal(BigInteger.valueOf(10))\n ),\n Arrays.asList(\n new Ast.Statement.Expression(\n new Ast.Expression.Function(\"PRINT\", Arrays.asList(\n new Ast.Expression.Variable(\"first\"))\n )\n ),\n new Ast.Statement.Assignment(\"first\",\n new Ast.Expression.Binary(\"+\",\n new Ast.Expression.Variable(\"first\"),\n new Ast.Expression.Literal(BigInteger.valueOf(1))\n )\n )\n )\n )\n ));\n test(input, expected, Parser::parseSource);\n }", "@Override\r\n\tpublic boolean visit(VariableDeclarationFragment node) {\r\n//\t\toperator(node);\r\n\t\treturn true;\r\n\t}", "abstract protected void parseNextToken();", "public static void assignCompoundTokens(ArrayList<String>scan){\n\nfor(int i=0;i<scan.size();i++){\n if( isUnaryPostOperator( scan.get(i) ) ){\n \n if(isNumber(scan.get(i-1))||isVariableString(scan.get(i-1))){ \n int index=i-1;\n int j=i;\n while(isUnaryPostOperator(scan.get(j))){\n ++j;\n }\n scan.add(j, \")\");\n scan.add(index,\"(\");\ni=j+1;\n }//end if\n\n else if(isClosingBracket(scan.get(i-1))){\n int index=MBracket.getComplementIndex(false, i-1, scan);\n int j=i;\n while(isUnaryPostOperator(scan.get(j))){\n ++j;\n }\n scan.add(j, \")\");\n scan.add(index,\"(\");\n i=j+1;\n }\n \n \n \n }\n \n \n \n}\n\n\n\n}", "Iterable<T> followNode(T start) throws NullPointerException;", "@AutoEscape\n\tpublic String getNode_5();", "@Test(timeout = 4000)\n public void test116() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"LW>$p??\");\n Token token0 = xPathLexer0.leftParen();\n assertEquals(\"L\", token0.getTokenText());\n assertEquals(1, token0.getTokenType());\n \n Token token1 = xPathLexer0.nextToken();\n assertEquals(\"W\", token1.getTokenText());\n assertEquals(15, token1.getTokenType());\n }", "void visit(PlusExpression expression);", "private static void test02() {\n\t ListNode n1 = new ListNode(1);\n\t ListNode n2 = new ListNode(2);\n\t ListNode n3 = new ListNode(3);\n\t ListNode n4 = new ListNode(4);\n\t ListNode n5 = new ListNode(5);\n\t ListNode n6 = new ListNode(6);\n\n\t n1.next = n2;\n\t n2.next = n3;\n\t n3.next = n4;\n\t n4.next = n5;\n\t n5.next = n6;\n\t n6.next = n3;\n\n\t System.out.println(meetingNode(n1));\n\t }", "@Test(timeout = 4000)\n public void test068() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"Y44o{5$K\");\n xPathLexer0.leftParen();\n xPathLexer0.nextToken();\n Token token0 = xPathLexer0.operatorName();\n assertNull(token0);\n }", "@Override\n\tpublic void visit(Addition arg0) {\n\n\t}", "public Node getNode();", "@Override\n public R visit(OptionalGraphPattern n, A argu) {\n R _ret = null;\n n.nodeToken.accept(this, argu);\n n.groupGraphPattern.accept(this, argu);\n return _ret;\n }", "public Object[] getStartNodes ();", "@Override\n\tpublic void visit(Concat arg0) {\n\t\t\n\t}", "@Test(timeout = 4000)\n public void test074() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\") (\");\n Token token0 = xPathLexer0.notEquals();\n xPathLexer0.setPreviousToken(token0);\n assertEquals(\") \", token0.getTokenText());\n assertEquals(22, token0.getTokenType());\n \n Token token1 = xPathLexer0.identifierOrOperatorName();\n assertEquals(15, token1.getTokenType());\n assertEquals(\"\", token1.getTokenText());\n }", "private void addNode(NeuralNode node) {\r\n\t\tinnerNodes.add(node);\r\n\t}", "@Override\n public void visit(Node node) {\n nodes.add(node);\n }", "private static boolean make_type_x(String query, DataDir dir, \n\t\t\t\t int query_type, Z39session zsession, boolean addOID) {\n\t StringTokenizer st = new StringTokenizer(query);\n\t nodes node[] = new nodes[st.countTokens()];\n\t int rc = 0;\n\t DataDir parm = dir;\n\n//System.out.println(\"make type x: num nodes: \" + node.length);\n\n\t if (node.length==0)\n\t {\n if (zsession != null && zsession.logger != null && \n\t\t zsession.logger.getLevel() != Z39logging.OFF)\n\t\t zsession.logger.println(\"No query provided!\");\n\t\treturn false;\n\t }\n\n \t String q = query.trim();\n\n \t int i=0, j, o, len, nodecnt=0;\n\n try {\n \t for (o=0, len = q.length(); o < len; o=j+1) {\n \t if (q.charAt(o) == '\"') {\n\t\ti = q.indexOf('\"', o+1);\n\t\tif (i == -1)\n\t\t i = o;\n \t }\n\t else\n\t\ti = o;\n\n \t j = q.indexOf(' ', i);\n \t if (j == -1)\n\t j = q.length();\n\n // If length > 0, add new node \n if ( (j-o) > 0 ) {\n node[nodecnt] = new nodes(q.substring(o,j), query_type, zsession);\n\n if (zsession != null && zsession.logger != null && \n\t\t zsession.logger.getLevel() != Z39logging.OFF)\n\t\t zsession.logger.println(\n\t\t \"node[\"+nodecnt+\"].type=\" + nodes.operators[node[nodecnt].type]+\n\t\t \", .term='\"+node[nodecnt].term+\"'\");\n\n \t //System.out.println(\"node[\"+nodecnt+\"].type=\" + nodes.operators[node[nodecnt].type]+\n\t\t //\", .term='\"+node[nodecnt].term+\"'\");\n\n nodecnt++; \n }\n\t }\n }\n catch (Exception e) {\n System.out.println(\"caught exception from nodemaker\");\n e.printStackTrace();\n }\n\n\n//System.out.println(\"link nodes \" + (nodecnt-1));\n\n\n\t rc=nodes.linkNodes(node, nodecnt-1); //node.length-1);\n\t if (rc != -1)\n\t {\n if (zsession != null && zsession.logger != null && \n\t\t zsession.logger.getLevel() != Z39logging.OFF)\n\t\t zsession.logger.println(\n\t\t \"Ill formed query, linkNodes returned \" + rc);\n\t\treturn false;\n\t }\n\n if (zsession != null && zsession.logger != null && \n\t\tzsession.logger.getLevel() != Z39logging.OFF)\n\t\tzsession.logger.println(\"building type-\"+query_type+\" query\");\n\n if (addOID) {\n \t parm = dir.add(query_type, ASN1.CONTEXT);\n\t parm.addOID(ASN1.OBJECTIDENTIFIER, ASN1.UNIVERSAL, \n\t\t\"1.2.840.10003.3.1\");\n }\n\t node[nodecnt-1].buildQuery(parm);\n\n\t return true;\n\t}", "protected abstract SyntaxNode derivative(SyntaxNode doperand);", "public GraphNode buildGraph()\n {\n GraphNode node1 = new GraphNode(1);\n GraphNode node2 = new GraphNode(2);\n GraphNode node3 = new GraphNode(3);\n GraphNode node4 = new GraphNode(4);\n List<GraphNode> v = new ArrayList<GraphNode>();\n v.add(node2);\n v.add(node4);\n node1.neighbours = v;\n v = new ArrayList<GraphNode>();\n v.add(node1);\n v.add(node3);\n node2.neighbours = v;\n v = new ArrayList<GraphNode>();\n v.add(node2);\n v.add(node4);\n node3.neighbours = v;\n v = new ArrayList<GraphNode>();\n v.add(node3);\n v.add(node1);\n node4.neighbours = v;\n return node1;\n }" ]
[ "0.5982065", "0.58998126", "0.5749511", "0.56624144", "0.5649949", "0.5641048", "0.56129897", "0.55802685", "0.55712783", "0.55605775", "0.5554297", "0.5549892", "0.5545928", "0.5462336", "0.54541534", "0.5450838", "0.5436839", "0.54253715", "0.54253715", "0.5401969", "0.5384964", "0.5376075", "0.5358239", "0.53335476", "0.53232324", "0.5234584", "0.52138275", "0.5188865", "0.5182484", "0.5182398", "0.51471484", "0.5142194", "0.51395756", "0.5138597", "0.513374", "0.5125891", "0.51234454", "0.511699", "0.5103236", "0.50856346", "0.50792986", "0.50587285", "0.50559884", "0.5048585", "0.50480455", "0.5046908", "0.5044972", "0.50335544", "0.50286424", "0.50225407", "0.50190055", "0.50180435", "0.50148183", "0.5004504", "0.4985633", "0.49828193", "0.4973486", "0.49642938", "0.49592575", "0.49562874", "0.49555635", "0.49428836", "0.49373198", "0.49373195", "0.492503", "0.49176118", "0.49140745", "0.4911362", "0.4911186", "0.49018112", "0.4901501", "0.48996347", "0.48982862", "0.4895842", "0.48930323", "0.4890371", "0.48868036", "0.48825085", "0.48824072", "0.48808524", "0.48807693", "0.48795626", "0.48783132", "0.48656043", "0.4858353", "0.48580378", "0.48568672", "0.48545024", "0.4852641", "0.4851272", "0.48491603", "0.48490822", "0.48422226", "0.48339027", "0.48319954", "0.48318273", "0.48317465", "0.48234907", "0.48167297", "0.4814942" ]
0.5220522
26
nodeChoice > VarOrTerm() | TriplesNode()
@Override public R visit(GraphNode n, A argu) { R _ret = null; n.nodeChoice.accept(this, argu); return _ret; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public R visit(TriplesNode n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "@Override\n public R visit(VarOrTerm n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "@Override\n public R visit(GraphTerm n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "@Override\n public R visit(TriplesSameSubject n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "@Override\n public R visit(VarOrIRIref n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "Term getNodeTerm();", "Node getVariable();", "@Override\n public R visit(GraphPatternNotTriples n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "@Override\n public R visit(SparqlString n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "public interface Node extends TreeComponent {\n /**\n * The types of decision tree nodes available.\n */\n enum NodeType {\n Internal,\n Leaf\n }\n\n /**\n * Gets the type of this node.\n * @return The type of node.\n */\n NodeType getType();\n\n void print();\n\n String getClassLabel(DataTuple tuple);\n}", "public interface Node {\n Oper oper();\n CNFOrdinal toCNF();\n}", "@Override\n public R visit(Verb n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "public abstract int getNodeType();", "public static void QuestionOne(Node n) {\n\n\n\n }", "TermNode() {\n this.fac = new FacNode();\n this.term = null;\n this.selection = 1;\n }", "@Override\n public R visit(IRIref n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "@Override\n public R visit(Constraint n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "private RDF_Term testTerm(Node node, PrefixMap pmap, boolean asValue) {\n RDF_Term rt = ProtobufConvert.convert(node, pmap, asValue) ;\n\n if ( node == null) {\n assertTrue(rt.hasUndefined());\n return rt;\n }\n\n switch (rt.getTermCase()) {\n// message RDF_Term {\n// oneof term {\n// RDF_IRI iri = 1 ;\n// RDF_BNode bnode = 2 ;\n// RDF_Literal literal = 3 ;\n// RDF_PrefixName prefixName = 4 ;\n// RDF_VAR variable = 5 ;\n// RDF_Triple tripleTerm = 6 ;\n// RDF_ANY any = 7 ;\n// RDF_UNDEF undefined = 8 ;\n// RDF_REPEAT repeat = 9 ;\n//\n// // Value forms of literals.\n// int64 valInteger = 20 ;\n// double valDouble = 21 ;\n// RDF_Decimal valDecimal = 22 ;\n// }\n// }\n case IRI : {\n RDF_IRI iri = rt.getIri() ;\n assertEquals(node.getURI(), iri.getIri()) ;\n break;\n }\n case BNODE : {\n RDF_BNode bnode = rt.getBnode() ;\n assertEquals(node.getBlankNodeLabel(), bnode.getLabel()) ;\n break;\n }\n case LITERAL : {\n RDF_Literal lit = rt.getLiteral() ;\n assertEquals(node.getLiteralLexicalForm(), lit.getLex()) ;\n\n if (JenaRuntime.isRDF11) {\n // RDF 1.1\n if ( Util.isSimpleString(node) ) {\n assertTrue(lit.getSimple());\n // Protobug default is \"\"\n assertNullPB(lit.getDatatype()) ;\n assertEquals(RDF_PrefixName.getDefaultInstance(), lit.getDtPrefix());\n assertNullPB(lit.getLangtag()) ;\n } else if ( Util.isLangString(node) ) {\n assertFalse(lit.getSimple());\n assertNullPB(lit.getDatatype()) ;\n assertEquals(RDF_PrefixName.getDefaultInstance(), lit.getDtPrefix());\n assertNotSame(\"\", lit.getLangtag()) ;\n }\n else {\n assertFalse(lit.getSimple());\n // Regular typed literal.\n assertTrue(lit.getDatatype() != null || lit.getDtPrefix() != null );\n assertNullPB(lit.getLangtag()) ;\n }\n } else {\n // RDF 1.0\n if ( node.getLiteralDatatype() == null ) {\n if ( Util.isLangString(node ) ) {\n assertFalse(lit.getSimple());\n assertNullPB(lit.getDatatype()) ;\n assertNull(lit.getDtPrefix()) ;\n assertNotSame(\"\", lit.getLangtag()) ;\n } else {\n assertTrue(lit.getSimple());\n assertNullPB(lit.getDatatype()) ;\n assertEquals(RDF_PrefixName.getDefaultInstance(), lit.getDtPrefix());\n assertNullPB(lit.getLangtag()) ;\n }\n } else {\n assertTrue(lit.getDatatype() != null || lit.getDtPrefix() != null );\n }\n }\n break;\n }\n case PREFIXNAME : {\n assertNotNull(rt.getPrefixName().getPrefix()) ;\n assertNotNull(rt.getPrefixName().getLocalName()) ;\n String x = pmap.expand(rt.getPrefixName().getPrefix(), rt.getPrefixName().getLocalName());\n assertEquals(node.getURI(),x);\n break;\n }\n case VARIABLE :\n assertEquals(node.getName(), rt.getVariable().getName());\n break;\n case TRIPLETERM : {\n RDF_Triple encTriple = rt.getTripleTerm();\n Triple t = node.getTriple();\n RDF_Term rt_s = testTerm(t.getSubject(), pmap, asValue);\n RDF_Term rt_p = testTerm(t.getPredicate(), pmap, asValue);\n RDF_Term rt_o = testTerm(t.getObject(), pmap, asValue);\n assertEquals(encTriple.getS(), rt_s);\n assertEquals(encTriple.getP(), rt_p);\n assertEquals(encTriple.getO(), rt_o);\n break;\n }\n case ANY :\n assertEquals(Node.ANY, node);\n case REPEAT :\n break;\n case UNDEFINED :\n assertNull(node);\n return rt;\n case VALINTEGER : {\n long x = rt.getValInteger();\n assertTrue(integerSubTypes.contains(node.getLiteralDatatype()));\n //assertEquals(node.getLiteralDatatype(), XSDDatatype.XSDinteger);\n long x2 = Long.parseLong(node.getLiteralLexicalForm());\n assertEquals(x,x2);\n break;\n }\n case VALDOUBLE : {\n double x = rt.getValDouble();\n assertEquals(node.getLiteralDatatype(), XSDDatatype.XSDdouble);\n double x2 = Double.parseDouble(node.getLiteralLexicalForm());\n assertEquals(x, x2, 0.01);\n break;\n }\n case VALDECIMAL : {\n assertEquals(node.getLiteralDatatype(), XSDDatatype.XSDdecimal);\n NodeValue nv = NodeValue.makeNode(node);\n assertTrue(nv.isDecimal());\n\n long value = rt.getValDecimal().getValue() ;\n int scale = rt.getValDecimal().getScale() ;\n BigDecimal d = BigDecimal.valueOf(value, scale) ;\n assertEquals(nv.getDecimal(), d);\n break;\n }\n case TERM_NOT_SET :\n break;\n }\n\n // And reverse\n if ( ! asValue ) {\n // Value based does not preserve exact datatype or lexical form.\n Node n2 = ProtobufConvert.convert(rt, pmap);\n assertEquals(node, n2) ;\n }\n\n return rt;\n }", "NodeType getType();", "public void mutateNonterminalNode() {\n Node[] nodes = getRandomNonterminalNode(false);\n if (nodes != null)\n ((CriteriaNode) nodes[1]).randomizeIndicator();\n }", "public interface Node {\n public int arityOfOperation();\n public String getText(int depth) throws CalculationException;\n public double getResult() throws CalculationException;\n public boolean isReachable(int depth);\n public List<Node> getAdjacentNodes();\n public String getTitle();\n public void setDepth(int depth);\n}", "@Override\n public R visit(ArgList n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "public short getNodeType();", "@Override\n public void visitTerminal(TerminalNode node) {\n\n }", "OperationNode getNode();", "@Override\n public R visit(NumericLiteral n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "@Override\n public R visit(PrimaryExpression n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "public Node term(Node n_parent) {\r\n\r\n if (token.get(lookAheadPossition).contains(\"ident(\") || token.get(lookAheadPossition).contains(\"num(\") || token.get(lookAheadPossition).contains(\"boollit(\") || token.get(lookAheadPossition).equals(\"LP\")) {\r\n System.out.println(\":: term:if:\" + n_parent.getData());\r\n Node n_factor = this.factor(n_parent);\r\n //if (n_parent.getData().contains(\"*\")) {n_parent.setNodeChild(n_factor); }\r\n //if (n_parent.getData().contains(\"DIV\")) {n_parent.setNodeChild(n_factor); }\r\n //if (n_parent.getData().contains(\"MOD\")) {n_parent.setNodeChild(n_factor); }\r\n //if (!(n_parent.getData().equals(\"makeown\"))) {n_parent.setNodeChild(n_factor); }\r\n return (this.restTerm(n_parent, n_factor));\r\n } else {\r\n\r\n return (null);\r\n }\r\n }", "private Term parseTerm(final boolean required) throws ParseException {\n return parseAssign(required);\n }", "public abstract AbstractNodeType getType();", "public abstract String getSelectedNode();", "@Override\npublic final void accept(TreeVisitor visitor) {\n visitor.visitWord(OpCodes.OR_NAME);\n if (ops != null) {\n for (int i = 0; i < ops.length; i++) {\n ops[i].accept(visitor);\n }\n } else {\n visitor.visitConstant(null, \"?\");\n }\n visitor.visitEnd();\n }", "@Override\n public R visit(Consequent n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "public String getElement()\n {\n return nodeChoice;\n }", "public void setNode_3(String node_3);", "private static boolean make_type_x(String query, DataDir dir, \n\t\t\t\t int query_type, Z39session zsession, boolean addOID) {\n\t StringTokenizer st = new StringTokenizer(query);\n\t nodes node[] = new nodes[st.countTokens()];\n\t int rc = 0;\n\t DataDir parm = dir;\n\n//System.out.println(\"make type x: num nodes: \" + node.length);\n\n\t if (node.length==0)\n\t {\n if (zsession != null && zsession.logger != null && \n\t\t zsession.logger.getLevel() != Z39logging.OFF)\n\t\t zsession.logger.println(\"No query provided!\");\n\t\treturn false;\n\t }\n\n \t String q = query.trim();\n\n \t int i=0, j, o, len, nodecnt=0;\n\n try {\n \t for (o=0, len = q.length(); o < len; o=j+1) {\n \t if (q.charAt(o) == '\"') {\n\t\ti = q.indexOf('\"', o+1);\n\t\tif (i == -1)\n\t\t i = o;\n \t }\n\t else\n\t\ti = o;\n\n \t j = q.indexOf(' ', i);\n \t if (j == -1)\n\t j = q.length();\n\n // If length > 0, add new node \n if ( (j-o) > 0 ) {\n node[nodecnt] = new nodes(q.substring(o,j), query_type, zsession);\n\n if (zsession != null && zsession.logger != null && \n\t\t zsession.logger.getLevel() != Z39logging.OFF)\n\t\t zsession.logger.println(\n\t\t \"node[\"+nodecnt+\"].type=\" + nodes.operators[node[nodecnt].type]+\n\t\t \", .term='\"+node[nodecnt].term+\"'\");\n\n \t //System.out.println(\"node[\"+nodecnt+\"].type=\" + nodes.operators[node[nodecnt].type]+\n\t\t //\", .term='\"+node[nodecnt].term+\"'\");\n\n nodecnt++; \n }\n\t }\n }\n catch (Exception e) {\n System.out.println(\"caught exception from nodemaker\");\n e.printStackTrace();\n }\n\n\n//System.out.println(\"link nodes \" + (nodecnt-1));\n\n\n\t rc=nodes.linkNodes(node, nodecnt-1); //node.length-1);\n\t if (rc != -1)\n\t {\n if (zsession != null && zsession.logger != null && \n\t\t zsession.logger.getLevel() != Z39logging.OFF)\n\t\t zsession.logger.println(\n\t\t \"Ill formed query, linkNodes returned \" + rc);\n\t\treturn false;\n\t }\n\n if (zsession != null && zsession.logger != null && \n\t\tzsession.logger.getLevel() != Z39logging.OFF)\n\t\tzsession.logger.println(\"building type-\"+query_type+\" query\");\n\n if (addOID) {\n \t parm = dir.add(query_type, ASN1.CONTEXT);\n\t parm.addOID(ASN1.OBJECTIDENTIFIER, ASN1.UNIVERSAL, \n\t\t\"1.2.840.10003.3.1\");\n }\n\t node[nodecnt-1].buildQuery(parm);\n\n\t return true;\n\t}", "public boolean isTerminal() {\n\t\tif(this.getSuccessors('1').length == 0 && this.getSuccessors('2').length == 0)\r\n\t\t\treturn true;\r\n\r\n\t\t//Else the baord is not a terminal node\r\n\t\treturn false;\r\n\t}", "public NodeType getNodeType();", "public Node factor(Node n_parent) {\r\n String identifier=\"\";\r\n String type=\"\";\r\n if(token.get(lookAheadPossition).contains(\"ident(\")){\r\n System.out.println(\":: factor:if:\");\r\n identifier = token.get(lookAheadPossition).substring(6, token.get(lookAheadPossition).length() - 1);\r\n type = (String) symbolTable.get(identifier);\r\n type=type.toLowerCase();\r\n\r\n this.CheckError(token.get(lookAheadPossition));\r\n Node n_factor =new Node(identifier+\":\"+type);\r\n\r\n return n_factor;\r\n }\r\n else if(token.get(lookAheadPossition).contains(\"num(\")){\r\n System.out.println(\":: factor:if\");\r\n identifier = token.get(lookAheadPossition).substring(4, token.get(lookAheadPossition).length() - 1);\r\n type = \"int\";\r\n\r\n this.CheckError(token.get(lookAheadPossition));\r\n Node n_factor =new Node(identifier+\":\"+type);\r\n return n_factor;\r\n }\r\n else if(token.get(lookAheadPossition).contains(\"boollit(\")){\r\n System.out.println(\":: factor:if\");\r\n identifier = token.get(lookAheadPossition).substring(8, token.get(lookAheadPossition).length() - 1);\r\n\r\n System.out.println(\":: factor:if:boollit \"+identifier);\r\n if (identifier.contentEquals(\"true\") || identifier.contentEquals(\"false\") ){ type=\"bool\";}else { type = (String) symbolTable.get(identifier); type = type.toLowerCase();}\r\n System.out.println(\":: factor:if:boolint\"+type);\r\n this.CheckError(token.get(lookAheadPossition));\r\n Node n_factor =new Node(identifier+\":\"+type);\r\n return n_factor;\r\n }\r\n else if(token.get(lookAheadPossition).equals(\"LP\")){\r\n System.out.println(\":: factor:if:: LP\");\r\n//\r\n this.CheckError(\"LP\");\r\n// Node n_LP_RP = n_parent.setChildren(\"LP:RP\");\r\n //this.simpleExpression(n_parent );\r\n Node n_factor = this.simpleExpression(n_parent);\r\n this.CheckError(\"RP\");\r\n return n_factor;\r\n }\r\n return(null);\r\n }", "@Test public void term_value_roundtriple_1() {\n RDF_Term rt = testTermValue(\"'123'^^xsd:integer\") ;\n assertEquals(123, rt.getValInteger()) ;\n Node n = ProtobufConvert.convert(rt, prefixMap);\n assertEquals(XSDDatatype.XSDinteger, n.getLiteralDatatype());\n assertEquals(\"123\", n.getLiteralLexicalForm());\n }", "public void setNode_1(String node_1);", "public INodeType getNodeType();", "public interface NodeTypeMatcher {\n /**\n * Determines whether two Nodes are eligible for comparison\n * based on their node type.\n */\n boolean canBeCompared(short controlType, short testType);\n }", "@Override\n public R visit(DatasetClause n, A argu) {\n R _ret = null;\n n.nodeToken.accept(this, argu);\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "public Snippet visit(Type n, Snippet argu) {\n\t Snippet _ret=null;\n\t _ret = n.nodeChoice.accept(this, argu);\n\t return _ret;\n\t }", "public Snippet visit(ReturnType n, Snippet argu) {\n\t Snippet _ret=null;\n\t _ret = n.nodeChoice.accept(this, argu);\n\t return _ret;\n\t }", "@Override\n public R visit(NumericLiteralUnsigned n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "@Override\n public R visit(UnaryExpression n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "public interface Node extends Serializable {\n\n\tvoid setOwner(Object owner);\n Object getOwner();\n\n String getName();\n Node getChild(int i);\n List<Node> childList();\n\n Node attach(int id, Node n) throws VetoTypeInduction;\n void induceOutputType(Class type) throws VetoTypeInduction;\n int getInputCount();\n\tClass getInputType(int id);\n List<Class> getInputTypes();\n Class getOutputType();\n Tuple.Two<Class,List<Class>> getType();\n\n Object evaluate();\n\n boolean isTerminal();\n\n <T extends Node> T copy();\n String debugString(Set<Node> set);\n}", "@Override\n public R visit(TriplesBlock n, A argu) {\n R _ret = null;\n n.triplesSameSubject.accept(this, argu);\n n.nodeOptional.accept(this, argu);\n return _ret;\n }", "PolynomialNode addTerm(int coefficient, int power);", "public Vector<Node> GetAdditionalSubNodes();", "final public Expression TriplesNode(Exp stack) throws ParseException {\n Expression expression1;\n switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n case ATLIST:\n case ATPATH:\n case LPAREN:\n case AT:\n expression1 = Collection(stack);\n break;\n case LBRACKET:\n expression1 = BlankNodePropertyList(stack);\n break;\n default:\n jj_la1[224] = jj_gen;\n jj_consume_token(-1);\n throw new ParseException();\n }\n {if (true) return expression1;}\n throw new Error(\"Missing return statement in function\");\n }", "private interface OperationOverNodes {\n\t\tvoid operate(Node node);\n\t}", "@Override\n\tpublic Node apply(Node t) {\n\t\tNode result = t;\n\t\tif(t instanceof NodePathletPath) {\n\t\t\tPath path = ((NodePathletPath)t).getValue();\n\t\t\tSupplier<VarRefStatic> varRefSupplier = pathletContainer.resolvePath(path);\n\t\t\t\t\n\t\t\tresult = new NodeVarRefStaticSupplier(varRefSupplier);\n\t\t}\n\t\t\n\t\treturn result;\n\t}", "TNode createTNode();", "public void setNode_2(String node_2);", "private void parseOr(Node node) {\r\n if (switchTest) return;\r\n int saveIn = in;\r\n parse(node.left());\r\n if (ok || in > saveIn) return;\r\n parse(node.right());\r\n }", "public void printTerm(){\n\n // print fac node\n this.fac.printFac();\n\n // check selection\n if (this.selection == 2) {\n\n // print \"*\"\n System.out.print(\" * \");\n\n // print term node\n this.term.printTerm();\n\n }\n\n }", "@Override\r\n\t\tpublic short getNodeType()\r\n\t\t\t{\n\t\t\t\treturn 0;\r\n\t\t\t}", "private BNode generateBlankNodeTermType(TermMap termMap, String value) {\n \t\tif (value == null)\n \t\t\treturn vf.createBNode();\n \t\telse\n \t\t\treturn vf.createBNode(value);\n \t}", "TriNode() {\r\n children = new HashMap<>();\r\n isValidWord = false;\r\n }", "@Override\n public Expression visit(LogicalOpNode node) {\n\n Label trueLabel = new Label ();\n Label falseLabel = new Label ();\n Label endLabel = new Label ();\n\n process(node, trueLabel, falseLabel);\n\n cat.footoredo.mx.entity.Variable variable = tmpVariable(node.getType());\n\n label (trueLabel);\n assign (node.getLocation(), ref(variable), new Integer(Type.INT8, 1));\n jump (endLabel);\n\n label (falseLabel);\n assign (node.getLocation(), ref(variable), new Integer(Type.INT8, 0));\n jump (endLabel);\n\n label (endLabel);\n\n return isStatement() ? null : ref (variable);\n }", "SingleTerm(Term t)\n {\n term = t;\n }", "@Override\n public void visitTerminal(final TerminalNode node) {\n }", "public Node getGoal(){\n return goal;\n }", "uk.ac.cam.acr31.features.javac.proto.GraphProtos.FeatureNode.NodeType getType();", "@Test\n\tpublic void equalGraphsWhichMatchTerms(){\n\t\tTerm term = new Term();\n\t\tterm.setName(\"tutorials\");\n\t\tterm.setNodeid(\"24\");\n\t\ttermRepository.save(term);\n\t\tList<Term> termList = termRepository.findTerms();\n\t\tAssert.assertEquals(\"tutorials\", term.getName());\n\t\tAssert.assertEquals(\"24\", term.getNodeid());\n\t}", "short getNodeType(Object node);", "public Element getPredicateVariable();", "NetworkNodeType getIsA();", "Node getNode();", "public TreeItem(Symbol term, Symbol var) {\n\n\t\ttruncated = false;\n\t\tnumChildren = 0;\n\t\tnumNodes = 1;\n\t\t// weight is meaningless in the context of this construction\n\t\tweight = -1;\n\t\tchildren = null;\n\t\t//memoized_leaves = null;\n\t\tlabel = term;\n\t\tdecideNorm = true;\n\t\tisNorm = true;\n\t\tisEmptyString = false;\n\t\thiddenVariable = var;\n\t\tisTransducerState = true;\n\t}", "@Override\n public R visit(NumericLiteralPositive n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "public Node restTerm(Node n_parent, Node n_factor){\r\n String multiplicative=\"\";\r\n if(token.get(lookAheadPossition).contains(\"MULTIPLICATIVE(\")){\r\n System.out.println(\":: restTerm:if:\"+n_parent.getData());\r\n multiplicative = token.get(lookAheadPossition).substring(15, token.get(lookAheadPossition).length() - 1);\r\n Node n_multiplicative = new Node (multiplicative+\":int\");\r\n n_multiplicative.setNodeChild(n_factor);\r\n //if (!(n_parent.getData().equals(\"makeown\"))) {n_parent.setNodeChild(n_multiplicative); }\r\n this.CheckError(token.get(lookAheadPossition));\r\n\r\n\r\n Node n_return = this.term(n_multiplicative);\r\n System.out.println(\":: restTerm:n_return:\"+n_return.getData());\r\n n_multiplicative.setNodeChild(n_return);\r\n return ( n_multiplicative );\r\n }else {\r\n //n_parent.setNodeChild(n_factor);\r\n //if (!(n_parent.getData().equals(\"makeown\"))) {n_parent.setNodeChild(n_factor); }\r\n return (n_factor);\r\n }\r\n\r\n }", "public abstract <T extends INode<T>> String nodeToString(int nodeId, T node, boolean isInitial, boolean isTerminal);", "private static boolean isItVisted(Node node) {\n\t\t\n\t\tboolean areNodesEqual = false;\n\t\tfor (Node temp : nodesCovered) {\n\t\t\tif(choice==1){\n\t\t\t\tif (node.count == temp.count) \t\t\t\t{\n\t\t\t\t\tif (areTheyEqual(temp.stateSpace, node.stateSpace)) {\n\t\t\t\t\t\treturn true;\n\t\t\t\t\t}\n\t\t\t\t\n\t\t\t }\n\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\t\n\t\t\t\t\tif (node.manhattanDist == temp.manhattanDist) {\n\t\t\t\t\t\tif (areTheyEqual(temp.stateSpace, node.stateSpace)) {\n\t\t\t\t\treturn true;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t}\n\t\treturn areNodesEqual;\n\t}", "@Override\n\tpublic void VisitOrNode(BunOrNode Node) {\n\n\t}", "public SetSuccessorsGraphView(E graphVar, int node) {\n this(\"SUCCESSORS_OF(\" + graphVar.getName() + \", \" + node + \")\", graphVar, node);\n }", "public interface Nodelet {\n\n\tLogger log = Logger.getLogger(Nodelet.class);\n\t\n\tvoid process (Node node) throws Exception;\n}", "public boolean isRealNode();", "public boolean isRealNode();", "public interface QuotedL1Node {\n\n}", "public INode addOrGetNode(String label);", "public abstract IDecisionVariable getVariable();", "@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 }", "public void setNode(String node)\n {\n this.node = node;\n }", "public VariableNode(String attr)\n {\n this.name = attr;\n }", "interface Node<K, V> {\n /** Returns the key of current node */\n K getKey();\n /** Returns the value of current node */\n V getValue();\n }", "public TaxoNode(\r\n\t\t\tString\t\tname,\r\n\t\t\tString\t\tdisplayName,\r\n\t\t\tString\t\tcontrolName,\r\n\t\t\tint\t\t\t\tid,\r\n\t\t\tint\t\t\t\ttermID,\r\n\t\t\tint\t\t\t\tfacetid,\r\n\t\t\tTaxoNode\tparent,\r\n\t\t\tString\t\tsort,\r\n\t\t\tboolean\t\tisGuide,\r\n\t\t\tboolean\t\tinferredByChildren,\r\n\t\t\tboolean\t\tselectSingle ) {\r\n\t\tthis.name = name;\r\n\t\tthis.displayName = displayName;\r\n\t\tthis.controlName = controlName;\r\n\t\tif( id < 0 )\r\n\t\t\tid = nextID++;\r\n\t\tthis.id= id;\r\n\t\tthis.termID= termID;\r\n\t\tthis.facetid= facetid;\t\t// Only applies to categories\r\n\t\tthis.parent = parent;\r\n\t\tthis.sort = sort;\r\n\t\tthis.isGuideTerm = isGuide;\r\n\t\tthis.inferredByChildren = inferredByChildren;\r\n\t\tthis.selectSingle = selectSingle;\r\n\t\tchildren = null;\r\n\t\tsynset = null; \t\t// No syns unless specified\r\n\t\texclset = null; \t// No exclusions unless specified\r\n\t\timpliedNodes = null; \t// No implied (other than parent) unless specified\r\n\t\tiMaskBase = -1;\r\n\t\tnMasks = 0;\r\n\t\tiBitInMask = -1;\r\n\t}", "public Snippet visit(SwitchLabel n, Snippet argu) {\n\t Snippet _ret=null;\n\t _ret = n.nodeChoice.accept(this, argu);\n\t return _ret;\n\t }", "public abstract Node apply(Node node);", "@Override\n public R visit(BuiltInCall n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "@Override\n\tpublic Object visit(ASTRelational node, Object data)\n\t{\n\t\treturn visitOperatorNode(node, data);\n\t}", "NodeChain createNodeChain();", "private void parseTerm() throws IOException {\r\n\t\tString line;\r\n\t\tTerm newTerm = new Term();\r\n\t\twhile((line=next(0))!=null) {\r\n\t\t\tif(line.startsWith(\"[\"))\r\n\t\t\t\t{\r\n\t\t\t\tthis.buffer=line;\r\n\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\tint colon=line.indexOf(':');\r\n\t\t\tif(colon==-1) continue;\r\n\t\t\tif(line.startsWith(\"id:\"))\r\n\t\t\t\t{\r\n\t\t\t\tnewTerm.id = line.substring(colon+1).trim();\r\n\t\t\t\tcontinue;\r\n\t\t\t\t}\r\n\t\t\tif(line.startsWith(\"name:\"))\r\n\t\t\t\t{\r\n\t\t\t\tnewTerm.name=nocomment(line.substring(colon+1));\r\n\t\t\t\tcontinue;\r\n\t\t\t\t}\r\n\t\t\tif(line.startsWith(\"namespace:\"))\r\n\t\t\t\t{\r\n\t\t\t\tnewTerm.namespace=nocomment(line.substring(colon+1));\r\n\t\t\t\tcontinue;\r\n\t\t\t\t}\r\n\t\t\telse if(line.startsWith(\"def:\"))\r\n\t\t\t\t{\r\n\t\t\t\tnewTerm.def=nocomment(line.substring(colon+1));\r\n\t\t\t\tterms.addTerm(newTerm);\r\n\t\t\t\tif (newTerm.namespace.equals(\"molecular_function\")){\r\n\t\t\t\t\tdagMF.addVertex(newTerm);\r\n\t\t\t\t}\r\n\t\t\t\telse if (newTerm.namespace.equals(\"biological_process\")){\r\n\t\t\t\t\tdagBP.addVertex(newTerm);\t\r\n\t\t\t\t}\r\n\t\t\t\telse if (newTerm.namespace.equals(\"cellular_component\")){\r\n\t\t\t\t\tdagCC.addVertex(newTerm);\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tSystem.out.println(\"TERM WAS NOT ADDED, NO NAMESPACE!\");\r\n\t\t\t\t}\r\n\t\t\t\tcontinue;\r\n\t\t\t\t}\r\n\t\t}\r\n\t}", "private void parse(Node node) {\r\n if (tracing && ! skipTrace) System.out.println(node.trace());\r\n skipTrace = false;\r\n switch(node.op()) {\r\n case Error: case Temp: case List: case Empty: break;\r\n case Rule: parseRule(node); break;\r\n case Id: parseId(node); break;\r\n case Or: parseOr(node); break;\r\n case And: parseAnd(node); break;\r\n case Opt: parseOpt(node); break;\r\n case Any: parseAny(node); break;\r\n case Some: parseSome(node); break;\r\n case See: parseSee(node); break;\r\n case Has: parseHas(node); break;\r\n case Not: parseNot(node); break;\r\n case Tag: parseTag(node); break;\r\n case Success: parseSuccess(node); break;\r\n case Fail: parseFail(node); break;\r\n case Eot: parseEot(node); break;\r\n case Char: parseChar(node); break;\r\n case Text: parseText(node); break;\r\n case Set: parseSet(node); break;\r\n case Range: parseRange(node); break;\r\n case Split: parseSplit(node); break;\r\n case Point: parsePoint(node); break;\r\n case Cat: parseCat(node); break;\r\n case Mark: parseMark(node); break;\r\n case Drop: parseDrop(node); break;\r\n case Act: parseAct(node); break;\r\n default: assert false : \"Unexpected node type \" + node.op(); break;\r\n }\r\n }", "public BiType getType() {\n return BiType.NODE;\n }", "@Override\n public TreeNode parse() {\n TreeNode first = ArithmeticSubexpression.getAdditive(environment).parse();\n if (first == null) return null;\n\n // Try to parse something starting with an operator.\n List<Wrapper> wrappers = RightSideSubexpression.createKleene(\n environment, ArithmeticSubexpression.getAdditive(environment),\n BemTeVicTokenType.EQUAL, BemTeVicTokenType.DIFFERENT,\n BemTeVicTokenType.GREATER_OR_EQUALS, BemTeVicTokenType.GREATER_THAN,\n BemTeVicTokenType.LESS_OR_EQUALS, BemTeVicTokenType.LESS_THAN\n ).parse();\n\n // If did not found anything starting with an operator, return the first node.\n if (wrappers.isEmpty()) return first;\n\n // Constructs a binary operator node containing the expression.\n Iterator<Wrapper> it = wrappers.iterator();\n Wrapper secondWrapper = it.next();\n BinaryOperatorNode second = new BinaryOperatorNode(secondWrapper.getTokenType(), first, secondWrapper.getOutput());\n\n if (wrappers.size() == 1) return second;\n\n // If we reach this far, the expression has more than one operator. i.e. (x = y = z),\n // which is a shortcut for (x = y AND y = z).\n\n // Firstly, determine if the operators are compatible.\n RelationalOperatorSide side = RelationalOperatorSide.NONE;\n for (Wrapper w : wrappers) {\n side = side.next(w.getTokenType());\n }\n if (side.isMixed()) {\n environment.emitError(\"XXX\");\n }\n\n // Creates the other nodes. In the expression (a = b = c = d), The \"a = b\"\n // is in the \"second\" node. Creates \"b = c\", and \"c = d\" nodes.\n List<BinaryOperatorNode> nodes = new LinkedList<BinaryOperatorNode>();\n nodes.add(second);\n\n TreeNode prev = secondWrapper.getOutput();\n while (it.hasNext()) {\n Wrapper w = it.next();\n BinaryOperatorNode current = new BinaryOperatorNode(w.getTokenType(), prev, w.getOutput());\n prev = w.getOutput();\n nodes.add(current);\n }\n\n // Combines all of the nodes in a single one using AND.\n return new VariableArityOperatorNode(BemTeVicTokenType.AND, nodes);\n }", "public void setNode_4(String node_4);" ]
[ "0.6518998", "0.6508247", "0.62671924", "0.59975463", "0.5975809", "0.58634216", "0.5651675", "0.55788684", "0.5520687", "0.5463794", "0.53789", "0.5372494", "0.53483254", "0.5323706", "0.530652", "0.52661824", "0.52596927", "0.5245186", "0.52387977", "0.52243966", "0.51751554", "0.5154136", "0.5146132", "0.5105116", "0.50918555", "0.508425", "0.5083942", "0.5027707", "0.5004432", "0.49991828", "0.49907422", "0.4982234", "0.49413785", "0.49119568", "0.49115846", "0.49031198", "0.48921818", "0.4886074", "0.48838395", "0.48807487", "0.4872769", "0.48569912", "0.4851999", "0.48465833", "0.48389357", "0.4817051", "0.48144603", "0.48118478", "0.48108405", "0.48041323", "0.47985876", "0.47957662", "0.47923997", "0.4785261", "0.47838005", "0.47811028", "0.47772688", "0.47755295", "0.4764489", "0.47637287", "0.47631565", "0.47572318", "0.47549003", "0.4735476", "0.47336", "0.4719651", "0.4717021", "0.46966025", "0.4692059", "0.468619", "0.466631", "0.46615192", "0.46557853", "0.46520478", "0.46455634", "0.46335906", "0.46329582", "0.46267062", "0.4625772", "0.4612715", "0.46123856", "0.46123856", "0.4606162", "0.46002465", "0.45977062", "0.4596985", "0.45831087", "0.4582819", "0.45824495", "0.45822638", "0.45687643", "0.45653147", "0.45647585", "0.45644572", "0.4551107", "0.45483482", "0.45481345", "0.45398176", "0.45383275", "0.45372137" ]
0.51569647
21
nodeChoice > Var() | GraphTerm()
@Override public R visit(VarOrTerm n, A argu) { R _ret = null; n.nodeChoice.accept(this, argu); return _ret; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public R visit(GraphTerm n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "Node getVariable();", "@Override\n public R visit(VarOrIRIref n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "Term getNodeTerm();", "TermNode() {\n this.fac = new FacNode();\n this.term = null;\n this.selection = 1;\n }", "@Override\n public R visit(TriplesNode n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "public void printTerm(){\n\n // print fac node\n this.fac.printFac();\n\n // check selection\n if (this.selection == 2) {\n\n // print \"*\"\n System.out.print(\" * \");\n\n // print term node\n this.term.printTerm();\n\n }\n\n }", "public VariableNode(String attr)\n {\n this.name = attr;\n }", "@Override\n public R visit(SparqlString n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "@Override\n public R visit(GraphNode n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "public interface Node {\n Oper oper();\n CNFOrdinal toCNF();\n}", "public VariableNode(String name) {\n\t\tthis.name = name;\n\t}", "@Override\n public R visit(Verb n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "public static void QuestionOne(Node n) {\n\n\n\n }", "@Override\n public void visitTerminal(TerminalNode node) {\n\n }", "@Override\n public R visit(TriplesSameSubject n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "@Override\n public R visit(GraphPatternNotTriples n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "@Test\n\tpublic void equalGraphsWhichMatchTerms(){\n\t\tTerm term = new Term();\n\t\tterm.setName(\"tutorials\");\n\t\tterm.setNodeid(\"24\");\n\t\ttermRepository.save(term);\n\t\tList<Term> termList = termRepository.findTerms();\n\t\tAssert.assertEquals(\"tutorials\", term.getName());\n\t\tAssert.assertEquals(\"24\", term.getNodeid());\n\t}", "@Override\n public R visit(Constraint n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "@Override\n public void visit(VariableEvalNode variableEvalNode) {\n }", "public abstract IDecisionVariable getVariable();", "@Override\n\tpublic Object visit(ASTVar node, Object data) {\n\t\tint indent = (Integer) data;\n\t\tprintIndent(indent);\n\t\tSystem.out.print(node.varName);\n\t\treturn null;\n\t}", "public interface Node extends TreeComponent {\n /**\n * The types of decision tree nodes available.\n */\n enum NodeType {\n Internal,\n Leaf\n }\n\n /**\n * Gets the type of this node.\n * @return The type of node.\n */\n NodeType getType();\n\n void print();\n\n String getClassLabel(DataTuple tuple);\n}", "public static VariableSelector<IntVar> lexico_var_selector() {\n return new InputOrder<>();\n }", "public GraphCostBasedSearch(GraphVar graphVar) {\n this(graphVar, null);\n }", "public interface GlobalNode extends Node{\n\n VariableName[] getVariableNames();\n\n}", "@Override\n public R visit(NumericLiteral n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "public int indexVar(Node node) {\n Expr ee = getFilter().getExp();\n String name = node.getLabel();\n for (int i = 0; i < 2; i++) {\n if (ee.getExp(i).type() == ExprType.VARIABLE\n && ee.getExp(i).getLabel().equals(name)) {\n return i;\n }\n }\n return -1;\n }", "@Override\n public R visit(DatasetClause n, A argu) {\n R _ret = null;\n n.nodeToken.accept(this, argu);\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "public int getNodeLabel ();", "@Override String opStr() { return \"var\"; }", "String targetGraph();", "public interface Term {\n\t\n\t/**\n\t * Get the coefficient of a term\n\t * @return the coefficient \n\t */\n\tpublic double getCoefficient();\n\t\n\t/**\n\t * Get the exponent of a term\n\t * @return the exponent\n\t */\n\tpublic int getExponent();\n\t\n\t/**\n\t * Evaluate a term by a given value. c = constant, a(c)^n \n\t * @param x The value to be evaluated \n\t * @return The result of the evaluated term \n\t */\n\tpublic double evaluate(double x);\n\t\n}", "private Term parseTerm(final boolean required) throws ParseException {\n return parseAssign(required);\n }", "public interface Node {\n public int arityOfOperation();\n public String getText(int depth) throws CalculationException;\n public double getResult() throws CalculationException;\n public boolean isReachable(int depth);\n public List<Node> getAdjacentNodes();\n public String getTitle();\n public void setDepth(int depth);\n}", "public String getNodeValue ();", "PolynomialNode addTerm(int coefficient, int power);", "public void mutateNonterminalNode() {\n Node[] nodes = getRandomNonterminalNode(false);\n if (nodes != null)\n ((CriteriaNode) nodes[1]).randomizeIndicator();\n }", "@Override\n public R visit(IRIref n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "public void printNodeInfo(String nodeID){\r\n\t\tif (terms.get(nodeID) !=null){\r\n\t\t\tTerm thisTerm = terms.get(nodeID);\r\n\t\t\tDirectedAcyclicGraph<Term, DefaultEdge> thisDag = dagDecider(nodeID);\r\n\t\t\t\r\n\t\t\tSystem.out.println(\"Term found: \"+thisDag.containsVertex(thisTerm));\r\n\t\t\tSystem.out.println(\"............Information about this term..............\");\r\n\t\t\tSystem.out.println(thisTerm.toString());\r\n\t\t\t//System.out.println(\"The degree of this Node is: \"+thisDag.degreeOf(thisTerm));\r\n\t\t\tIterator<Term> myAncIterator = thisDag.getAncestors(thisTerm).iterator();\r\n\t\t\tSystem.out.println(\".....................Ancestors.......................\");\r\n\t\t\twhile (myAncIterator.hasNext()){\r\n\t\t\t\tTerm nextTerm = myAncIterator.next();\r\n\t\t\t\tSystem.out.println(nextTerm.toString());\r\n\t\t\t}\r\n\t\t\tIterator<Term> myChildIterator = thisDag.getDescendants(thisTerm).iterator();\r\n\t\t\tSystem.out.println(\".....................Descendents.....................\");\r\n\t\t\twhile (myChildIterator.hasNext()){\r\n\t\t\t\tTerm nextTerm = myChildIterator.next();\r\n\t\t\t\tSystem.out.println(nextTerm.toString());\r\n\t\t\t}\r\n\t\t} else { \r\n\t\t\tSystem.out.println(\"No such term exists!\");\r\n\t\t\treturn;\r\n\t\t}\r\n\t}", "private void parseTerm() throws IOException {\r\n\t\tString line;\r\n\t\tTerm newTerm = new Term();\r\n\t\twhile((line=next(0))!=null) {\r\n\t\t\tif(line.startsWith(\"[\"))\r\n\t\t\t\t{\r\n\t\t\t\tthis.buffer=line;\r\n\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\tint colon=line.indexOf(':');\r\n\t\t\tif(colon==-1) continue;\r\n\t\t\tif(line.startsWith(\"id:\"))\r\n\t\t\t\t{\r\n\t\t\t\tnewTerm.id = line.substring(colon+1).trim();\r\n\t\t\t\tcontinue;\r\n\t\t\t\t}\r\n\t\t\tif(line.startsWith(\"name:\"))\r\n\t\t\t\t{\r\n\t\t\t\tnewTerm.name=nocomment(line.substring(colon+1));\r\n\t\t\t\tcontinue;\r\n\t\t\t\t}\r\n\t\t\tif(line.startsWith(\"namespace:\"))\r\n\t\t\t\t{\r\n\t\t\t\tnewTerm.namespace=nocomment(line.substring(colon+1));\r\n\t\t\t\tcontinue;\r\n\t\t\t\t}\r\n\t\t\telse if(line.startsWith(\"def:\"))\r\n\t\t\t\t{\r\n\t\t\t\tnewTerm.def=nocomment(line.substring(colon+1));\r\n\t\t\t\tterms.addTerm(newTerm);\r\n\t\t\t\tif (newTerm.namespace.equals(\"molecular_function\")){\r\n\t\t\t\t\tdagMF.addVertex(newTerm);\r\n\t\t\t\t}\r\n\t\t\t\telse if (newTerm.namespace.equals(\"biological_process\")){\r\n\t\t\t\t\tdagBP.addVertex(newTerm);\t\r\n\t\t\t\t}\r\n\t\t\t\telse if (newTerm.namespace.equals(\"cellular_component\")){\r\n\t\t\t\t\tdagCC.addVertex(newTerm);\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tSystem.out.println(\"TERM WAS NOT ADDED, NO NAMESPACE!\");\r\n\t\t\t\t}\r\n\t\t\t\tcontinue;\r\n\t\t\t\t}\r\n\t\t}\r\n\t}", "public R visit(com.biosimilarity.lift.lib.scalar.Absyn.Mention p, A arg)\n {\n\n p.variableexpr_.accept(new VariableExprVisitor<R,A>(), arg);\n\n return null;\n }", "@Override\n public Void visitVariableAntecedent(GraafvisParser.VariableAntecedentContext ctx) {\n variables.add(ctx.HID().getText());\n return null;\n }", "@Override\n public R visit(NamedGraphClause n, A argu) {\n R _ret = null;\n n.nodeToken.accept(this, argu);\n n.sourceSelector.accept(this, argu);\n return _ret;\n }", "public void setTerm(java.lang.Integer value) {\n this.term = value;\n }", "@Override\n\tpublic Expr visit(VarExpr e) {\n\t\treturn e;\n\t}", "public Element getPredicateVariable();", "public TreeItem(Symbol term, Symbol var) {\n\n\t\ttruncated = false;\n\t\tnumChildren = 0;\n\t\tnumNodes = 1;\n\t\t// weight is meaningless in the context of this construction\n\t\tweight = -1;\n\t\tchildren = null;\n\t\t//memoized_leaves = null;\n\t\tlabel = term;\n\t\tdecideNorm = true;\n\t\tisNorm = true;\n\t\tisEmptyString = false;\n\t\thiddenVariable = var;\n\t\tisTransducerState = true;\n\t}", "public abstract String getSelectedNode();", "Term getTerm();", "public SetSuccessorsGraphView(E graphVar, int node) {\n this(\"SUCCESSORS_OF(\" + graphVar.getName() + \", \" + node + \")\", graphVar, node);\n }", "public SetSuccessorsGraphView(String name, E graphVar, int node) {\n super(name, graphVar);\n this.node = node;\n this.gdm = graphVar.monitorDelta(this);\n this.gdm.startMonitoring();\n if (!graphVar.isDirected()) {\n this.arcRemoved = (from, to) -> {\n if (from == node || to == node) {\n notifyPropagators(SetEventType.REMOVE_FROM_ENVELOPE, this);\n }\n };\n this.arcEnforced = (from, to) -> {\n if (from == node || to == node) {\n notifyPropagators(SetEventType.ADD_TO_KER, this);\n }\n };\n } else {\n this.arcRemoved = (from, to) -> {\n if (from == node) {\n notifyPropagators(SetEventType.REMOVE_FROM_ENVELOPE, this);\n }\n };\n this.arcEnforced = (from, to) -> {\n if (from == node) {\n notifyPropagators(SetEventType.ADD_TO_KER, this);\n }\n };\n }\n }", "abstract public void showSelection(Node[] nodes) ;", "Astro namedTerm(String tagName, AstroArg args);", "@Override\r\n\tpublic Node visitVarType(VarTypeContext ctx) {\n\t\treturn super.visitVarType(ctx);\r\n\t}", "private RDF_Term testTerm(Node node, PrefixMap pmap, boolean asValue) {\n RDF_Term rt = ProtobufConvert.convert(node, pmap, asValue) ;\n\n if ( node == null) {\n assertTrue(rt.hasUndefined());\n return rt;\n }\n\n switch (rt.getTermCase()) {\n// message RDF_Term {\n// oneof term {\n// RDF_IRI iri = 1 ;\n// RDF_BNode bnode = 2 ;\n// RDF_Literal literal = 3 ;\n// RDF_PrefixName prefixName = 4 ;\n// RDF_VAR variable = 5 ;\n// RDF_Triple tripleTerm = 6 ;\n// RDF_ANY any = 7 ;\n// RDF_UNDEF undefined = 8 ;\n// RDF_REPEAT repeat = 9 ;\n//\n// // Value forms of literals.\n// int64 valInteger = 20 ;\n// double valDouble = 21 ;\n// RDF_Decimal valDecimal = 22 ;\n// }\n// }\n case IRI : {\n RDF_IRI iri = rt.getIri() ;\n assertEquals(node.getURI(), iri.getIri()) ;\n break;\n }\n case BNODE : {\n RDF_BNode bnode = rt.getBnode() ;\n assertEquals(node.getBlankNodeLabel(), bnode.getLabel()) ;\n break;\n }\n case LITERAL : {\n RDF_Literal lit = rt.getLiteral() ;\n assertEquals(node.getLiteralLexicalForm(), lit.getLex()) ;\n\n if (JenaRuntime.isRDF11) {\n // RDF 1.1\n if ( Util.isSimpleString(node) ) {\n assertTrue(lit.getSimple());\n // Protobug default is \"\"\n assertNullPB(lit.getDatatype()) ;\n assertEquals(RDF_PrefixName.getDefaultInstance(), lit.getDtPrefix());\n assertNullPB(lit.getLangtag()) ;\n } else if ( Util.isLangString(node) ) {\n assertFalse(lit.getSimple());\n assertNullPB(lit.getDatatype()) ;\n assertEquals(RDF_PrefixName.getDefaultInstance(), lit.getDtPrefix());\n assertNotSame(\"\", lit.getLangtag()) ;\n }\n else {\n assertFalse(lit.getSimple());\n // Regular typed literal.\n assertTrue(lit.getDatatype() != null || lit.getDtPrefix() != null );\n assertNullPB(lit.getLangtag()) ;\n }\n } else {\n // RDF 1.0\n if ( node.getLiteralDatatype() == null ) {\n if ( Util.isLangString(node ) ) {\n assertFalse(lit.getSimple());\n assertNullPB(lit.getDatatype()) ;\n assertNull(lit.getDtPrefix()) ;\n assertNotSame(\"\", lit.getLangtag()) ;\n } else {\n assertTrue(lit.getSimple());\n assertNullPB(lit.getDatatype()) ;\n assertEquals(RDF_PrefixName.getDefaultInstance(), lit.getDtPrefix());\n assertNullPB(lit.getLangtag()) ;\n }\n } else {\n assertTrue(lit.getDatatype() != null || lit.getDtPrefix() != null );\n }\n }\n break;\n }\n case PREFIXNAME : {\n assertNotNull(rt.getPrefixName().getPrefix()) ;\n assertNotNull(rt.getPrefixName().getLocalName()) ;\n String x = pmap.expand(rt.getPrefixName().getPrefix(), rt.getPrefixName().getLocalName());\n assertEquals(node.getURI(),x);\n break;\n }\n case VARIABLE :\n assertEquals(node.getName(), rt.getVariable().getName());\n break;\n case TRIPLETERM : {\n RDF_Triple encTriple = rt.getTripleTerm();\n Triple t = node.getTriple();\n RDF_Term rt_s = testTerm(t.getSubject(), pmap, asValue);\n RDF_Term rt_p = testTerm(t.getPredicate(), pmap, asValue);\n RDF_Term rt_o = testTerm(t.getObject(), pmap, asValue);\n assertEquals(encTriple.getS(), rt_s);\n assertEquals(encTriple.getP(), rt_p);\n assertEquals(encTriple.getO(), rt_o);\n break;\n }\n case ANY :\n assertEquals(Node.ANY, node);\n case REPEAT :\n break;\n case UNDEFINED :\n assertNull(node);\n return rt;\n case VALINTEGER : {\n long x = rt.getValInteger();\n assertTrue(integerSubTypes.contains(node.getLiteralDatatype()));\n //assertEquals(node.getLiteralDatatype(), XSDDatatype.XSDinteger);\n long x2 = Long.parseLong(node.getLiteralLexicalForm());\n assertEquals(x,x2);\n break;\n }\n case VALDOUBLE : {\n double x = rt.getValDouble();\n assertEquals(node.getLiteralDatatype(), XSDDatatype.XSDdouble);\n double x2 = Double.parseDouble(node.getLiteralLexicalForm());\n assertEquals(x, x2, 0.01);\n break;\n }\n case VALDECIMAL : {\n assertEquals(node.getLiteralDatatype(), XSDDatatype.XSDdecimal);\n NodeValue nv = NodeValue.makeNode(node);\n assertTrue(nv.isDecimal());\n\n long value = rt.getValDecimal().getValue() ;\n int scale = rt.getValDecimal().getScale() ;\n BigDecimal d = BigDecimal.valueOf(value, scale) ;\n assertEquals(nv.getDecimal(), d);\n break;\n }\n case TERM_NOT_SET :\n break;\n }\n\n // And reverse\n if ( ! asValue ) {\n // Value based does not preserve exact datatype or lexical form.\n Node n2 = ProtobufConvert.convert(rt, pmap);\n assertEquals(node, n2) ;\n }\n\n return rt;\n }", "public interface IVariable<A extends AbstractDomain<?>> extends IReferenceHolder<A>, ITerm {\n\n\t@SuppressWarnings(\"unchecked\")\n\t@Override\n\tpublic default Set<IVariable<?>> getVariables() {\n\t\tSet<IVariable<?>> values = new HashSet<>();\n\t\tvalues.add((IVariable<AbstractDomain<?>>) this);\n\t\treturn values;\n\t}\n\n\t/**\n\t * Lets the visitor visit the variable.\n\t * \n\t * @param IVariableVisitor\n\t * The visitor.\n\t */\n\tpublic void processWith(IVariableVisitor iVariableVisitor);\n\n\t/**\n\t * Returns whether it is a constant.\n\t * \n\t * @return Whether it is a constant.\n\t */\n\tpublic boolean isConstant();\n}", "GeneralTerm createGeneralTerm();", "@Override\r\n\tpublic void visit(VariableExpression variableExpression) {\n\r\n\t}", "@Override\n public R visit(ArgList n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "abstract public TermEnum terms(Term t) throws IOException;", "public String getElement()\n {\n return nodeChoice;\n }", "public void actionVAR_DECL(Node<TokenAttributes> node) {\n String tmapCode = BIB.getTmapCodeFromFile(auxTmapsDir, \"globalVarCtoJava.tmap\");\n List<Node<TokenAttributes>> nodes = BIB.tmapOneRuleCodeCall(tmapCode, node);\n if (!nodes.isEmpty()) {\n nodes.get(0).setParent(node.getParent());\n BIB.replaceNode(node, nodes.get(0));\n } else {\n tmapCode = BIB.getTmapCodeFromFile(auxTmapsDir, \"arrayCtoJava.tmap\");\n nodes = BIB.tmapOneRuleCodeCall(tmapCode, node);\n if (!nodes.isEmpty()) {\n nodes.get(0).setParent(node.getParent());\n BIB.replaceNode(node, nodes.get(0));\n }\n }\n }", "@Override\n public void visitTerminal(final TerminalNode node) {\n }", "R visitFreeVariable(Formula f, String name);", "public Potential addVariable(Node var) {\n Vector v;\n PTreeCredalSet pot;\n \n v = new Vector();\n v.addElement(var);\n pot = (PTreeCredalSet)addVariable(v);\n return pot;\n }", "public Var(String var) {\r\n this.variable = var;\r\n }", "public String getTerm(){\n return this.term;\n }", "public Node term(Node n_parent) {\r\n\r\n if (token.get(lookAheadPossition).contains(\"ident(\") || token.get(lookAheadPossition).contains(\"num(\") || token.get(lookAheadPossition).contains(\"boollit(\") || token.get(lookAheadPossition).equals(\"LP\")) {\r\n System.out.println(\":: term:if:\" + n_parent.getData());\r\n Node n_factor = this.factor(n_parent);\r\n //if (n_parent.getData().contains(\"*\")) {n_parent.setNodeChild(n_factor); }\r\n //if (n_parent.getData().contains(\"DIV\")) {n_parent.setNodeChild(n_factor); }\r\n //if (n_parent.getData().contains(\"MOD\")) {n_parent.setNodeChild(n_factor); }\r\n //if (!(n_parent.getData().equals(\"makeown\"))) {n_parent.setNodeChild(n_factor); }\r\n return (this.restTerm(n_parent, n_factor));\r\n } else {\r\n\r\n return (null);\r\n }\r\n }", "public VectorRank(SimpleVectorGraph graph){\n this.graph = graph;\n\n }", "@Override\n\tpublic Object visit(ASTPCGenSingleWord node, Object data)\n\t{\n\t\tFormulaSemantics semantics = (FormulaSemantics) data;\n\t\tif (node.jjtGetNumChildren() != 0)\n\t\t{\n\t\t\tFormulaSemanticsUtilities.setInvalid(semantics,\n\t\t\t\tgetInvalidCountReport(node, 0));\n\t\t\treturn semantics;\n\t\t}\n\t\tString varName = node.getText();\n\t\tFormatManager<?> formatManager =\n\t\t\t\tfm.getFactory().getVariableFormat(legalScope, varName);\n\t\tif (formatManager != null)\n\t\t{\n\t\t\tsemantics.setInfo(FormulaSemanticsUtilities.SEM_FORMAT,\n\t\t\t\tnew FormulaFormat(formatManager.getManagedClass()));\n\t\t}\n\t\telse\n\t\t{\n\t\t\tFormulaSemanticsUtilities.setInvalid(semantics, \"Variable: \"\n\t\t\t\t+ varName + \" was not found\");\n\t\t}\n\t\treturn semantics;\n\t}", "public abstract int getNodeType();", "DAGVariable() {\n this.var = null;\n }", "public void printNode(Node n);", "public TraceGraph(Event initEvent, Event termEvent) {\n dummyInitialNode = new EventNode(initEvent);\n dummyTerminalNode = new EventNode(termEvent);\n nodes.add(dummyInitialNode);\n nodes.add(dummyTerminalNode);\n cachedRelations = null;\n }", "@Override\n public R visit(GraphGraphPattern n, A argu) {\n R _ret = null;\n n.nodeToken.accept(this, argu);\n n.varOrIRIref.accept(this, argu);\n n.groupGraphPattern.accept(this, argu);\n return _ret;\n }", "public interface IInstanceVariable extends INameNode {\n}", "public Expression differentiate(String var) {\r\n // var might be a differentiate of other variable\r\n if (!this.toString().equalsIgnoreCase(var)) {\r\n return (Expression) new Num(0);\r\n }\r\n return (Expression) new Num(1);\r\n\r\n }", "NodeType getType();", "IntVar selectVariable(IntVar[] v) {\r\n\r\n if (v.length != 0) {\r\n int index = 0;\r\n int smallestDomain = Integer.MAX_VALUE;\r\n for(int i = 0; i< v.length-1; i++){\r\n if(v[i].domain.getSize()<smallestDomain){\r\n index = i;\r\n smallestDomain = v[i].domain.getSize();\r\n }\r\n\r\n }\r\n if(v[index].min() == v[index].max()){\r\n\r\n searchVariables = new IntVar[v.length-1];\r\n for (int i = 0; i < v.length-1; i++) {\r\n if(i<index){\r\n searchVariables[i] = v[i];\r\n }\r\n else searchVariables[i] = v[i+1];\r\n\r\n }\r\n }\r\n else{\r\n searchVariables = new IntVar[v.length];\r\n for(int i = 0; i < v.length; i++){\r\n searchVariables[i] = v[i];\r\n }\r\n }\r\n return v[index];\r\n\r\n }\r\n else {\r\n System.err.println(\"Zero length list of variables for labeling\");\r\n return new IntVar(store);\r\n }\r\n }", "void visit(Object node, String command);", "@Override\n public R visit(Consequent n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "abstract public TermEnum terms() throws IOException;", "@Override\n public R visit(NumericLiteralUnsigned n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "public void setNode_3(String node_3);", "VarAssignment createVarAssignment();", "public final E getDecisionVariable() {\n return var;\n }", "public TermToVertexCount[] getSubTermVertexMappings(String term)\n {\n /* String is not valid as-is.\n * \n * Replace and split words into parts.\n */\n term = term.replace('-', ' ');\n String [] arr = term.split(\" \");\n\n /* Remove common words */\n for(int i = 0; i < arr.length; i++)\n {\n if(arr[i].equals(\"and\"))\n {\n arr[i] = \"\";\n }\n else if(arr[i].equals(\"or\"))\n {\n arr[i] = \"\";\n }\n else if(arr[i].equals(\"to\"))\n {\n arr[i] = \"\";\n }\n else if(arr[i].equals(\"be\"))\n {\n arr[i] = \"\";\n }\n else if(arr[i].equals(\"the\"))\n {\n arr[i] = \"\";\n }\n else if(arr[i].equals(\"a\"))\n {\n arr[i] = \"\";\n }\n else if(arr[i].equals(\"of\"))\n {\n arr[i] = \"\";\n }\n else if(arr[i].equals(\"on\"))\n {\n arr[i] = \"\";\n }\n else if(arr[i].equals(\"in\"))\n {\n arr[i] = \"\";\n }\n else if(arr[i].equals(\"for\"))\n {\n arr[i] = \"\";\n }\n else if(arr[i].equals(\"with\"))\n {\n arr[i] = \"\";\n }\n else if(arr[i].equals(\"by\"))\n {\n arr[i] = \"\";\n }\n else if(arr[i].equals(\"into\"))\n {\n arr[i] = \"\";\n }\n else if(arr[i].equals(\"an\"))\n {\n arr[i] = \"\";\n }\n else if(arr[i].equals(\"is\"))\n {\n arr[i] = \"\";\n }\n else if(arr[i].equals(\"no\"))\n {\n arr[i] = \"\";\n }\n }//end: for(i)\n\n /* Create String array without common terms */\n int size = 0;\n for(int i = 0; i < arr.length; i++)\n {\n if(!arr[i].equals(\"\") && stem)\n { // Stem if required\n arr[i] = PorterStemmerTokenizerFactory.stem(arr[i]);\n }\n \n // Check for valid term\n if(!arr[i].equals(\"\") && getVertexMappings(arr[i]) != null)\n {\n size++;\n }\n }//end: for(i)\n \n if(size == 0)\n { /* No valid terms found */\n return null;\n }\n \n /* At least one valid term was found */\n TermToVertexCount[] words = new TermToVertexCount[size];\n int pos = 0;\n \n for(int i = 0; i < arr.length; i++)\n {\n // Check for valid term\n if(!arr[i].equals(\"\"))\n {\n // Get mappings for sub-term\n TermToVertexCount[] temp = getVertexMappings(arr[i]);\n \n if(temp != null)\n {\n words[pos] = temp[0];\n pos++;\n }//end: if(temp)\n \n }//end: if(!arr[i])\n }//end: for(i)\n \n return words; \n }", "public void setNode_1(String node_1);", "public abstract void setSelectedNode(String n);", "OntologyTerm getRoot();", "interface Node<K, V> {\n /** Returns the key of current node */\n K getKey();\n /** Returns the value of current node */\n V getValue();\n }", "SingleTerm(Term t)\n {\n term = t;\n }", "@Override\n\tpublic void processNode(DirectedGraphNode node) {\n\t\tSystem.out.print(node.getLabel()+\" \");\n\t}", "Node(int value, String name) {\n this.value = value;\n this.name = name;\n }", "@Override\n\t\t\tpublic Ast var(Var ast, Void arg) {\n\t\t\t\treturn super.var(ast, arg);\n\t\t\t}", "protected interface Variation {\r\n String vary(String root, int n) throws Exception;\r\n }", "public Node term()\r\n\t{\r\n\t\tNode lhs = negaposi();\r\n\t\tif(lhs!=null)\r\n\t\t{\r\n\t\t\tint index = lexer.getPosition();\r\n\t\t\tLexer.Token token = lexer.getToken();\r\n\t\t\twhile(token == Lexer.Token.TIMES\r\n\t\t\t\t||token == Lexer.Token.DIVIDE)\r\n\t\t\t{\r\n\t\t\t\tNode rhs = negaposi(); \r\n\t\t\t\tif(rhs!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tif(token == Lexer.Token.TIMES)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tlhs = new Mul(lhs,rhs);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(token == Lexer.Token.DIVIDE)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tlhs = new Div(lhs,rhs);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tindex = lexer.getPosition();\r\n\t\t\t\t\ttoken = lexer.getToken();\r\n\t\t\t\t}\r\n\t\t\t\telse break;\r\n\t\t\t}\r\n\t\t\tlexer.setPosition(index);\r\n\t\t}\r\n\t\treturn lhs;\r\n\t}", "public TraceGraph(Collection<EventNode> nodes, Event initEvent,\n Event termEvent) {\n this(initEvent, termEvent);\n this.nodes.addAll(nodes);\n }", "public void mytreevisit(RuleContext ctx) {\n List<String> varlist = new ArrayList<String>();\n visit(ctx,varlist);\n }" ]
[ "0.67866313", "0.63098234", "0.6130192", "0.6073599", "0.58267164", "0.5615821", "0.55954397", "0.5567327", "0.5533106", "0.5487391", "0.54217494", "0.5413759", "0.53995734", "0.5375659", "0.5374031", "0.5352851", "0.52989227", "0.5296608", "0.5289653", "0.52802163", "0.5266036", "0.5221836", "0.5177058", "0.516192", "0.5159759", "0.5156182", "0.5154782", "0.5144181", "0.5143532", "0.51276875", "0.5122135", "0.5096379", "0.5087084", "0.50817543", "0.50722015", "0.5061323", "0.50458235", "0.50428075", "0.50402564", "0.5016957", "0.5007412", "0.50033706", "0.49888122", "0.49835613", "0.49832487", "0.4980153", "0.49767098", "0.49625084", "0.49581128", "0.4953481", "0.49287", "0.49285868", "0.4922195", "0.49213076", "0.49208167", "0.49183184", "0.49158683", "0.4908169", "0.4903396", "0.49031135", "0.48926115", "0.48925915", "0.48760432", "0.48717496", "0.48697066", "0.4858803", "0.48415175", "0.4838428", "0.4827366", "0.48257938", "0.479745", "0.47867894", "0.4786467", "0.47862285", "0.47793305", "0.47737575", "0.47701102", "0.47670865", "0.47634116", "0.4762937", "0.47576356", "0.47520065", "0.4750947", "0.4750837", "0.47485623", "0.47398704", "0.47368404", "0.47328362", "0.47317496", "0.47305968", "0.47265342", "0.47006685", "0.4698295", "0.46928754", "0.4692807", "0.46922866", "0.46886873", "0.4687886", "0.46855778", "0.46839514" ]
0.68267906
0
nodeChoice > Var() | IRIref()
@Override public R visit(VarOrIRIref n, A argu) { R _ret = null; n.nodeChoice.accept(this, argu); return _ret; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public R visit(VarOrTerm n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "Node getVariable();", "public interface IInstanceVariable extends INameNode {\n}", "@Override\n public R visit(IRIref n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "public interface IVariable<A extends AbstractDomain<?>> extends IReferenceHolder<A>, ITerm {\n\n\t@SuppressWarnings(\"unchecked\")\n\t@Override\n\tpublic default Set<IVariable<?>> getVariables() {\n\t\tSet<IVariable<?>> values = new HashSet<>();\n\t\tvalues.add((IVariable<AbstractDomain<?>>) this);\n\t\treturn values;\n\t}\n\n\t/**\n\t * Lets the visitor visit the variable.\n\t * \n\t * @param IVariableVisitor\n\t * The visitor.\n\t */\n\tpublic void processWith(IVariableVisitor iVariableVisitor);\n\n\t/**\n\t * Returns whether it is a constant.\n\t * \n\t * @return Whether it is a constant.\n\t */\n\tpublic boolean isConstant();\n}", "@Override\n public R visit(SparqlString n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "public VariableNode(String attr)\n {\n this.name = attr;\n }", "VarReference createVarReference();", "@Override\n public R visit(GraphTerm n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "public interface GlobalNode extends Node{\n\n VariableName[] getVariableNames();\n\n}", "@Override\n public R visit(TriplesNode n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "@Override\n public R visit(Verb n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "public interface AssignmentNode extends StackOperationNode {\n\n TemporaryVariableName getValueName();\n\n}", "@Override String opStr() { return \"var\"; }", "public interface TeaVariable extends TeaNamedElement {\n boolean hasInitializer();\n TeaExpression getInitializer();\n void setInitializer(TeaExpression expr) throws IncorrectOperationException;\n TeaType getType();\n// boolean isConst();\n ASTNode findNameIdentifier();\n\n TeaReferenceExpression findNameExpression();\n}", "public interface Node {\n Oper oper();\n CNFOrdinal toCNF();\n}", "@Override\n\t\t\tpublic Ast var(Var ast, Void arg) {\n\t\t\t\treturn super.var(ast, arg);\n\t\t\t}", "@Override\n public R visit(IRIrefOrFunction n, A argu) {\n R _ret = null;\n n.iRIref.accept(this, argu);\n n.nodeOptional.accept(this, argu);\n return _ret;\n }", "public interface IOVarValue {\n\n}", "public interface Binding {\n\n /**\n * Get the declared type of the variable\n * @return the declared type\n */\n\n public SequenceType getRequiredType();\n\n /**\n * Evaluate the variable\n * @param context the XPath dynamic evaluation context\n * @return the result of evaluating the variable\n */\n\n public ValueRepresentation evaluateVariable(XPathContext context) throws XPathException;\n\n /**\n * Indicate whether the binding is local or global. A global binding is one that has a fixed\n * value for the life of a query or transformation; any other binding is local.\n * @return true if the binding is global\n */\n\n public boolean isGlobal();\n\n /**\n * If this is a local variable held on the local stack frame, return the corresponding slot number.\n * In other cases, return -1.\n * @return the slot number on the local stack frame\n */\n\n public int getLocalSlotNumber();\n\n /**\n * Get the name of the variable\n * @return the name of the variable, as a structured QName\n */\n\n public StructuredQName getVariableQName();\n\n}", "@Override\n public R visit(Constraint n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "VarAssignment createVarAssignment();", "@Override\n public R visit(PrimaryExpression n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "@Override\n public R visit(ArgList n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "public Snippet visit(Type n, Snippet argu) {\n\t Snippet _ret=null;\n\t _ret = n.nodeChoice.accept(this, argu);\n\t return _ret;\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 }", "VariableRef createVariableRef();", "@Override\n public void visit(VariableEvalNode variableEvalNode) {\n }", "@Override\n public R visit(NumericLiteralUnsigned n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "public VariType visit(PrimaryExpression n, Table argu) { \n\t VariType _ret=null;\n\t _ret = n.f0.accept(this, argu);\n\t if(n.f0.choice instanceof Identifier) {\n\t \t NodeToken nodetoken = ((Identifier)(n.f0.choice)).f0;\n\t \t MethodTable methodtable = (MethodTable)argu;\n\t \t Vari vari = methodtable.getvari(nodetoken.tokenImage);\n\t \t if(vari != null)\n\t \t\t return vari.vari_type;\n\t \t ClassTable classtable = methodtable.classtable;\n\t \t vari = classtable.getvari(nodetoken.tokenImage);\n\t \t if(vari != null)\n\t \t\t return vari.vari_type;\n\t \t PrintError.errorexist = true;\n\t \t String emsg = \"undefined variable \\\"\"+nodetoken.tokenImage+\"\\\"\";\n\t \t PrintError.print(emsg, nodetoken.beginLine, nodetoken.beginColumn, 1);\n\t \t _ret = new VariType();\n\t \t _ret.type = \"Undefined\";\n\t }\n\t return _ret;\n\t }", "public Snippet visit(ReturnType n, Snippet argu) {\n\t Snippet _ret=null;\n\t _ret = n.nodeChoice.accept(this, argu);\n\t return _ret;\n\t }", "Variable createVariable();", "Variable createVariable();", "public Element getPredicateVariable();", "@Override\n\tpublic Object visit(ASTVar node, Object data) {\n\t\tint indent = (Integer) data;\n\t\tprintIndent(indent);\n\t\tSystem.out.print(node.varName);\n\t\treturn null;\n\t}", "@Override\n\tpublic void visit(UserVariable arg0) {\n\t\t\n\t}", "Variable getTargetVariable();", "@Override\n public R visit(GraphNode n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "public void testBoundToVariable()\n throws Exception\n {\n String varname =\"ITEM\";\n String id = \"occ_hermes1\";\n Occurrence occ = (Occurrence) tm.getObjectByID(id);\n // resolver shall resolve by id\n tag.setOccurrence(occ);\n\n // resolved topic shall be stored in\n // the variable named TOPIC\n tag.setVar(varname);\n \n // resolve\n setScriptForTagBody(tag);\n tag.doTag(null);\n \n // the item should be stored in the variable\n assertEquals(occ, ctx.getVariable(varname));\n \n // make a new tag, bound to the same variable \n // set resolvement to non existant topic\n tag = new UseOccurrenceTag();\n tag.setContext(ctx);\n tag.setVar(varname);\n tag.setId(\"nonexistantntifd\");\n\n // resolve\n tag.doTag(null);\n\n // the variable should be resetted\n assertNull(ctx.getVariable(varname));\n \n }", "public LlvmValue visit(Formal n){\n\t\n\t\tSystem.out.format(\"formal**********\\n\");\n\t\t\n\t\tStringBuilder name = new StringBuilder();\n\t\t\n\t\tname.append(\"%\");\n\t\tname.append(n.name.s);\n\t\t\n\t\t//variable -> %name, com tipo n.type\n\t\tLlvmNamedValue variable = new LlvmNamedValue(name.toString(), (LlvmType)n.type.accept(this));\n\t\t\n\t\treturn variable;\t\t\n\t}", "private void createImplicitVariableType(XtextResource resource, IAcceptor<? super ICodeMining> acceptor) {\n\t\tcreateImplicitVarValType(resource, acceptor, XtendVariableDeclaration.class,\n\t\t\tit -> it.getType(),\n\t\t\tit -> {\n\t\t\t\tLightweightTypeReference type = getLightweightType(it.getRight());\n\t\t\t\tif (type.isAny()) {\n\t\t\t\t\ttype = getTypeForVariableDeclaration(it.getRight());\n\t\t\t\t}\n\t\t\t\treturn type.getSimpleName();\n\t\t\t},\n\t\t\tit -> it.getRight(),\n\t\t\t() -> this.grammar.getXVariableDeclarationAccess().getRightAssignment_3_1());\n\t}", "@Override\n public String visit(VarType n, Object arg) {\n return null;\n }", "protected interface Variation {\r\n String vary(String root, int n) throws Exception;\r\n }", "@Override\n public R visit(NumericLiteral n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "@Override\n public R visit(GraphPatternNotTriples n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "VarRef createVarRef();", "public ActRuVariable() {\n this(DSL.name(\"act_ru_variable\"), null);\n }", "R visitFreeVariable(Formula f, String name);", "public abstract IDecisionVariable getVariable();", "@Override\n public R visit(Consequent n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "@Override\n public R visit(BuiltInCall n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "@Override\n public void visitSelect(JCTree.JCFieldAccess jcFieldAccess) {\n Symbol symbol = jcFieldAccess.sym;\n\n if (symbol instanceof VarSymbol\n && symbol.getEnclosingElement() != null // The R.resourceType class\n && symbol.getEnclosingElement().getEnclosingElement() != null // The R class\n && symbol.getEnclosingElement().getEnclosingElement().enclClass() != null) {\n\n ResourceValue result = parseResourceSymbol((VariableElement) symbol);\n if (result != null) {\n results.add(result);\n }\n }\n }", "public VariType visit(VarDeclaration n, Table argu) {\n\t VariType _ret=null;\n\t n.f0.accept(this, argu);\n\t n.f1.accept(this, argu);\n\t n.f2.accept(this, argu);\n\t return _ret;\n\t }", "public int indexVar(Node node) {\n Expr ee = getFilter().getExp();\n String name = node.getLabel();\n for (int i = 0; i < 2; i++) {\n if (ee.getExp(i).type() == ExprType.VARIABLE\n && ee.getExp(i).getLabel().equals(name)) {\n return i;\n }\n }\n return -1;\n }", "int getVar() {\n\n return super.var; //Line n3. refer to its immediate parents variable of var\n }", "VariableExp createVariableExp();", "public R visit(com.biosimilarity.lift.lib.scalar.Absyn.Mention p, A arg)\n {\n\n p.variableexpr_.accept(new VariableExprVisitor<R,A>(), arg);\n\n return null;\n }", "public VariType visit(NodeList n, Table argu) {\n\t VariType _ret=null;\n\t int _count=0;\n\t for ( Enumeration<Node> e = n.elements(); e.hasMoreElements(); ) {\n\t e.nextElement().accept(this,argu);\n\t _count++;\n\t }\n\t return _ret;\n\t }", "@Override\r\n\tpublic void visit(VariableExpression variableExpression) {\n\r\n\t}", "@Override\n public R visit(UnaryExpression n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "@Override\n public R visit(GraphGraphPattern n, A argu) {\n R _ret = null;\n n.nodeToken.accept(this, argu);\n n.varOrIRIref.accept(this, argu);\n n.groupGraphPattern.accept(this, argu);\n return _ret;\n }", "public ConceptAtom(IRI iri)\n {\n super(iri);\n this.strVariable = \"\"; \n }", "public interface Node extends TreeComponent {\n /**\n * The types of decision tree nodes available.\n */\n enum NodeType {\n Internal,\n Leaf\n }\n\n /**\n * Gets the type of this node.\n * @return The type of node.\n */\n NodeType getType();\n\n void print();\n\n String getClassLabel(DataTuple tuple);\n}", "public Var(String var) {\r\n this.variable = var;\r\n }", "Aliasing getVariable();", "public VariableIF createVariable(VariableDecl decl);", "public String getNodeValue ();", "public StructuredQName getVariableQName();", "public interface VariableIF extends VariableSimpleIF {\r\n public java.lang.String getFullName();\r\n public java.lang.String getFullNameEscaped();\r\n public java.lang.String getShortName();\r\n public void getNameAndDimensions(java.util.Formatter result, boolean useFullName, boolean strict);\r\n\r\n public boolean isUnlimited();\r\n public boolean isUnsigned();\r\n public ucar.ma2.DataType getDataType();\r\n public int getRank();\r\n public boolean isScalar();\r\n public long getSize();\r\n public int getElementSize();\r\n public int[] getShape();\r\n\r\n public java.util.List<Dimension> getDimensions();\r\n public ucar.nc2.Dimension getDimension(int index);\r\n public int findDimensionIndex(java.lang.String dimName);\r\n\r\n public java.util.List<Attribute> getAttributes();\r\n public ucar.nc2.Attribute findAttribute(java.lang.String attName);\r\n public ucar.nc2.Attribute findAttributeIgnoreCase(java.lang.String attName);\r\n\r\n public ucar.nc2.Group getParentGroup();\r\n public ucar.nc2.Variable section(java.util.List<Range> ranges) throws ucar.ma2.InvalidRangeException;\r\n public Section getShapeAsSection();\r\n public java.util.List<Range> getRanges();\r\n\r\n public ucar.ma2.Array read(int[] origin, int[] shape) throws java.io.IOException, ucar.ma2.InvalidRangeException;\r\n public ucar.ma2.Array read(java.lang.String rangeSpec) throws java.io.IOException, ucar.ma2.InvalidRangeException;\r\n public ucar.ma2.Array read(ucar.ma2.Section section) throws java.io.IOException, ucar.ma2.InvalidRangeException;\r\n public ucar.ma2.Array read() throws java.io.IOException;\r\n\r\n public boolean isCoordinateVariable();\r\n public boolean isMemberOfStructure();\r\n public boolean isVariableLength();\r\n public boolean isMetadata();\r\n public ucar.nc2.Structure getParentStructure();\r\n\r\n public String getDescription();\r\n public String getUnitsString();\r\n\r\n // use only if isMemberOfStructure\r\n public java.util.List<Dimension> getDimensionsAll();\r\n\r\n // use only if isScalar()\r\n public byte readScalarByte() throws java.io.IOException;\r\n public short readScalarShort() throws java.io.IOException;\r\n public int readScalarInt() throws java.io.IOException;\r\n public long readScalarLong() throws java.io.IOException;\r\n public float readScalarFloat() throws java.io.IOException;\r\n public double readScalarDouble() throws java.io.IOException;\r\n public java.lang.String readScalarString() throws java.io.IOException;\r\n\r\n // debug\r\n public java.lang.String toStringDebug();\r\n}", "public VariableNode(String name) {\n\t\tthis.name = name;\n\t}", "Var getVar();", "public Snippet visit(NonArrayType n, Snippet argu) {\n\t Snippet _ret=null;\n\t \n\t _ret =n.nodeChoice.accept(this, argu); \n\t\t\t_ret.expType.typeName = _ret.returnTemp;\n\t return _ret;\n\t }", "public static void QuestionOne(Node n) {\n\n\n\n }", "public Snippet visit(Expression n, Snippet argu) {\n\t Snippet _ret=null;\n\t _ret = n.nodeChoice.accept(this, argu);\n\t return _ret;\n\t }", "public Code visitVariableNode(ExpNode.VariableNode node) {\n beginGen(\"Variable\");\n SymEntry.VarEntry var = node.getVariable();\n Code code = new Code();\n code.genMemRef(staticLevel - var.getLevel(), var.getOffset());\n endGen(\"Variable\");\n return code;\n }", "@Override\r\n\tpublic Node visitVarType(VarTypeContext ctx) {\n\t\treturn super.visitVarType(ctx);\r\n\t}", "public String getVariable();", "public Snippet visit(TopLevelDeclaration n, Snippet argu) {\n\t Snippet _ret=null;\n\t n.nodeChoice.accept(this, argu);\n\t return _ret;\n\t }", "public interface Function extends Expression {\n\n int nVar();\n\n Expression var(int i);\n\n //boolean containsUnknown(Unknown u);\n}", "@Override\n public String visit(VariableDeclarationExpr n, Object arg) {\n return null;\n }", "Variable(String _var) {\n this._var = _var;\n }", "@Override\n public R visit(DatasetClause n, A argu) {\n R _ret = null;\n n.nodeToken.accept(this, argu);\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "public interface Sensor extends ExprNode {}", "public String getElement()\n {\n return nodeChoice;\n }", "public Free( Node n ) {\n\t\tsuper( );\n\t\tvar = (Node_Variable) n;\n\t\tisArgument = false;\n\t\tisListed = false;\n\t}", "private cat.footoredo.mx.ir.Variable ref (Entity entity) {\n return new cat.footoredo.mx.ir.Variable(varType(entity.getType()), entity);\n }", "public ExprVar(FEContext context, String name)\n {\n super(context);\n this.name = name;\n }", "VariableDeclarationWithInitCS getResultVariable();", "public abstract int getNodeType();", "public interface Node extends Serializable {\n\n\tvoid setOwner(Object owner);\n Object getOwner();\n\n String getName();\n Node getChild(int i);\n List<Node> childList();\n\n Node attach(int id, Node n) throws VetoTypeInduction;\n void induceOutputType(Class type) throws VetoTypeInduction;\n int getInputCount();\n\tClass getInputType(int id);\n List<Class> getInputTypes();\n Class getOutputType();\n Tuple.Two<Class,List<Class>> getType();\n\n Object evaluate();\n\n boolean isTerminal();\n\n <T extends Node> T copy();\n String debugString(Set<Node> set);\n}", "public static VariableSelector<IntVar> lexico_var_selector() {\n return new InputOrder<>();\n }", "@Override\n\tpublic Expr visit(VarExpr e) {\n\t\treturn e;\n\t}", "Object visitReference(ReferenceNode node, Object state);", "public Expression differentiate(String var) {\r\n // var might be a differentiate of other variable\r\n if (!this.toString().equalsIgnoreCase(var)) {\r\n return (Expression) new Num(0);\r\n }\r\n return (Expression) new Num(1);\r\n\r\n }", "public void processWith(IVariableVisitor iVariableVisitor);", "@Override\n public R visit(Bind n, A argu) {\n R _ret = null;\n n.nodeToken.accept(this, argu);\n n.nodeToken1.accept(this, argu);\n n.expression.accept(this, argu);\n n.nodeToken2.accept(this, argu);\n n.var.accept(this, argu);\n n.nodeToken3.accept(this, argu);\n return _ret;\n }", "AliasVariable createAliasVariable();", "@Override\n public R visit(TriplesSameSubject n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "public Literal getDeepLiteral(XDI3Segment contextNodeXri);", "public interface QuotedL1Node {\n\n}" ]
[ "0.6850314", "0.68221253", "0.6730645", "0.63431036", "0.6205877", "0.6130948", "0.60096854", "0.59937453", "0.5969359", "0.5868959", "0.58227897", "0.5809543", "0.57936484", "0.57629454", "0.5721647", "0.56741214", "0.5600324", "0.558336", "0.55809444", "0.5568778", "0.55609685", "0.5535158", "0.55159056", "0.54708713", "0.54588443", "0.54372454", "0.5430055", "0.5429527", "0.5415377", "0.5412962", "0.53973603", "0.53958654", "0.53958654", "0.53725815", "0.5371943", "0.53539866", "0.5322613", "0.53007835", "0.52983147", "0.5292245", "0.527594", "0.52744234", "0.52728474", "0.52663475", "0.52598864", "0.5257135", "0.52549005", "0.5251878", "0.52380335", "0.52360433", "0.52287376", "0.5220086", "0.5218153", "0.52150303", "0.5209065", "0.5203603", "0.5203602", "0.5197119", "0.51962155", "0.51950705", "0.51934105", "0.5187332", "0.5184202", "0.51823676", "0.5181841", "0.5180584", "0.5176668", "0.5175656", "0.51723105", "0.51581854", "0.51564693", "0.5154037", "0.51513904", "0.51279217", "0.51243997", "0.51214087", "0.5116035", "0.5095075", "0.5094812", "0.5085863", "0.50776297", "0.50672454", "0.5065853", "0.5064028", "0.50637835", "0.50596446", "0.5050173", "0.50501174", "0.50465983", "0.5046494", "0.50456136", "0.503256", "0.50319296", "0.5024604", "0.50159353", "0.5015281", "0.5007585", "0.499618", "0.4988038", "0.49880284" ]
0.7345787
0
nodeChoice > IRIref() | RDFLiteral() | NumericLiteral() | BooleanLiteral() | BlankNode() | PutativeLiteral() |
@Override public R visit(GraphTerm n, A argu) { R _ret = null; n.nodeChoice.accept(this, argu); return _ret; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public R visit(SparqlString n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "@Override\n public R visit(IRIref n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "@Override\n public R visit(VarOrIRIref n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "public interface Node {\n Oper oper();\n CNFOrdinal toCNF();\n}", "@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 }", "public String getElement()\n {\n return nodeChoice;\n }", "@Override\n public R visit(TriplesNode n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "@Override\n public R visit(NumericLiteral n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "@Override\n public R visit(PrimaryExpression n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "@Override\n public R visit(VarOrTerm n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "public interface Node extends TreeComponent {\n /**\n * The types of decision tree nodes available.\n */\n enum NodeType {\n Internal,\n Leaf\n }\n\n /**\n * Gets the type of this node.\n * @return The type of node.\n */\n NodeType getType();\n\n void print();\n\n String getClassLabel(DataTuple tuple);\n}", "@Override\n public R visit(NumericLiteralUnsigned n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "@Override\n public R visit(GraphNode n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "@Override\n public R visit(Verb n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "@Override\n public R visit(GraphPatternNotTriples n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "public abstract int getNodeType();", "@Override\n public R visit(Constraint n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "public abstract AbstractNodeType getType();", "public abstract String getSelectedNode();", "@Override\n public R visit(ArgList n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "@Override\n public R visit(Consequent n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "NodeType getType();", "public boolean isRealNode();", "public boolean isRealNode();", "@Override\n public R visit(NumericLiteralPositive n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "private BNode generateBlankNodeTermType(TermMap termMap, String value) {\n \t\tif (value == null)\n \t\t\treturn vf.createBNode();\n \t\telse\n \t\t\treturn vf.createBNode(value);\n \t}", "public static void QuestionOne(Node n) {\n\n\n\n }", "NetworkNodeType getIsA();", "public interface QuotedL1Node {\n\n}", "public Snippet visit(Type n, Snippet argu) {\n\t Snippet _ret=null;\n\t _ret = n.nodeChoice.accept(this, argu);\n\t return _ret;\n\t }", "@Override\n public R visit(BuiltInCall n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "public interface Node extends Serializable {\n\n\tvoid setOwner(Object owner);\n Object getOwner();\n\n String getName();\n Node getChild(int i);\n List<Node> childList();\n\n Node attach(int id, Node n) throws VetoTypeInduction;\n void induceOutputType(Class type) throws VetoTypeInduction;\n int getInputCount();\n\tClass getInputType(int id);\n List<Class> getInputTypes();\n Class getOutputType();\n Tuple.Two<Class,List<Class>> getType();\n\n Object evaluate();\n\n boolean isTerminal();\n\n <T extends Node> T copy();\n String debugString(Set<Node> set);\n}", "public Snippet visit(ReturnType n, Snippet argu) {\n\t Snippet _ret=null;\n\t _ret = n.nodeChoice.accept(this, argu);\n\t return _ret;\n\t }", "public short getNodeType();", "public INodeType getNodeType();", "public String getNodeValue ();", "public NodeType getNodeType();", "@Override\n public R visit(UnaryExpression n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "@Override\n public R visit(TriplesSameSubject n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "@Override\n public TypeNode evaluate() {\n return this.hijo.evaluate().toBoolNode();\n }", "public BiType getType() {\n return BiType.NODE;\n }", "@Override\r\n\t\tpublic short getNodeType()\r\n\t\t\t{\n\t\t\t\treturn 0;\r\n\t\t\t}", "Node getNode();", "public void setNodeType(String nodeType)\n {\n this.nodeType = nodeType;\n }", "@Test\n public void basicConditionTest() throws Exception {\n\n assertThat(getNode(\"1 == 2\", \"expr\").render(null), is((Object)false));\n assertThat(getNode(\"1 == 1\", \"expr\").render(null), is((Object)true));\n }", "@org.junit.Test\n public void constrCompelemNodeid5() {\n final XQuery query = new XQuery(\n \"for $x in <a>text</a>, $y in element elem {$x/text()} return exactly-one($y/text()) is exactly-one($x/text())\",\n ctx);\n try {\n result = new QT3Result(query.value());\n } catch(final Throwable trw) {\n result = new QT3Result(trw);\n } finally {\n query.close();\n }\n test(\n assertBoolean(false)\n );\n }", "Term getNodeTerm();", "public void mutateNonterminalNode() {\n Node[] nodes = getRandomNonterminalNode(false);\n if (nodes != null)\n ((CriteriaNode) nodes[1]).randomizeIndicator();\n }", "@Override\n\tpublic int getNodeType() {\n\t\treturn nodeType;\n\t}", "public abstract Node getNode();", "uk.ac.cam.acr31.features.javac.proto.GraphProtos.FeatureNode.NodeType getType();", "public void setNode_1(String node_1);", "public static interface Node {\n int getValue();\n List<Node> getChildren();\n }", "abstract protected UiElementNode getRootNode();", "Node(int value, String name) {\n this.value = value;\n this.name = name;\n }", "public void testWriteRDF() {\n\n\t\trunQuery(new LinkQueryTerm(relationVocabulary.is_a(),NEURON), \"subclass\");\n\n\t\trunQuery(new LinkQueryTerm(MELANOCYTE),\"any link\");\n\t\t\n\t\trunQuery(new LinkQueryTerm(relationVocabulary.part_of(),MELANOCYTE),\"part_of (class)\");\n\t\t\n\t\trunQuery(new LinkQueryTerm(relationVocabulary.inheres_in(),\tnew LinkQueryTerm(relationVocabulary.part_of(),HUMAN_EYE)),\"phenotype in some part of the eye\");\n\t\t\n\t\trunQuery(new AnnotationLinkQueryTerm(MELANOCYTE),\"anything annotated to melanocyte\");\n\t\t\n\t\trunQuery(new AnnotationLinkQueryTerm(new LinkQueryTerm(relationVocabulary.inheres_in(),\tMELANOCYTE)),\"anything annotated to a melanocyte phenotype\");\n\t\t\n\t\tQueryTerm classQt =\tnew BooleanQueryTerm(new LinkQueryTerm(relationVocabulary.inheres_in(),NEURON),\tnew LinkQueryTerm(relationVocabulary.inheres_in(),BEHAVIOR));\n\t\t\n\t\trunQuery(new AnnotationLinkQueryTerm(classQt),\"boolean query\");\n\n\n\t}", "public interface Node {\n public int arityOfOperation();\n public String getText(int depth) throws CalculationException;\n public double getResult() throws CalculationException;\n public boolean isReachable(int depth);\n public List<Node> getAdjacentNodes();\n public String getTitle();\n public void setDepth(int depth);\n}", "abstract Color nodeColor(String node);", "public interface NodeTypeMatcher {\n /**\n * Determines whether two Nodes are eligible for comparison\n * based on their node type.\n */\n boolean canBeCompared(short controlType, short testType);\n }", "TermNode() {\n this.fac = new FacNode();\n this.term = null;\n this.selection = 1;\n }", "private NodeType(int type, java.lang.String value) {\n super();\n this.type = type;\n this.stringValue = value;\n }", "public boolean isLiteralNodeSelected() {\n ASTNode[] nodes = getSelectedNodes();\n if (nodes.length != 1)\n return false;\n ASTNode node = nodes[0];\n switch(node.getNodeType()) {\n case ASTNode.BOOLEAN_LITERAL:\n case ASTNode.CHARACTER_LITERAL:\n case ASTNode.NULL_LITERAL:\n case ASTNode.NUMBER_LITERAL:\n return true;\n default:\n return false;\n }\n }", "private RDF_Term testTerm(Node node, PrefixMap pmap, boolean asValue) {\n RDF_Term rt = ProtobufConvert.convert(node, pmap, asValue) ;\n\n if ( node == null) {\n assertTrue(rt.hasUndefined());\n return rt;\n }\n\n switch (rt.getTermCase()) {\n// message RDF_Term {\n// oneof term {\n// RDF_IRI iri = 1 ;\n// RDF_BNode bnode = 2 ;\n// RDF_Literal literal = 3 ;\n// RDF_PrefixName prefixName = 4 ;\n// RDF_VAR variable = 5 ;\n// RDF_Triple tripleTerm = 6 ;\n// RDF_ANY any = 7 ;\n// RDF_UNDEF undefined = 8 ;\n// RDF_REPEAT repeat = 9 ;\n//\n// // Value forms of literals.\n// int64 valInteger = 20 ;\n// double valDouble = 21 ;\n// RDF_Decimal valDecimal = 22 ;\n// }\n// }\n case IRI : {\n RDF_IRI iri = rt.getIri() ;\n assertEquals(node.getURI(), iri.getIri()) ;\n break;\n }\n case BNODE : {\n RDF_BNode bnode = rt.getBnode() ;\n assertEquals(node.getBlankNodeLabel(), bnode.getLabel()) ;\n break;\n }\n case LITERAL : {\n RDF_Literal lit = rt.getLiteral() ;\n assertEquals(node.getLiteralLexicalForm(), lit.getLex()) ;\n\n if (JenaRuntime.isRDF11) {\n // RDF 1.1\n if ( Util.isSimpleString(node) ) {\n assertTrue(lit.getSimple());\n // Protobug default is \"\"\n assertNullPB(lit.getDatatype()) ;\n assertEquals(RDF_PrefixName.getDefaultInstance(), lit.getDtPrefix());\n assertNullPB(lit.getLangtag()) ;\n } else if ( Util.isLangString(node) ) {\n assertFalse(lit.getSimple());\n assertNullPB(lit.getDatatype()) ;\n assertEquals(RDF_PrefixName.getDefaultInstance(), lit.getDtPrefix());\n assertNotSame(\"\", lit.getLangtag()) ;\n }\n else {\n assertFalse(lit.getSimple());\n // Regular typed literal.\n assertTrue(lit.getDatatype() != null || lit.getDtPrefix() != null );\n assertNullPB(lit.getLangtag()) ;\n }\n } else {\n // RDF 1.0\n if ( node.getLiteralDatatype() == null ) {\n if ( Util.isLangString(node ) ) {\n assertFalse(lit.getSimple());\n assertNullPB(lit.getDatatype()) ;\n assertNull(lit.getDtPrefix()) ;\n assertNotSame(\"\", lit.getLangtag()) ;\n } else {\n assertTrue(lit.getSimple());\n assertNullPB(lit.getDatatype()) ;\n assertEquals(RDF_PrefixName.getDefaultInstance(), lit.getDtPrefix());\n assertNullPB(lit.getLangtag()) ;\n }\n } else {\n assertTrue(lit.getDatatype() != null || lit.getDtPrefix() != null );\n }\n }\n break;\n }\n case PREFIXNAME : {\n assertNotNull(rt.getPrefixName().getPrefix()) ;\n assertNotNull(rt.getPrefixName().getLocalName()) ;\n String x = pmap.expand(rt.getPrefixName().getPrefix(), rt.getPrefixName().getLocalName());\n assertEquals(node.getURI(),x);\n break;\n }\n case VARIABLE :\n assertEquals(node.getName(), rt.getVariable().getName());\n break;\n case TRIPLETERM : {\n RDF_Triple encTriple = rt.getTripleTerm();\n Triple t = node.getTriple();\n RDF_Term rt_s = testTerm(t.getSubject(), pmap, asValue);\n RDF_Term rt_p = testTerm(t.getPredicate(), pmap, asValue);\n RDF_Term rt_o = testTerm(t.getObject(), pmap, asValue);\n assertEquals(encTriple.getS(), rt_s);\n assertEquals(encTriple.getP(), rt_p);\n assertEquals(encTriple.getO(), rt_o);\n break;\n }\n case ANY :\n assertEquals(Node.ANY, node);\n case REPEAT :\n break;\n case UNDEFINED :\n assertNull(node);\n return rt;\n case VALINTEGER : {\n long x = rt.getValInteger();\n assertTrue(integerSubTypes.contains(node.getLiteralDatatype()));\n //assertEquals(node.getLiteralDatatype(), XSDDatatype.XSDinteger);\n long x2 = Long.parseLong(node.getLiteralLexicalForm());\n assertEquals(x,x2);\n break;\n }\n case VALDOUBLE : {\n double x = rt.getValDouble();\n assertEquals(node.getLiteralDatatype(), XSDDatatype.XSDdouble);\n double x2 = Double.parseDouble(node.getLiteralLexicalForm());\n assertEquals(x, x2, 0.01);\n break;\n }\n case VALDECIMAL : {\n assertEquals(node.getLiteralDatatype(), XSDDatatype.XSDdecimal);\n NodeValue nv = NodeValue.makeNode(node);\n assertTrue(nv.isDecimal());\n\n long value = rt.getValDecimal().getValue() ;\n int scale = rt.getValDecimal().getScale() ;\n BigDecimal d = BigDecimal.valueOf(value, scale) ;\n assertEquals(nv.getDecimal(), d);\n break;\n }\n case TERM_NOT_SET :\n break;\n }\n\n // And reverse\n if ( ! asValue ) {\n // Value based does not preserve exact datatype or lexical form.\n Node n2 = ProtobufConvert.convert(rt, pmap);\n assertEquals(node, n2) ;\n }\n\n return rt;\n }", "@org.junit.Test\n public void constrCompelemNodeid1() {\n final XQuery query = new XQuery(\n \"for $x in <a/>, $y in element elem {$x} return exactly-one($y/a) is $x\",\n ctx);\n try {\n result = new QT3Result(query.value());\n } catch(final Throwable trw) {\n result = new QT3Result(trw);\n } finally {\n query.close();\n }\n test(\n assertBoolean(false)\n );\n }", "public interface ATypeCheckNode {}", "boolean hasIsNodeOf();", "public INode addOrGetNode(String label);", "public Node() {}", "public Node() {}", "public Node() {}", "public Node() {}", "public Snippet visit(TypeAnnotation n, Snippet argu) {\n\t Snippet _ret= new Snippet(\"\",\"\",null,false);\n\t _ret = n.nodeChoice.accept(this, argu);\n\t return _ret;\n\t }", "public TaxoNode(\r\n\t\t\tString\t\tname,\r\n\t\t\tString\t\tdisplayName,\r\n\t\t\tString\t\tcontrolName,\r\n\t\t\tint\t\t\t\tid,\r\n\t\t\tint\t\t\t\ttermID,\r\n\t\t\tint\t\t\t\tfacetid,\r\n\t\t\tTaxoNode\tparent,\r\n\t\t\tString\t\tsort,\r\n\t\t\tboolean\t\tisGuide,\r\n\t\t\tboolean\t\tinferredByChildren,\r\n\t\t\tboolean\t\tselectSingle ) {\r\n\t\tthis.name = name;\r\n\t\tthis.displayName = displayName;\r\n\t\tthis.controlName = controlName;\r\n\t\tif( id < 0 )\r\n\t\t\tid = nextID++;\r\n\t\tthis.id= id;\r\n\t\tthis.termID= termID;\r\n\t\tthis.facetid= facetid;\t\t// Only applies to categories\r\n\t\tthis.parent = parent;\r\n\t\tthis.sort = sort;\r\n\t\tthis.isGuideTerm = isGuide;\r\n\t\tthis.inferredByChildren = inferredByChildren;\r\n\t\tthis.selectSingle = selectSingle;\r\n\t\tchildren = null;\r\n\t\tsynset = null; \t\t// No syns unless specified\r\n\t\texclset = null; \t// No exclusions unless specified\r\n\t\timpliedNodes = null; \t// No implied (other than parent) unless specified\r\n\t\tiMaskBase = -1;\r\n\t\tnMasks = 0;\r\n\t\tiBitInMask = -1;\r\n\t}", "public void test_anon_0() {\n String NS = \"http://example.org/foo#\";\n String sourceT =\n \"<rdf:RDF \"\n + \" xmlns:rdf='http://www.w3.org/1999/02/22-rdf-syntax-ns#'\"\n + \" xmlns:rdfs='http://www.w3.org/2000/01/rdf-schema#'\"\n + \" xmlns:ex='http://example.org/foo#'\"\n + \" xmlns:owl='http://www.w3.org/2002/07/owl#'>\"\n + \" <owl:ObjectProperty rdf:about='http://example.org/foo#p' />\"\n + \" <owl:Class rdf:about='http://example.org/foo#A' />\"\n + \" <ex:A rdf:about='http://example.org/foo#x' />\"\n + \" <owl:Class rdf:about='http://example.org/foo#B'>\"\n + \" <owl:equivalentClass>\"\n + \" <owl:Restriction>\" \n + \" <owl:onProperty rdf:resource='http://example.org/foo#p' />\" \n + \" <owl:hasValue rdf:resource='http://example.org/foo#x' />\" \n + \" </owl:Restriction>\"\n + \" </owl:equivalentClass>\"\n + \" </owl:Class>\"\n + \"</rdf:RDF>\";\n \n OntModel m = ModelFactory.createOntologyModel(OntModelSpec.OWL_MEM, null);\n m.read(new ByteArrayInputStream(sourceT.getBytes()), \"http://example.org/foo\");\n \n OntClass B = m.getOntClass( NS + \"B\");\n Restriction r = B.getEquivalentClass().asRestriction();\n HasValueRestriction hvr = r.asHasValueRestriction();\n RDFNode n = hvr.getHasValue();\n \n assertTrue( \"Should be an individual\", n instanceof Individual );\n }", "public abstract T queryRootNode();", "public void setNode_3(String node_3);", "@Override\r\n\t\tpublic boolean isEqualNode(Node arg)\r\n\t\t\t{\n\t\t\t\treturn false;\r\n\t\t\t}", "public interface BinNode<T> {\n\n /**\n * Returns the element in the node\n * @return the element in the node\n */\n public T getElement();\n \n /**\n * Changes the element of the node to the element provided\n * @param newvalue\n */\n public void setElement(T newvalue);\n \n /**\n * Returns the left child of the node\n * @return the left child\n */\n public BinNode<T> getLeft();\n \n /**\n * Returns the right child of the node\n * @return the right child\n */\n public BinNode<T> getRight();\n \n /**\n * Returns whether or not the node has any non-null children\n * @return whether the node is a leaf\n */\n public boolean isLeaf();\n \n}", "public interface Interaction {\n JsonNode create(ObjectNode node);\n}", "public abstract Node apply(Node node);", "RootNode getRootNode();", "public interface BinaryNode<T> { }", "public StatementNode getStatementNodeOnTrue();", "@Override\n public R visit(DatasetClause n, A argu) {\n R _ret = null;\n n.nodeToken.accept(this, argu);\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "@Override\n public R visit(NumericLiteralNegative n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "public void setNode_5(String node_5);", "public void setNode(String node)\n {\n this.node = node;\n }", "public T caseNode(Node object) {\n\t\treturn null;\n\t}", "public T caseNode(Node object) {\n\t\treturn null;\n\t}", "OperationNode getNode();", "private ObjectNode ProcessObject(RDFNode node){\n if(node.isLiteral()){\n //handle literal\n return TransformUtils.GenerateLiteralJsonObject(mapper, node.asLiteral(), null);\n }\n else {\n //else handle resource\n return ProcessResource(node.asResource());\n }\n }", "private static interface Node {\n\t\t/**\n\t\t * Set value to child node identified by given ID.\n\t\t * \n\t\t * @param childID child ID is a field name or array/list index.\n\t\t * @param value node value.\n\t\t * @throws ConverterException if value is primitive and fail to convert to field type.\n\t\t * @throws IllegalAccessException this exception is required by reflective field signature but never thrown.\n\t\t */\n\t\tvoid setValue(String childID, Object value) throws ConverterException, IllegalAccessException;\n\n\t\t/**\n\t\t * Returns child node identified by its ID or null if not found. A child ID is the field name or array/list index.\n\t\t * \n\t\t * @param childID child ID is a field name or array/list index.\n\t\t * @return child node or null.\n\t\t * @throws IllegalAccessException this exception is required by reflective field signature but never thrown.\n\t\t */\n\t\tNode getChild(String childID) throws IllegalAccessException;\n\t}", "public String getTextValue (Node node);", "public Regular(Node t) {\n }", "public Node(){}", "public Node getNode (){\n if (_node == null){\n Label label = new Label(_value);\n label.setFont(DEFAULT_FONT);\n _node = label;\n }\n return _node;\n }", "public Node(String eq, Node node) {\r\n\t\tel = eq;\r\n\t\tnext = node;\r\n\t}", "public void setNode(String node) {\n this.node = node;\n }", "public static org.exolab.castor.mapping.xml.types.NodeType valueOf(java.lang.String string)\n {\n Object obj = null;\n if (string != null) obj = _memberTable.get(string);\n if (obj == null) {\n String err = \"'\" + string + \"' is not a valid NodeType\";\n throw new IllegalArgumentException(err);\n }\n return (NodeType) obj;\n }", "DOMType() {\n // Constructs an empty type node\n }" ]
[ "0.63685596", "0.6293061", "0.5943037", "0.57806545", "0.57594216", "0.5745159", "0.5706604", "0.56381875", "0.55581677", "0.55541056", "0.55229694", "0.54909897", "0.54875517", "0.54665494", "0.54018545", "0.5377006", "0.5376154", "0.53739935", "0.53117865", "0.5310838", "0.52962506", "0.5279209", "0.5247763", "0.5247763", "0.52280265", "0.5227339", "0.5219563", "0.51844597", "0.5183659", "0.51627976", "0.5103901", "0.50949955", "0.50852585", "0.50831366", "0.5077416", "0.50773233", "0.5058407", "0.5038504", "0.5034665", "0.49783823", "0.49642608", "0.496089", "0.49326688", "0.49214768", "0.49074087", "0.48947126", "0.48855048", "0.48698515", "0.4862355", "0.4858991", "0.48484245", "0.48433492", "0.482064", "0.48170498", "0.4812261", "0.48010564", "0.47997758", "0.4784829", "0.47803897", "0.4776281", "0.47760633", "0.47740358", "0.47691694", "0.47680426", "0.4760843", "0.4755336", "0.47390828", "0.47372228", "0.47372228", "0.47372228", "0.47372228", "0.4734521", "0.47320762", "0.47300813", "0.4724334", "0.4723922", "0.472245", "0.47190845", "0.47190484", "0.47166717", "0.4712065", "0.47074082", "0.47027114", "0.46943423", "0.46936452", "0.46922016", "0.46898383", "0.4688304", "0.4688304", "0.4688028", "0.46832907", "0.46821535", "0.4673484", "0.467304", "0.46709487", "0.46667477", "0.46637034", "0.46632335", "0.46626717", "0.4655389" ]
0.5924301
3
conditionalAndExpression > ConditionalAndExpression() nodeListOptional > ( "||" ConditionalAndExpression() )
@Override public R visit(ConditionalOrExpression n, A argu) { R _ret = null; n.conditionalAndExpression.accept(this, argu); n.nodeListOptional.accept(this, argu); return _ret; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public R visit(ConditionalAndExpression n, A argu) {\n R _ret = null;\n n.valueLogical.accept(this, argu);\n n.nodeListOptional.accept(this, argu);\n return _ret;\n }", "public Object visitLogicalAndExpression(GNode n) {\n if (dostring) {\n Object a = dispatch(n.getGeneric(0));\n Object b = dispatch(n.getGeneric(1));\n \n if (a instanceof Long && b instanceof Long) {\n return (Long) a & (Long) b;\n }\n else {\n return parens(a) + \" && \" + parens(b);\n }\n }\n else {\n BDD a, b, bdd;\n \n a = ensureBDD(dispatch(n.getGeneric(0)));\n b = ensureBDD(dispatch(n.getGeneric(1)));\n \n bdd = a.andWith(b);\n \n return bdd;\n }\n }", "public String getAndOr();", "public static BinaryExpression andAlso(Expression expression0, Expression expression1) { throw Extensions.todo(); }", "public final void exclusiveOrExpression() throws RecognitionException {\n int exclusiveOrExpression_StartIndex = input.index();\n try { dbg.enterRule(getGrammarFileName(), \"exclusiveOrExpression\");\n if ( getRuleLevel()==0 ) {dbg.commence();}\n incRuleLevel();\n dbg.location(757, 1);\n\n try {\n if ( state.backtracking>0 && alreadyParsedRule(input, 111) ) { return ; }\n // Java.g:758:5: ( andExpression ( '^' andExpression )* )\n dbg.enterAlt(1);\n\n // Java.g:758:9: andExpression ( '^' andExpression )*\n {\n dbg.location(758,9);\n pushFollow(FOLLOW_andExpression_in_exclusiveOrExpression4448);\n andExpression();\n\n state._fsp--;\n if (state.failed) return ;\n dbg.location(758,23);\n // Java.g:758:23: ( '^' andExpression )*\n try { dbg.enterSubRule(132);\n\n loop132:\n do {\n int alt132=2;\n try { dbg.enterDecision(132);\n\n int LA132_0 = input.LA(1);\n\n if ( (LA132_0==101) ) {\n alt132=1;\n }\n\n\n } finally {dbg.exitDecision(132);}\n\n switch (alt132) {\n \tcase 1 :\n \t dbg.enterAlt(1);\n\n \t // Java.g:758:25: '^' andExpression\n \t {\n \t dbg.location(758,25);\n \t match(input,101,FOLLOW_101_in_exclusiveOrExpression4452); if (state.failed) return ;\n \t dbg.location(758,29);\n \t pushFollow(FOLLOW_andExpression_in_exclusiveOrExpression4454);\n \t andExpression();\n\n \t state._fsp--;\n \t if (state.failed) return ;\n\n \t }\n \t break;\n\n \tdefault :\n \t break loop132;\n }\n } while (true);\n } finally {dbg.exitSubRule(132);}\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n if ( state.backtracking>0 ) { memoize(input, 111, exclusiveOrExpression_StartIndex); }\n }\n dbg.location(759, 5);\n\n }\n finally {\n dbg.exitRule(getGrammarFileName(), \"exclusiveOrExpression\");\n decRuleLevel();\n if ( getRuleLevel()==0 ) {dbg.terminate();}\n }\n\n return ;\n }", "private Term parseLogicalAnd(final boolean required) throws ParseException {\n Term t1 = parseComparison(required);\n while (t1 != null) {\n /*int tt =*/ _tokenizer.next();\n if (isSpecial(\"&&\") || isKeyword(\"and\")) {\n Term t2 = parseComparison(true);\n if ((t1.isB() && t2.isB()) || !isTypeChecking()) {\n t1 = new Term.AndB(t1, t2);\n } else {\n reportTypeErrorB2(\"'&&' or 'and'\");\n }\n } else {\n _tokenizer.pushBack();\n break;\n }\n }\n return t1;\n }", "public final EObject ruleConditionalOrExpression() throws RecognitionException {\n EObject current = null;\n\n Token lv_op_2_0=null;\n EObject this_ConditionalAndExpression_0 = null;\n\n EObject lv_right_3_0 = null;\n\n\n enterRule(); \n \n try {\n // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:230:28: ( (this_ConditionalAndExpression_0= ruleConditionalAndExpression ( ( ( ( () ( ( '||' ) ) ) )=> ( () ( (lv_op_2_0= '||' ) ) ) ) ( (lv_right_3_0= ruleConditionalAndExpression ) ) )* ) )\n // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:231:1: (this_ConditionalAndExpression_0= ruleConditionalAndExpression ( ( ( ( () ( ( '||' ) ) ) )=> ( () ( (lv_op_2_0= '||' ) ) ) ) ( (lv_right_3_0= ruleConditionalAndExpression ) ) )* )\n {\n // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:231:1: (this_ConditionalAndExpression_0= ruleConditionalAndExpression ( ( ( ( () ( ( '||' ) ) ) )=> ( () ( (lv_op_2_0= '||' ) ) ) ) ( (lv_right_3_0= ruleConditionalAndExpression ) ) )* )\n // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:232:5: this_ConditionalAndExpression_0= ruleConditionalAndExpression ( ( ( ( () ( ( '||' ) ) ) )=> ( () ( (lv_op_2_0= '||' ) ) ) ) ( (lv_right_3_0= ruleConditionalAndExpression ) ) )*\n {\n if ( state.backtracking==0 ) {\n \n newCompositeNode(grammarAccess.getConditionalOrExpressionAccess().getConditionalAndExpressionParserRuleCall_0()); \n \n }\n pushFollow(FOLLOW_ruleConditionalAndExpression_in_ruleConditionalOrExpression499);\n this_ConditionalAndExpression_0=ruleConditionalAndExpression();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n \n current = this_ConditionalAndExpression_0; \n afterParserOrEnumRuleCall();\n \n }\n // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:240:1: ( ( ( ( () ( ( '||' ) ) ) )=> ( () ( (lv_op_2_0= '||' ) ) ) ) ( (lv_right_3_0= ruleConditionalAndExpression ) ) )*\n loop3:\n do {\n int alt3=2;\n int LA3_0 = input.LA(1);\n\n if ( (LA3_0==28) ) {\n int LA3_2 = input.LA(2);\n\n if ( (synpred2_InternalJavaJRExpression()) ) {\n alt3=1;\n }\n\n\n }\n\n\n switch (alt3) {\n \tcase 1 :\n \t // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:240:2: ( ( ( () ( ( '||' ) ) ) )=> ( () ( (lv_op_2_0= '||' ) ) ) ) ( (lv_right_3_0= ruleConditionalAndExpression ) )\n \t {\n \t // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:240:2: ( ( ( () ( ( '||' ) ) ) )=> ( () ( (lv_op_2_0= '||' ) ) ) )\n \t // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:240:3: ( ( () ( ( '||' ) ) ) )=> ( () ( (lv_op_2_0= '||' ) ) )\n \t {\n \t // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:247:6: ( () ( (lv_op_2_0= '||' ) ) )\n \t // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:247:7: () ( (lv_op_2_0= '||' ) )\n \t {\n \t // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:247:7: ()\n \t // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:248:5: \n \t {\n \t if ( state.backtracking==0 ) {\n\n \t current = forceCreateModelElementAndSet(\n \t grammarAccess.getConditionalOrExpressionAccess().getBinaryExpressionLeftAction_1_0_0_0(),\n \t current);\n \t \n \t }\n\n \t }\n\n \t // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:253:2: ( (lv_op_2_0= '||' ) )\n \t // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:254:1: (lv_op_2_0= '||' )\n \t {\n \t // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:254:1: (lv_op_2_0= '||' )\n \t // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:255:3: lv_op_2_0= '||'\n \t {\n \t lv_op_2_0=(Token)match(input,28,FOLLOW_28_in_ruleConditionalOrExpression550); if (state.failed) return current;\n \t if ( state.backtracking==0 ) {\n\n \t newLeafNode(lv_op_2_0, grammarAccess.getConditionalOrExpressionAccess().getOpVerticalLineVerticalLineKeyword_1_0_0_1_0());\n \t \n \t }\n \t if ( state.backtracking==0 ) {\n\n \t \t if (current==null) {\n \t \t current = createModelElement(grammarAccess.getConditionalOrExpressionRule());\n \t \t }\n \t \t\tsetWithLastConsumed(current, \"op\", lv_op_2_0, \"||\");\n \t \t \n \t }\n\n \t }\n\n\n \t }\n\n\n \t }\n\n\n \t }\n\n \t // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:268:4: ( (lv_right_3_0= ruleConditionalAndExpression ) )\n \t // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:269:1: (lv_right_3_0= ruleConditionalAndExpression )\n \t {\n \t // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:269:1: (lv_right_3_0= ruleConditionalAndExpression )\n \t // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:270:3: lv_right_3_0= ruleConditionalAndExpression\n \t {\n \t if ( state.backtracking==0 ) {\n \t \n \t \t newCompositeNode(grammarAccess.getConditionalOrExpressionAccess().getRightConditionalAndExpressionParserRuleCall_1_1_0()); \n \t \t \n \t }\n \t pushFollow(FOLLOW_ruleConditionalAndExpression_in_ruleConditionalOrExpression586);\n \t lv_right_3_0=ruleConditionalAndExpression();\n\n \t state._fsp--;\n \t if (state.failed) return current;\n \t if ( state.backtracking==0 ) {\n\n \t \t if (current==null) {\n \t \t current = createModelElementForParent(grammarAccess.getConditionalOrExpressionRule());\n \t \t }\n \t \t\tset(\n \t \t\t\tcurrent, \n \t \t\t\t\"right\",\n \t \t\tlv_right_3_0, \n \t \t\t\"ConditionalAndExpression\");\n \t \t afterParserOrEnumRuleCall();\n \t \t \n \t }\n\n \t }\n\n\n \t }\n\n\n \t }\n \t break;\n\n \tdefault :\n \t break loop3;\n }\n } while (true);\n\n\n }\n\n\n }\n\n if ( state.backtracking==0 ) {\n leaveRule(); \n }\n }\n \n catch (RecognitionException re) { \n recover(input,re); \n appendSkippedTokens();\n } \n finally {\n }\n return current;\n }", "public static BinaryExpression and(Expression expression0, Expression expression1) { throw Extensions.todo(); }", "public final void conditionalOrExpression() throws RecognitionException {\n int conditionalOrExpression_StartIndex = input.index();\n try { dbg.enterRule(getGrammarFileName(), \"conditionalOrExpression\");\n if ( getRuleLevel()==0 ) {dbg.commence();}\n incRuleLevel();\n dbg.location(745, 1);\n\n try {\n if ( state.backtracking>0 && alreadyParsedRule(input, 108) ) { return ; }\n // Java.g:746:5: ( conditionalAndExpression ( '||' conditionalAndExpression )* )\n dbg.enterAlt(1);\n\n // Java.g:746:9: conditionalAndExpression ( '||' conditionalAndExpression )*\n {\n dbg.location(746,9);\n pushFollow(FOLLOW_conditionalAndExpression_in_conditionalOrExpression4364);\n conditionalAndExpression();\n\n state._fsp--;\n if (state.failed) return ;\n dbg.location(746,34);\n // Java.g:746:34: ( '||' conditionalAndExpression )*\n try { dbg.enterSubRule(129);\n\n loop129:\n do {\n int alt129=2;\n try { dbg.enterDecision(129);\n\n int LA129_0 = input.LA(1);\n\n if ( (LA129_0==98) ) {\n alt129=1;\n }\n\n\n } finally {dbg.exitDecision(129);}\n\n switch (alt129) {\n \tcase 1 :\n \t dbg.enterAlt(1);\n\n \t // Java.g:746:36: '||' conditionalAndExpression\n \t {\n \t dbg.location(746,36);\n \t match(input,98,FOLLOW_98_in_conditionalOrExpression4368); if (state.failed) return ;\n \t dbg.location(746,41);\n \t pushFollow(FOLLOW_conditionalAndExpression_in_conditionalOrExpression4370);\n \t conditionalAndExpression();\n\n \t state._fsp--;\n \t if (state.failed) return ;\n\n \t }\n \t break;\n\n \tdefault :\n \t break loop129;\n }\n } while (true);\n } finally {dbg.exitSubRule(129);}\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n if ( state.backtracking>0 ) { memoize(input, 108, conditionalOrExpression_StartIndex); }\n }\n dbg.location(747, 5);\n\n }\n finally {\n dbg.exitRule(getGrammarFileName(), \"conditionalOrExpression\");\n decRuleLevel();\n if ( getRuleLevel()==0 ) {dbg.terminate();}\n }\n\n return ;\n }", "private Term parseLogicalOr(final boolean required) throws ParseException {\n Term t1 = parseLogicalAnd(required);\n while (t1 != null) {\n /*int tt =*/ _tokenizer.next();\n if (isSpecial(\"||\") || isKeyword(\"or\")) {\n Term t2 = parseLogicalAnd(true);\n if ((t1.isB() && t2.isB()) || !isTypeChecking()) {\n t1 = new Term.OrB(t1, t2);\n } else {\n reportTypeErrorB2(\"'||' or 'or'\");\n }\n } else {\n _tokenizer.pushBack();\n break;\n }\n }\n return t1;\n }", "public static BinaryExpression andAssign(Expression expression0, Expression expression1) { throw Extensions.todo(); }", "Expression andExpression() throws SyntaxException {\r\n\t\tToken first = t;\r\n\t\tExpression e0 = eqExpression();\r\n\t\twhile(isKind(OP_AND)) {\r\n\t\t\tToken op = consume();\r\n\t\t\tExpression e1 = eqExpression();\r\n\t\t\te0 = new ExpressionBinary(first, e0, op, e1);\r\n\t\t}\r\n\t\treturn e0;\r\n\t}", "@Override\n\tpublic Object visit(ASTCondAnd node, Object data) {\n\t\tnode.jjtGetChild(0).jjtAccept(this, data);\n\t\tSystem.out.print(\" and \");\n\t\tnode.jjtGetChild(1).jjtAccept(this, data);\n\t\treturn null;\n\t}", "private Expr or() { // This uses the same recursive matching structure as other binary operators.\n Expr expr = and(); // OR takes precedence over AND.\n while(match(OR)) {\n Token operator = previous();\n Expr right = and();\n expr = new Expr.Logical(expr, operator, right);\n }\n return expr;\n }", "public final void conditionalAndExpression() throws RecognitionException {\n int conditionalAndExpression_StartIndex = input.index();\n try { dbg.enterRule(getGrammarFileName(), \"conditionalAndExpression\");\n if ( getRuleLevel()==0 ) {dbg.commence();}\n incRuleLevel();\n dbg.location(749, 1);\n\n try {\n if ( state.backtracking>0 && alreadyParsedRule(input, 109) ) { return ; }\n // Java.g:750:5: ( inclusiveOrExpression ( '&&' inclusiveOrExpression )* )\n dbg.enterAlt(1);\n\n // Java.g:750:9: inclusiveOrExpression ( '&&' inclusiveOrExpression )*\n {\n dbg.location(750,9);\n pushFollow(FOLLOW_inclusiveOrExpression_in_conditionalAndExpression4392);\n inclusiveOrExpression();\n\n state._fsp--;\n if (state.failed) return ;\n dbg.location(750,31);\n // Java.g:750:31: ( '&&' inclusiveOrExpression )*\n try { dbg.enterSubRule(130);\n\n loop130:\n do {\n int alt130=2;\n try { dbg.enterDecision(130);\n\n int LA130_0 = input.LA(1);\n\n if ( (LA130_0==99) ) {\n alt130=1;\n }\n\n\n } finally {dbg.exitDecision(130);}\n\n switch (alt130) {\n \tcase 1 :\n \t dbg.enterAlt(1);\n\n \t // Java.g:750:33: '&&' inclusiveOrExpression\n \t {\n \t dbg.location(750,33);\n \t match(input,99,FOLLOW_99_in_conditionalAndExpression4396); if (state.failed) return ;\n \t dbg.location(750,38);\n \t pushFollow(FOLLOW_inclusiveOrExpression_in_conditionalAndExpression4398);\n \t inclusiveOrExpression();\n\n \t state._fsp--;\n \t if (state.failed) return ;\n\n \t }\n \t break;\n\n \tdefault :\n \t break loop130;\n }\n } while (true);\n } finally {dbg.exitSubRule(130);}\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n if ( state.backtracking>0 ) { memoize(input, 109, conditionalAndExpression_StartIndex); }\n }\n dbg.location(751, 5);\n\n }\n finally {\n dbg.exitRule(getGrammarFileName(), \"conditionalAndExpression\");\n decRuleLevel();\n if ( getRuleLevel()==0 ) {dbg.terminate();}\n }\n\n return ;\n }", "public Object visitLogicalOrExpression(GNode n) {\n if (dostring) {\n Object a = dispatch(n.getGeneric(0));\n Object b = dispatch(n.getGeneric(1));\n \n if (a instanceof Long && b instanceof Long) {\n return (Long) a | (Long) b;\n }\n else {\n return parens(a) + \" || \" + parens(b);\n }\n }\n else {\n BDD a, b, bdd;\n \n a = ensureBDD(dispatch(n.getGeneric(0)));\n b = ensureBDD(dispatch(n.getGeneric(1)));\n \n bdd = a.orWith(b);\n \n return bdd;\n }\n }", "public final void rule__AstExpressionAnd__OperatorAlternatives_1_1_0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:2818:1: ( ( '&&' ) | ( 'and' ) )\n int alt13=2;\n int LA13_0 = input.LA(1);\n\n if ( (LA13_0==17) ) {\n alt13=1;\n }\n else if ( (LA13_0==18) ) {\n alt13=2;\n }\n else {\n NoViableAltException nvae =\n new NoViableAltException(\"\", 13, 0, input);\n\n throw nvae;\n }\n switch (alt13) {\n case 1 :\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:2819:1: ( '&&' )\n {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:2819:1: ( '&&' )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:2820:1: '&&'\n {\n before(grammarAccess.getAstExpressionAndAccess().getOperatorAmpersandAmpersandKeyword_1_1_0_0()); \n match(input,17,FOLLOW_17_in_rule__AstExpressionAnd__OperatorAlternatives_1_1_06085); \n after(grammarAccess.getAstExpressionAndAccess().getOperatorAmpersandAmpersandKeyword_1_1_0_0()); \n\n }\n\n\n }\n break;\n case 2 :\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:2827:6: ( 'and' )\n {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:2827:6: ( 'and' )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:2828:1: 'and'\n {\n before(grammarAccess.getAstExpressionAndAccess().getOperatorAndKeyword_1_1_0_1()); \n match(input,18,FOLLOW_18_in_rule__AstExpressionAnd__OperatorAlternatives_1_1_06105); \n after(grammarAccess.getAstExpressionAndAccess().getOperatorAndKeyword_1_1_0_1()); \n\n }\n\n\n }\n break;\n\n }\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public Snippet visit(ConditionalAndExpression n, Snippet argu) {\n\t Snippet _ret= new Snippet(\"\",\"\",null,false);\n\t Snippet f0 = n.identifier.accept(this, argu);\n\t n.nodeToken.accept(this, argu);\n\t Snippet f2 = n.identifier1.accept(this, argu);\n\t _ret.returnTemp = f0.returnTemp+\" && \"+f2.returnTemp;\n\t return _ret;\n\t }", "OrExpr createOrExpr();", "public static BinaryExpression exclusiveOr(Expression expression0, Expression expression1) { throw Extensions.todo(); }", "private Term parseBitwiseAnd(final boolean required) throws ParseException {\n Term t1 = parseAdd(required);\n while (t1 != null) {\n int tt = _tokenizer.next();\n if (tt == '&') {\n Term t2 = parseAdd(true);\n if ((t1.isI() && t2.isI()) || !isTypeChecking()) {\n t1 = new Term.AndI(t1, t2);\n } else {\n reportTypeErrorI2(\"'&'\");\n }\n } else {\n _tokenizer.pushBack();\n break;\n }\n }\n return t1;\n }", "@Override\n\tpublic void visit(OrExpression arg0) {\n\t\t\n\t}", "public Object visitBitwiseAndExpression(GNode n) {\n Object a, b, result;\n \n nonboolean = true;\n \n dostring = true;\n \n a = dispatch(n.getGeneric(0));\n b = dispatch(n.getGeneric(1));\n \n dostring = false;\n \n if (a instanceof Long && b instanceof Long) {\n result = (Long) a & (Long) b;\n }\n else {\n result = parens(a) + \" & \" + parens(b);\n }\n \n return result;\n }", "@Test\n public void testAndOrRules() throws Exception {\n final PackageDescr pkg = ((PackageDescr) (parseResource(\"compilationUnit\", \"and_or_rule.drl\")));\n TestCase.assertNotNull(pkg);\n TestCase.assertEquals(1, pkg.getRules().size());\n final RuleDescr rule = ((RuleDescr) (pkg.getRules().get(0)));\n TestCase.assertEquals(\"simple_rule\", rule.getName());\n // we will have 3 children under the main And node\n final AndDescr and = rule.getLhs();\n TestCase.assertEquals(3, and.getDescrs().size());\n PatternDescr left = ((PatternDescr) (and.getDescrs().get(0)));\n PatternDescr right = ((PatternDescr) (and.getDescrs().get(1)));\n TestCase.assertEquals(\"Person\", left.getObjectType());\n TestCase.assertEquals(\"Cheese\", right.getObjectType());\n TestCase.assertEquals(1, getDescrs().size());\n ExprConstraintDescr fld = ((ExprConstraintDescr) (getDescrs().get(0)));\n TestCase.assertEquals(\"name == \\\"mark\\\"\", fld.getExpression());\n TestCase.assertEquals(1, getDescrs().size());\n fld = ((ExprConstraintDescr) (getDescrs().get(0)));\n TestCase.assertEquals(\"type == \\\"stilton\\\"\", fld.getExpression());\n // now the \"||\" part\n final OrDescr or = ((OrDescr) (and.getDescrs().get(2)));\n TestCase.assertEquals(2, or.getDescrs().size());\n left = ((PatternDescr) (or.getDescrs().get(0)));\n right = ((PatternDescr) (or.getDescrs().get(1)));\n TestCase.assertEquals(\"Person\", left.getObjectType());\n TestCase.assertEquals(\"Cheese\", right.getObjectType());\n TestCase.assertEquals(1, getDescrs().size());\n fld = ((ExprConstraintDescr) (getDescrs().get(0)));\n TestCase.assertEquals(\"name == \\\"mark\\\"\", fld.getExpression());\n TestCase.assertEquals(1, getDescrs().size());\n fld = ((ExprConstraintDescr) (getDescrs().get(0)));\n TestCase.assertEquals(\"type == \\\"stilton\\\"\", fld.getExpression());\n assertEqualsIgnoreWhitespace(\"System.out.println( \\\"Mark and Michael\\\" );\", ((String) (rule.getConsequence())));\n }", "public static BinaryExpression andAlso(Expression expression0, Expression expression1, Method method) { throw Extensions.todo(); }", "@Override\n\tpublic void visit(OrExpression arg0) {\n\n\t}", "Expression orExpression() throws SyntaxException {\r\n\t\tToken first = t;\r\n\t\tExpression e0 = andExpression();\r\n\t\twhile(isKind(OP_OR)) {\r\n\t\t\tToken op = consume();\r\n\t\t\tExpression e1 = andExpression();\r\n\t\t\te0 = new ExpressionBinary(first, e0, op, e1);\r\n\t\t}\r\n\t\treturn e0;\r\n\t}", "public final EObject ruleLogicalOrExpression() throws RecognitionException {\r\n EObject current = null;\r\n\r\n Token otherlv_2=null;\r\n EObject this_LogicalAndExpression_0 = null;\r\n\r\n EObject lv_rightOperand_3_0 = null;\r\n\r\n\r\n enterRule(); \r\n \r\n try {\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:2579:28: ( (this_LogicalAndExpression_0= ruleLogicalAndExpression ( () otherlv_2= '||' ( (lv_rightOperand_3_0= ruleLogicalAndExpression ) ) )* ) )\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:2580:1: (this_LogicalAndExpression_0= ruleLogicalAndExpression ( () otherlv_2= '||' ( (lv_rightOperand_3_0= ruleLogicalAndExpression ) ) )* )\r\n {\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:2580:1: (this_LogicalAndExpression_0= ruleLogicalAndExpression ( () otherlv_2= '||' ( (lv_rightOperand_3_0= ruleLogicalAndExpression ) ) )* )\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:2581:5: this_LogicalAndExpression_0= ruleLogicalAndExpression ( () otherlv_2= '||' ( (lv_rightOperand_3_0= ruleLogicalAndExpression ) ) )*\r\n {\r\n if ( state.backtracking==0 ) {\r\n \r\n newCompositeNode(grammarAccess.getLogicalOrExpressionAccess().getLogicalAndExpressionParserRuleCall_0()); \r\n \r\n }\r\n pushFollow(FOLLOW_ruleLogicalAndExpression_in_ruleLogicalOrExpression5902);\r\n this_LogicalAndExpression_0=ruleLogicalAndExpression();\r\n\r\n state._fsp--;\r\n if (state.failed) return current;\r\n if ( state.backtracking==0 ) {\r\n \r\n current = this_LogicalAndExpression_0; \r\n afterParserOrEnumRuleCall();\r\n \r\n }\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:2589:1: ( () otherlv_2= '||' ( (lv_rightOperand_3_0= ruleLogicalAndExpression ) ) )*\r\n loop41:\r\n do {\r\n int alt41=2;\r\n int LA41_0 = input.LA(1);\r\n\r\n if ( (LA41_0==47) ) {\r\n alt41=1;\r\n }\r\n\r\n\r\n switch (alt41) {\r\n \tcase 1 :\r\n \t // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:2589:2: () otherlv_2= '||' ( (lv_rightOperand_3_0= ruleLogicalAndExpression ) )\r\n \t {\r\n \t // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:2589:2: ()\r\n \t // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:2590:5: \r\n \t {\r\n \t if ( state.backtracking==0 ) {\r\n\r\n \t current = forceCreateModelElementAndSet(\r\n \t grammarAccess.getLogicalOrExpressionAccess().getLogicalOrExpressionLeftOperandAction_1_0(),\r\n \t current);\r\n \t \r\n \t }\r\n\r\n \t }\r\n\r\n \t otherlv_2=(Token)match(input,47,FOLLOW_47_in_ruleLogicalOrExpression5923); if (state.failed) return current;\r\n \t if ( state.backtracking==0 ) {\r\n\r\n \t \tnewLeafNode(otherlv_2, grammarAccess.getLogicalOrExpressionAccess().getVerticalLineVerticalLineKeyword_1_1());\r\n \t \r\n \t }\r\n \t // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:2599:1: ( (lv_rightOperand_3_0= ruleLogicalAndExpression ) )\r\n \t // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:2600:1: (lv_rightOperand_3_0= ruleLogicalAndExpression )\r\n \t {\r\n \t // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:2600:1: (lv_rightOperand_3_0= ruleLogicalAndExpression )\r\n \t // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:2601:3: lv_rightOperand_3_0= ruleLogicalAndExpression\r\n \t {\r\n \t if ( state.backtracking==0 ) {\r\n \t \r\n \t \t newCompositeNode(grammarAccess.getLogicalOrExpressionAccess().getRightOperandLogicalAndExpressionParserRuleCall_1_2_0()); \r\n \t \t \r\n \t }\r\n \t pushFollow(FOLLOW_ruleLogicalAndExpression_in_ruleLogicalOrExpression5944);\r\n \t lv_rightOperand_3_0=ruleLogicalAndExpression();\r\n\r\n \t state._fsp--;\r\n \t if (state.failed) return current;\r\n \t if ( state.backtracking==0 ) {\r\n\r\n \t \t if (current==null) {\r\n \t \t current = createModelElementForParent(grammarAccess.getLogicalOrExpressionRule());\r\n \t \t }\r\n \t \t\tset(\r\n \t \t\t\tcurrent, \r\n \t \t\t\t\"rightOperand\",\r\n \t \t\tlv_rightOperand_3_0, \r\n \t \t\t\"LogicalAndExpression\");\r\n \t \t afterParserOrEnumRuleCall();\r\n \t \t \r\n \t }\r\n\r\n \t }\r\n\r\n\r\n \t }\r\n\r\n\r\n \t }\r\n \t break;\r\n\r\n \tdefault :\r\n \t break loop41;\r\n }\r\n } while (true);\r\n\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n if ( state.backtracking==0 ) {\r\n leaveRule(); \r\n }\r\n }\r\n \r\n catch (RecognitionException re) { \r\n recover(input,re); \r\n appendSkippedTokens();\r\n } \r\n finally {\r\n }\r\n return current;\r\n }", "public final EObject ruleLogicalOrExpression() throws RecognitionException {\n EObject current = null;\n\n EObject this_LogicalAndExpression_0 = null;\n\n EObject lv_operands_3_0 = null;\n\n\n EObject temp=null; setCurrentLookahead(); resetLookahead(); \n \n try {\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:3300:6: ( (this_LogicalAndExpression_0= ruleLogicalAndExpression ( () ( '||' ( (lv_operands_3_0= ruleLogicalAndExpression ) ) )+ )? ) )\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:3301:1: (this_LogicalAndExpression_0= ruleLogicalAndExpression ( () ( '||' ( (lv_operands_3_0= ruleLogicalAndExpression ) ) )+ )? )\n {\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:3301:1: (this_LogicalAndExpression_0= ruleLogicalAndExpression ( () ( '||' ( (lv_operands_3_0= ruleLogicalAndExpression ) ) )+ )? )\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:3302:5: this_LogicalAndExpression_0= ruleLogicalAndExpression ( () ( '||' ( (lv_operands_3_0= ruleLogicalAndExpression ) ) )+ )?\n {\n \n currentNode=createCompositeNode(grammarAccess.getLogicalOrExpressionAccess().getLogicalAndExpressionParserRuleCall_0(), currentNode); \n \n pushFollow(FOLLOW_ruleLogicalAndExpression_in_ruleLogicalOrExpression5694);\n this_LogicalAndExpression_0=ruleLogicalAndExpression();\n _fsp--;\n\n \n current = this_LogicalAndExpression_0; \n currentNode = currentNode.getParent();\n \n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:3310:1: ( () ( '||' ( (lv_operands_3_0= ruleLogicalAndExpression ) ) )+ )?\n int alt50=2;\n int LA50_0 = input.LA(1);\n\n if ( (LA50_0==49) ) {\n alt50=1;\n }\n switch (alt50) {\n case 1 :\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:3310:2: () ( '||' ( (lv_operands_3_0= ruleLogicalAndExpression ) ) )+\n {\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:3310:2: ()\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:3311:5: \n {\n \n temp=factory.create(grammarAccess.getLogicalOrExpressionAccess().getLogicalOrExpressionOperandsAction_1_0().getType().getClassifier());\n try {\n \tfactory.add(temp, \"operands\", current, null /*ParserRule*/, currentNode);\n } catch(ValueConverterException vce) {\n \thandleValueConverterException(vce);\n }\n current = temp; \n temp = null;\n CompositeNode newNode = createCompositeNode(grammarAccess.getLogicalOrExpressionAccess().getLogicalOrExpressionOperandsAction_1_0(), currentNode.getParent());\n newNode.getChildren().add(currentNode);\n moveLookaheadInfo(currentNode, newNode);\n currentNode = newNode; \n associateNodeWithAstElement(currentNode, current); \n \n\n }\n\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:3326:2: ( '||' ( (lv_operands_3_0= ruleLogicalAndExpression ) ) )+\n int cnt49=0;\n loop49:\n do {\n int alt49=2;\n int LA49_0 = input.LA(1);\n\n if ( (LA49_0==49) ) {\n alt49=1;\n }\n\n\n switch (alt49) {\n \tcase 1 :\n \t // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:3326:4: '||' ( (lv_operands_3_0= ruleLogicalAndExpression ) )\n \t {\n \t match(input,49,FOLLOW_49_in_ruleLogicalOrExpression5714); \n\n \t createLeafNode(grammarAccess.getLogicalOrExpressionAccess().getVerticalLineVerticalLineKeyword_1_1_0(), null); \n \t \n \t // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:3330:1: ( (lv_operands_3_0= ruleLogicalAndExpression ) )\n \t // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:3331:1: (lv_operands_3_0= ruleLogicalAndExpression )\n \t {\n \t // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:3331:1: (lv_operands_3_0= ruleLogicalAndExpression )\n \t // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:3332:3: lv_operands_3_0= ruleLogicalAndExpression\n \t {\n \t \n \t \t currentNode=createCompositeNode(grammarAccess.getLogicalOrExpressionAccess().getOperandsLogicalAndExpressionParserRuleCall_1_1_1_0(), currentNode); \n \t \t \n \t pushFollow(FOLLOW_ruleLogicalAndExpression_in_ruleLogicalOrExpression5735);\n \t lv_operands_3_0=ruleLogicalAndExpression();\n \t _fsp--;\n\n\n \t \t if (current==null) {\n \t \t current = factory.create(grammarAccess.getLogicalOrExpressionRule().getType().getClassifier());\n \t \t associateNodeWithAstElement(currentNode.getParent(), current);\n \t \t }\n \t \t try {\n \t \t \t\tadd(\n \t \t \t\t\tcurrent, \n \t \t \t\t\t\"operands\",\n \t \t \t\tlv_operands_3_0, \n \t \t \t\t\"LogicalAndExpression\", \n \t \t \t\tcurrentNode);\n \t \t } catch (ValueConverterException vce) {\n \t \t\t\t\thandleValueConverterException(vce);\n \t \t }\n \t \t currentNode = currentNode.getParent();\n \t \t \n\n \t }\n\n\n \t }\n\n\n \t }\n \t break;\n\n \tdefault :\n \t if ( cnt49 >= 1 ) break loop49;\n EarlyExitException eee =\n new EarlyExitException(49, input);\n throw eee;\n }\n cnt49++;\n } while (true);\n\n\n }\n break;\n\n }\n\n\n }\n\n\n }\n\n resetLookahead(); \n \tlastConsumedNode = currentNode;\n \n }\n \n catch (RecognitionException re) { \n recover(input,re); \n appendSkippedTokens();\n } \n finally {\n }\n return current;\n }", "private static Expression constructBinaryFilterTreeWithAnd(List<Expression> expressions) {\n if (expressions.size() == 2) {\n return new LogicAndExpression(expressions.get(0), expressions.get(1));\n } else {\n return new LogicAndExpression(\n expressions.get(0),\n constructBinaryFilterTreeWithAnd(expressions.subList(1, expressions.size())));\n }\n }", "@Test\n public void testAnd() {\n if (true && addValue()) {\n assertThat(flag, equalTo(1));\n }\n\n // first expression is not satisfied conditions, then second expression not invoke\n if (false && addValue()) {\n assertThat(flag, equalTo(1));\n }\n }", "@Override\n public Void visit(LogicalExpression nd, SuccessorInfo i) {\n Expression left = nd.getLeft();\n writeSuccessor(nd, First.of(left));\n if (\"&&\".equals(nd.getOperator()))\n visitWithSuccessors(left, First.of(nd.getRight()), i.getSuccessors(false));\n else visitWithSuccessors(left, i.getSuccessors(true), First.of(nd.getRight()));\n nd.getRight().accept(this, i);\n return null;\n }", "public final Expr orExpr() throws RecognitionException {\r\n Expr result = null;\r\n\r\n int orExpr_StartIndex = input.index();\r\n\r\n Expr lhs =null;\r\n\r\n Expr rhs =null;\r\n\r\n\r\n try {\r\n if ( state.backtracking>0 && alreadyParsedRule(input, 18) ) { return result; }\r\n\r\n // C:\\\\Users\\\\caytekin\\\\Documents\\\\GitHub\\\\sea-of-ql\\\\caytekin\\\\QLJava/src/org/uva/sea/ql/parser/antlr/QL.g:162:5: (lhs= andExpr ( '||' rhs= andExpr )* )\r\n // C:\\\\Users\\\\caytekin\\\\Documents\\\\GitHub\\\\sea-of-ql\\\\caytekin\\\\QLJava/src/org/uva/sea/ql/parser/antlr/QL.g:162:9: lhs= andExpr ( '||' rhs= andExpr )*\r\n {\r\n pushFollow(FOLLOW_andExpr_in_orExpr834);\r\n lhs=andExpr();\r\n\r\n state._fsp--;\r\n if (state.failed) return result;\r\n\r\n if ( state.backtracking==0 ) { result = lhs; }\r\n\r\n // C:\\\\Users\\\\caytekin\\\\Documents\\\\GitHub\\\\sea-of-ql\\\\caytekin\\\\QLJava/src/org/uva/sea/ql/parser/antlr/QL.g:162:48: ( '||' rhs= andExpr )*\r\n loop13:\r\n do {\r\n int alt13=2;\r\n int LA13_0 = input.LA(1);\r\n\r\n if ( (LA13_0==35) ) {\r\n alt13=1;\r\n }\r\n\r\n\r\n switch (alt13) {\r\n \tcase 1 :\r\n \t // C:\\\\Users\\\\caytekin\\\\Documents\\\\GitHub\\\\sea-of-ql\\\\caytekin\\\\QLJava/src/org/uva/sea/ql/parser/antlr/QL.g:162:50: '||' rhs= andExpr\r\n \t {\r\n \t match(input,35,FOLLOW_35_in_orExpr840); if (state.failed) return result;\r\n\r\n \t pushFollow(FOLLOW_andExpr_in_orExpr844);\r\n \t rhs=andExpr();\r\n\r\n \t state._fsp--;\r\n \t if (state.failed) return result;\r\n\r\n \t if ( state.backtracking==0 ) { result = new Or(result, rhs); }\r\n\r\n \t }\r\n \t break;\r\n\r\n \tdefault :\r\n \t break loop13;\r\n }\r\n } while (true);\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n\r\n finally {\r\n \t// do for sure before leaving\r\n if ( state.backtracking>0 ) { memoize(input, 18, orExpr_StartIndex); }\r\n\r\n }\r\n return result;\r\n }", "void visit(final AndCondition andCondition);", "private Object eval(OrExpr expr) {\n if (expr.getExpr().size() == 1) {\n return eval(expr.getExpr().get(0));\n }\n\n boolean result = false;\n for (AndExpr e : expr.getExpr()) {\n Object res = eval(e);\n if (res instanceof Boolean) {\n result = result || (Boolean) res;\n } else {\n throw new RaydenScriptException(\"Expression error: Part expression result is not a boolean. Type: '\" + res.getClass() + \"'\");\n }\n\n if (result) {\n return true;\n }\n }\n return false;\n }", "ConditionalExpression createConditionalExpression();", "@Test(timeout = 4000)\n public void test001() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"hN!SM~8ux(wB\");\n xPathLexer0.dollar();\n xPathLexer0.not();\n xPathLexer0.nextToken();\n xPathLexer0.leftParen();\n xPathLexer0.whitespace();\n xPathLexer0.plus();\n Token token0 = xPathLexer0.or();\n assertNull(token0);\n }", "public static BinaryExpression and(Expression expression0, Expression expression1, Method method) { throw Extensions.todo(); }", "public final EObject ruleBitwiseOrExpression() throws RecognitionException {\r\n EObject current = null;\r\n\r\n Token otherlv_2=null;\r\n EObject this_BitwiseAndExpression_0 = null;\r\n\r\n EObject lv_rightOperand_3_0 = null;\r\n\r\n\r\n enterRule(); \r\n \r\n try {\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:2812:28: ( (this_BitwiseAndExpression_0= ruleBitwiseAndExpression ( () otherlv_2= '|' ( (lv_rightOperand_3_0= ruleBitwiseAndExpression ) ) )* ) )\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:2813:1: (this_BitwiseAndExpression_0= ruleBitwiseAndExpression ( () otherlv_2= '|' ( (lv_rightOperand_3_0= ruleBitwiseAndExpression ) ) )* )\r\n {\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:2813:1: (this_BitwiseAndExpression_0= ruleBitwiseAndExpression ( () otherlv_2= '|' ( (lv_rightOperand_3_0= ruleBitwiseAndExpression ) ) )* )\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:2814:5: this_BitwiseAndExpression_0= ruleBitwiseAndExpression ( () otherlv_2= '|' ( (lv_rightOperand_3_0= ruleBitwiseAndExpression ) ) )*\r\n {\r\n if ( state.backtracking==0 ) {\r\n \r\n newCompositeNode(grammarAccess.getBitwiseOrExpressionAccess().getBitwiseAndExpressionParserRuleCall_0()); \r\n \r\n }\r\n pushFollow(FOLLOW_ruleBitwiseAndExpression_in_ruleBitwiseOrExpression6455);\r\n this_BitwiseAndExpression_0=ruleBitwiseAndExpression();\r\n\r\n state._fsp--;\r\n if (state.failed) return current;\r\n if ( state.backtracking==0 ) {\r\n \r\n current = this_BitwiseAndExpression_0; \r\n afterParserOrEnumRuleCall();\r\n \r\n }\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:2822:1: ( () otherlv_2= '|' ( (lv_rightOperand_3_0= ruleBitwiseAndExpression ) ) )*\r\n loop45:\r\n do {\r\n int alt45=2;\r\n int LA45_0 = input.LA(1);\r\n\r\n if ( (LA45_0==51) ) {\r\n alt45=1;\r\n }\r\n\r\n\r\n switch (alt45) {\r\n \tcase 1 :\r\n \t // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:2822:2: () otherlv_2= '|' ( (lv_rightOperand_3_0= ruleBitwiseAndExpression ) )\r\n \t {\r\n \t // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:2822:2: ()\r\n \t // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:2823:5: \r\n \t {\r\n \t if ( state.backtracking==0 ) {\r\n\r\n \t current = forceCreateModelElementAndSet(\r\n \t grammarAccess.getBitwiseOrExpressionAccess().getBitwiseOrExpressionLeftOperandAction_1_0(),\r\n \t current);\r\n \t \r\n \t }\r\n\r\n \t }\r\n\r\n \t otherlv_2=(Token)match(input,51,FOLLOW_51_in_ruleBitwiseOrExpression6476); if (state.failed) return current;\r\n \t if ( state.backtracking==0 ) {\r\n\r\n \t \tnewLeafNode(otherlv_2, grammarAccess.getBitwiseOrExpressionAccess().getVerticalLineKeyword_1_1());\r\n \t \r\n \t }\r\n \t // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:2832:1: ( (lv_rightOperand_3_0= ruleBitwiseAndExpression ) )\r\n \t // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:2833:1: (lv_rightOperand_3_0= ruleBitwiseAndExpression )\r\n \t {\r\n \t // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:2833:1: (lv_rightOperand_3_0= ruleBitwiseAndExpression )\r\n \t // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:2834:3: lv_rightOperand_3_0= ruleBitwiseAndExpression\r\n \t {\r\n \t if ( state.backtracking==0 ) {\r\n \t \r\n \t \t newCompositeNode(grammarAccess.getBitwiseOrExpressionAccess().getRightOperandBitwiseAndExpressionParserRuleCall_1_2_0()); \r\n \t \t \r\n \t }\r\n \t pushFollow(FOLLOW_ruleBitwiseAndExpression_in_ruleBitwiseOrExpression6497);\r\n \t lv_rightOperand_3_0=ruleBitwiseAndExpression();\r\n\r\n \t state._fsp--;\r\n \t if (state.failed) return current;\r\n \t if ( state.backtracking==0 ) {\r\n\r\n \t \t if (current==null) {\r\n \t \t current = createModelElementForParent(grammarAccess.getBitwiseOrExpressionRule());\r\n \t \t }\r\n \t \t\tset(\r\n \t \t\t\tcurrent, \r\n \t \t\t\t\"rightOperand\",\r\n \t \t\tlv_rightOperand_3_0, \r\n \t \t\t\"BitwiseAndExpression\");\r\n \t \t afterParserOrEnumRuleCall();\r\n \t \t \r\n \t }\r\n\r\n \t }\r\n\r\n\r\n \t }\r\n\r\n\r\n \t }\r\n \t break;\r\n\r\n \tdefault :\r\n \t break loop45;\r\n }\r\n } while (true);\r\n\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n if ( state.backtracking==0 ) {\r\n leaveRule(); \r\n }\r\n }\r\n \r\n catch (RecognitionException re) { \r\n recover(input,re); \r\n appendSkippedTokens();\r\n } \r\n finally {\r\n }\r\n return current;\r\n }", "@Override\n\tpublic void visit(BitwiseAnd arg0) {\n\t\t\n\t}", "private void parseAnd(Node node) {\r\n if (switchTest) return;\r\n parse(node.left());\r\n if (! ok) return;\r\n parse(node.right());\r\n }", "public final EObject ruleOr() throws RecognitionException {\n EObject current = null;\n\n Token lv_operator_2_0=null;\n EObject this_And_0 = null;\n\n EObject lv_right_3_0 = null;\n\n\n enterRule(); \n \n try {\n // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:3834:28: ( (this_And_0= ruleAnd ( () ( (lv_operator_2_0= '||' ) ) ( (lv_right_3_0= ruleAnd ) ) )* ) )\n // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:3835:1: (this_And_0= ruleAnd ( () ( (lv_operator_2_0= '||' ) ) ( (lv_right_3_0= ruleAnd ) ) )* )\n {\n // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:3835:1: (this_And_0= ruleAnd ( () ( (lv_operator_2_0= '||' ) ) ( (lv_right_3_0= ruleAnd ) ) )* )\n // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:3836:5: this_And_0= ruleAnd ( () ( (lv_operator_2_0= '||' ) ) ( (lv_right_3_0= ruleAnd ) ) )*\n {\n \n newCompositeNode(grammarAccess.getOrAccess().getAndParserRuleCall_0()); \n \n pushFollow(FOLLOW_ruleAnd_in_ruleOr8609);\n this_And_0=ruleAnd();\n\n state._fsp--;\n\n \n current = this_And_0; \n afterParserOrEnumRuleCall();\n \n // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:3844:1: ( () ( (lv_operator_2_0= '||' ) ) ( (lv_right_3_0= ruleAnd ) ) )*\n loop34:\n do {\n int alt34=2;\n int LA34_0 = input.LA(1);\n\n if ( (LA34_0==58) ) {\n alt34=1;\n }\n\n\n switch (alt34) {\n \tcase 1 :\n \t // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:3844:2: () ( (lv_operator_2_0= '||' ) ) ( (lv_right_3_0= ruleAnd ) )\n \t {\n \t // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:3844:2: ()\n \t // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:3845:5: \n \t {\n\n \t current = forceCreateModelElementAndSet(\n \t grammarAccess.getOrAccess().getBooleanOperationLeftAction_1_0(),\n \t current);\n \t \n\n \t }\n\n \t // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:3850:2: ( (lv_operator_2_0= '||' ) )\n \t // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:3851:1: (lv_operator_2_0= '||' )\n \t {\n \t // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:3851:1: (lv_operator_2_0= '||' )\n \t // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:3852:3: lv_operator_2_0= '||'\n \t {\n \t lv_operator_2_0=(Token)match(input,58,FOLLOW_58_in_ruleOr8636); \n\n \t newLeafNode(lv_operator_2_0, grammarAccess.getOrAccess().getOperatorVerticalLineVerticalLineKeyword_1_1_0());\n \t \n\n \t \t if (current==null) {\n \t \t current = createModelElement(grammarAccess.getOrRule());\n \t \t }\n \t \t\tsetWithLastConsumed(current, \"operator\", lv_operator_2_0, \"||\");\n \t \t \n\n \t }\n\n\n \t }\n\n \t // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:3865:2: ( (lv_right_3_0= ruleAnd ) )\n \t // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:3866:1: (lv_right_3_0= ruleAnd )\n \t {\n \t // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:3866:1: (lv_right_3_0= ruleAnd )\n \t // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:3867:3: lv_right_3_0= ruleAnd\n \t {\n \t \n \t \t newCompositeNode(grammarAccess.getOrAccess().getRightAndParserRuleCall_1_2_0()); \n \t \t \n \t pushFollow(FOLLOW_ruleAnd_in_ruleOr8670);\n \t lv_right_3_0=ruleAnd();\n\n \t state._fsp--;\n\n\n \t \t if (current==null) {\n \t \t current = createModelElementForParent(grammarAccess.getOrRule());\n \t \t }\n \t \t\tset(\n \t \t\t\tcurrent, \n \t \t\t\t\"right\",\n \t \t\tlv_right_3_0, \n \t \t\t\"And\");\n \t \t afterParserOrEnumRuleCall();\n \t \t \n\n \t }\n\n\n \t }\n\n\n \t }\n \t break;\n\n \tdefault :\n \t break loop34;\n }\n } while (true);\n\n\n }\n\n\n }\n\n leaveRule(); \n }\n \n catch (RecognitionException re) { \n recover(input,re); \n appendSkippedTokens();\n } \n finally {\n }\n return current;\n }", "public Object visitConditionalExpression(GNode n) {\n if (dostring) {\n Object a = dispatch(n.getGeneric(0));\n Object b = dispatch(n.getGeneric(1));\n Object c = dispatch(n.getGeneric(2));\n \n if (a instanceof Long) {\n return (! ((Long) a).equals(new Long(0))) ? b : c;\n }\n else {\n return parens(a) + \" ? \" + parens(b) + \" : \" + parens(c);\n }\n }\n else {\n BDD a = ensureBDD(dispatch(n.getGeneric(0)));\n BDD b = ensureBDD(dispatch(n.getGeneric(1)));\n BDD c = ensureBDD(dispatch(n.getGeneric(2)));\n BDD ab, na, nac, bdd;\n \n //implement with a & b | !a & c\n ab = a.and(b);\n b.free();\n na = a.not();\n a.free();\n nac = na.and(c);\n c.free();\n na.free();\n bdd = ab.or(nac);\n nac.free();\n ab.free();\n \n return bdd;\n }\n }", "@Override\npublic final void accept(TreeVisitor visitor) {\n visitor.visitWord(OpCodes.OR_NAME);\n if (ops != null) {\n for (int i = 0; i < ops.length; i++) {\n ops[i].accept(visitor);\n }\n } else {\n visitor.visitConstant(null, \"?\");\n }\n visitor.visitEnd();\n }", "@Override\n public JsonNode visit(JmesPathAndExpression andExpression, JsonNode input) throws InvalidTypeException {\n JsonNode lhsNode = andExpression.getLhsExpr().accept(this, input);\n JsonNode rhsNode = andExpression.getRhsExpr().accept(this, input);\n if (lhsNode == BooleanNode.TRUE) {\n return rhsNode;\n } else {\n return lhsNode;\n }\n }", "private boolean conditionAndOr( String condition, String[] ligne )\r\n {\n if( !condition.contains(\"AND\") || !condition.contains(\"OR\") )\r\n return this.conditionSimple(condition, ligne);\r\n \r\n // on suppose que cette fonction ne peut être utilisée que si\r\n // la condition ne contient pas des ( ou )\r\n // dans le cas d'une succession de AND et OR\r\n // on donne la priorité pour le AND\r\n boolean resultat = false;\r\n boolean resAnd = true;\r\n boolean resOr = false;\r\n \r\n // pour supprimer tous les espaces\r\n condition = condition.replaceAll(\" \", \"\");\r\n String[] conditionsAnd = condition.split(\"AND\");\r\n for( String cdsAnd : conditionsAnd ) // cds abréviation de conditions\r\n {\r\n String[] conditionsOr = cdsAnd.split(\"OR\");\r\n for( String cdsOr : conditionsOr )\r\n {\r\n resOr |= this.conditionSimple(cdsOr, ligne);\r\n }\r\n resAnd &= resOr;\r\n }\r\n resultat = resAnd;\r\n return resultat;\r\n }", "@SafeVarargs\n public static AndSpecification and( Specification<Composite> left,\n Specification<Composite> right,\n Specification<Composite>... optionalRight\n )\n {\n return new AndSpecification( prepend( left, prepend( right, Arrays.asList( optionalRight ) ) ) );\n }", "private static boolean checkAndOperations(String expression, Lexemes lexemes, SymbolTable table) {\n\t\tif (expression.contains(\"and\")) {\n\t\t\tString[] arr = expression.split(\"and\");\n\t\t\tint finalIndex = arr.length - 1;\n\n\t\t\tfor (int i = 0; i <= finalIndex; i++) {\n\t\t\t\tString s = arr[i];\n\n\t\t\t\tif (table.contains(s)) {\n\t\t\t\t\tint id = table.getIdOfVariable(s);\n\t\t\t\t\tlexemes.insertLexeme(\"ID\", ((Integer) id).toString());\n\t\t\t\t} else {\n\n\t\t\t\t\tif (s.equals(\"true\")) {\n\t\t\t\t\t\tlexemes.insertLexeme(\"CONST_BOOL\", \"true\");\n\t\t\t\t\t} else if (s.equals(\"false\")) {\n\t\t\t\t\t\tlexemes.insertLexeme(\"CONST_BOOL\", \"false\");\n\t\t\t\t\t} else {\n\t\t\t\t\t\tif (!checkOrOperations(s.trim(), lexemes, table)) return false;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tif (i < finalIndex) {\n\t\t\t\t\tlexemes.insertLexeme(\"LOGOP\", \"and\");\n\t\t\t\t} else if (expression.endsWith(\"and\")) {\n\t\t\t\t\tlexemes.insertLexeme(\"LOGOP\", \"and\");\n\t\t\t\t}\n\t\t\t}\n\n\t\t} else {\n\t\t\tif (!checkOrOperations(expression.trim(), lexemes, table)) return false;\n\t\t}\n\n\t\treturn true;\n\t}", "@Override\n\tpublic void visit(BitwiseAnd arg0) {\n\n\t}", "@Test\n public void testPredicateOr() {\n Predicate<Integer> isEven = (x) -> (x % 2) == 0;\n Predicate<Integer> isDivSeven = (x) -> (x % 7) == 0;\n\n Predicate<Integer> evenOrDivSeven = isEven.or(isDivSeven);\n\n assertTrue(evenOrDivSeven.apply(14));\n assertTrue(evenOrDivSeven.apply(21));\n assertTrue(evenOrDivSeven.apply(8));\n assertFalse(evenOrDivSeven.apply(5));\n }", "public final void rule__XOrExpression__Group__0__Impl() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \t\r\n try {\r\n // InternalDroneScript.g:5808:1: ( ( ruleXAndExpression ) )\r\n // InternalDroneScript.g:5809:1: ( ruleXAndExpression )\r\n {\r\n // InternalDroneScript.g:5809:1: ( ruleXAndExpression )\r\n // InternalDroneScript.g:5810:2: ruleXAndExpression\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getXOrExpressionAccess().getXAndExpressionParserRuleCall_0()); \r\n }\r\n pushFollow(FOLLOW_2);\r\n ruleXAndExpression();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getXOrExpressionAccess().getXAndExpressionParserRuleCall_0()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "public Object visitBitwiseOrExpression(GNode n) {\n Object a, b, result;\n \n nonboolean = true;\n \n dostring = true;\n \n a = dispatch(n.getGeneric(0));\n b = dispatch(n.getGeneric(1));\n \n dostring = false;\n \n if (a instanceof Long && b instanceof Long) {\n result = (Long) a | (Long) b;\n }\n else {\n result = parens(a) + \" | \" + parens(b);\n }\n \n return result;\n }", "IRequirement and(IRequirement requirement);", "public final CQLParser.orExpression_return orExpression() throws RecognitionException {\n CQLParser.orExpression_return retval = new CQLParser.orExpression_return();\n retval.start = input.LT(1);\n\n Object root_0 = null;\n\n Token OR85=null;\n CQLParser.andExpression_return andExpression84 = null;\n\n CQLParser.andExpression_return andExpression86 = null;\n\n\n Object OR85_tree=null;\n\n errorMessageStack.push(\"OR expression\"); \n try {\n // /home/chinaski/programming/agile_workspace/ExplorerCat/src/main/antlr3/net/explorercat/cql/parser/CQL.g:366:2: ( andExpression ( OR andExpression )* )\n // /home/chinaski/programming/agile_workspace/ExplorerCat/src/main/antlr3/net/explorercat/cql/parser/CQL.g:366:4: andExpression ( OR andExpression )*\n {\n root_0 = (Object)adaptor.nil();\n\n pushFollow(FOLLOW_andExpression_in_orExpression1693);\n andExpression84=andExpression();\n\n state._fsp--;\n\n adaptor.addChild(root_0, andExpression84.getTree());\n // /home/chinaski/programming/agile_workspace/ExplorerCat/src/main/antlr3/net/explorercat/cql/parser/CQL.g:366:18: ( OR andExpression )*\n loop22:\n do {\n int alt22=2;\n int LA22_0 = input.LA(1);\n\n if ( (LA22_0==OR) ) {\n alt22=1;\n }\n\n\n switch (alt22) {\n \tcase 1 :\n \t // /home/chinaski/programming/agile_workspace/ExplorerCat/src/main/antlr3/net/explorercat/cql/parser/CQL.g:366:19: OR andExpression\n \t {\n \t OR85=(Token)match(input,OR,FOLLOW_OR_in_orExpression1696); \n \t OR85_tree = (Object)adaptor.create(OR85);\n \t root_0 = (Object)adaptor.becomeRoot(OR85_tree, root_0);\n\n \t pushFollow(FOLLOW_andExpression_in_orExpression1699);\n \t andExpression86=andExpression();\n\n \t state._fsp--;\n\n \t adaptor.addChild(root_0, andExpression86.getTree());\n\n \t }\n \t break;\n\n \tdefault :\n \t break loop22;\n }\n } while (true);\n\n\n }\n\n retval.stop = input.LT(-1);\n\n retval.tree = (Object)adaptor.rulePostProcessing(root_0);\n adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);\n\n errorMessageStack.pop();\n }\n \t\n \tcatch(RecognitionException re)\n \t{\t\n \t\treportError(re);\n \t\tthrow re;\n \t}\n finally {\n }\n return retval;\n }", "@Test\n public void testPredicateAnd() {\n Predicate<Integer> isEven = (x) -> (x % 2) == 0;\n Predicate<Integer> isDivSeven = (x) -> (x % 7) == 0;\n\n Predicate<Integer> evenOrDivSeven = isEven.and(isDivSeven);\n\n assertTrue(evenOrDivSeven.apply(14));\n assertFalse(evenOrDivSeven.apply(21));\n assertFalse(evenOrDivSeven.apply(8));\n assertFalse(evenOrDivSeven.apply(5));\n }", "public void visit(ConditionalAndExpression n) {\n n.f0.accept(this);\n n.f1.accept(this);\n }", "public String visit(AndExpression n, Object argu) \n\t{\n\t\tString _ret=null;\n\t String e0 = n.f0.accept(this, argu);\n\t String e1 = n.f2.accept(this, argu);\n\t \n\t if (e0.equals(\"boolean\") && e1.equals(\"boolean\"))\n\t {\n\t \t_ret = \"boolean\";\n\t }\n\t return _ret;\n\t}", "public final void inclusiveOrExpression() throws RecognitionException {\n int inclusiveOrExpression_StartIndex = input.index();\n try { dbg.enterRule(getGrammarFileName(), \"inclusiveOrExpression\");\n if ( getRuleLevel()==0 ) {dbg.commence();}\n incRuleLevel();\n dbg.location(753, 1);\n\n try {\n if ( state.backtracking>0 && alreadyParsedRule(input, 110) ) { return ; }\n // Java.g:754:5: ( exclusiveOrExpression ( '|' exclusiveOrExpression )* )\n dbg.enterAlt(1);\n\n // Java.g:754:9: exclusiveOrExpression ( '|' exclusiveOrExpression )*\n {\n dbg.location(754,9);\n pushFollow(FOLLOW_exclusiveOrExpression_in_inclusiveOrExpression4420);\n exclusiveOrExpression();\n\n state._fsp--;\n if (state.failed) return ;\n dbg.location(754,31);\n // Java.g:754:31: ( '|' exclusiveOrExpression )*\n try { dbg.enterSubRule(131);\n\n loop131:\n do {\n int alt131=2;\n try { dbg.enterDecision(131);\n\n int LA131_0 = input.LA(1);\n\n if ( (LA131_0==100) ) {\n alt131=1;\n }\n\n\n } finally {dbg.exitDecision(131);}\n\n switch (alt131) {\n \tcase 1 :\n \t dbg.enterAlt(1);\n\n \t // Java.g:754:33: '|' exclusiveOrExpression\n \t {\n \t dbg.location(754,33);\n \t match(input,100,FOLLOW_100_in_inclusiveOrExpression4424); if (state.failed) return ;\n \t dbg.location(754,37);\n \t pushFollow(FOLLOW_exclusiveOrExpression_in_inclusiveOrExpression4426);\n \t exclusiveOrExpression();\n\n \t state._fsp--;\n \t if (state.failed) return ;\n\n \t }\n \t break;\n\n \tdefault :\n \t break loop131;\n }\n } while (true);\n } finally {dbg.exitSubRule(131);}\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n if ( state.backtracking>0 ) { memoize(input, 110, inclusiveOrExpression_StartIndex); }\n }\n dbg.location(755, 5);\n\n }\n finally {\n dbg.exitRule(getGrammarFileName(), \"inclusiveOrExpression\");\n decRuleLevel();\n if ( getRuleLevel()==0 ) {dbg.terminate();}\n }\n\n return ;\n }", "@Override\n\tpublic Object visit(ASTCondOr node, Object data) {\n\t\tnode.jjtGetChild(0).jjtAccept(this, data);\n\t\tSystem.out.print(\" or \");\n\t\tnode.jjtGetChild(1).jjtAccept(this, data);\n\t\treturn null;\n\t}", "String getOr_op();", "public final void rule__PredicateOr__Group__0__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../eu.quanticol.caspa.ui/src-gen/eu/quanticol/ui/contentassist/antlr/internal/InternalCASPA.g:3418:1: ( ( rulePredicateAnd ) )\n // ../eu.quanticol.caspa.ui/src-gen/eu/quanticol/ui/contentassist/antlr/internal/InternalCASPA.g:3419:1: ( rulePredicateAnd )\n {\n // ../eu.quanticol.caspa.ui/src-gen/eu/quanticol/ui/contentassist/antlr/internal/InternalCASPA.g:3419:1: ( rulePredicateAnd )\n // ../eu.quanticol.caspa.ui/src-gen/eu/quanticol/ui/contentassist/antlr/internal/InternalCASPA.g:3420:1: rulePredicateAnd\n {\n before(grammarAccess.getPredicateOrAccess().getPredicateAndParserRuleCall_0()); \n pushFollow(FOLLOW_rulePredicateAnd_in_rule__PredicateOr__Group__0__Impl6728);\n rulePredicateAnd();\n\n state._fsp--;\n\n after(grammarAccess.getPredicateOrAccess().getPredicateAndParserRuleCall_0()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public final EObject ruleAnd() throws RecognitionException {\n EObject current = null;\n\n Token lv_operator_2_0=null;\n EObject this_RelationalExpression_0 = null;\n\n EObject lv_right_3_0 = null;\n\n\n enterRule(); \n \n try {\n // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:3903:28: ( (this_RelationalExpression_0= ruleRelationalExpression ( () ( (lv_operator_2_0= '&&' ) ) ( (lv_right_3_0= ruleRelationalExpression ) ) )* ) )\n // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:3904:1: (this_RelationalExpression_0= ruleRelationalExpression ( () ( (lv_operator_2_0= '&&' ) ) ( (lv_right_3_0= ruleRelationalExpression ) ) )* )\n {\n // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:3904:1: (this_RelationalExpression_0= ruleRelationalExpression ( () ( (lv_operator_2_0= '&&' ) ) ( (lv_right_3_0= ruleRelationalExpression ) ) )* )\n // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:3905:5: this_RelationalExpression_0= ruleRelationalExpression ( () ( (lv_operator_2_0= '&&' ) ) ( (lv_right_3_0= ruleRelationalExpression ) ) )*\n {\n \n newCompositeNode(grammarAccess.getAndAccess().getRelationalExpressionParserRuleCall_0()); \n \n pushFollow(FOLLOW_ruleRelationalExpression_in_ruleAnd8765);\n this_RelationalExpression_0=ruleRelationalExpression();\n\n state._fsp--;\n\n \n current = this_RelationalExpression_0; \n afterParserOrEnumRuleCall();\n \n // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:3913:1: ( () ( (lv_operator_2_0= '&&' ) ) ( (lv_right_3_0= ruleRelationalExpression ) ) )*\n loop35:\n do {\n int alt35=2;\n int LA35_0 = input.LA(1);\n\n if ( (LA35_0==59) ) {\n alt35=1;\n }\n\n\n switch (alt35) {\n \tcase 1 :\n \t // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:3913:2: () ( (lv_operator_2_0= '&&' ) ) ( (lv_right_3_0= ruleRelationalExpression ) )\n \t {\n \t // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:3913:2: ()\n \t // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:3914:5: \n \t {\n\n \t current = forceCreateModelElementAndSet(\n \t grammarAccess.getAndAccess().getBooleanOperationLeftAction_1_0(),\n \t current);\n \t \n\n \t }\n\n \t // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:3919:2: ( (lv_operator_2_0= '&&' ) )\n \t // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:3920:1: (lv_operator_2_0= '&&' )\n \t {\n \t // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:3920:1: (lv_operator_2_0= '&&' )\n \t // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:3921:3: lv_operator_2_0= '&&'\n \t {\n \t lv_operator_2_0=(Token)match(input,59,FOLLOW_59_in_ruleAnd8792); \n\n \t newLeafNode(lv_operator_2_0, grammarAccess.getAndAccess().getOperatorAmpersandAmpersandKeyword_1_1_0());\n \t \n\n \t \t if (current==null) {\n \t \t current = createModelElement(grammarAccess.getAndRule());\n \t \t }\n \t \t\tsetWithLastConsumed(current, \"operator\", lv_operator_2_0, \"&&\");\n \t \t \n\n \t }\n\n\n \t }\n\n \t // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:3934:2: ( (lv_right_3_0= ruleRelationalExpression ) )\n \t // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:3935:1: (lv_right_3_0= ruleRelationalExpression )\n \t {\n \t // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:3935:1: (lv_right_3_0= ruleRelationalExpression )\n \t // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:3936:3: lv_right_3_0= ruleRelationalExpression\n \t {\n \t \n \t \t newCompositeNode(grammarAccess.getAndAccess().getRightRelationalExpressionParserRuleCall_1_2_0()); \n \t \t \n \t pushFollow(FOLLOW_ruleRelationalExpression_in_ruleAnd8826);\n \t lv_right_3_0=ruleRelationalExpression();\n\n \t state._fsp--;\n\n\n \t \t if (current==null) {\n \t \t current = createModelElementForParent(grammarAccess.getAndRule());\n \t \t }\n \t \t\tset(\n \t \t\t\tcurrent, \n \t \t\t\t\"right\",\n \t \t\tlv_right_3_0, \n \t \t\t\"RelationalExpression\");\n \t \t afterParserOrEnumRuleCall();\n \t \t \n\n \t }\n\n\n \t }\n\n\n \t }\n \t break;\n\n \tdefault :\n \t break loop35;\n }\n } while (true);\n\n\n }\n\n\n }\n\n leaveRule(); \n }\n \n catch (RecognitionException re) { \n recover(input,re); \n appendSkippedTokens();\n } \n finally {\n }\n return current;\n }", "public final void rule__XOrExpression__Group__0__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:3582:1: ( ( ruleXAndExpression ) )\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:3583:1: ( ruleXAndExpression )\n {\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:3583:1: ( ruleXAndExpression )\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:3584:1: ruleXAndExpression\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXOrExpressionAccess().getXAndExpressionParserRuleCall_0()); \n }\n pushFollow(FOLLOW_ruleXAndExpression_in_rule__XOrExpression__Group__0__Impl7519);\n ruleXAndExpression();\n\n state._fsp--;\n if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXOrExpressionAccess().getXAndExpressionParserRuleCall_0()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "private Term parseBtwiseXOr(final boolean required) throws ParseException {\n Term t1 = parseBitwiseAnd(required);\n while (t1 != null) {\n int tt = _tokenizer.next();\n if (tt == '^') {\n Term t2 = parseBitwiseAnd(true);\n if ((t1.isI() && t2.isI()) || !isTypeChecking()) {\n t1 = new Term.XOrI(t1, t2);\n } else {\n reportTypeErrorI2(\"'^'\");\n }\n } else {\n _tokenizer.pushBack();\n break;\n }\n }\n return t1;\n }", "public static BinaryExpression exclusiveOr(Expression expression0, Expression expression1, Method method) { throw Extensions.todo(); }", "public static BinaryExpression andAssign(Expression expression0, Expression expression1, Method method) { throw Extensions.todo(); }", "private Object eval(AndExpr expr) {\n if (expr.getExpr().size() == 1) {\n return eval(expr.getExpr().get(0));\n }\n\n boolean result = true;\n for (RelExpr e : expr.getExpr()) {\n Object res = eval(e);\n if (res instanceof Boolean) {\n result = result && (Boolean) res;\n } else {\n throw new RaydenScriptException(\"Expression error: Part expression result is not a boolean. Type: '\" + res.getClass() + \"'\");\n }\n\n if (!result) {\n return false;\n }\n }\n return true;\n }", "public final void rule__XOrExpression__RightOperandAssignment_1_1() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \t\r\n try {\r\n // InternalDroneScript.g:17464:1: ( ( ruleXAndExpression ) )\r\n // InternalDroneScript.g:17465:2: ( ruleXAndExpression )\r\n {\r\n // InternalDroneScript.g:17465:2: ( ruleXAndExpression )\r\n // InternalDroneScript.g:17466:3: ruleXAndExpression\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getXOrExpressionAccess().getRightOperandXAndExpressionParserRuleCall_1_1_0()); \r\n }\r\n pushFollow(FOLLOW_2);\r\n ruleXAndExpression();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getXOrExpressionAccess().getRightOperandXAndExpressionParserRuleCall_1_1_0()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "public void setAndOr (String AndOr);", "public final EObject ruleAndOperator() throws RecognitionException {\r\n EObject current = null;\r\n\r\n Token otherlv_1=null;\r\n Token otherlv_2=null;\r\n\r\n enterRule(); \r\n \r\n try {\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:4468:28: ( ( () (otherlv_1= 'and' | otherlv_2= '&&' ) ) )\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:4469:1: ( () (otherlv_1= 'and' | otherlv_2= '&&' ) )\r\n {\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:4469:1: ( () (otherlv_1= 'and' | otherlv_2= '&&' ) )\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:4469:2: () (otherlv_1= 'and' | otherlv_2= '&&' )\r\n {\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:4469:2: ()\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:4470:5: \r\n {\r\n if ( state.backtracking==0 ) {\r\n\r\n current = forceCreateModelElement(\r\n grammarAccess.getAndOperatorAccess().getAndOperatorAction_0(),\r\n current);\r\n \r\n }\r\n\r\n }\r\n\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:4475:2: (otherlv_1= 'and' | otherlv_2= '&&' )\r\n int alt53=2;\r\n int LA53_0 = input.LA(1);\r\n\r\n if ( (LA53_0==51) ) {\r\n alt53=1;\r\n }\r\n else if ( (LA53_0==52) ) {\r\n alt53=2;\r\n }\r\n else {\r\n if (state.backtracking>0) {state.failed=true; return current;}\r\n NoViableAltException nvae =\r\n new NoViableAltException(\"\", 53, 0, input);\r\n\r\n throw nvae;\r\n }\r\n switch (alt53) {\r\n case 1 :\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:4475:4: otherlv_1= 'and'\r\n {\r\n otherlv_1=(Token)match(input,51,FOLLOW_51_in_ruleAndOperator9750); if (state.failed) return current;\r\n if ( state.backtracking==0 ) {\r\n\r\n \tnewLeafNode(otherlv_1, grammarAccess.getAndOperatorAccess().getAndKeyword_1_0());\r\n \r\n }\r\n\r\n }\r\n break;\r\n case 2 :\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:4480:7: otherlv_2= '&&'\r\n {\r\n otherlv_2=(Token)match(input,52,FOLLOW_52_in_ruleAndOperator9768); if (state.failed) return current;\r\n if ( state.backtracking==0 ) {\r\n\r\n \tnewLeafNode(otherlv_2, grammarAccess.getAndOperatorAccess().getAmpersandAmpersandKeyword_1_1());\r\n \r\n }\r\n\r\n }\r\n break;\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n if ( state.backtracking==0 ) {\r\n leaveRule(); \r\n }\r\n }\r\n \r\n catch (RecognitionException re) { \r\n recover(input,re); \r\n appendSkippedTokens();\r\n } \r\n finally {\r\n }\r\n return current;\r\n }", "@Override\n\tpublic Object visit(ASTFilterAnd node, Object data) {\n\t\tSystem.out.print(node.jjtGetChild(0).jjtAccept(this, data));\n\t\tSystem.out.print(\" and \");\n\t\tSystem.out.print(node.jjtGetChild(1).jjtAccept(this, data));\n\t\treturn null;\n\t}", "public static BinaryExpression exclusiveOrAssign(Expression expression0, Expression expression1) { throw Extensions.todo(); }", "public final PythonParser.xor_expr_return xor_expr() throws RecognitionException {\n PythonParser.xor_expr_return retval = new PythonParser.xor_expr_return();\n retval.start = input.LT(1);\n\n PythonTree root_0 = null;\n\n Token op=null;\n List list_right=null;\n PythonParser.and_expr_return left = null;\n\n PythonParser.and_expr_return right = null;\n right = null;\n PythonTree op_tree=null;\n RewriteRuleTokenStream stream_CIRCUMFLEX=new RewriteRuleTokenStream(adaptor,\"token CIRCUMFLEX\");\n RewriteRuleSubtreeStream stream_and_expr=new RewriteRuleSubtreeStream(adaptor,\"rule and_expr\");\n try {\n // /run/media/abhi/0cc7e6ad-008e-43cd-b47d-f3ed6f127f92/home/abhi/dacapo-9.12-bach-src (2)/benchmarks/bms/jython/build/grammar/Python.g:1155:5: (left= and_expr ( (op= CIRCUMFLEX right+= and_expr )+ | -> $left) )\n // /run/media/abhi/0cc7e6ad-008e-43cd-b47d-f3ed6f127f92/home/abhi/dacapo-9.12-bach-src (2)/benchmarks/bms/jython/build/grammar/Python.g:1155:7: left= and_expr ( (op= CIRCUMFLEX right+= and_expr )+ | -> $left)\n {\n pushFollow(FOLLOW_and_expr_in_xor_expr4941);\n left=and_expr();\n\n state._fsp--;\n if (state.failed) return retval;\n if ( state.backtracking==0 ) stream_and_expr.add(left.getTree());\n // /run/media/abhi/0cc7e6ad-008e-43cd-b47d-f3ed6f127f92/home/abhi/dacapo-9.12-bach-src (2)/benchmarks/bms/jython/build/grammar/Python.g:1156:9: ( (op= CIRCUMFLEX right+= and_expr )+ | -> $left)\n int alt91=2;\n int LA91_0 = input.LA(1);\n\n if ( (LA91_0==CIRCUMFLEX) ) {\n alt91=1;\n }\n else if ( (LA91_0==EOF||LA91_0==NEWLINE||LA91_0==NAME||(LA91_0>=AND && LA91_0<=AS)||LA91_0==FOR||LA91_0==IF||(LA91_0>=IN && LA91_0<=IS)||(LA91_0>=NOT && LA91_0<=ORELSE)||(LA91_0>=RPAREN && LA91_0<=COMMA)||(LA91_0>=SEMI && LA91_0<=DOUBLESLASHEQUAL)||(LA91_0>=LESS && LA91_0<=VBAR)||LA91_0==RBRACK||(LA91_0>=RCURLY && LA91_0<=BACKQUOTE)) ) {\n alt91=2;\n }\n else {\n if (state.backtracking>0) {state.failed=true; return retval;}\n NoViableAltException nvae =\n new NoViableAltException(\"\", 91, 0, input);\n\n throw nvae;\n }\n switch (alt91) {\n case 1 :\n // /run/media/abhi/0cc7e6ad-008e-43cd-b47d-f3ed6f127f92/home/abhi/dacapo-9.12-bach-src (2)/benchmarks/bms/jython/build/grammar/Python.g:1156:11: (op= CIRCUMFLEX right+= and_expr )+\n {\n // /run/media/abhi/0cc7e6ad-008e-43cd-b47d-f3ed6f127f92/home/abhi/dacapo-9.12-bach-src (2)/benchmarks/bms/jython/build/grammar/Python.g:1156:11: (op= CIRCUMFLEX right+= and_expr )+\n int cnt90=0;\n loop90:\n do {\n int alt90=2;\n int LA90_0 = input.LA(1);\n\n if ( (LA90_0==CIRCUMFLEX) ) {\n alt90=1;\n }\n\n\n switch (alt90) {\n \tcase 1 :\n \t // /run/media/abhi/0cc7e6ad-008e-43cd-b47d-f3ed6f127f92/home/abhi/dacapo-9.12-bach-src (2)/benchmarks/bms/jython/build/grammar/Python.g:1156:12: op= CIRCUMFLEX right+= and_expr\n \t {\n \t op=(Token)match(input,CIRCUMFLEX,FOLLOW_CIRCUMFLEX_in_xor_expr4956); if (state.failed) return retval; \n \t if ( state.backtracking==0 ) stream_CIRCUMFLEX.add(op);\n\n \t pushFollow(FOLLOW_and_expr_in_xor_expr4960);\n \t right=and_expr();\n\n \t state._fsp--;\n \t if (state.failed) return retval;\n \t if ( state.backtracking==0 ) stream_and_expr.add(right.getTree());\n \t if (list_right==null) list_right=new ArrayList();\n \t list_right.add(right.getTree());\n\n\n \t }\n \t break;\n\n \tdefault :\n \t if ( cnt90 >= 1 ) break loop90;\n \t if (state.backtracking>0) {state.failed=true; return retval;}\n EarlyExitException eee =\n new EarlyExitException(90, input);\n throw eee;\n }\n cnt90++;\n } while (true);\n\n\n }\n break;\n case 2 :\n // /run/media/abhi/0cc7e6ad-008e-43cd-b47d-f3ed6f127f92/home/abhi/dacapo-9.12-bach-src (2)/benchmarks/bms/jython/build/grammar/Python.g:1159:8: \n {\n\n // AST REWRITE\n // elements: left\n // token labels: \n // rule labels: retval, left\n // token list labels: \n // rule list labels: \n // wildcard labels: \n if ( state.backtracking==0 ) {\n retval.tree = root_0;\n RewriteRuleSubtreeStream stream_retval=new RewriteRuleSubtreeStream(adaptor,\"rule retval\",retval!=null?retval.tree:null);\n RewriteRuleSubtreeStream stream_left=new RewriteRuleSubtreeStream(adaptor,\"rule left\",left!=null?left.tree:null);\n\n root_0 = (PythonTree)adaptor.nil();\n // 1159:8: -> $left\n {\n adaptor.addChild(root_0, stream_left.nextTree());\n\n }\n\n retval.tree = root_0;}\n }\n break;\n\n }\n\n\n }\n\n retval.stop = input.LT(-1);\n\n if ( state.backtracking==0 ) {\n\n retval.tree = (PythonTree)adaptor.rulePostProcessing(root_0);\n adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);\n }\n if ( state.backtracking==0 ) {\n\n if (op != null) {\n retval.tree = actions.makeBinOp((left!=null?((PythonTree)left.tree):null), operatorType.BitXor, list_right);\n }\n\n }\n }\n\n catch (RecognitionException re) {\n errorHandler.reportError(this, re);\n errorHandler.recover(this, input,re);\n retval.tree = (PythonTree)adaptor.errorNode(input, retval.start, input.LT(-1), re);\n }\n finally {\n }\n return retval;\n }", "private Term parseBitwiseOr(final boolean required) throws ParseException {\n Term t1 = parseBtwiseXOr(required);\n while (t1 != null) {\n int tt = _tokenizer.next();\n if (tt == '|') {\n Term t2 = parseBtwiseXOr(true);\n if ((t1.isI() && t2.isI()) || !isTypeChecking()) {\n t1 = new Term.OrI(t1, t2);\n } else {\n reportTypeErrorI2(\"'|'\");\n }\n } else {\n _tokenizer.pushBack();\n break;\n }\n }\n return t1;\n }", "public final void rule__XOrExpression__RightOperandAssignment_1_1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:12192:1: ( ( ruleXAndExpression ) )\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:12193:1: ( ruleXAndExpression )\n {\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:12193:1: ( ruleXAndExpression )\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:12194:1: ruleXAndExpression\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXOrExpressionAccess().getRightOperandXAndExpressionParserRuleCall_1_1_0()); \n }\n pushFollow(FOLLOW_ruleXAndExpression_in_rule__XOrExpression__RightOperandAssignment_1_124452);\n ruleXAndExpression();\n\n state._fsp--;\n if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXOrExpressionAccess().getRightOperandXAndExpressionParserRuleCall_1_1_0()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public T caseLogicalAndExpression(LogicalAndExpression object)\n {\n return null;\n }", "public final void ruleOpAnd() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:445:2: ( ( '&&' ) )\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:446:1: ( '&&' )\n {\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:446:1: ( '&&' )\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:447:1: '&&'\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getOpAndAccess().getAmpersandAmpersandKeyword()); \n }\n match(input,14,FOLLOW_14_in_ruleOpAnd886); if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getOpAndAccess().getAmpersandAmpersandKeyword()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public boolean containsOrOperator() {\r\n\t\tfor (int n = 0; n < elements.size(); ++n) {\r\n\t\t\tObject ob = elements.get(n);\r\n\t\t\tif (ob instanceof Operator.OrOperator) {\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "StatementChain and(ProfileStatement... statements);", "public final void rule__XAndExpression__FeatureAssignment_1_0_0_1() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \t\r\n try {\r\n // InternalDroneScript.g:17479:1: ( ( ( ruleOpAnd ) ) )\r\n // InternalDroneScript.g:17480:2: ( ( ruleOpAnd ) )\r\n {\r\n // InternalDroneScript.g:17480:2: ( ( ruleOpAnd ) )\r\n // InternalDroneScript.g:17481:3: ( ruleOpAnd )\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getXAndExpressionAccess().getFeatureJvmIdentifiableElementCrossReference_1_0_0_1_0()); \r\n }\r\n // InternalDroneScript.g:17482:3: ( ruleOpAnd )\r\n // InternalDroneScript.g:17483:4: ruleOpAnd\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getXAndExpressionAccess().getFeatureJvmIdentifiableElementOpAndParserRuleCall_1_0_0_1_0_1()); \r\n }\r\n pushFollow(FOLLOW_2);\r\n ruleOpAnd();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getXAndExpressionAccess().getFeatureJvmIdentifiableElementOpAndParserRuleCall_1_0_0_1_0_1()); \r\n }\r\n\r\n }\r\n\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getXAndExpressionAccess().getFeatureJvmIdentifiableElementCrossReference_1_0_0_1_0()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "public LogicalOperator() {\n this.logical = Logical.And;\n }", "@Test\n\tpublic void testBuildExpressionWithThreeArguments() {\n\t\t\n\t\tWord wordA = new Word(\"apple\", 1);\n\t\tWord wordB = new Word(\"car\", 1);\n\t\tWord wordC = new Word(\"roof\", 2);\n\t\t\n\t\tExpressionBuilder<Word> builder = new ExpressionBuilder<>();\n\t\tbuilder.append(null, wordA);\n\t\tbuilder.append(new AndOperator<Word>(), wordB);\n\t\tbuilder.append(new OrOperator<Word>(), wordC);\n\t\t\n\t\tExpression<Word> resultExpression = builder.getExpression();\n\t\t\n\t\tString expectedResult = \"((apple [1] AND car [1]) OR roof [2])\";\n\t\t\n\t\tSystem.out.println(resultExpression.evaluate());\n\t\tassertEquals(expectedResult, resultExpression.toString());\n\t\t\n\t}", "public final void logicExpresions() throws RecognitionException {\r\n try {\r\n // D:\\\\entornotrabajo\\\\workspace-sgo\\\\persistance\\\\src\\\\main\\\\java\\\\es\\\\caser\\\\persistance\\\\sql\\\\antlr\\\\SQLGrammar.g:118:2: ( logicExpresion ( operator logicExpresion )* )\r\n // D:\\\\entornotrabajo\\\\workspace-sgo\\\\persistance\\\\src\\\\main\\\\java\\\\es\\\\caser\\\\persistance\\\\sql\\\\antlr\\\\SQLGrammar.g:118:5: logicExpresion ( operator logicExpresion )*\r\n {\r\n pushFollow(FOLLOW_logicExpresion_in_logicExpresions427);\r\n logicExpresion();\r\n\r\n state._fsp--;\r\n\r\n // D:\\\\entornotrabajo\\\\workspace-sgo\\\\persistance\\\\src\\\\main\\\\java\\\\es\\\\caser\\\\persistance\\\\sql\\\\antlr\\\\SQLGrammar.g:118:20: ( operator logicExpresion )*\r\n loop19:\r\n do {\r\n int alt19=2;\r\n int LA19_0 = input.LA(1);\r\n\r\n if ( ((LA19_0>=AND && LA19_0<=OR)) ) {\r\n alt19=1;\r\n }\r\n\r\n\r\n switch (alt19) {\r\n \tcase 1 :\r\n \t // D:\\\\entornotrabajo\\\\workspace-sgo\\\\persistance\\\\src\\\\main\\\\java\\\\es\\\\caser\\\\persistance\\\\sql\\\\antlr\\\\SQLGrammar.g:118:21: operator logicExpresion\r\n \t {\r\n \t pushFollow(FOLLOW_operator_in_logicExpresions430);\r\n \t operator();\r\n\r\n \t state._fsp--;\r\n\r\n \t pushFollow(FOLLOW_logicExpresion_in_logicExpresions432);\r\n \t logicExpresion();\r\n\r\n \t state._fsp--;\r\n\r\n\r\n \t }\r\n \t break;\r\n\r\n \tdefault :\r\n \t break loop19;\r\n }\r\n } while (true);\r\n\r\n\r\n }\r\n\r\n }\r\n finally {\r\n }\r\n return ;\r\n }", "public final void rule__XAndExpression__FeatureAssignment_1_0_0_1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:12207:1: ( ( ( ruleOpAnd ) ) )\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:12208:1: ( ( ruleOpAnd ) )\n {\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:12208:1: ( ( ruleOpAnd ) )\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:12209:1: ( ruleOpAnd )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXAndExpressionAccess().getFeatureJvmIdentifiableElementCrossReference_1_0_0_1_0()); \n }\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:12210:1: ( ruleOpAnd )\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:12211:1: ruleOpAnd\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXAndExpressionAccess().getFeatureJvmIdentifiableElementOpAndParserRuleCall_1_0_0_1_0_1()); \n }\n pushFollow(FOLLOW_ruleOpAnd_in_rule__XAndExpression__FeatureAssignment_1_0_0_124487);\n ruleOpAnd();\n\n state._fsp--;\n if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXAndExpressionAccess().getFeatureJvmIdentifiableElementOpAndParserRuleCall_1_0_0_1_0_1()); \n }\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXAndExpressionAccess().getFeatureJvmIdentifiableElementCrossReference_1_0_0_1_0()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "@Override\n public ILogical and(ILogical operador) {\n return operador.andBinary(this);\n }", "public final void rule__XOrExpression__Group__0__Impl() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:6471:1: ( ( ruleXAndExpression ) )\r\n // ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:6472:1: ( ruleXAndExpression )\r\n {\r\n // ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:6472:1: ( ruleXAndExpression )\r\n // ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:6473:1: ruleXAndExpression\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getXOrExpressionAccess().getXAndExpressionParserRuleCall_0()); \r\n }\r\n pushFollow(FOLLOW_ruleXAndExpression_in_rule__XOrExpression__Group__0__Impl13593);\r\n ruleXAndExpression();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getXOrExpressionAccess().getXAndExpressionParserRuleCall_0()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "public Snippet visit(ConditionalOrExpression n, Snippet argu) {\n\t Snippet _ret= new Snippet(\"\",\"\",null,false);\n\t Snippet f0 = n.identifier.accept(this, argu);\n\t n.nodeToken.accept(this, argu);\n\t Snippet f2 = n.identifier1.accept(this, argu);\n\t _ret.returnTemp = f0.returnTemp+\" || \"+f2.returnTemp;\n\t return _ret;\n\t }", "public void testX1andX2orNotX1() {\n \tCircuit circuit = new Circuit();\n \t\n \tBoolean b1 = Boolean.TRUE;\n \tBoolean b2 = Boolean.FALSE;\n \tAnd and = (And) circuit.getFactory().getGate(Gate.AND);\n\t\tNot not = (Not) circuit.getFactory().getGate(Gate.NOT);\n\t\tOr or = (Or) circuit.getFactory().getGate(Gate.OR);\n\t\tand.setLeftInput(b1);\n\t\tand.setRightInput(b2);\n\t\tand.eval();\n\t\tnot.setInput(b1);\n\t\tnot.eval();\n\t\tor.setLeftInput(and.getOutput());\n\t\tor.setRightInput(not.getOutput());\n\t\tassertEquals(Boolean.FALSE, or.eval());\n\t\tassertEquals(Boolean.FALSE, circuit.eval());\n//\t\t==========================================\n\t\tb1 = Boolean.FALSE;\n \tb2 = Boolean.TRUE;\n// \tand.eval();\n// \tnot.eval();\n \tassertEquals(Boolean.FALSE, circuit.eval());\n// \t============================================\n \tDouble d1 = 0.0;\n \tDouble d2 = 1.0;\n \tand.setLeftInput(d1);\n\t\tand.setRightInput(d2);\n\t\tnot.setInput(d1);\n\t\tor.setLeftInput(and.getOutput());\n\t\tor.setRightInput(not.getOutput());\n \tassertEquals( new Double(1.0), or.eval());\n// \t============================================\n \td1 = 0.5;\n \td2 = 0.5;\n \tand.setLeftInput(d1);\n\t\tand.setRightInput(d2);\n \tand.eval();\n \tnot.setInput(d1);\n \tnot.eval();\n\t\tor.setLeftInput(and.getOutput());\n\t\tor.setRightInput(not.getOutput());\n \tassertEquals( new Double(0.625), or.eval());\n// \t============================================\n \ttry {\n \td1 = 0.5;\n \td2 = 2.0;\n \tand.setLeftInput(d1);\n \t\tand.setRightInput(d2);\n \tand.eval();\n \tnot.setInput(d1);\n \tnot.eval();\n \t\tor.setLeftInput(and.getOutput());\n \t\tor.setRightInput(not.getOutput());\n \tassertEquals( new Double(0.625), or.eval());\n \t} catch (IllegalArgumentException e) {\n \t\tSystem.err.println(\"IllegalArgumentException: \" + e.getMessage());\n \t}\n\n }", "public final EObject ruleLogicalAndExpression() throws RecognitionException {\r\n EObject current = null;\r\n\r\n Token otherlv_2=null;\r\n EObject this_LogicalNotExpression_0 = null;\r\n\r\n EObject lv_rightOperand_3_0 = null;\r\n\r\n\r\n enterRule(); \r\n \r\n try {\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:2637:28: ( (this_LogicalNotExpression_0= ruleLogicalNotExpression ( () otherlv_2= '&&' ( (lv_rightOperand_3_0= ruleLogicalNotExpression ) ) )* ) )\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:2638:1: (this_LogicalNotExpression_0= ruleLogicalNotExpression ( () otherlv_2= '&&' ( (lv_rightOperand_3_0= ruleLogicalNotExpression ) ) )* )\r\n {\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:2638:1: (this_LogicalNotExpression_0= ruleLogicalNotExpression ( () otherlv_2= '&&' ( (lv_rightOperand_3_0= ruleLogicalNotExpression ) ) )* )\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:2639:5: this_LogicalNotExpression_0= ruleLogicalNotExpression ( () otherlv_2= '&&' ( (lv_rightOperand_3_0= ruleLogicalNotExpression ) ) )*\r\n {\r\n if ( state.backtracking==0 ) {\r\n \r\n newCompositeNode(grammarAccess.getLogicalAndExpressionAccess().getLogicalNotExpressionParserRuleCall_0()); \r\n \r\n }\r\n pushFollow(FOLLOW_ruleLogicalNotExpression_in_ruleLogicalAndExpression6039);\r\n this_LogicalNotExpression_0=ruleLogicalNotExpression();\r\n\r\n state._fsp--;\r\n if (state.failed) return current;\r\n if ( state.backtracking==0 ) {\r\n \r\n current = this_LogicalNotExpression_0; \r\n afterParserOrEnumRuleCall();\r\n \r\n }\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:2647:1: ( () otherlv_2= '&&' ( (lv_rightOperand_3_0= ruleLogicalNotExpression ) ) )*\r\n loop42:\r\n do {\r\n int alt42=2;\r\n int LA42_0 = input.LA(1);\r\n\r\n if ( (LA42_0==48) ) {\r\n alt42=1;\r\n }\r\n\r\n\r\n switch (alt42) {\r\n \tcase 1 :\r\n \t // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:2647:2: () otherlv_2= '&&' ( (lv_rightOperand_3_0= ruleLogicalNotExpression ) )\r\n \t {\r\n \t // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:2647:2: ()\r\n \t // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:2648:5: \r\n \t {\r\n \t if ( state.backtracking==0 ) {\r\n\r\n \t current = forceCreateModelElementAndSet(\r\n \t grammarAccess.getLogicalAndExpressionAccess().getLogicalAndExpressionLeftOperandAction_1_0(),\r\n \t current);\r\n \t \r\n \t }\r\n\r\n \t }\r\n\r\n \t otherlv_2=(Token)match(input,48,FOLLOW_48_in_ruleLogicalAndExpression6060); if (state.failed) return current;\r\n \t if ( state.backtracking==0 ) {\r\n\r\n \t \tnewLeafNode(otherlv_2, grammarAccess.getLogicalAndExpressionAccess().getAmpersandAmpersandKeyword_1_1());\r\n \t \r\n \t }\r\n \t // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:2657:1: ( (lv_rightOperand_3_0= ruleLogicalNotExpression ) )\r\n \t // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:2658:1: (lv_rightOperand_3_0= ruleLogicalNotExpression )\r\n \t {\r\n \t // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:2658:1: (lv_rightOperand_3_0= ruleLogicalNotExpression )\r\n \t // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:2659:3: lv_rightOperand_3_0= ruleLogicalNotExpression\r\n \t {\r\n \t if ( state.backtracking==0 ) {\r\n \t \r\n \t \t newCompositeNode(grammarAccess.getLogicalAndExpressionAccess().getRightOperandLogicalNotExpressionParserRuleCall_1_2_0()); \r\n \t \t \r\n \t }\r\n \t pushFollow(FOLLOW_ruleLogicalNotExpression_in_ruleLogicalAndExpression6081);\r\n \t lv_rightOperand_3_0=ruleLogicalNotExpression();\r\n\r\n \t state._fsp--;\r\n \t if (state.failed) return current;\r\n \t if ( state.backtracking==0 ) {\r\n\r\n \t \t if (current==null) {\r\n \t \t current = createModelElementForParent(grammarAccess.getLogicalAndExpressionRule());\r\n \t \t }\r\n \t \t\tset(\r\n \t \t\t\tcurrent, \r\n \t \t\t\t\"rightOperand\",\r\n \t \t\tlv_rightOperand_3_0, \r\n \t \t\t\"LogicalNotExpression\");\r\n \t \t afterParserOrEnumRuleCall();\r\n \t \t \r\n \t }\r\n\r\n \t }\r\n\r\n\r\n \t }\r\n\r\n\r\n \t }\r\n \t break;\r\n\r\n \tdefault :\r\n \t break loop42;\r\n }\r\n } while (true);\r\n\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n if ( state.backtracking==0 ) {\r\n leaveRule(); \r\n }\r\n }\r\n \r\n catch (RecognitionException re) { \r\n recover(input,re); \r\n appendSkippedTokens();\r\n } \r\n finally {\r\n }\r\n return current;\r\n }", "public void executeAnd(){\n\t\tBitString destBS = mIR.substring(4, 3);\n\t\tBitString operand1 = mRegisters[mIR.substring(7, 3).getValue()];\n\t\tchar[] andSolution = new char[16];\n\t\tBitString operand2 = new BitString();\n\t\tif(mIR.substring(10, 1).getValue() == 1){ //immediate mode\n\t\t\toperand2 = mIR.substring(11, 5); //imma5\n\t\t\tif(operand2.getValue2sComp() < 0){\n\t\t\t\tBitString negativeExtend = new BitString();\n\t\t\t\tnegativeExtend.setBits(\"11111111111\".toCharArray());\n\t\t\t\tnegativeExtend.append(operand2);\n\t\t\t\toperand2 = negativeExtend;\n\t\t\t} else {\n\t\t\t\tBitString positiveExtended = new BitString();\n\t\t\t\tpositiveExtended.setBits(\"00000000000\".toCharArray());\n\t\t\t\toperand2 = positiveExtended.append(operand2);\n\t\t\t}\n\t\t} else { \t\t\t\t\t\t\t\t\t\t\t\t//register mode\n\t\t\toperand2 = mRegisters[mIR.substring(13, 3).getValue()];\n\t\t}\n\n\n\t\tfor (int i = 0; i < operand1.getLength(); i++) {\n\t\t\tif(operand1.substring(i, 1).getValue() + operand2.substring(i, 1).getValue() ==2){\n\t\t\t\tandSolution[i] = '1';\n\t\t\t} else {\n\t\t\t\tandSolution[i] = '0';\n\t\t\t}\n\t\t}\n\n\t\tmRegisters[destBS.getValue()].setBits(andSolution);\n\n\t\tsetConditionalCode(mRegisters[destBS.getValue()]);\n\t}", "public final void conditionalExpression() throws RecognitionException {\n int conditionalExpression_StartIndex = input.index();\n try { dbg.enterRule(getGrammarFileName(), \"conditionalExpression\");\n if ( getRuleLevel()==0 ) {dbg.commence();}\n incRuleLevel();\n dbg.location(741, 1);\n\n try {\n if ( state.backtracking>0 && alreadyParsedRule(input, 107) ) { return ; }\n // Java.g:742:5: ( conditionalOrExpression ( '?' expression ':' expression )? )\n dbg.enterAlt(1);\n\n // Java.g:742:9: conditionalOrExpression ( '?' expression ':' expression )?\n {\n dbg.location(742,9);\n pushFollow(FOLLOW_conditionalOrExpression_in_conditionalExpression4332);\n conditionalOrExpression();\n\n state._fsp--;\n if (state.failed) return ;\n dbg.location(742,33);\n // Java.g:742:33: ( '?' expression ':' expression )?\n int alt128=2;\n try { dbg.enterSubRule(128);\n try { dbg.enterDecision(128);\n\n int LA128_0 = input.LA(1);\n\n if ( (LA128_0==64) ) {\n alt128=1;\n }\n } finally {dbg.exitDecision(128);}\n\n switch (alt128) {\n case 1 :\n dbg.enterAlt(1);\n\n // Java.g:742:35: '?' expression ':' expression\n {\n dbg.location(742,35);\n match(input,64,FOLLOW_64_in_conditionalExpression4336); if (state.failed) return ;\n dbg.location(742,39);\n pushFollow(FOLLOW_expression_in_conditionalExpression4338);\n expression();\n\n state._fsp--;\n if (state.failed) return ;\n dbg.location(742,50);\n match(input,75,FOLLOW_75_in_conditionalExpression4340); if (state.failed) return ;\n dbg.location(742,54);\n pushFollow(FOLLOW_expression_in_conditionalExpression4342);\n expression();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n break;\n\n }\n } finally {dbg.exitSubRule(128);}\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n if ( state.backtracking>0 ) { memoize(input, 107, conditionalExpression_StartIndex); }\n }\n dbg.location(743, 5);\n\n }\n finally {\n dbg.exitRule(getGrammarFileName(), \"conditionalExpression\");\n decRuleLevel();\n if ( getRuleLevel()==0 ) {dbg.terminate();}\n }\n\n return ;\n }", "public static ConditionalExpression condition(Expression expression0, Expression expression1, Expression expression2) { throw Extensions.todo(); }", "public void visit(ConditionalOrExpression n) {\n n.f0.accept(this);\n n.f1.accept(this);\n }", "public final void rule__XAndExpression__FeatureAssignment_1_0_0_1() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:17456:1: ( ( ( ruleOpAnd ) ) )\r\n // ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:17457:1: ( ( ruleOpAnd ) )\r\n {\r\n // ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:17457:1: ( ( ruleOpAnd ) )\r\n // ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:17458:1: ( ruleOpAnd )\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getXAndExpressionAccess().getFeatureJvmIdentifiableElementCrossReference_1_0_0_1_0()); \r\n }\r\n // ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:17459:1: ( ruleOpAnd )\r\n // ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:17460:1: ruleOpAnd\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getXAndExpressionAccess().getFeatureJvmIdentifiableElementOpAndParserRuleCall_1_0_0_1_0_1()); \r\n }\r\n pushFollow(FOLLOW_ruleOpAnd_in_rule__XAndExpression__FeatureAssignment_1_0_0_135247);\r\n ruleOpAnd();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getXAndExpressionAccess().getFeatureJvmIdentifiableElementOpAndParserRuleCall_1_0_0_1_0_1()); \r\n }\r\n\r\n }\r\n\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getXAndExpressionAccess().getFeatureJvmIdentifiableElementCrossReference_1_0_0_1_0()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "public final void operator() throws RecognitionException {\r\n try {\r\n // D:\\\\entornotrabajo\\\\workspace-sgo\\\\persistance\\\\src\\\\main\\\\java\\\\es\\\\caser\\\\persistance\\\\sql\\\\antlr\\\\SQLGrammar.g:129:2: ( AND | OR )\r\n int alt23=2;\r\n int LA23_0 = input.LA(1);\r\n\r\n if ( (LA23_0==AND) ) {\r\n alt23=1;\r\n }\r\n else if ( (LA23_0==OR) ) {\r\n alt23=2;\r\n }\r\n else {\r\n NoViableAltException nvae =\r\n new NoViableAltException(\"\", 23, 0, input);\r\n\r\n throw nvae;\r\n }\r\n switch (alt23) {\r\n case 1 :\r\n // D:\\\\entornotrabajo\\\\workspace-sgo\\\\persistance\\\\src\\\\main\\\\java\\\\es\\\\caser\\\\persistance\\\\sql\\\\antlr\\\\SQLGrammar.g:129:4: AND\r\n {\r\n match(input,AND,FOLLOW_AND_in_operator527); \r\n out(\" and \");\r\n\r\n }\r\n break;\r\n case 2 :\r\n // D:\\\\entornotrabajo\\\\workspace-sgo\\\\persistance\\\\src\\\\main\\\\java\\\\es\\\\caser\\\\persistance\\\\sql\\\\antlr\\\\SQLGrammar.g:130:4: OR\r\n {\r\n match(input,OR,FOLLOW_OR_in_operator534); \r\n out(\" or \");\r\n\r\n }\r\n break;\r\n\r\n }\r\n }\r\n finally {\r\n }\r\n return ;\r\n }", "public final Expr orExpr() throws RecognitionException {\n Expr result = null;\n\n int orExpr_StartIndex = input.index();\n\n Expr lhs =null;\n\n Expr rhs =null;\n\n\n try {\n if ( state.backtracking>0 && alreadyParsedRule(input, 14) ) { return result; }\n\n // /home/jahn/workspace1/QLAndroid/src/org/uva/sea/ql/parser/antlr/QL.g:165:5: (lhs= andExpr ( '||' rhs= andExpr )* )\n // /home/jahn/workspace1/QLAndroid/src/org/uva/sea/ql/parser/antlr/QL.g:165:9: lhs= andExpr ( '||' rhs= andExpr )*\n {\n pushFollow(FOLLOW_andExpr_in_orExpr707);\n lhs=andExpr();\n\n state._fsp--;\n if (state.failed) return result;\n\n if ( state.backtracking==0 ) { result = lhs; }\n\n // /home/jahn/workspace1/QLAndroid/src/org/uva/sea/ql/parser/antlr/QL.g:165:48: ( '||' rhs= andExpr )*\n loop11:\n do {\n int alt11=2;\n int LA11_0 = input.LA(1);\n\n if ( (LA11_0==34) ) {\n alt11=1;\n }\n\n\n switch (alt11) {\n \tcase 1 :\n \t // /home/jahn/workspace1/QLAndroid/src/org/uva/sea/ql/parser/antlr/QL.g:165:50: '||' rhs= andExpr\n \t {\n \t match(input,34,FOLLOW_34_in_orExpr713); if (state.failed) return result;\n\n \t pushFollow(FOLLOW_andExpr_in_orExpr717);\n \t rhs=andExpr();\n\n \t state._fsp--;\n \t if (state.failed) return result;\n\n \t if ( state.backtracking==0 ) { result = new Or(result, rhs); }\n\n \t }\n \t break;\n\n \tdefault :\n \t break loop11;\n }\n } while (true);\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n\n finally {\n \t// do for sure before leaving\n if ( state.backtracking>0 ) { memoize(input, 14, orExpr_StartIndex); }\n\n }\n return result;\n }", "@Override\n\tpublic Object visit(ASTLogical node, Object data)\n\t{\n\t\treturn visitOperatorNode(node, data);\n\t}", "public final PythonParser.or_test_return or_test(expr_contextType ctype) throws RecognitionException {\n PythonParser.or_test_return retval = new PythonParser.or_test_return();\n retval.start = input.LT(1);\n\n PythonTree root_0 = null;\n\n Token or=null;\n List list_right=null;\n PythonParser.and_test_return left = null;\n\n PythonParser.and_test_return right = null;\n right = null;\n PythonTree or_tree=null;\n RewriteRuleTokenStream stream_OR=new RewriteRuleTokenStream(adaptor,\"token OR\");\n RewriteRuleSubtreeStream stream_and_test=new RewriteRuleSubtreeStream(adaptor,\"rule and_test\");\n try {\n // /run/media/abhi/0cc7e6ad-008e-43cd-b47d-f3ed6f127f92/home/abhi/dacapo-9.12-bach-src (2)/benchmarks/bms/jython/build/grammar/Python.g:1046:5: (left= and_test[ctype] ( (or= OR right+= and_test[ctype] )+ | -> $left) )\n // /run/media/abhi/0cc7e6ad-008e-43cd-b47d-f3ed6f127f92/home/abhi/dacapo-9.12-bach-src (2)/benchmarks/bms/jython/build/grammar/Python.g:1046:7: left= and_test[ctype] ( (or= OR right+= and_test[ctype] )+ | -> $left)\n {\n pushFollow(FOLLOW_and_test_in_or_test4287);\n left=and_test(ctype);\n\n state._fsp--;\n if (state.failed) return retval;\n if ( state.backtracking==0 ) stream_and_test.add(left.getTree());\n // /run/media/abhi/0cc7e6ad-008e-43cd-b47d-f3ed6f127f92/home/abhi/dacapo-9.12-bach-src (2)/benchmarks/bms/jython/build/grammar/Python.g:1047:9: ( (or= OR right+= and_test[ctype] )+ | -> $left)\n int alt81=2;\n int LA81_0 = input.LA(1);\n\n if ( (LA81_0==OR) ) {\n alt81=1;\n }\n else if ( (LA81_0==EOF||LA81_0==NEWLINE||LA81_0==NAME||LA81_0==AS||LA81_0==FOR||LA81_0==IF||LA81_0==ORELSE||(LA81_0>=RPAREN && LA81_0<=COMMA)||(LA81_0>=SEMI && LA81_0<=DOUBLESLASHEQUAL)||LA81_0==RBRACK||(LA81_0>=RCURLY && LA81_0<=BACKQUOTE)) ) {\n alt81=2;\n }\n else {\n if (state.backtracking>0) {state.failed=true; return retval;}\n NoViableAltException nvae =\n new NoViableAltException(\"\", 81, 0, input);\n\n throw nvae;\n }\n switch (alt81) {\n case 1 :\n // /run/media/abhi/0cc7e6ad-008e-43cd-b47d-f3ed6f127f92/home/abhi/dacapo-9.12-bach-src (2)/benchmarks/bms/jython/build/grammar/Python.g:1047:11: (or= OR right+= and_test[ctype] )+\n {\n // /run/media/abhi/0cc7e6ad-008e-43cd-b47d-f3ed6f127f92/home/abhi/dacapo-9.12-bach-src (2)/benchmarks/bms/jython/build/grammar/Python.g:1047:11: (or= OR right+= and_test[ctype] )+\n int cnt80=0;\n loop80:\n do {\n int alt80=2;\n int LA80_0 = input.LA(1);\n\n if ( (LA80_0==OR) ) {\n alt80=1;\n }\n\n\n switch (alt80) {\n \tcase 1 :\n \t // /run/media/abhi/0cc7e6ad-008e-43cd-b47d-f3ed6f127f92/home/abhi/dacapo-9.12-bach-src (2)/benchmarks/bms/jython/build/grammar/Python.g:1047:12: or= OR right+= and_test[ctype]\n \t {\n \t or=(Token)match(input,OR,FOLLOW_OR_in_or_test4303); if (state.failed) return retval; \n \t if ( state.backtracking==0 ) stream_OR.add(or);\n\n \t pushFollow(FOLLOW_and_test_in_or_test4307);\n \t right=and_test(ctype);\n\n \t state._fsp--;\n \t if (state.failed) return retval;\n \t if ( state.backtracking==0 ) stream_and_test.add(right.getTree());\n \t if (list_right==null) list_right=new ArrayList();\n \t list_right.add(right.getTree());\n\n\n \t }\n \t break;\n\n \tdefault :\n \t if ( cnt80 >= 1 ) break loop80;\n \t if (state.backtracking>0) {state.failed=true; return retval;}\n EarlyExitException eee =\n new EarlyExitException(80, input);\n throw eee;\n }\n cnt80++;\n } while (true);\n\n\n }\n break;\n case 2 :\n // /run/media/abhi/0cc7e6ad-008e-43cd-b47d-f3ed6f127f92/home/abhi/dacapo-9.12-bach-src (2)/benchmarks/bms/jython/build/grammar/Python.g:1050:8: \n {\n\n // AST REWRITE\n // elements: left\n // token labels: \n // rule labels: retval, left\n // token list labels: \n // rule list labels: \n // wildcard labels: \n if ( state.backtracking==0 ) {\n retval.tree = root_0;\n RewriteRuleSubtreeStream stream_retval=new RewriteRuleSubtreeStream(adaptor,\"rule retval\",retval!=null?retval.tree:null);\n RewriteRuleSubtreeStream stream_left=new RewriteRuleSubtreeStream(adaptor,\"rule left\",left!=null?left.tree:null);\n\n root_0 = (PythonTree)adaptor.nil();\n // 1050:8: -> $left\n {\n adaptor.addChild(root_0, stream_left.nextTree());\n\n }\n\n retval.tree = root_0;}\n }\n break;\n\n }\n\n\n }\n\n retval.stop = input.LT(-1);\n\n if ( state.backtracking==0 ) {\n\n retval.tree = (PythonTree)adaptor.rulePostProcessing(root_0);\n adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);\n }\n if ( state.backtracking==0 ) {\n\n if (or != null) {\n retval.tree = actions.makeBoolOp((left!=null?((PythonTree)left.tree):null), boolopType.Or, list_right);\n }\n\n }\n }\n\n catch (RecognitionException re) {\n errorHandler.reportError(this, re);\n errorHandler.recover(this, input,re);\n retval.tree = (PythonTree)adaptor.errorNode(input, retval.start, input.LT(-1), re);\n }\n finally {\n }\n return retval;\n }", "IRequirement or(IRequirement constraint);", "@RepeatedTest(20)\n void logicalOperatorsTest() {\n assertEquals(bi.or(bot), new Binary(\"1\"));\n assertEquals(bi.or(bof), bi);\n assertEquals(bi.and(bot), bi);\n assertEquals(bi.and(bof), new Binary(\"0\"));\n assertEquals(bot.or(bi), new Binary(\"1\"));\n assertEquals(bof.or(bi), bi);\n assertEquals(bot.and(bi), bi);\n assertEquals(bof.and(bi), new Binary(\"0\"));\n assertEquals(bot.and(bot), bot);\n assertEquals(bot.and(bof),bof);\n assertEquals(bof.and(bot),bof);\n assertEquals(bof.and(bof),bof);\n assertEquals(bot.or(bot), bot);\n assertEquals(bot.or(bof),bot);\n assertEquals(bof.or(bot),bot);\n assertEquals(bof.or(bof),bof);\n Binary b1 = new Binary(\"10001\");\n Binary b2 = new Binary(\"1001011\");\n assertEquals(b1.or(b2), new Binary(\"1111011\"));\n assertEquals(b1.and(b2), new Binary(\"1000001\"));\n assertEquals(b1.or(b2), b2.or(b1));\n assertEquals(b1.and(b2),b2.and(b1));\n assertEquals(bi.or(bi), bi);\n assertEquals(bi.and(bi),bi);\n Binary notbi = bi.neg();\n assertEquals(bi.or(notbi), new Binary(\"1\"));\n assertEquals(bi.and(notbi), new Binary(\"0\"));\n\n //nulls\n //Bool or ITypes \\ {Logicals}\n assertEquals(bot.or(st),Null);\n assertEquals(bof.or(st),Null);\n assertEquals(bot.or(f), Null);\n assertEquals(bof.or(i), Null);\n //Float or ITypes\n assertEquals(f.or(st), Null);\n assertEquals(f.or(bot), Null);\n assertEquals(f.or(bof), Null);\n assertEquals(f.or(i), Null);\n assertEquals(f.or(g), Null);\n assertEquals(f.or(bi), Null);\n //Int or ITypes\n assertEquals(i.or(st), Null);\n assertEquals(i.or(bot),Null);\n assertEquals(i.or(bof), Null);\n assertEquals(i.or(j), Null);\n assertEquals(i.or(f), Null);\n assertEquals(i.or(bi), Null);\n //Binary or ITypes \\ {Logicals}\n assertEquals(bi.or(st), Null);\n assertEquals(bi.or(f), Null);\n assertEquals(bi.or(i), Null);\n //NullType or ITypes\n assertEquals(Null.or(st), Null);\n assertEquals(Null.or(bof), Null);\n assertEquals(Null.or(f), Null);\n assertEquals(Null.or(i), Null);\n assertEquals(Null.or(bi), Null);\n assertEquals(Null.or(Null), Null);\n assertEquals(st.or(Null), Null);\n assertEquals(bot.or(Null), Null);\n assertEquals(f.or(Null), Null);\n assertEquals(i.or(Null), Null);\n assertEquals(bi.or(Null), Null);\n\n //Bool and ITypes \\ {Logicals}\n assertEquals(bot.and(st),Null);\n assertEquals(bof.and(st),Null);\n assertEquals(bot.and(f), Null);\n assertEquals(bof.and(i), Null);\n //Float and ITypes\n assertEquals(f.and(st), Null);\n assertEquals(f.and(bot), Null);\n assertEquals(f.and(bof), Null);\n assertEquals(f.and(i), Null);\n assertEquals(f.and(g), Null);\n assertEquals(f.and(bi), Null);\n //Int and ITypes\n assertEquals(i.and(st), Null);\n assertEquals(i.and(bot),Null);\n assertEquals(i.and(bof), Null);\n assertEquals(i.and(j), Null);\n assertEquals(i.and(f), Null);\n assertEquals(i.and(bi), Null);\n //Binary and ITypes \\ {Logicals}\n assertEquals(bi.and(st), Null);\n assertEquals(bi.and(f), Null);\n assertEquals(bi.and(i), Null);\n //NullType and ITypes\n assertEquals(Null.and(st), Null);\n assertEquals(Null.and(bof), Null);\n assertEquals(Null.and(f), Null);\n assertEquals(Null.and(i), Null);\n assertEquals(Null.and(bi), Null);\n assertEquals(Null.and(Null), Null);\n assertEquals(st.and(Null), Null);\n assertEquals(bot.and(Null), Null);\n assertEquals(f.and(Null), Null);\n assertEquals(i.and(Null), Null);\n assertEquals(bi.and(Null), Null);\n\n }" ]
[ "0.6800889", "0.6768137", "0.6612689", "0.6597664", "0.64571774", "0.64370054", "0.64112836", "0.63948596", "0.6367354", "0.6225632", "0.6214581", "0.61953276", "0.61859643", "0.61576265", "0.6144686", "0.6099754", "0.6061134", "0.60534465", "0.60509133", "0.60256225", "0.60176307", "0.5963907", "0.59509915", "0.5933619", "0.59168744", "0.59021056", "0.5899291", "0.58511263", "0.5845388", "0.58389693", "0.5807219", "0.57945704", "0.5780338", "0.57265896", "0.57144845", "0.57111526", "0.57015586", "0.5699814", "0.56942916", "0.566013", "0.5652365", "0.5652069", "0.5651806", "0.5642779", "0.5642278", "0.56075186", "0.56041753", "0.56011343", "0.5588002", "0.557745", "0.5565257", "0.5562091", "0.55580854", "0.555453", "0.55543727", "0.55503833", "0.5534281", "0.5524529", "0.55177337", "0.5491084", "0.5488602", "0.54819113", "0.547776", "0.54774714", "0.54753083", "0.54494923", "0.54440457", "0.54341334", "0.5428067", "0.5421045", "0.54060686", "0.53956056", "0.53694105", "0.5366917", "0.5363894", "0.5363082", "0.53629404", "0.5360229", "0.535346", "0.53526586", "0.53496224", "0.53399456", "0.5331533", "0.5321398", "0.53191257", "0.5316455", "0.5311919", "0.53114885", "0.5307284", "0.52976173", "0.5288707", "0.5288307", "0.52859867", "0.52752936", "0.52746665", "0.5273735", "0.52589643", "0.5255015", "0.52414346", "0.5237384" ]
0.69192433
0
valueLogical > ValueLogical() nodeListOptional > ( "&&" ValueLogical() )
@Override public R visit(ConditionalAndExpression n, A argu) { R _ret = null; n.valueLogical.accept(this, argu); n.nodeListOptional.accept(this, argu); return _ret; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private Term parseLogicalAnd(final boolean required) throws ParseException {\n Term t1 = parseComparison(required);\n while (t1 != null) {\n /*int tt =*/ _tokenizer.next();\n if (isSpecial(\"&&\") || isKeyword(\"and\")) {\n Term t2 = parseComparison(true);\n if ((t1.isB() && t2.isB()) || !isTypeChecking()) {\n t1 = new Term.AndB(t1, t2);\n } else {\n reportTypeErrorB2(\"'&&' or 'and'\");\n }\n } else {\n _tokenizer.pushBack();\n break;\n }\n }\n return t1;\n }", "public String getAndOr();", "public Object visitLogicalAndExpression(GNode n) {\n if (dostring) {\n Object a = dispatch(n.getGeneric(0));\n Object b = dispatch(n.getGeneric(1));\n \n if (a instanceof Long && b instanceof Long) {\n return (Long) a & (Long) b;\n }\n else {\n return parens(a) + \" && \" + parens(b);\n }\n }\n else {\n BDD a, b, bdd;\n \n a = ensureBDD(dispatch(n.getGeneric(0)));\n b = ensureBDD(dispatch(n.getGeneric(1)));\n \n bdd = a.andWith(b);\n \n return bdd;\n }\n }", "void visit(LogicalValue value);", "private Term parseBitwiseAnd(final boolean required) throws ParseException {\n Term t1 = parseAdd(required);\n while (t1 != null) {\n int tt = _tokenizer.next();\n if (tt == '&') {\n Term t2 = parseAdd(true);\n if ((t1.isI() && t2.isI()) || !isTypeChecking()) {\n t1 = new Term.AndI(t1, t2);\n } else {\n reportTypeErrorI2(\"'&'\");\n }\n } else {\n _tokenizer.pushBack();\n break;\n }\n }\n return t1;\n }", "@Test\n public void testAnd() {\n if (true && addValue()) {\n assertThat(flag, equalTo(1));\n }\n\n // first expression is not satisfied conditions, then second expression not invoke\n if (false && addValue()) {\n assertThat(flag, equalTo(1));\n }\n }", "public static BinaryExpression andAlso(Expression expression0, Expression expression1) { throw Extensions.todo(); }", "public Object visitBitwiseAndExpression(GNode n) {\n Object a, b, result;\n \n nonboolean = true;\n \n dostring = true;\n \n a = dispatch(n.getGeneric(0));\n b = dispatch(n.getGeneric(1));\n \n dostring = false;\n \n if (a instanceof Long && b instanceof Long) {\n result = (Long) a & (Long) b;\n }\n else {\n result = parens(a) + \" & \" + parens(b);\n }\n \n return result;\n }", "@Override\n\tpublic Object visit(ASTCondAnd node, Object data) {\n\t\tnode.jjtGetChild(0).jjtAccept(this, data);\n\t\tSystem.out.print(\" and \");\n\t\tnode.jjtGetChild(1).jjtAccept(this, data);\n\t\treturn null;\n\t}", "private Object eval(AndExpr expr) {\n if (expr.getExpr().size() == 1) {\n return eval(expr.getExpr().get(0));\n }\n\n boolean result = true;\n for (RelExpr e : expr.getExpr()) {\n Object res = eval(e);\n if (res instanceof Boolean) {\n result = result && (Boolean) res;\n } else {\n throw new RaydenScriptException(\"Expression error: Part expression result is not a boolean. Type: '\" + res.getClass() + \"'\");\n }\n\n if (!result) {\n return false;\n }\n }\n return true;\n }", "@Override\n public Void visit(LogicalExpression nd, SuccessorInfo i) {\n Expression left = nd.getLeft();\n writeSuccessor(nd, First.of(left));\n if (\"&&\".equals(nd.getOperator()))\n visitWithSuccessors(left, First.of(nd.getRight()), i.getSuccessors(false));\n else visitWithSuccessors(left, i.getSuccessors(true), First.of(nd.getRight()));\n nd.getRight().accept(this, i);\n return null;\n }", "public LogicalOperator() {\n this.logical = Logical.And;\n }", "Expression andExpression() throws SyntaxException {\r\n\t\tToken first = t;\r\n\t\tExpression e0 = eqExpression();\r\n\t\twhile(isKind(OP_AND)) {\r\n\t\t\tToken op = consume();\r\n\t\t\tExpression e1 = eqExpression();\r\n\t\t\te0 = new ExpressionBinary(first, e0, op, e1);\r\n\t\t}\r\n\t\treturn e0;\r\n\t}", "@Test\n public void trueAndFalseCombined() {\n assertFalse(getPredicateInstance(false, null).evaluate(getTestValue()),\n \"false predicate evaluated to true\");\n assertFalse(getPredicateInstance(false, null, null).evaluate(getTestValue()),\n \"false predicate evaluated to true\");\n assertFalse(getPredicateInstance(true, false, null).evaluate(getTestValue()),\n \"false predicate evaluated to true\");\n assertFalse(getPredicateInstance(true, true, false).evaluate(getTestValue()),\n \"false predicate evaluated to true\");\n assertFalse(getPredicateInstance(true, true, false, null).evaluate(getTestValue()),\n \"false predicate evaluated to true\");\n }", "public static BinaryExpression and(Expression expression0, Expression expression1) { throw Extensions.todo(); }", "private Object eval(OrExpr expr) {\n if (expr.getExpr().size() == 1) {\n return eval(expr.getExpr().get(0));\n }\n\n boolean result = false;\n for (AndExpr e : expr.getExpr()) {\n Object res = eval(e);\n if (res instanceof Boolean) {\n result = result || (Boolean) res;\n } else {\n throw new RaydenScriptException(\"Expression error: Part expression result is not a boolean. Type: '\" + res.getClass() + \"'\");\n }\n\n if (result) {\n return true;\n }\n }\n return false;\n }", "private Term parseLogicalOr(final boolean required) throws ParseException {\n Term t1 = parseLogicalAnd(required);\n while (t1 != null) {\n /*int tt =*/ _tokenizer.next();\n if (isSpecial(\"||\") || isKeyword(\"or\")) {\n Term t2 = parseLogicalAnd(true);\n if ((t1.isB() && t2.isB()) || !isTypeChecking()) {\n t1 = new Term.OrB(t1, t2);\n } else {\n reportTypeErrorB2(\"'||' or 'or'\");\n }\n } else {\n _tokenizer.pushBack();\n break;\n }\n }\n return t1;\n }", "@Override\n\tpublic void visit(BitwiseAnd arg0) {\n\t\t\n\t}", "@ZenCodeType.Operator(ZenCodeType.OperatorType.AND)\n default IData and(IData other) {\n \n return notSupportedOperator(OperatorType.AND);\n }", "public static BinaryExpression andAssign(Expression expression0, Expression expression1) { throw Extensions.todo(); }", "@Override\n\tpublic Object visit(ASTLogical node, Object data)\n\t{\n\t\treturn visitOperatorNode(node, data);\n\t}", "protected ICompilerBooleanValue bTerm() throws InvalidConditionantException,\r\n\t\t\t\t\t\t\t TableFunctionMalformedException{\r\n\t\t\r\n\t\tICompilerBooleanValue val1 = notFactor();\r\n\r\n\t\t// LOOK FOR AND (OPTIONAL)\r\n\t\t// scan();\r\n\t\tif (look == '&') {\r\n\t\t\tmatch('&');\r\n\t\t\tICompilerBooleanValue val2 = notFactor();\r\n\t\t\tif (look == '&') {\r\n\t\t\t\tmatch('&');\r\n\t\t\t\treturn new CompilerAndValue(val1, new CompilerAndValue(val2,bTerm()));\r\n\t\t\t} else {\r\n\t\t\t\treturn new CompilerAndValue(val1, val2);\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\treturn val1;\r\n\t\t}\r\n\t}", "@Override\n\tpublic void visit(BitwiseAnd arg0) {\n\n\t}", "public String visit(AndExpression n, Object argu) \n\t{\n\t\tString _ret=null;\n\t String e0 = n.f0.accept(this, argu);\n\t String e1 = n.f2.accept(this, argu);\n\t \n\t if (e0.equals(\"boolean\") && e1.equals(\"boolean\"))\n\t {\n\t \t_ret = \"boolean\";\n\t }\n\t return _ret;\n\t}", "public static void main(String[] args) {\nboolean a, b, c;\na =true;\nb = false;\nc =a && b;\n\nSystem.out.println(\"c = a&&B:\" + c);\nc = a||b;\nSystem.out.println(\"c = a||b:\" + c);\nc = a==b;\nSystem.out.println(\"c = a==b:\" + c);\nc = a!=b;\nSystem.out.println(\"c = a!=b:\" + c);\n\n\n\n\t}", "@Override\n public R visit(ConditionalOrExpression n, A argu) {\n R _ret = null;\n n.conditionalAndExpression.accept(this, argu);\n n.nodeListOptional.accept(this, argu);\n return _ret;\n }", "IRequirement and(IRequirement requirement);", "public void setAndOr (String AndOr);", "public void testX1andX2orNotX1() {\n \tCircuit circuit = new Circuit();\n \t\n \tBoolean b1 = Boolean.TRUE;\n \tBoolean b2 = Boolean.FALSE;\n \tAnd and = (And) circuit.getFactory().getGate(Gate.AND);\n\t\tNot not = (Not) circuit.getFactory().getGate(Gate.NOT);\n\t\tOr or = (Or) circuit.getFactory().getGate(Gate.OR);\n\t\tand.setLeftInput(b1);\n\t\tand.setRightInput(b2);\n\t\tand.eval();\n\t\tnot.setInput(b1);\n\t\tnot.eval();\n\t\tor.setLeftInput(and.getOutput());\n\t\tor.setRightInput(not.getOutput());\n\t\tassertEquals(Boolean.FALSE, or.eval());\n\t\tassertEquals(Boolean.FALSE, circuit.eval());\n//\t\t==========================================\n\t\tb1 = Boolean.FALSE;\n \tb2 = Boolean.TRUE;\n// \tand.eval();\n// \tnot.eval();\n \tassertEquals(Boolean.FALSE, circuit.eval());\n// \t============================================\n \tDouble d1 = 0.0;\n \tDouble d2 = 1.0;\n \tand.setLeftInput(d1);\n\t\tand.setRightInput(d2);\n\t\tnot.setInput(d1);\n\t\tor.setLeftInput(and.getOutput());\n\t\tor.setRightInput(not.getOutput());\n \tassertEquals( new Double(1.0), or.eval());\n// \t============================================\n \td1 = 0.5;\n \td2 = 0.5;\n \tand.setLeftInput(d1);\n\t\tand.setRightInput(d2);\n \tand.eval();\n \tnot.setInput(d1);\n \tnot.eval();\n\t\tor.setLeftInput(and.getOutput());\n\t\tor.setRightInput(not.getOutput());\n \tassertEquals( new Double(0.625), or.eval());\n// \t============================================\n \ttry {\n \td1 = 0.5;\n \td2 = 2.0;\n \tand.setLeftInput(d1);\n \t\tand.setRightInput(d2);\n \tand.eval();\n \tnot.setInput(d1);\n \tnot.eval();\n \t\tor.setLeftInput(and.getOutput());\n \t\tor.setRightInput(not.getOutput());\n \tassertEquals( new Double(0.625), or.eval());\n \t} catch (IllegalArgumentException e) {\n \t\tSystem.err.println(\"IllegalArgumentException: \" + e.getMessage());\n \t}\n\n }", "@Test\n public void basicConditionTest() throws Exception {\n\n assertThat(getNode(\"1 == 2\", \"expr\").render(null), is((Object)false));\n assertThat(getNode(\"1 == 1\", \"expr\").render(null), is((Object)true));\n }", "BooleanExpression createBooleanExpression();", "BooleanExpression createBooleanExpression();", "public final flipsParser.requireValue_return requireValue() throws RecognitionException {\n flipsParser.requireValue_return retval = new flipsParser.requireValue_return();\n retval.start = input.LT(1);\n\n CommonTree root_0 = null;\n\n Token StringLiteral8=null;\n Token And9=null;\n Token char_literal10=null;\n Token And11=null;\n Token StringLiteral12=null;\n\n CommonTree StringLiteral8_tree=null;\n CommonTree And9_tree=null;\n CommonTree char_literal10_tree=null;\n CommonTree And11_tree=null;\n CommonTree StringLiteral12_tree=null;\n RewriteRuleTokenStream stream_StringLiteral=new RewriteRuleTokenStream(adaptor,\"token StringLiteral\");\n RewriteRuleTokenStream stream_120=new RewriteRuleTokenStream(adaptor,\"token 120\");\n RewriteRuleTokenStream stream_And=new RewriteRuleTokenStream(adaptor,\"token And\");\n\n try {\n // flips.g:140:2: ( StringLiteral ( ( And | ',' ( And )? )? StringLiteral )* -> ( ^( REQUIRE StringLiteral ) )+ )\n // flips.g:140:4: StringLiteral ( ( And | ',' ( And )? )? StringLiteral )*\n {\n StringLiteral8=(Token)match(input,StringLiteral,FOLLOW_StringLiteral_in_requireValue551); \n stream_StringLiteral.add(StringLiteral8);\n\n // flips.g:140:18: ( ( And | ',' ( And )? )? StringLiteral )*\n loop7:\n do {\n int alt7=2;\n int LA7_0 = input.LA(1);\n\n if ( ((LA7_0>=StringLiteral && LA7_0<=And)||LA7_0==120) ) {\n alt7=1;\n }\n\n\n switch (alt7) {\n \tcase 1 :\n \t // flips.g:140:19: ( And | ',' ( And )? )? StringLiteral\n \t {\n \t // flips.g:140:19: ( And | ',' ( And )? )?\n \t int alt6=3;\n \t int LA6_0 = input.LA(1);\n\n \t if ( (LA6_0==And) ) {\n \t alt6=1;\n \t }\n \t else if ( (LA6_0==120) ) {\n \t alt6=2;\n \t }\n \t switch (alt6) {\n \t case 1 :\n \t // flips.g:140:20: And\n \t {\n \t And9=(Token)match(input,And,FOLLOW_And_in_requireValue555); \n \t stream_And.add(And9);\n\n\n \t }\n \t break;\n \t case 2 :\n \t // flips.g:140:24: ',' ( And )?\n \t {\n \t char_literal10=(Token)match(input,120,FOLLOW_120_in_requireValue557); \n \t stream_120.add(char_literal10);\n\n \t // flips.g:140:28: ( And )?\n \t int alt5=2;\n \t int LA5_0 = input.LA(1);\n\n \t if ( (LA5_0==And) ) {\n \t alt5=1;\n \t }\n \t switch (alt5) {\n \t case 1 :\n \t // flips.g:140:28: And\n \t {\n \t And11=(Token)match(input,And,FOLLOW_And_in_requireValue559); \n \t stream_And.add(And11);\n\n\n \t }\n \t break;\n\n \t }\n\n\n \t }\n \t break;\n\n \t }\n\n \t StringLiteral12=(Token)match(input,StringLiteral,FOLLOW_StringLiteral_in_requireValue564); \n \t stream_StringLiteral.add(StringLiteral12);\n\n\n \t }\n \t break;\n\n \tdefault :\n \t break loop7;\n }\n } while (true);\n\n\n\n // AST REWRITE\n // elements: StringLiteral\n // token labels: \n // rule labels: retval\n // token list labels: \n // rule list labels: \n // wildcard labels: \n retval.tree = root_0;\n RewriteRuleSubtreeStream stream_retval=new RewriteRuleSubtreeStream(adaptor,\"rule retval\",retval!=null?retval.tree:null);\n\n root_0 = (CommonTree)adaptor.nil();\n // 141:2: -> ( ^( REQUIRE StringLiteral ) )+\n {\n if ( !(stream_StringLiteral.hasNext()) ) {\n throw new RewriteEarlyExitException();\n }\n while ( stream_StringLiteral.hasNext() ) {\n // flips.g:141:5: ^( REQUIRE StringLiteral )\n {\n CommonTree root_1 = (CommonTree)adaptor.nil();\n root_1 = (CommonTree)adaptor.becomeRoot((CommonTree)adaptor.create(REQUIRE, \"REQUIRE\"), root_1);\n\n adaptor.addChild(root_1, stream_StringLiteral.nextNode());\n\n adaptor.addChild(root_0, root_1);\n }\n\n }\n stream_StringLiteral.reset();\n\n }\n\n retval.tree = root_0;\n }\n\n retval.stop = input.LT(-1);\n\n retval.tree = (CommonTree)adaptor.rulePostProcessing(root_0);\n adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n \tretval.tree = (CommonTree)adaptor.errorNode(input, retval.start, input.LT(-1), re);\n\n }\n finally {\n }\n return retval;\n }", "public Snippet visit(ConditionalAndExpression n, Snippet argu) {\n\t Snippet _ret= new Snippet(\"\",\"\",null,false);\n\t Snippet f0 = n.identifier.accept(this, argu);\n\t n.nodeToken.accept(this, argu);\n\t Snippet f2 = n.identifier1.accept(this, argu);\n\t _ret.returnTemp = f0.returnTemp+\" && \"+f2.returnTemp;\n\t return _ret;\n\t }", "@Override\n public ILogical and(ILogical operador) {\n return operador.andBinary(this);\n }", "void visit(final AndCondition andCondition);", "private Expr or() { // This uses the same recursive matching structure as other binary operators.\n Expr expr = and(); // OR takes precedence over AND.\n while(match(OR)) {\n Token operator = previous();\n Expr right = and();\n expr = new Expr.Logical(expr, operator, right);\n }\n return expr;\n }", "String getBooleanTrueExpression();", "@Override\n public JsonNode visit(JmesPathAndExpression andExpression, JsonNode input) throws InvalidTypeException {\n JsonNode lhsNode = andExpression.getLhsExpr().accept(this, input);\n JsonNode rhsNode = andExpression.getRhsExpr().accept(this, input);\n if (lhsNode == BooleanNode.TRUE) {\n return rhsNode;\n } else {\n return lhsNode;\n }\n }", "public static void main(String[] args) { , or , not\n // truth table -> t=1 f=0\n // a =t b= f c = a and b => a.b =0=>f\n\n // except 0 every no. is treated as true\n // int a=1 int b=2 a and b => a.b\n // and -> a=1 , b=2, a and b => a.b\n\n\n // and\n boolean a= false;\n boolean b= false;\n\n boolean c= a && b; // a.b\n System.out.println(c);\n\n //or\n boolean f= true;\n boolean d= true;\n\n boolean e= f || d; // a+b\n System.out.println(e);\n\n // not\n boolean g =true;\n boolean h= !g;\n System.out.println(h);\n\n }", "public MType visit(AndExpression n, MType argu) {\n \tMType _ret = new MBoolean();\n \tn.f0.accept(this, argu);\n \tn.f1.accept(this, argu);\n \tn.f2.accept(this, argu);\n \treturn _ret;\n }", "@Override\n\tpublic Object visit(ASTFilterAnd node, Object data) {\n\t\tSystem.out.print(node.jjtGetChild(0).jjtAccept(this, data));\n\t\tSystem.out.print(\" and \");\n\t\tSystem.out.print(node.jjtGetChild(1).jjtAccept(this, data));\n\t\treturn null;\n\t}", "public FluentExp<Boolean> and (SQLExpression<Boolean> expr)\n {\n return Ops.and(this, expr);\n }", "private Term parseBtwiseXOr(final boolean required) throws ParseException {\n Term t1 = parseBitwiseAnd(required);\n while (t1 != null) {\n int tt = _tokenizer.next();\n if (tt == '^') {\n Term t2 = parseBitwiseAnd(true);\n if ((t1.isI() && t2.isI()) || !isTypeChecking()) {\n t1 = new Term.XOrI(t1, t2);\n } else {\n reportTypeErrorI2(\"'^'\");\n }\n } else {\n _tokenizer.pushBack();\n break;\n }\n }\n return t1;\n }", "private static boolean checkAndOperations(String expression, Lexemes lexemes, SymbolTable table) {\n\t\tif (expression.contains(\"and\")) {\n\t\t\tString[] arr = expression.split(\"and\");\n\t\t\tint finalIndex = arr.length - 1;\n\n\t\t\tfor (int i = 0; i <= finalIndex; i++) {\n\t\t\t\tString s = arr[i];\n\n\t\t\t\tif (table.contains(s)) {\n\t\t\t\t\tint id = table.getIdOfVariable(s);\n\t\t\t\t\tlexemes.insertLexeme(\"ID\", ((Integer) id).toString());\n\t\t\t\t} else {\n\n\t\t\t\t\tif (s.equals(\"true\")) {\n\t\t\t\t\t\tlexemes.insertLexeme(\"CONST_BOOL\", \"true\");\n\t\t\t\t\t} else if (s.equals(\"false\")) {\n\t\t\t\t\t\tlexemes.insertLexeme(\"CONST_BOOL\", \"false\");\n\t\t\t\t\t} else {\n\t\t\t\t\t\tif (!checkOrOperations(s.trim(), lexemes, table)) return false;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tif (i < finalIndex) {\n\t\t\t\t\tlexemes.insertLexeme(\"LOGOP\", \"and\");\n\t\t\t\t} else if (expression.endsWith(\"and\")) {\n\t\t\t\t\tlexemes.insertLexeme(\"LOGOP\", \"and\");\n\t\t\t\t}\n\t\t\t}\n\n\t\t} else {\n\t\t\tif (!checkOrOperations(expression.trim(), lexemes, table)) return false;\n\t\t}\n\n\t\treturn true;\n\t}", "public static boolean bVal( Boolean value ) {\n return value != null && value; \n }", "private void parseAnd(Node node) {\r\n if (switchTest) return;\r\n parse(node.left());\r\n if (! ok) return;\r\n parse(node.right());\r\n }", "public static BinaryExpression andAlso(Expression expression0, Expression expression1, Method method) { throw Extensions.todo(); }", "@Override\n public Node typeCheck() {\n if (!(FOOLlib.isSubtype(left.typeCheck(), new BoolTypeNode()) &&\n FOOLlib.isSubtype(right.typeCheck(), new BoolTypeNode()))) {\n if(operator.equals(\"and\") || operator.equals(\"&&\")) {\n System.out.println(\"Non boolean in AND\");\n }\n else {\n System.out.println(\"Non boolean in OR\");\n }\n System.exit(0);\n }\n //se i tipi sono corretti restituisco bool\n return new BoolTypeNode();\n }", "public StatementNode getStatementNodeOnTrue();", "public static Object logicAnd(Object val1, Object val2) {\n\t\tif (isBool(val1) && isBool(val2)) {\n\t\t\treturn ((Boolean) val1) && ((Boolean) val2);\n\t\t}\n\t\tthrow new OrccRuntimeException(\"type mismatch in logicAnd\");\n\t}", "public final void mAND() throws RecognitionException {\n try {\n int _type = AND;\n // /Users/benjamincoe/HackWars/C.g:217:5: ( '&&' )\n // /Users/benjamincoe/HackWars/C.g:217:7: '&&'\n {\n match(\"&&\"); \n\n\n }\n\n this.type = _type;\n }\n finally {\n }\n }", "public void visita(And and) {\n and.getOperando(0).accept(this);\r\n Resultado resIzq = new Resultado(resParcial.getResultado());\r\n if (resIzq.equals(Resultado.COD_TRUE)) {\r\n resIzq.setEjemplo(resParcial.getEjemplo());\r\n } else {\r\n resIzq.setContraejemplo(resParcial.getContraejemplo());\r\n }\r\n and.getOperando(1).accept(this);\r\n Resultado resDer = new Resultado(resParcial.getResultado());\r\n if (resDer.equals(Resultado.COD_TRUE)) {\r\n resDer.setEjemplo(resParcial.getEjemplo());\r\n } else {\r\n resDer.setContraejemplo(resParcial.getContraejemplo());\r\n }\r\n Resultado resAND;\r\n try {\r\n boolean part1 = Boolean.parseBoolean(resIzq.getResultado());\r\n boolean part2 = Boolean.parseBoolean(resDer.getResultado());\r\n part1 = part1 && part2;\r\n resAND = new Resultado(String.valueOf(part1));\r\n if (part1) {\r\n resAND.setEjemplo(resIzq.getEjemplo());\r\n } else if (part2) {\r\n resAND.setContraejemplo(resIzq.getContraejemplo());\r\n } else {\r\n resAND.setContraejemplo(resDer.getContraejemplo());\r\n }\r\n } catch (Exception e) {\r\n if ((resIzq.getResultado().equals(Resultado.COD_FALSE)) ||\r\n (resDer.getResultado().equals(Resultado.COD_FALSE))) {\r\n resAND = new Resultado(Resultado.COD_FALSE);\r\n } else {\r\n resAND = new Resultado(Resultado.COD_MAYBEF);\r\n }\r\n }\r\n resParcial = resAND;\r\n\r\n }", "private static Expression constructBinaryFilterTreeWithAnd(List<Expression> expressions) {\n if (expressions.size() == 2) {\n return new LogicAndExpression(expressions.get(0), expressions.get(1));\n } else {\n return new LogicAndExpression(\n expressions.get(0),\n constructBinaryFilterTreeWithAnd(expressions.subList(1, expressions.size())));\n }\n }", "public final void rule__AstExpressionAnd__OperatorAlternatives_1_1_0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:2818:1: ( ( '&&' ) | ( 'and' ) )\n int alt13=2;\n int LA13_0 = input.LA(1);\n\n if ( (LA13_0==17) ) {\n alt13=1;\n }\n else if ( (LA13_0==18) ) {\n alt13=2;\n }\n else {\n NoViableAltException nvae =\n new NoViableAltException(\"\", 13, 0, input);\n\n throw nvae;\n }\n switch (alt13) {\n case 1 :\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:2819:1: ( '&&' )\n {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:2819:1: ( '&&' )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:2820:1: '&&'\n {\n before(grammarAccess.getAstExpressionAndAccess().getOperatorAmpersandAmpersandKeyword_1_1_0_0()); \n match(input,17,FOLLOW_17_in_rule__AstExpressionAnd__OperatorAlternatives_1_1_06085); \n after(grammarAccess.getAstExpressionAndAccess().getOperatorAmpersandAmpersandKeyword_1_1_0_0()); \n\n }\n\n\n }\n break;\n case 2 :\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:2827:6: ( 'and' )\n {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:2827:6: ( 'and' )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:2828:1: 'and'\n {\n before(grammarAccess.getAstExpressionAndAccess().getOperatorAndKeyword_1_1_0_1()); \n match(input,18,FOLLOW_18_in_rule__AstExpressionAnd__OperatorAlternatives_1_1_06105); \n after(grammarAccess.getAstExpressionAndAccess().getOperatorAndKeyword_1_1_0_1()); \n\n }\n\n\n }\n break;\n\n }\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "Boolean conditionResult();", "cn.infinivision.dataforce.busybee.pb.meta.Expr getCondition();", "@Test\n public void allTrue() {\n assertTrue(getPredicateInstance(true, true).evaluate(getTestValue()),\n \"multiple true predicates evaluated to false\");\n assertTrue(getPredicateInstance(true, true, true).evaluate(getTestValue()),\n \"multiple true predicates evaluated to false\");\n }", "private void checkCondition( int fiIndex )\n {\n Vector lvVals = new Vector();\n int liNumTokens = 0;\n String lsDocCd = null ;\n String lsOperator = null ;\n int liIndex ;\n String lsDataObject = null ;\n String lsFieldName = null ;\n int liFieldType ;\n String lsLHS = getAND_COND_LHS( fiIndex ) ;\n String lsRHS = getAND_COND_RHS( fiIndex ) ;\n String lsRHS_FLD = getAND_COND_RHS_FLD( fiIndex );\n byte lbOper = getAND_COND_OPR( fiIndex ) ;\n int liCondType = getAND_COND_TYP( fiIndex ) ;\n boolean lboolLHSExists = true ;\n boolean lboolRHSExists = true ;\n boolean lboolListOper = false ;\n char [] lcRhsChar = null;\n int liRhsLen = 0;\n boolean lboolRHSFLDExists = true ;\n boolean lboolIsNullOrIsNotNullOper = false ;\n int liRHSIndex=-1;\n String lsRHSDataObject = null ;\n String lsRHSFieldName = null ;\n int liRHSFieldType=0;\n\n if ( ( lsLHS == null ) || ( lsLHS.trim().length() <= 0 ) )\n {\n lboolLHSExists = false ;\n } /* end if ( ( lsLHS == null ) || ( lsLHS.trim().length() <= 0 ) ) */\n\n lsOperator = CVL_WF_OPRSImpl.RULE_OPERATOR[lbOper];\n\n lboolIsNullOrIsNotNullOper=lsOperator.trim().equals( CVL_WF_OPRSImpl.IS_NULL)||\n\t lsOperator.trim().equals( CVL_WF_OPRSImpl.IS_NOT_NULL);\n\n\t if (!lboolIsNullOrIsNotNullOper && (( lsRHS == null ) || ( lsRHS.trim().length() <= 0 )) )\n\t {\n\t lboolRHSExists = false ;\n\t } /* end if ( ( lsRHS == null ) || ( lsRHS.trim().length() <= 0 ) ) */\n\n\t // Check if RHS Field exists.\n\t if (!lboolIsNullOrIsNotNullOper && AMSStringUtil.strIsEmpty(lsRHS_FLD) )\n\t {\n\t lboolRHSFLDExists = false ;\n\t } /* end if ( AMSStringUtil.strIsEmpty(lsRHS_FLD) ) */\n\n\n /*\n * If the value for the left hand side is null, and the value\n * for the right hand side is null, then return\n */\n if ( ! ( lboolLHSExists || lboolRHSExists || lboolRHSFLDExists) )\n\t {\n\t return ;\n\t } /* end if ( ! ( lboolLHSExists || lboolRHSExists ) ) */\n\n\t /*\n\t * If the value for the left hand side is not null, but\n\t * the value for the right hand side is null, then\n\t * raise an exception\n\t */\n\t if ( lboolLHSExists && !lboolRHSExists && !lboolRHSFLDExists)\n\t {\n\t raiseException( \"%c:Q0074%\" ) ;\n\t return ;\n\t } /* end if ( lboolLHSExists && !lboolRHSExists ) */\n\n\t if(!lboolIsNullOrIsNotNullOper)\n\t {\n\t /*\n\t * If right hand side value and right hand side field both are present, then\n\t * raise an exception\n\t */\n\t if ( lboolRHSFLDExists && lboolRHSExists )\n\t {\n\t raiseException( \"%c:Q0142%\" ) ;\n\t return ;\n\t } /* end if ( lboolRHSFLDExists && lboolRHSExists ) */\n\n\t /*If right hand side field component neither equal to the left hand side\n\t *component nor the header component.\n\t */\n\t if(lboolLHSExists && lboolRHSFLDExists && !isRHSFldCompEqualsLHSOrHDR(lsLHS,lsRHS_FLD))\n\t {\n\t raiseException( \"%c:Q0145%\" ) ;\n\t return ;\n\t }\n\t }\n\n\t /*\n\t * If the value for the left hand side is null, but\n\t * the value for the right hand side is not null, then\n\t * raise an exception\n\t */\n\t if ( !lboolLHSExists && (lboolRHSExists || lboolRHSFLDExists))\n\t {\n\t raiseException( \"%c:Q0075%\" ) ;\n\t return ;\n\t } /* end if ( ( lsLHS == null ) && ... */\n\n\t /*\n\t * If both left hand and right hand sides are not null, but the\n\t * operator is null, then raise an exception\n\t */\n\t if ( ( lboolLHSExists ) && ( lboolRHSExists || lboolRHSFLDExists) && ( lbOper <= 0 ) )\n\t {\n\t raiseException( \"%c:Q0076%\" ) ;\n\t return ;\n\t } /* end if ( ( lboolLHSExists ) ... */\n\n /*\n * If both left hand , right hand sides are not null and operator\n * is not null but the type of condition is null, then raise an exception\n */\n if ( ( lboolLHSExists ) && ( lboolRHSExists || lboolRHSFLDExists) && ( lbOper > 0 ) && liCondType <= 0 )\n {\n raiseException( \"%c:Q0150,v: Condition Type for Condition \" +\n fiIndex + \",v: Left Hand Side, Operator and Right Hand Side are %\" ) ;\n return ;\n } /* end if ( ( lboolLHSExists ) ... */\n\n\n /*\n * If the left hand side, right hand side, or operator value is null\n * then return\n */\n if ( ( !lboolLHSExists ) || ( !lboolRHSExists && !lboolRHSFLDExists) || ( lbOper <= 0 ) )\n {\n return ;\n } /* end if ( ( !lboolLHSExists ) || ... */\n\n /*\n * If both left hand and right hand sides are not null, but the\n * operator is \"IS_NULL\" or \"IS_NOT_NULL\", then raise an exception\n */\n if ((lsLHS != null ) && (lsRHS != null || !AMSStringUtil.strIsEmpty(lsRHS_FLD)) &&\n (lsOperator.trim().equals( CVL_WF_OPRSImpl.IS_NULL) ||\n lsOperator.trim().equals( CVL_WF_OPRSImpl.IS_NOT_NULL)))\n {\n\t raiseException( \"%c:Q0113%\" ) ;\n\t return;\n } /* end if ( (lsOperator.trim().equals( CVL_WF_OPRSImpl.IS_NULL)).... */\n\n /*\n * Verify that the left hand side is a valid workflow approval\n * field. If not, then raise an exception\n */\n lsDocCd = getDOC_CD() ;\n if ( ( lsDocCd != null ) && ( lsDocCd.trim().length() > 0 ) )\n {\n Enumeration loEnum = null ;\n Enumeration loEnumForRHSFld = null ;\n String lsWhereClause = \"DOC_CD=\" +\n AMSSQLUtil.getANSIQuotedStr( lsDocCd,true ) ;\n\n loEnum = R_WF_APRV_FLDImpl.getObjects( lsWhereClause, this.getSession() ) ;\n loEnumForRHSFld = R_WF_APRV_FLDImpl.getObjects( lsWhereClause, getSession() ) ;\n if ( !checkFields( loEnum, lsLHS ) )\n {\n raiseException( \"%c:Q0077%\" ) ;\n return ;\n } /* end if ( !checkFields( loEnum, lsLHS ) */\n if(!lboolIsNullOrIsNotNullOper && lboolRHSFLDExists)\n {\n if ( !checkFields( loEnumForRHSFld, lsRHS_FLD ) )\n {\n raiseException( \"%c:Q0077%\" ) ;\n return ;\n } /* end if ( !checkFields( loEnum, lsRHS_FLD ) */\n }/* end if (lboolRHSFLDExists) */\n } /* end if ( ( lsDocCd != null ) && ( lsDocCd.trim.length() > 0 ) ) */\n\n liIndex = lsLHS.indexOf( '.' ) ;\n lsDataObject = lsLHS.substring( 0,liIndex ) ;\n lsFieldName = lsLHS.substring( liIndex + 1, lsLHS.length() ) ;\n liFieldType = getFieldType( lsDataObject, lsFieldName ) ;\n\n /*Field Type for the left hand side field and the right hand side field\n *should be comparable to each other.\n */\n if(!lboolIsNullOrIsNotNullOper && lboolRHSFLDExists)\n {\n liRHSIndex = lsRHS_FLD.indexOf( DOT_CHAR ) ;\n lsRHSDataObject = lsRHS_FLD.substring( 0,liRHSIndex ) ;\n lsRHSFieldName = lsRHS_FLD.substring( liRHSIndex + 1, lsRHS_FLD.length() ) ;\n liRHSFieldType = getFieldType( lsRHSDataObject, lsRHSFieldName ) ;\n if(!isFieldTypeComparable(liFieldType,liRHSFieldType))\n {\n raiseException( \"%c:Q0148%\" ) ;\n return;\n }\n }\n\n /*\n * If the data type of the field is boolean\n * and operator used is not EQUAL(=) or NOT_EQUAL(<>)\n * then raise an exception\n */\n if( liFieldType == DataConst.BIT\n && !AMSStringUtil.strEqual(lsOperator,CVL_WF_OPRSImpl.EQUAL)\n && !AMSStringUtil.strEqual(lsOperator,CVL_WF_OPRSImpl.NOT_EQUAL))\n {\n raiseException( \"%c:Q0155%\" ) ;\n return ;\n }\n\n /*\n * Parse the value from the right hand side into individual\n * values which are comma separated.\n */\n if(!(AMSStringUtil.strIsEmpty(lsRHS)))\n {\n lvVals = getListVals( lsRHS, getSession() ) ;\n lcRhsChar = lsRHS.toCharArray();\n liRhsLen = lsRHS.trim().length();\n }\n\n if ( lvVals != null )\n {\n liNumTokens = lvVals.size() ;\n } /* end if ( loTokens != null ) */\n\n if ( ( lsOperator.trim().equals( CVL_WF_OPRSImpl.IN_LIST ) ) ||\n ( lsOperator.trim().equals( CVL_WF_OPRSImpl.NOT_IN_LIST ) ) )\n {\n lboolListOper = true ;\n } /* end if if ( ( lsOperator.trim().equals( CVL_WF_OPRSImpl.IN_LIST )...*/\n\n //List operator should not be used with the right hand side field.\n if(lboolListOper && lboolRHSFLDExists)\n {\n raiseException( \"%c:Q0149%\" ) ;\n return;\n }\n\n if(liCondType == CVL_WF_COND_TYPImpl.DELTA_CHANGE ||\n liCondType == CVL_WF_COND_TYPImpl.PERCENT_CHANGE ||\n liCondType == CVL_WF_COND_TYPImpl.ABS_DELTA_CHANGE ||\n liCondType == CVL_WF_COND_TYPImpl.ABS_PERCENT_CHANGE)\n {\n /*\n * Raise error if Operator is IN LIST or NOT_IN_LIST or IS_NULL or IS_NOT_NULL\n * and Approval Condition Type is other than 'Actual Value'.\n */\n lsOperator = lsOperator.trim();\n if(AMSStringUtil.strEqual(lsOperator, CVL_WF_OPRSImpl.IN_LIST) ||\n AMSStringUtil.strEqual(lsOperator, CVL_WF_OPRSImpl.NOT_IN_LIST) ||\n AMSStringUtil.strEqual(lsOperator, CVL_WF_OPRSImpl.IS_NULL) ||\n AMSStringUtil.strEqual(lsOperator, CVL_WF_OPRSImpl.IS_NOT_NULL))\n {\n raiseException( \"%c:Q0152,v:\" + fiIndex + \"%\" ) ;\n return;\n }\n\n if(liFieldType != DataConst.BIGINT &&\n liFieldType != DataConst.DECIMAL &&\n liFieldType != DataConst.DOUBLE &&\n liFieldType != DataConst.FLOAT &&\n liFieldType != DataConst.INTEGER &&\n liFieldType != DataConst.NUMERIC &&\n liFieldType != DataConst.SMALLINT &&\n liFieldType != DataConst.REAL &&\n liFieldType != DataConst.TINYINT)\n {\n /*\n * Raise error when Left Hand Side is not numeric and\n * Condition Type is Delta Change, Percent Change,\n * Absolute Delta Change or Absolute Percent Change.\n */\n raiseException(\"%c:Q0151,v: \" +\n CVL_WF_COND_TYPImpl.getConditionTypeDV(liCondType, getSession()) +\n \" for Condition \" + fiIndex + \"%\");\n return;\n }\n\n for (int liCnt = 0; liCnt < liRhsLen; liCnt++)\n {\n if (!((lcRhsChar[liCnt] == '-') ||\n (lcRhsChar[liCnt] == '.') ||\n Character.isDigit(lcRhsChar[liCnt])))\n {\n /*\n * Raise error when Right Hand Side is not numeric and\n * Condition Type is Delta Change, Percent Change,\n * Absolute Delta Change or Absolute Percent Change.\n */\n raiseException(\"%c:Q0153,v: \" + fiIndex + \"%\");\n return;\n }\n } //end for loop\n }\n\n /* If the operator is not \"In List\" or \"Not In List\" */\n if ( !lboolListOper )\n {\n /* if more than one parsed value */\n if ( liNumTokens > 1 )\n {\n StringBuffer lsbSingleVal = new StringBuffer(256) ;\n raiseException( \"%c:Q0077%\" ) ;\n }\n else\n {\n /*\n * If the data type of the field is boolean\n * and operator used is not EQUAL(=) or NOT_EQUAL(<>)\n * then raise an exception\n */\n if( liFieldType == DataConst.BIT\n && !AMSStringUtil.strEqual(lsOperator,CVL_WF_OPRSImpl.EQUAL)\n && !AMSStringUtil.strEqual(lsOperator,CVL_WF_OPRSImpl.NOT_EQUAL))\n {\n raiseException( \"%c:Q0155%\" ) ;\n }\n\n } /* end else of if ( liNumTokens > 1 ) */\n } /* end if ( !lboolListOper ) */\n else\n {\n /*\n * If the data type of the field is not numeric or text,\n * then raise an exception\n */\n if ( !( ( isFieldNumeric( lsDataObject, lsFieldName ) ) ||\n ( liFieldType == DataConst.CHAR ) ||\n ( liFieldType == DataConst.VARCHAR ) ) )\n {\n raiseException( \"%c:Q0078%\" ) ;\n return ;\n } /* end if ( !( isFieldNumeric... */\n } /* end else */\n\n if ( ( lvVals != null ) && ( liNumTokens > 0 ) )\n {\n String lsParsedVal ;\n for( int liCtr = 0 ; liCtr < liNumTokens ; liCtr ++ )\n {\n lsParsedVal = (String) lvVals.elementAt(liCtr) ;\n checkValue( liFieldType, lsParsedVal, fiIndex ) ;\n } /* end while ( loTokens.hasMoreTokens() ) */\n } /* end if ( loTokens != null ) */\n else\n {\n if(!(lsOperator.trim().equals( CVL_WF_OPRSImpl.IS_NULL)|| lsOperator.trim().equals( CVL_WF_OPRSImpl.IS_NOT_NULL))\n && !AMSStringUtil.strIsEmpty(lsRHS) )\n {\n \tcheckValue( liFieldType, lsRHS, fiIndex ) ;\n\t\t }\n } /* end else */\n }", "@Test\n public void testAndOrRules() throws Exception {\n final PackageDescr pkg = ((PackageDescr) (parseResource(\"compilationUnit\", \"and_or_rule.drl\")));\n TestCase.assertNotNull(pkg);\n TestCase.assertEquals(1, pkg.getRules().size());\n final RuleDescr rule = ((RuleDescr) (pkg.getRules().get(0)));\n TestCase.assertEquals(\"simple_rule\", rule.getName());\n // we will have 3 children under the main And node\n final AndDescr and = rule.getLhs();\n TestCase.assertEquals(3, and.getDescrs().size());\n PatternDescr left = ((PatternDescr) (and.getDescrs().get(0)));\n PatternDescr right = ((PatternDescr) (and.getDescrs().get(1)));\n TestCase.assertEquals(\"Person\", left.getObjectType());\n TestCase.assertEquals(\"Cheese\", right.getObjectType());\n TestCase.assertEquals(1, getDescrs().size());\n ExprConstraintDescr fld = ((ExprConstraintDescr) (getDescrs().get(0)));\n TestCase.assertEquals(\"name == \\\"mark\\\"\", fld.getExpression());\n TestCase.assertEquals(1, getDescrs().size());\n fld = ((ExprConstraintDescr) (getDescrs().get(0)));\n TestCase.assertEquals(\"type == \\\"stilton\\\"\", fld.getExpression());\n // now the \"||\" part\n final OrDescr or = ((OrDescr) (and.getDescrs().get(2)));\n TestCase.assertEquals(2, or.getDescrs().size());\n left = ((PatternDescr) (or.getDescrs().get(0)));\n right = ((PatternDescr) (or.getDescrs().get(1)));\n TestCase.assertEquals(\"Person\", left.getObjectType());\n TestCase.assertEquals(\"Cheese\", right.getObjectType());\n TestCase.assertEquals(1, getDescrs().size());\n fld = ((ExprConstraintDescr) (getDescrs().get(0)));\n TestCase.assertEquals(\"name == \\\"mark\\\"\", fld.getExpression());\n TestCase.assertEquals(1, getDescrs().size());\n fld = ((ExprConstraintDescr) (getDescrs().get(0)));\n TestCase.assertEquals(\"type == \\\"stilton\\\"\", fld.getExpression());\n assertEqualsIgnoreWhitespace(\"System.out.println( \\\"Mark and Michael\\\" );\", ((String) (rule.getConsequence())));\n }", "@Test\n public void defaultOperatorsEvaluteTrueTest() throws Exception {\n\n assertThat(getNode(\"1 == 1\", \"expr\").render(null), is((Object)true));\n assertThat(getNode(\"1 != 2\", \"expr\").render(null), is((Object)true));\n assertThat(getNode(\"1 <> 2\", \"expr\").render(null), is((Object)true));\n assertThat(getNode(\"1 < 2\", \"expr\").render(null), is((Object)true));\n assertThat(getNode(\"2 > 1\", \"expr\").render(null), is((Object)true));\n assertThat(getNode(\"1 >= 1\", \"expr\").render(null), is((Object)true));\n assertThat(getNode(\"2 >= 1\", \"expr\").render(null), is((Object)true));\n assertThat(getNode(\"1 <= 2\", \"expr\").render(null), is((Object)true));\n assertThat(getNode(\"1 <= 1\", \"expr\").render(null), is((Object)true));\n\n // negative numbers\n assertThat(getNode(\"1 > -1\", \"expr\").render(null), is((Object)true));\n assertThat(getNode(\"-1 < 1\", \"expr\").render(null), is((Object)true));\n assertThat(getNode(\"1.0 > -1.0\", \"expr\").render(null), is((Object)true));\n assertThat(getNode(\"-1.0 < 1.0\", \"expr\").render(null), is((Object)true));\n }", "@Test(timeout = 4000)\n public void test001() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"hN!SM~8ux(wB\");\n xPathLexer0.dollar();\n xPathLexer0.not();\n xPathLexer0.nextToken();\n xPathLexer0.leftParen();\n xPathLexer0.whitespace();\n xPathLexer0.plus();\n Token token0 = xPathLexer0.or();\n assertNull(token0);\n }", "BooleanLiteralExp createBooleanLiteralExp();", "@Override\n public TypeNode evaluate() {\n return this.hijo.evaluate().toBoolNode();\n }", "public final EObject ruleAndOperator() throws RecognitionException {\r\n EObject current = null;\r\n\r\n Token otherlv_1=null;\r\n Token otherlv_2=null;\r\n\r\n enterRule(); \r\n \r\n try {\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:4468:28: ( ( () (otherlv_1= 'and' | otherlv_2= '&&' ) ) )\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:4469:1: ( () (otherlv_1= 'and' | otherlv_2= '&&' ) )\r\n {\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:4469:1: ( () (otherlv_1= 'and' | otherlv_2= '&&' ) )\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:4469:2: () (otherlv_1= 'and' | otherlv_2= '&&' )\r\n {\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:4469:2: ()\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:4470:5: \r\n {\r\n if ( state.backtracking==0 ) {\r\n\r\n current = forceCreateModelElement(\r\n grammarAccess.getAndOperatorAccess().getAndOperatorAction_0(),\r\n current);\r\n \r\n }\r\n\r\n }\r\n\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:4475:2: (otherlv_1= 'and' | otherlv_2= '&&' )\r\n int alt53=2;\r\n int LA53_0 = input.LA(1);\r\n\r\n if ( (LA53_0==51) ) {\r\n alt53=1;\r\n }\r\n else if ( (LA53_0==52) ) {\r\n alt53=2;\r\n }\r\n else {\r\n if (state.backtracking>0) {state.failed=true; return current;}\r\n NoViableAltException nvae =\r\n new NoViableAltException(\"\", 53, 0, input);\r\n\r\n throw nvae;\r\n }\r\n switch (alt53) {\r\n case 1 :\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:4475:4: otherlv_1= 'and'\r\n {\r\n otherlv_1=(Token)match(input,51,FOLLOW_51_in_ruleAndOperator9750); if (state.failed) return current;\r\n if ( state.backtracking==0 ) {\r\n\r\n \tnewLeafNode(otherlv_1, grammarAccess.getAndOperatorAccess().getAndKeyword_1_0());\r\n \r\n }\r\n\r\n }\r\n break;\r\n case 2 :\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:4480:7: otherlv_2= '&&'\r\n {\r\n otherlv_2=(Token)match(input,52,FOLLOW_52_in_ruleAndOperator9768); if (state.failed) return current;\r\n if ( state.backtracking==0 ) {\r\n\r\n \tnewLeafNode(otherlv_2, grammarAccess.getAndOperatorAccess().getAmpersandAmpersandKeyword_1_1());\r\n \r\n }\r\n\r\n }\r\n break;\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n if ( state.backtracking==0 ) {\r\n leaveRule(); \r\n }\r\n }\r\n \r\n catch (RecognitionException re) { \r\n recover(input,re); \r\n appendSkippedTokens();\r\n } \r\n finally {\r\n }\r\n return current;\r\n }", "public final EObject ruleLogicalAndExpression() throws RecognitionException {\r\n EObject current = null;\r\n\r\n Token otherlv_2=null;\r\n EObject this_LogicalNotExpression_0 = null;\r\n\r\n EObject lv_rightOperand_3_0 = null;\r\n\r\n\r\n enterRule(); \r\n \r\n try {\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:2637:28: ( (this_LogicalNotExpression_0= ruleLogicalNotExpression ( () otherlv_2= '&&' ( (lv_rightOperand_3_0= ruleLogicalNotExpression ) ) )* ) )\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:2638:1: (this_LogicalNotExpression_0= ruleLogicalNotExpression ( () otherlv_2= '&&' ( (lv_rightOperand_3_0= ruleLogicalNotExpression ) ) )* )\r\n {\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:2638:1: (this_LogicalNotExpression_0= ruleLogicalNotExpression ( () otherlv_2= '&&' ( (lv_rightOperand_3_0= ruleLogicalNotExpression ) ) )* )\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:2639:5: this_LogicalNotExpression_0= ruleLogicalNotExpression ( () otherlv_2= '&&' ( (lv_rightOperand_3_0= ruleLogicalNotExpression ) ) )*\r\n {\r\n if ( state.backtracking==0 ) {\r\n \r\n newCompositeNode(grammarAccess.getLogicalAndExpressionAccess().getLogicalNotExpressionParserRuleCall_0()); \r\n \r\n }\r\n pushFollow(FOLLOW_ruleLogicalNotExpression_in_ruleLogicalAndExpression6039);\r\n this_LogicalNotExpression_0=ruleLogicalNotExpression();\r\n\r\n state._fsp--;\r\n if (state.failed) return current;\r\n if ( state.backtracking==0 ) {\r\n \r\n current = this_LogicalNotExpression_0; \r\n afterParserOrEnumRuleCall();\r\n \r\n }\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:2647:1: ( () otherlv_2= '&&' ( (lv_rightOperand_3_0= ruleLogicalNotExpression ) ) )*\r\n loop42:\r\n do {\r\n int alt42=2;\r\n int LA42_0 = input.LA(1);\r\n\r\n if ( (LA42_0==48) ) {\r\n alt42=1;\r\n }\r\n\r\n\r\n switch (alt42) {\r\n \tcase 1 :\r\n \t // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:2647:2: () otherlv_2= '&&' ( (lv_rightOperand_3_0= ruleLogicalNotExpression ) )\r\n \t {\r\n \t // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:2647:2: ()\r\n \t // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:2648:5: \r\n \t {\r\n \t if ( state.backtracking==0 ) {\r\n\r\n \t current = forceCreateModelElementAndSet(\r\n \t grammarAccess.getLogicalAndExpressionAccess().getLogicalAndExpressionLeftOperandAction_1_0(),\r\n \t current);\r\n \t \r\n \t }\r\n\r\n \t }\r\n\r\n \t otherlv_2=(Token)match(input,48,FOLLOW_48_in_ruleLogicalAndExpression6060); if (state.failed) return current;\r\n \t if ( state.backtracking==0 ) {\r\n\r\n \t \tnewLeafNode(otherlv_2, grammarAccess.getLogicalAndExpressionAccess().getAmpersandAmpersandKeyword_1_1());\r\n \t \r\n \t }\r\n \t // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:2657:1: ( (lv_rightOperand_3_0= ruleLogicalNotExpression ) )\r\n \t // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:2658:1: (lv_rightOperand_3_0= ruleLogicalNotExpression )\r\n \t {\r\n \t // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:2658:1: (lv_rightOperand_3_0= ruleLogicalNotExpression )\r\n \t // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:2659:3: lv_rightOperand_3_0= ruleLogicalNotExpression\r\n \t {\r\n \t if ( state.backtracking==0 ) {\r\n \t \r\n \t \t newCompositeNode(grammarAccess.getLogicalAndExpressionAccess().getRightOperandLogicalNotExpressionParserRuleCall_1_2_0()); \r\n \t \t \r\n \t }\r\n \t pushFollow(FOLLOW_ruleLogicalNotExpression_in_ruleLogicalAndExpression6081);\r\n \t lv_rightOperand_3_0=ruleLogicalNotExpression();\r\n\r\n \t state._fsp--;\r\n \t if (state.failed) return current;\r\n \t if ( state.backtracking==0 ) {\r\n\r\n \t \t if (current==null) {\r\n \t \t current = createModelElementForParent(grammarAccess.getLogicalAndExpressionRule());\r\n \t \t }\r\n \t \t\tset(\r\n \t \t\t\tcurrent, \r\n \t \t\t\t\"rightOperand\",\r\n \t \t\tlv_rightOperand_3_0, \r\n \t \t\t\"LogicalNotExpression\");\r\n \t \t afterParserOrEnumRuleCall();\r\n \t \t \r\n \t }\r\n\r\n \t }\r\n\r\n\r\n \t }\r\n\r\n\r\n \t }\r\n \t break;\r\n\r\n \tdefault :\r\n \t break loop42;\r\n }\r\n } while (true);\r\n\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n if ( state.backtracking==0 ) {\r\n leaveRule(); \r\n }\r\n }\r\n \r\n catch (RecognitionException re) { \r\n recover(input,re); \r\n appendSkippedTokens();\r\n } \r\n finally {\r\n }\r\n return current;\r\n }", "public void testAND2() throws Exception {\n\t\tObject retval = execLexer(\"AND\", 226, \"&\", false);\n\t\tObject actual = examineExecResult(org.antlr.gunit.gUnitParser.FAIL, retval);\n\t\tObject expecting = \"FAIL\";\n\n\t\tassertEquals(\"testing rule \"+\"AND\", expecting, actual);\n\t}", "boolean getConditionListNull();", "public void testAND3() throws Exception {\n\t\tObject retval = execLexer(\"AND\", 227, \"+\", false);\n\t\tObject actual = examineExecResult(org.antlr.gunit.gUnitParser.FAIL, retval);\n\t\tObject expecting = \"FAIL\";\n\n\t\tassertEquals(\"testing rule \"+\"AND\", expecting, actual);\n\t}", "public final void ruleOpAnd() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:445:2: ( ( '&&' ) )\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:446:1: ( '&&' )\n {\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:446:1: ( '&&' )\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:447:1: '&&'\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getOpAndAccess().getAmpersandAmpersandKeyword()); \n }\n match(input,14,FOLLOW_14_in_ruleOpAnd886); if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getOpAndAccess().getAmpersandAmpersandKeyword()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public static RuntimeValue and(RuntimeValue left, RuntimeValue right) throws RuntimeException {\n if (isDiscreteBoolSamples(left, right)) {\n return new RuntimeValue(\n RuntimeValue.Type.DISCRETE_BOOL_SAMPLE,\n Operators.and(left.getDiscreteBoolSample(), right.getDiscreteBoolSample())\n );\n }\n\n throw new RuntimeException(\"AND-ing incompatible types\");\n }", "Expr join() throws IOException {\n\t\tExpr e = equality();\n\t\twhile (look.tag == Tag.AND) {\n\t\t\tToken tok = look;\n\t\t\tmove();\n\t\t\te = new And(tok, e, equality());\n\t\t}\n\t\treturn e;\n\t}", "public static BinaryExpression and(Expression expression0, Expression expression1, Method method) { throw Extensions.todo(); }", "@RepeatedTest(20)\n void logicalOperatorsTest() {\n assertEquals(bi.or(bot), new Binary(\"1\"));\n assertEquals(bi.or(bof), bi);\n assertEquals(bi.and(bot), bi);\n assertEquals(bi.and(bof), new Binary(\"0\"));\n assertEquals(bot.or(bi), new Binary(\"1\"));\n assertEquals(bof.or(bi), bi);\n assertEquals(bot.and(bi), bi);\n assertEquals(bof.and(bi), new Binary(\"0\"));\n assertEquals(bot.and(bot), bot);\n assertEquals(bot.and(bof),bof);\n assertEquals(bof.and(bot),bof);\n assertEquals(bof.and(bof),bof);\n assertEquals(bot.or(bot), bot);\n assertEquals(bot.or(bof),bot);\n assertEquals(bof.or(bot),bot);\n assertEquals(bof.or(bof),bof);\n Binary b1 = new Binary(\"10001\");\n Binary b2 = new Binary(\"1001011\");\n assertEquals(b1.or(b2), new Binary(\"1111011\"));\n assertEquals(b1.and(b2), new Binary(\"1000001\"));\n assertEquals(b1.or(b2), b2.or(b1));\n assertEquals(b1.and(b2),b2.and(b1));\n assertEquals(bi.or(bi), bi);\n assertEquals(bi.and(bi),bi);\n Binary notbi = bi.neg();\n assertEquals(bi.or(notbi), new Binary(\"1\"));\n assertEquals(bi.and(notbi), new Binary(\"0\"));\n\n //nulls\n //Bool or ITypes \\ {Logicals}\n assertEquals(bot.or(st),Null);\n assertEquals(bof.or(st),Null);\n assertEquals(bot.or(f), Null);\n assertEquals(bof.or(i), Null);\n //Float or ITypes\n assertEquals(f.or(st), Null);\n assertEquals(f.or(bot), Null);\n assertEquals(f.or(bof), Null);\n assertEquals(f.or(i), Null);\n assertEquals(f.or(g), Null);\n assertEquals(f.or(bi), Null);\n //Int or ITypes\n assertEquals(i.or(st), Null);\n assertEquals(i.or(bot),Null);\n assertEquals(i.or(bof), Null);\n assertEquals(i.or(j), Null);\n assertEquals(i.or(f), Null);\n assertEquals(i.or(bi), Null);\n //Binary or ITypes \\ {Logicals}\n assertEquals(bi.or(st), Null);\n assertEquals(bi.or(f), Null);\n assertEquals(bi.or(i), Null);\n //NullType or ITypes\n assertEquals(Null.or(st), Null);\n assertEquals(Null.or(bof), Null);\n assertEquals(Null.or(f), Null);\n assertEquals(Null.or(i), Null);\n assertEquals(Null.or(bi), Null);\n assertEquals(Null.or(Null), Null);\n assertEquals(st.or(Null), Null);\n assertEquals(bot.or(Null), Null);\n assertEquals(f.or(Null), Null);\n assertEquals(i.or(Null), Null);\n assertEquals(bi.or(Null), Null);\n\n //Bool and ITypes \\ {Logicals}\n assertEquals(bot.and(st),Null);\n assertEquals(bof.and(st),Null);\n assertEquals(bot.and(f), Null);\n assertEquals(bof.and(i), Null);\n //Float and ITypes\n assertEquals(f.and(st), Null);\n assertEquals(f.and(bot), Null);\n assertEquals(f.and(bof), Null);\n assertEquals(f.and(i), Null);\n assertEquals(f.and(g), Null);\n assertEquals(f.and(bi), Null);\n //Int and ITypes\n assertEquals(i.and(st), Null);\n assertEquals(i.and(bot),Null);\n assertEquals(i.and(bof), Null);\n assertEquals(i.and(j), Null);\n assertEquals(i.and(f), Null);\n assertEquals(i.and(bi), Null);\n //Binary and ITypes \\ {Logicals}\n assertEquals(bi.and(st), Null);\n assertEquals(bi.and(f), Null);\n assertEquals(bi.and(i), Null);\n //NullType and ITypes\n assertEquals(Null.and(st), Null);\n assertEquals(Null.and(bof), Null);\n assertEquals(Null.and(f), Null);\n assertEquals(Null.and(i), Null);\n assertEquals(Null.and(bi), Null);\n assertEquals(Null.and(Null), Null);\n assertEquals(st.and(Null), Null);\n assertEquals(bot.and(Null), Null);\n assertEquals(f.and(Null), Null);\n assertEquals(i.and(Null), Null);\n assertEquals(bi.and(Null), Null);\n\n }", "static private boolean isFirstOfValue(Token.Code code) {\r\n \t\t\t\treturn isFirstOfLiteral(code) || isFirstOfObject(code) || isFirstOfArray(code);\r\n \t\t\t}", "public void testAND1() throws Exception {\n\t\tObject retval = execLexer(\"AND\", 225, \"and\", false);\n\t\tObject actual = examineExecResult(org.antlr.gunit.gUnitParser.OK, retval);\n\t\tObject expecting = \"OK\";\n\n\t\tassertEquals(\"testing rule \"+\"AND\", expecting, actual);\n\t}", "final public void PendingOperatorBool() throws ParseException {String o, op1, op2, r;\n// Si la pila no esta vacía\n if( !pOperators.empty()) {\n\n // Y el tope de la pila es > < <> o ==\n if ( pOperators.peek() == \">\" || pOperators.peek() == \"<\" ||\n pOperators.peek() == \"<>\" || pOperators.peek() == \"==\" ) {\n\n // Sacar los operandos y el operador de las pilas\n op2 = (String)pOperands.pop();\n op1 = (String)pOperands.pop();\n o = (String)pOperators.pop();\n r = \"t\" + currentTemporal;\n\n currentTemporal++;\n\n // Crear un cuadruplo y meterlos\n Cuadruplo quad = new Cuadruplo(o, op1, op2, r);\n quadCounter++;\n pOperands.push(r);\n cuadruplos.addElement(quad);\n }\n }\n }", "@Test\n public void testPredicateAnd() {\n Predicate<Integer> isEven = (x) -> (x % 2) == 0;\n Predicate<Integer> isDivSeven = (x) -> (x % 7) == 0;\n\n Predicate<Integer> evenOrDivSeven = isEven.and(isDivSeven);\n\n assertTrue(evenOrDivSeven.apply(14));\n assertFalse(evenOrDivSeven.apply(21));\n assertFalse(evenOrDivSeven.apply(8));\n assertFalse(evenOrDivSeven.apply(5));\n }", "public Object visitLogicalOrExpression(GNode n) {\n if (dostring) {\n Object a = dispatch(n.getGeneric(0));\n Object b = dispatch(n.getGeneric(1));\n \n if (a instanceof Long && b instanceof Long) {\n return (Long) a | (Long) b;\n }\n else {\n return parens(a) + \" || \" + parens(b);\n }\n }\n else {\n BDD a, b, bdd;\n \n a = ensureBDD(dispatch(n.getGeneric(0)));\n b = ensureBDD(dispatch(n.getGeneric(1)));\n \n bdd = a.orWith(b);\n \n return bdd;\n }\n }", "@Test\n public void testOr() {\n if (true || addValue()) {\n assertThat(flag, equalTo(0));\n }\n\n // first not satisfied, invoke second\n if (false || addValue()) {\n assertThat(flag, equalTo(1));\n }\n }", "@Test\n public void defaultOperatorsEvaluateFalseTest() throws Exception {\n\n assertThat(getNode(\"1 == 2\", \"expr\").render(null), is((Object)false));\n assertThat(getNode(\"1 != 1\", \"expr\").render(null), is((Object)false));\n assertThat(getNode(\"1 <> 1\", \"expr\").render(null), is((Object)false));\n assertThat(getNode(\"1 < 0\", \"expr\").render(null), is((Object)false));\n assertThat(getNode(\"2 > 4\", \"expr\").render(null), is((Object)false));\n assertThat(getNode(\"1 >= 3\", \"expr\").render(null), is((Object)false));\n assertThat(getNode(\"2 >= 4\", \"expr\").render(null), is((Object)false));\n assertThat(getNode(\"1 <= 0\", \"expr\").render(null), is((Object)false));\n }", "private static boolean testGetAllowedValues(boolean a[]) {\r\n return a[0] && a[1] && a[2] && a[3] && !a[4] && a[5] && a[6] && a[7] && !a[8];\r\n }", "protected ICompilerBooleanValue bExpression() throws InvalidConditionantException,\r\n\t\t\t\t\t\t\t\t\t TableFunctionMalformedException{\r\n\t\t\r\n\t\tICompilerBooleanValue val1 = bTerm();\r\n\t\t\r\n\t\t// LOOK FOR OR (OPTIONAL)\r\n\t\t// scan();\r\n\t\tif (look == '|') {\r\n\t\t\tmatch('|');\r\n\t\t\tICompilerBooleanValue val2 = bTerm();\r\n\t\t\t// Debug.println(\"EXITING BEXPRESSION AS OR\");\r\n\t\t\tif (look == '|') {\r\n\t\t\t\tmatch('|');\r\n\t\t\t\treturn new CompilerOrValue(val1, new CompilerOrValue(val2,bExpression()));\r\n\t\t\t} else {\r\n\t\t\t\treturn new CompilerOrValue(val1, val2);\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\t// Debug.println(\"EXITING BEXPRESSION AS SINGLE TERM\");\t\t\t\r\n\t\t\treturn val1;\r\n\t\t}\r\n\t\t\r\n\t}", "Expr bool() throws IOException {\n\t\tExpr e = join();\n\t\twhile (look.tag == Tag.OR) {\n\t\t\tToken tok = look;\n\t\t\tmove();\n\t\t\te = new Or(tok, e,join());\n\t\t}\n\t\treturn e;\n\t}", "private Term parseBitwiseOr(final boolean required) throws ParseException {\n Term t1 = parseBtwiseXOr(required);\n while (t1 != null) {\n int tt = _tokenizer.next();\n if (tt == '|') {\n Term t2 = parseBtwiseXOr(true);\n if ((t1.isI() && t2.isI()) || !isTypeChecking()) {\n t1 = new Term.OrI(t1, t2);\n } else {\n reportTypeErrorI2(\"'|'\");\n }\n } else {\n _tokenizer.pushBack();\n break;\n }\n }\n return t1;\n }", "String getOr_op();", "public final EObject ruleAnd() throws RecognitionException {\n EObject current = null;\n\n Token lv_operator_2_0=null;\n EObject this_RelationalExpression_0 = null;\n\n EObject lv_right_3_0 = null;\n\n\n enterRule(); \n \n try {\n // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:3903:28: ( (this_RelationalExpression_0= ruleRelationalExpression ( () ( (lv_operator_2_0= '&&' ) ) ( (lv_right_3_0= ruleRelationalExpression ) ) )* ) )\n // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:3904:1: (this_RelationalExpression_0= ruleRelationalExpression ( () ( (lv_operator_2_0= '&&' ) ) ( (lv_right_3_0= ruleRelationalExpression ) ) )* )\n {\n // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:3904:1: (this_RelationalExpression_0= ruleRelationalExpression ( () ( (lv_operator_2_0= '&&' ) ) ( (lv_right_3_0= ruleRelationalExpression ) ) )* )\n // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:3905:5: this_RelationalExpression_0= ruleRelationalExpression ( () ( (lv_operator_2_0= '&&' ) ) ( (lv_right_3_0= ruleRelationalExpression ) ) )*\n {\n \n newCompositeNode(grammarAccess.getAndAccess().getRelationalExpressionParserRuleCall_0()); \n \n pushFollow(FOLLOW_ruleRelationalExpression_in_ruleAnd8765);\n this_RelationalExpression_0=ruleRelationalExpression();\n\n state._fsp--;\n\n \n current = this_RelationalExpression_0; \n afterParserOrEnumRuleCall();\n \n // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:3913:1: ( () ( (lv_operator_2_0= '&&' ) ) ( (lv_right_3_0= ruleRelationalExpression ) ) )*\n loop35:\n do {\n int alt35=2;\n int LA35_0 = input.LA(1);\n\n if ( (LA35_0==59) ) {\n alt35=1;\n }\n\n\n switch (alt35) {\n \tcase 1 :\n \t // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:3913:2: () ( (lv_operator_2_0= '&&' ) ) ( (lv_right_3_0= ruleRelationalExpression ) )\n \t {\n \t // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:3913:2: ()\n \t // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:3914:5: \n \t {\n\n \t current = forceCreateModelElementAndSet(\n \t grammarAccess.getAndAccess().getBooleanOperationLeftAction_1_0(),\n \t current);\n \t \n\n \t }\n\n \t // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:3919:2: ( (lv_operator_2_0= '&&' ) )\n \t // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:3920:1: (lv_operator_2_0= '&&' )\n \t {\n \t // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:3920:1: (lv_operator_2_0= '&&' )\n \t // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:3921:3: lv_operator_2_0= '&&'\n \t {\n \t lv_operator_2_0=(Token)match(input,59,FOLLOW_59_in_ruleAnd8792); \n\n \t newLeafNode(lv_operator_2_0, grammarAccess.getAndAccess().getOperatorAmpersandAmpersandKeyword_1_1_0());\n \t \n\n \t \t if (current==null) {\n \t \t current = createModelElement(grammarAccess.getAndRule());\n \t \t }\n \t \t\tsetWithLastConsumed(current, \"operator\", lv_operator_2_0, \"&&\");\n \t \t \n\n \t }\n\n\n \t }\n\n \t // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:3934:2: ( (lv_right_3_0= ruleRelationalExpression ) )\n \t // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:3935:1: (lv_right_3_0= ruleRelationalExpression )\n \t {\n \t // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:3935:1: (lv_right_3_0= ruleRelationalExpression )\n \t // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:3936:3: lv_right_3_0= ruleRelationalExpression\n \t {\n \t \n \t \t newCompositeNode(grammarAccess.getAndAccess().getRightRelationalExpressionParserRuleCall_1_2_0()); \n \t \t \n \t pushFollow(FOLLOW_ruleRelationalExpression_in_ruleAnd8826);\n \t lv_right_3_0=ruleRelationalExpression();\n\n \t state._fsp--;\n\n\n \t \t if (current==null) {\n \t \t current = createModelElementForParent(grammarAccess.getAndRule());\n \t \t }\n \t \t\tset(\n \t \t\t\tcurrent, \n \t \t\t\t\"right\",\n \t \t\tlv_right_3_0, \n \t \t\t\"RelationalExpression\");\n \t \t afterParserOrEnumRuleCall();\n \t \t \n\n \t }\n\n\n \t }\n\n\n \t }\n \t break;\n\n \tdefault :\n \t break loop35;\n }\n } while (true);\n\n\n }\n\n\n }\n\n leaveRule(); \n }\n \n catch (RecognitionException re) { \n recover(input,re); \n appendSkippedTokens();\n } \n finally {\n }\n return current;\n }", "private boolean isJunctionValueNodeForDecision(Node chanceOrDecNode, Node valueNode) {\n NodeList influentialUtils;\n NodeList negativeUtilities;\n\n influentialUtils = chanceOrDecNode.getChildrenNodes();\n negativeUtilities = obtainNegativeUtilityNodes();\n influentialUtils.merge(negativeUtilities);\n return diag.areAscendantsOf(valueNode, influentialUtils);\n }", "public T caseLogicalAndExpression(LogicalAndExpression object)\n {\n return null;\n }", "public final Expr andExpr() throws RecognitionException {\r\n Expr result = null;\r\n\r\n int andExpr_StartIndex = input.index();\r\n\r\n Expr lhs =null;\r\n\r\n Expr rhs =null;\r\n\r\n\r\n try {\r\n if ( state.backtracking>0 && alreadyParsedRule(input, 17) ) { return result; }\r\n\r\n // C:\\\\Users\\\\caytekin\\\\Documents\\\\GitHub\\\\sea-of-ql\\\\caytekin\\\\QLJava/src/org/uva/sea/ql/parser/antlr/QL.g:157:5: (lhs= relExpr ( '&&' rhs= relExpr )* )\r\n // C:\\\\Users\\\\caytekin\\\\Documents\\\\GitHub\\\\sea-of-ql\\\\caytekin\\\\QLJava/src/org/uva/sea/ql/parser/antlr/QL.g:157:9: lhs= relExpr ( '&&' rhs= relExpr )*\r\n {\r\n pushFollow(FOLLOW_relExpr_in_andExpr789);\r\n lhs=relExpr();\r\n\r\n state._fsp--;\r\n if (state.failed) return result;\r\n\r\n if ( state.backtracking==0 ) { result =lhs; }\r\n\r\n // C:\\\\Users\\\\caytekin\\\\Documents\\\\GitHub\\\\sea-of-ql\\\\caytekin\\\\QLJava/src/org/uva/sea/ql/parser/antlr/QL.g:157:46: ( '&&' rhs= relExpr )*\r\n loop12:\r\n do {\r\n int alt12=2;\r\n int LA12_0 = input.LA(1);\r\n\r\n if ( (LA12_0==20) ) {\r\n alt12=1;\r\n }\r\n\r\n\r\n switch (alt12) {\r\n \tcase 1 :\r\n \t // C:\\\\Users\\\\caytekin\\\\Documents\\\\GitHub\\\\sea-of-ql\\\\caytekin\\\\QLJava/src/org/uva/sea/ql/parser/antlr/QL.g:157:48: '&&' rhs= relExpr\r\n \t {\r\n \t match(input,20,FOLLOW_20_in_andExpr795); if (state.failed) return result;\r\n\r\n \t pushFollow(FOLLOW_relExpr_in_andExpr799);\r\n \t rhs=relExpr();\r\n\r\n \t state._fsp--;\r\n \t if (state.failed) return result;\r\n\r\n \t if ( state.backtracking==0 ) { result = new And(result, rhs); }\r\n\r\n \t }\r\n \t break;\r\n\r\n \tdefault :\r\n \t break loop12;\r\n }\r\n } while (true);\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n\r\n finally {\r\n \t// do for sure before leaving\r\n if ( state.backtracking>0 ) { memoize(input, 17, andExpr_StartIndex); }\r\n\r\n }\r\n return result;\r\n }", "public boolean isExpression (Object value);", "boolean hasOperator();", "public static void main(String ... aa)\n {\n \n boolean a1 = 3 == 4; // false ;because 3 is different than 4\n boolean a2 = 4 != 5 ; // true ; because 4 is different than 5\n boolean a3 = 4 < 3.2 ; // false ;because 4 is greater than 3.2\n \n\n /* Logical operators have as results boolean values , however the operands\n are boolean values as well */\n \n boolean a4 = !(4<3.2); // true ; (4<3.2) is false and !false is true\n boolean a5 = true & (3==4); // false; (3==4) is false and true & false is false\n boolean a6 = false | true ; // true \n boolean a7 = false ^ false ; // false\n \n /**************EXTRA CONCEPTS************/\n \n /* & is the and operator , | is the or operator , ^ is the xor operator\n ! is the negation operator , so these operators fulfill the rules of\n logic */\n \n /* Short-circuit logical operators are || and && , they act as the normal\n | and & ,however , if the first operand is enough to know the final result,\n the second operand will not be evaluated */\n \n boolean a8 = false && (3<4); // this is false , however (3<4) was not evaluated\n \n /* a compile error will appar if we try to use relational and logical operators with\n different types of operators */\n \n // boolean a9 = 3 < true; this will not compile \n \n }", "void visitBooleanValue(BooleanValue value);", "boolean isValue();", "public ExpressionNode getCondition();", "@Test\n\tpublic void explicitANDTest() {\n\t\tString query = \"hello goodbye\";\n\t\tString query2 = \"hello goodbye hello\";\n\t\tString query3 = \"( hello ( goodbye | hello bye ) )\";\n\t\t\n\t\tString queryResults = \"hello & goodbye\";\n\t\tString query2Results = \"hello & goodbye & hello\";\n\t\tString query3Results = \"( hello & ( goodbye | hello & bye ) )\";\n\n\t\tassertEquals(queryResults, String.join(\" \", queryTest.addExplicitAND(query.split(\" \"))));\n\t\tassertEquals(query2Results, String.join(\" \", queryTest.addExplicitAND(query2.split(\" \"))));\n\t\tassertEquals(query3Results, String.join(\" \", queryTest.addExplicitAND(query3.split(\" \"))));\n\t}", "org.apache.xmlbeans.XmlBoolean xgetMultiple();", "public void executeAnd(){\n\t\tBitString destBS = mIR.substring(4, 3);\n\t\tBitString operand1 = mRegisters[mIR.substring(7, 3).getValue()];\n\t\tchar[] andSolution = new char[16];\n\t\tBitString operand2 = new BitString();\n\t\tif(mIR.substring(10, 1).getValue() == 1){ //immediate mode\n\t\t\toperand2 = mIR.substring(11, 5); //imma5\n\t\t\tif(operand2.getValue2sComp() < 0){\n\t\t\t\tBitString negativeExtend = new BitString();\n\t\t\t\tnegativeExtend.setBits(\"11111111111\".toCharArray());\n\t\t\t\tnegativeExtend.append(operand2);\n\t\t\t\toperand2 = negativeExtend;\n\t\t\t} else {\n\t\t\t\tBitString positiveExtended = new BitString();\n\t\t\t\tpositiveExtended.setBits(\"00000000000\".toCharArray());\n\t\t\t\toperand2 = positiveExtended.append(operand2);\n\t\t\t}\n\t\t} else { \t\t\t\t\t\t\t\t\t\t\t\t//register mode\n\t\t\toperand2 = mRegisters[mIR.substring(13, 3).getValue()];\n\t\t}\n\n\n\t\tfor (int i = 0; i < operand1.getLength(); i++) {\n\t\t\tif(operand1.substring(i, 1).getValue() + operand2.substring(i, 1).getValue() ==2){\n\t\t\t\tandSolution[i] = '1';\n\t\t\t} else {\n\t\t\t\tandSolution[i] = '0';\n\t\t\t}\n\t\t}\n\n\t\tmRegisters[destBS.getValue()].setBits(andSolution);\n\n\t\tsetConditionalCode(mRegisters[destBS.getValue()]);\n\t}", "boolean isSimpleValue();" ]
[ "0.66954964", "0.656978", "0.6517392", "0.64110696", "0.634499", "0.62283474", "0.59780467", "0.5954035", "0.59320086", "0.5847466", "0.584661", "0.58328694", "0.58308744", "0.5824579", "0.58235735", "0.5743064", "0.57213986", "0.5689895", "0.56844974", "0.56515014", "0.56461865", "0.56390786", "0.5604145", "0.5601805", "0.55923074", "0.55747795", "0.5553309", "0.5548372", "0.553201", "0.5500653", "0.54750925", "0.54750925", "0.5469132", "0.5438732", "0.54244256", "0.54160774", "0.5414726", "0.5407077", "0.5406643", "0.5395719", "0.5395201", "0.53820604", "0.53697884", "0.53691906", "0.53645873", "0.5363753", "0.5358695", "0.5350833", "0.5346362", "0.53326654", "0.5311111", "0.5309178", "0.53086543", "0.53078187", "0.5306911", "0.5301686", "0.53002405", "0.52714795", "0.5270695", "0.52682436", "0.52661", "0.5264122", "0.52602994", "0.523593", "0.52183574", "0.5215212", "0.52149796", "0.5212011", "0.52099174", "0.520533", "0.5205229", "0.51946944", "0.51903665", "0.5188818", "0.51822567", "0.51794654", "0.516387", "0.5160301", "0.5146442", "0.5145583", "0.51215625", "0.5120614", "0.51152927", "0.51103526", "0.5107465", "0.51037073", "0.50960726", "0.5091593", "0.50912297", "0.50904024", "0.5078642", "0.50783885", "0.50769633", "0.5075008", "0.5067032", "0.5065496", "0.50641763", "0.5063396", "0.50463045", "0.5044619" ]
0.62752753
5
numericExpression > NumericExpression() nodeOptional > ( "=" NumericExpression() | "!=" NumericExpression() | "" NumericExpression() | "=" NumericExpression() )?
@Override public R visit(RelationalExpression n, A argu) { R _ret = null; n.numericExpression.accept(this, argu); n.nodeOptional.accept(this, argu); return _ret; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "NumericExpression createNumericExpression();", "double parseExpression() {\n double x = parseTerm();\n for (;;) {\n if (eat('+')) x += parseTerm(); // addition\n else if (eat('-')) x -= parseTerm(); // subtraction\n else return x;\n }\n }", "double parseExpression() {\n double x = parseTerm();\n for (;;) {\n if (eat('+')) x += parseTerm(); // addition\n else if (eat('-')) x -= parseTerm(); // subtraction\n else return x;\n }\n }", "private double parseExpression() {\n\t\tdouble value = parseTerm();\n\t\twhile (true) {\n\t\t\tif (token.getType().equals(Token.Type.PLUS)) { // addition\n\t\t\t\ttoken=lexer.getNextToken();\n\t\t\t\tvalue += parseTerm();\n\t\t\t} else if (token.getType().equals(Token.Type.MINUS)) { // subtraction\n\t\t\t\ttoken = lexer.getNextToken();\n\t\t\t\tvalue -= parseTerm();\n\t\t\t} else {\n\t\t\t\treturn value;\n\t\t\t}\n\t\t}\n\t}", "public abstract boolean isNumeric();", "void visit(NumericalValue expression);", "private double parseNumber() throws InvalidExpressionException {\n\t\tdouble value;\r\n\t\tboolean negative = false;\r\n\t\tignorWhiteSpace();\r\n\t\tif (singleChar == '+' || singleChar == '-') {\r\n\t\t\t// check if the value is negative\r\n\t\t\tnegative = singleChar == '-';\r\n\t\t\tnextChar();\r\n\t\t\tignorWhiteSpace();\r\n\t\t}\r\n\t\tif (singleChar == '(') { // in case of open parentheses do recursion (include nested parentheses)!\r\n\t\t\tnextChar();\r\n\t\t\tvalue = parseExpression();\r\n\t\t\tif (singleChar == ')')\r\n\t\t\t\tnextChar();\r\n\t\t} else { // construct full length number\r\n\t\t\tStringBuilder sb = new StringBuilder();\r\n\t\t\twhile ((singleChar >= '0' && singleChar <= '9') || singleChar == '.') { // added support for double numbers\r\n\t\t\t\tsb.append((char) singleChar);\r\n\t\t\t\tnextChar();\r\n\t\t\t}\r\n\t\t\tif (sb.length() == 0) // If invalid char exist in the expression, throw an exception.\r\n\t\t\t\tthrow new InvalidExpressionException(\"Invalid character : \" + (char) singleChar);\r\n\t\t\tvalue = Double.parseDouble(sb.toString());\r\n\t\t}\r\n\t\tignorWhiteSpace();\r\n\t\tif (singleChar == '^') { // in power \r\n\t\t\tnextChar();\r\n\t\t\tvalue = Math.pow(value, parseNumber());\r\n\t\t}\r\n\t\tif (negative)\r\n\t\t\tvalue = -value; // append minus to number if negative\r\n\t\treturn value;\r\n\t}", "@Test\n public void defaultOperatorsEvaluteTrueTest() throws Exception {\n\n assertThat(getNode(\"1 == 1\", \"expr\").render(null), is((Object)true));\n assertThat(getNode(\"1 != 2\", \"expr\").render(null), is((Object)true));\n assertThat(getNode(\"1 <> 2\", \"expr\").render(null), is((Object)true));\n assertThat(getNode(\"1 < 2\", \"expr\").render(null), is((Object)true));\n assertThat(getNode(\"2 > 1\", \"expr\").render(null), is((Object)true));\n assertThat(getNode(\"1 >= 1\", \"expr\").render(null), is((Object)true));\n assertThat(getNode(\"2 >= 1\", \"expr\").render(null), is((Object)true));\n assertThat(getNode(\"1 <= 2\", \"expr\").render(null), is((Object)true));\n assertThat(getNode(\"1 <= 1\", \"expr\").render(null), is((Object)true));\n\n // negative numbers\n assertThat(getNode(\"1 > -1\", \"expr\").render(null), is((Object)true));\n assertThat(getNode(\"-1 < 1\", \"expr\").render(null), is((Object)true));\n assertThat(getNode(\"1.0 > -1.0\", \"expr\").render(null), is((Object)true));\n assertThat(getNode(\"-1.0 < 1.0\", \"expr\").render(null), is((Object)true));\n }", "@Test\n public void defaultOperatorsEvaluateFalseTest() throws Exception {\n\n assertThat(getNode(\"1 == 2\", \"expr\").render(null), is((Object)false));\n assertThat(getNode(\"1 != 1\", \"expr\").render(null), is((Object)false));\n assertThat(getNode(\"1 <> 1\", \"expr\").render(null), is((Object)false));\n assertThat(getNode(\"1 < 0\", \"expr\").render(null), is((Object)false));\n assertThat(getNode(\"2 > 4\", \"expr\").render(null), is((Object)false));\n assertThat(getNode(\"1 >= 3\", \"expr\").render(null), is((Object)false));\n assertThat(getNode(\"2 >= 4\", \"expr\").render(null), is((Object)false));\n assertThat(getNode(\"1 <= 0\", \"expr\").render(null), is((Object)false));\n }", "private static Expression getNumericLiteral(String token, ExceptionMetadata metadataFromContext) {\n if (!token.contains(\".\") && !token.contains(\"e\") && !token.contains(\"E\")) {\n return new IntegerLiteralExpression(Integer.parseInt(token), metadataFromContext);\n }\n if (!token.contains(\"e\") && !token.contains(\"E\")) {\n return new DecimalLiteralExpression(new BigDecimal(token), metadataFromContext);\n }\n return new DoubleLiteralExpression(Double.parseDouble(token), metadataFromContext);\n\n }", "int parseExpression() {\r\n\t\t\t\tint x = parseTerm();\r\n\t\t\t\tfor (;;) {\r\n\t\t\t\t\tif (eat('+'))\r\n\t\t\t\t\t\tx += parseTerm(); // addition\r\n\t\t\t\t\telse if (eat('-'))\r\n\t\t\t\t\t\tx -= parseTerm(); // subtraction\r\n\t\t\t\t\telse\r\n\t\t\t\t\t\treturn x;\r\n\t\t\t\t}\r\n\t\t\t}", "private static double expressionValue() throws ParseError {\n\n TextIO.skipBlanks(); // Skip past any blanks.\n\n if ( Character.isDigit( TextIO.peek() ) )\n return TextIO.getDouble(); // The expression is made up of only a number.\n\n else if ( TextIO.peek() == '(' ) {\n TextIO.getAnyChar(); // Read the ')'.\n\n double leftOperand = expressionValue(); // Get the value of the left operand of this expression.\n char operator = getOperator(); // Get the operator.\n double rightOperand = expressionValue(); // Get the value of the right operand of this expression.\n\n // We expect a ')' at the end of this expression. If not, throw an error.\n TextIO.skipBlanks();\n\n if ( TextIO.peek() != ')' )\n throw new ParseError( \"Missing right hand parenthesis.\" );\n\n TextIO.getAnyChar(); // Read the ')'.\n\n // Calculate the value of the expression.\n switch ( operator ) {\n case '+': return leftOperand + rightOperand;\n case '-': return leftOperand - rightOperand;\n case '*': return leftOperand * rightOperand;\n case '/': return leftOperand / rightOperand;\n default: return Double.NaN;\n }\n }\n else\n throw new ParseError( \"Unknown character found: \" + TextIO.getAnyChar() );\n\n }", "public synchronized double parseExpression() throws InvalidExpressionException { // parse expression within parentheses\r\n\t\tdouble value = parseSubExpression();\r\n\t\twhile (true) {\r\n\t\t\tignorWhiteSpace();\r\n\t\t\tif (singleChar == '+') { // in case of addition\r\n\t\t\t\tnextChar();\r\n\t\t\t\tvalue = value + parseSubExpression();\r\n\t\t\t} else if (singleChar == '-') { // in case of subtraction\r\n\t\t\t\tnextChar();\r\n\t\t\t\tvalue = value - parseSubExpression();\r\n\t\t\t} else {\r\n\t\t\t\treturn value;\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public Expression getExpression() {\n return optionalConditionExpression; }", "private static Expr parseValue(String string) {\r\n\t\tif (string.isEmpty()) return null;\r\n\r\n\t\tchar first = string.charAt(0);\r\n\t\tif (first != '\"' && first != '-' && isReserved(first)) {\r\n\t\t\treturn new ExprUnary(Operator.get(Character.toString(first)), new ExprVal(string.substring(1)));\r\n\t\t} else {\r\n\t\t\treturn new ExprVal(string);\r\n\t\t}\r\n\t}", "Expression eqExpression() throws SyntaxException {\r\n\t\tToken first = t;\r\n\t\tExpression e0 = relExpression();\r\n\t\twhile(isKind(OP_EQ, OP_NEQ)) {\r\n\t\t\tToken op = consume();\r\n\t\t\tExpression e1 = relExpression();\r\n\t\t\te0 = new ExpressionBinary(first, e0,op,e1);\r\n\t\t}\r\n\t\treturn e0;\r\n\t}", "private IMathExpr parseMathElement(String expr)\r\n throws InvalidMathExprException {\r\n try {\r\n double val = Double.parseDouble(expr);\r\n \r\n return new MathExprConst(val);\r\n } catch (NumberFormatException ex) {\r\n throw new InvalidMathExprException(\"Invalid syntax, \"\r\n + \"unknown character: \" + expr);\r\n }\r\n }", "private int parseExpression(Queue<String> exp) {\n int value = parseTerm(exp);\n while (exp.peek().equals(\"+\") || exp.peek().equals(\"-\")) {\n String op = exp.dequeue().getData().toString();\n if (op.equals(\"+\")) {\n value = value + parseTerm(exp);\n } else {\n value = value - parseTerm(exp);\n }\n }\n return value;\n }", "public Object visitEqualityExpression(GNode n) {\n Object a, b, result;\n String op;\n boolean mydostring = dostring;\n \n nonboolean = true;\n \n dostring = true;\n \n a = dispatch(n.getGeneric(0));\n b = dispatch(n.getGeneric(2));\n op = n.getString(1);\n \n dostring = false;\n \n if (a instanceof Long && b instanceof Long) {\n if (op.equals(\"==\")) {\n result = ((Long) a).equals((Long) b);\n }\n else if (op.equals(\"!=\")) {\n result = ! ((Long) a).equals((Long) b);\n }\n else {\n result = \"\";\n }\n }\n else {\n String sa, sb;\n \n if (a instanceof String) {\n sa = (String) a;\n }\n else if (a instanceof Long) {\n sa = ((Long) a).toString();\n }\n else {\n return null;\n }\n \n if (b instanceof String) {\n sb = (String) b;\n }\n else if (b instanceof Long) {\n sb = ((Long) b).toString();\n }\n else {\n return null;\n }\n \n if (op.equals(\"==\") && sa.equals(sb)) {\n result = mydostring ? \"1\" : B.one();\n }\n else {\n result = parens(sa) + \" \" + op + \" \" + parens(sb);\n }\n }\n \n return result;\n }", "public UnaryExpNode() {\n }", "public ParseExpression(){\n expression = null;\n }", "public Equation()\r\n\t{\r\n\t\texpression = \"\";\r\n\t}", "@Override\n public R visit(NumericLiteral n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "private void processNumericModifier() {\n\n Token token = tokens.get(currentTokenPointer);\n\n if (currentVersionComponent == 3) {\n\n raiseParseProblem(\"cannot specify a numerical +/- value for the qualifier, found '\" + string(token) + \"' at position \" + token.start,\n\n token.start);\n\n }\n\n String tokenString = string(token);\n\n try {\n\n Integer value = null;\n\n if (token.kind == TokenKind.PLUSNUMBER) {\n\n value = Integer.parseInt(tokenString.substring(1));\n\n } else {\n\n value = Integer.parseInt(tokenString);\n\n }\n\n pushIt(new SumTransformer(value));\n\n } catch (NumberFormatException nfe) {\n\n raiseParseProblem(\"cannot parse numerical value '\" + tokenString + \"' at position \" + token.start, token.start);\n\n }\n\n }", "private Term parseComparison(final boolean required) throws ParseException {\n Term t1 = parseBitwiseOr(required);\n while (t1 != null) {\n int tt = _tokenizer.next();\n if (tt == '<') {\n Term t2 = parseBitwiseOr(true);\n if (t1.isD() && t2.isN() || t1.isN() && t2.isD()) {\n t1 = new Term.LtD(t1, t2);\n } else if (t1.isI() && t2.isI()) {\n t1 = new Term.LtI(t1, t2);\n } else if (!isTypeChecking()) {\n t1 = new Term.LtD(t1, t2);\n } else {\n reportTypeErrorN2(\"'<'\");\n }\n } else if (tt == '>') {\n Term t2 = parseBitwiseOr(true);\n if (t1.isD() && t2.isN() || t1.isN() && t2.isD()) {\n t1 = new Term.GtD(t1, t2);\n } else if (t1.isI() && t2.isI()) {\n t1 = new Term.GtI(t1, t2);\n } else if (!isTypeChecking()) {\n t1 = new Term.GtD(t1, t2);\n } else {\n reportTypeErrorN2(\"'>'\");\n }\n } else if (isSpecial(\"==\")) {\n Term t2 = parseBitwiseOr(true);\n if (t1.isD() && t2.isN() || t1.isN() && t2.isD()) {\n t1 = new Term.EqD(t1, t2);\n } else if (t1.isI() && t2.isI()) {\n t1 = new Term.EqI(t1, t2);\n } else if (!isTypeChecking()) {\n t1 = new Term.EqD(t1, t2);\n } else {\n reportTypeErrorN2(\"'=='\");\n }\n } else if (isSpecial(\"!=\")) {\n Term t2 = parseBitwiseOr(true);\n if (t1.isD() && t2.isN() || t1.isN() && t2.isD()) {\n t1 = new Term.NEqD(t1, t2);\n } else if (t1.isI() && t2.isI()) {\n t1 = new Term.NEqI(t1, t2);\n } else if (!isTypeChecking()) {\n t1 = new Term.NEqD(t1, t2);\n } else {\n reportTypeErrorN2(\"'!='\");\n }\n } else if (isSpecial(\"<=\")) {\n Term t2 = parseBitwiseOr(true);\n if (t1.isD() && t2.isN() || t1.isN() && t2.isD()) {\n t1 = new Term.LeD(t1, t2);\n } else if (t1.isI() && t2.isI()) {\n t1 = new Term.LeI(t1, t2);\n } else if (!isTypeChecking()) {\n t1 = new Term.LeD(t1, t2);\n } else {\n reportTypeErrorN2(\"'<='\");\n }\n } else if (isSpecial(\">=\")) {\n Term t2 = parseBitwiseOr(true);\n if (t1.isD() && t2.isN() || t1.isN() && t2.isD()) {\n t1 = new Term.GeD(t1, t2);\n } else if (t1.isI() && t2.isI()) {\n t1 = new Term.GeI(t1, t2);\n } else if (!isTypeChecking()) {\n t1 = new Term.GeD(t1, t2);\n } else {\n reportTypeErrorN2(\"'>='\");\n }\n } else {\n _tokenizer.pushBack();\n break;\n }\n }\n return t1;\n }", "public NumericConstantExpression(String numericConstant) {\r\n this.numconst = numericConstant;\r\n }", "public static Value makeAnyStrNumeric() {\n return theStrNumeric;\n }", "private Term parseUnary(final boolean required) throws ParseException {\n Term t1 = null;\n final int tt = _tokenizer.next();\n if (tt == '+') {\n Term t2 = parseUnary(true);\n if (t2.isI() || t2.isD()) {\n t1 = t2;\n } else if (!isTypeChecking()) {\n t1 = t2;\n } else {\n reportTypeErrorN1(\"'+'\");\n }\n } else if (tt == '-') {\n Term t2 = parseUnary(true);\n if (t2 instanceof Term.ConstI) {\n t1 = new Term.ConstI(-((Term.ConstI) t2).getValue());\n } else if (t2 instanceof Term.ConstD) {\n t1 = new Term.ConstD(-((Term.ConstD) t2).getValue());\n } else if (t2.isI()) {\n t1 = new Term.Neg(Term.TYPE_I, t2);\n } else if (t2.isD()) {\n t1 = new Term.Neg(Term.TYPE_D, t2);\n } else if (!isTypeChecking()) {\n t1 = new Term.Neg(Term.TYPE_I, t2);\n } else {\n reportTypeErrorN1(\"'-'\");\n }\n } else if (tt == '!' || isKeyword(\"not\")) {\n Term t2 = parseUnary(true);\n if (t2.isB() || !isTypeChecking()) {\n t1 = new Term.NotB(t2);\n } else {\n reportTypeErrorB1(\"'!' or 'not'\");\n }\n } else if (tt == '~') {\n Term t2 = parseUnary(true);\n if (t2.isI() || !isTypeChecking()) {\n t1 = new Term.NotI(t2);\n } else {\n reportTypeErrorI1(\"'~'\");\n }\n } else {\n _tokenizer.pushBack();\n t1 = parsePostfix(required);\n }\n return t1;\n }", "public boolean isNumeric() {\n return this.isInteger() || this.isDecimal() || this.isDouble();\n }", "Expression() { }", "private Double parseNumber(String num) {\r\n\t\tDouble tempnum = (double) 0;\r\n\t\tint opos; //operator position\r\n\t\tif ((num == null) || (num.length() < 1) ) {\r\n\t\t\treturn tempnum;\r\n\t\t}\r\n\r\n\t\t//replace constants with their value\r\n\t\twhile (num.indexOf(\"P\") >= 0) { //PI constant\r\n\t\t\tString[] numparts = StringUtil.splitData(num, 'P', 2);\r\n\t\t\tnum = numparts[0]+String.valueOf(Math.PI)+numparts[1];\r\n\t\t}\r\n\t\twhile (num.indexOf(\"X\") >= 0) { //e constant\r\n\t\t\tString[] numparts = StringUtil.splitData(num, 'X', 2);\r\n\t\t\tnum = numparts[0]+String.valueOf(Math.E)+numparts[1];\r\n\t\t}\r\n\r\n\t\tif (num.indexOf(\"^\") >= 0) { //allows to specify powers (e.g.: 2^10)\r\n\t\t\tString[] numparts = StringUtil.splitData(num, '^', 2);\r\n\t\t\ttempnum = Math.pow(parseNumber(numparts[0]), parseNumber(numparts[1]));\r\n\t\t}\r\n\t\telse if ( ((opos = num.indexOf(\"-\")) > 0) && (num.charAt(opos-1) != 'E') && (num.charAt(opos-1) != '^')) {\r\n\t\t\tString[] numparts = StringUtil.splitData(num, '-', 2);\r\n\t\t\ttempnum = parseNumber(numparts[0]) - parseNumber(numparts[1]);\r\n\t\t}\r\n\t\telse if ( ((opos = num.indexOf(\"+\")) > 0) && (num.charAt(opos-1) != 'E') && (num.charAt(opos-1) != '^')) {\r\n\t\t\tString[] numparts = StringUtil.splitData(num, '+', 2);\r\n\t\t\ttempnum = parseNumber(numparts[0]) + parseNumber(numparts[1]);\r\n\t\t}\r\n\t\telse if (num.indexOf(\"/\") >= 0) {\r\n\t\t\tString[] numparts = StringUtil.splitData(num, '/', 2);\r\n\t\t\ttempnum = parseNumber(numparts[0]) / parseNumber(numparts[1]);\r\n\t\t}\r\n\t\telse if (num.indexOf(\"*\") >= 0) {\r\n\t\t\tString[] numparts = StringUtil.splitData(num, '*', 2);\r\n\t\t\ttempnum = parseNumber(numparts[0]) * parseNumber(numparts[1]);\r\n\t\t}\r\n\t\telse {\r\n\t\t\ttempnum = Double.valueOf(num);\r\n\t\t}\r\n\r\n\t\treturn tempnum;\r\n\t}", "private Term parseMul(final boolean required) throws ParseException {\n Term t1 = parseUnary(required);\n while (t1 != null) {\n int tt = _tokenizer.next();\n if (tt == '*') {\n Term t2 = parseUnary(true);\n if (t1.isD() && t2.isN() || t1.isN() && t2.isD()) {\n t1 = new Term.Mul(Term.TYPE_D, t1, t2);\n } else if (t1.isI() && t2.isI()) {\n t1 = new Term.Mul(Term.TYPE_I, t1, t2);\n } else if (!isTypeChecking()) {\n t1 = new Term.Mul(t1.isD() || t2.isD() ? Term.TYPE_D : Term.TYPE_I, t1, t2);\n } else {\n reportTypeErrorN2(\"'*'\");\n }\n } else if (tt == '/') {\n Term t2 = parseUnary(true);\n if (t1.isD() && t2.isN() || t1.isN() && t2.isD()) {\n t1 = new Term.Div(Term.TYPE_D, t1, t2);\n } else if (t1.isI() && t2.isI()) {\n t1 = new Term.Div(Term.TYPE_I, t1, t2);\n } else if (!isTypeChecking()) {\n t1 = new Term.Div(t1.isD() || t2.isD() ? Term.TYPE_D : Term.TYPE_I, t1, t2);\n } else {\n reportTypeErrorN2(\"'/'\");\n }\n } else if (tt == '%') {\n Term t2 = parseUnary(true);\n if (t1.isD() && t2.isN() || t1.isN() && t2.isD()) {\n t1 = new Term.Mod(Term.TYPE_D, t1, t2);\n } else if (t1.isI() && t2.isI()) {\n t1 = new Term.Mod(Term.TYPE_I, t1, t2);\n } else if (!isTypeChecking()) {\n t1 = new Term.Mod(t1.isD() || t2.isD() ? Term.TYPE_D : Term.TYPE_I, t1, t2);\n } else {\n reportTypeErrorN2(\"'%'\");\n }\n } else {\n _tokenizer.pushBack();\n break;\n }\n }\n return t1;\n }", "public Object visitConditionalExpression(GNode n) {\n if (dostring) {\n Object a = dispatch(n.getGeneric(0));\n Object b = dispatch(n.getGeneric(1));\n Object c = dispatch(n.getGeneric(2));\n \n if (a instanceof Long) {\n return (! ((Long) a).equals(new Long(0))) ? b : c;\n }\n else {\n return parens(a) + \" ? \" + parens(b) + \" : \" + parens(c);\n }\n }\n else {\n BDD a = ensureBDD(dispatch(n.getGeneric(0)));\n BDD b = ensureBDD(dispatch(n.getGeneric(1)));\n BDD c = ensureBDD(dispatch(n.getGeneric(2)));\n BDD ab, na, nac, bdd;\n \n //implement with a & b | !a & c\n ab = a.and(b);\n b.free();\n na = a.not();\n a.free();\n nac = na.and(c);\n c.free();\n na.free();\n bdd = ab.or(nac);\n nac.free();\n ab.free();\n \n return bdd;\n }\n }", "public boolean isNumeric() {\n\t\treturn numeric;\n\t}", "ExpressionValidationOutcome expressionIsValid(String expression, ParseType parseType);", "Expression getExp();", "public final Object expression() throws RecognitionException {\n Object result = null;\n\n\n CommonTree INTEGER15=null;\n CommonTree BOOL16=null;\n CommonTree IDENT17=null;\n Object op1 =null;\n\n Object op2 =null;\n\n Object call18 =null;\n\n\n try {\n // /v/filer4b/v38q001/rjnevels/Desktop/Antlr Eclipse Test/workspace3/BFlat/src/a/b/c/EvaluatorWalker.g:322:3: ( ( ^( '+' op1= expression op2= expression ) | ^( '-' op1= expression op2= expression ) | ^( '*' op1= expression op2= expression ) | ^( '/' op1= expression op2= expression ) | ^( '%' op1= expression op2= expression ) | ^( ARITH_NEGATION op1= expression ) | ^( '||' op1= expression op2= expression ) | ^( '&&' op1= expression op2= expression ) | ^( '==' op1= expression op2= expression ) | ^( '!=' op1= expression op2= expression ) | ^( '>=' op1= expression op2= expression ) | ^( '<=' op1= expression op2= expression ) | ^( '>' op1= expression op2= expression ) | ^( '<' op1= expression op2= expression ) | ^( BOOL_NEGATION op1= expression ) | INTEGER | BOOL | IDENT | call ) )\n // /v/filer4b/v38q001/rjnevels/Desktop/Antlr Eclipse Test/workspace3/BFlat/src/a/b/c/EvaluatorWalker.g:323:3: ( ^( '+' op1= expression op2= expression ) | ^( '-' op1= expression op2= expression ) | ^( '*' op1= expression op2= expression ) | ^( '/' op1= expression op2= expression ) | ^( '%' op1= expression op2= expression ) | ^( ARITH_NEGATION op1= expression ) | ^( '||' op1= expression op2= expression ) | ^( '&&' op1= expression op2= expression ) | ^( '==' op1= expression op2= expression ) | ^( '!=' op1= expression op2= expression ) | ^( '>=' op1= expression op2= expression ) | ^( '<=' op1= expression op2= expression ) | ^( '>' op1= expression op2= expression ) | ^( '<' op1= expression op2= expression ) | ^( BOOL_NEGATION op1= expression ) | INTEGER | BOOL | IDENT | call )\n {\n OperationExecuter oe = null;\n\n // /v/filer4b/v38q001/rjnevels/Desktop/Antlr Eclipse Test/workspace3/BFlat/src/a/b/c/EvaluatorWalker.g:324:3: ( ^( '+' op1= expression op2= expression ) | ^( '-' op1= expression op2= expression ) | ^( '*' op1= expression op2= expression ) | ^( '/' op1= expression op2= expression ) | ^( '%' op1= expression op2= expression ) | ^( ARITH_NEGATION op1= expression ) | ^( '||' op1= expression op2= expression ) | ^( '&&' op1= expression op2= expression ) | ^( '==' op1= expression op2= expression ) | ^( '!=' op1= expression op2= expression ) | ^( '>=' op1= expression op2= expression ) | ^( '<=' op1= expression op2= expression ) | ^( '>' op1= expression op2= expression ) | ^( '<' op1= expression op2= expression ) | ^( BOOL_NEGATION op1= expression ) | INTEGER | BOOL | IDENT | call )\n int alt14=19;\n switch ( input.LA(1) ) {\n case 32:\n {\n alt14=1;\n }\n break;\n case 34:\n {\n alt14=2;\n }\n break;\n case 31:\n {\n alt14=3;\n }\n break;\n case 35:\n {\n alt14=4;\n }\n break;\n case 29:\n {\n alt14=5;\n }\n break;\n case ARITH_NEGATION:\n {\n alt14=6;\n }\n break;\n case 50:\n {\n alt14=7;\n }\n break;\n case 30:\n {\n alt14=8;\n }\n break;\n case 39:\n {\n alt14=9;\n }\n break;\n case 28:\n {\n alt14=10;\n }\n break;\n case 41:\n {\n alt14=11;\n }\n break;\n case 37:\n {\n alt14=12;\n }\n break;\n case 40:\n {\n alt14=13;\n }\n break;\n case 36:\n {\n alt14=14;\n }\n break;\n case BOOL_NEGATION:\n {\n alt14=15;\n }\n break;\n case INTEGER:\n {\n alt14=16;\n }\n break;\n case BOOL:\n {\n alt14=17;\n }\n break;\n case IDENT:\n {\n alt14=18;\n }\n break;\n case CALL:\n {\n alt14=19;\n }\n break;\n default:\n NoViableAltException nvae =\n new NoViableAltException(\"\", 14, 0, input);\n\n throw nvae;\n\n }\n\n switch (alt14) {\n case 1 :\n // /v/filer4b/v38q001/rjnevels/Desktop/Antlr Eclipse Test/workspace3/BFlat/src/a/b/c/EvaluatorWalker.g:325:4: ^( '+' op1= expression op2= expression )\n {\n match(input,32,FOLLOW_32_in_expression564); \n\n match(input, Token.DOWN, null); \n pushFollow(FOLLOW_expression_in_expression570);\n op1=expression();\n\n state._fsp--;\n\n\n pushFollow(FOLLOW_expression_in_expression576);\n op2=expression();\n\n state._fsp--;\n\n\n match(input, Token.UP, null); \n\n\n oe = new OperationExecuter(op1,op2,\"+\"); \n\n }\n break;\n case 2 :\n // /v/filer4b/v38q001/rjnevels/Desktop/Antlr Eclipse Test/workspace3/BFlat/src/a/b/c/EvaluatorWalker.g:326:6: ^( '-' op1= expression op2= expression )\n {\n match(input,34,FOLLOW_34_in_expression590); \n\n match(input, Token.DOWN, null); \n pushFollow(FOLLOW_expression_in_expression596);\n op1=expression();\n\n state._fsp--;\n\n\n pushFollow(FOLLOW_expression_in_expression602);\n op2=expression();\n\n state._fsp--;\n\n\n match(input, Token.UP, null); \n\n\n oe = new OperationExecuter(op1,op2,\"-\"); \n\n }\n break;\n case 3 :\n // /v/filer4b/v38q001/rjnevels/Desktop/Antlr Eclipse Test/workspace3/BFlat/src/a/b/c/EvaluatorWalker.g:327:6: ^( '*' op1= expression op2= expression )\n {\n match(input,31,FOLLOW_31_in_expression614); \n\n match(input, Token.DOWN, null); \n pushFollow(FOLLOW_expression_in_expression620);\n op1=expression();\n\n state._fsp--;\n\n\n pushFollow(FOLLOW_expression_in_expression626);\n op2=expression();\n\n state._fsp--;\n\n\n match(input, Token.UP, null); \n\n\n oe = new OperationExecuter(op1,op2,\"*\"); \n\n }\n break;\n case 4 :\n // /v/filer4b/v38q001/rjnevels/Desktop/Antlr Eclipse Test/workspace3/BFlat/src/a/b/c/EvaluatorWalker.g:328:6: ^( '/' op1= expression op2= expression )\n {\n match(input,35,FOLLOW_35_in_expression638); \n\n match(input, Token.DOWN, null); \n pushFollow(FOLLOW_expression_in_expression644);\n op1=expression();\n\n state._fsp--;\n\n\n pushFollow(FOLLOW_expression_in_expression650);\n op2=expression();\n\n state._fsp--;\n\n\n match(input, Token.UP, null); \n\n\n oe = new OperationExecuter(op1,op2,\"/\"); \n\n }\n break;\n case 5 :\n // /v/filer4b/v38q001/rjnevels/Desktop/Antlr Eclipse Test/workspace3/BFlat/src/a/b/c/EvaluatorWalker.g:329:6: ^( '%' op1= expression op2= expression )\n {\n match(input,29,FOLLOW_29_in_expression662); \n\n match(input, Token.DOWN, null); \n pushFollow(FOLLOW_expression_in_expression668);\n op1=expression();\n\n state._fsp--;\n\n\n pushFollow(FOLLOW_expression_in_expression674);\n op2=expression();\n\n state._fsp--;\n\n\n match(input, Token.UP, null); \n\n\n oe = new OperationExecuter(op1,op2,\"%\"); \n\n }\n break;\n case 6 :\n // /v/filer4b/v38q001/rjnevels/Desktop/Antlr Eclipse Test/workspace3/BFlat/src/a/b/c/EvaluatorWalker.g:330:6: ^( ARITH_NEGATION op1= expression )\n {\n match(input,ARITH_NEGATION,FOLLOW_ARITH_NEGATION_in_expression686); \n\n match(input, Token.DOWN, null); \n pushFollow(FOLLOW_expression_in_expression692);\n op1=expression();\n\n state._fsp--;\n\n\n match(input, Token.UP, null); \n\n\n oe = new OperationExecuter(op1,null,\"ARITH_NEGATION\"); \n\n }\n break;\n case 7 :\n // /v/filer4b/v38q001/rjnevels/Desktop/Antlr Eclipse Test/workspace3/BFlat/src/a/b/c/EvaluatorWalker.g:331:6: ^( '||' op1= expression op2= expression )\n {\n match(input,50,FOLLOW_50_in_expression710); \n\n match(input, Token.DOWN, null); \n pushFollow(FOLLOW_expression_in_expression716);\n op1=expression();\n\n state._fsp--;\n\n\n pushFollow(FOLLOW_expression_in_expression722);\n op2=expression();\n\n state._fsp--;\n\n\n match(input, Token.UP, null); \n\n\n oe = new OperationExecuter(op1,op2,\"||\"); \n\n }\n break;\n case 8 :\n // /v/filer4b/v38q001/rjnevels/Desktop/Antlr Eclipse Test/workspace3/BFlat/src/a/b/c/EvaluatorWalker.g:332:6: ^( '&&' op1= expression op2= expression )\n {\n match(input,30,FOLLOW_30_in_expression733); \n\n match(input, Token.DOWN, null); \n pushFollow(FOLLOW_expression_in_expression739);\n op1=expression();\n\n state._fsp--;\n\n\n pushFollow(FOLLOW_expression_in_expression745);\n op2=expression();\n\n state._fsp--;\n\n\n match(input, Token.UP, null); \n\n\n oe = new OperationExecuter(op1,op2,\"&&\"); \n\n }\n break;\n case 9 :\n // /v/filer4b/v38q001/rjnevels/Desktop/Antlr Eclipse Test/workspace3/BFlat/src/a/b/c/EvaluatorWalker.g:333:6: ^( '==' op1= expression op2= expression )\n {\n match(input,39,FOLLOW_39_in_expression756); \n\n match(input, Token.DOWN, null); \n pushFollow(FOLLOW_expression_in_expression762);\n op1=expression();\n\n state._fsp--;\n\n\n pushFollow(FOLLOW_expression_in_expression768);\n op2=expression();\n\n state._fsp--;\n\n\n match(input, Token.UP, null); \n\n\n oe = new OperationExecuter(op1,op2,\"==\"); \n\n }\n break;\n case 10 :\n // /v/filer4b/v38q001/rjnevels/Desktop/Antlr Eclipse Test/workspace3/BFlat/src/a/b/c/EvaluatorWalker.g:334:6: ^( '!=' op1= expression op2= expression )\n {\n match(input,28,FOLLOW_28_in_expression779); \n\n match(input, Token.DOWN, null); \n pushFollow(FOLLOW_expression_in_expression785);\n op1=expression();\n\n state._fsp--;\n\n\n pushFollow(FOLLOW_expression_in_expression791);\n op2=expression();\n\n state._fsp--;\n\n\n match(input, Token.UP, null); \n\n\n oe = new OperationExecuter(op1,op2,\"!=\"); \n\n }\n break;\n case 11 :\n // /v/filer4b/v38q001/rjnevels/Desktop/Antlr Eclipse Test/workspace3/BFlat/src/a/b/c/EvaluatorWalker.g:335:6: ^( '>=' op1= expression op2= expression )\n {\n match(input,41,FOLLOW_41_in_expression802); \n\n match(input, Token.DOWN, null); \n pushFollow(FOLLOW_expression_in_expression808);\n op1=expression();\n\n state._fsp--;\n\n\n pushFollow(FOLLOW_expression_in_expression814);\n op2=expression();\n\n state._fsp--;\n\n\n match(input, Token.UP, null); \n\n\n oe = new OperationExecuter(op1,op2,\">=\"); \n\n }\n break;\n case 12 :\n // /v/filer4b/v38q001/rjnevels/Desktop/Antlr Eclipse Test/workspace3/BFlat/src/a/b/c/EvaluatorWalker.g:336:6: ^( '<=' op1= expression op2= expression )\n {\n match(input,37,FOLLOW_37_in_expression825); \n\n match(input, Token.DOWN, null); \n pushFollow(FOLLOW_expression_in_expression831);\n op1=expression();\n\n state._fsp--;\n\n\n pushFollow(FOLLOW_expression_in_expression837);\n op2=expression();\n\n state._fsp--;\n\n\n match(input, Token.UP, null); \n\n\n oe = new OperationExecuter(op1,op2,\"<=\"); \n\n }\n break;\n case 13 :\n // /v/filer4b/v38q001/rjnevels/Desktop/Antlr Eclipse Test/workspace3/BFlat/src/a/b/c/EvaluatorWalker.g:337:6: ^( '>' op1= expression op2= expression )\n {\n match(input,40,FOLLOW_40_in_expression848); \n\n match(input, Token.DOWN, null); \n pushFollow(FOLLOW_expression_in_expression854);\n op1=expression();\n\n state._fsp--;\n\n\n pushFollow(FOLLOW_expression_in_expression860);\n op2=expression();\n\n state._fsp--;\n\n\n match(input, Token.UP, null); \n\n\n oe = new OperationExecuter(op1,op2,\">\"); \n\n }\n break;\n case 14 :\n // /v/filer4b/v38q001/rjnevels/Desktop/Antlr Eclipse Test/workspace3/BFlat/src/a/b/c/EvaluatorWalker.g:338:6: ^( '<' op1= expression op2= expression )\n {\n match(input,36,FOLLOW_36_in_expression872); \n\n match(input, Token.DOWN, null); \n pushFollow(FOLLOW_expression_in_expression878);\n op1=expression();\n\n state._fsp--;\n\n\n pushFollow(FOLLOW_expression_in_expression884);\n op2=expression();\n\n state._fsp--;\n\n\n match(input, Token.UP, null); \n\n\n oe = new OperationExecuter(op1,op2,\"<\"); \n\n }\n break;\n case 15 :\n // /v/filer4b/v38q001/rjnevels/Desktop/Antlr Eclipse Test/workspace3/BFlat/src/a/b/c/EvaluatorWalker.g:339:6: ^( BOOL_NEGATION op1= expression )\n {\n match(input,BOOL_NEGATION,FOLLOW_BOOL_NEGATION_in_expression896); \n\n match(input, Token.DOWN, null); \n pushFollow(FOLLOW_expression_in_expression902);\n op1=expression();\n\n state._fsp--;\n\n\n match(input, Token.UP, null); \n\n\n oe = new OperationExecuter(op1,null,\"BOOL_NEGATION\"); \n\n }\n break;\n case 16 :\n // /v/filer4b/v38q001/rjnevels/Desktop/Antlr Eclipse Test/workspace3/BFlat/src/a/b/c/EvaluatorWalker.g:340:6: INTEGER\n {\n INTEGER15=(CommonTree)match(input,INTEGER,FOLLOW_INTEGER_in_expression920); \n\n oe = new OperationExecuter(localScope, (INTEGER15!=null?INTEGER15.getText():null),\"INTEGER\"); \n\n }\n break;\n case 17 :\n // /v/filer4b/v38q001/rjnevels/Desktop/Antlr Eclipse Test/workspace3/BFlat/src/a/b/c/EvaluatorWalker.g:341:6: BOOL\n {\n BOOL16=(CommonTree)match(input,BOOL,FOLLOW_BOOL_in_expression964); \n\n oe = new OperationExecuter(localScope, (BOOL16!=null?BOOL16.getText():null),\"BOOL\"); \n\n }\n break;\n case 18 :\n // /v/filer4b/v38q001/rjnevels/Desktop/Antlr Eclipse Test/workspace3/BFlat/src/a/b/c/EvaluatorWalker.g:342:6: IDENT\n {\n IDENT17=(CommonTree)match(input,IDENT,FOLLOW_IDENT_in_expression1010); \n\n oe = new OperationExecuter(localScope, (IDENT17!=null?IDENT17.getText():null),\"IDENT\"); \n\n }\n break;\n case 19 :\n // /v/filer4b/v38q001/rjnevels/Desktop/Antlr Eclipse Test/workspace3/BFlat/src/a/b/c/EvaluatorWalker.g:343:6: call\n {\n pushFollow(FOLLOW_call_in_expression1055);\n call18=call();\n\n state._fsp--;\n\n\n result = call18;\n\n }\n break;\n\n }\n\n\n if (oe != null) result = oe.doOperation();\n if (result == null)\n BFlatGUI.debugPrint(0, \"result of expression is null!\");\n \n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n\n finally {\n \t// do for sure before leaving\n }\n return result;\n }", "public boolean validateExp(String expression){\n if(expression.endsWith(\"*\")||\n expression.endsWith(\"+\")||\n expression.endsWith(\"-\")||\n expression.endsWith(\"/\")){\n calculationResult.onExpressionChange(\"Invalid Input\",false);\n return false;\n }\n else if(expression.equals(\"\")){\n calculationResult.onExpressionChange(\"Invalid Input\",false);\n return false;\n }\n else if(expression.length()>16){\n calculationResult.onExpressionChange(\"Invalid Input\",false);\n return false;\n }\n else{\n return true;\n }\n }", "public final void mEXPONENT() throws RecognitionException {\r\n try {\r\n if (this.input.LA(1) == 'E' || this.input.LA(1) == 'e') {\r\n this.input.consume();\r\n\r\n } else {\r\n final MismatchedSetException mse = new MismatchedSetException(null, this.input);\r\n this.recover(mse);\r\n throw mse;\r\n }\r\n // /Users/Marco/Desktop/Tesi Davide/Antlr-doc/SparqlMarco.g:83:22: ( '+' | '-' )?\r\n int alt18 = 2;\r\n final int LA18_0 = this.input.LA(1);\r\n if (LA18_0 == '+' || LA18_0 == '-') {\r\n alt18 = 1;\r\n }\r\n switch (alt18) {\r\n case 1:\r\n // /Users/Marco/Desktop/Tesi Davide/Antlr-doc/SparqlMarco.g:\r\n {\r\n if (this.input.LA(1) == '+' || this.input.LA(1) == '-') {\r\n this.input.consume();\r\n\r\n } else {\r\n final MismatchedSetException mse = new MismatchedSetException(null,\r\n this.input);\r\n this.recover(mse);\r\n throw mse;\r\n }\r\n\r\n }\r\n break;\r\n\r\n }\r\n // /Users/Marco/Desktop/Tesi Davide/Antlr-doc/SparqlMarco.g:83:33: ( '0' .. '9'\r\n // )+\r\n int cnt19 = 0;\r\n loop19: do {\r\n int alt19 = 2;\r\n final int LA19_0 = this.input.LA(1);\r\n\r\n if (LA19_0 >= '0' && LA19_0 <= '9') {\r\n alt19 = 1;\r\n }\r\n\r\n switch (alt19) {\r\n case 1:\r\n // /Users/Marco/Desktop/Tesi Davide/Antlr-doc/SparqlMarco.g:83:34: '0'\r\n // .. '9'\r\n {\r\n this.matchRange('0', '9');\r\n\r\n }\r\n break;\r\n\r\n default:\r\n if (cnt19 >= 1) {\r\n break loop19;\r\n }\r\n final EarlyExitException eee = new EarlyExitException(19, this.input);\r\n throw eee;\r\n }\r\n cnt19++;\r\n } while (true);\r\n\r\n } finally {\r\n }\r\n }", "private Object eval(RelExpr expr) {\n Object res = eval(expr.getExpr().get(0));\n\n if (expr.getExpr().size() == 2) {\n Object res2 = eval(expr.getExpr().get(1));\n String opt = expr.getOpt();\n\n if (\"==\".equals(opt)) {\n if (res instanceof Double && res2 instanceof Double) {\n res = ((Double) res).equals(res2);\n } else if (res instanceof String && res2 instanceof String) {\n res = ((String) res).equals(res2);\n } else if (res instanceof Boolean && res2 instanceof Boolean) {\n res = ((Boolean) res).equals(res2);\n } else {\n throw new RaydenScriptException(\"Expression error: RelExpr error\");\n }\n } else if (\"!=\".equals(opt)) {\n if (res instanceof Double && res2 instanceof Double) {\n res = !((Double) res).equals(res2);\n } else if (res instanceof String && res2 instanceof String) {\n res = !((String) res).equals(res2);\n } else if (res instanceof Boolean && res2 instanceof Boolean) {\n res = !((Boolean) res).equals(res2);\n } else {\n throw new RaydenScriptException(\"Expression error: RelExpr error\");\n }\n } else if (\"<\".equals(opt)) {\n if (res instanceof Double && res2 instanceof Double) {\n res = (Double) res < (Double) res2;\n } else {\n throw new RaydenScriptException(\"Expression error: RelExpr error\");\n }\n } else if (\"<=\".equals(opt)) {\n if (res instanceof Double && res2 instanceof Double) {\n res = (Double) res <= (Double) res2;\n } else {\n throw new RaydenScriptException(\"Expression error: RelExpr error\");\n }\n } else if (\">\".equals(opt)) {\n if (res instanceof Double && res2 instanceof Double) {\n res = (Double) res > (Double) res2;\n } else {\n throw new RaydenScriptException(\"Expression error: RelExpr error\");\n }\n } else if (\">=\".equals(opt)) {\n if (res instanceof Double && res2 instanceof Double) {\n res = (Double) res >= (Double) res2;\n } else {\n throw new RaydenScriptException(\"Expression error: RelExpr error\");\n }\n } else {\n throw new RaydenScriptException(\"Expression error: Invalid operator '\" + opt + \"'.\");\n }\n }\n\n return res;\n }", "public IsEmptyOperationEvaluator(boolean negate) {\r\n this.negate = negate;\r\n }", "public NumberExpression(String value) {\n this(new BigDecimal(value));\n }", "@Override\n public String getParsedGrammar() {\n return \"<arithmetic_expression> -> id\\n\";\n }", "Expr expr();", "ExpOperand createExpOperand();", "DExpression getExpression();", "boolean isNumeric() {\r\n\t\treturn isNumeric;\r\n\t}", "private double processExpression() throws ParsingException {\n double result = processTerm();\n\n while (true) {\n if (tryCaptureChar('+')) {\n result += processTerm();\n } else if (tryCaptureChar('-')) {\n result -= processTerm();\n } else {\n break;\n }\n }\n return result;\n }", "public static Value makeAnyStrNotNumeric() {\n return theStrNotNumeric;\n }", "public final void expression() throws RecognitionException {\r\n try {\r\n // D:\\\\entornotrabajo\\\\workspace-sgo\\\\persistance\\\\src\\\\main\\\\java\\\\es\\\\caser\\\\persistance\\\\sql\\\\antlr\\\\SQLGrammar.g:174:2: ( ( EQUAL ) | ( LT ) | ( GT ) | ( LTGT ) | ( AND ) | ( OR ) )\r\n int alt52=6;\r\n switch ( input.LA(1) ) {\r\n case EQUAL:\r\n {\r\n alt52=1;\r\n }\r\n break;\r\n case LT:\r\n {\r\n alt52=2;\r\n }\r\n break;\r\n case GT:\r\n {\r\n alt52=3;\r\n }\r\n break;\r\n case LTGT:\r\n {\r\n alt52=4;\r\n }\r\n break;\r\n case AND:\r\n {\r\n alt52=5;\r\n }\r\n break;\r\n case OR:\r\n {\r\n alt52=6;\r\n }\r\n break;\r\n default:\r\n NoViableAltException nvae =\r\n new NoViableAltException(\"\", 52, 0, input);\r\n\r\n throw nvae;\r\n }\r\n\r\n switch (alt52) {\r\n case 1 :\r\n // D:\\\\entornotrabajo\\\\workspace-sgo\\\\persistance\\\\src\\\\main\\\\java\\\\es\\\\caser\\\\persistance\\\\sql\\\\antlr\\\\SQLGrammar.g:174:4: ( EQUAL )\r\n {\r\n // D:\\\\entornotrabajo\\\\workspace-sgo\\\\persistance\\\\src\\\\main\\\\java\\\\es\\\\caser\\\\persistance\\\\sql\\\\antlr\\\\SQLGrammar.g:174:4: ( EQUAL )\r\n // D:\\\\entornotrabajo\\\\workspace-sgo\\\\persistance\\\\src\\\\main\\\\java\\\\es\\\\caser\\\\persistance\\\\sql\\\\antlr\\\\SQLGrammar.g:174:5: EQUAL\r\n {\r\n match(input,EQUAL,FOLLOW_EQUAL_in_expression1015); \r\n out(\"=\");\r\n\r\n }\r\n\r\n\r\n }\r\n break;\r\n case 2 :\r\n // D:\\\\entornotrabajo\\\\workspace-sgo\\\\persistance\\\\src\\\\main\\\\java\\\\es\\\\caser\\\\persistance\\\\sql\\\\antlr\\\\SQLGrammar.g:175:4: ( LT )\r\n {\r\n // D:\\\\entornotrabajo\\\\workspace-sgo\\\\persistance\\\\src\\\\main\\\\java\\\\es\\\\caser\\\\persistance\\\\sql\\\\antlr\\\\SQLGrammar.g:175:4: ( LT )\r\n // D:\\\\entornotrabajo\\\\workspace-sgo\\\\persistance\\\\src\\\\main\\\\java\\\\es\\\\caser\\\\persistance\\\\sql\\\\antlr\\\\SQLGrammar.g:175:5: LT\r\n {\r\n match(input,LT,FOLLOW_LT_in_expression1024); \r\n out(\"<\");\r\n\r\n }\r\n\r\n\r\n }\r\n break;\r\n case 3 :\r\n // D:\\\\entornotrabajo\\\\workspace-sgo\\\\persistance\\\\src\\\\main\\\\java\\\\es\\\\caser\\\\persistance\\\\sql\\\\antlr\\\\SQLGrammar.g:176:4: ( GT )\r\n {\r\n // D:\\\\entornotrabajo\\\\workspace-sgo\\\\persistance\\\\src\\\\main\\\\java\\\\es\\\\caser\\\\persistance\\\\sql\\\\antlr\\\\SQLGrammar.g:176:4: ( GT )\r\n // D:\\\\entornotrabajo\\\\workspace-sgo\\\\persistance\\\\src\\\\main\\\\java\\\\es\\\\caser\\\\persistance\\\\sql\\\\antlr\\\\SQLGrammar.g:176:5: GT\r\n {\r\n match(input,GT,FOLLOW_GT_in_expression1033); \r\n out(\">\");\r\n\r\n }\r\n\r\n\r\n }\r\n break;\r\n case 4 :\r\n // D:\\\\entornotrabajo\\\\workspace-sgo\\\\persistance\\\\src\\\\main\\\\java\\\\es\\\\caser\\\\persistance\\\\sql\\\\antlr\\\\SQLGrammar.g:177:4: ( LTGT )\r\n {\r\n // D:\\\\entornotrabajo\\\\workspace-sgo\\\\persistance\\\\src\\\\main\\\\java\\\\es\\\\caser\\\\persistance\\\\sql\\\\antlr\\\\SQLGrammar.g:177:4: ( LTGT )\r\n // D:\\\\entornotrabajo\\\\workspace-sgo\\\\persistance\\\\src\\\\main\\\\java\\\\es\\\\caser\\\\persistance\\\\sql\\\\antlr\\\\SQLGrammar.g:177:5: LTGT\r\n {\r\n match(input,LTGT,FOLLOW_LTGT_in_expression1043); \r\n out(\"<>\");\r\n\r\n }\r\n\r\n\r\n }\r\n break;\r\n case 5 :\r\n // D:\\\\entornotrabajo\\\\workspace-sgo\\\\persistance\\\\src\\\\main\\\\java\\\\es\\\\caser\\\\persistance\\\\sql\\\\antlr\\\\SQLGrammar.g:178:4: ( AND )\r\n {\r\n // D:\\\\entornotrabajo\\\\workspace-sgo\\\\persistance\\\\src\\\\main\\\\java\\\\es\\\\caser\\\\persistance\\\\sql\\\\antlr\\\\SQLGrammar.g:178:4: ( AND )\r\n // D:\\\\entornotrabajo\\\\workspace-sgo\\\\persistance\\\\src\\\\main\\\\java\\\\es\\\\caser\\\\persistance\\\\sql\\\\antlr\\\\SQLGrammar.g:178:5: AND\r\n {\r\n match(input,AND,FOLLOW_AND_in_expression1052); \r\n out(\" AND \");\r\n\r\n }\r\n\r\n\r\n }\r\n break;\r\n case 6 :\r\n // D:\\\\entornotrabajo\\\\workspace-sgo\\\\persistance\\\\src\\\\main\\\\java\\\\es\\\\caser\\\\persistance\\\\sql\\\\antlr\\\\SQLGrammar.g:179:4: ( OR )\r\n {\r\n // D:\\\\entornotrabajo\\\\workspace-sgo\\\\persistance\\\\src\\\\main\\\\java\\\\es\\\\caser\\\\persistance\\\\sql\\\\antlr\\\\SQLGrammar.g:179:4: ( OR )\r\n // D:\\\\entornotrabajo\\\\workspace-sgo\\\\persistance\\\\src\\\\main\\\\java\\\\es\\\\caser\\\\persistance\\\\sql\\\\antlr\\\\SQLGrammar.g:179:5: OR\r\n {\r\n match(input,OR,FOLLOW_OR_in_expression1062); \r\n out(\" OR \");\r\n\r\n }\r\n\r\n\r\n }\r\n break;\r\n\r\n }\r\n }\r\n finally {\r\n }\r\n return ;\r\n }", "public static boolean numeric(Type p) {\n\t\tif (p == Type.Char || p == Type.Int || p == Type.Float) {\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "public void testGetNumericValue1() {\n ValueString vs = new ValueString(\"1000\");\n\n assertEquals(\"1000\", vs.getString());\n assertEquals(1000.0D, vs.getNumber(), 0.0D);\n assertNull(vs.getDate()); // will fail parsing\n assertEquals(false, vs.getBoolean());\n assertEquals(1000, vs.getInteger());\n assertEquals(BigDecimal.valueOf(1000), vs.getBigNumber());\n }", "private void evalExpression () {\n\tif (expr.type != null) {\n\t // Expression ist wie vorgesehen getypt\n\t if (expr.type instanceof M_Bool) {\n\t\t// Expression ist eine boolesche, also :\n\t\tdebug.addMsg(\"# expression to evaluate is boolean.\",3);\n\t\tSimulatorBoolEvaluator boolExpr = new SimulatorBoolEvaluator(process, expr);\n\t\tvalue = new SimulatorBoolValue ( boolExpr.giveResult() );\n\t }\n\t else if (expr.type instanceof M_Int) {\n\t\t// Expression ist eine zu Integer evaluierende, also :\n\t\tdebug.addMsg(\"# expression to evaluate is integer.\",3);\n\t\tSimulatorIntEvaluator intExpr = new SimulatorIntEvaluator(process, expr);\n\t\tvalue = new SimulatorIntValue ( intExpr.giveResult() ); \n\t }\n\t else {\n\t /* Platz für Exception, da Expression falsch getypt */\n\t debug.addMsg(\"!!! EXCEPTION !!! : Expression not properly typed \",0);\n\t debug.addMsg(\"!!! Class: SimulatorExprEvaluator \\n!!! Method : evalExpression\\n!!! Pos.:1 \",0);\n\t }\n\n\t} //--------- end if(1) ------------\n\telse {\n\t // Expression ist nicht getypt also :\n\t debug.addMsg(\"!!! EXCEPTION !!! : Expression not typed \",0);\n\t debug.addMsg(\"!!! Class: SimulatorExprEvaluator \\n!!! Method : evalExpression\\n!!! Pos.:2 \",0);\n\t} //-------- end else --------------\n }", "@Override\n\tpublic Object visit(ASTNum node, Object data)\n\t{\n\t\tFormulaSemantics semantics = (FormulaSemantics) data;\n\t\tif (node.jjtGetNumChildren() != 0)\n\t\t{\n\t\t\tFormulaSemanticsUtilities.setInvalid(semantics,\n\t\t\t\tgetInvalidCountReport(node, 0));\n\t\t\treturn semantics;\n\t\t}\n\t\ttry\n\t\t{\n\t\t\tDouble.parseDouble(node.getText());\n\t\t\tsemantics.setInfo(FormulaSemanticsUtilities.SEM_FORMAT,\n\t\t\t\tnew FormulaFormat(NUMBER_CLASS));\n\t\t}\n\t\tcatch (NumberFormatException e)\n\t\t{\n\t\t\tFormulaSemanticsUtilities.setInvalid(semantics, node.getClass()\n\t\t\t\t+ \" had invalid number: \" + node.getText());\n\t\t}\n\t\treturn semantics;\n\t}", "public Operand(String value) {\n if (value == null) throw new IllegalArgumentException(\"String with a value can't be empty\");\n this.value = Double.parseDouble(value);\n }", "public Object visitUnaryPlusExpression(GNode n) {\n nonboolean = true;\n \n return dispatch(n.getGeneric(0));\n }", "@Override\n\tpublic int evalTree() {\n\t\tint num;\n\t\tExpressionTree left, right;\n\t\t\n\t\ttry {\n\t\t\tnum = Integer.parseInt(EMPTY + this.getValue());\n\n\t\t\treturn num;\n\t\t}\n\n\t\tcatch (NumberFormatException n) {\n\t\t\tleft = new ExpressionTree(getLeft());\n\t\t\tright = new ExpressionTree(getRight());\n\t\t\tif(TIMES_SIGN.equals(this.getValue()))\n\t\t\t\treturn left.evalTree() * right.evalTree();\n\t\t\telse\n\t\t\t\treturn left.evalTree() + right.evalTree();\n\t\t}\n\t}", "public interface SimpleGrParserConstants {\n\n /** End of File. */\n int EOF = 0;\n /** RegularExpression Id. */\n int NumberLit = 6;\n /** RegularExpression Id. */\n int BooleanLit = 7;\n /** RegularExpression Id. */\n int StringLit = 8;\n /** RegularExpression Id. */\n int Null = 9;\n /** RegularExpression Id. */\n int And = 10;\n /** RegularExpression Id. */\n int Or = 11;\n /** RegularExpression Id. */\n int Not = 12;\n /** RegularExpression Id. */\n int Identifier = 13;\n /** RegularExpression Id. */\n int Equal = 14;\n /** RegularExpression Id. */\n int NotEqual = 15;\n /** RegularExpression Id. */\n int LessThan = 16;\n /** RegularExpression Id. */\n int LessEqualThan = 17;\n /** RegularExpression Id. */\n int GreaterThan = 18;\n /** RegularExpression Id. */\n int GreaterEqualThan = 19;\n /** RegularExpression Id. */\n int Plus = 20;\n /** RegularExpression Id. */\n int Minus = 21;\n /** RegularExpression Id. */\n int Div = 22;\n /** RegularExpression Id. */\n int Mult = 23;\n /** RegularExpression Id. */\n int Open = 24;\n /** RegularExpression Id. */\n int Close = 25;\n /** RegularExpression Id. */\n int Comma = 26;\n /** RegularExpression Id. */\n int Letter = 27;\n /** RegularExpression Id. */\n int Digit = 28;\n\n /** Lexical state. */\n int DEFAULT = 0;\n\n /** Literal token values. */\n String[] tokenImage = {\n \"<EOF>\",\n \"\\\" \\\"\",\n \"\\\"\\\\t\\\"\",\n \"\\\"\\\\n\\\"\",\n \"\\\"\\\\r\\\"\",\n \"\\\"\\\\f\\\"\",\n \"<NumberLit>\",\n \"<BooleanLit>\",\n \"<StringLit>\",\n \"\\\"NULL\\\"\",\n \"\\\"AND\\\"\",\n \"\\\"OR\\\"\",\n \"\\\"NOT\\\"\",\n \"<Identifier>\",\n \"\\\"==\\\"\",\n \"\\\"!=\\\"\",\n \"\\\"<\\\"\",\n \"\\\"<=\\\"\",\n \"\\\">\\\"\",\n \"\\\">=\\\"\",\n \"\\\"+\\\"\",\n \"\\\"-\\\"\",\n \"\\\"/\\\"\",\n \"\\\"*\\\"\",\n \"\\\"(\\\"\",\n \"\\\")\\\"\",\n \"\\\",\\\"\",\n \"<Letter>\",\n \"<Digit>\",\n };\n\n}", "@Test\n public void basicConditionTest() throws Exception {\n\n assertThat(getNode(\"1 == 2\", \"expr\").render(null), is((Object)false));\n assertThat(getNode(\"1 == 1\", \"expr\").render(null), is((Object)true));\n }", "public double parse(){\n token = lexer.getNextToken();\n\t\tdouble value = parseExpression();\n\t\tif (token.getType().equals(Token.Type.END)&&parenCount==0){\n\t\t\treturn value;\n\t\t}else{\n\t\t\treturn Double.NaN;\n\t\t}\n\t}", "public static EqQAtom parseExpression(String expression) throws ParseError {\n\t\tif (expression.contains(\"GEN\")) {\n\t\t\tthrow new ParseError(\"EqAtom: not an equality atom\");\n\t\t}\n\t\t\n\t\tint pos1 = expression.indexOf(\"=\");\n\t\tif (pos1==-1) {\n\t\t\tthrow new ParseError(\"EqAtom: not an equality atom\");\n\t\t\n\t\t}\n\t\tString var = expression.substring(0,pos1).trim();\n\t\tString ind = expression.substring(pos1+1).trim();\n\t\t\n\t\treturn new EqQAtom(ind, var);\n\t\t\n\t}", "public static NodeValue unaryPlus(NodeValue nv) {\n NumericType opType = classifyNumeric(\"unaryPlus\", nv) ;\n return nv ;\n }", "public Object parseValue(String expr);", "@Override\r\n\tpublic boolean visit(QualifiedName node) {\r\n\t\toperand(node,node.getFullyQualifiedName());\r\n\t\treturn false;\r\n\t}", "public final CQLParser.notExpression_return notExpression() throws RecognitionException {\n CQLParser.notExpression_return retval = new CQLParser.notExpression_return();\n retval.start = input.LT(1);\n\n Object root_0 = null;\n\n Token NOT93=null;\n CQLParser.arithmeticExpression_return arithmeticExpression94 = null;\n\n\n Object NOT93_tree=null;\n\n errorMessageStack.push(\"NOT expression\"); \n try {\n // /home/chinaski/programming/agile_workspace/ExplorerCat/src/main/antlr3/net/explorercat/cql/parser/CQL.g:388:2: ( ( NOT )? arithmeticExpression )\n // /home/chinaski/programming/agile_workspace/ExplorerCat/src/main/antlr3/net/explorercat/cql/parser/CQL.g:388:4: ( NOT )? arithmeticExpression\n {\n root_0 = (Object)adaptor.nil();\n\n // /home/chinaski/programming/agile_workspace/ExplorerCat/src/main/antlr3/net/explorercat/cql/parser/CQL.g:388:4: ( NOT )?\n int alt25=2;\n int LA25_0 = input.LA(1);\n\n if ( (LA25_0==NOT) ) {\n alt25=1;\n }\n switch (alt25) {\n case 1 :\n // /home/chinaski/programming/agile_workspace/ExplorerCat/src/main/antlr3/net/explorercat/cql/parser/CQL.g:388:5: NOT\n {\n NOT93=(Token)match(input,NOT,FOLLOW_NOT_in_notExpression1816); \n NOT93_tree = (Object)adaptor.create(NOT93);\n root_0 = (Object)adaptor.becomeRoot(NOT93_tree, root_0);\n\n\n }\n break;\n\n }\n\n pushFollow(FOLLOW_arithmeticExpression_in_notExpression1821);\n arithmeticExpression94=arithmeticExpression();\n\n state._fsp--;\n\n adaptor.addChild(root_0, arithmeticExpression94.getTree());\n\n }\n\n retval.stop = input.LT(-1);\n\n retval.tree = (Object)adaptor.rulePostProcessing(root_0);\n adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);\n\n errorMessageStack.pop();\n }\n \t\n \tcatch(RecognitionException re)\n \t{\t\n \t\treportError(re);\n \t\tthrow re;\n \t}\n finally {\n }\n return retval;\n }", "@Test\r\n public void deriveFromOrAssignmentExpressionWithSIUnits() throws IOException {\n check(\"varI_M|=9\", \"(int,m)\");\r\n //example with long m &= int\r\n check(\"varL_KMe2perH|=9\", \"(long,km^2/h)\");\r\n }", "private Double inspectExpression(String ex) {\n Double cyclomatic = 0.0;\n if (ex != null) {\n char[] chars = ex.toCharArray();\n for (int i = 0; i < chars.length - 1; i++) {\n char next = chars[i];\n if ((next == '&' || next == '|') && (next == chars[i + 1])) {\n cyclomatic++;\n }\n }\n }\n return cyclomatic;\n }", "public Object visitLogicalNegationExpression(GNode n) {\n if (dostring) {\n Object a = dispatch(n.getGeneric(0));\n \n if (a instanceof Long) {\n return \"\" + ((((Long) a).equals(new Long(0))) ? 1 : 0);\n }\n else {\n return \"! \" + parens(a);\n }\n }\n else {\n BDD a = ensureBDD(dispatch(n.getGeneric(0)));\n BDD bdd;\n \n bdd = a.not();\n \n a.free();\n \n return bdd;\n }\n }", "public Object visitRelationalExpression(GNode n) {\n Object a, b, result;\n String op;\n \n nonboolean = true;\n \n dostring = true;\n \n a = dispatch(n.getGeneric(0));\n b = dispatch(n.getGeneric(2));\n op = n.getString(1);\n \n dostring = false;\n \n if (a instanceof Long && b instanceof Long) {\n Long x = (Long) a;\n Long y = (Long) b;\n long zero = 0;\n long one = 1;\n \n if (op.equals(\"<\")) {\n result = x < y ? one : zero;\n }\n else if (op.equals(\"<=\")) {\n result = x <= y ? one : zero;\n }\n else if (op.equals(\">\")) {\n result = x > y ? one : zero;\n }\n else if (op.equals(\">=\")) {\n result = x >= y ? one : zero;\n }\n else {\n result = \"\";\n }\n }\n else {\n result = parens(a) + \" \" + op + \" \" + parens(b);\n }\n \n return result;\n }", "public T caseURDFAttrNumeric(URDFAttrNumeric object) {\r\n\t\treturn null;\r\n\t}", "private Object eval(SimpleExpr expr) {\n Object res = eval(expr.getExpr().get(0));\n\n for (int i = 1; i < expr.getExpr().size(); i++) {\n Object res2 = eval(expr.getExpr().get(i));\n String opt = expr.getOpt().get(i - 1);\n\n if (\"+\".equals(opt)) {\n if (res instanceof Double && res2 instanceof Double) {\n res = (Double) res + (Double) res2;\n } else if (res instanceof Double && res2 instanceof String) {\n res = \"\" + res + res2;\n } else if (res instanceof Boolean && res2 instanceof String) {\n res = \"\" + res + res2;\n } else if (res instanceof String && res2 instanceof String) {\n res = \"\" + res + res2;\n } else if (res instanceof String && res2 instanceof Double) {\n res = \"\" + res + res2;\n } else if (res instanceof String && res2 instanceof Boolean) {\n res = \"\" + res + res2;\n } else {\n throw new RaydenScriptException(\"Expression error: SimpleExpr error\");\n }\n } else if (\"-\".equals(opt)) {\n if (res instanceof Double && res2 instanceof Double) {\n res = (Double) res - (Double) res2;\n } else {\n throw new RaydenScriptException(\"Expression error: SimpleExpr error\");\n }\n } else {\n throw new RaydenScriptException(\"Expression error: Invalid operator '\" + opt + \"'.\");\n }\n }\n\n return res;\n }", "public Fraction getInvalidNumberAttribute();", "public interface Expression {\n \n enum ExpressivoGrammar {ROOT, SUM, PRODUCT, TOKEN, PRIMITIVE_1, PRIMITIVE_2, \n NUMBER, INT, DECIMAL, WHITESPACE, VARIABLE};\n \n public static Expression buildAST(ParseTree<ExpressivoGrammar> concreteSymbolTree) {\n \n if (concreteSymbolTree.getName() == ExpressivoGrammar.DECIMAL) {\n /* reached a double terminal */\n return new Num(Double.parseDouble(concreteSymbolTree.getContents())); \n }\n\n else if (concreteSymbolTree.getName() == ExpressivoGrammar.INT) {\n /* reached an int terminal */\n return new Num(Integer.parseInt(concreteSymbolTree.getContents()));\n }\n \n else if (concreteSymbolTree.getName() == ExpressivoGrammar.VARIABLE) {\n /* reached a terminal */\n return new Var(concreteSymbolTree.getContents());\n }\n \n else if (concreteSymbolTree.getName() == ExpressivoGrammar.ROOT || \n concreteSymbolTree.getName() == ExpressivoGrammar.TOKEN || \n concreteSymbolTree.getName() == ExpressivoGrammar.PRIMITIVE_1 || \n concreteSymbolTree.getName() == ExpressivoGrammar.PRIMITIVE_2 || \n concreteSymbolTree.getName() == ExpressivoGrammar.NUMBER) {\n \n /* non-terminals with only one child */\n for (ParseTree<ExpressivoGrammar> child: concreteSymbolTree.children()) {\n if (child.getName() != ExpressivoGrammar.WHITESPACE) \n return buildAST(child);\n }\n \n // should never reach here\n throw new IllegalArgumentException(\"error in parsing\");\n }\n \n else if (concreteSymbolTree.getName() == ExpressivoGrammar.SUM || concreteSymbolTree.getName() == ExpressivoGrammar.PRODUCT) {\n /* a sum or product node can have one or more children that need to be accumulated together */\n return accumulator(concreteSymbolTree, concreteSymbolTree.getName()); \n }\n \n else {\n throw new IllegalArgumentException(\"error in input: should never reach here\");\n }\n \n }\n \n /**\n * (1) Create parser using lib6005.parser from grammar file\n * (2) Parse string input into CST\n * (3) Build AST from this CST using buildAST()\n * @param input\n * @return Expression (AST)\n */\n public static Expression parse(String input) {\n \n try {\n Parser<ExpressivoGrammar> parser = GrammarCompiler.compile(\n new File(\"src/expressivo/Expression.g\"), ExpressivoGrammar.ROOT);\n ParseTree<ExpressivoGrammar> concreteSymbolTree = parser.parse(input);\n \n// tree.display();\n \n return buildAST(concreteSymbolTree);\n \n }\n \n catch (UnableToParseException e) {\n throw new IllegalArgumentException(\"Can't parse the expression...\");\n }\n catch (IOException e) {\n System.out.println(\"Cannot open file Expression.g\");\n throw new RuntimeException(\"Can't open the file with grammar...\");\n }\n }\n \n // helper methods\n public static Expression accumulator(ParseTree<ExpressivoGrammar> tree, ExpressivoGrammar grammarObj) {\n Expression expr = null;\n boolean first = true;\n List<ParseTree<ExpressivoGrammar>> children = tree.children();\n int len = children.size();\n for (int i = len-1; i >= 0; i--) {\n /* the first child */\n ParseTree<ExpressivoGrammar> child = children.get(i);\n if (first) {\n expr = buildAST(child);\n first = false;\n }\n \n /* accumulate this by creating a new binaryOp object with\n * expr as the leftOp and the result as rightOp\n **/\n \n else if (child.getName() == ExpressivoGrammar.WHITESPACE) continue;\n else {\n if (grammarObj == ExpressivoGrammar.SUM)\n expr = new Sum(buildAST(child), expr);\n else\n expr = new Product(buildAST(child), expr);\n }\n }\n \n return expr;\n \n }\n \n // ----------------- problems 3-4 -----------------\n \n public static Expression create(Expression leftExpr, Expression rightExpr, char op) {\n if (op == '+')\n return Sum.createSum(leftExpr, rightExpr);\n else\n return Product.createProduct(leftExpr, rightExpr);\n }\n\n public Expression differentiate(Var x);\n \n public Expression simplify(Map<String, Double> env);\n\n}", "@Override\n public R visit(NumericLiteralPositive n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "public boolean testParser() {\n boolean succeeded = true;\n\n // Test addition expression\n Double resultAddition = this.mockCalculator.x(\"12 + 5\");\n Double expectedAddition = new Double(17);\n \n if (!resultAddition.equals(expectedAddition)) {\n succeeded = false;\n System.out.println(\"[FAIL] Basic parsing fails to add.\");\n } else {\n System.out.println(\"[ OK ] Parser adds correctly.\");\n }\n\n // Test multiplication expression\n Double resultMulti = this.mockCalculator.x(\"12 x 5\");\n Double expectedMulti = new Double(60);\n \n if (!resultMulti.equals(expectedMulti)) {\n succeeded = false;\n System.out.println(\"[FAIL] Basic parsing multiply to add.\");\n } else {\n System.out.println(\"[ OK ] Parser multiplies correctly.\");\n }\n \n // Test invalid expression\n Double resultInvalid = this.mockCalculator.x(\"12 [ 5\");\n \n if (null != resultInvalid) {\n succeeded = false;\n System.out.println(\"[FAIL] Parser does not return null for operators which are not supported.\");\n } else {\n System.out.println(\"[ OK ] Parser returns null for operators which are not supported.\");\n }\n\n return succeeded;\n }", "Expression expression() throws SyntaxException {\r\n\t\tToken first = t;\r\n\t\tExpression e0 = orExpression();\r\n\t\tif (isKind(OP_QUESTION)) {\r\n\t\t\tconsume();\r\n\t\t\tExpression e1 = expression();\r\n\t\t\tmatch(OP_COLON);\r\n\t\t\tExpression e2 = expression();\r\n\t\t\te0 = new ExpressionConditional(first, e0, e1, e2);\r\n\t\t}\r\n\t\treturn e0;\r\n\t}", "default A satisfiesNumberCondition(Condition condition) {\n return satisfies(new PredicateWrappedCondition(\"Number\", JsonNode::isNumber, condition));\n }", "public boolean isNum() \n\t{ \n\t try \n\t { \n\t int d = Integer.parseInt(numeric); \n\t } \n\t catch(NumberFormatException nfe) \n\t { \n\t return false; \n\t } \n\t return true; \n\t}", "@Override\n\tpublic String visitCompexpr(CompexprContext ctx) {\n\t\t\n\t\tif(ctx.getChildCount()==3)\n\t\t{\n\t\t\t\n\t\t\t\n\t\t\tif(ctx.getChild(1).getText().equals(\"==\"))\n\t\t\t{\n\t\t\t\treturn \"EQL \"+visit(ctx.getChild(0)) +\" \"+visit(ctx.getChild(2));\n\t\t\t}\n\t\t\telse if(ctx.getChild(1).getText().equals(\">=\"))\n\t\t\t{\n\t\t\t\treturn \"GTE \"+visit(ctx.getChild(0)) +\" \"+visit(ctx.getChild(2));\n\t\t\t}\n\t\t\telse if(ctx.getChild(1).getText().equals(\"<=\"))\n\t\t\t{\n\t\t\t\treturn \"LTE \"+visit(ctx.getChild(0)) +\" \"+visit(ctx.getChild(2));\n\t\t\t}\n\t\t\telse if(ctx.getChild(1).getText().equals(\"<\"))\n\t\t\t{\n\t\t\t\treturn \"LT \"+visit(ctx.getChild(0)) +\" \"+visit(ctx.getChild(2));\n\t\t\t}\n\t\t\telse if(ctx.getChild(1).getText().equals(\">\"))\n\t\t\t{\n\t\t\t\treturn \"GT \"+visit(ctx.getChild(0)) +\" \"+visit(ctx.getChild(2));\n\t\t\t}\n\t\t\telse if(ctx.getChild(1).getText().equals(\"~=\"))\n\t\t\t{\n\t\t\t\treturn \"NE \"+visit(ctx.getChild(0)) +\" \"+visit(ctx.getChild(2));\n\t\t\t}\n\t\t}\n\t\telse if(ctx.getChildCount()==1)\n\t\t{\n\t\t\n\t\t\treturn ctx.getChild(0).getText();\n\t\t}\n\t\treturn \"\";\n\t\n\t\t\n\t\t\n\t\t\n\t}", "protected UnaryExpNode(ExpNode expr) {\n this.expr = expr;\n }", "@Test(timeout = 4000)\n public void test059() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"<= \");\n Token token0 = xPathLexer0.relationalOperator();\n assertEquals(8, token0.getTokenType());\n assertNotNull(token0);\n assertEquals(\"<=\", token0.getTokenText());\n }", "Expression relExpression() throws SyntaxException {\r\n\t\tToken first = t;\r\n\t\tExpression e0 = addExpression();\r\n\t\twhile(isKind(OP_LT,OP_GT,OP_LE,OP_GE)) {\r\n\t\t\tToken op = consume();\r\n\t\t\tExpression e1 = addExpression();\r\n\t\t\te0 = new ExpressionBinary(first,e0,op,e1);\r\n\t\t}\r\n\t\treturn e0;\r\n\t}", "@Override\n public void doCommand(TreeNode commandNode) {\n String finalValue = \"\";\n CommandParser miniparser = new CommandParser(turtles,variables, language, customCommandStorage);\n if(Double.parseDouble(getParamList().get(0)) != 0)\n {\n finalValue = miniparser.miniParse(getParamList().get(1).trim().replaceFirst(\"\\\\[\", \"\"));\n commandNode.setResult(finalValue);\n }\n else\n {\n finalValue = miniparser.miniParse(getParamList().get(2).trim().replaceFirst(\"\\\\[\", \"\"));\n commandNode.setResult(finalValue);\n }\n if(finalValue.equals(\"\"))\n {\n commandNode.setResult(\"0\");\n }\n }", "@Test\n\t\tpublic void testExpression() throws LexicalException, SyntaxException {\n\t\t\tString input = \"x + 2\";\n\t\t\tPLPParser parser = makeParser(input);\n\t\t\tExpression e = parser.expression(); //call expression here instead of parse\n\t\t\tshow(e);\t\n\t\t\tassertEquals(ExpressionBinary.class, e.getClass());\n\t\t\tExpressionBinary b = (ExpressionBinary)e;\n\t\t\tassertEquals(ExpressionIdentifier.class, b.leftExpression.getClass());//\n\t\t\tExpressionIdentifier left = (ExpressionIdentifier)b.leftExpression;\n\t\t\tassertEquals(\"x\", left.name);\n\t\t\tassertEquals(ExpressionIntegerLiteral.class, b.rightExpression.getClass());\n\t\t\tExpressionIntegerLiteral right = (ExpressionIntegerLiteral)b.rightExpression;\n\t\t\tassertEquals(2, right.value);\n\t\t\tassertEquals(OP_PLUS, b.op);\n\t\t}", "@Test\r\n public void testInvalidPlusAssignmentExpressionWithSIUnits1() throws IOException {\n checkError(\"varD_S+=4km\", \"0xA0176\");\r\n }", "@Test\r\n public void test1(){\r\n Exp one = new NumericLiteral(1);\r\n Exp three = new NumericLiteral(3);\r\n Exp exp = new PlusExp(one, three);\r\n Stmt decl = new DeclStmt(\"x\");\r\n Stmt assign = new Assignment(\"x\", exp);\r\n Stmt seq = new Sequence(decl, assign);\r\n assertEquals(seq.text(), \"var x; x = 1 + 3\");\r\n }", "public void testGetNumericValue2() {\n ValueString vs = new ValueString(\"2.8\");\n\n assertEquals(\"2.8\", vs.getString());\n assertEquals(2.8D, vs.getNumber(), 0.0D);\n assertNull(vs.getDate()); // will fail parsing\n assertEquals(false, vs.getBoolean());\n assertEquals(0, vs.getInteger());\n assertEquals(2.8D, vs.getBigNumber().doubleValue(), 0.1D);\n }", "@Override\r\n \tpublic int evaluate(final String expression) {\n \t\tif (expression.isEmpty()) {\r\n \t\t\tthrow new RuntimeException();\r\n \t\t}\r\n \t\tObject v, f;\r\n \t\tfloat k;\r\n \t\tfor (int i = 0; i < expression.length(); i++) {\r\n \t\t\t\tif (expression.charAt(i) == '/') {\r\n \t\t\t\t\tif (s.size() >= 2) {\r\n \t\t\t\t\t\tf = s.pop();\r\n \t\t\t\t\t\tv = s.pop();\r\n \t\t\t\t\t} else {\r\n \t\t\t\t\t\tthrow new RuntimeException();\r\n \t\t\t\t\t}\r\n \t\t\t\t k = (Float.valueOf(\r\n \t\t\t\t\t\tString.valueOf(v))\r\n \t\t\t\t\t\t/ (Float.valueOf(\r\n \t\t\t\t\t\t String.valueOf(f))));\r\n \t\t\t\ts.push(k);\r\n \t\t\t\t} else if (expression.charAt(i) == '*') {\r\n \t\t\t\t\tif (s.size() >= 2) {\r\n \t\t\t\t\t\tf = s.pop();\r\n \t\t\t\t\t\tv = s.pop();\r\n \t\t\t\t\t} else {\r\n \t\t\t\t\t\tthrow new RuntimeException();\r\n \t\t\t\t\t}\r\n \t\t\t\t k = (Float.valueOf(\r\n \t\t\t\t\t\t\tString.valueOf(v))\r\n \t\t\t\t\t\t\t* (Float.valueOf(\r\n \t\t\t\t\t\t\t String.valueOf(f))));\r\n \t\t\t\t\ts.push(k);\r\n \t\t\t\t\t} else if (\r\n \t\t\t\t\t\texpression.charAt(i) == '+') {\r\n \t\t\t\t\t\tif (s.size() >= 2) {\r\n \t \t\t\t\t\t\tf = s.pop();\r\n \t \t\t\t\t\t\tv = s.pop();\r\n \t \t\t\t\t\t} else {\r\n \t \t\t\t\t throw new RuntimeException();\r\n \t \t\t\t\t\t}\r\n \t\t\t\t k = (Float.valueOf(\r\n \t\t\t\t\t\t\tString.valueOf(v))\r\n \t\t\t\t\t\t\t+ (Float.valueOf(\r\n \t\t\t\t\t\t\t String.valueOf(f))));\r\n \t\t\t\t\ts.push(k);\r\n \t\t\t\t\t} else if (\r\n \t\t\t\t\texpression.charAt(i) == '-') {\r\n \t\t\t\t\t\tif (s.size() >= 2) {\r\n \t \t\t\t\t\t\tf = s.pop();\r\n \t \t\t\t\t\t\tv = s.pop();\r\n \t \t\t\t\t\t} else {\r\n \t \t\t\t \t throw new RuntimeException();\r\n \t \t\t\t\t\t}\r\n \t\t\t\t\t k = (Float.valueOf(\r\n \t\t\t\t\t\t\tString.valueOf(v))\r\n \t\t\t\t\t\t\t- (Float.valueOf(\r\n \t\t\t\t\t\t\t String.valueOf(f))));\r\n \t\t\t\t\ts.push(k);\r\n \t\t\t\t\t} else {\r\n \t\t\t\tif (expression.charAt(i) != ' ') {\r\n \t\t\t\t\tint r = 0;\r\n \t\t\t\t\tr += Integer.valueOf(\r\n \t\t\t\t\t\tString.valueOf(\r\n \t\t\t\t\t\texpression.charAt(i)));\r\n \t\t\t\t\twhile (\r\n \t\t\t\t\texpression.charAt(i + 1) != ' ') {\r\n \t\t\t\t\t\ti++;\r\n \t\t\t\t\t\tr *= magic10;\r\n \t\t\t\t\t\tr += Integer.valueOf(\r\n \t\t\t\t\t\t\tString.valueOf(\r\n \t\t\t\t\t\t\texpression.charAt(i)));\r\n \t\t\t\t\t}\r\n \t\t\t\ts.push(r);\r\n \t\t\t\t}\r\n \t\t\t}\r\n \t\t}\r\n if (s.size() == 0) {\r\n \t\t\tthrow new RuntimeException();\r\n \t\t}\r\n \t\tfloat h = Float.parseFloat((String.valueOf(s.pop())));\r\n \t\tif (!s.isEmpty()) {\r\n \t\t\treturn 0;\r\n \t\t}\r\n \t\treturn (int) h;\r\n \t}", "Expression addExpression() throws SyntaxException {\r\n\t\tToken first = t;\r\n\t\tExpression e0 = multExpression();\r\n\t\twhile(isKind(OP_PLUS, OP_MINUS)) {\r\n\t\t\tToken op = consume();\r\n\t\t\tExpression e1 = multExpression();\r\n\t\t\te0 = new ExpressionBinary(first,e0,op,e1);\r\n\t\t}\r\n\t\treturn e0;\r\n\t}", "LogicExpression getExpr();", "static boolean checkExpression() {\r\n String expression = \"\\nEXPRESSION:\";\r\n\r\n // term\r\n if (checkTerm()) {\r\n\r\n // term eq_v\r\n if (token.equals(\"EQUALS\") || token.equals(\"GREATER_THAN\") || token.equals(\"LESS_THAN\")\r\n || token.equals(\"GREATER_OR_EQUAL\") || token.equals(\"LESS_OR_EQUAL\") || token.equals(\"NOT_EQUAL\")) {\r\n expression = expression + \" \" + lexeme;\r\n lex();\r\n\r\n // term eq_v term\r\n if (checkTerm()) {\r\n return true;\r\n }\r\n }\r\n }\r\n return false;\r\n }", "private static boolean isNumeric(String str){\n return str.matches(\"-?\\\\d+(\\\\.\\\\d+)?\"); //match a number with optional '-' and decimal.\n }", "private static boolean isNumeric(String str)\t{\n\n\t\treturn str.matches(\"-?\\\\d+(\\\\.\\\\d+)?\"); \n\t\t\t// match a number with optional '-' and decimal.\n\t}", "@Override\n\tpublic Object visit(ASTExpon node, Object data)\n\t{\n\t\tFormulaSemantics semantics = (FormulaSemantics) data;\n\t\tif (node.getOperator() == null)\n\t\t{\n\t\t\tFormulaSemanticsUtilities.setInvalid(semantics,\n\t\t\t\t\"Parse Error: Object of type \" + node.getClass()\n\t\t\t\t\t+ \" expected to have an operator, none was found\");\n\t\t\treturn semantics;\n\t\t}\n\t\tfor (int i = 0; i < node.jjtGetNumChildren(); i++)\n\t\t{\n\t\t\tnode.jjtGetChild(i).jjtAccept(this, semantics);\n\t\t\t//Consistent with the \"fail fast\" behavior in the implementation note\n\t\t\tif (!semantics.getInfo(FormulaSemanticsUtilities.SEM_VALID)\n\t\t\t\t.isValid())\n\t\t\t{\n\t\t\t\treturn semantics;\n\t\t\t}\n\t\t\t/*\n\t\t\t * Note: We only implement ^ for Number.class today. This is a\n\t\t\t * \"known\" limitation, but would be nice to escape. However, this\n\t\t\t * means we can't shortcut the item in evaluate... (see\n\t\t\t * EvaluationVisitor)\n\t\t\t */\n\t\t\tClass<?> format =\n\t\t\t\t\tsemantics.getInfo(FormulaSemanticsUtilities.SEM_FORMAT)\n\t\t\t\t\t\t.getFormat();\n\t\t\tif (!format.equals(NUMBER_CLASS))\n\t\t\t{\n\t\t\t\tFormulaSemanticsUtilities.setInvalid(semantics,\n\t\t\t\t\t\"Parse Error: Invalid Value Format: \" + format\n\t\t\t\t\t\t+ \" found in \"\n\t\t\t\t\t\t+ node.jjtGetChild(i).getClass().getName()\n\t\t\t\t\t\t+ \" found in location requiring a\"\n\t\t\t\t\t\t+ \" Number (class cannot be evaluated)\");\n\t\t\t}\n\t\t}\n\t\treturn semantics;\n\t}", "public static BinaryExpression addAssign(Expression expression0, Expression expression1) { throw Extensions.todo(); }", "@Override\n public NumberExpr parse(ModuleState state, ASTNode parent) {\n var s = state.tokens.value().toLowerCase();\n state.tokens.next();\n\n boolean neg = s.startsWith(\"-\");\n if(neg) s = s.substring(1);\n\n if(s.length()>1) {\n if(s.startsWith(\"0x\")) {\n this.value = Long.parseLong(s.substring(2), 16);\n } else if(s.startsWith(\"0o\")) {\n this.value = Long.parseLong(s.substring(2), 8);\n } else if(s.startsWith(\"0b\")) {\n this.value = Long.parseLong(s.substring(2), 2);\n } else if(s.contains(\".\")) {\n this.value = Double.parseDouble(s);\n } else if(s.contains(\"e\")) {\n /* scientific notation */\n this.value = Double.parseDouble(s);\n } else {\n this.value = Long.parseLong(s);\n }\n } else {\n /* Single digit must be an int */\n this.value = Integer.parseInt(s);\n }\n if(neg) this.value = -this.value;\n\n parent.add(this);\n return this;\n }", "public Number parse( final String input, final ParsePosition position ) {\n\t\treturn null;\n\t}", "@Test\n\tpublic void testExpression() throws ParseException {\n\t\tExpression expression = langParser(\"a\").expression();\n\t\tassertEquals(expression.getClass(), Identifier.class);\n\t\texpression = langParser(\"a()\").expression();\n\t\tassertEquals(expression.getClass(), FunctionCall.class);\n\t\texpression = langParser(\"a.b\").expression();\n\t\tassertEquals(expression.getClass(), MemberAccess.class);\n\t\texpression = langParser(\"1\").expression();\n\t\tassertEquals(expression.getClass(), LongLiteral.class);\n\t\texpression = langParser(\"1.1\").expression();\n\t\tassertEquals(expression.getClass(), DoubleLiteral.class);\n\t\texpression = langParser(\"if(a,b,c)\").expression();\n\t\tassertEquals(expression.getClass(), TernaryIf.class);\n\t}", "@Override\n\tpublic Object visit(ASTUnary node, Object data)\n\t{\n\t\tFormulaSemantics semantics =\n\t\t\t\t(FormulaSemantics) singleChildValid(node, data);\n\t\t//Consistent with the \"fail fast\" behavior in the implementation note\n\t\tif (!semantics.getInfo(FormulaSemanticsUtilities.SEM_VALID).isValid())\n\t\t{\n\t\t\treturn semantics;\n\t\t}\n\t\t/*\n\t\t * Note: We only implement unary minus for Number.class today. This is a\n\t\t * \"known\" limitation, but would be nice to escape. However, this means\n\t\t * we need an entire equivalent to OperatorAction for 1-argument\n\t\t * operations :/\n\t\t */\n\t\tClass<?> format =\n\t\t\t\tsemantics.getInfo(FormulaSemanticsUtilities.SEM_FORMAT)\n\t\t\t\t\t.getFormat();\n\t\tif (!format.equals(NUMBER_CLASS))\n\t\t{\n\t\t\tFormulaSemanticsUtilities.setInvalid(semantics,\n\t\t\t\t\"Parse Error: Invalid Value Format: \" + format + \" found in \"\n\t\t\t\t\t+ node.jjtGetChild(0).getClass().getName()\n\t\t\t\t\t+ \" found in location requiring a\"\n\t\t\t\t\t+ \" Number (class cannot be evaluated)\");\n\t\t}\n\t\treturn semantics;\n\t}", "protected IExpressionValue getNum() throws TableFunctionMalformedException {\r\n\t\tvalue = \"\";\r\n\r\n\t\tif (!((isNumeric(look)) || ((look == '.') && (value.indexOf('.') == -1))))\r\n\t\t\texpected(\"Number\");\r\n\r\n\t\twhile ((isNumeric(look))\r\n\t\t\t\t|| ((look == '.') && (value.indexOf('.') == -1))) {\r\n\t\t\tvalue += look;\r\n\t\t\tnextChar();\r\n\t\t}\r\n\r\n\t\ttoken = '#';\r\n\t\tskipWhite();\r\n\r\n\t\t// Debug.println(\"GetNum returned \" + Float.parseFloat(value));\r\n\t\treturn new SimpleProbabilityValue(Float.parseFloat(value));\r\n\t}" ]
[ "0.6433068", "0.57247895", "0.57247895", "0.5638152", "0.55892116", "0.5517103", "0.55157197", "0.5462079", "0.5452465", "0.5396892", "0.5392058", "0.53712887", "0.5338029", "0.5327225", "0.5299592", "0.5297588", "0.5295807", "0.5288402", "0.5258376", "0.52489567", "0.5225006", "0.5192616", "0.5182805", "0.5175246", "0.51711625", "0.51550746", "0.5150341", "0.5141625", "0.51196396", "0.5119597", "0.51191497", "0.5117933", "0.5105988", "0.507264", "0.5070257", "0.5069862", "0.5069652", "0.50682235", "0.5043619", "0.5039282", "0.50388426", "0.501848", "0.5017467", "0.50075495", "0.498813", "0.49855253", "0.49735713", "0.49620357", "0.4957774", "0.4956529", "0.49462694", "0.49438018", "0.4938876", "0.4931674", "0.4925311", "0.49240226", "0.49198717", "0.49106848", "0.48986605", "0.48944032", "0.48942", "0.4893125", "0.48839945", "0.48791438", "0.487199", "0.48706472", "0.48659617", "0.48637536", "0.4861188", "0.4855165", "0.4852092", "0.4845728", "0.48373178", "0.48353526", "0.48331535", "0.48323897", "0.48322856", "0.4830463", "0.4829281", "0.48238266", "0.48125345", "0.4812052", "0.48092288", "0.48062262", "0.48053816", "0.4804225", "0.47834527", "0.47827014", "0.47752175", "0.4774835", "0.47706002", "0.47702956", "0.47687292", "0.47555518", "0.4747085", "0.47458974", "0.47426343", "0.47298533", "0.47270134", "0.47254208" ]
0.6014844
1
multiplicativeExpression > MultiplicativeExpression() nodeListOptional > ( "+" MultiplicativeExpression() | "" MultiplicativeExpression() | NumericLiteralPositive() | NumericLiteralNegative() )
@Override public R visit(AdditiveExpression n, A argu) { R _ret = null; n.multiplicativeExpression.accept(this, argu); n.nodeListOptional.accept(this, argu); return _ret; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Object visitMultiplicativeExpression(GNode n) {\n Object a, b, result;\n String op;\n \n nonboolean = true;\n \n dostring = true;\n \n a = dispatch(n.getGeneric(0));\n b = dispatch(n.getGeneric(2));\n op = n.getString(1);\n \n dostring = false;\n \n if (a instanceof Long && b instanceof Long) {\n if ((op.equals(\"/\")\n || op.equals(\"%\")) && ((Long) b).equals(new Long(0))) {\n System.err.println(\"division by zero in #if\");\n result = new Long(0);\n }\n if (op.equals(\"*\")) {\n result = (Long) a * (Long) b;\n }\n else if (op.equals(\"/\")) {\n result = (Long) a / (Long) b;\n }\n else if (op.equals(\"%\")) {\n result = (Long) a % (Long) b;\n }\n else {\n result = \"\";\n }\n }\n else {\n result = parens(a) + \" \" + op + \" \" + parens(b);\n }\n \n return result;\n }", "Expression multExpression() throws SyntaxException {\r\n\t\tToken first = t;\r\n\t\tExpression e0 = powerExpression();\r\n\t\twhile(isKind(OP_TIMES, OP_DIV, OP_MOD)) {\r\n\t\t\tToken op = consume();\r\n\t\t\tExpression e1 = powerExpression();\r\n\t\t\te0 = new ExpressionBinary(first,e0,op,e1);\r\n\t\t}\r\n\t\treturn e0;\r\n\t}", "void visit(MultiplicationExpression expression);", "private Term parseMul(final boolean required) throws ParseException {\n Term t1 = parseUnary(required);\n while (t1 != null) {\n int tt = _tokenizer.next();\n if (tt == '*') {\n Term t2 = parseUnary(true);\n if (t1.isD() && t2.isN() || t1.isN() && t2.isD()) {\n t1 = new Term.Mul(Term.TYPE_D, t1, t2);\n } else if (t1.isI() && t2.isI()) {\n t1 = new Term.Mul(Term.TYPE_I, t1, t2);\n } else if (!isTypeChecking()) {\n t1 = new Term.Mul(t1.isD() || t2.isD() ? Term.TYPE_D : Term.TYPE_I, t1, t2);\n } else {\n reportTypeErrorN2(\"'*'\");\n }\n } else if (tt == '/') {\n Term t2 = parseUnary(true);\n if (t1.isD() && t2.isN() || t1.isN() && t2.isD()) {\n t1 = new Term.Div(Term.TYPE_D, t1, t2);\n } else if (t1.isI() && t2.isI()) {\n t1 = new Term.Div(Term.TYPE_I, t1, t2);\n } else if (!isTypeChecking()) {\n t1 = new Term.Div(t1.isD() || t2.isD() ? Term.TYPE_D : Term.TYPE_I, t1, t2);\n } else {\n reportTypeErrorN2(\"'/'\");\n }\n } else if (tt == '%') {\n Term t2 = parseUnary(true);\n if (t1.isD() && t2.isN() || t1.isN() && t2.isD()) {\n t1 = new Term.Mod(Term.TYPE_D, t1, t2);\n } else if (t1.isI() && t2.isI()) {\n t1 = new Term.Mod(Term.TYPE_I, t1, t2);\n } else if (!isTypeChecking()) {\n t1 = new Term.Mod(t1.isD() || t2.isD() ? Term.TYPE_D : Term.TYPE_I, t1, t2);\n } else {\n reportTypeErrorN2(\"'%'\");\n }\n } else {\n _tokenizer.pushBack();\n break;\n }\n }\n return t1;\n }", "private ASTNode binaryMultiplyRules(ASTNode left, ASTNode right) throws Exception {\n Token leftToken = left.getToken();\n Token rightToken = right.getToken();\n\n TokenType leftType = leftToken.getType();\n TokenType rightType = rightToken.getType();\n\n Token tempToken;\n TokenType numType = TokenType.NUMBER;\n TokenType minusType = TokenType.MINUS;\n TokenType mulType = TokenType.MUL;\n\n if (rightToken.getIdentifier().equals(\"0\")){\n //left is anything and right is 0\n tempToken = new Token(numType, \"0\");\n return new Num(tempToken);\n }\n else if (rightToken.getIdentifier().equals(\"1\")){\n //left is anything and right is 1\n return left;\n }\n else if (leftToken.getIdentifier().equals(\"0\")){\n //left is 0 and right is anything\n tempToken = new Token(numType, \"0\");\n return new Num(tempToken);\n }\n else if (leftToken.getIdentifier().equals(\"1\")){\n //left is 1 and right is anything\n return right;\n }\n else if(patternMatcher(leftType, rightType, numType, numType)){\n Double leftVal = Double.parseDouble(leftToken.getIdentifier());\n Double rightVal = Double.parseDouble(rightToken.getIdentifier());\n\n String prod = String.valueOf(leftVal * rightVal);\n tempToken = new Token(numType, prod);\n return new Num(tempToken);\n }\n else if (patternMatcher(leftType, rightType, minusType, minusType)){\n if (left instanceof UnaryOP && right instanceof UnaryOP){\n tempToken = new Token(mulType);\n ASTNode leftOP = ((UnaryOP) left).getOperand();\n ASTNode rightOp = ((UnaryOP) right).getOperand();\n return new BinaryOp(tempToken, leftOP, rightOp);\n }\n }\n tempToken = new Token(mulType);\n return new BinaryOp(tempToken ,left, right);\n }", "@Override\n public R visit(MultiplicativeExpression n, A argu) {\n R _ret = null;\n n.unaryExpression.accept(this, argu);\n n.nodeListOptional.accept(this, argu);\n return _ret;\n }", "Expression addExpression() throws SyntaxException {\r\n\t\tToken first = t;\r\n\t\tExpression e0 = multExpression();\r\n\t\twhile(isKind(OP_PLUS, OP_MINUS)) {\r\n\t\t\tToken op = consume();\r\n\t\t\tExpression e1 = multExpression();\r\n\t\t\te0 = new ExpressionBinary(first,e0,op,e1);\r\n\t\t}\r\n\t\treturn e0;\r\n\t}", "public final EObject ruleMultiplicativeExpression() throws RecognitionException {\n EObject current = null;\n\n Token lv_op_2_1=null;\n Token lv_op_2_2=null;\n Token lv_op_2_3=null;\n EObject this_UnaryExpression_0 = null;\n\n EObject lv_right_3_0 = null;\n\n\n enterRule(); \n \n try {\n // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:729:28: ( (this_UnaryExpression_0= ruleUnaryExpression ( ( ( ( () ( ( ( '*' | '/' | '%' ) ) ) ) )=> ( () ( ( (lv_op_2_1= '*' | lv_op_2_2= '/' | lv_op_2_3= '%' ) ) ) ) ) ( (lv_right_3_0= ruleUnaryExpression ) ) )* ) )\n // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:730:1: (this_UnaryExpression_0= ruleUnaryExpression ( ( ( ( () ( ( ( '*' | '/' | '%' ) ) ) ) )=> ( () ( ( (lv_op_2_1= '*' | lv_op_2_2= '/' | lv_op_2_3= '%' ) ) ) ) ) ( (lv_right_3_0= ruleUnaryExpression ) ) )* )\n {\n // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:730:1: (this_UnaryExpression_0= ruleUnaryExpression ( ( ( ( () ( ( ( '*' | '/' | '%' ) ) ) ) )=> ( () ( ( (lv_op_2_1= '*' | lv_op_2_2= '/' | lv_op_2_3= '%' ) ) ) ) ) ( (lv_right_3_0= ruleUnaryExpression ) ) )* )\n // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:731:5: this_UnaryExpression_0= ruleUnaryExpression ( ( ( ( () ( ( ( '*' | '/' | '%' ) ) ) ) )=> ( () ( ( (lv_op_2_1= '*' | lv_op_2_2= '/' | lv_op_2_3= '%' ) ) ) ) ) ( (lv_right_3_0= ruleUnaryExpression ) ) )*\n {\n if ( state.backtracking==0 ) {\n \n newCompositeNode(grammarAccess.getMultiplicativeExpressionAccess().getUnaryExpressionParserRuleCall_0()); \n \n }\n pushFollow(FOLLOW_ruleUnaryExpression_in_ruleMultiplicativeExpression1682);\n this_UnaryExpression_0=ruleUnaryExpression();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n \n current = this_UnaryExpression_0; \n afterParserOrEnumRuleCall();\n \n }\n // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:739:1: ( ( ( ( () ( ( ( '*' | '/' | '%' ) ) ) ) )=> ( () ( ( (lv_op_2_1= '*' | lv_op_2_2= '/' | lv_op_2_3= '%' ) ) ) ) ) ( (lv_right_3_0= ruleUnaryExpression ) ) )*\n loop12:\n do {\n int alt12=2;\n switch ( input.LA(1) ) {\n case 35:\n {\n int LA12_2 = input.LA(2);\n\n if ( (synpred8_InternalJavaJRExpression()) ) {\n alt12=1;\n }\n\n\n }\n break;\n case 36:\n {\n int LA12_3 = input.LA(2);\n\n if ( (synpred8_InternalJavaJRExpression()) ) {\n alt12=1;\n }\n\n\n }\n break;\n case 37:\n {\n int LA12_4 = input.LA(2);\n\n if ( (synpred8_InternalJavaJRExpression()) ) {\n alt12=1;\n }\n\n\n }\n break;\n\n }\n\n switch (alt12) {\n \tcase 1 :\n \t // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:739:2: ( ( ( () ( ( ( '*' | '/' | '%' ) ) ) ) )=> ( () ( ( (lv_op_2_1= '*' | lv_op_2_2= '/' | lv_op_2_3= '%' ) ) ) ) ) ( (lv_right_3_0= ruleUnaryExpression ) )\n \t {\n \t // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:739:2: ( ( ( () ( ( ( '*' | '/' | '%' ) ) ) ) )=> ( () ( ( (lv_op_2_1= '*' | lv_op_2_2= '/' | lv_op_2_3= '%' ) ) ) ) )\n \t // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:739:3: ( ( () ( ( ( '*' | '/' | '%' ) ) ) ) )=> ( () ( ( (lv_op_2_1= '*' | lv_op_2_2= '/' | lv_op_2_3= '%' ) ) ) )\n \t {\n \t // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:755:6: ( () ( ( (lv_op_2_1= '*' | lv_op_2_2= '/' | lv_op_2_3= '%' ) ) ) )\n \t // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:755:7: () ( ( (lv_op_2_1= '*' | lv_op_2_2= '/' | lv_op_2_3= '%' ) ) )\n \t {\n \t // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:755:7: ()\n \t // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:756:5: \n \t {\n \t if ( state.backtracking==0 ) {\n\n \t current = forceCreateModelElementAndSet(\n \t grammarAccess.getMultiplicativeExpressionAccess().getBinaryExpressionLeftAction_1_0_0_0(),\n \t current);\n \t \n \t }\n\n \t }\n\n \t // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:761:2: ( ( (lv_op_2_1= '*' | lv_op_2_2= '/' | lv_op_2_3= '%' ) ) )\n \t // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:762:1: ( (lv_op_2_1= '*' | lv_op_2_2= '/' | lv_op_2_3= '%' ) )\n \t {\n \t // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:762:1: ( (lv_op_2_1= '*' | lv_op_2_2= '/' | lv_op_2_3= '%' ) )\n \t // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:763:1: (lv_op_2_1= '*' | lv_op_2_2= '/' | lv_op_2_3= '%' )\n \t {\n \t // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:763:1: (lv_op_2_1= '*' | lv_op_2_2= '/' | lv_op_2_3= '%' )\n \t int alt11=3;\n \t switch ( input.LA(1) ) {\n \t case 35:\n \t {\n \t alt11=1;\n \t }\n \t break;\n \t case 36:\n \t {\n \t alt11=2;\n \t }\n \t break;\n \t case 37:\n \t {\n \t alt11=3;\n \t }\n \t break;\n \t default:\n \t if (state.backtracking>0) {state.failed=true; return current;}\n \t NoViableAltException nvae =\n \t new NoViableAltException(\"\", 11, 0, input);\n\n \t throw nvae;\n \t }\n\n \t switch (alt11) {\n \t case 1 :\n \t // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:764:3: lv_op_2_1= '*'\n \t {\n \t lv_op_2_1=(Token)match(input,35,FOLLOW_35_in_ruleMultiplicativeExpression1768); if (state.failed) return current;\n \t if ( state.backtracking==0 ) {\n\n \t newLeafNode(lv_op_2_1, grammarAccess.getMultiplicativeExpressionAccess().getOpAsteriskKeyword_1_0_0_1_0_0());\n \t \n \t }\n \t if ( state.backtracking==0 ) {\n\n \t \t if (current==null) {\n \t \t current = createModelElement(grammarAccess.getMultiplicativeExpressionRule());\n \t \t }\n \t \t\tsetWithLastConsumed(current, \"op\", lv_op_2_1, null);\n \t \t \n \t }\n\n \t }\n \t break;\n \t case 2 :\n \t // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:776:8: lv_op_2_2= '/'\n \t {\n \t lv_op_2_2=(Token)match(input,36,FOLLOW_36_in_ruleMultiplicativeExpression1797); if (state.failed) return current;\n \t if ( state.backtracking==0 ) {\n\n \t newLeafNode(lv_op_2_2, grammarAccess.getMultiplicativeExpressionAccess().getOpSolidusKeyword_1_0_0_1_0_1());\n \t \n \t }\n \t if ( state.backtracking==0 ) {\n\n \t \t if (current==null) {\n \t \t current = createModelElement(grammarAccess.getMultiplicativeExpressionRule());\n \t \t }\n \t \t\tsetWithLastConsumed(current, \"op\", lv_op_2_2, null);\n \t \t \n \t }\n\n \t }\n \t break;\n \t case 3 :\n \t // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:788:8: lv_op_2_3= '%'\n \t {\n \t lv_op_2_3=(Token)match(input,37,FOLLOW_37_in_ruleMultiplicativeExpression1826); if (state.failed) return current;\n \t if ( state.backtracking==0 ) {\n\n \t newLeafNode(lv_op_2_3, grammarAccess.getMultiplicativeExpressionAccess().getOpPercentSignKeyword_1_0_0_1_0_2());\n \t \n \t }\n \t if ( state.backtracking==0 ) {\n\n \t \t if (current==null) {\n \t \t current = createModelElement(grammarAccess.getMultiplicativeExpressionRule());\n \t \t }\n \t \t\tsetWithLastConsumed(current, \"op\", lv_op_2_3, null);\n \t \t \n \t }\n\n \t }\n \t break;\n\n \t }\n\n\n \t }\n\n\n \t }\n\n\n \t }\n\n\n \t }\n\n \t // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:803:4: ( (lv_right_3_0= ruleUnaryExpression ) )\n \t // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:804:1: (lv_right_3_0= ruleUnaryExpression )\n \t {\n \t // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:804:1: (lv_right_3_0= ruleUnaryExpression )\n \t // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:805:3: lv_right_3_0= ruleUnaryExpression\n \t {\n \t if ( state.backtracking==0 ) {\n \t \n \t \t newCompositeNode(grammarAccess.getMultiplicativeExpressionAccess().getRightUnaryExpressionParserRuleCall_1_1_0()); \n \t \t \n \t }\n \t pushFollow(FOLLOW_ruleUnaryExpression_in_ruleMultiplicativeExpression1865);\n \t lv_right_3_0=ruleUnaryExpression();\n\n \t state._fsp--;\n \t if (state.failed) return current;\n \t if ( state.backtracking==0 ) {\n\n \t \t if (current==null) {\n \t \t current = createModelElementForParent(grammarAccess.getMultiplicativeExpressionRule());\n \t \t }\n \t \t\tset(\n \t \t\t\tcurrent, \n \t \t\t\t\"right\",\n \t \t\tlv_right_3_0, \n \t \t\t\"UnaryExpression\");\n \t \t afterParserOrEnumRuleCall();\n \t \t \n \t }\n\n \t }\n\n\n \t }\n\n\n \t }\n \t break;\n\n \tdefault :\n \t break loop12;\n }\n } while (true);\n\n\n }\n\n\n }\n\n if ( state.backtracking==0 ) {\n leaveRule(); \n }\n }\n \n catch (RecognitionException re) { \n recover(input,re); \n appendSkippedTokens();\n } \n finally {\n }\n return current;\n }", "public final expressionParser.add_return add() throws RecognitionException {\n expressionParser.add_return retval = new expressionParser.add_return();\n retval.start = input.LT(1);\n\n CommonTree root_0 = null;\n\n Token char_literal38=null;\n Token char_literal39=null;\n expressionParser.mult_return mult37 = null;\n\n expressionParser.mult_return mult40 = null;\n\n\n CommonTree char_literal38_tree=null;\n CommonTree char_literal39_tree=null;\n\n try {\n // C:\\\\work\\\\art\\\\latest-code\\\\vclang-code-dd0a89f0d579f02ec8c3d8cd398ea8f7cbb445aa\\\\src\\\\art\\\\grammar\\\\expression.g:80:3: ( mult ( ( '+' | '-' ) mult )* )\n // C:\\\\work\\\\art\\\\latest-code\\\\vclang-code-dd0a89f0d579f02ec8c3d8cd398ea8f7cbb445aa\\\\src\\\\art\\\\grammar\\\\expression.g:80:5: mult ( ( '+' | '-' ) mult )*\n {\n root_0 = (CommonTree)adaptor.nil();\n\n pushFollow(FOLLOW_mult_in_add424);\n mult37=mult();\n\n state._fsp--;\n if (state.failed) return retval;\n if ( state.backtracking==0 ) adaptor.addChild(root_0, mult37.getTree());\n // C:\\\\work\\\\art\\\\latest-code\\\\vclang-code-dd0a89f0d579f02ec8c3d8cd398ea8f7cbb445aa\\\\src\\\\art\\\\grammar\\\\expression.g:80:10: ( ( '+' | '-' ) mult )*\n loop17:\n do {\n int alt17=2;\n alt17 = dfa17.predict(input);\n switch (alt17) {\n \tcase 1 :\n \t // C:\\\\work\\\\art\\\\latest-code\\\\vclang-code-dd0a89f0d579f02ec8c3d8cd398ea8f7cbb445aa\\\\src\\\\art\\\\grammar\\\\expression.g:80:11: ( '+' | '-' ) mult\n \t {\n \t // C:\\\\work\\\\art\\\\latest-code\\\\vclang-code-dd0a89f0d579f02ec8c3d8cd398ea8f7cbb445aa\\\\src\\\\art\\\\grammar\\\\expression.g:80:11: ( '+' | '-' )\n \t int alt16=2;\n \t int LA16_0 = input.LA(1);\n\n \t if ( (LA16_0==46) ) {\n \t alt16=1;\n \t }\n \t else if ( (LA16_0==47) ) {\n \t alt16=2;\n \t }\n \t else {\n \t if (state.backtracking>0) {state.failed=true; return retval;}\n \t NoViableAltException nvae =\n \t new NoViableAltException(\"\", 16, 0, input);\n\n \t throw nvae;\n \t }\n \t switch (alt16) {\n \t case 1 :\n \t // C:\\\\work\\\\art\\\\latest-code\\\\vclang-code-dd0a89f0d579f02ec8c3d8cd398ea8f7cbb445aa\\\\src\\\\art\\\\grammar\\\\expression.g:80:12: '+'\n \t {\n \t char_literal38=(Token)match(input,46,FOLLOW_46_in_add428); if (state.failed) return retval;\n \t if ( state.backtracking==0 ) {\n \t char_literal38_tree = (CommonTree)adaptor.create(char_literal38);\n \t root_0 = (CommonTree)adaptor.becomeRoot(char_literal38_tree, root_0);\n \t }\n\n \t }\n \t break;\n \t case 2 :\n \t // C:\\\\work\\\\art\\\\latest-code\\\\vclang-code-dd0a89f0d579f02ec8c3d8cd398ea8f7cbb445aa\\\\src\\\\art\\\\grammar\\\\expression.g:80:19: '-'\n \t {\n \t char_literal39=(Token)match(input,47,FOLLOW_47_in_add433); if (state.failed) return retval;\n \t if ( state.backtracking==0 ) {\n \t char_literal39_tree = (CommonTree)adaptor.create(char_literal39);\n \t root_0 = (CommonTree)adaptor.becomeRoot(char_literal39_tree, root_0);\n \t }\n\n \t }\n \t break;\n\n \t }\n\n \t pushFollow(FOLLOW_mult_in_add437);\n \t mult40=mult();\n\n \t state._fsp--;\n \t if (state.failed) return retval;\n \t if ( state.backtracking==0 ) adaptor.addChild(root_0, mult40.getTree());\n\n \t }\n \t break;\n\n \tdefault :\n \t break loop17;\n }\n } while (true);\n\n\n }\n\n retval.stop = input.LT(-1);\n\n if ( state.backtracking==0 ) {\n\n retval.tree = (CommonTree)adaptor.rulePostProcessing(root_0);\n adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);\n }\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n \tretval.tree = (CommonTree)adaptor.errorNode(input, retval.start, input.LT(-1), re);\n\n }\n finally {\n }\n return retval;\n }", "public final EObject ruleMultiplicativeExpressionPart() throws RecognitionException {\n EObject current = null;\n\n Enumerator lv_operator_0_0 = null;\n\n EObject lv_operand_1_0 = null;\n\n\n EObject temp=null; setCurrentLookahead(); resetLookahead(); \n \n try {\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:3904:6: ( ( ( (lv_operator_0_0= ruleMultiplicativeOperator ) ) ( (lv_operand_1_0= rulePowerExpression ) ) ) )\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:3905:1: ( ( (lv_operator_0_0= ruleMultiplicativeOperator ) ) ( (lv_operand_1_0= rulePowerExpression ) ) )\n {\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:3905:1: ( ( (lv_operator_0_0= ruleMultiplicativeOperator ) ) ( (lv_operand_1_0= rulePowerExpression ) ) )\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:3905:2: ( (lv_operator_0_0= ruleMultiplicativeOperator ) ) ( (lv_operand_1_0= rulePowerExpression ) )\n {\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:3905:2: ( (lv_operator_0_0= ruleMultiplicativeOperator ) )\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:3906:1: (lv_operator_0_0= ruleMultiplicativeOperator )\n {\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:3906:1: (lv_operator_0_0= ruleMultiplicativeOperator )\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:3907:3: lv_operator_0_0= ruleMultiplicativeOperator\n {\n \n \t currentNode=createCompositeNode(grammarAccess.getMultiplicativeExpressionPartAccess().getOperatorMultiplicativeOperatorEnumRuleCall_0_0(), currentNode); \n \t \n pushFollow(FOLLOW_ruleMultiplicativeOperator_in_ruleMultiplicativeExpressionPart6676);\n lv_operator_0_0=ruleMultiplicativeOperator();\n _fsp--;\n\n\n \t if (current==null) {\n \t current = factory.create(grammarAccess.getMultiplicativeExpressionPartRule().getType().getClassifier());\n \t associateNodeWithAstElement(currentNode.getParent(), current);\n \t }\n \t try {\n \t \t\tset(\n \t \t\t\tcurrent, \n \t \t\t\t\"operator\",\n \t \t\tlv_operator_0_0, \n \t \t\t\"MultiplicativeOperator\", \n \t \t\tcurrentNode);\n \t } catch (ValueConverterException vce) {\n \t\t\t\thandleValueConverterException(vce);\n \t }\n \t currentNode = currentNode.getParent();\n \t \n\n }\n\n\n }\n\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:3929:2: ( (lv_operand_1_0= rulePowerExpression ) )\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:3930:1: (lv_operand_1_0= rulePowerExpression )\n {\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:3930:1: (lv_operand_1_0= rulePowerExpression )\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:3931:3: lv_operand_1_0= rulePowerExpression\n {\n \n \t currentNode=createCompositeNode(grammarAccess.getMultiplicativeExpressionPartAccess().getOperandPowerExpressionParserRuleCall_1_0(), currentNode); \n \t \n pushFollow(FOLLOW_rulePowerExpression_in_ruleMultiplicativeExpressionPart6697);\n lv_operand_1_0=rulePowerExpression();\n _fsp--;\n\n\n \t if (current==null) {\n \t current = factory.create(grammarAccess.getMultiplicativeExpressionPartRule().getType().getClassifier());\n \t associateNodeWithAstElement(currentNode.getParent(), current);\n \t }\n \t try {\n \t \t\tset(\n \t \t\t\tcurrent, \n \t \t\t\t\"operand\",\n \t \t\tlv_operand_1_0, \n \t \t\t\"PowerExpression\", \n \t \t\tcurrentNode);\n \t } catch (ValueConverterException vce) {\n \t\t\t\thandleValueConverterException(vce);\n \t }\n \t currentNode = currentNode.getParent();\n \t \n\n }\n\n\n }\n\n\n }\n\n\n }\n\n resetLookahead(); \n \tlastConsumedNode = currentNode;\n \n }\n \n catch (RecognitionException re) { \n recover(input,re); \n appendSkippedTokens();\n } \n finally {\n }\n return current;\n }", "public final EObject ruleMultiplicativeExpression() throws RecognitionException {\r\n EObject current = null;\r\n\r\n EObject this_NumberExpression_0 = null;\r\n\r\n EObject lv_operator_2_1 = null;\r\n\r\n EObject lv_operator_2_2 = null;\r\n\r\n EObject lv_operator_2_3 = null;\r\n\r\n EObject lv_right_3_0 = null;\r\n\r\n\r\n enterRule(); \r\n \r\n try {\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:2889:28: ( (this_NumberExpression_0= ruleNumberExpression ( () ( ( (lv_operator_2_1= ruleMultiplicationOperator | lv_operator_2_2= ruleDivisionOperator | lv_operator_2_3= ruleModulusOperator ) ) ) ( (lv_right_3_0= ruleNumberExpression ) ) )* ) )\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:2890:1: (this_NumberExpression_0= ruleNumberExpression ( () ( ( (lv_operator_2_1= ruleMultiplicationOperator | lv_operator_2_2= ruleDivisionOperator | lv_operator_2_3= ruleModulusOperator ) ) ) ( (lv_right_3_0= ruleNumberExpression ) ) )* )\r\n {\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:2890:1: (this_NumberExpression_0= ruleNumberExpression ( () ( ( (lv_operator_2_1= ruleMultiplicationOperator | lv_operator_2_2= ruleDivisionOperator | lv_operator_2_3= ruleModulusOperator ) ) ) ( (lv_right_3_0= ruleNumberExpression ) ) )* )\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:2891:5: this_NumberExpression_0= ruleNumberExpression ( () ( ( (lv_operator_2_1= ruleMultiplicationOperator | lv_operator_2_2= ruleDivisionOperator | lv_operator_2_3= ruleModulusOperator ) ) ) ( (lv_right_3_0= ruleNumberExpression ) ) )*\r\n {\r\n if ( state.backtracking==0 ) {\r\n \r\n newCompositeNode(grammarAccess.getMultiplicativeExpressionAccess().getNumberExpressionParserRuleCall_0()); \r\n \r\n }\r\n pushFollow(FOLLOW_ruleNumberExpression_in_ruleMultiplicativeExpression6185);\r\n this_NumberExpression_0=ruleNumberExpression();\r\n\r\n state._fsp--;\r\n if (state.failed) return current;\r\n if ( state.backtracking==0 ) {\r\n \r\n current = this_NumberExpression_0; \r\n afterParserOrEnumRuleCall();\r\n \r\n }\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:2899:1: ( () ( ( (lv_operator_2_1= ruleMultiplicationOperator | lv_operator_2_2= ruleDivisionOperator | lv_operator_2_3= ruleModulusOperator ) ) ) ( (lv_right_3_0= ruleNumberExpression ) ) )*\r\n loop40:\r\n do {\r\n int alt40=2;\r\n int LA40_0 = input.LA(1);\r\n\r\n if ( (LA40_0==46||(LA40_0>=66 && LA40_0<=67)) ) {\r\n alt40=1;\r\n }\r\n\r\n\r\n switch (alt40) {\r\n \tcase 1 :\r\n \t // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:2899:2: () ( ( (lv_operator_2_1= ruleMultiplicationOperator | lv_operator_2_2= ruleDivisionOperator | lv_operator_2_3= ruleModulusOperator ) ) ) ( (lv_right_3_0= ruleNumberExpression ) )\r\n \t {\r\n \t // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:2899:2: ()\r\n \t // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:2900:5: \r\n \t {\r\n \t if ( state.backtracking==0 ) {\r\n\r\n \t current = forceCreateModelElementAndSet(\r\n \t grammarAccess.getMultiplicativeExpressionAccess().getMultiplicativeExpressionLeftAction_1_0(),\r\n \t current);\r\n \t \r\n \t }\r\n\r\n \t }\r\n\r\n \t // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:2905:2: ( ( (lv_operator_2_1= ruleMultiplicationOperator | lv_operator_2_2= ruleDivisionOperator | lv_operator_2_3= ruleModulusOperator ) ) )\r\n \t // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:2906:1: ( (lv_operator_2_1= ruleMultiplicationOperator | lv_operator_2_2= ruleDivisionOperator | lv_operator_2_3= ruleModulusOperator ) )\r\n \t {\r\n \t // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:2906:1: ( (lv_operator_2_1= ruleMultiplicationOperator | lv_operator_2_2= ruleDivisionOperator | lv_operator_2_3= ruleModulusOperator ) )\r\n \t // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:2907:1: (lv_operator_2_1= ruleMultiplicationOperator | lv_operator_2_2= ruleDivisionOperator | lv_operator_2_3= ruleModulusOperator )\r\n \t {\r\n \t // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:2907:1: (lv_operator_2_1= ruleMultiplicationOperator | lv_operator_2_2= ruleDivisionOperator | lv_operator_2_3= ruleModulusOperator )\r\n \t int alt39=3;\r\n \t switch ( input.LA(1) ) {\r\n \t case 46:\r\n \t {\r\n \t alt39=1;\r\n \t }\r\n \t break;\r\n \t case 66:\r\n \t {\r\n \t alt39=2;\r\n \t }\r\n \t break;\r\n \t case 67:\r\n \t {\r\n \t alt39=3;\r\n \t }\r\n \t break;\r\n \t default:\r\n \t if (state.backtracking>0) {state.failed=true; return current;}\r\n \t NoViableAltException nvae =\r\n \t new NoViableAltException(\"\", 39, 0, input);\r\n\r\n \t throw nvae;\r\n \t }\r\n\r\n \t switch (alt39) {\r\n \t case 1 :\r\n \t // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:2908:3: lv_operator_2_1= ruleMultiplicationOperator\r\n \t {\r\n \t if ( state.backtracking==0 ) {\r\n \t \r\n \t \t newCompositeNode(grammarAccess.getMultiplicativeExpressionAccess().getOperatorMultiplicationOperatorParserRuleCall_1_1_0_0()); \r\n \t \t \r\n \t }\r\n \t pushFollow(FOLLOW_ruleMultiplicationOperator_in_ruleMultiplicativeExpression6217);\r\n \t lv_operator_2_1=ruleMultiplicationOperator();\r\n\r\n \t state._fsp--;\r\n \t if (state.failed) return current;\r\n \t if ( state.backtracking==0 ) {\r\n\r\n \t \t if (current==null) {\r\n \t \t current = createModelElementForParent(grammarAccess.getMultiplicativeExpressionRule());\r\n \t \t }\r\n \t \t\tset(\r\n \t \t\t\tcurrent, \r\n \t \t\t\t\"operator\",\r\n \t \t\tlv_operator_2_1, \r\n \t \t\t\"MultiplicationOperator\");\r\n \t \t afterParserOrEnumRuleCall();\r\n \t \t \r\n \t }\r\n\r\n \t }\r\n \t break;\r\n \t case 2 :\r\n \t // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:2923:8: lv_operator_2_2= ruleDivisionOperator\r\n \t {\r\n \t if ( state.backtracking==0 ) {\r\n \t \r\n \t \t newCompositeNode(grammarAccess.getMultiplicativeExpressionAccess().getOperatorDivisionOperatorParserRuleCall_1_1_0_1()); \r\n \t \t \r\n \t }\r\n \t pushFollow(FOLLOW_ruleDivisionOperator_in_ruleMultiplicativeExpression6236);\r\n \t lv_operator_2_2=ruleDivisionOperator();\r\n\r\n \t state._fsp--;\r\n \t if (state.failed) return current;\r\n \t if ( state.backtracking==0 ) {\r\n\r\n \t \t if (current==null) {\r\n \t \t current = createModelElementForParent(grammarAccess.getMultiplicativeExpressionRule());\r\n \t \t }\r\n \t \t\tset(\r\n \t \t\t\tcurrent, \r\n \t \t\t\t\"operator\",\r\n \t \t\tlv_operator_2_2, \r\n \t \t\t\"DivisionOperator\");\r\n \t \t afterParserOrEnumRuleCall();\r\n \t \t \r\n \t }\r\n\r\n \t }\r\n \t break;\r\n \t case 3 :\r\n \t // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:2938:8: lv_operator_2_3= ruleModulusOperator\r\n \t {\r\n \t if ( state.backtracking==0 ) {\r\n \t \r\n \t \t newCompositeNode(grammarAccess.getMultiplicativeExpressionAccess().getOperatorModulusOperatorParserRuleCall_1_1_0_2()); \r\n \t \t \r\n \t }\r\n \t pushFollow(FOLLOW_ruleModulusOperator_in_ruleMultiplicativeExpression6255);\r\n \t lv_operator_2_3=ruleModulusOperator();\r\n\r\n \t state._fsp--;\r\n \t if (state.failed) return current;\r\n \t if ( state.backtracking==0 ) {\r\n\r\n \t \t if (current==null) {\r\n \t \t current = createModelElementForParent(grammarAccess.getMultiplicativeExpressionRule());\r\n \t \t }\r\n \t \t\tset(\r\n \t \t\t\tcurrent, \r\n \t \t\t\t\"operator\",\r\n \t \t\tlv_operator_2_3, \r\n \t \t\t\"ModulusOperator\");\r\n \t \t afterParserOrEnumRuleCall();\r\n \t \t \r\n \t }\r\n\r\n \t }\r\n \t break;\r\n\r\n \t }\r\n\r\n\r\n \t }\r\n\r\n\r\n \t }\r\n\r\n \t // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:2956:2: ( (lv_right_3_0= ruleNumberExpression ) )\r\n \t // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:2957:1: (lv_right_3_0= ruleNumberExpression )\r\n \t {\r\n \t // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:2957:1: (lv_right_3_0= ruleNumberExpression )\r\n \t // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:2958:3: lv_right_3_0= ruleNumberExpression\r\n \t {\r\n \t if ( state.backtracking==0 ) {\r\n \t \r\n \t \t newCompositeNode(grammarAccess.getMultiplicativeExpressionAccess().getRightNumberExpressionParserRuleCall_1_2_0()); \r\n \t \t \r\n \t }\r\n \t pushFollow(FOLLOW_ruleNumberExpression_in_ruleMultiplicativeExpression6279);\r\n \t lv_right_3_0=ruleNumberExpression();\r\n\r\n \t state._fsp--;\r\n \t if (state.failed) return current;\r\n \t if ( state.backtracking==0 ) {\r\n\r\n \t \t if (current==null) {\r\n \t \t current = createModelElementForParent(grammarAccess.getMultiplicativeExpressionRule());\r\n \t \t }\r\n \t \t\tset(\r\n \t \t\t\tcurrent, \r\n \t \t\t\t\"right\",\r\n \t \t\tlv_right_3_0, \r\n \t \t\t\"NumberExpression\");\r\n \t \t afterParserOrEnumRuleCall();\r\n \t \t \r\n \t }\r\n\r\n \t }\r\n\r\n\r\n \t }\r\n\r\n\r\n \t }\r\n \t break;\r\n\r\n \tdefault :\r\n \t break loop40;\r\n }\r\n } while (true);\r\n\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n if ( state.backtracking==0 ) {\r\n leaveRule(); \r\n }\r\n }\r\n \r\n catch (RecognitionException re) { \r\n recover(input,re); \r\n appendSkippedTokens();\r\n } \r\n finally {\r\n }\r\n return current;\r\n }", "@Test\n public void testParseMul() {\n System.out.println(\"testParseMul\");\n byte[] expected = {\n Instruction.LV.getId(), 0, 0, 32,\n Instruction.LV.getId(), 0, 0, 36,\n Instruction.MUL.getId(),\n Instruction.LV.getId(), 0, 0, 40,\n Instruction.MUL.getId()\n };\n\n TermParser p = TermParserTestSetup.getMulTermSetup();\n assertEquals(\"Parse\", true, p.parse());\n AssemblerCodeChecker.assertCodeEquals(\"Code \", expected, TermParserTestSetup.getByteCode());\n }", "public final CQLParser.multiplicativeExpression_return multiplicativeExpression() throws RecognitionException {\n CQLParser.multiplicativeExpression_return retval = new CQLParser.multiplicativeExpression_return();\n retval.start = input.LT(1);\n\n Object root_0 = null;\n\n Token set100=null;\n CQLParser.powerExpression_return powerExpression99 = null;\n\n CQLParser.powerExpression_return powerExpression101 = null;\n\n\n Object set100_tree=null;\n\n try {\n // /home/chinaski/programming/agile_workspace/ExplorerCat/src/main/antlr3/net/explorercat/cql/parser/CQL.g:404:2: ( powerExpression ( ( MULT | DIV ) powerExpression )* )\n // /home/chinaski/programming/agile_workspace/ExplorerCat/src/main/antlr3/net/explorercat/cql/parser/CQL.g:404:4: powerExpression ( ( MULT | DIV ) powerExpression )*\n {\n root_0 = (Object)adaptor.nil();\n\n pushFollow(FOLLOW_powerExpression_in_multiplicativeExpression1886);\n powerExpression99=powerExpression();\n\n state._fsp--;\n\n adaptor.addChild(root_0, powerExpression99.getTree());\n // /home/chinaski/programming/agile_workspace/ExplorerCat/src/main/antlr3/net/explorercat/cql/parser/CQL.g:404:20: ( ( MULT | DIV ) powerExpression )*\n loop27:\n do {\n int alt27=2;\n int LA27_0 = input.LA(1);\n\n if ( ((LA27_0>=MULT && LA27_0<=DIV)) ) {\n alt27=1;\n }\n\n\n switch (alt27) {\n \tcase 1 :\n \t // /home/chinaski/programming/agile_workspace/ExplorerCat/src/main/antlr3/net/explorercat/cql/parser/CQL.g:404:21: ( MULT | DIV ) powerExpression\n \t {\n \t set100=(Token)input.LT(1);\n \t set100=(Token)input.LT(1);\n \t if ( (input.LA(1)>=MULT && input.LA(1)<=DIV) ) {\n \t input.consume();\n \t root_0 = (Object)adaptor.becomeRoot((Object)adaptor.create(set100), root_0);\n \t state.errorRecovery=false;\n \t }\n \t else {\n \t MismatchedSetException mse = new MismatchedSetException(null,input);\n \t throw mse;\n \t }\n\n \t pushFollow(FOLLOW_powerExpression_in_multiplicativeExpression1896);\n \t powerExpression101=powerExpression();\n\n \t state._fsp--;\n\n \t adaptor.addChild(root_0, powerExpression101.getTree());\n\n \t }\n \t break;\n\n \tdefault :\n \t break loop27;\n }\n } while (true);\n\n\n }\n\n retval.stop = input.LT(-1);\n\n retval.tree = (Object)adaptor.rulePostProcessing(root_0);\n adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);\n\n }\n \t\n \tcatch(RecognitionException re)\n \t{\t\n \t\treportError(re);\n \t\tthrow re;\n \t}\n finally {\n }\n return retval;\n }", "Multiply createMultiply();", "public final void additiveExpression() throws RecognitionException {\n int additiveExpression_StartIndex = input.index();\n try { dbg.enterRule(getGrammarFileName(), \"additiveExpression\");\n if ( getRuleLevel()==0 ) {dbg.commence();}\n incRuleLevel();\n dbg.location(807, 1);\n\n try {\n if ( state.backtracking>0 && alreadyParsedRule(input, 119) ) { return ; }\n // Java.g:808:5: ( multiplicativeExpression ( ( '+' | '-' ) multiplicativeExpression )* )\n dbg.enterAlt(1);\n\n // Java.g:808:9: multiplicativeExpression ( ( '+' | '-' ) multiplicativeExpression )*\n {\n dbg.location(808,9);\n pushFollow(FOLLOW_multiplicativeExpression_in_additiveExpression4840);\n multiplicativeExpression();\n\n state._fsp--;\n if (state.failed) return ;\n dbg.location(808,34);\n // Java.g:808:34: ( ( '+' | '-' ) multiplicativeExpression )*\n try { dbg.enterSubRule(140);\n\n loop140:\n do {\n int alt140=2;\n try { dbg.enterDecision(140);\n\n int LA140_0 = input.LA(1);\n\n if ( ((LA140_0>=105 && LA140_0<=106)) ) {\n alt140=1;\n }\n\n\n } finally {dbg.exitDecision(140);}\n\n switch (alt140) {\n \tcase 1 :\n \t dbg.enterAlt(1);\n\n \t // Java.g:808:36: ( '+' | '-' ) multiplicativeExpression\n \t {\n \t dbg.location(808,36);\n \t if ( (input.LA(1)>=105 && input.LA(1)<=106) ) {\n \t input.consume();\n \t state.errorRecovery=false;state.failed=false;\n \t }\n \t else {\n \t if (state.backtracking>0) {state.failed=true; return ;}\n \t MismatchedSetException mse = new MismatchedSetException(null,input);\n \t dbg.recognitionException(mse);\n \t throw mse;\n \t }\n\n \t dbg.location(808,48);\n \t pushFollow(FOLLOW_multiplicativeExpression_in_additiveExpression4852);\n \t multiplicativeExpression();\n\n \t state._fsp--;\n \t if (state.failed) return ;\n\n \t }\n \t break;\n\n \tdefault :\n \t break loop140;\n }\n } while (true);\n } finally {dbg.exitSubRule(140);}\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n if ( state.backtracking>0 ) { memoize(input, 119, additiveExpression_StartIndex); }\n }\n dbg.location(809, 5);\n\n }\n finally {\n dbg.exitRule(getGrammarFileName(), \"additiveExpression\");\n decRuleLevel();\n if ( getRuleLevel()==0 ) {dbg.terminate();}\n }\n\n return ;\n }", "public final void rule__AstExpressionMultiplicative__OperatorAlternatives_1_1_0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:2972:1: ( ( '*' ) | ( '/' ) | ( 'div' ) | ( 'mod' ) )\n int alt18=4;\n switch ( input.LA(1) ) {\n case 30:\n {\n alt18=1;\n }\n break;\n case 31:\n {\n alt18=2;\n }\n break;\n case 32:\n {\n alt18=3;\n }\n break;\n case 33:\n {\n alt18=4;\n }\n break;\n default:\n NoViableAltException nvae =\n new NoViableAltException(\"\", 18, 0, input);\n\n throw nvae;\n }\n\n switch (alt18) {\n case 1 :\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:2973:1: ( '*' )\n {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:2973:1: ( '*' )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:2974:1: '*'\n {\n before(grammarAccess.getAstExpressionMultiplicativeAccess().getOperatorAsteriskKeyword_1_1_0_0()); \n match(input,30,FOLLOW_30_in_rule__AstExpressionMultiplicative__OperatorAlternatives_1_1_06420); \n after(grammarAccess.getAstExpressionMultiplicativeAccess().getOperatorAsteriskKeyword_1_1_0_0()); \n\n }\n\n\n }\n break;\n case 2 :\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:2981:6: ( '/' )\n {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:2981:6: ( '/' )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:2982:1: '/'\n {\n before(grammarAccess.getAstExpressionMultiplicativeAccess().getOperatorSolidusKeyword_1_1_0_1()); \n match(input,31,FOLLOW_31_in_rule__AstExpressionMultiplicative__OperatorAlternatives_1_1_06440); \n after(grammarAccess.getAstExpressionMultiplicativeAccess().getOperatorSolidusKeyword_1_1_0_1()); \n\n }\n\n\n }\n break;\n case 3 :\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:2989:6: ( 'div' )\n {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:2989:6: ( 'div' )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:2990:1: 'div'\n {\n before(grammarAccess.getAstExpressionMultiplicativeAccess().getOperatorDivKeyword_1_1_0_2()); \n match(input,32,FOLLOW_32_in_rule__AstExpressionMultiplicative__OperatorAlternatives_1_1_06460); \n after(grammarAccess.getAstExpressionMultiplicativeAccess().getOperatorDivKeyword_1_1_0_2()); \n\n }\n\n\n }\n break;\n case 4 :\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:2997:6: ( 'mod' )\n {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:2997:6: ( 'mod' )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:2998:1: 'mod'\n {\n before(grammarAccess.getAstExpressionMultiplicativeAccess().getOperatorModKeyword_1_1_0_3()); \n match(input,33,FOLLOW_33_in_rule__AstExpressionMultiplicative__OperatorAlternatives_1_1_06480); \n after(grammarAccess.getAstExpressionMultiplicativeAccess().getOperatorModKeyword_1_1_0_3()); \n\n }\n\n\n }\n break;\n\n }\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "@Override\n\tpublic void visit(MultiplyNode node) {\n\t\tif (Evaluator.checkScope(node) == false) {\n\t\t\treturn;\n\t\t}\n\n\t\tif (Evaluator.checkAssert(node) == false) {\n\t\t\treturn;\n\t\t}\n\n\t\t/**\n\t\t * evaluam cei doi fii\n\t\t */\n\t\tEvaluator.evaluate(node.getChild(0));\n\t\tEvaluator.evaluate(node.getChild(1));\n\n\t\tInteger i, j;\n\t\t/**\n\t\t * salvam si inmultim valorile rezulate in urma evaluarii celor 2 fii si\n\t\t * setam valoarea corespunzatoare in nodul curent\n\t\t */\n\t\tif (node.getChild(1) instanceof Variable) {\n\t\t\ti = Integer.parseInt(Evaluator.variables.get(node.getChild(1).getName()));\n\n\t\t} else {\n\t\t\ti = Integer.parseInt(node.getChild(1).getName());\n\t\t}\n\n\t\tif (node.getChild(0) instanceof Variable) {\n\t\t\tj = Integer.parseInt(Evaluator.variables.get(node.getChild(0).getName()));\n\n\t\t} else {\n\t\t\tj = Integer.parseInt(node.getChild(0).getName());\n\t\t}\n\n\t\tInteger n = i * j;\n\n\t\tnode.setName(n.toString());\n\t}", "public void multiply() {\n\t\t\n\t}", "@Override\n\tpublic void visit(Multiplication arg0) {\n\t\t\n\t}", "private void multiplication()\n\t{\n\t\tFun = Function.MULTIPLY; //Function set to determine what action should be taken later.\n\t\t\n\t\t\tsetLeftValue();\n\t\t\tentry.grabFocus();\n\t\t\n\t}", "public Expression commutativeExp() {\r\n return this;\r\n }", "public final void ruleAstExpressionMultiplicative() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:1699:2: ( ( ( rule__AstExpressionMultiplicative__Group__0 ) ) )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:1700:1: ( ( rule__AstExpressionMultiplicative__Group__0 ) )\n {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:1700:1: ( ( rule__AstExpressionMultiplicative__Group__0 ) )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:1701:1: ( rule__AstExpressionMultiplicative__Group__0 )\n {\n before(grammarAccess.getAstExpressionMultiplicativeAccess().getGroup()); \n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:1702:1: ( rule__AstExpressionMultiplicative__Group__0 )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:1702:2: rule__AstExpressionMultiplicative__Group__0\n {\n pushFollow(FOLLOW_rule__AstExpressionMultiplicative__Group__0_in_ruleAstExpressionMultiplicative3576);\n rule__AstExpressionMultiplicative__Group__0();\n\n state._fsp--;\n\n\n }\n\n after(grammarAccess.getAstExpressionMultiplicativeAccess().getGroup()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "private Term parseAdd(final boolean required) throws ParseException {\n Term t1 = parseMul(required);\n while (t1 != null) {\n int tt = _tokenizer.next();\n if (tt == '+') {\n Term t2 = parseMul(true);\n if (t1.isD() && t2.isN() || t1.isN() && t2.isD()) {\n t1 = new Term.Add(Term.TYPE_D, t1, t2);\n } else if (t1.isI() && t2.isI()) {\n t1 = new Term.Add(Term.TYPE_I, t1, t2);\n } else if (!isTypeChecking()) {\n t1 = new Term.Add(t1.isD() || t2.isD() ? Term.TYPE_D : Term.TYPE_I, t1, t2);\n } else {\n reportTypeErrorN2(\"'+'\");\n }\n } else if (tt == '-') {\n Term t2 = parseMul(true);\n if (t1.isD() && t2.isN() || t1.isN() && t2.isD()) {\n t1 = new Term.Sub(Term.TYPE_D, t1, t2);\n } else if (t1.isI() && t2.isI()) {\n t1 = new Term.Sub(Term.TYPE_I, t1, t2);\n } else if (!isTypeChecking()) {\n t1 = new Term.Sub(t1.isD() || t2.isD() ? Term.TYPE_D : Term.TYPE_I, t1, t2);\n } else {\n reportTypeErrorN2(\"'-'\");\n }\n } else {\n _tokenizer.pushBack();\n break;\n }\n }\n return t1;\n }", "public void multiply()\r\n {\r\n resultDoubles = Operations.multiply(leftOperand, rightOperand);\r\n resultResetHelper();\r\n }", "@Override\n\tpublic void visit(Multiplication arg0) {\n\n\t}", "public static BinaryExpression power(Expression expression0, Expression expression1) { throw Extensions.todo(); }", "public static Node multiply(Node poly1, Node poly2) {\r\n\t\t/** COMPLETE THIS METHOD **/\r\n\t\t// FOLLOWING LINE IS A PLACEHOLDER TO MAKE THIS METHOD COMPILE\r\n\t\t// CHANGE IT AS NEEDED FOR YOUR IMPLEMENTATION\r\n\t\t//Equation for the first polynomial\r\n\t\t\r\n\t\t\tNode Equation1=poly1;\r\n\t\t\r\n\t\t\t//Equation for the second polynomial\r\n\t\t\r\n\t\t\tNode Equation2=poly2;\r\n\t\t \r\n\t\t \tNode Summation= null;\r\n\t\t \t\r\n\t\t \tNode Result=null;\r\n\t\t \r\n\t\t \r\n\t\t \t\r\n\t\t //this will hold the temporary adding\r\n\t float tmp =0;\r\n\t //holds degree\r\n\t \r\n\t int deg =0;\r\n\t \r\n\t if(Equation1==null) {\r\n\t \treturn Equation2;\r\n\t }\r\n\t \r\n\t if(Equation2==null) {\r\n\t \treturn Equation1;\r\n\t }\r\n\r\n\r\n\t //loops through both equations and check to see if both are null\r\n\t while( Equation2!=null) {\r\n\t \t\r\n\t \ttmp= Equation1.term.coeff*Equation2.term.coeff;\r\n\t \tdeg = Equation1.term.degree+Equation2.term.degree;\r\n\t \tSummation = new Node(tmp,deg,Summation);\r\n\t \t\r\n\t \tEquation1=Equation1.next;\r\n\t \t\r\n\t \tif(Equation1==null) {\r\n\t \t\tEquation1=poly1;\r\n\t \t\tEquation2=Equation2.next;\r\n\t \t}\r\n\t \t\t\t}\r\n\t \r\n\t Node Answer =null;\r\n\t Node hold =null;\r\n\t \twhile(Summation!=null) {\r\n\t \t\ttmp = Summation.term.coeff;\r\n\t \t\thold=Summation.next;\r\n\t \t\twhile(hold!=null) {\r\n\t \t\t\t\r\n\t \t\t\tif(Summation.term.degree==hold.term.degree) {\r\n\t \t\t\t\ttmp= tmp +hold.term.coeff;\r\n\t \t\t\t\thold.term.coeff=0;\t\r\n\t \t\t\t\t\r\n\t \t\t\t}\r\n\t \t\t\t\r\n\t \t\t\thold = hold.next;\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\tAnswer= new Node(tmp,Summation.term.degree,Answer);\r\n\t \t\tSummation = Summation.next;\r\n\t \t\t\r\n\t \t\t\r\n\t \t\t\r\n\t \t}\r\n\t Summation =null;\r\n\t \twhile(Answer!=null) {\r\n\t \t\t\r\n\t \t\twhile(Answer.term.coeff==0) {\r\n\t \t\t\tAnswer=Answer.next;\r\n\t \t\t}\r\n\t \t\t\r\n\t \t\tSummation = new Node(Answer.term.coeff,Answer.term.degree,Summation);\r\n\t \t\tAnswer=Answer.next;\r\n\t \t\t\r\n\t \t\t\r\n\t \t\t\r\n\t \t}\r\n\t \t\r\n\t \tAnswer= Summation;\r\n\t \tEquation1=null;\r\n\t \tEquation2=Summation;\r\n\t \ttmp =Answer.term.coeff;\r\n\t \tdeg=Answer.term.degree;\r\n\t \tint max =deg;\r\n\t \t\r\n\t \t\r\n\t \t\r\n\t \t//find max degree of polynomial\t\r\n \t\twhile(Answer.next!=null ) {\r\n \t\t\t\r\n \t\t\t\r\n \t\t\tif(Answer.term.degree>deg) {\r\n \t\t\t\ttmp=Answer.term.coeff;\r\n \t\t\t\tdeg=Answer.term.degree;\r\n \t\t\t}\r\n \t\t\t\r\n \t\t\tAnswer=Answer.next;\r\n \t\t\t\r\n \t\t}\r\n \t\t\r\n \t\t\r\n \t\t\r\n \t\tEquation1= new Node(tmp,deg,Equation1);\r\n \t\t\r\n \t\tAnswer= null;\r\n \t\t\r\n \t\t max=Equation1.term.degree;\r\n \t\t \r\n \t\t Equation2=null;\r\n \t\t //arranges polynomials descending\r\n \t\t while(max!=-1) {\r\n \t\t\t \r\n \t\t\t Answer=Summation;\r\n \t\t\t while(Answer!=null) {\r\n \t\t\t if(Answer.term.degree==max) {\r\n \t\t\t\t Equation2= new Node(Answer.term.coeff,Answer.term.degree,Equation2);\r\n \t\t\t\t \r\n \t\t\t }\r\n \t\t\t \r\n \t\t\t Answer=Answer.next;\r\n \t\t\t \r\n \t\t\t }\r\n \t\t\t max--;\r\n \t\t\t\r\n \t\t\t \r\n \t\t\t \r\n \t\t\t \r\n \t\t }\r\n \r\n\t\t\treturn Equation2 ;\r\n\r\n\t\t \r\n\t}", "public StatementParse mulDivTransform(StatementParse node) {\n // This function is called on _every_ multiply and divide node.\n StatementParse node1 = node.getChildren().get(0);\n StatementParse node2 = node.getChildren().get(1);\n if (!(node1 instanceof IntegerParse) || !(node2 instanceof IntegerParse)){\n return node;\n }\n int value1 = ((IntegerParse) node1).getValue();\n int value2 = ((IntegerParse) node2).getValue();\n int result;\n if (node.getName().equals(\"*\")){\n result = value1 * value2;\n } else{ // div node\n if (value2 == 0) return node;\n result = value1 / value2;\n }\n\n IntegerParse newNode = new IntegerParse(result);\n if (node.isNegative()) newNode.setNegative(true);\n return newNode;\n }", "protected void sequence_Multiplication(ISerializationContext context, Multi semanticObject) {\n\t\tif (errorAcceptor != null) {\n\t\t\tif (transientValues.isValueTransient(semanticObject, DslPackage.Literals.MULTI__LEFT) == ValueTransient.YES)\n\t\t\t\terrorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, DslPackage.Literals.MULTI__LEFT));\n\t\t\tif (transientValues.isValueTransient(semanticObject, DslPackage.Literals.MULTI__RIGHT) == ValueTransient.YES)\n\t\t\t\terrorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, DslPackage.Literals.MULTI__RIGHT));\n\t\t}\n\t\tSequenceFeeder feeder = createSequencerFeeder(context, semanticObject);\n\t\tfeeder.accept(grammarAccess.getMultiplicationAccess().getMultiLeftAction_1_0_0_0(), semanticObject.getLeft());\n\t\tfeeder.accept(grammarAccess.getMultiplicationAccess().getRightPrimaryExpressionParserRuleCall_1_1_0(), semanticObject.getRight());\n\t\tfeeder.finish();\n\t}", "public final Expr addExpr() throws RecognitionException {\r\n Expr result = null;\r\n\r\n int addExpr_StartIndex = input.index();\r\n\r\n Token op=null;\r\n Expr lhs =null;\r\n\r\n Expr rhs =null;\r\n\r\n\r\n try {\r\n if ( state.backtracking>0 && alreadyParsedRule(input, 15) ) { return result; }\r\n\r\n // C:\\\\Users\\\\caytekin\\\\Documents\\\\GitHub\\\\sea-of-ql\\\\caytekin\\\\QLJava/src/org/uva/sea/ql/parser/antlr/QL.g:121:5: (lhs= mulExpr (op= ( '+' | '-' ) rhs= mulExpr )* )\r\n // C:\\\\Users\\\\caytekin\\\\Documents\\\\GitHub\\\\sea-of-ql\\\\caytekin\\\\QLJava/src/org/uva/sea/ql/parser/antlr/QL.g:121:9: lhs= mulExpr (op= ( '+' | '-' ) rhs= mulExpr )*\r\n {\r\n pushFollow(FOLLOW_mulExpr_in_addExpr674);\r\n lhs=mulExpr();\r\n\r\n state._fsp--;\r\n if (state.failed) return result;\r\n\r\n if ( state.backtracking==0 ) { result =lhs; }\r\n\r\n // C:\\\\Users\\\\caytekin\\\\Documents\\\\GitHub\\\\sea-of-ql\\\\caytekin\\\\QLJava/src/org/uva/sea/ql/parser/antlr/QL.g:121:46: (op= ( '+' | '-' ) rhs= mulExpr )*\r\n loop10:\r\n do {\r\n int alt10=2;\r\n int LA10_0 = input.LA(1);\r\n\r\n if ( ((LA10_0 >= 24 && LA10_0 <= 25)) ) {\r\n alt10=1;\r\n }\r\n\r\n\r\n switch (alt10) {\r\n \tcase 1 :\r\n \t // C:\\\\Users\\\\caytekin\\\\Documents\\\\GitHub\\\\sea-of-ql\\\\caytekin\\\\QLJava/src/org/uva/sea/ql/parser/antlr/QL.g:121:48: op= ( '+' | '-' ) rhs= mulExpr\r\n \t {\r\n \t op=(Token)input.LT(1);\r\n\r\n \t if ( (input.LA(1) >= 24 && input.LA(1) <= 25) ) {\r\n \t input.consume();\r\n \t state.errorRecovery=false;\r\n \t state.failed=false;\r\n \t }\r\n \t else {\r\n \t if (state.backtracking>0) {state.failed=true; return result;}\r\n \t MismatchedSetException mse = new MismatchedSetException(null,input);\r\n \t throw mse;\r\n \t }\r\n\r\n\r\n \t pushFollow(FOLLOW_mulExpr_in_addExpr692);\r\n \t rhs=mulExpr();\r\n\r\n \t state._fsp--;\r\n \t if (state.failed) return result;\r\n\r\n \t if ( state.backtracking==0 ) { \r\n \t if ((op!=null?op.getText():null).equals(\"+\")) {\r\n \t result = new Add(result, rhs);\r\n \t }\r\n \t if ((op!=null?op.getText():null).equals(\"-\")) {\r\n \t result = new Sub(result, rhs); \r\n \t }\r\n \t }\r\n\r\n \t }\r\n \t break;\r\n\r\n \tdefault :\r\n \t break loop10;\r\n }\r\n } while (true);\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n\r\n finally {\r\n \t// do for sure before leaving\r\n if ( state.backtracking>0 ) { memoize(input, 15, addExpr_StartIndex); }\r\n\r\n }\r\n return result;\r\n }", "private double parseExpression() {\n\t\tdouble value = parseTerm();\n\t\twhile (true) {\n\t\t\tif (token.getType().equals(Token.Type.PLUS)) { // addition\n\t\t\t\ttoken=lexer.getNextToken();\n\t\t\t\tvalue += parseTerm();\n\t\t\t} else if (token.getType().equals(Token.Type.MINUS)) { // subtraction\n\t\t\t\ttoken = lexer.getNextToken();\n\t\t\t\tvalue -= parseTerm();\n\t\t\t} else {\n\t\t\t\treturn value;\n\t\t\t}\n\t\t}\n\t}", "public R visit(com.biosimilarity.lift.lib.scalar.Absyn.Multiplication p, A arg)\n {\n\n p.arithmeticexpr_1.accept(new ArithmeticExprVisitor<R,A>(), arg);\n p.arithmeticexpr_2.accept(new ArithmeticExprVisitor<R,A>(), arg);\n\n return null;\n }", "private double processExpression() throws ParsingException {\n double result = processTerm();\n\n while (true) {\n if (tryCaptureChar('+')) {\n result += processTerm();\n } else if (tryCaptureChar('-')) {\n result -= processTerm();\n } else {\n break;\n }\n }\n return result;\n }", "public static BinaryExpression multiply(Expression expression0, Expression expression1) {\n return makeBinary(ExpressionType.Multiply, expression0, expression1);\n }", "public final void rule__AstExpressionMultiplicative__OperatorAssignment_1_1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:25386:1: ( ( ( rule__AstExpressionMultiplicative__OperatorAlternatives_1_1_0 ) ) )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:25387:1: ( ( rule__AstExpressionMultiplicative__OperatorAlternatives_1_1_0 ) )\n {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:25387:1: ( ( rule__AstExpressionMultiplicative__OperatorAlternatives_1_1_0 ) )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:25388:1: ( rule__AstExpressionMultiplicative__OperatorAlternatives_1_1_0 )\n {\n before(grammarAccess.getAstExpressionMultiplicativeAccess().getOperatorAlternatives_1_1_0()); \n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:25389:1: ( rule__AstExpressionMultiplicative__OperatorAlternatives_1_1_0 )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:25389:2: rule__AstExpressionMultiplicative__OperatorAlternatives_1_1_0\n {\n pushFollow(FOLLOW_rule__AstExpressionMultiplicative__OperatorAlternatives_1_1_0_in_rule__AstExpressionMultiplicative__OperatorAssignment_1_151005);\n rule__AstExpressionMultiplicative__OperatorAlternatives_1_1_0();\n\n state._fsp--;\n\n\n }\n\n after(grammarAccess.getAstExpressionMultiplicativeAccess().getOperatorAlternatives_1_1_0()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public final void multiplicativeExpression() throws RecognitionException {\n int multiplicativeExpression_StartIndex = input.index();\n try { dbg.enterRule(getGrammarFileName(), \"multiplicativeExpression\");\n if ( getRuleLevel()==0 ) {dbg.commence();}\n incRuleLevel();\n dbg.location(811, 1);\n\n try {\n if ( state.backtracking>0 && alreadyParsedRule(input, 120) ) { return ; }\n // Java.g:812:5: ( unaryExpression ( ( '*' | '/' | '%' ) unaryExpression )* )\n dbg.enterAlt(1);\n\n // Java.g:812:9: unaryExpression ( ( '*' | '/' | '%' ) unaryExpression )*\n {\n dbg.location(812,9);\n pushFollow(FOLLOW_unaryExpression_in_multiplicativeExpression4874);\n unaryExpression();\n\n state._fsp--;\n if (state.failed) return ;\n dbg.location(812,25);\n // Java.g:812:25: ( ( '*' | '/' | '%' ) unaryExpression )*\n try { dbg.enterSubRule(141);\n\n loop141:\n do {\n int alt141=2;\n try { dbg.enterDecision(141);\n\n int LA141_0 = input.LA(1);\n\n if ( (LA141_0==30||(LA141_0>=107 && LA141_0<=108)) ) {\n alt141=1;\n }\n\n\n } finally {dbg.exitDecision(141);}\n\n switch (alt141) {\n \tcase 1 :\n \t dbg.enterAlt(1);\n\n \t // Java.g:812:27: ( '*' | '/' | '%' ) unaryExpression\n \t {\n \t dbg.location(812,27);\n \t if ( input.LA(1)==30||(input.LA(1)>=107 && input.LA(1)<=108) ) {\n \t input.consume();\n \t state.errorRecovery=false;state.failed=false;\n \t }\n \t else {\n \t if (state.backtracking>0) {state.failed=true; return ;}\n \t MismatchedSetException mse = new MismatchedSetException(null,input);\n \t dbg.recognitionException(mse);\n \t throw mse;\n \t }\n\n \t dbg.location(812,47);\n \t pushFollow(FOLLOW_unaryExpression_in_multiplicativeExpression4892);\n \t unaryExpression();\n\n \t state._fsp--;\n \t if (state.failed) return ;\n\n \t }\n \t break;\n\n \tdefault :\n \t break loop141;\n }\n } while (true);\n } finally {dbg.exitSubRule(141);}\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n if ( state.backtracking>0 ) { memoize(input, 120, multiplicativeExpression_StartIndex); }\n }\n dbg.location(813, 5);\n\n }\n finally {\n dbg.exitRule(getGrammarFileName(), \"multiplicativeExpression\");\n decRuleLevel();\n if ( getRuleLevel()==0 ) {dbg.terminate();}\n }\n\n return ;\n }", "public static boolean multiplicativeOperator(PsiBuilder b, int l) {\n if (!recursion_guard_(b, l, \"multiplicativeOperator\")) return false;\n if (!nextTokenIs(b, \"<multiplicative operator>\", DIV, INT_DIV, MUL, REM)) return false;\n boolean r;\n Marker m = enter_section_(b, l, _NONE_, MULTIPLICATIVE_OPERATOR, \"<multiplicative operator>\");\n r = consumeToken(b, MUL);\n if (!r) r = consumeToken(b, DIV);\n if (!r) r = consumeToken(b, REM);\n if (!r) r = consumeToken(b, INT_DIV);\n exit_section_(b, l, m, r, false, null);\n return r;\n }", "BaseNumber multiply(BaseNumber operand);", "public final EObject ruleAdditiveExpression() throws RecognitionException {\n EObject current = null;\n\n Token lv_op_2_1=null;\n Token lv_op_2_2=null;\n EObject this_MultiplicativeExpression_0 = null;\n\n EObject lv_right_3_0 = null;\n\n\n enterRule(); \n \n try {\n // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:632:28: ( (this_MultiplicativeExpression_0= ruleMultiplicativeExpression ( ( ( ( () ( ( ( '+' | '-' ) ) ) ) )=> ( () ( ( (lv_op_2_1= '+' | lv_op_2_2= '-' ) ) ) ) ) ( (lv_right_3_0= ruleMultiplicativeExpression ) ) )* ) )\n // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:633:1: (this_MultiplicativeExpression_0= ruleMultiplicativeExpression ( ( ( ( () ( ( ( '+' | '-' ) ) ) ) )=> ( () ( ( (lv_op_2_1= '+' | lv_op_2_2= '-' ) ) ) ) ) ( (lv_right_3_0= ruleMultiplicativeExpression ) ) )* )\n {\n // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:633:1: (this_MultiplicativeExpression_0= ruleMultiplicativeExpression ( ( ( ( () ( ( ( '+' | '-' ) ) ) ) )=> ( () ( ( (lv_op_2_1= '+' | lv_op_2_2= '-' ) ) ) ) ) ( (lv_right_3_0= ruleMultiplicativeExpression ) ) )* )\n // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:634:5: this_MultiplicativeExpression_0= ruleMultiplicativeExpression ( ( ( ( () ( ( ( '+' | '-' ) ) ) ) )=> ( () ( ( (lv_op_2_1= '+' | lv_op_2_2= '-' ) ) ) ) ) ( (lv_right_3_0= ruleMultiplicativeExpression ) ) )*\n {\n if ( state.backtracking==0 ) {\n \n newCompositeNode(grammarAccess.getAdditiveExpressionAccess().getMultiplicativeExpressionParserRuleCall_0()); \n \n }\n pushFollow(FOLLOW_ruleMultiplicativeExpression_in_ruleAdditiveExpression1447);\n this_MultiplicativeExpression_0=ruleMultiplicativeExpression();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n \n current = this_MultiplicativeExpression_0; \n afterParserOrEnumRuleCall();\n \n }\n // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:642:1: ( ( ( ( () ( ( ( '+' | '-' ) ) ) ) )=> ( () ( ( (lv_op_2_1= '+' | lv_op_2_2= '-' ) ) ) ) ) ( (lv_right_3_0= ruleMultiplicativeExpression ) ) )*\n loop10:\n do {\n int alt10=2;\n int LA10_0 = input.LA(1);\n\n if ( (LA10_0==33) ) {\n int LA10_2 = input.LA(2);\n\n if ( (synpred7_InternalJavaJRExpression()) ) {\n alt10=1;\n }\n\n\n }\n else if ( (LA10_0==34) ) {\n int LA10_3 = input.LA(2);\n\n if ( (synpred7_InternalJavaJRExpression()) ) {\n alt10=1;\n }\n\n\n }\n\n\n switch (alt10) {\n \tcase 1 :\n \t // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:642:2: ( ( ( () ( ( ( '+' | '-' ) ) ) ) )=> ( () ( ( (lv_op_2_1= '+' | lv_op_2_2= '-' ) ) ) ) ) ( (lv_right_3_0= ruleMultiplicativeExpression ) )\n \t {\n \t // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:642:2: ( ( ( () ( ( ( '+' | '-' ) ) ) ) )=> ( () ( ( (lv_op_2_1= '+' | lv_op_2_2= '-' ) ) ) ) )\n \t // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:642:3: ( ( () ( ( ( '+' | '-' ) ) ) ) )=> ( () ( ( (lv_op_2_1= '+' | lv_op_2_2= '-' ) ) ) )\n \t {\n \t // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:655:6: ( () ( ( (lv_op_2_1= '+' | lv_op_2_2= '-' ) ) ) )\n \t // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:655:7: () ( ( (lv_op_2_1= '+' | lv_op_2_2= '-' ) ) )\n \t {\n \t // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:655:7: ()\n \t // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:656:5: \n \t {\n \t if ( state.backtracking==0 ) {\n\n \t current = forceCreateModelElementAndSet(\n \t grammarAccess.getAdditiveExpressionAccess().getBinaryExpressionLeftAction_1_0_0_0(),\n \t current);\n \t \n \t }\n\n \t }\n\n \t // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:661:2: ( ( (lv_op_2_1= '+' | lv_op_2_2= '-' ) ) )\n \t // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:662:1: ( (lv_op_2_1= '+' | lv_op_2_2= '-' ) )\n \t {\n \t // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:662:1: ( (lv_op_2_1= '+' | lv_op_2_2= '-' ) )\n \t // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:663:1: (lv_op_2_1= '+' | lv_op_2_2= '-' )\n \t {\n \t // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:663:1: (lv_op_2_1= '+' | lv_op_2_2= '-' )\n \t int alt9=2;\n \t int LA9_0 = input.LA(1);\n\n \t if ( (LA9_0==33) ) {\n \t alt9=1;\n \t }\n \t else if ( (LA9_0==34) ) {\n \t alt9=2;\n \t }\n \t else {\n \t if (state.backtracking>0) {state.failed=true; return current;}\n \t NoViableAltException nvae =\n \t new NoViableAltException(\"\", 9, 0, input);\n\n \t throw nvae;\n \t }\n \t switch (alt9) {\n \t case 1 :\n \t // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:664:3: lv_op_2_1= '+'\n \t {\n \t lv_op_2_1=(Token)match(input,33,FOLLOW_33_in_ruleAdditiveExpression1519); if (state.failed) return current;\n \t if ( state.backtracking==0 ) {\n\n \t newLeafNode(lv_op_2_1, grammarAccess.getAdditiveExpressionAccess().getOpPlusSignKeyword_1_0_0_1_0_0());\n \t \n \t }\n \t if ( state.backtracking==0 ) {\n\n \t \t if (current==null) {\n \t \t current = createModelElement(grammarAccess.getAdditiveExpressionRule());\n \t \t }\n \t \t\tsetWithLastConsumed(current, \"op\", lv_op_2_1, null);\n \t \t \n \t }\n\n \t }\n \t break;\n \t case 2 :\n \t // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:676:8: lv_op_2_2= '-'\n \t {\n \t lv_op_2_2=(Token)match(input,34,FOLLOW_34_in_ruleAdditiveExpression1548); if (state.failed) return current;\n \t if ( state.backtracking==0 ) {\n\n \t newLeafNode(lv_op_2_2, grammarAccess.getAdditiveExpressionAccess().getOpHyphenMinusKeyword_1_0_0_1_0_1());\n \t \n \t }\n \t if ( state.backtracking==0 ) {\n\n \t \t if (current==null) {\n \t \t current = createModelElement(grammarAccess.getAdditiveExpressionRule());\n \t \t }\n \t \t\tsetWithLastConsumed(current, \"op\", lv_op_2_2, null);\n \t \t \n \t }\n\n \t }\n \t break;\n\n \t }\n\n\n \t }\n\n\n \t }\n\n\n \t }\n\n\n \t }\n\n \t // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:691:4: ( (lv_right_3_0= ruleMultiplicativeExpression ) )\n \t // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:692:1: (lv_right_3_0= ruleMultiplicativeExpression )\n \t {\n \t // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:692:1: (lv_right_3_0= ruleMultiplicativeExpression )\n \t // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:693:3: lv_right_3_0= ruleMultiplicativeExpression\n \t {\n \t if ( state.backtracking==0 ) {\n \t \n \t \t newCompositeNode(grammarAccess.getAdditiveExpressionAccess().getRightMultiplicativeExpressionParserRuleCall_1_1_0()); \n \t \t \n \t }\n \t pushFollow(FOLLOW_ruleMultiplicativeExpression_in_ruleAdditiveExpression1587);\n \t lv_right_3_0=ruleMultiplicativeExpression();\n\n \t state._fsp--;\n \t if (state.failed) return current;\n \t if ( state.backtracking==0 ) {\n\n \t \t if (current==null) {\n \t \t current = createModelElementForParent(grammarAccess.getAdditiveExpressionRule());\n \t \t }\n \t \t\tset(\n \t \t\t\tcurrent, \n \t \t\t\t\"right\",\n \t \t\tlv_right_3_0, \n \t \t\t\"MultiplicativeExpression\");\n \t \t afterParserOrEnumRuleCall();\n \t \t \n \t }\n\n \t }\n\n\n \t }\n\n\n \t }\n \t break;\n\n \tdefault :\n \t break loop10;\n }\n } while (true);\n\n\n }\n\n\n }\n\n if ( state.backtracking==0 ) {\n leaveRule(); \n }\n }\n \n catch (RecognitionException re) { \n recover(input,re); \n appendSkippedTokens();\n } \n finally {\n }\n return current;\n }", "public final void additionExp() throws RecognitionException {\n\t\ttry {\n\t\t\t// Exp.g:23:5: ( multiplyExp ( '+' multiplyExp | '-' multiplyExp )* )\n\t\t\t// Exp.g:23:10: multiplyExp ( '+' multiplyExp | '-' multiplyExp )*\n\t\t\t{\n\t\t\tpushFollow(FOLLOW_multiplyExp_in_additionExp60);\n\t\t\tmultiplyExp();\n\t\t\tstate._fsp--;\n\n\t\t\t// Exp.g:24:10: ( '+' multiplyExp | '-' multiplyExp )*\n\t\t\tloop1:\n\t\t\twhile (true) {\n\t\t\t\tint alt1=3;\n\t\t\t\tint LA1_0 = input.LA(1);\n\t\t\t\tif ( (LA1_0==9) ) {\n\t\t\t\t\talt1=1;\n\t\t\t\t}\n\t\t\t\telse if ( (LA1_0==10) ) {\n\t\t\t\t\talt1=2;\n\t\t\t\t}\n\n\t\t\t\tswitch (alt1) {\n\t\t\t\tcase 1 :\n\t\t\t\t\t// Exp.g:24:12: '+' multiplyExp\n\t\t\t\t\t{\n\t\t\t\t\tmatch(input,9,FOLLOW_9_in_additionExp73); \n\t\t\t\t\tpushFollow(FOLLOW_multiplyExp_in_additionExp75);\n\t\t\t\t\tmultiplyExp();\n\t\t\t\t\tstate._fsp--;\n\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase 2 :\n\t\t\t\t\t// Exp.g:25:12: '-' multiplyExp\n\t\t\t\t\t{\n\t\t\t\t\tmatch(input,10,FOLLOW_10_in_additionExp88); \n\t\t\t\t\tpushFollow(FOLLOW_multiplyExp_in_additionExp90);\n\t\t\t\t\tmultiplyExp();\n\t\t\t\t\tstate._fsp--;\n\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\n\t\t\t\tdefault :\n\t\t\t\t\tbreak loop1;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t}\n\n\t\t}\n\t\tcatch (RecognitionException re) {\n\t\t\treportError(re);\n\t\t\trecover(input,re);\n\t\t}\n\t\tfinally {\n\t\t\t// do for sure before leaving\n\t\t}\n\t}", "public final void mEXPONENT() throws RecognitionException {\r\n try {\r\n if (this.input.LA(1) == 'E' || this.input.LA(1) == 'e') {\r\n this.input.consume();\r\n\r\n } else {\r\n final MismatchedSetException mse = new MismatchedSetException(null, this.input);\r\n this.recover(mse);\r\n throw mse;\r\n }\r\n // /Users/Marco/Desktop/Tesi Davide/Antlr-doc/SparqlMarco.g:83:22: ( '+' | '-' )?\r\n int alt18 = 2;\r\n final int LA18_0 = this.input.LA(1);\r\n if (LA18_0 == '+' || LA18_0 == '-') {\r\n alt18 = 1;\r\n }\r\n switch (alt18) {\r\n case 1:\r\n // /Users/Marco/Desktop/Tesi Davide/Antlr-doc/SparqlMarco.g:\r\n {\r\n if (this.input.LA(1) == '+' || this.input.LA(1) == '-') {\r\n this.input.consume();\r\n\r\n } else {\r\n final MismatchedSetException mse = new MismatchedSetException(null,\r\n this.input);\r\n this.recover(mse);\r\n throw mse;\r\n }\r\n\r\n }\r\n break;\r\n\r\n }\r\n // /Users/Marco/Desktop/Tesi Davide/Antlr-doc/SparqlMarco.g:83:33: ( '0' .. '9'\r\n // )+\r\n int cnt19 = 0;\r\n loop19: do {\r\n int alt19 = 2;\r\n final int LA19_0 = this.input.LA(1);\r\n\r\n if (LA19_0 >= '0' && LA19_0 <= '9') {\r\n alt19 = 1;\r\n }\r\n\r\n switch (alt19) {\r\n case 1:\r\n // /Users/Marco/Desktop/Tesi Davide/Antlr-doc/SparqlMarco.g:83:34: '0'\r\n // .. '9'\r\n {\r\n this.matchRange('0', '9');\r\n\r\n }\r\n break;\r\n\r\n default:\r\n if (cnt19 >= 1) {\r\n break loop19;\r\n }\r\n final EarlyExitException eee = new EarlyExitException(19, this.input);\r\n throw eee;\r\n }\r\n cnt19++;\r\n } while (true);\r\n\r\n } finally {\r\n }\r\n }", "@Test(priority=3)\n\n\tpublic void multiplicationTest() {\n\n\t\tandroidCalculator = new AndroidCalculator(driver);\n\n\t\tandroidCalculator.inputLeftAndRightFields(\"20\", \"10\");\n\t\tandroidCalculator.multiplication();;\n\n\t\tAssert.assertEquals(androidCalculator.verifyResult(), 20*10);\n\t}", "double parseExpression() {\n double x = parseTerm();\n for (;;) {\n if (eat('+')) x += parseTerm(); // addition\n else if (eat('-')) x -= parseTerm(); // subtraction\n else return x;\n }\n }", "double parseExpression() {\n double x = parseTerm();\n for (;;) {\n if (eat('+')) x += parseTerm(); // addition\n else if (eat('-')) x -= parseTerm(); // subtraction\n else return x;\n }\n }", "@Test\r\n\tpublic void multiplicationwithZeroExample() {\r\n\t\tOldFashionPound call = new OldFashionPound();\r\n\t\tString result = call.multiplication(\"5p 17s 8d\", 0);\r\n\t\tString expected = (\"0p 0s 0d\");\r\n\t\tAssert.assertEquals(expected, result);\r\n\t}", "public final EObject ruleMultiplicativeExpression() throws RecognitionException {\n EObject current = null;\n\n EObject this_PowerExpression_0 = null;\n\n EObject lv_rightParts_2_0 = null;\n\n\n EObject temp=null; setCurrentLookahead(); resetLookahead(); \n \n try {\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:3832:6: ( (this_PowerExpression_0= rulePowerExpression ( () ( (lv_rightParts_2_0= ruleMultiplicativeExpressionPart ) )+ )? ) )\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:3833:1: (this_PowerExpression_0= rulePowerExpression ( () ( (lv_rightParts_2_0= ruleMultiplicativeExpressionPart ) )+ )? )\n {\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:3833:1: (this_PowerExpression_0= rulePowerExpression ( () ( (lv_rightParts_2_0= ruleMultiplicativeExpressionPart ) )+ )? )\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:3834:5: this_PowerExpression_0= rulePowerExpression ( () ( (lv_rightParts_2_0= ruleMultiplicativeExpressionPart ) )+ )?\n {\n \n currentNode=createCompositeNode(grammarAccess.getMultiplicativeExpressionAccess().getPowerExpressionParserRuleCall_0(), currentNode); \n \n pushFollow(FOLLOW_rulePowerExpression_in_ruleMultiplicativeExpression6551);\n this_PowerExpression_0=rulePowerExpression();\n _fsp--;\n\n \n current = this_PowerExpression_0; \n currentNode = currentNode.getParent();\n \n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:3842:1: ( () ( (lv_rightParts_2_0= ruleMultiplicativeExpressionPart ) )+ )?\n int alt58=2;\n int LA58_0 = input.LA(1);\n\n if ( ((LA58_0>=58 && LA58_0<=59)||(LA58_0>=71 && LA58_0<=72)) ) {\n alt58=1;\n }\n switch (alt58) {\n case 1 :\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:3842:2: () ( (lv_rightParts_2_0= ruleMultiplicativeExpressionPart ) )+\n {\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:3842:2: ()\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:3843:5: \n {\n \n temp=factory.create(grammarAccess.getMultiplicativeExpressionAccess().getMultiplicativeExpressionLeftOperandAction_1_0().getType().getClassifier());\n try {\n \tfactory.set(temp, \"leftOperand\", current, null /*ParserRule*/, currentNode);\n } catch(ValueConverterException vce) {\n \thandleValueConverterException(vce);\n }\n current = temp; \n temp = null;\n CompositeNode newNode = createCompositeNode(grammarAccess.getMultiplicativeExpressionAccess().getMultiplicativeExpressionLeftOperandAction_1_0(), currentNode.getParent());\n newNode.getChildren().add(currentNode);\n moveLookaheadInfo(currentNode, newNode);\n currentNode = newNode; \n associateNodeWithAstElement(currentNode, current); \n \n\n }\n\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:3858:2: ( (lv_rightParts_2_0= ruleMultiplicativeExpressionPart ) )+\n int cnt57=0;\n loop57:\n do {\n int alt57=2;\n int LA57_0 = input.LA(1);\n\n if ( ((LA57_0>=58 && LA57_0<=59)||(LA57_0>=71 && LA57_0<=72)) ) {\n alt57=1;\n }\n\n\n switch (alt57) {\n \tcase 1 :\n \t // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:3859:1: (lv_rightParts_2_0= ruleMultiplicativeExpressionPart )\n \t {\n \t // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:3859:1: (lv_rightParts_2_0= ruleMultiplicativeExpressionPart )\n \t // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:3860:3: lv_rightParts_2_0= ruleMultiplicativeExpressionPart\n \t {\n \t \n \t \t currentNode=createCompositeNode(grammarAccess.getMultiplicativeExpressionAccess().getRightPartsMultiplicativeExpressionPartParserRuleCall_1_1_0(), currentNode); \n \t \t \n \t pushFollow(FOLLOW_ruleMultiplicativeExpressionPart_in_ruleMultiplicativeExpression6581);\n \t lv_rightParts_2_0=ruleMultiplicativeExpressionPart();\n \t _fsp--;\n\n\n \t \t if (current==null) {\n \t \t current = factory.create(grammarAccess.getMultiplicativeExpressionRule().getType().getClassifier());\n \t \t associateNodeWithAstElement(currentNode.getParent(), current);\n \t \t }\n \t \t try {\n \t \t \t\tadd(\n \t \t \t\t\tcurrent, \n \t \t \t\t\t\"rightParts\",\n \t \t \t\tlv_rightParts_2_0, \n \t \t \t\t\"MultiplicativeExpressionPart\", \n \t \t \t\tcurrentNode);\n \t \t } catch (ValueConverterException vce) {\n \t \t\t\t\thandleValueConverterException(vce);\n \t \t }\n \t \t currentNode = currentNode.getParent();\n \t \t \n\n \t }\n\n\n \t }\n \t break;\n\n \tdefault :\n \t if ( cnt57 >= 1 ) break loop57;\n EarlyExitException eee =\n new EarlyExitException(57, input);\n throw eee;\n }\n cnt57++;\n } while (true);\n\n\n }\n break;\n\n }\n\n\n }\n\n\n }\n\n resetLookahead(); \n \tlastConsumedNode = currentNode;\n \n }\n \n catch (RecognitionException re) { \n recover(input,re); \n appendSkippedTokens();\n } \n finally {\n }\n return current;\n }", "Expression powerExpression() throws SyntaxException {\r\n\t\tToken first = t;\r\n\t\tExpression e0 = unaryExpression();\r\n\t\tif (isKind(OP_POWER)) {\r\n\t\t\tToken op = consume();\r\n\t\t\tExpression e1 = powerExpression();\r\n\t\t\treturn new ExpressionBinary(first, e0, op, e1);\r\n\t\t}\r\n\t\treturn e0;\r\n\t}", "protected void sequence_Multiplication(ISerializationContext context, Div semanticObject) {\n\t\tif (errorAcceptor != null) {\n\t\t\tif (transientValues.isValueTransient(semanticObject, DslPackage.Literals.DIV__LEFT) == ValueTransient.YES)\n\t\t\t\terrorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, DslPackage.Literals.DIV__LEFT));\n\t\t\tif (transientValues.isValueTransient(semanticObject, DslPackage.Literals.DIV__RIGHT) == ValueTransient.YES)\n\t\t\t\terrorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, DslPackage.Literals.DIV__RIGHT));\n\t\t}\n\t\tSequenceFeeder feeder = createSequencerFeeder(context, semanticObject);\n\t\tfeeder.accept(grammarAccess.getMultiplicationAccess().getDivLeftAction_1_0_1_0(), semanticObject.getLeft());\n\t\tfeeder.accept(grammarAccess.getMultiplicationAccess().getRightPrimaryExpressionParserRuleCall_1_1_0(), semanticObject.getRight());\n\t\tfeeder.finish();\n\t}", "public static boolean MultiplicativeOperator(PsiBuilder b, int l) {\n if (!recursion_guard_(b, l, \"MultiplicativeOperator\")) return false;\n boolean r;\n Marker m = enter_section_(b, l, _NONE_, MULTIPLICATIVE_OPERATOR, \"<multiplicative operator>\");\n r = consumeToken(b, STAR_SIGN);\n if (!r) r = consumeToken(b, K_DIV);\n if (!r) r = consumeToken(b, K_IDIV);\n if (!r) r = consumeToken(b, K_MOD);\n exit_section_(b, l, m, r, false, null);\n return r;\n }", "public static int multiplyOrDivide(Buffer lexemes) {\n int value = numberOrBrackets(lexemes);\n while (true) {\n Lexeme lexeme = lexemes.next();\n switch (lexeme.type) {\n case MULTIPLICATION:\n value *= numberOrBrackets(lexemes);\n break;\n case DIVISION:\n value /= numberOrBrackets(lexemes);\n break;\n case END_OF_LINE:\n case CLOSE_BRACKET:\n case PLUS:\n case MINUS:\n lexemes.back();\n return value;\n default:\n throw new RuntimeException(\"Unexpected token: \" + lexeme.value\n + \" at position: \" + lexemes.getPos());\n }\n }\n }", "private Expr mult(Expr x) throws Err {\n if (x instanceof ExprUnary) {\n ExprUnary y=(ExprUnary)x;\n if (y.op==ExprUnary.Op.SOME) return ExprUnary.Op.SOMEOF.make(y.pos, y.sub);\n if (y.op==ExprUnary.Op.LONE) return ExprUnary.Op.LONEOF.make(y.pos, y.sub);\n if (y.op==ExprUnary.Op.ONE) return ExprUnary.Op.ONEOF.make(y.pos, y.sub);\n }\n return x;\n }", "private void mul() {\n\n\t}", "@Override\r\n\tpublic int mul() {\n\t\treturn 0;\r\n\t}", "public final void ruleXMultiplicativeExpression() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:699:2: ( ( ( rule__XMultiplicativeExpression__Group__0 ) ) )\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:700:1: ( ( rule__XMultiplicativeExpression__Group__0 ) )\n {\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:700:1: ( ( rule__XMultiplicativeExpression__Group__0 ) )\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:701:1: ( rule__XMultiplicativeExpression__Group__0 )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXMultiplicativeExpressionAccess().getGroup()); \n }\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:702:1: ( rule__XMultiplicativeExpression__Group__0 )\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:702:2: rule__XMultiplicativeExpression__Group__0\n {\n pushFollow(FOLLOW_rule__XMultiplicativeExpression__Group__0_in_ruleXMultiplicativeExpression1427);\n rule__XMultiplicativeExpression__Group__0();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXMultiplicativeExpressionAccess().getGroup()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public final Expr addExpr() throws RecognitionException {\n Expr result = null;\n\n int addExpr_StartIndex = input.index();\n\n Token op=null;\n Expr lhs =null;\n\n Expr rhs =null;\n\n\n try {\n if ( state.backtracking>0 && alreadyParsedRule(input, 11) ) { return result; }\n\n // /home/jahn/workspace1/QLAndroid/src/org/uva/sea/ql/parser/antlr/QL.g:124:5: (lhs= mulExpr (op= ( '+' | '-' ) rhs= mulExpr )* )\n // /home/jahn/workspace1/QLAndroid/src/org/uva/sea/ql/parser/antlr/QL.g:124:9: lhs= mulExpr (op= ( '+' | '-' ) rhs= mulExpr )*\n {\n pushFollow(FOLLOW_mulExpr_in_addExpr547);\n lhs=mulExpr();\n\n state._fsp--;\n if (state.failed) return result;\n\n if ( state.backtracking==0 ) { result =lhs; }\n\n // /home/jahn/workspace1/QLAndroid/src/org/uva/sea/ql/parser/antlr/QL.g:124:46: (op= ( '+' | '-' ) rhs= mulExpr )*\n loop8:\n do {\n int alt8=2;\n int LA8_0 = input.LA(1);\n\n if ( ((LA8_0 >= 21 && LA8_0 <= 22)) ) {\n alt8=1;\n }\n\n\n switch (alt8) {\n \tcase 1 :\n \t // /home/jahn/workspace1/QLAndroid/src/org/uva/sea/ql/parser/antlr/QL.g:124:48: op= ( '+' | '-' ) rhs= mulExpr\n \t {\n \t op=(Token)input.LT(1);\n\n \t if ( (input.LA(1) >= 21 && input.LA(1) <= 22) ) {\n \t input.consume();\n \t state.errorRecovery=false;\n \t state.failed=false;\n \t }\n \t else {\n \t if (state.backtracking>0) {state.failed=true; return result;}\n \t MismatchedSetException mse = new MismatchedSetException(null,input);\n \t throw mse;\n \t }\n\n\n \t pushFollow(FOLLOW_mulExpr_in_addExpr565);\n \t rhs=mulExpr();\n\n \t state._fsp--;\n \t if (state.failed) return result;\n\n \t if ( state.backtracking==0 ) { \n \t if ((op!=null?op.getText():null).equals(\"+\")) {\n \t result = new Add(result, rhs);\n \t }\n \t if ((op!=null?op.getText():null).equals(\"-\")) {\n \t result = new Sub(result, rhs); \n \t }\n \t }\n\n \t }\n \t break;\n\n \tdefault :\n \t break loop8;\n }\n } while (true);\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n\n finally {\n \t// do for sure before leaving\n if ( state.backtracking>0 ) { memoize(input, 11, addExpr_StartIndex); }\n\n }\n return result;\n }", "public final VecMathParser.expr_return expr() throws RecognitionException {\n VecMathParser.expr_return retval = new VecMathParser.expr_return();\n retval.start = input.LT(1);\n\n Object root_0 = null;\n\n Token char_literal8=null;\n VecMathParser.multExpr_return multExpr7 = null;\n\n VecMathParser.multExpr_return multExpr9 = null;\n\n\n Object char_literal8_tree=null;\n\n try {\n // /Users/parrt/research/book/TPDSL/Book/code/walking/tree-grammar/VecMath.g:15:5: ( multExpr ( '+' multExpr )* )\n // /Users/parrt/research/book/TPDSL/Book/code/walking/tree-grammar/VecMath.g:15:7: multExpr ( '+' multExpr )*\n {\n root_0 = (Object)adaptor.nil();\n\n pushFollow(FOLLOW_multExpr_in_expr117);\n multExpr7=multExpr();\n\n state._fsp--;\n\n adaptor.addChild(root_0, multExpr7.getTree());\n // /Users/parrt/research/book/TPDSL/Book/code/walking/tree-grammar/VecMath.g:15:16: ( '+' multExpr )*\n loop3:\n do {\n int alt3=2;\n int LA3_0 = input.LA(1);\n\n if ( (LA3_0==10) ) {\n alt3=1;\n }\n\n\n switch (alt3) {\n \tcase 1 :\n \t // /Users/parrt/research/book/TPDSL/Book/code/walking/tree-grammar/VecMath.g:15:17: '+' multExpr\n \t {\n \t char_literal8=(Token)match(input,10,FOLLOW_10_in_expr120); \n \t char_literal8_tree = (Object)adaptor.create(char_literal8);\n \t root_0 = (Object)adaptor.becomeRoot(char_literal8_tree, root_0);\n\n \t pushFollow(FOLLOW_multExpr_in_expr123);\n \t multExpr9=multExpr();\n\n \t state._fsp--;\n\n \t adaptor.addChild(root_0, multExpr9.getTree());\n\n \t }\n \t break;\n\n \tdefault :\n \t break loop3;\n }\n } while (true);\n\n\n }\n\n retval.stop = input.LT(-1);\n\n retval.tree = (Object)adaptor.rulePostProcessing(root_0);\n adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n \tretval.tree = (Object)adaptor.errorNode(input, retval.start, input.LT(-1), re);\n\n }\n finally {\n }\n return retval;\n }", "public void visit(MultiplicativeExpression n) {\n n.f0.accept(this);\n n.f1.accept(this);\n }", "public static NumberP Multiplication(NumberP first, NumberP second)\n {\n return OperationsManaged.PerformArithmeticOperation\n (\n first, second, ExistingOperations.Multiplication\n ); \t\n }", "abstract int multiplication(int num1, int num2);", "public final EObject ruleAddition() throws RecognitionException {\n EObject current = null;\n\n Token otherlv_2=null;\n Token otherlv_4=null;\n EObject this_Multiplication_0 = null;\n\n EObject lv_right_5_0 = null;\n\n\n enterRule(); \n \n try {\n // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:4104:28: ( (this_Multiplication_0= ruleMultiplication ( ( ( () otherlv_2= '+' ) | ( () otherlv_4= '-' ) ) ( (lv_right_5_0= ruleMultiplication ) ) )* ) )\n // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:4105:1: (this_Multiplication_0= ruleMultiplication ( ( ( () otherlv_2= '+' ) | ( () otherlv_4= '-' ) ) ( (lv_right_5_0= ruleMultiplication ) ) )* )\n {\n // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:4105:1: (this_Multiplication_0= ruleMultiplication ( ( ( () otherlv_2= '+' ) | ( () otherlv_4= '-' ) ) ( (lv_right_5_0= ruleMultiplication ) ) )* )\n // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:4106:5: this_Multiplication_0= ruleMultiplication ( ( ( () otherlv_2= '+' ) | ( () otherlv_4= '-' ) ) ( (lv_right_5_0= ruleMultiplication ) ) )*\n {\n \n newCompositeNode(grammarAccess.getAdditionAccess().getMultiplicationParserRuleCall_0()); \n \n pushFollow(FOLLOW_ruleMultiplication_in_ruleAddition9227);\n this_Multiplication_0=ruleMultiplication();\n\n state._fsp--;\n\n \n current = this_Multiplication_0; \n afterParserOrEnumRuleCall();\n \n // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:4114:1: ( ( ( () otherlv_2= '+' ) | ( () otherlv_4= '-' ) ) ( (lv_right_5_0= ruleMultiplication ) ) )*\n loop39:\n do {\n int alt39=2;\n int LA39_0 = input.LA(1);\n\n if ( ((LA39_0>=66 && LA39_0<=67)) ) {\n alt39=1;\n }\n\n\n switch (alt39) {\n \tcase 1 :\n \t // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:4114:2: ( ( () otherlv_2= '+' ) | ( () otherlv_4= '-' ) ) ( (lv_right_5_0= ruleMultiplication ) )\n \t {\n \t // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:4114:2: ( ( () otherlv_2= '+' ) | ( () otherlv_4= '-' ) )\n \t int alt38=2;\n \t int LA38_0 = input.LA(1);\n\n \t if ( (LA38_0==66) ) {\n \t alt38=1;\n \t }\n \t else if ( (LA38_0==67) ) {\n \t alt38=2;\n \t }\n \t else {\n \t NoViableAltException nvae =\n \t new NoViableAltException(\"\", 38, 0, input);\n\n \t throw nvae;\n \t }\n \t switch (alt38) {\n \t case 1 :\n \t // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:4114:3: ( () otherlv_2= '+' )\n \t {\n \t // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:4114:3: ( () otherlv_2= '+' )\n \t // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:4114:4: () otherlv_2= '+'\n \t {\n \t // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:4114:4: ()\n \t // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:4115:5: \n \t {\n\n \t current = forceCreateModelElementAndSet(\n \t grammarAccess.getAdditionAccess().getPlusLeftAction_1_0_0_0(),\n \t current);\n \t \n\n \t }\n\n \t otherlv_2=(Token)match(input,66,FOLLOW_66_in_ruleAddition9250); \n\n \t \tnewLeafNode(otherlv_2, grammarAccess.getAdditionAccess().getPlusSignKeyword_1_0_0_1());\n \t \n\n \t }\n\n\n \t }\n \t break;\n \t case 2 :\n \t // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:4125:6: ( () otherlv_4= '-' )\n \t {\n \t // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:4125:6: ( () otherlv_4= '-' )\n \t // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:4125:7: () otherlv_4= '-'\n \t {\n \t // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:4125:7: ()\n \t // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:4126:5: \n \t {\n\n \t current = forceCreateModelElementAndSet(\n \t grammarAccess.getAdditionAccess().getMinusLeftAction_1_0_1_0(),\n \t current);\n \t \n\n \t }\n\n \t otherlv_4=(Token)match(input,67,FOLLOW_67_in_ruleAddition9279); \n\n \t \tnewLeafNode(otherlv_4, grammarAccess.getAdditionAccess().getHyphenMinusKeyword_1_0_1_1());\n \t \n\n \t }\n\n\n \t }\n \t break;\n\n \t }\n\n \t // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:4135:3: ( (lv_right_5_0= ruleMultiplication ) )\n \t // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:4136:1: (lv_right_5_0= ruleMultiplication )\n \t {\n \t // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:4136:1: (lv_right_5_0= ruleMultiplication )\n \t // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:4137:3: lv_right_5_0= ruleMultiplication\n \t {\n \t \n \t \t newCompositeNode(grammarAccess.getAdditionAccess().getRightMultiplicationParserRuleCall_1_1_0()); \n \t \t \n \t pushFollow(FOLLOW_ruleMultiplication_in_ruleAddition9302);\n \t lv_right_5_0=ruleMultiplication();\n\n \t state._fsp--;\n\n\n \t \t if (current==null) {\n \t \t current = createModelElementForParent(grammarAccess.getAdditionRule());\n \t \t }\n \t \t\tset(\n \t \t\t\tcurrent, \n \t \t\t\t\"right\",\n \t \t\tlv_right_5_0, \n \t \t\t\"Multiplication\");\n \t \t afterParserOrEnumRuleCall();\n \t \t \n\n \t }\n\n\n \t }\n\n\n \t }\n \t break;\n\n \tdefault :\n \t break loop39;\n }\n } while (true);\n\n\n }\n\n\n }\n\n leaveRule(); \n }\n \n catch (RecognitionException re) { \n recover(input,re); \n appendSkippedTokens();\n } \n finally {\n }\n return current;\n }", "int parseExpression() {\r\n\t\t\t\tint x = parseTerm();\r\n\t\t\t\tfor (;;) {\r\n\t\t\t\t\tif (eat('+'))\r\n\t\t\t\t\t\tx += parseTerm(); // addition\r\n\t\t\t\t\telse if (eat('-'))\r\n\t\t\t\t\t\tx -= parseTerm(); // subtraction\r\n\t\t\t\t\telse\r\n\t\t\t\t\t\treturn x;\r\n\t\t\t\t}\r\n\t\t\t}", "public final CQLParser.additiveExpression_return additiveExpression() throws RecognitionException {\n CQLParser.additiveExpression_return retval = new CQLParser.additiveExpression_return();\n retval.start = input.LT(1);\n\n Object root_0 = null;\n\n Token set97=null;\n CQLParser.multiplicativeExpression_return multiplicativeExpression96 = null;\n\n CQLParser.multiplicativeExpression_return multiplicativeExpression98 = null;\n\n\n Object set97_tree=null;\n\n try {\n // /home/chinaski/programming/agile_workspace/ExplorerCat/src/main/antlr3/net/explorercat/cql/parser/CQL.g:400:2: ( multiplicativeExpression ( ( PLUS | DIFF ) multiplicativeExpression )* )\n // /home/chinaski/programming/agile_workspace/ExplorerCat/src/main/antlr3/net/explorercat/cql/parser/CQL.g:400:4: multiplicativeExpression ( ( PLUS | DIFF ) multiplicativeExpression )*\n {\n root_0 = (Object)adaptor.nil();\n\n pushFollow(FOLLOW_multiplicativeExpression_in_additiveExpression1862);\n multiplicativeExpression96=multiplicativeExpression();\n\n state._fsp--;\n\n adaptor.addChild(root_0, multiplicativeExpression96.getTree());\n // /home/chinaski/programming/agile_workspace/ExplorerCat/src/main/antlr3/net/explorercat/cql/parser/CQL.g:400:29: ( ( PLUS | DIFF ) multiplicativeExpression )*\n loop26:\n do {\n int alt26=2;\n int LA26_0 = input.LA(1);\n\n if ( ((LA26_0>=PLUS && LA26_0<=DIFF)) ) {\n alt26=1;\n }\n\n\n switch (alt26) {\n \tcase 1 :\n \t // /home/chinaski/programming/agile_workspace/ExplorerCat/src/main/antlr3/net/explorercat/cql/parser/CQL.g:400:30: ( PLUS | DIFF ) multiplicativeExpression\n \t {\n \t set97=(Token)input.LT(1);\n \t set97=(Token)input.LT(1);\n \t if ( (input.LA(1)>=PLUS && input.LA(1)<=DIFF) ) {\n \t input.consume();\n \t root_0 = (Object)adaptor.becomeRoot((Object)adaptor.create(set97), root_0);\n \t state.errorRecovery=false;\n \t }\n \t else {\n \t MismatchedSetException mse = new MismatchedSetException(null,input);\n \t throw mse;\n \t }\n\n \t pushFollow(FOLLOW_multiplicativeExpression_in_additiveExpression1872);\n \t multiplicativeExpression98=multiplicativeExpression();\n\n \t state._fsp--;\n\n \t adaptor.addChild(root_0, multiplicativeExpression98.getTree());\n\n \t }\n \t break;\n\n \tdefault :\n \t break loop26;\n }\n } while (true);\n\n\n }\n\n retval.stop = input.LT(-1);\n\n retval.tree = (Object)adaptor.rulePostProcessing(root_0);\n adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);\n\n }\n \t\n \tcatch(RecognitionException re)\n \t{\t\n \t\treportError(re);\n \t\tthrow re;\n \t}\n finally {\n }\n return retval;\n }", "NumericExpression createNumericExpression();", "public void testMultiply() {\r\n System.out.println(\"Multiply\");\r\n Double [][] n = new Double[][]{{-3., -2.5, -1., 0., 1., 2., 3.4, 3.5, 1.1E100, -1.1E100}, \r\n {-3., 2.5, 0., 0., 1., -2., 3., 3.7, 1.1E100, 1.1E100}, \r\n {9., -6.25, 0., 0., 1., -4., 10.2, 12.95, 1.21E200, -1.21E200}};\r\n for(int i = 0; i < 10; i++){\r\n Double x = n[0][i];\r\n Double y = n[1][i];\r\n double expResult = n[2][i];\r\n double result = MathOp.Multiply(x, y);\r\n assertEquals(expResult, result, 0.001);\r\n }\r\n }", "public Polynomial visit(ProductExpression expression) {\n return Polynomial.multiply(\n expression.getLeft().accept(this),\n expression.getRight().accept(this));\n }", "public final void rule__AstExpressionMultiplicative__Group_1__0__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:18338:1: ( ( () ) )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:18339:1: ( () )\n {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:18339:1: ( () )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:18340:1: ()\n {\n before(grammarAccess.getAstExpressionMultiplicativeAccess().getAstExpressionBinaryLeftAction_1_0()); \n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:18341:1: ()\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:18343:1: \n {\n }\n\n after(grammarAccess.getAstExpressionMultiplicativeAccess().getAstExpressionBinaryLeftAction_1_0()); \n\n }\n\n\n }\n\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public final void rule__XMultiplicativeExpression__FeatureAssignment_1_0_0_1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:12396:1: ( ( ( ruleOpMulti ) ) )\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:12397:1: ( ( ruleOpMulti ) )\n {\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:12397:1: ( ( ruleOpMulti ) )\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:12398:1: ( ruleOpMulti )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXMultiplicativeExpressionAccess().getFeatureJvmIdentifiableElementCrossReference_1_0_0_1_0()); \n }\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:12399:1: ( ruleOpMulti )\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:12400:1: ruleOpMulti\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXMultiplicativeExpressionAccess().getFeatureJvmIdentifiableElementOpMultiParserRuleCall_1_0_0_1_0_1()); \n }\n pushFollow(FOLLOW_ruleOpMulti_in_rule__XMultiplicativeExpression__FeatureAssignment_1_0_0_124876);\n ruleOpMulti();\n\n state._fsp--;\n if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXMultiplicativeExpressionAccess().getFeatureJvmIdentifiableElementOpMultiParserRuleCall_1_0_0_1_0_1()); \n }\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXMultiplicativeExpressionAccess().getFeatureJvmIdentifiableElementCrossReference_1_0_0_1_0()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public Mult(Expression left, Expression right) {\n super(left, right);\n }", "public Mult(Expression left, Expression right) {\n super(left, right);\n }", "public static BinaryExpression powerAssign(Expression expression0, Expression expression1) { throw Extensions.todo(); }", "@Override\n\tpublic float multiplicar(float op1, float op2) {\n\t\treturn op1 * op2;\n\t}", "public final void rule__XAdditiveExpression__RightOperandAssignment_1_1() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \t\r\n try {\r\n // InternalDroneScript.g:17649:1: ( ( ruleXMultiplicativeExpression ) )\r\n // InternalDroneScript.g:17650:2: ( ruleXMultiplicativeExpression )\r\n {\r\n // InternalDroneScript.g:17650:2: ( ruleXMultiplicativeExpression )\r\n // InternalDroneScript.g:17651:3: ruleXMultiplicativeExpression\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getXAdditiveExpressionAccess().getRightOperandXMultiplicativeExpressionParserRuleCall_1_1_0()); \r\n }\r\n pushFollow(FOLLOW_2);\r\n ruleXMultiplicativeExpression();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getXAdditiveExpressionAccess().getRightOperandXMultiplicativeExpressionParserRuleCall_1_1_0()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "private CalculatableNode nextNode() throws IOException {\n\t\tint ttype;\n\t\tttype = tokenizer.nextToken();\n\t\tif (ttype == StreamTokenizer.TT_NUMBER) {\n\t\t\treturn new NumericalNode((int) tokenizer.nval);\n\t\t}\n\t\tif (ttype >= 0) {\n\t\t\t// sign character such as +-*/()\n\t\t\tchar sign = (char) tokenizer.ttype;\n\t\t\tif (sign == '(') {\n\t\t\t\tCalculatableNode node = parseNode();\n\t\t\t\treturn node;\n\t\t\t}\n\t\t}\n\t\tthrow new IllegalFormulaException(\"数式が不正です\");\n\t}", "public final void rule__XMultiplicativeExpression__FeatureAssignment_1_0_0_1() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:17641:1: ( ( ( ruleOpMulti ) ) )\r\n // ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:17642:1: ( ( ruleOpMulti ) )\r\n {\r\n // ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:17642:1: ( ( ruleOpMulti ) )\r\n // ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:17643:1: ( ruleOpMulti )\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getXMultiplicativeExpressionAccess().getFeatureJvmIdentifiableElementCrossReference_1_0_0_1_0()); \r\n }\r\n // ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:17644:1: ( ruleOpMulti )\r\n // ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:17645:1: ruleOpMulti\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getXMultiplicativeExpressionAccess().getFeatureJvmIdentifiableElementOpMultiParserRuleCall_1_0_0_1_0_1()); \r\n }\r\n pushFollow(FOLLOW_ruleOpMulti_in_rule__XMultiplicativeExpression__FeatureAssignment_1_0_0_135628);\r\n ruleOpMulti();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getXMultiplicativeExpressionAccess().getFeatureJvmIdentifiableElementOpMultiParserRuleCall_1_0_0_1_0_1()); \r\n }\r\n\r\n }\r\n\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getXMultiplicativeExpressionAccess().getFeatureJvmIdentifiableElementCrossReference_1_0_0_1_0()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "public void mul() {\n //TODO: Fill in this method, then remove the RuntimeException\n throw new RuntimeException(\"RatPolyStack->mul() unimplemented!\\n\");\n }", "public final void rule__AstExpressionAdditive__Group__0__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:18122:1: ( ( ruleAstExpressionMultiplicative ) )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:18123:1: ( ruleAstExpressionMultiplicative )\n {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:18123:1: ( ruleAstExpressionMultiplicative )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:18124:1: ruleAstExpressionMultiplicative\n {\n before(grammarAccess.getAstExpressionAdditiveAccess().getAstExpressionMultiplicativeParserRuleCall_0()); \n pushFollow(FOLLOW_ruleAstExpressionMultiplicative_in_rule__AstExpressionAdditive__Group__0__Impl36443);\n ruleAstExpressionMultiplicative();\n\n state._fsp--;\n\n after(grammarAccess.getAstExpressionAdditiveAccess().getAstExpressionMultiplicativeParserRuleCall_0()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public final void rule__AstExpressionMultiplicative__Group_1__1__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:18369:1: ( ( ( rule__AstExpressionMultiplicative__OperatorAssignment_1_1 ) ) )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:18370:1: ( ( rule__AstExpressionMultiplicative__OperatorAssignment_1_1 ) )\n {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:18370:1: ( ( rule__AstExpressionMultiplicative__OperatorAssignment_1_1 ) )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:18371:1: ( rule__AstExpressionMultiplicative__OperatorAssignment_1_1 )\n {\n before(grammarAccess.getAstExpressionMultiplicativeAccess().getOperatorAssignment_1_1()); \n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:18372:1: ( rule__AstExpressionMultiplicative__OperatorAssignment_1_1 )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:18372:2: rule__AstExpressionMultiplicative__OperatorAssignment_1_1\n {\n pushFollow(FOLLOW_rule__AstExpressionMultiplicative__OperatorAssignment_1_1_in_rule__AstExpressionMultiplicative__Group_1__1__Impl36930);\n rule__AstExpressionMultiplicative__OperatorAssignment_1_1();\n\n state._fsp--;\n\n\n }\n\n after(grammarAccess.getAstExpressionMultiplicativeAccess().getOperatorAssignment_1_1()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public final EObject ruleMultiplicationOperator() throws RecognitionException {\r\n EObject current = null;\r\n\r\n Token otherlv_1=null;\r\n\r\n enterRule(); \r\n \r\n try {\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:4829:28: ( ( () otherlv_1= '*' ) )\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:4830:1: ( () otherlv_1= '*' )\r\n {\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:4830:1: ( () otherlv_1= '*' )\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:4830:2: () otherlv_1= '*'\r\n {\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:4830:2: ()\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:4831:5: \r\n {\r\n if ( state.backtracking==0 ) {\r\n\r\n current = forceCreateModelElement(\r\n grammarAccess.getMultiplicationOperatorAccess().getMultiplicationOperatorAction_0(),\r\n current);\r\n \r\n }\r\n\r\n }\r\n\r\n otherlv_1=(Token)match(input,46,FOLLOW_46_in_ruleMultiplicationOperator10841); if (state.failed) return current;\r\n if ( state.backtracking==0 ) {\r\n\r\n \tnewLeafNode(otherlv_1, grammarAccess.getMultiplicationOperatorAccess().getAsteriskKeyword_1());\r\n \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n if ( state.backtracking==0 ) {\r\n leaveRule(); \r\n }\r\n }\r\n \r\n catch (RecognitionException re) { \r\n recover(input,re); \r\n appendSkippedTokens();\r\n } \r\n finally {\r\n }\r\n return current;\r\n }", "public String multiply()\r\n {\r\n\r\n return First.multiply(Second).stripTrailingZeros().toString();\r\n }", "public final void rule__XAdditiveExpression__RightOperandAssignment_1_1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:12381:1: ( ( ruleXMultiplicativeExpression ) )\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:12382:1: ( ruleXMultiplicativeExpression )\n {\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:12382:1: ( ruleXMultiplicativeExpression )\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:12383:1: ruleXMultiplicativeExpression\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXAdditiveExpressionAccess().getRightOperandXMultiplicativeExpressionParserRuleCall_1_1_0()); \n }\n pushFollow(FOLLOW_ruleXMultiplicativeExpression_in_rule__XAdditiveExpression__RightOperandAssignment_1_124841);\n ruleXMultiplicativeExpression();\n\n state._fsp--;\n if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXAdditiveExpressionAccess().getRightOperandXMultiplicativeExpressionParserRuleCall_1_1_0()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "@Override\n\tpublic void visit(MultiplicationListNode node) {\n\t\tstackPair.push(new Pair<>(\"*\", 2));\n\t\tnode.getNext().accept(this);\n\t}", "static Double executeMultiplication(List<Double> operands) {\n Double result = null;\n for (Double operand : operands) {\n if (Objects.isNull(result)) {\n result = operand;\n }\n else {\n result = result * operand;\n }\n }\n return result;\n }", "@org.junit.Test\n public void opMultiplyYearMonthDuration2args1() {\n final XQuery query = new XQuery(\n \"xs:yearMonthDuration(\\\"P0Y0M\\\") * xs:double(\\\"-1.7976931348623157E308\\\")\",\n ctx);\n try {\n result = new QT3Result(query.value());\n } catch(final Throwable trw) {\n result = new QT3Result(trw);\n } finally {\n query.close();\n }\n test(\n assertStringValue(false, \"P0M\")\n );\n }", "public static BinaryExpression power(Expression expression0, Expression expression1, Method method) { throw Extensions.todo(); }", "public final EObject ruleNumericalMultiplyDivideExpression() throws RecognitionException {\r\n EObject current = null;\r\n\r\n EObject this_NumericalUnaryExpression_0 = null;\r\n\r\n Enumerator lv_operator_2_0 = null;\r\n\r\n EObject lv_rightOperand_3_0 = null;\r\n\r\n\r\n enterRule(); \r\n \r\n try {\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:3144:28: ( (this_NumericalUnaryExpression_0= ruleNumericalUnaryExpression ( () ( (lv_operator_2_0= ruleMultiplicativeOperator ) ) ( (lv_rightOperand_3_0= ruleNumericalUnaryExpression ) ) )* ) )\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:3145:1: (this_NumericalUnaryExpression_0= ruleNumericalUnaryExpression ( () ( (lv_operator_2_0= ruleMultiplicativeOperator ) ) ( (lv_rightOperand_3_0= ruleNumericalUnaryExpression ) ) )* )\r\n {\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:3145:1: (this_NumericalUnaryExpression_0= ruleNumericalUnaryExpression ( () ( (lv_operator_2_0= ruleMultiplicativeOperator ) ) ( (lv_rightOperand_3_0= ruleNumericalUnaryExpression ) ) )* )\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:3146:5: this_NumericalUnaryExpression_0= ruleNumericalUnaryExpression ( () ( (lv_operator_2_0= ruleMultiplicativeOperator ) ) ( (lv_rightOperand_3_0= ruleNumericalUnaryExpression ) ) )*\r\n {\r\n if ( state.backtracking==0 ) {\r\n \r\n newCompositeNode(grammarAccess.getNumericalMultiplyDivideExpressionAccess().getNumericalUnaryExpressionParserRuleCall_0()); \r\n \r\n }\r\n pushFollow(FOLLOW_ruleNumericalUnaryExpression_in_ruleNumericalMultiplyDivideExpression7167);\r\n this_NumericalUnaryExpression_0=ruleNumericalUnaryExpression();\r\n\r\n state._fsp--;\r\n if (state.failed) return current;\r\n if ( state.backtracking==0 ) {\r\n \r\n current = this_NumericalUnaryExpression_0; \r\n afterParserOrEnumRuleCall();\r\n \r\n }\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:3154:1: ( () ( (lv_operator_2_0= ruleMultiplicativeOperator ) ) ( (lv_rightOperand_3_0= ruleNumericalUnaryExpression ) ) )*\r\n loop50:\r\n do {\r\n int alt50=2;\r\n int LA50_0 = input.LA(1);\r\n\r\n if ( (LA50_0==33||(LA50_0>=74 && LA50_0<=75)) ) {\r\n alt50=1;\r\n }\r\n\r\n\r\n switch (alt50) {\r\n \tcase 1 :\r\n \t // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:3154:2: () ( (lv_operator_2_0= ruleMultiplicativeOperator ) ) ( (lv_rightOperand_3_0= ruleNumericalUnaryExpression ) )\r\n \t {\r\n \t // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:3154:2: ()\r\n \t // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:3155:5: \r\n \t {\r\n \t if ( state.backtracking==0 ) {\r\n\r\n \t current = forceCreateModelElementAndSet(\r\n \t grammarAccess.getNumericalMultiplyDivideExpressionAccess().getNumericalMultiplyDivideExpressionLeftOperandAction_1_0(),\r\n \t current);\r\n \t \r\n \t }\r\n\r\n \t }\r\n\r\n \t // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:3160:2: ( (lv_operator_2_0= ruleMultiplicativeOperator ) )\r\n \t // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:3161:1: (lv_operator_2_0= ruleMultiplicativeOperator )\r\n \t {\r\n \t // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:3161:1: (lv_operator_2_0= ruleMultiplicativeOperator )\r\n \t // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:3162:3: lv_operator_2_0= ruleMultiplicativeOperator\r\n \t {\r\n \t if ( state.backtracking==0 ) {\r\n \t \r\n \t \t newCompositeNode(grammarAccess.getNumericalMultiplyDivideExpressionAccess().getOperatorMultiplicativeOperatorEnumRuleCall_1_1_0()); \r\n \t \t \r\n \t }\r\n \t pushFollow(FOLLOW_ruleMultiplicativeOperator_in_ruleNumericalMultiplyDivideExpression7197);\r\n \t lv_operator_2_0=ruleMultiplicativeOperator();\r\n\r\n \t state._fsp--;\r\n \t if (state.failed) return current;\r\n \t if ( state.backtracking==0 ) {\r\n\r\n \t \t if (current==null) {\r\n \t \t current = createModelElementForParent(grammarAccess.getNumericalMultiplyDivideExpressionRule());\r\n \t \t }\r\n \t \t\tset(\r\n \t \t\t\tcurrent, \r\n \t \t\t\t\"operator\",\r\n \t \t\tlv_operator_2_0, \r\n \t \t\t\"MultiplicativeOperator\");\r\n \t \t afterParserOrEnumRuleCall();\r\n \t \t \r\n \t }\r\n\r\n \t }\r\n\r\n\r\n \t }\r\n\r\n \t // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:3178:2: ( (lv_rightOperand_3_0= ruleNumericalUnaryExpression ) )\r\n \t // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:3179:1: (lv_rightOperand_3_0= ruleNumericalUnaryExpression )\r\n \t {\r\n \t // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:3179:1: (lv_rightOperand_3_0= ruleNumericalUnaryExpression )\r\n \t // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:3180:3: lv_rightOperand_3_0= ruleNumericalUnaryExpression\r\n \t {\r\n \t if ( state.backtracking==0 ) {\r\n \t \r\n \t \t newCompositeNode(grammarAccess.getNumericalMultiplyDivideExpressionAccess().getRightOperandNumericalUnaryExpressionParserRuleCall_1_2_0()); \r\n \t \t \r\n \t }\r\n \t pushFollow(FOLLOW_ruleNumericalUnaryExpression_in_ruleNumericalMultiplyDivideExpression7218);\r\n \t lv_rightOperand_3_0=ruleNumericalUnaryExpression();\r\n\r\n \t state._fsp--;\r\n \t if (state.failed) return current;\r\n \t if ( state.backtracking==0 ) {\r\n\r\n \t \t if (current==null) {\r\n \t \t current = createModelElementForParent(grammarAccess.getNumericalMultiplyDivideExpressionRule());\r\n \t \t }\r\n \t \t\tset(\r\n \t \t\t\tcurrent, \r\n \t \t\t\t\"rightOperand\",\r\n \t \t\tlv_rightOperand_3_0, \r\n \t \t\t\"NumericalUnaryExpression\");\r\n \t \t afterParserOrEnumRuleCall();\r\n \t \t \r\n \t }\r\n\r\n \t }\r\n\r\n\r\n \t }\r\n\r\n\r\n \t }\r\n \t break;\r\n\r\n \tdefault :\r\n \t break loop50;\r\n }\r\n } while (true);\r\n\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n if ( state.backtracking==0 ) {\r\n leaveRule(); \r\n }\r\n }\r\n \r\n catch (RecognitionException re) { \r\n recover(input,re); \r\n appendSkippedTokens();\r\n } \r\n finally {\r\n }\r\n return current;\r\n }", "Sum getMultiplier();", "@Override\n public void outMulExp(MulExp node){\n Type lexpType = this.mCurrentST.getExpType(node.getLExp());\n Type rexpType = this.mCurrentST.getExpType(node.getRExp());\n if(lexpType == Type.BYTE && rexpType == Type.BYTE){\n mPrintWriter.println(\"pop r18\");\n mPrintWriter.println(\"pop r22\");\n mPrintWriter.println(\"mov r24, r18\");\n mPrintWriter.println(\"mov r26, r22\");\n mPrintWriter.println(\"muls r24, r26\");\n mPrintWriter.println(\"push r1\");\n mPrintWriter.println(\"push r0\");\n\n mPrintWriter.println(\"eor r0,r0\");\n mPrintWriter.println(\"eor r1,r1\");\n }\n }", "public Mult(String left, Expression right) {\n super(left, right);\n }", "public Mult(Expression left, String right) {\n super(left, right);\n }", "@Override\n\tpublic String visitTerm(MicroParser.TermContext ctx) {\n\t\tString prefix = visit(ctx.factor_prefix());\n\t\tString termExpr = prefix + visit(ctx.factor());\n\t\t//System.out.println(\"in term :\"+termExpr);\n\t\t//System.out.println(\"in term, prefix is:\"+prefix);\n\t\tif((prefix.contentEquals(\"\"))) return termExpr;\n\t\tString op1, op2, result;\n\t\tString type = currentType;\n\t\tString[] ids = termExpr.split(\"/|\\\\*\");\n\t List<String> operands = new ArrayList<String>();\n\t List<Character> mulops = new ArrayList<Character>();\n\t \n\t //create a list of mulops\n\t for(int i=0;i<termExpr.length();i++) {\n\t \tif(termExpr.charAt(i)=='*' || termExpr.charAt(i)=='/')\n\t \t\tmulops.add(termExpr.charAt(i));\n\t }\n\t //create a list of operands \n\t for(String i:ids) \n\t \toperands.add(i);\n\t \n\t op1 = operands.get(0);\n\t op2 = operands.get(1);\n\t //System.out.println(\"in term op1 op2: \"+op1 +\" \" + op2);\n\t temp = new Temporary(type);\n \tresult = temp.fullName;\n \ttempList.addT(temp);\n\t //System.out.println(\"in term result: \"+result);\n\t if(mulops.get(0)=='*') {\n\t \tglobalIR.addStmt(IRStatement.generateArithmetic(type, \"MULT\", op1, op2, result));\n\t \t//System.out.println(globalIR.getLastStatement(globalIR));\n\t \toperands.remove(0); operands.remove(0); mulops.remove(0);\n\t }\n\t \t\n\t else {\n\t \tglobalIR.addStmt(IRStatement.generateArithmetic(type, \"DIV\", op1, op2, result));\n\t \t//System.out.println(globalIR.getLastStatement(globalIR));\n\t \toperands.remove(0); operands.remove(0); mulops.remove(0);\n\t }\n\t \n\t \t\n\t if(operands.size()==0) return result;\n\t //System.out.println(\"AFTER IF\");\n\t for(int i=0; i<operands.size();i++) {\n\t \top1 = result;\n\t \top2 = operands.get(i);\n\t \ttemp = new Temporary(type);\n\t \tresult = temp.fullName;\n\t \ttempList.addT(temp);\n\t \tif(mulops.get(0)=='*') {\n\t\t \tglobalIR.addStmt(IRStatement.generateArithmetic(type, \"MULT\", op1, op2, result));\n\t\t \t//System.out.println(globalIR.getLastStatement(globalIR));\n\t\t \tmulops.remove(0);\n\t \t}\n\t\t \t\n\t\t else {\n\t\t \tglobalIR.addStmt(IRStatement.generateArithmetic(type, \"DIV\", op1, op2, result));\n\t\t \t//System.out.println(globalIR.getLastStatement(globalIR));\n\t\t \tmulops.remove(0);\n\t\t }\n\t\t \t\n\t }\n\t return result;\n\t\t\n\t}", "public final void rule__XMultiplicativeExpression__FeatureAssignment_1_0_0_1() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \t\r\n try {\r\n // InternalDroneScript.g:17664:1: ( ( ( ruleOpMulti ) ) )\r\n // InternalDroneScript.g:17665:2: ( ( ruleOpMulti ) )\r\n {\r\n // InternalDroneScript.g:17665:2: ( ( ruleOpMulti ) )\r\n // InternalDroneScript.g:17666:3: ( ruleOpMulti )\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getXMultiplicativeExpressionAccess().getFeatureJvmIdentifiableElementCrossReference_1_0_0_1_0()); \r\n }\r\n // InternalDroneScript.g:17667:3: ( ruleOpMulti )\r\n // InternalDroneScript.g:17668:4: ruleOpMulti\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getXMultiplicativeExpressionAccess().getFeatureJvmIdentifiableElementOpMultiParserRuleCall_1_0_0_1_0_1()); \r\n }\r\n pushFollow(FOLLOW_2);\r\n ruleOpMulti();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getXMultiplicativeExpressionAccess().getFeatureJvmIdentifiableElementOpMultiParserRuleCall_1_0_0_1_0_1()); \r\n }\r\n\r\n }\r\n\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getXMultiplicativeExpressionAccess().getFeatureJvmIdentifiableElementCrossReference_1_0_0_1_0()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "public static double multi() {\n System.out.println(\"Enter multiplier\");\n double a = getNumber();\n System.out.println(\"Enter multiplicand\");\n double b = getNumber();\n\n return a * b;\n }", "public static UnitP Multiplication(UnitP first, UnitP second)\n {\n return OperationsPublic.PerformUnitOperation\n (\n first, second, Operations.Multiplication,\n OperationsOther.GetOperationString(first, second, Operations.Multiplication) \n );\n }", "public final void rule__XAdditiveExpression__Group__0__Impl() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \t\r\n try {\r\n // InternalDroneScript.g:7266:1: ( ( ruleXMultiplicativeExpression ) )\r\n // InternalDroneScript.g:7267:1: ( ruleXMultiplicativeExpression )\r\n {\r\n // InternalDroneScript.g:7267:1: ( ruleXMultiplicativeExpression )\r\n // InternalDroneScript.g:7268:2: ruleXMultiplicativeExpression\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getXAdditiveExpressionAccess().getXMultiplicativeExpressionParserRuleCall_0()); \r\n }\r\n pushFollow(FOLLOW_2);\r\n ruleXMultiplicativeExpression();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getXAdditiveExpressionAccess().getXMultiplicativeExpressionParserRuleCall_0()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "public static void main(String[] args) {\n\n System.out.println(\"119.1+(28.2+37.3*(46.4-55.5)-4.6+(3/2)+1) = \" + evaluateExpression(\"119.1 + ( 28.2 + 37.3 * ( 46.4 - 55.5 ) - 4.6 + ( 3 / 2 ) + 1 )\"));\n\n}", "public final expressionParser.mult_return mult() throws RecognitionException {\n expressionParser.mult_return retval = new expressionParser.mult_return();\n retval.start = input.LT(1);\n\n CommonTree root_0 = null;\n\n Token char_literal42=null;\n Token char_literal43=null;\n expressionParser.unary_return unary41 = null;\n\n expressionParser.unary_return unary44 = null;\n\n\n CommonTree char_literal42_tree=null;\n CommonTree char_literal43_tree=null;\n\n try {\n // C:\\\\work\\\\art\\\\latest-code\\\\vclang-code-dd0a89f0d579f02ec8c3d8cd398ea8f7cbb445aa\\\\src\\\\art\\\\grammar\\\\expression.g:84:3: ( unary ( ( '*' | '/' ) unary )* )\n // C:\\\\work\\\\art\\\\latest-code\\\\vclang-code-dd0a89f0d579f02ec8c3d8cd398ea8f7cbb445aa\\\\src\\\\art\\\\grammar\\\\expression.g:84:5: unary ( ( '*' | '/' ) unary )*\n {\n root_0 = (CommonTree)adaptor.nil();\n\n pushFollow(FOLLOW_unary_in_mult454);\n unary41=unary();\n\n state._fsp--;\n if (state.failed) return retval;\n if ( state.backtracking==0 ) adaptor.addChild(root_0, unary41.getTree());\n // C:\\\\work\\\\art\\\\latest-code\\\\vclang-code-dd0a89f0d579f02ec8c3d8cd398ea8f7cbb445aa\\\\src\\\\art\\\\grammar\\\\expression.g:84:11: ( ( '*' | '/' ) unary )*\n loop19:\n do {\n int alt19=2;\n int LA19_0 = input.LA(1);\n\n if ( ((LA19_0>=48 && LA19_0<=49)) ) {\n alt19=1;\n }\n\n\n switch (alt19) {\n \tcase 1 :\n \t // C:\\\\work\\\\art\\\\latest-code\\\\vclang-code-dd0a89f0d579f02ec8c3d8cd398ea8f7cbb445aa\\\\src\\\\art\\\\grammar\\\\expression.g:84:12: ( '*' | '/' ) unary\n \t {\n \t // C:\\\\work\\\\art\\\\latest-code\\\\vclang-code-dd0a89f0d579f02ec8c3d8cd398ea8f7cbb445aa\\\\src\\\\art\\\\grammar\\\\expression.g:84:12: ( '*' | '/' )\n \t int alt18=2;\n \t int LA18_0 = input.LA(1);\n\n \t if ( (LA18_0==48) ) {\n \t alt18=1;\n \t }\n \t else if ( (LA18_0==49) ) {\n \t alt18=2;\n \t }\n \t else {\n \t if (state.backtracking>0) {state.failed=true; return retval;}\n \t NoViableAltException nvae =\n \t new NoViableAltException(\"\", 18, 0, input);\n\n \t throw nvae;\n \t }\n \t switch (alt18) {\n \t case 1 :\n \t // C:\\\\work\\\\art\\\\latest-code\\\\vclang-code-dd0a89f0d579f02ec8c3d8cd398ea8f7cbb445aa\\\\src\\\\art\\\\grammar\\\\expression.g:84:13: '*'\n \t {\n \t char_literal42=(Token)match(input,48,FOLLOW_48_in_mult458); if (state.failed) return retval;\n \t if ( state.backtracking==0 ) {\n \t char_literal42_tree = (CommonTree)adaptor.create(char_literal42);\n \t root_0 = (CommonTree)adaptor.becomeRoot(char_literal42_tree, root_0);\n \t }\n\n \t }\n \t break;\n \t case 2 :\n \t // C:\\\\work\\\\art\\\\latest-code\\\\vclang-code-dd0a89f0d579f02ec8c3d8cd398ea8f7cbb445aa\\\\src\\\\art\\\\grammar\\\\expression.g:84:20: '/'\n \t {\n \t char_literal43=(Token)match(input,49,FOLLOW_49_in_mult463); if (state.failed) return retval;\n \t if ( state.backtracking==0 ) {\n \t char_literal43_tree = (CommonTree)adaptor.create(char_literal43);\n \t root_0 = (CommonTree)adaptor.becomeRoot(char_literal43_tree, root_0);\n \t }\n\n \t }\n \t break;\n\n \t }\n\n \t pushFollow(FOLLOW_unary_in_mult467);\n \t unary44=unary();\n\n \t state._fsp--;\n \t if (state.failed) return retval;\n \t if ( state.backtracking==0 ) adaptor.addChild(root_0, unary44.getTree());\n\n \t }\n \t break;\n\n \tdefault :\n \t break loop19;\n }\n } while (true);\n\n\n }\n\n retval.stop = input.LT(-1);\n\n if ( state.backtracking==0 ) {\n\n retval.tree = (CommonTree)adaptor.rulePostProcessing(root_0);\n adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);\n }\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n \tretval.tree = (CommonTree)adaptor.errorNode(input, retval.start, input.LT(-1), re);\n\n }\n finally {\n }\n return retval;\n }", "private static String evaluate(ArrayList<String> operators, ArrayList<String> operands) {\n\n /* Check for valid input. There should be one more operand than operator. */\n if (operands.size() != operators.size()+1)\n return \"Invalid Input\";\n\n String current;\n int value;\n int numMultiply = 0;\n int numAdd = 0;\n int currentOperator = 0;\n\n /* Get the number of multiplications in the operators list. */\n for (int i = 0; i < operators.size(); i++) {\n\n if (operators.get(i).equals(\"*\"))\n numMultiply++;\n }\n\n /* Get the number of addition and subtraction in the operators list. */\n for (int i = 0; i < operators.size(); i++) {\n\n if (operators.get(i).equals(\"-\") || operators.get(i).equals(\"+\"))\n numAdd++;\n }\n\n /* Evaluate multiplications first, from left to right. */\n while (numMultiply > 0){\n\n current = operators.get(currentOperator);\n if (current.equals(\"*\")) {\n\n /* When multiplication is found in the operators, get the associative operands from the operands list.\n Associative operands are found in the operands list at indexes current operator and current operator + 1.\n */\n value = Integer.parseInt(operands.get(currentOperator)) * Integer.parseInt(operands.get(currentOperator+1));\n\n /* Remove the operands and the operator since they have been evaluated and add the evaluated answer back in the operands. */\n operators.remove(currentOperator);\n operands.remove(currentOperator);\n operands.remove(currentOperator);\n operands.add(currentOperator, Integer.toString(value));\n\n numMultiply--;\n }\n else\n currentOperator++;\n }\n\n currentOperator = 0;\n\n /* Next evaluate the addition and subtraction, from left to right. */\n while (numAdd > 0){\n current = operators.get(currentOperator);\n if (current.equals(\"+\")) {\n\n value = Integer.parseInt(operands.get(currentOperator)) + Integer.parseInt(operands.get(currentOperator+1));\n operators.remove(currentOperator);\n operands.remove(currentOperator);\n operands.remove(currentOperator);\n operands.add(currentOperator, Integer.toString(value));\n numAdd--;\n }\n\n else if (current.equals(\"-\")) {\n\n value = Integer.parseInt(operands.get(currentOperator)) - Integer.parseInt(operands.get(currentOperator+1));\n operators.remove(currentOperator);\n operands.remove(currentOperator);\n operands.remove(currentOperator);\n operands.add(currentOperator, Integer.toString(value));\n numAdd--;\n }\n else\n currentOperator++;\n }\n\n /* When all the operations have been evaluated, the final answer will be in the first element of the operands list. */\n return operands.get(0);\n }", "public final EObject ruleAdditiveExpression() throws RecognitionException {\n EObject current = null;\n\n EObject this_MultiplicativeExpression_0 = null;\n\n EObject lv_rightParts_2_0 = null;\n\n\n EObject temp=null; setCurrentLookahead(); resetLookahead(); \n \n try {\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:3689:6: ( (this_MultiplicativeExpression_0= ruleMultiplicativeExpression ( () ( (lv_rightParts_2_0= ruleAdditiveExpressionPart ) )+ )? ) )\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:3690:1: (this_MultiplicativeExpression_0= ruleMultiplicativeExpression ( () ( (lv_rightParts_2_0= ruleAdditiveExpressionPart ) )+ )? )\n {\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:3690:1: (this_MultiplicativeExpression_0= ruleMultiplicativeExpression ( () ( (lv_rightParts_2_0= ruleAdditiveExpressionPart ) )+ )? )\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:3691:5: this_MultiplicativeExpression_0= ruleMultiplicativeExpression ( () ( (lv_rightParts_2_0= ruleAdditiveExpressionPart ) )+ )?\n {\n \n currentNode=createCompositeNode(grammarAccess.getAdditiveExpressionAccess().getMultiplicativeExpressionParserRuleCall_0(), currentNode); \n \n pushFollow(FOLLOW_ruleMultiplicativeExpression_in_ruleAdditiveExpression6312);\n this_MultiplicativeExpression_0=ruleMultiplicativeExpression();\n _fsp--;\n\n \n current = this_MultiplicativeExpression_0; \n currentNode = currentNode.getParent();\n \n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:3699:1: ( () ( (lv_rightParts_2_0= ruleAdditiveExpressionPart ) )+ )?\n int alt56=2;\n int LA56_0 = input.LA(1);\n\n if ( (LA56_0==61||LA56_0==70) ) {\n alt56=1;\n }\n switch (alt56) {\n case 1 :\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:3699:2: () ( (lv_rightParts_2_0= ruleAdditiveExpressionPart ) )+\n {\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:3699:2: ()\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:3700:5: \n {\n \n temp=factory.create(grammarAccess.getAdditiveExpressionAccess().getAdditiveExpressionLeftOperandAction_1_0().getType().getClassifier());\n try {\n \tfactory.set(temp, \"leftOperand\", current, null /*ParserRule*/, currentNode);\n } catch(ValueConverterException vce) {\n \thandleValueConverterException(vce);\n }\n current = temp; \n temp = null;\n CompositeNode newNode = createCompositeNode(grammarAccess.getAdditiveExpressionAccess().getAdditiveExpressionLeftOperandAction_1_0(), currentNode.getParent());\n newNode.getChildren().add(currentNode);\n moveLookaheadInfo(currentNode, newNode);\n currentNode = newNode; \n associateNodeWithAstElement(currentNode, current); \n \n\n }\n\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:3715:2: ( (lv_rightParts_2_0= ruleAdditiveExpressionPart ) )+\n int cnt55=0;\n loop55:\n do {\n int alt55=2;\n int LA55_0 = input.LA(1);\n\n if ( (LA55_0==61||LA55_0==70) ) {\n alt55=1;\n }\n\n\n switch (alt55) {\n \tcase 1 :\n \t // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:3716:1: (lv_rightParts_2_0= ruleAdditiveExpressionPart )\n \t {\n \t // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:3716:1: (lv_rightParts_2_0= ruleAdditiveExpressionPart )\n \t // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:3717:3: lv_rightParts_2_0= ruleAdditiveExpressionPart\n \t {\n \t \n \t \t currentNode=createCompositeNode(grammarAccess.getAdditiveExpressionAccess().getRightPartsAdditiveExpressionPartParserRuleCall_1_1_0(), currentNode); \n \t \t \n \t pushFollow(FOLLOW_ruleAdditiveExpressionPart_in_ruleAdditiveExpression6342);\n \t lv_rightParts_2_0=ruleAdditiveExpressionPart();\n \t _fsp--;\n\n\n \t \t if (current==null) {\n \t \t current = factory.create(grammarAccess.getAdditiveExpressionRule().getType().getClassifier());\n \t \t associateNodeWithAstElement(currentNode.getParent(), current);\n \t \t }\n \t \t try {\n \t \t \t\tadd(\n \t \t \t\t\tcurrent, \n \t \t \t\t\t\"rightParts\",\n \t \t \t\tlv_rightParts_2_0, \n \t \t \t\t\"AdditiveExpressionPart\", \n \t \t \t\tcurrentNode);\n \t \t } catch (ValueConverterException vce) {\n \t \t\t\t\thandleValueConverterException(vce);\n \t \t }\n \t \t currentNode = currentNode.getParent();\n \t \t \n\n \t }\n\n\n \t }\n \t break;\n\n \tdefault :\n \t if ( cnt55 >= 1 ) break loop55;\n EarlyExitException eee =\n new EarlyExitException(55, input);\n throw eee;\n }\n cnt55++;\n } while (true);\n\n\n }\n break;\n\n }\n\n\n }\n\n\n }\n\n resetLookahead(); \n \tlastConsumedNode = currentNode;\n \n }\n \n catch (RecognitionException re) { \n recover(input,re); \n appendSkippedTokens();\n } \n finally {\n }\n return current;\n }", "public final void rulePredicateMultiplication() throws RecognitionException {\n\n \t\tHiddenTokens myHiddenTokenState = ((XtextTokenStream)input).setHiddenTokens(\"RULE_ML_COMMENT\", \"RULE_SL_COMMENT\", \"RULE_WS\");\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../eu.quanticol.caspa.ui/src-gen/eu/quanticol/ui/contentassist/antlr/internal/InternalCASPA.g:620:2: ( ( ( rule__PredicateMultiplication__Group__0 ) ) )\n // ../eu.quanticol.caspa.ui/src-gen/eu/quanticol/ui/contentassist/antlr/internal/InternalCASPA.g:621:1: ( ( rule__PredicateMultiplication__Group__0 ) )\n {\n // ../eu.quanticol.caspa.ui/src-gen/eu/quanticol/ui/contentassist/antlr/internal/InternalCASPA.g:621:1: ( ( rule__PredicateMultiplication__Group__0 ) )\n // ../eu.quanticol.caspa.ui/src-gen/eu/quanticol/ui/contentassist/antlr/internal/InternalCASPA.g:622:1: ( rule__PredicateMultiplication__Group__0 )\n {\n before(grammarAccess.getPredicateMultiplicationAccess().getGroup()); \n // ../eu.quanticol.caspa.ui/src-gen/eu/quanticol/ui/contentassist/antlr/internal/InternalCASPA.g:623:1: ( rule__PredicateMultiplication__Group__0 )\n // ../eu.quanticol.caspa.ui/src-gen/eu/quanticol/ui/contentassist/antlr/internal/InternalCASPA.g:623:2: rule__PredicateMultiplication__Group__0\n {\n pushFollow(FOLLOW_rule__PredicateMultiplication__Group__0_in_rulePredicateMultiplication1137);\n rule__PredicateMultiplication__Group__0();\n\n state._fsp--;\n\n\n }\n\n after(grammarAccess.getPredicateMultiplicationAccess().getGroup()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n \tmyHiddenTokenState.restore();\n\n }\n return ;\n }", "public Composite multiply(Composite comp) {\n\t\tif(comp.isUnit()){\n\t\t\treturn this;\n\t\t}\n\t\tif(this.isUnit()){\n\t\t\treturn comp;\n\t\t}\n\t\tNode head = comp.head;\n\t\tNode current_node = this.head;\n\t\t//long product = 1;\n\t\tBigInteger product = BigInteger.ONE;\n\t\twhile (current_node != null){\n\t\t\tlong factor = (long) Math.pow(current_node.factor, current_node.power);\n\t\t\tproduct = product.multiply(BigInteger.valueOf(factor));\n\t\t\tcurrent_node = current_node.next;\n\t\t}\n\t\twhile (comp.head != null){\n\t\t\tlong factor = (long)Math.pow(comp.head.factor, comp.head.power);\n\t\t\tproduct = product.multiply(BigInteger.valueOf(factor));\n\t\t\tcomp.head = comp.head.next;\n\t\t}\n\t\tComposite p = new Composite();\n\t\tNode n = new Node(product.longValue(), 1);\n\t\tp.head = n;\n\t\tcomp.head = head;\n\t\treturn p;\n\t}" ]
[ "0.69905883", "0.6644127", "0.6536651", "0.6434283", "0.6372252", "0.6317578", "0.6233715", "0.6169937", "0.61376375", "0.61155045", "0.60835147", "0.60828793", "0.60378426", "0.6036608", "0.6018694", "0.6011898", "0.5921065", "0.5915232", "0.5903461", "0.5874056", "0.5848136", "0.5829704", "0.58241284", "0.5809916", "0.58094776", "0.5806847", "0.57946074", "0.57592326", "0.57574093", "0.5748184", "0.5733716", "0.57322586", "0.57285666", "0.57267183", "0.57110703", "0.57080126", "0.56774807", "0.56735045", "0.5664527", "0.5652308", "0.56492376", "0.56425005", "0.56207764", "0.56207764", "0.5611504", "0.5593655", "0.5588648", "0.5563261", "0.5559727", "0.55496836", "0.5546629", "0.5545991", "0.55386204", "0.5520054", "0.5517778", "0.5512605", "0.55114204", "0.54935974", "0.54933065", "0.5483681", "0.5471855", "0.5452699", "0.5450758", "0.5435839", "0.5433868", "0.54309523", "0.54222935", "0.5410157", "0.5410157", "0.5408458", "0.5402278", "0.54012644", "0.5401233", "0.54000324", "0.53983206", "0.53932214", "0.53927827", "0.53847045", "0.53818405", "0.5379286", "0.53736705", "0.5373546", "0.5368708", "0.53656274", "0.53599125", "0.5347989", "0.5346746", "0.53446376", "0.53409886", "0.53314537", "0.53244936", "0.5324348", "0.5321857", "0.5320835", "0.5312039", "0.5308343", "0.5294289", "0.5293865", "0.5293684", "0.52884334" ]
0.59440607
16
unaryExpression > UnaryExpression() nodeListOptional > ( "" UnaryExpression() | "/" UnaryExpression() )
@Override public R visit(MultiplicativeExpression n, A argu) { R _ret = null; n.unaryExpression.accept(this, argu); n.nodeListOptional.accept(this, argu); return _ret; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test(timeout = 4000)\n public void test001() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"hN!SM~8ux(wB\");\n xPathLexer0.dollar();\n xPathLexer0.not();\n xPathLexer0.nextToken();\n xPathLexer0.leftParen();\n xPathLexer0.whitespace();\n xPathLexer0.plus();\n Token token0 = xPathLexer0.or();\n assertNull(token0);\n }", "@Override\n\tpublic void VisitUnaryNode(UnaryOperatorNode Node) {\n\n\t}", "Expression unaryExpression() throws SyntaxException {\r\n\t\tToken first = t;\r\n\t\tif (isKind(OP_PLUS)) { //throw away the plus here\r\n\t\t\tToken op = consume();\r\n\t\t\tExpression e = unaryExpression();\r\n\t\t\treturn new ExpressionUnary(first, op, e);\r\n\t\t}\r\n\t\telse if (isKind(OP_MINUS)){\r\n\t\t\tToken op = consume();\r\n\t\t\tExpression e = unaryExpression();\r\n\t\t\treturn new ExpressionUnary(first, op, e);\r\n\t\t}\r\n\t\telse {\r\n\t\t\treturn unaryExpressionNotPlusMinus();\r\n\t\t}\r\n\t}", "@Override\r\n\tpublic void visit(UnaryExpression unaryExpression) {\n\r\n\t}", "public UnaryExpNode() {\n }", "Expression unaryExpressionNotPlusMinus() throws SyntaxException {\r\n\t\tToken first = t;\r\n\t\tif (isKind(OP_EXCLAMATION)) {\r\n\t\t\tToken op = consume();\r\n\t\t\tExpression e = unaryExpression();\r\n\t\t\treturn new ExpressionUnary(first,op,e);\r\n\t\t} else \t{\r\n\t\t\treturn primary(); //errors will be reported by primary()\r\n\t\t}\r\n\t}", "@Test\n public void equalityForDifferentBinaryOps() {\n XPathStringLiteral leftStringExpr = new XPathStringLiteral(\"left side\");\n XPathNumericLiteral zero = new XPathNumericLiteral(0d);\n\n // Setup expressions to test equality over.\n // Note: these binary expressions make semantic sense\n XPathArithExpr additionExpr = new XPathArithExpr(XPathArithExpr.ADD, leftStringExpr, zero);\n XPathArithExpr additionExprClone = new XPathArithExpr(XPathArithExpr.ADD, leftStringExpr, zero);\n XPathArithExpr subtractExpr = new XPathArithExpr(XPathArithExpr.SUBTRACT, leftStringExpr, zero);\n\n XPathBoolExpr andExpr = new XPathBoolExpr(XPathBoolExpr.AND, leftStringExpr, zero);\n XPathBoolExpr andExprClone = new XPathBoolExpr(XPathBoolExpr.AND, leftStringExpr, zero);\n XPathBoolExpr orExpr = new XPathBoolExpr(XPathBoolExpr.OR, leftStringExpr, zero);\n\n XPathCmpExpr lessThanExpr = new XPathCmpExpr(XPathCmpExpr.LT, leftStringExpr, zero);\n XPathCmpExpr greaterThanExpr = new XPathCmpExpr(XPathCmpExpr.GT, leftStringExpr, zero);\n\n XPathEqExpr eqExpr = new XPathEqExpr(XPathEqExpr.EQ, leftStringExpr, zero);\n XPathEqExpr neqExpr = new XPathEqExpr(XPathEqExpr.NEQ, leftStringExpr, zero);\n\n XPathUnionExpr union = new XPathUnionExpr(leftStringExpr, zero);\n XPathUnionExpr differentUnion = new XPathUnionExpr(zero, zero);\n\n // basic equality tests over same subclass\n Assert.assertEquals(\"Same + expression reference is equal\", additionExpr, additionExpr);\n Assert.assertEquals(\"Same + expression is equal\", additionExpr, additionExprClone);\n Assert.assertNotEquals(\"+ not equal to -\", additionExpr, subtractExpr);\n Assert.assertEquals(\"Same && expression reference is equal\", andExpr, andExpr);\n Assert.assertEquals(\"Same && expression is equal\", andExpr, andExprClone);\n Assert.assertNotEquals(\"&& not equal to ||\", andExpr, orExpr);\n Assert.assertEquals(\"Same < expression is equal\", lessThanExpr, lessThanExpr);\n Assert.assertNotEquals(\"< not equal to >\", lessThanExpr, greaterThanExpr);\n Assert.assertEquals(\"Same == expression is equal\", eqExpr, eqExpr);\n Assert.assertNotEquals(\"== not equal to !=\", eqExpr, neqExpr);\n\n // make sure different binary expressions with same op code aren't equal\n Assert.assertNotEquals(\"+ not equal to &&\", additionExpr, andExpr);\n Assert.assertNotEquals(\"+ not equal to <\", additionExpr, lessThanExpr);\n Assert.assertNotEquals(\"+ not equal to ==\", additionExpr, eqExpr);\n Assert.assertNotEquals(\"- not equal to ||\", subtractExpr, orExpr);\n Assert.assertNotEquals(\"- not equal to >\", subtractExpr, greaterThanExpr);\n Assert.assertNotEquals(\"- not equal to !=\", subtractExpr, neqExpr);\n\n // make sure union equality, which doesn't have an op code, works\n Assert.assertEquals(\"same union instance is equal to itself\", union, union);\n Assert.assertNotEquals(union, differentUnion);\n Assert.assertNotEquals(\"+ not equal to union\", additionExpr, union);\n }", "public interface Unary extends Expr \n{\n /** Unary expression operator. */\n public static enum Operator {\n BIT_NOT (\"~\", true),\n NEG (\"-\", true),\n POST_INC (\"++\", false),\n POST_DEC (\"--\", false),\n PRE_INC (\"++\", true),\n PRE_DEC (\"--\", true),\n POS (\"+\", true),\n NOT (\"!\", true),\n CARET (\"^\", true),\n BAR (\"|\", true),\n AMPERSAND(\"&\", true),\n STAR (\"*\", true),\n SLASH (\"/\", true),\n PERCENT (\"%\", true);\n\n protected boolean prefix;\n protected String name;\n\n private Operator(String name, boolean prefix) {\n this.name = name;\n this.prefix = prefix;\n }\n\n /** Returns true of the operator is a prefix operator, false if\n * postfix. */\n public boolean isPrefix() { return prefix; }\n\n @Override public String toString() { return name; }\n }\n\n public static final Operator BIT_NOT = Operator.BIT_NOT;\n public static final Operator NEG = Operator.NEG;\n public static final Operator POST_INC = Operator.POST_INC;\n public static final Operator POST_DEC = Operator.POST_DEC;\n public static final Operator PRE_INC = Operator.PRE_INC;\n public static final Operator PRE_DEC = Operator.PRE_DEC;\n public static final Operator POS = Operator.POS;\n public static final Operator NOT = Operator.NOT;\n public static final Operator CARET = Operator.CARET;\n public static final Operator BAR = Operator.BAR;\n public static final Operator AMPERSAND = Operator.AMPERSAND;\n public static final Operator STAR = Operator.STAR;\n public static final Operator SLASH = Operator.SLASH;\n public static final Operator PERCENT = Operator.PERCENT;\n\n /** The sub-expression on that to apply the operator. */\n Expr expr();\n /** Set the sub-expression on that to apply the operator. */\n Unary expr(Expr e);\n\n /** The operator to apply on the sub-expression. */\n Operator operator();\n /** Set the operator to apply on the sub-expression. */\n Unary operator(Operator o);\n}", "@Test(timeout = 4000)\n public void test060() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer();\n Token token0 = xPathLexer0.relationalOperator();\n assertNull(token0);\n }", "@Test\n public void defaultOperatorsEvaluateFalseTest() throws Exception {\n\n assertThat(getNode(\"1 == 2\", \"expr\").render(null), is((Object)false));\n assertThat(getNode(\"1 != 1\", \"expr\").render(null), is((Object)false));\n assertThat(getNode(\"1 <> 1\", \"expr\").render(null), is((Object)false));\n assertThat(getNode(\"1 < 0\", \"expr\").render(null), is((Object)false));\n assertThat(getNode(\"2 > 4\", \"expr\").render(null), is((Object)false));\n assertThat(getNode(\"1 >= 3\", \"expr\").render(null), is((Object)false));\n assertThat(getNode(\"2 >= 4\", \"expr\").render(null), is((Object)false));\n assertThat(getNode(\"1 <= 0\", \"expr\").render(null), is((Object)false));\n }", "public interface AstIncreUnaryExpression extends AstUnaryExpression {\r\n}", "@Override\n public NodeType ExecuteOperation()\n {\n //if the first child is an operator\n if(this.childNodes[0].isOperator==true)\n {\n BasicOperator basicOperator=(BasicOperator)this.childNodes[0]; \n if(basicOperator.operands==1)\n {\n UnaryOperator unaryOperator=(UnaryOperator)childNodes[0];\n return unaryOperator.PerformOperation(childNodes[1]);\n }\n else if(basicOperator.operands==2)\n {\n BinaryOperator binaryOperator=(BinaryOperator)childNodes[0];\n return binaryOperator.PerformOperation(childNodes[1], childNodes[2]);\n }\n else if(basicOperator.operands==3)\n {\n TernaryOperator ternaryOperator=(TernaryOperator)childNodes[0];\n return ternaryOperator.PerformOperation(childNodes[1], childNodes[2], childNodes[3]);\n }\n }\n //if not an operator\n else\n {\n return this.childNodes[0].ExecuteOperation();\n }\n return null;\n }", "Expression addExpression() throws SyntaxException {\r\n\t\tToken first = t;\r\n\t\tExpression e0 = multExpression();\r\n\t\twhile(isKind(OP_PLUS, OP_MINUS)) {\r\n\t\t\tToken op = consume();\r\n\t\t\tExpression e1 = multExpression();\r\n\t\t\te0 = new ExpressionBinary(first,e0,op,e1);\r\n\t\t}\r\n\t\treturn e0;\r\n\t}", "@Test\n public void defaultOperatorsEvaluteTrueTest() throws Exception {\n\n assertThat(getNode(\"1 == 1\", \"expr\").render(null), is((Object)true));\n assertThat(getNode(\"1 != 2\", \"expr\").render(null), is((Object)true));\n assertThat(getNode(\"1 <> 2\", \"expr\").render(null), is((Object)true));\n assertThat(getNode(\"1 < 2\", \"expr\").render(null), is((Object)true));\n assertThat(getNode(\"2 > 1\", \"expr\").render(null), is((Object)true));\n assertThat(getNode(\"1 >= 1\", \"expr\").render(null), is((Object)true));\n assertThat(getNode(\"2 >= 1\", \"expr\").render(null), is((Object)true));\n assertThat(getNode(\"1 <= 2\", \"expr\").render(null), is((Object)true));\n assertThat(getNode(\"1 <= 1\", \"expr\").render(null), is((Object)true));\n\n // negative numbers\n assertThat(getNode(\"1 > -1\", \"expr\").render(null), is((Object)true));\n assertThat(getNode(\"-1 < 1\", \"expr\").render(null), is((Object)true));\n assertThat(getNode(\"1.0 > -1.0\", \"expr\").render(null), is((Object)true));\n assertThat(getNode(\"-1.0 < 1.0\", \"expr\").render(null), is((Object)true));\n }", "private Expr unary() {\n if(match(BANG, MINUS)) { // If this thing can be accurately considered a unary...\n Token operator = previous();\n Expr right = unary();\n return new Expr.Unary(operator, right);\n }\n\n return call(); // Otherwise, pass it up the chain of precedence\n }", "@Override\r\n\tpublic void visit(BinaryExpression binaryExpression) {\n\r\n\t}", "public static BinaryExpression add(Expression expression0, Expression expression1) { throw Extensions.todo(); }", "private Term parseUnary(final boolean required) throws ParseException {\n Term t1 = null;\n final int tt = _tokenizer.next();\n if (tt == '+') {\n Term t2 = parseUnary(true);\n if (t2.isI() || t2.isD()) {\n t1 = t2;\n } else if (!isTypeChecking()) {\n t1 = t2;\n } else {\n reportTypeErrorN1(\"'+'\");\n }\n } else if (tt == '-') {\n Term t2 = parseUnary(true);\n if (t2 instanceof Term.ConstI) {\n t1 = new Term.ConstI(-((Term.ConstI) t2).getValue());\n } else if (t2 instanceof Term.ConstD) {\n t1 = new Term.ConstD(-((Term.ConstD) t2).getValue());\n } else if (t2.isI()) {\n t1 = new Term.Neg(Term.TYPE_I, t2);\n } else if (t2.isD()) {\n t1 = new Term.Neg(Term.TYPE_D, t2);\n } else if (!isTypeChecking()) {\n t1 = new Term.Neg(Term.TYPE_I, t2);\n } else {\n reportTypeErrorN1(\"'-'\");\n }\n } else if (tt == '!' || isKeyword(\"not\")) {\n Term t2 = parseUnary(true);\n if (t2.isB() || !isTypeChecking()) {\n t1 = new Term.NotB(t2);\n } else {\n reportTypeErrorB1(\"'!' or 'not'\");\n }\n } else if (tt == '~') {\n Term t2 = parseUnary(true);\n if (t2.isI() || !isTypeChecking()) {\n t1 = new Term.NotI(t2);\n } else {\n reportTypeErrorI1(\"'~'\");\n }\n } else {\n _tokenizer.pushBack();\n t1 = parsePostfix(required);\n }\n return t1;\n }", "Unary expr(Expr e);", "public final void rule__AstExpressionUnary__UnaryOperatorAlternatives_0_1_0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:3036:1: ( ( '~' ) | ( '-' ) | ( 'not' ) | ( '#' ) | ( 'old' ) )\n int alt20=5;\n switch ( input.LA(1) ) {\n case 34:\n {\n alt20=1;\n }\n break;\n case 29:\n {\n alt20=2;\n }\n break;\n case 35:\n {\n alt20=3;\n }\n break;\n case 36:\n {\n alt20=4;\n }\n break;\n case 37:\n {\n alt20=5;\n }\n break;\n default:\n NoViableAltException nvae =\n new NoViableAltException(\"\", 20, 0, input);\n\n throw nvae;\n }\n\n switch (alt20) {\n case 1 :\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:3037:1: ( '~' )\n {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:3037:1: ( '~' )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:3038:1: '~'\n {\n before(grammarAccess.getAstExpressionUnaryAccess().getUnaryOperatorTildeKeyword_0_1_0_0()); \n match(input,34,FOLLOW_34_in_rule__AstExpressionUnary__UnaryOperatorAlternatives_0_1_06565); \n after(grammarAccess.getAstExpressionUnaryAccess().getUnaryOperatorTildeKeyword_0_1_0_0()); \n\n }\n\n\n }\n break;\n case 2 :\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:3045:6: ( '-' )\n {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:3045:6: ( '-' )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:3046:1: '-'\n {\n before(grammarAccess.getAstExpressionUnaryAccess().getUnaryOperatorHyphenMinusKeyword_0_1_0_1()); \n match(input,29,FOLLOW_29_in_rule__AstExpressionUnary__UnaryOperatorAlternatives_0_1_06585); \n after(grammarAccess.getAstExpressionUnaryAccess().getUnaryOperatorHyphenMinusKeyword_0_1_0_1()); \n\n }\n\n\n }\n break;\n case 3 :\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:3053:6: ( 'not' )\n {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:3053:6: ( 'not' )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:3054:1: 'not'\n {\n before(grammarAccess.getAstExpressionUnaryAccess().getUnaryOperatorNotKeyword_0_1_0_2()); \n match(input,35,FOLLOW_35_in_rule__AstExpressionUnary__UnaryOperatorAlternatives_0_1_06605); \n after(grammarAccess.getAstExpressionUnaryAccess().getUnaryOperatorNotKeyword_0_1_0_2()); \n\n }\n\n\n }\n break;\n case 4 :\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:3061:6: ( '#' )\n {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:3061:6: ( '#' )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:3062:1: '#'\n {\n before(grammarAccess.getAstExpressionUnaryAccess().getUnaryOperatorNumberSignKeyword_0_1_0_3()); \n match(input,36,FOLLOW_36_in_rule__AstExpressionUnary__UnaryOperatorAlternatives_0_1_06625); \n after(grammarAccess.getAstExpressionUnaryAccess().getUnaryOperatorNumberSignKeyword_0_1_0_3()); \n\n }\n\n\n }\n break;\n case 5 :\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:3069:6: ( 'old' )\n {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:3069:6: ( 'old' )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:3070:1: 'old'\n {\n before(grammarAccess.getAstExpressionUnaryAccess().getUnaryOperatorOldKeyword_0_1_0_4()); \n match(input,37,FOLLOW_37_in_rule__AstExpressionUnary__UnaryOperatorAlternatives_0_1_06645); \n after(grammarAccess.getAstExpressionUnaryAccess().getUnaryOperatorOldKeyword_0_1_0_4()); \n\n }\n\n\n }\n break;\n\n }\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "@Override\n public String visit(UnaryExpr n, Object arg) {\n return null;\n }", "public final void unaryExpression() throws RecognitionException {\n int unaryExpression_StartIndex = input.index();\n try { dbg.enterRule(getGrammarFileName(), \"unaryExpression\");\n if ( getRuleLevel()==0 ) {dbg.commence();}\n incRuleLevel();\n dbg.location(815, 1);\n\n try {\n if ( state.backtracking>0 && alreadyParsedRule(input, 121) ) { return ; }\n // Java.g:816:5: ( '+' unaryExpression | '-' unaryExpression | '++' unaryExpression | '--' unaryExpression | unaryExpressionNotPlusMinus )\n int alt142=5;\n try { dbg.enterDecision(142);\n\n switch ( input.LA(1) ) {\n case 105:\n {\n alt142=1;\n }\n break;\n case 106:\n {\n alt142=2;\n }\n break;\n case 109:\n {\n alt142=3;\n }\n break;\n case 110:\n {\n alt142=4;\n }\n break;\n case Identifier:\n case FloatingPointLiteral:\n case CharacterLiteral:\n case StringLiteral:\n case HexLiteral:\n case OctalLiteral:\n case DecimalLiteral:\n case 47:\n case 56:\n case 57:\n case 58:\n case 59:\n case 60:\n case 61:\n case 62:\n case 63:\n case 65:\n case 66:\n case 69:\n case 70:\n case 71:\n case 72:\n case 111:\n case 112:\n case 113:\n {\n alt142=5;\n }\n break;\n default:\n if (state.backtracking>0) {state.failed=true; return ;}\n NoViableAltException nvae =\n new NoViableAltException(\"\", 142, 0, input);\n\n dbg.recognitionException(nvae);\n throw nvae;\n }\n\n } finally {dbg.exitDecision(142);}\n\n switch (alt142) {\n case 1 :\n dbg.enterAlt(1);\n\n // Java.g:816:9: '+' unaryExpression\n {\n dbg.location(816,9);\n match(input,105,FOLLOW_105_in_unaryExpression4918); if (state.failed) return ;\n dbg.location(816,13);\n pushFollow(FOLLOW_unaryExpression_in_unaryExpression4920);\n unaryExpression();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n break;\n case 2 :\n dbg.enterAlt(2);\n\n // Java.g:817:9: '-' unaryExpression\n {\n dbg.location(817,9);\n match(input,106,FOLLOW_106_in_unaryExpression4930); if (state.failed) return ;\n dbg.location(817,13);\n pushFollow(FOLLOW_unaryExpression_in_unaryExpression4932);\n unaryExpression();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n break;\n case 3 :\n dbg.enterAlt(3);\n\n // Java.g:818:9: '++' unaryExpression\n {\n dbg.location(818,9);\n match(input,109,FOLLOW_109_in_unaryExpression4942); if (state.failed) return ;\n dbg.location(818,14);\n pushFollow(FOLLOW_unaryExpression_in_unaryExpression4944);\n unaryExpression();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n break;\n case 4 :\n dbg.enterAlt(4);\n\n // Java.g:819:9: '--' unaryExpression\n {\n dbg.location(819,9);\n match(input,110,FOLLOW_110_in_unaryExpression4954); if (state.failed) return ;\n dbg.location(819,14);\n pushFollow(FOLLOW_unaryExpression_in_unaryExpression4956);\n unaryExpression();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n break;\n case 5 :\n dbg.enterAlt(5);\n\n // Java.g:820:9: unaryExpressionNotPlusMinus\n {\n dbg.location(820,9);\n pushFollow(FOLLOW_unaryExpressionNotPlusMinus_in_unaryExpression4966);\n unaryExpressionNotPlusMinus();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n break;\n\n }\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n if ( state.backtracking>0 ) { memoize(input, 121, unaryExpression_StartIndex); }\n }\n dbg.location(821, 5);\n\n }\n finally {\n dbg.exitRule(getGrammarFileName(), \"unaryExpression\");\n decRuleLevel();\n if ( getRuleLevel()==0 ) {dbg.terminate();}\n }\n\n return ;\n }", "public Object visitUnaryPlusExpression(GNode n) {\n nonboolean = true;\n \n return dispatch(n.getGeneric(0));\n }", "@Override\n\tpublic void visit(OrExpression arg0) {\n\t\t\n\t}", "private static UnaryExpr retrieveUnaryExpression(Expression expression) {\n return expression.asUnaryExpr();\n }", "public static BinaryExpression andAlso(Expression expression0, Expression expression1) { throw Extensions.todo(); }", "@Override\n public TreeNode parse() {\n TreeNode first = ArithmeticSubexpression.getAdditive(environment).parse();\n if (first == null) return null;\n\n // Try to parse something starting with an operator.\n List<Wrapper> wrappers = RightSideSubexpression.createKleene(\n environment, ArithmeticSubexpression.getAdditive(environment),\n BemTeVicTokenType.EQUAL, BemTeVicTokenType.DIFFERENT,\n BemTeVicTokenType.GREATER_OR_EQUALS, BemTeVicTokenType.GREATER_THAN,\n BemTeVicTokenType.LESS_OR_EQUALS, BemTeVicTokenType.LESS_THAN\n ).parse();\n\n // If did not found anything starting with an operator, return the first node.\n if (wrappers.isEmpty()) return first;\n\n // Constructs a binary operator node containing the expression.\n Iterator<Wrapper> it = wrappers.iterator();\n Wrapper secondWrapper = it.next();\n BinaryOperatorNode second = new BinaryOperatorNode(secondWrapper.getTokenType(), first, secondWrapper.getOutput());\n\n if (wrappers.size() == 1) return second;\n\n // If we reach this far, the expression has more than one operator. i.e. (x = y = z),\n // which is a shortcut for (x = y AND y = z).\n\n // Firstly, determine if the operators are compatible.\n RelationalOperatorSide side = RelationalOperatorSide.NONE;\n for (Wrapper w : wrappers) {\n side = side.next(w.getTokenType());\n }\n if (side.isMixed()) {\n environment.emitError(\"XXX\");\n }\n\n // Creates the other nodes. In the expression (a = b = c = d), The \"a = b\"\n // is in the \"second\" node. Creates \"b = c\", and \"c = d\" nodes.\n List<BinaryOperatorNode> nodes = new LinkedList<BinaryOperatorNode>();\n nodes.add(second);\n\n TreeNode prev = secondWrapper.getOutput();\n while (it.hasNext()) {\n Wrapper w = it.next();\n BinaryOperatorNode current = new BinaryOperatorNode(w.getTokenType(), prev, w.getOutput());\n prev = w.getOutput();\n nodes.add(current);\n }\n\n // Combines all of the nodes in a single one using AND.\n return new VariableArityOperatorNode(BemTeVicTokenType.AND, nodes);\n }", "@Test(timeout = 4000)\n public void test004() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"d>%NV0\");\n Token token0 = xPathLexer0.operatorName();\n assertNull(token0);\n }", "public final void rule__AstExpressionUnary__UnaryOperatorAssignment_0_1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:25455:1: ( ( ( rule__AstExpressionUnary__UnaryOperatorAlternatives_0_1_0 ) ) )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:25456:1: ( ( rule__AstExpressionUnary__UnaryOperatorAlternatives_0_1_0 ) )\n {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:25456:1: ( ( rule__AstExpressionUnary__UnaryOperatorAlternatives_0_1_0 ) )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:25457:1: ( rule__AstExpressionUnary__UnaryOperatorAlternatives_0_1_0 )\n {\n before(grammarAccess.getAstExpressionUnaryAccess().getUnaryOperatorAlternatives_0_1_0()); \n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:25458:1: ( rule__AstExpressionUnary__UnaryOperatorAlternatives_0_1_0 )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:25458:2: rule__AstExpressionUnary__UnaryOperatorAlternatives_0_1_0\n {\n pushFollow(FOLLOW_rule__AstExpressionUnary__UnaryOperatorAlternatives_0_1_0_in_rule__AstExpressionUnary__UnaryOperatorAssignment_0_151144);\n rule__AstExpressionUnary__UnaryOperatorAlternatives_0_1_0();\n\n state._fsp--;\n\n\n }\n\n after(grammarAccess.getAstExpressionUnaryAccess().getUnaryOperatorAlternatives_0_1_0()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "@Override\n public R visit(RelationalExpression n, A argu) {\n R _ret = null;\n n.numericExpression.accept(this, argu);\n n.nodeOptional.accept(this, argu);\n return _ret;\n }", "Expression expression() throws SyntaxException {\r\n\t\tToken first = t;\r\n\t\tExpression e0 = orExpression();\r\n\t\tif (isKind(OP_QUESTION)) {\r\n\t\t\tconsume();\r\n\t\t\tExpression e1 = expression();\r\n\t\t\tmatch(OP_COLON);\r\n\t\t\tExpression e2 = expression();\r\n\t\t\te0 = new ExpressionConditional(first, e0, e1, e2);\r\n\t\t}\r\n\t\treturn e0;\r\n\t}", "public static BinaryExpression divide(Expression expression0, Expression expression1) { throw Extensions.todo(); }", "@Test(timeout = 4000)\n public void test076() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"5!\");\n Token token0 = xPathLexer0.star();\n xPathLexer0.setPreviousToken(token0);\n assertEquals(20, token0.getTokenType());\n assertEquals(\"5\", token0.getTokenText());\n \n Token token1 = xPathLexer0.identifierOrOperatorName();\n assertEquals(15, token1.getTokenType());\n assertEquals(\"\", token1.getTokenText());\n }", "public final Object expression() throws RecognitionException {\n Object result = null;\n\n\n CommonTree INTEGER15=null;\n CommonTree BOOL16=null;\n CommonTree IDENT17=null;\n Object op1 =null;\n\n Object op2 =null;\n\n Object call18 =null;\n\n\n try {\n // /v/filer4b/v38q001/rjnevels/Desktop/Antlr Eclipse Test/workspace3/BFlat/src/a/b/c/EvaluatorWalker.g:322:3: ( ( ^( '+' op1= expression op2= expression ) | ^( '-' op1= expression op2= expression ) | ^( '*' op1= expression op2= expression ) | ^( '/' op1= expression op2= expression ) | ^( '%' op1= expression op2= expression ) | ^( ARITH_NEGATION op1= expression ) | ^( '||' op1= expression op2= expression ) | ^( '&&' op1= expression op2= expression ) | ^( '==' op1= expression op2= expression ) | ^( '!=' op1= expression op2= expression ) | ^( '>=' op1= expression op2= expression ) | ^( '<=' op1= expression op2= expression ) | ^( '>' op1= expression op2= expression ) | ^( '<' op1= expression op2= expression ) | ^( BOOL_NEGATION op1= expression ) | INTEGER | BOOL | IDENT | call ) )\n // /v/filer4b/v38q001/rjnevels/Desktop/Antlr Eclipse Test/workspace3/BFlat/src/a/b/c/EvaluatorWalker.g:323:3: ( ^( '+' op1= expression op2= expression ) | ^( '-' op1= expression op2= expression ) | ^( '*' op1= expression op2= expression ) | ^( '/' op1= expression op2= expression ) | ^( '%' op1= expression op2= expression ) | ^( ARITH_NEGATION op1= expression ) | ^( '||' op1= expression op2= expression ) | ^( '&&' op1= expression op2= expression ) | ^( '==' op1= expression op2= expression ) | ^( '!=' op1= expression op2= expression ) | ^( '>=' op1= expression op2= expression ) | ^( '<=' op1= expression op2= expression ) | ^( '>' op1= expression op2= expression ) | ^( '<' op1= expression op2= expression ) | ^( BOOL_NEGATION op1= expression ) | INTEGER | BOOL | IDENT | call )\n {\n OperationExecuter oe = null;\n\n // /v/filer4b/v38q001/rjnevels/Desktop/Antlr Eclipse Test/workspace3/BFlat/src/a/b/c/EvaluatorWalker.g:324:3: ( ^( '+' op1= expression op2= expression ) | ^( '-' op1= expression op2= expression ) | ^( '*' op1= expression op2= expression ) | ^( '/' op1= expression op2= expression ) | ^( '%' op1= expression op2= expression ) | ^( ARITH_NEGATION op1= expression ) | ^( '||' op1= expression op2= expression ) | ^( '&&' op1= expression op2= expression ) | ^( '==' op1= expression op2= expression ) | ^( '!=' op1= expression op2= expression ) | ^( '>=' op1= expression op2= expression ) | ^( '<=' op1= expression op2= expression ) | ^( '>' op1= expression op2= expression ) | ^( '<' op1= expression op2= expression ) | ^( BOOL_NEGATION op1= expression ) | INTEGER | BOOL | IDENT | call )\n int alt14=19;\n switch ( input.LA(1) ) {\n case 32:\n {\n alt14=1;\n }\n break;\n case 34:\n {\n alt14=2;\n }\n break;\n case 31:\n {\n alt14=3;\n }\n break;\n case 35:\n {\n alt14=4;\n }\n break;\n case 29:\n {\n alt14=5;\n }\n break;\n case ARITH_NEGATION:\n {\n alt14=6;\n }\n break;\n case 50:\n {\n alt14=7;\n }\n break;\n case 30:\n {\n alt14=8;\n }\n break;\n case 39:\n {\n alt14=9;\n }\n break;\n case 28:\n {\n alt14=10;\n }\n break;\n case 41:\n {\n alt14=11;\n }\n break;\n case 37:\n {\n alt14=12;\n }\n break;\n case 40:\n {\n alt14=13;\n }\n break;\n case 36:\n {\n alt14=14;\n }\n break;\n case BOOL_NEGATION:\n {\n alt14=15;\n }\n break;\n case INTEGER:\n {\n alt14=16;\n }\n break;\n case BOOL:\n {\n alt14=17;\n }\n break;\n case IDENT:\n {\n alt14=18;\n }\n break;\n case CALL:\n {\n alt14=19;\n }\n break;\n default:\n NoViableAltException nvae =\n new NoViableAltException(\"\", 14, 0, input);\n\n throw nvae;\n\n }\n\n switch (alt14) {\n case 1 :\n // /v/filer4b/v38q001/rjnevels/Desktop/Antlr Eclipse Test/workspace3/BFlat/src/a/b/c/EvaluatorWalker.g:325:4: ^( '+' op1= expression op2= expression )\n {\n match(input,32,FOLLOW_32_in_expression564); \n\n match(input, Token.DOWN, null); \n pushFollow(FOLLOW_expression_in_expression570);\n op1=expression();\n\n state._fsp--;\n\n\n pushFollow(FOLLOW_expression_in_expression576);\n op2=expression();\n\n state._fsp--;\n\n\n match(input, Token.UP, null); \n\n\n oe = new OperationExecuter(op1,op2,\"+\"); \n\n }\n break;\n case 2 :\n // /v/filer4b/v38q001/rjnevels/Desktop/Antlr Eclipse Test/workspace3/BFlat/src/a/b/c/EvaluatorWalker.g:326:6: ^( '-' op1= expression op2= expression )\n {\n match(input,34,FOLLOW_34_in_expression590); \n\n match(input, Token.DOWN, null); \n pushFollow(FOLLOW_expression_in_expression596);\n op1=expression();\n\n state._fsp--;\n\n\n pushFollow(FOLLOW_expression_in_expression602);\n op2=expression();\n\n state._fsp--;\n\n\n match(input, Token.UP, null); \n\n\n oe = new OperationExecuter(op1,op2,\"-\"); \n\n }\n break;\n case 3 :\n // /v/filer4b/v38q001/rjnevels/Desktop/Antlr Eclipse Test/workspace3/BFlat/src/a/b/c/EvaluatorWalker.g:327:6: ^( '*' op1= expression op2= expression )\n {\n match(input,31,FOLLOW_31_in_expression614); \n\n match(input, Token.DOWN, null); \n pushFollow(FOLLOW_expression_in_expression620);\n op1=expression();\n\n state._fsp--;\n\n\n pushFollow(FOLLOW_expression_in_expression626);\n op2=expression();\n\n state._fsp--;\n\n\n match(input, Token.UP, null); \n\n\n oe = new OperationExecuter(op1,op2,\"*\"); \n\n }\n break;\n case 4 :\n // /v/filer4b/v38q001/rjnevels/Desktop/Antlr Eclipse Test/workspace3/BFlat/src/a/b/c/EvaluatorWalker.g:328:6: ^( '/' op1= expression op2= expression )\n {\n match(input,35,FOLLOW_35_in_expression638); \n\n match(input, Token.DOWN, null); \n pushFollow(FOLLOW_expression_in_expression644);\n op1=expression();\n\n state._fsp--;\n\n\n pushFollow(FOLLOW_expression_in_expression650);\n op2=expression();\n\n state._fsp--;\n\n\n match(input, Token.UP, null); \n\n\n oe = new OperationExecuter(op1,op2,\"/\"); \n\n }\n break;\n case 5 :\n // /v/filer4b/v38q001/rjnevels/Desktop/Antlr Eclipse Test/workspace3/BFlat/src/a/b/c/EvaluatorWalker.g:329:6: ^( '%' op1= expression op2= expression )\n {\n match(input,29,FOLLOW_29_in_expression662); \n\n match(input, Token.DOWN, null); \n pushFollow(FOLLOW_expression_in_expression668);\n op1=expression();\n\n state._fsp--;\n\n\n pushFollow(FOLLOW_expression_in_expression674);\n op2=expression();\n\n state._fsp--;\n\n\n match(input, Token.UP, null); \n\n\n oe = new OperationExecuter(op1,op2,\"%\"); \n\n }\n break;\n case 6 :\n // /v/filer4b/v38q001/rjnevels/Desktop/Antlr Eclipse Test/workspace3/BFlat/src/a/b/c/EvaluatorWalker.g:330:6: ^( ARITH_NEGATION op1= expression )\n {\n match(input,ARITH_NEGATION,FOLLOW_ARITH_NEGATION_in_expression686); \n\n match(input, Token.DOWN, null); \n pushFollow(FOLLOW_expression_in_expression692);\n op1=expression();\n\n state._fsp--;\n\n\n match(input, Token.UP, null); \n\n\n oe = new OperationExecuter(op1,null,\"ARITH_NEGATION\"); \n\n }\n break;\n case 7 :\n // /v/filer4b/v38q001/rjnevels/Desktop/Antlr Eclipse Test/workspace3/BFlat/src/a/b/c/EvaluatorWalker.g:331:6: ^( '||' op1= expression op2= expression )\n {\n match(input,50,FOLLOW_50_in_expression710); \n\n match(input, Token.DOWN, null); \n pushFollow(FOLLOW_expression_in_expression716);\n op1=expression();\n\n state._fsp--;\n\n\n pushFollow(FOLLOW_expression_in_expression722);\n op2=expression();\n\n state._fsp--;\n\n\n match(input, Token.UP, null); \n\n\n oe = new OperationExecuter(op1,op2,\"||\"); \n\n }\n break;\n case 8 :\n // /v/filer4b/v38q001/rjnevels/Desktop/Antlr Eclipse Test/workspace3/BFlat/src/a/b/c/EvaluatorWalker.g:332:6: ^( '&&' op1= expression op2= expression )\n {\n match(input,30,FOLLOW_30_in_expression733); \n\n match(input, Token.DOWN, null); \n pushFollow(FOLLOW_expression_in_expression739);\n op1=expression();\n\n state._fsp--;\n\n\n pushFollow(FOLLOW_expression_in_expression745);\n op2=expression();\n\n state._fsp--;\n\n\n match(input, Token.UP, null); \n\n\n oe = new OperationExecuter(op1,op2,\"&&\"); \n\n }\n break;\n case 9 :\n // /v/filer4b/v38q001/rjnevels/Desktop/Antlr Eclipse Test/workspace3/BFlat/src/a/b/c/EvaluatorWalker.g:333:6: ^( '==' op1= expression op2= expression )\n {\n match(input,39,FOLLOW_39_in_expression756); \n\n match(input, Token.DOWN, null); \n pushFollow(FOLLOW_expression_in_expression762);\n op1=expression();\n\n state._fsp--;\n\n\n pushFollow(FOLLOW_expression_in_expression768);\n op2=expression();\n\n state._fsp--;\n\n\n match(input, Token.UP, null); \n\n\n oe = new OperationExecuter(op1,op2,\"==\"); \n\n }\n break;\n case 10 :\n // /v/filer4b/v38q001/rjnevels/Desktop/Antlr Eclipse Test/workspace3/BFlat/src/a/b/c/EvaluatorWalker.g:334:6: ^( '!=' op1= expression op2= expression )\n {\n match(input,28,FOLLOW_28_in_expression779); \n\n match(input, Token.DOWN, null); \n pushFollow(FOLLOW_expression_in_expression785);\n op1=expression();\n\n state._fsp--;\n\n\n pushFollow(FOLLOW_expression_in_expression791);\n op2=expression();\n\n state._fsp--;\n\n\n match(input, Token.UP, null); \n\n\n oe = new OperationExecuter(op1,op2,\"!=\"); \n\n }\n break;\n case 11 :\n // /v/filer4b/v38q001/rjnevels/Desktop/Antlr Eclipse Test/workspace3/BFlat/src/a/b/c/EvaluatorWalker.g:335:6: ^( '>=' op1= expression op2= expression )\n {\n match(input,41,FOLLOW_41_in_expression802); \n\n match(input, Token.DOWN, null); \n pushFollow(FOLLOW_expression_in_expression808);\n op1=expression();\n\n state._fsp--;\n\n\n pushFollow(FOLLOW_expression_in_expression814);\n op2=expression();\n\n state._fsp--;\n\n\n match(input, Token.UP, null); \n\n\n oe = new OperationExecuter(op1,op2,\">=\"); \n\n }\n break;\n case 12 :\n // /v/filer4b/v38q001/rjnevels/Desktop/Antlr Eclipse Test/workspace3/BFlat/src/a/b/c/EvaluatorWalker.g:336:6: ^( '<=' op1= expression op2= expression )\n {\n match(input,37,FOLLOW_37_in_expression825); \n\n match(input, Token.DOWN, null); \n pushFollow(FOLLOW_expression_in_expression831);\n op1=expression();\n\n state._fsp--;\n\n\n pushFollow(FOLLOW_expression_in_expression837);\n op2=expression();\n\n state._fsp--;\n\n\n match(input, Token.UP, null); \n\n\n oe = new OperationExecuter(op1,op2,\"<=\"); \n\n }\n break;\n case 13 :\n // /v/filer4b/v38q001/rjnevels/Desktop/Antlr Eclipse Test/workspace3/BFlat/src/a/b/c/EvaluatorWalker.g:337:6: ^( '>' op1= expression op2= expression )\n {\n match(input,40,FOLLOW_40_in_expression848); \n\n match(input, Token.DOWN, null); \n pushFollow(FOLLOW_expression_in_expression854);\n op1=expression();\n\n state._fsp--;\n\n\n pushFollow(FOLLOW_expression_in_expression860);\n op2=expression();\n\n state._fsp--;\n\n\n match(input, Token.UP, null); \n\n\n oe = new OperationExecuter(op1,op2,\">\"); \n\n }\n break;\n case 14 :\n // /v/filer4b/v38q001/rjnevels/Desktop/Antlr Eclipse Test/workspace3/BFlat/src/a/b/c/EvaluatorWalker.g:338:6: ^( '<' op1= expression op2= expression )\n {\n match(input,36,FOLLOW_36_in_expression872); \n\n match(input, Token.DOWN, null); \n pushFollow(FOLLOW_expression_in_expression878);\n op1=expression();\n\n state._fsp--;\n\n\n pushFollow(FOLLOW_expression_in_expression884);\n op2=expression();\n\n state._fsp--;\n\n\n match(input, Token.UP, null); \n\n\n oe = new OperationExecuter(op1,op2,\"<\"); \n\n }\n break;\n case 15 :\n // /v/filer4b/v38q001/rjnevels/Desktop/Antlr Eclipse Test/workspace3/BFlat/src/a/b/c/EvaluatorWalker.g:339:6: ^( BOOL_NEGATION op1= expression )\n {\n match(input,BOOL_NEGATION,FOLLOW_BOOL_NEGATION_in_expression896); \n\n match(input, Token.DOWN, null); \n pushFollow(FOLLOW_expression_in_expression902);\n op1=expression();\n\n state._fsp--;\n\n\n match(input, Token.UP, null); \n\n\n oe = new OperationExecuter(op1,null,\"BOOL_NEGATION\"); \n\n }\n break;\n case 16 :\n // /v/filer4b/v38q001/rjnevels/Desktop/Antlr Eclipse Test/workspace3/BFlat/src/a/b/c/EvaluatorWalker.g:340:6: INTEGER\n {\n INTEGER15=(CommonTree)match(input,INTEGER,FOLLOW_INTEGER_in_expression920); \n\n oe = new OperationExecuter(localScope, (INTEGER15!=null?INTEGER15.getText():null),\"INTEGER\"); \n\n }\n break;\n case 17 :\n // /v/filer4b/v38q001/rjnevels/Desktop/Antlr Eclipse Test/workspace3/BFlat/src/a/b/c/EvaluatorWalker.g:341:6: BOOL\n {\n BOOL16=(CommonTree)match(input,BOOL,FOLLOW_BOOL_in_expression964); \n\n oe = new OperationExecuter(localScope, (BOOL16!=null?BOOL16.getText():null),\"BOOL\"); \n\n }\n break;\n case 18 :\n // /v/filer4b/v38q001/rjnevels/Desktop/Antlr Eclipse Test/workspace3/BFlat/src/a/b/c/EvaluatorWalker.g:342:6: IDENT\n {\n IDENT17=(CommonTree)match(input,IDENT,FOLLOW_IDENT_in_expression1010); \n\n oe = new OperationExecuter(localScope, (IDENT17!=null?IDENT17.getText():null),\"IDENT\"); \n\n }\n break;\n case 19 :\n // /v/filer4b/v38q001/rjnevels/Desktop/Antlr Eclipse Test/workspace3/BFlat/src/a/b/c/EvaluatorWalker.g:343:6: call\n {\n pushFollow(FOLLOW_call_in_expression1055);\n call18=call();\n\n state._fsp--;\n\n\n result = call18;\n\n }\n break;\n\n }\n\n\n if (oe != null) result = oe.doOperation();\n if (result == null)\n BFlatGUI.debugPrint(0, \"result of expression is null!\");\n \n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n\n finally {\n \t// do for sure before leaving\n }\n return result;\n }", "@Override\npublic final void accept(TreeVisitor visitor) {\n visitor.visitWord(OpCodes.OR_NAME);\n if (ops != null) {\n for (int i = 0; i < ops.length; i++) {\n ops[i].accept(visitor);\n }\n } else {\n visitor.visitConstant(null, \"?\");\n }\n visitor.visitEnd();\n }", "public static UnaryExpression unaryPlus(Expression expression) {\n return makeUnary(ExpressionType.UnaryPlus, expression, expression.getType());\n }", "Expression orExpression() throws SyntaxException {\r\n\t\tToken first = t;\r\n\t\tExpression e0 = andExpression();\r\n\t\twhile(isKind(OP_OR)) {\r\n\t\t\tToken op = consume();\r\n\t\t\tExpression e1 = andExpression();\r\n\t\t\te0 = new ExpressionBinary(first, e0, op, e1);\r\n\t\t}\r\n\t\treturn e0;\r\n\t}", "@Override\n\tpublic void visit(OrExpression arg0) {\n\n\t}", "@Test(timeout = 4000)\n public void test064() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"zO=t1k%z[\");\n Token token0 = xPathLexer0.or();\n assertNull(token0);\n }", "@Override public JannotTreeJCExpression getLeftOperand()\n{\n return createTree(getNode().getLeftOperand()); \n}", "public interface UnaryBooleanExpressionProperty extends BooleanExpressionProperty<BooleanExpression>, UnaryProperty<BooleanExpressionProperty<BooleanExpression>, BooleanExpression> {\n}", "@Test(timeout = 4000)\n public void test059() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"<= \");\n Token token0 = xPathLexer0.relationalOperator();\n assertEquals(8, token0.getTokenType());\n assertNotNull(token0);\n assertEquals(\"<=\", token0.getTokenText());\n }", "public IsEmptyOperationEvaluator(boolean negate) {\r\n this.negate = negate;\r\n }", "Expr expr();", "@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 }", "public Node expression()\r\n\t{\r\n\t\tNode lhs = term();\r\n\t\tif(lhs!=null)\r\n\t\t{\r\n\t\t\tint index = lexer.getPosition();\r\n\t\t\tLexer.Token token = lexer.getToken();\r\n\t\t\twhile(token == Lexer.Token.PLUS\r\n\t\t\t\t||token == Lexer.Token.MINUS)\r\n\t\t\t{\r\n\t\t\t\tNode rhs = term(); \r\n\t\t\t\tif(rhs!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tif(token == Lexer.Token.PLUS)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tlhs = new Add(lhs,rhs);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(token == Lexer.Token.MINUS)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tlhs = new Sub(lhs,rhs);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tindex = lexer.getPosition();\r\n\t\t\t\t\ttoken = lexer.getToken();\r\n\t\t\t\t}\r\n\t\t\t\telse break;\r\n\t\t\t}\r\n\t\t\tlexer.setPosition(index);\r\n\t\t}\r\n\t\treturn lhs;\r\n\t}", "@Test(timeout = 4000)\n public void test075() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\") (\");\n Token token0 = xPathLexer0.equals();\n xPathLexer0.setPreviousToken(token0);\n assertEquals(21, token0.getTokenType());\n assertEquals(\")\", token0.getTokenText());\n \n Token token1 = xPathLexer0.identifierOrOperatorName();\n assertEquals(15, token1.getTokenType());\n assertEquals(\"\", token1.getTokenText());\n }", "@Test\n public void unaryTest() {\n UnaryOperator<String> postfix = (a) -> a + \"postfix\";\n UnaryOperator<Integer> increment = (a) -> a + 1;\n\n Assert.assertEquals(\"valuepostfix\", postfix.apply(\"value\"));\n Assert.assertEquals(new Integer(2), increment.apply(1));\n }", "@Test(timeout = 4000)\n public void test061() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\") (\");\n Token token0 = xPathLexer0.whitespace();\n assertEquals(\"\", token0.getTokenText());\n assertEquals((-2), token0.getTokenType());\n }", "OrExpr createOrExpr();", "Expression relExpression() throws SyntaxException {\r\n\t\tToken first = t;\r\n\t\tExpression e0 = addExpression();\r\n\t\twhile(isKind(OP_LT,OP_GT,OP_LE,OP_GE)) {\r\n\t\t\tToken op = consume();\r\n\t\t\tExpression e1 = addExpression();\r\n\t\t\te0 = new ExpressionBinary(first,e0,op,e1);\r\n\t\t}\r\n\t\treturn e0;\r\n\t}", "public static BinaryExpression divideAssign(Expression expression0, Expression expression1) { throw Extensions.todo(); }", "@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 }", "@Test(timeout = 4000)\n public void test000() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"oofT'b.HnXtsd.\");\n Token token0 = xPathLexer0.or();\n assertNull(token0);\n }", "public static NodeValue unaryPlus(NodeValue nv) {\n NumericType opType = classifyNumeric(\"unaryPlus\", nv) ;\n return nv ;\n }", "public static BinaryExpression exclusiveOr(Expression expression0, Expression expression1) { throw Extensions.todo(); }", "@Test(timeout = 4000)\n public void test074() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\") (\");\n Token token0 = xPathLexer0.notEquals();\n xPathLexer0.setPreviousToken(token0);\n assertEquals(\") \", token0.getTokenText());\n assertEquals(22, token0.getTokenType());\n \n Token token1 = xPathLexer0.identifierOrOperatorName();\n assertEquals(15, token1.getTokenType());\n assertEquals(\"\", token1.getTokenText());\n }", "@Test(timeout = 4000)\n public void test011() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\") (\");\n String string0 = xPathLexer0.getXPath();\n assertEquals(\") (\", string0);\n }", "@Override\n public R visit(ConditionalOrExpression n, A argu) {\n R _ret = null;\n n.conditionalAndExpression.accept(this, argu);\n n.nodeListOptional.accept(this, argu);\n return _ret;\n }", "public final ManchesterOWLSyntaxAutoComplete.unary_return unary() {\n ManchesterOWLSyntaxAutoComplete.unary_return retval = new ManchesterOWLSyntaxAutoComplete.unary_return();\n retval.start = input.LT(1);\n ManchesterOWLSyntaxTree IDENTIFIER3 = null;\n ManchesterOWLSyntaxTree ENTITY_REFERENCE5 = null;\n ManchesterOWLSyntaxAutoComplete.expression_return e = null;\n ManchesterOWLSyntaxAutoComplete.qualifiedRestriction_return qualifiedRestriction4 = null;\n try {\n // /Users/luigi/Documents/workspace/Parsers/src/ManchesterOWLSyntaxAutoComplete.g:144:1:\n // ( IDENTIFIER | ^( NEGATED_EXPRESSION e= expression ) |\n // qualifiedRestriction | ENTITY_REFERENCE )\n int alt7 = 4;\n switch (input.LA(1)) {\n case IDENTIFIER: {\n alt7 = 1;\n }\n break;\n case NEGATED_EXPRESSION: {\n alt7 = 2;\n }\n break;\n case SOME_RESTRICTION:\n case ALL_RESTRICTION:\n case VALUE_RESTRICTION:\n case CARDINALITY_RESTRICTION:\n case ONE_OF: {\n alt7 = 3;\n }\n break;\n case ENTITY_REFERENCE: {\n alt7 = 4;\n }\n break;\n default:\n if (state.backtracking > 0) {\n state.failed = true;\n return retval;\n }\n NoViableAltException nvae = new NoViableAltException(\"\", 7, 0, input);\n throw nvae;\n }\n switch (alt7) {\n case 1:\n // /Users/luigi/Documents/workspace/Parsers/src/ManchesterOWLSyntaxAutoComplete.g:145:3:\n // IDENTIFIER\n {\n IDENTIFIER3 = (ManchesterOWLSyntaxTree) match(input, IDENTIFIER,\n FOLLOW_IDENTIFIER_in_unary376);\n if (state.failed) {\n return retval;\n }\n if (state.backtracking == 1) {\n ((ManchesterOWLSyntaxTree) retval.start)\n .setCompletions(getSymbolTable().match(\n IDENTIFIER3.getText()));\n }\n }\n break;\n case 2:\n // /Users/luigi/Documents/workspace/Parsers/src/ManchesterOWLSyntaxAutoComplete.g:150:5:\n // ^( NEGATED_EXPRESSION e= expression )\n {\n match(input, NEGATED_EXPRESSION,\n FOLLOW_NEGATED_EXPRESSION_in_unary389);\n if (state.failed) {\n return retval;\n }\n match(input, Token.DOWN, null);\n if (state.failed) {\n return retval;\n }\n pushFollow(FOLLOW_expression_in_unary395);\n e = expression();\n state._fsp--;\n if (state.failed) {\n return retval;\n }\n match(input, Token.UP, null);\n if (state.failed) {\n return retval;\n }\n if (state.backtracking == 1) {\n ((ManchesterOWLSyntaxTree) retval.start).setCompletions(e.node\n .getCompletions());\n }\n }\n break;\n case 3:\n // /Users/luigi/Documents/workspace/Parsers/src/ManchesterOWLSyntaxAutoComplete.g:154:5:\n // qualifiedRestriction\n {\n pushFollow(FOLLOW_qualifiedRestriction_in_unary409);\n qualifiedRestriction4 = qualifiedRestriction();\n state._fsp--;\n if (state.failed) {\n return retval;\n }\n if (state.backtracking == 1) {\n ((ManchesterOWLSyntaxTree) retval.start)\n .setCompletions(qualifiedRestriction4.node\n .getCompletions());\n }\n }\n break;\n case 4:\n // /Users/luigi/Documents/workspace/Parsers/src/ManchesterOWLSyntaxAutoComplete.g:158:5:\n // ENTITY_REFERENCE\n {\n ENTITY_REFERENCE5 = (ManchesterOWLSyntaxTree) match(input,\n ENTITY_REFERENCE, FOLLOW_ENTITY_REFERENCE_in_unary423);\n if (state.failed) {\n return retval;\n }\n if (state.backtracking == 1) {\n ((ManchesterOWLSyntaxTree) retval.start)\n .setCompletions(getSymbolTable().match(\n ENTITY_REFERENCE5.getText()));\n }\n }\n break;\n }\n if (state.backtracking == 1) {\n retval.node = (ManchesterOWLSyntaxTree) retval.start;\n }\n } catch (@SuppressWarnings(\"unused\") RecognitionException | RewriteEmptyStreamException exception) {}\n return retval;\n }", "@Test(timeout = 4000)\n public void test069() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer();\n xPathLexer0.nextToken();\n xPathLexer0.setXPath(\"y]jad[mR3w=N\");\n xPathLexer0.leftParen();\n xPathLexer0.doubleColon();\n xPathLexer0.pipe();\n xPathLexer0.consume();\n xPathLexer0.minus();\n Token token0 = xPathLexer0.identifierOrOperatorName();\n assertNull(token0);\n }", "public static BinaryExpression and(Expression expression0, Expression expression1) { throw Extensions.todo(); }", "@Override\r\n\tpublic boolean visit(QualifiedName node) {\r\n\t\toperand(node,node.getFullyQualifiedName());\r\n\t\treturn false;\r\n\t}", "@Override\n\tpublic void visit(IsNullExpression arg0) {\n\t\t\n\t}", "@Override\n public R visit(UnaryExpression n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "public final EObject ruleUnaryExpression() throws RecognitionException {\n EObject current = null;\n\n Token otherlv_0=null;\n Token otherlv_2=null;\n EObject this_UnaryExpression_1 = null;\n\n EObject this_UnaryExpression_3 = null;\n\n EObject this_UnaryExpressionNotPlusMinus_4 = null;\n\n\n enterRule(); \n \n try {\n // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:841:28: ( ( (otherlv_0= '+' this_UnaryExpression_1= ruleUnaryExpression ) | (otherlv_2= '-' this_UnaryExpression_3= ruleUnaryExpression ) | this_UnaryExpressionNotPlusMinus_4= ruleUnaryExpressionNotPlusMinus ) )\n // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:842:1: ( (otherlv_0= '+' this_UnaryExpression_1= ruleUnaryExpression ) | (otherlv_2= '-' this_UnaryExpression_3= ruleUnaryExpression ) | this_UnaryExpressionNotPlusMinus_4= ruleUnaryExpressionNotPlusMinus )\n {\n // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:842:1: ( (otherlv_0= '+' this_UnaryExpression_1= ruleUnaryExpression ) | (otherlv_2= '-' this_UnaryExpression_3= ruleUnaryExpression ) | this_UnaryExpressionNotPlusMinus_4= ruleUnaryExpressionNotPlusMinus )\n int alt13=3;\n switch ( input.LA(1) ) {\n case 33:\n {\n alt13=1;\n }\n break;\n case 34:\n {\n alt13=2;\n }\n break;\n case RULE_INT:\n case RULE_LONG:\n case RULE_FLOAT:\n case RULE_DOUBLE:\n case RULE_CHAR:\n case RULE_STRING:\n case RULE_ID:\n case 38:\n case 39:\n case 41:\n case 42:\n case 43:\n case 44:\n case 45:\n case 48:\n case 49:\n case 50:\n case 51:\n {\n alt13=3;\n }\n break;\n default:\n if (state.backtracking>0) {state.failed=true; return current;}\n NoViableAltException nvae =\n new NoViableAltException(\"\", 13, 0, input);\n\n throw nvae;\n }\n\n switch (alt13) {\n case 1 :\n // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:842:2: (otherlv_0= '+' this_UnaryExpression_1= ruleUnaryExpression )\n {\n // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:842:2: (otherlv_0= '+' this_UnaryExpression_1= ruleUnaryExpression )\n // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:842:4: otherlv_0= '+' this_UnaryExpression_1= ruleUnaryExpression\n {\n otherlv_0=(Token)match(input,33,FOLLOW_33_in_ruleUnaryExpression1951); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \tnewLeafNode(otherlv_0, grammarAccess.getUnaryExpressionAccess().getPlusSignKeyword_0_0());\n \n }\n if ( state.backtracking==0 ) {\n \n newCompositeNode(grammarAccess.getUnaryExpressionAccess().getUnaryExpressionParserRuleCall_0_1()); \n \n }\n pushFollow(FOLLOW_ruleUnaryExpression_in_ruleUnaryExpression1973);\n this_UnaryExpression_1=ruleUnaryExpression();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n \n current = this_UnaryExpression_1; \n afterParserOrEnumRuleCall();\n \n }\n\n }\n\n\n }\n break;\n case 2 :\n // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:856:6: (otherlv_2= '-' this_UnaryExpression_3= ruleUnaryExpression )\n {\n // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:856:6: (otherlv_2= '-' this_UnaryExpression_3= ruleUnaryExpression )\n // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:856:8: otherlv_2= '-' this_UnaryExpression_3= ruleUnaryExpression\n {\n otherlv_2=(Token)match(input,34,FOLLOW_34_in_ruleUnaryExpression1992); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \tnewLeafNode(otherlv_2, grammarAccess.getUnaryExpressionAccess().getHyphenMinusKeyword_1_0());\n \n }\n if ( state.backtracking==0 ) {\n \n newCompositeNode(grammarAccess.getUnaryExpressionAccess().getUnaryExpressionParserRuleCall_1_1()); \n \n }\n pushFollow(FOLLOW_ruleUnaryExpression_in_ruleUnaryExpression2014);\n this_UnaryExpression_3=ruleUnaryExpression();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n \n current = this_UnaryExpression_3; \n afterParserOrEnumRuleCall();\n \n }\n\n }\n\n\n }\n break;\n case 3 :\n // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:871:5: this_UnaryExpressionNotPlusMinus_4= ruleUnaryExpressionNotPlusMinus\n {\n if ( state.backtracking==0 ) {\n \n newCompositeNode(grammarAccess.getUnaryExpressionAccess().getUnaryExpressionNotPlusMinusParserRuleCall_2()); \n \n }\n pushFollow(FOLLOW_ruleUnaryExpressionNotPlusMinus_in_ruleUnaryExpression2042);\n this_UnaryExpressionNotPlusMinus_4=ruleUnaryExpressionNotPlusMinus();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n \n current = this_UnaryExpressionNotPlusMinus_4; \n afterParserOrEnumRuleCall();\n \n }\n\n }\n break;\n\n }\n\n\n }\n\n if ( state.backtracking==0 ) {\n leaveRule(); \n }\n }\n \n catch (RecognitionException re) { \n recover(input,re); \n appendSkippedTokens();\n } \n finally {\n }\n return current;\n }", "@Test(timeout = 4000)\n public void test066() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"d>%NV0\");\n xPathLexer0.leftParen();\n Token token0 = xPathLexer0.div();\n assertNull(token0);\n }", "@Test(timeout = 4000)\n public void test070() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer();\n xPathLexer0.nextToken();\n xPathLexer0.setXPath(\"y]jad[mR3w=N\");\n xPathLexer0.leftParen();\n xPathLexer0.doubleColon();\n Token token0 = xPathLexer0.identifierOrOperatorName();\n assertNull(token0);\n }", "@Test(timeout = 4000)\n public void test003() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"hN!SM~8ux(wB\");\n xPathLexer0.dollar();\n Token token0 = xPathLexer0.and();\n assertNull(token0);\n }", "@Override\n protected HardwareNode visit(BinaryExpressionASTNode node) throws Exception {\n var lnode = visit(node.getLeft());\n var rnode = visit(node.getRight());\n\n HardwareExpression finalexpr = null;\n String op = node.getOperator().getAsString();\n switch (op) {\n case \"+\":\n finalexpr = new AdditionExpression((HardwareExpression) lnode, (HardwareExpression) rnode);\n break;\n case \"-\":\n finalexpr = new SubtractionExpression((HardwareExpression) lnode, (HardwareExpression) rnode);\n break;\n case \"*\":\n finalexpr = new MultiplicationExpression((HardwareExpression) lnode, (HardwareExpression) rnode);\n break;\n case \"<<\":\n finalexpr = new LeftShiftExpression((HardwareExpression) lnode, (HardwareExpression) rnode);\n break;\n case \"&\":\n finalexpr = new BitWiseAndExpression((HardwareExpression) lnode, (HardwareExpression) rnode);\n break;\n case \"==\":\n finalexpr = new ComparisonExpression((HardwareExpression) lnode, (HardwareExpression) rnode);\n break;\n default:\n // finalexpr = new UnimplementedExpression((HardwareExpression) lnode, (HardwareExpression) rnode, op);\n throw new UnimplementedExpressionException(node.getAsString());\n }\n\n return new ParenthesisExpression(finalexpr);\n }", "@Test(timeout = 4000)\n public void test002() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"/a\");\n xPathLexer0.dollar();\n Token token0 = xPathLexer0.and();\n assertNull(token0);\n }", "public Object visitBitwiseOrExpression(GNode n) {\n Object a, b, result;\n \n nonboolean = true;\n \n dostring = true;\n \n a = dispatch(n.getGeneric(0));\n b = dispatch(n.getGeneric(1));\n \n dostring = false;\n \n if (a instanceof Long && b instanceof Long) {\n result = (Long) a | (Long) b;\n }\n else {\n result = parens(a) + \" | \" + parens(b);\n }\n \n return result;\n }", "@Override\n public Node visit(BinaryExpression nd, Void v) {\n if (\"??\".equals(nd.getOperator())) return nd;\n return nd.getLeft().accept(this, v);\n }", "private InfixExpression getNode()\n{\n return (InfixExpression) ast_node;\n}", "@Test(timeout = 4000)\n public void test080() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"y/F+oSztXWDMo}00{5-\");\n Token token0 = xPathLexer0.leftParen();\n assertEquals(\"y\", token0.getTokenText());\n assertEquals(1, token0.getTokenType());\n \n Token token1 = xPathLexer0.nextToken();\n assertEquals(\"/\", token1.getTokenText());\n assertEquals(11, token1.getTokenType());\n \n Token token2 = xPathLexer0.identifierOrOperatorName();\n assertEquals(\"F\", token2.getTokenText());\n assertEquals(15, token2.getTokenType());\n }", "public static BinaryExpression andAlso(Expression expression0, Expression expression1, Method method) { throw Extensions.todo(); }", "protected Evaluable parseExpression() throws ParsingException {\n Evaluable sub = parseSubExpression();\n\n while (_token != null &&\n _token.type == TokenType.Operator &&\n \">=<==!=\".indexOf(_token.text) >= 0) {\n\n String op = _token.text;\n\n next(true);\n\n Evaluable sub2 = parseSubExpression();\n\n sub = new OperatorCallExpr(new Evaluable[] { sub, sub2 }, op);\n }\n\n return sub;\n }", "public Object visitLogicalOrExpression(GNode n) {\n if (dostring) {\n Object a = dispatch(n.getGeneric(0));\n Object b = dispatch(n.getGeneric(1));\n \n if (a instanceof Long && b instanceof Long) {\n return (Long) a | (Long) b;\n }\n else {\n return parens(a) + \" || \" + parens(b);\n }\n }\n else {\n BDD a, b, bdd;\n \n a = ensureBDD(dispatch(n.getGeneric(0)));\n b = ensureBDD(dispatch(n.getGeneric(1)));\n \n bdd = a.orWith(b);\n \n return bdd;\n }\n }", "@Test(timeout = 4000)\n public void test084() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"(xA>7o;9b=;e*Y(m\");\n Token token0 = xPathLexer0.rightParen();\n xPathLexer0.setPreviousToken(token0);\n Token token1 = xPathLexer0.identifierOrOperatorName();\n assertNull(token1);\n }", "public static BinaryExpression andAssign(Expression expression0, Expression expression1) { throw Extensions.todo(); }", "@Test(timeout = 4000)\n public void test019() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\">6_XdrPl\");\n Token token0 = xPathLexer0.relationalOperator();\n assertNotNull(token0);\n assertEquals(\">\", token0.getTokenText());\n assertEquals(9, token0.getTokenType());\n \n Token token1 = xPathLexer0.rightParen();\n assertEquals(2, token1.getTokenType());\n assertEquals(\"6\", token1.getTokenText());\n \n char char0 = xPathLexer0.LA(0);\n assertEquals('6', char0);\n }", "CriteriaExpression<?> getLeftHandOperand();", "@Test(timeout = 4000)\n public void test068() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"Y44o{5$K\");\n xPathLexer0.leftParen();\n xPathLexer0.nextToken();\n Token token0 = xPathLexer0.operatorName();\n assertNull(token0);\n }", "Expression() { }", "@Test(timeout = 4000)\n public void test022() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"[ (\");\n xPathLexer0.setPreviousToken((Token) null);\n assertEquals(\"[ (\", xPathLexer0.getXPath());\n }", "@Test\n\tpublic void testBuildExpressionWithThreeArguments() {\n\t\t\n\t\tWord wordA = new Word(\"apple\", 1);\n\t\tWord wordB = new Word(\"car\", 1);\n\t\tWord wordC = new Word(\"roof\", 2);\n\t\t\n\t\tExpressionBuilder<Word> builder = new ExpressionBuilder<>();\n\t\tbuilder.append(null, wordA);\n\t\tbuilder.append(new AndOperator<Word>(), wordB);\n\t\tbuilder.append(new OrOperator<Word>(), wordC);\n\t\t\n\t\tExpression<Word> resultExpression = builder.getExpression();\n\t\t\n\t\tString expectedResult = \"((apple [1] AND car [1]) OR roof [2])\";\n\t\t\n\t\tSystem.out.println(resultExpression.evaluate());\n\t\tassertEquals(expectedResult, resultExpression.toString());\n\t\t\n\t}", "boolean isUnary() {\r\n\t\treturn (n2==null) && (t2==null);\r\n\t}", "FullExpression createFullExpression();", "public static UnaryExpression makeUnary(ExpressionType expressionType, Expression expression, Class type) { throw Extensions.todo(); }", "@Test\n\t\tpublic void testExpression() throws LexicalException, SyntaxException {\n\t\t\tString input = \"x + 2\";\n\t\t\tPLPParser parser = makeParser(input);\n\t\t\tExpression e = parser.expression(); //call expression here instead of parse\n\t\t\tshow(e);\t\n\t\t\tassertEquals(ExpressionBinary.class, e.getClass());\n\t\t\tExpressionBinary b = (ExpressionBinary)e;\n\t\t\tassertEquals(ExpressionIdentifier.class, b.leftExpression.getClass());//\n\t\t\tExpressionIdentifier left = (ExpressionIdentifier)b.leftExpression;\n\t\t\tassertEquals(\"x\", left.name);\n\t\t\tassertEquals(ExpressionIntegerLiteral.class, b.rightExpression.getClass());\n\t\t\tExpressionIntegerLiteral right = (ExpressionIntegerLiteral)b.rightExpression;\n\t\t\tassertEquals(2, right.value);\n\t\t\tassertEquals(OP_PLUS, b.op);\n\t\t}", "@Test(timeout = 4000)\n public void test135() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"d>%NV0\");\n Token token0 = xPathLexer0.leftParen();\n assertEquals(\"d\", token0.getTokenText());\n assertEquals(1, token0.getTokenType());\n \n Token token1 = xPathLexer0.nextToken();\n assertEquals(\">\", token1.getTokenText());\n assertEquals(9, token1.getTokenType());\n \n Token token2 = xPathLexer0.identifierOrOperatorName();\n assertEquals(15, token2.getTokenType());\n assertEquals(\"\", token2.getTokenText());\n }", "public String visit(Operator n, Object argu)\r\n\t {\r\n\t return null;\r\n\t }", "Unary operator(Operator o);", "public static BinaryExpression add(Expression expression0, Expression expression1, Method method) { throw Extensions.todo(); }", "@Test(timeout = 4000)\n public void test079() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\") (\");\n Token token0 = xPathLexer0.at();\n xPathLexer0.setPreviousToken(token0);\n assertEquals(\")\", token0.getTokenText());\n assertEquals(16, token0.getTokenType());\n \n Token token1 = xPathLexer0.identifierOrOperatorName();\n assertEquals(15, token1.getTokenType());\n assertEquals(\"\", token1.getTokenText());\n }", "public static BinaryExpression divide(Expression expression0, Expression expression1, Method method) { throw Extensions.todo(); }", "@Override\n\tpublic void visit(IsNullExpression arg0) {\n\n\t}", "LogicExpression getLeftExp();", "public abstract XPathExpression getExpression();", "@Test(timeout = 4000)\n public void test010() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer();\n String string0 = xPathLexer0.getXPath();\n assertNull(string0);\n }", "Expr term() throws IOException {\n\t\tExpr e = unary();\n\t\twhile (look.tag == '*' || look.tag == '/') {\n\t\t\tToken tok = look;\n\t\t\tmove();\n\t\t\te = new Arith(tok, e, unary());\n\t\t}\n\t\treturn e;\n\t}" ]
[ "0.6298912", "0.6174534", "0.61610514", "0.61066353", "0.6066107", "0.59209037", "0.58460045", "0.5838517", "0.5766054", "0.5759358", "0.575921", "0.5739439", "0.57281214", "0.5717116", "0.56817883", "0.5671641", "0.56491566", "0.558552", "0.55602354", "0.55420655", "0.55359966", "0.54979855", "0.5482297", "0.54788786", "0.54722005", "0.54688627", "0.5458204", "0.54407126", "0.5440515", "0.54374325", "0.54211205", "0.54172987", "0.5414953", "0.54101145", "0.5404214", "0.5395693", "0.5389356", "0.538581", "0.5375398", "0.5371211", "0.537086", "0.5349904", "0.53478986", "0.5344103", "0.53270715", "0.5309185", "0.5308152", "0.53075516", "0.52950543", "0.5293093", "0.52853507", "0.52814466", "0.5280737", "0.52795404", "0.5276123", "0.52736545", "0.52679837", "0.52637184", "0.5236112", "0.5234617", "0.52243966", "0.52230513", "0.5203423", "0.5202352", "0.5201416", "0.51907027", "0.5186107", "0.5182648", "0.51800203", "0.5179279", "0.5170796", "0.5158531", "0.5156964", "0.5156946", "0.5156818", "0.51544154", "0.51523656", "0.5149556", "0.5148484", "0.514781", "0.5147009", "0.5138621", "0.51322263", "0.5124677", "0.5120369", "0.5118189", "0.5117227", "0.51121914", "0.51076734", "0.51046604", "0.5103559", "0.51025134", "0.51005846", "0.5099237", "0.5099106", "0.5086753", "0.50851786", "0.5081713", "0.5079564", "0.5070114", "0.5069537" ]
0.0
-1
nodeChoice > ( "!" PrimaryExpression() | "+" PrimaryExpression() | "" PrimaryExpression() | PrimaryExpression() )
@Override public R visit(UnaryExpression n, A argu) { R _ret = null; n.nodeChoice.accept(this, argu); return _ret; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void defaultOperatorsEvaluteTrueTest() throws Exception {\n\n assertThat(getNode(\"1 == 1\", \"expr\").render(null), is((Object)true));\n assertThat(getNode(\"1 != 2\", \"expr\").render(null), is((Object)true));\n assertThat(getNode(\"1 <> 2\", \"expr\").render(null), is((Object)true));\n assertThat(getNode(\"1 < 2\", \"expr\").render(null), is((Object)true));\n assertThat(getNode(\"2 > 1\", \"expr\").render(null), is((Object)true));\n assertThat(getNode(\"1 >= 1\", \"expr\").render(null), is((Object)true));\n assertThat(getNode(\"2 >= 1\", \"expr\").render(null), is((Object)true));\n assertThat(getNode(\"1 <= 2\", \"expr\").render(null), is((Object)true));\n assertThat(getNode(\"1 <= 1\", \"expr\").render(null), is((Object)true));\n\n // negative numbers\n assertThat(getNode(\"1 > -1\", \"expr\").render(null), is((Object)true));\n assertThat(getNode(\"-1 < 1\", \"expr\").render(null), is((Object)true));\n assertThat(getNode(\"1.0 > -1.0\", \"expr\").render(null), is((Object)true));\n assertThat(getNode(\"-1.0 < 1.0\", \"expr\").render(null), is((Object)true));\n }", "@Override\r\n\tpublic boolean visit(QualifiedName node) {\r\n\t\toperand(node,node.getFullyQualifiedName());\r\n\t\treturn false;\r\n\t}", "@Override\n public R visit(SparqlString n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "@Override\n public R visit(PrimaryExpression n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "public Node simpleExpression(Node n_parent) {\r\n\r\n if(token.get(lookAheadPossition).contains(\"ident(\")||token.get(lookAheadPossition).contains(\"num(\")||token.get(lookAheadPossition).contains(\"boollit(\")||token.get(lookAheadPossition).equals(\"LP\")){\r\n System.out.println(\":: simpleExpression::if \"+n_parent.getData());\r\n Node makeown = new Node (\"makeown\");\r\n Node n_factor = this.term(makeown);\r\n //if (!(n_parent==null)) {n_parent.setNodeChild(n_factor); }//simpleExpression(n_factor); }\r\n //if (n_parent.getData().contains(\"-\")) {n_parent.setNodeChild(n_factor); simpleExpression(n_factor); } /////////************add\r\n //addNode = simpleExpressionNode.addChild(\"Add\");\r\n return(this.restSimpleExpression(n_parent,n_factor ));\r\n }\r\n return(null);\r\n }", "public R visit(Operator n) {\n R _ret=null;\n int which = n.f0.which;\n String s = \" \";\n switch (which)\n {\n case 0 : {s=\"LT\"; break;}\n case 1 : {s= \"PLUS\"; break;}\n case 2 : {s= \"MINUS\";break;}\n case 3 : {s= \"TIMES\"; break;}\n }\n \t return (R)s;\n }", "@Test(timeout = 4000)\n public void test001() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"hN!SM~8ux(wB\");\n xPathLexer0.dollar();\n xPathLexer0.not();\n xPathLexer0.nextToken();\n xPathLexer0.leftParen();\n xPathLexer0.whitespace();\n xPathLexer0.plus();\n Token token0 = xPathLexer0.or();\n assertNull(token0);\n }", "public void expression(Node n_parent) {\r\n if(token.get(lookAheadPossition).contains(\"ident(\")||token.get(lookAheadPossition).contains(\"num(\")||token.get(lookAheadPossition).contains(\"boollit(\")||token.get(lookAheadPossition).equals(\"LP\")){\r\n System.out.println(\":: expression::if- \"+n_parent.getData());\r\n\r\n Node makeown = new Node (\"makeown\");\r\n Node n_factor = this.simpleExpression(makeown);\r\n\r\n //compNode = expressionNode.addChild(\"Compare\");\r\n //Node n_connect =\r\n this.restExpression(n_parent,n_factor);\r\n //n_parent.setNodeChild(n_connect);\r\n }\r\n }", "@Override\n public TreeNode parse() {\n TreeNode first = ArithmeticSubexpression.getAdditive(environment).parse();\n if (first == null) return null;\n\n // Try to parse something starting with an operator.\n List<Wrapper> wrappers = RightSideSubexpression.createKleene(\n environment, ArithmeticSubexpression.getAdditive(environment),\n BemTeVicTokenType.EQUAL, BemTeVicTokenType.DIFFERENT,\n BemTeVicTokenType.GREATER_OR_EQUALS, BemTeVicTokenType.GREATER_THAN,\n BemTeVicTokenType.LESS_OR_EQUALS, BemTeVicTokenType.LESS_THAN\n ).parse();\n\n // If did not found anything starting with an operator, return the first node.\n if (wrappers.isEmpty()) return first;\n\n // Constructs a binary operator node containing the expression.\n Iterator<Wrapper> it = wrappers.iterator();\n Wrapper secondWrapper = it.next();\n BinaryOperatorNode second = new BinaryOperatorNode(secondWrapper.getTokenType(), first, secondWrapper.getOutput());\n\n if (wrappers.size() == 1) return second;\n\n // If we reach this far, the expression has more than one operator. i.e. (x = y = z),\n // which is a shortcut for (x = y AND y = z).\n\n // Firstly, determine if the operators are compatible.\n RelationalOperatorSide side = RelationalOperatorSide.NONE;\n for (Wrapper w : wrappers) {\n side = side.next(w.getTokenType());\n }\n if (side.isMixed()) {\n environment.emitError(\"XXX\");\n }\n\n // Creates the other nodes. In the expression (a = b = c = d), The \"a = b\"\n // is in the \"second\" node. Creates \"b = c\", and \"c = d\" nodes.\n List<BinaryOperatorNode> nodes = new LinkedList<BinaryOperatorNode>();\n nodes.add(second);\n\n TreeNode prev = secondWrapper.getOutput();\n while (it.hasNext()) {\n Wrapper w = it.next();\n BinaryOperatorNode current = new BinaryOperatorNode(w.getTokenType(), prev, w.getOutput());\n prev = w.getOutput();\n nodes.add(current);\n }\n\n // Combines all of the nodes in a single one using AND.\n return new VariableArityOperatorNode(BemTeVicTokenType.AND, nodes);\n }", "@Test\n public void defaultOperatorsEvaluateFalseTest() throws Exception {\n\n assertThat(getNode(\"1 == 2\", \"expr\").render(null), is((Object)false));\n assertThat(getNode(\"1 != 1\", \"expr\").render(null), is((Object)false));\n assertThat(getNode(\"1 <> 1\", \"expr\").render(null), is((Object)false));\n assertThat(getNode(\"1 < 0\", \"expr\").render(null), is((Object)false));\n assertThat(getNode(\"2 > 4\", \"expr\").render(null), is((Object)false));\n assertThat(getNode(\"1 >= 3\", \"expr\").render(null), is((Object)false));\n assertThat(getNode(\"2 >= 4\", \"expr\").render(null), is((Object)false));\n assertThat(getNode(\"1 <= 0\", \"expr\").render(null), is((Object)false));\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 }", "@Override\n\tpublic String visitCompexpr(CompexprContext ctx) {\n\t\t\n\t\tif(ctx.getChildCount()==3)\n\t\t{\n\t\t\t\n\t\t\t\n\t\t\tif(ctx.getChild(1).getText().equals(\"==\"))\n\t\t\t{\n\t\t\t\treturn \"EQL \"+visit(ctx.getChild(0)) +\" \"+visit(ctx.getChild(2));\n\t\t\t}\n\t\t\telse if(ctx.getChild(1).getText().equals(\">=\"))\n\t\t\t{\n\t\t\t\treturn \"GTE \"+visit(ctx.getChild(0)) +\" \"+visit(ctx.getChild(2));\n\t\t\t}\n\t\t\telse if(ctx.getChild(1).getText().equals(\"<=\"))\n\t\t\t{\n\t\t\t\treturn \"LTE \"+visit(ctx.getChild(0)) +\" \"+visit(ctx.getChild(2));\n\t\t\t}\n\t\t\telse if(ctx.getChild(1).getText().equals(\"<\"))\n\t\t\t{\n\t\t\t\treturn \"LT \"+visit(ctx.getChild(0)) +\" \"+visit(ctx.getChild(2));\n\t\t\t}\n\t\t\telse if(ctx.getChild(1).getText().equals(\">\"))\n\t\t\t{\n\t\t\t\treturn \"GT \"+visit(ctx.getChild(0)) +\" \"+visit(ctx.getChild(2));\n\t\t\t}\n\t\t\telse if(ctx.getChild(1).getText().equals(\"~=\"))\n\t\t\t{\n\t\t\t\treturn \"NE \"+visit(ctx.getChild(0)) +\" \"+visit(ctx.getChild(2));\n\t\t\t}\n\t\t}\n\t\telse if(ctx.getChildCount()==1)\n\t\t{\n\t\t\n\t\t\treturn ctx.getChild(0).getText();\n\t\t}\n\t\treturn \"\";\n\t\n\t\t\n\t\t\n\t\t\n\t}", "@Override \n\tpublic void caseAOpExpr(AOpExpr node){\n\t\tExpressionType expType = (ExpressionType) nodeTypes.get(node.getOp()); \n\t\tswitch (expType){\n\t\t\tcase AND :\n\t\t\tcreateShortCircuitAnd(node);\n\t\t\t\tbreak;\n\t\t\tcase OR :\n\t\t\tcreateShortCircuiteOR(node);\n\t\t\t\tbreak;\n\t\t\tcase ADD :\n\t\t\t\tType left = nodeTypes.get(node.getLeft()); \n\t\t\t\tif (left == Type.STRING_TYPE){\n\t\t\t\t\tthis.createStringConcat(node);\n\t\t\t\t\tbreak; \n\t\t\t\t}\n\t\t\tdefault : \n\t\t\t\tsuper.caseAOpExpr(node); \n\t\t}\n\t}", "public Node expression()\r\n\t{\r\n\t\tNode lhs = term();\r\n\t\tif(lhs!=null)\r\n\t\t{\r\n\t\t\tint index = lexer.getPosition();\r\n\t\t\tLexer.Token token = lexer.getToken();\r\n\t\t\twhile(token == Lexer.Token.PLUS\r\n\t\t\t\t||token == Lexer.Token.MINUS)\r\n\t\t\t{\r\n\t\t\t\tNode rhs = term(); \r\n\t\t\t\tif(rhs!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tif(token == Lexer.Token.PLUS)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tlhs = new Add(lhs,rhs);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(token == Lexer.Token.MINUS)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tlhs = new Sub(lhs,rhs);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tindex = lexer.getPosition();\r\n\t\t\t\t\ttoken = lexer.getToken();\r\n\t\t\t\t}\r\n\t\t\t\telse break;\r\n\t\t\t}\r\n\t\t\tlexer.setPosition(index);\r\n\t\t}\r\n\t\treturn lhs;\r\n\t}", "public UnaryExpNode() {\n }", "@Override\n public NodeType ExecuteOperation()\n {\n //if the first child is an operator\n if(this.childNodes[0].isOperator==true)\n {\n BasicOperator basicOperator=(BasicOperator)this.childNodes[0]; \n if(basicOperator.operands==1)\n {\n UnaryOperator unaryOperator=(UnaryOperator)childNodes[0];\n return unaryOperator.PerformOperation(childNodes[1]);\n }\n else if(basicOperator.operands==2)\n {\n BinaryOperator binaryOperator=(BinaryOperator)childNodes[0];\n return binaryOperator.PerformOperation(childNodes[1], childNodes[2]);\n }\n else if(basicOperator.operands==3)\n {\n TernaryOperator ternaryOperator=(TernaryOperator)childNodes[0];\n return ternaryOperator.PerformOperation(childNodes[1], childNodes[2], childNodes[3]);\n }\n }\n //if not an operator\n else\n {\n return this.childNodes[0].ExecuteOperation();\n }\n return null;\n }", "@Override\n\tpublic void outAOpExpr(AOpExpr node) {\n\t\tExpressionType expType = (ExpressionType) nodeTypes.get(node.getOp()); \n\t\tType left = nodeTypes.get(node.getLeft()); \n\t\tswitch (expType){\n\t\t\tcase DIV :\n\t\t\t\tcreateBinArithmetic(\"/\"); \n\t\t\t\tbreak; \n\t\t\tcase MINUS: \n\t\t\t\tcreateBinArithmetic(\"-\"); \n\t\t\t\tbreak; \n\t\t\tcase MOD: \n\t\t\t\tcreateBinArithmetic(\"%\"); \n\t\t\t\tbreak;\n\t\t\tcase MUL:\n\t\t\t\tcreateBinArithmetic(\"*\"); \n\t\t\t\tbreak; \n\t\t\tcase ADD : \n\t\t\t\tif ( left != Type.STRING_TYPE ){\n\t\t\t\t\tcreateBinArithmetic(\"+\"); \n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase AINVERSE : \n\t\t\t\til.append(new INEG()); \n\t\t\t\tbreak;\n\t\t\t\t//TODO comparison \n\t\t\tcase LOWEREQ:\n\t\t\t\tcreateCmpOp(Constants.IF_ICMPGT);\n\t\t\t\tbreak; \n\t\t\tcase LOWER :\n\t\t\t\tcreateCmpOp(Constants.IF_ICMPGE); \n\t\t\t\tbreak; \n\t\t\tcase BIGGEREQ:\n\t\t\t\tcreateCmpOp(Constants.IF_ICMPLT);\n\t\t\t\tbreak; \n\t\t\tcase BIGGER : \n\t\t\t\tcreateCmpOp(Constants.IF_ICMPLE); \n\t\t\t\tbreak; \n\t\t\tcase EQ :\n\t\t\t\tif (left == Type.BOOLEAN_TYPE || left == Type.INTEGER_TYPE)\n\t\t\t\t\tcreateCmpOp(Constants.IF_ICMPNE);\n\t\t\t\telse\n\t\t\t\t\tcreateCmpOp(Constants.IF_ACMPNE); \n\t\t\t\tbreak;\n\t\t\tcase NEQ :\n\t\t\t\tif (left == Type.BOOLEAN_TYPE || left == Type.INTEGER_TYPE)\n\t\t\t\t\tcreateCmpOp(Constants.IF_ICMPEQ);\n\t\t\t\telse\n\t\t\t\t\tcreateCmpOp(Constants.IF_ACMPEQ); \n\t\t\t\tbreak; \n\t\t\tcase NOT : \n\t\t\t\tcreateCmpOp(Constants.IFNE); \n\t\t\t\tbreak;\n\t\t}\n\t}", "@Override\n public Node visit(BinaryExpression nd, Void v) {\n if (\"??\".equals(nd.getOperator())) return nd;\n return nd.getLeft().accept(this, v);\n }", "public String visit(Operator n, Object argu)\r\n\t {\r\n\t return null;\r\n\t }", "Expr expr();", "ExpOperand createExpOperand();", "@Override\n\tpublic void VisitUnaryNode(UnaryOperatorNode Node) {\n\n\t}", "@Override\n public String visit(BinaryExpr n, Object arg) {\n return null;\n }", "@Override\n\tpublic String visitExpr(MicroParser.ExprContext ctx) {\n\t\tString prefix = visit(ctx.expr_prefix());\n\t\tString expr = prefix + visit(ctx.term());\n\t\t\n\t\t//System.out.println(\"in visit expr: \"+expr);\n\t\t//System.out.println(\"in visit expr: prefix is: \"+prefix);\n\t\tif((prefix.contentEquals(\"\"))) return expr;\n\t\tString op1, op2, result;\n\t\tString type = currentType;\n\t\tString[] ids = expr.split(\"\\\\-|\\\\+\");\n\t List<String> operands = new ArrayList<String>();\n\t List<Character> addops = new ArrayList<Character>();\n\t \n\t for(int i=0;i<expr.length();i++) {\n\t \tif(expr.charAt(i)=='+' || expr.charAt(i)=='-')\n\t \t\taddops.add(expr.charAt(i));\n\t }\n\t //create a list of addops\n\t \n\t //create a list of operands \n\t for(String i:ids) \n\t \t operands.add(i);\n\t \n\t op1 = operands.get(0);\n\t op2 = operands.get(1);\n\t temp = new Temporary(type);\n\t result = temp.fullName;\n\t tempList.addT(temp);\n\t //System.out.println(\"in visit expr, ops are: \"+op1+\" \"+ op2);\n\t //System.out.println(\"in visit expr, result is: \"+ result);\n\t if(addops.get(0)=='+') {\n\t \tglobalIR.addStmt(IRStatement.generateArithmetic(type, \"ADD\", op1, op2, result));\n\t \toperands.remove(0); operands.remove(0); addops.remove(0);\n\t }\n\t \t\n\t else {\n\t \tglobalIR.addStmt(IRStatement.generateArithmetic(type, \"SUB\", op1, op2, result));\n\t \toperands.remove(0); operands.remove(0); addops.remove(0);\n\t }\n\t \n\t \t\n\t if(operands.size()==0) return result;\n\t \n\t for(int i=0; i<operands.size();i++) {\n\t \top1 = result;\n\t \top2 = operands.get(i);\n\t \ttemp = new Temporary(type);\n\t \tresult = temp.fullName;\n\t \ttempList.addT(temp);\n\t \tif(addops.get(0)=='+') {\n\t\t \tglobalIR.addStmt(IRStatement.generateArithmetic(type, \"ADD\", op1, op2, result));\n\t\t \taddops.remove(0);\n\t \t}\n\t\t \t\n\t\t else {\n\t\t \tglobalIR.addStmt(IRStatement.generateArithmetic(type, \"SUB\", op1, op2, result));\n\t\t \taddops.remove(0);\n\t\t }\n\t\t \t\n\t }\n\t return result; \n\t\t\n\t}", "public interface Node {\n Oper oper();\n CNFOrdinal toCNF();\n}", "@Override public JannotTreeJCExpression getLeftOperand()\n{\n return createTree(getNode().getLeftOperand()); \n}", "private Expr primary() {\n if(match(FALSE)) return new Expr.Literal(false);\n if(match(TRUE)) return new Expr.Literal(true);\n if(match(NIL)) return new Expr.Literal(null);\n\n if(match(NUMBER, STRING)) {\n // These values have already been parsed into Java values by the scanner\n return new Expr.Literal(previous().literal);\n }\n\n if(match(SUPER)) { // We hit super! Treat this much like \"get\".\n Token keyword = previous();\n consume(DOT, \"Expect '.' after 'super'.\");\n Token method = consume(IDENTIFIER, \"Expect superclass method name.\");\n return new Expr.Super(keyword, method);\n }\n\n if(match(THIS)) return new Expr.This(previous());\n\n if(match(IDENTIFIER)) {\n return new Expr.Variable(previous()); // This is what allows the use of variables\n }\n\n if(match(LEFT_PAREN)) {\n Expr expr = expression();\n consume(RIGHT_PAREN, \"Expect ')' after expression.\");\n return new Expr.Grouping(expr);\n }\n\n throw error(peek(), \"Expected expression.\");\n }", "private CalculatableNode nextNode() throws IOException {\n\t\tint ttype;\n\t\tttype = tokenizer.nextToken();\n\t\tif (ttype == StreamTokenizer.TT_NUMBER) {\n\t\t\treturn new NumericalNode((int) tokenizer.nval);\n\t\t}\n\t\tif (ttype >= 0) {\n\t\t\t// sign character such as +-*/()\n\t\t\tchar sign = (char) tokenizer.ttype;\n\t\t\tif (sign == '(') {\n\t\t\t\tCalculatableNode node = parseNode();\n\t\t\t\treturn node;\n\t\t\t}\n\t\t}\n\t\tthrow new IllegalFormulaException(\"数式が不正です\");\n\t}", "@Test(timeout = 4000)\n public void test075() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\") (\");\n Token token0 = xPathLexer0.equals();\n xPathLexer0.setPreviousToken(token0);\n assertEquals(21, token0.getTokenType());\n assertEquals(\")\", token0.getTokenText());\n \n Token token1 = xPathLexer0.identifierOrOperatorName();\n assertEquals(15, token1.getTokenType());\n assertEquals(\"\", token1.getTokenText());\n }", "public interface QuotedL1Node {\n\n}", "boolean operator(Character input){\r\n //detects operands\r\n if(input == '^'||input == '-'||input == '+'||input == '/'||input == '*'|| input =='('|| input ==')'){\r\n return true;\r\n }\r\n else\r\n return false;\r\n }", "@Test\n public void basicConditionTest() throws Exception {\n\n assertThat(getNode(\"1 == 2\", \"expr\").render(null), is((Object)false));\n assertThat(getNode(\"1 == 1\", \"expr\").render(null), is((Object)true));\n }", "LogicExpression getExpr();", "private void processOperator() {\r\n\t\tif (expression[currentIndex] == '*') {\r\n\t\t\ttoken = new Token(TokenType.OPERATOR, Constants.AND_STRING);\r\n\t\t} else if (expression[currentIndex] == '+') {\r\n\t\t\ttoken = new Token(TokenType.OPERATOR, Constants.OR_STRING);\r\n\t\t} else if (expression[currentIndex] == '!') {\r\n\t\t\ttoken = new Token(TokenType.OPERATOR, Constants.NOT_STRING);\r\n\t\t} else {\r\n\t\t\ttoken = new Token(TokenType.OPERATOR, Constants.XOR_STRING);\r\n\t\t\t// xor operator has 2 characters more than any other operator.\r\n\t\t\tcurrentIndex += 2;\r\n\t\t}\r\n\r\n\t\tcurrentIndex++;\r\n\t}", "@Override\n public String visit(BooleanLiteralExpr n, Object arg) {\n return null;\n }", "@Override\n\tpublic Object visit(ASTLogical node, Object data)\n\t{\n\t\treturn visitOperatorNode(node, data);\n\t}", "@Override\n public R visit(NumericLiteral n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "@Test(timeout = 4000)\n public void test059() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"<= \");\n Token token0 = xPathLexer0.relationalOperator();\n assertEquals(8, token0.getTokenType());\n assertNotNull(token0);\n assertEquals(\"<=\", token0.getTokenText());\n }", "@Override\n\tpublic Object visit(ASTRelational node, Object data)\n\t{\n\t\treturn visitOperatorNode(node, data);\n\t}", "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 static void QuestionOne(Node n) {\n\n\n\n }", "@Override\n public R visit(NumericLiteralPositive n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "public node cnf() { rule: anything can sit immediately below ands\n //\n System.out.println( \" should not call \" );\n System.exit( 1 );\n return null;\n }", "public Node factor(Node n_parent) {\r\n String identifier=\"\";\r\n String type=\"\";\r\n if(token.get(lookAheadPossition).contains(\"ident(\")){\r\n System.out.println(\":: factor:if:\");\r\n identifier = token.get(lookAheadPossition).substring(6, token.get(lookAheadPossition).length() - 1);\r\n type = (String) symbolTable.get(identifier);\r\n type=type.toLowerCase();\r\n\r\n this.CheckError(token.get(lookAheadPossition));\r\n Node n_factor =new Node(identifier+\":\"+type);\r\n\r\n return n_factor;\r\n }\r\n else if(token.get(lookAheadPossition).contains(\"num(\")){\r\n System.out.println(\":: factor:if\");\r\n identifier = token.get(lookAheadPossition).substring(4, token.get(lookAheadPossition).length() - 1);\r\n type = \"int\";\r\n\r\n this.CheckError(token.get(lookAheadPossition));\r\n Node n_factor =new Node(identifier+\":\"+type);\r\n return n_factor;\r\n }\r\n else if(token.get(lookAheadPossition).contains(\"boollit(\")){\r\n System.out.println(\":: factor:if\");\r\n identifier = token.get(lookAheadPossition).substring(8, token.get(lookAheadPossition).length() - 1);\r\n\r\n System.out.println(\":: factor:if:boollit \"+identifier);\r\n if (identifier.contentEquals(\"true\") || identifier.contentEquals(\"false\") ){ type=\"bool\";}else { type = (String) symbolTable.get(identifier); type = type.toLowerCase();}\r\n System.out.println(\":: factor:if:boolint\"+type);\r\n this.CheckError(token.get(lookAheadPossition));\r\n Node n_factor =new Node(identifier+\":\"+type);\r\n return n_factor;\r\n }\r\n else if(token.get(lookAheadPossition).equals(\"LP\")){\r\n System.out.println(\":: factor:if:: LP\");\r\n//\r\n this.CheckError(\"LP\");\r\n// Node n_LP_RP = n_parent.setChildren(\"LP:RP\");\r\n //this.simpleExpression(n_parent );\r\n Node n_factor = this.simpleExpression(n_parent);\r\n this.CheckError(\"RP\");\r\n return n_factor;\r\n }\r\n return(null);\r\n }", "@Test\r\n\t\tpublic void testParseOperator() {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\tdriver.findElement(By.id(\"code_code\")).sendKeys(\"a = 5\\nb = 6\\nc = a + (b * 4)\");;\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\tWebElement submitButton = driver.findElement(By.xpath(\"(//input[@name='commit'])[2]\"));\r\n\t\t\tsubmitButton.click();\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\ttry {\r\n\t\t\t\tWebElement e = driver.findElement(By.tagName(\"code\"));\r\n\t\t\t\tString elementText = e.getText();\r\n\t\t\t\tassertTrue(elementText.contains(\"*\"));\r\n\t\t\t} catch (NoSuchElementException nseex) {\r\n\t\t\t\tfail();\r\n\t\t\t}\r\n\t\t}", "@Override\n\tpublic String visitExpression(ExpressionContext ctx) {\n\t\tif(ctx.getChildCount() == 3){\n\t\t\treturn visit(ctx.getChild(1));\n\t\t}\n\t\tParseTree cur = ctx.getChild(0);\n\t\tif(!(cur instanceof TerminalNode)){\n\t\t\treturn visit(cur);\n\t\t}\n\t\telse if(cur == ctx.ID()){\n\t\t\tString key=visitTerminal((TerminalNode)cur);\n\t\t\tRecord id= table.lookup(key);\n\t\t\tif (id==null) throw new RuntimeException(\"Identifier \"+key+\" is not declared\");\t\t\t\t\t\n\t\t\treturn id.getReturnType();\n\t\t}\n\t\telse if (cur==ctx.BOOLEANLIT()) return \"boolean\";\n\t\telse if (cur==ctx.STRING()) return \"String\";\n\t\treturn null;\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 }", "final public IASTLiteralTextNode Argument() throws ParseException {\r\n IASTLiteralTextNode node = null;\r\n Token lastToken = null;\r\n Token equalToken = null;\r\n Token firstToken = null;\r\n switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\r\n case INT:\r\n firstToken = jj_consume_token(INT);\r\n if (jj_2_3(2147483647)) {\r\n equalToken = jj_consume_token(EQUAL);\r\n switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\r\n case MINUS:\r\n jj_consume_token(MINUS);\r\n break;\r\n default:\r\n jj_la1[16] = jj_gen;\r\n ;\r\n }\r\n lastToken = jj_consume_token(INT);\r\n } else {\r\n ;\r\n }\r\n if (equalToken == null) {\r\n lastToken = firstToken;\r\n }\r\n break;\r\n case ASTERISK:\r\n case WORD:\r\n case STRING:\r\n case PACKAGE_OPTION:\r\n switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\r\n case ASTERISK:\r\n firstToken = jj_consume_token(ASTERISK);\r\n break;\r\n case PACKAGE_OPTION:\r\n firstToken = jj_consume_token(PACKAGE_OPTION);\r\n break;\r\n case WORD:\r\n firstToken = jj_consume_token(WORD);\r\n break;\r\n case STRING:\r\n firstToken = jj_consume_token(STRING);\r\n break;\r\n default:\r\n jj_la1[17] = jj_gen;\r\n jj_consume_token(-1);\r\n throw new ParseException();\r\n }\r\n lastToken = firstToken;\r\n break;\r\n default:\r\n jj_la1[18] = jj_gen;\r\n jj_consume_token(-1);\r\n throw new ParseException();\r\n }\r\n node = getRawLiteralTextNodeSpanning(firstToken, lastToken);\r\n {if (true) return node;}\r\n throw new Error(\"Missing return statement in function\");\r\n }", "@Override\n public R visit(GraphTerm n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\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}", "Expression addExpression() throws SyntaxException {\r\n\t\tToken first = t;\r\n\t\tExpression e0 = multExpression();\r\n\t\twhile(isKind(OP_PLUS, OP_MINUS)) {\r\n\t\t\tToken op = consume();\r\n\t\t\tExpression e1 = multExpression();\r\n\t\t\te0 = new ExpressionBinary(first,e0,op,e1);\r\n\t\t}\r\n\t\treturn e0;\r\n\t}", "public Object visitLogicalNegationExpression(GNode n) {\n if (dostring) {\n Object a = dispatch(n.getGeneric(0));\n \n if (a instanceof Long) {\n return \"\" + ((((Long) a).equals(new Long(0))) ? 1 : 0);\n }\n else {\n return \"! \" + parens(a);\n }\n }\n else {\n BDD a = ensureBDD(dispatch(n.getGeneric(0)));\n BDD bdd;\n \n bdd = a.not();\n \n a.free();\n \n return bdd;\n }\n }", "@Override\n public String visit(UnaryExpr n, Object arg) {\n return null;\n }", "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 }", "@Test\n\t\tpublic void testExpression() throws LexicalException, SyntaxException {\n\t\t\tString input = \"x + 2\";\n\t\t\tPLPParser parser = makeParser(input);\n\t\t\tExpression e = parser.expression(); //call expression here instead of parse\n\t\t\tshow(e);\t\n\t\t\tassertEquals(ExpressionBinary.class, e.getClass());\n\t\t\tExpressionBinary b = (ExpressionBinary)e;\n\t\t\tassertEquals(ExpressionIdentifier.class, b.leftExpression.getClass());//\n\t\t\tExpressionIdentifier left = (ExpressionIdentifier)b.leftExpression;\n\t\t\tassertEquals(\"x\", left.name);\n\t\t\tassertEquals(ExpressionIntegerLiteral.class, b.rightExpression.getClass());\n\t\t\tExpressionIntegerLiteral right = (ExpressionIntegerLiteral)b.rightExpression;\n\t\t\tassertEquals(2, right.value);\n\t\t\tassertEquals(OP_PLUS, b.op);\n\t\t}", "@Override\n\tpublic String visitArExpr(ArExprContext ctx) {\n\t\tint chNo=ctx.children.size();\n\t\tif(chNo == 3){\n\t\t\tParseTree cur = ctx.getChild(1);\n\t\t\tif(cur==ctx.MULT() || cur==ctx.DIV()|| cur==ctx.PLUS() || cur==ctx.MINUS()){\n\t\t\t\tString left = visit(ctx.getChild(0));\n\t\t\t\tString right = visit(ctx.getChild(2));\n\t\t\t\tif(!(right.equals(left) && right.equals(\"int\")) ){throw new RuntimeException(\"Arithmetic operations only with integers\");}\n\t\t\t\treturn(\"int\");\n\t\t\t}\n\t\t\telse{\n\t\t\t\treturn(visit(cur));\n\t\t\t}\n\t\t}\n\t\telse{\n\t\t\tParseTree cur=ctx.getChild(0);\n\t\t\tif (cur instanceof TerminalNode) {\t\t\t\t\n\t\t\t\tif (cur==ctx.INTEG()) return \"int\";\n\t\t\t\telse if (cur==ctx.CH()) return \"char\";\n\t\t\t\telse if(cur==ctx.ID()){\n\t\t\t\t\tString key=visitTerminal((TerminalNode)cur);\n\t\t\t\t\tRecord id= table.lookup(key);\n\t\t\t\t\tif (id==null) throw new RuntimeException(\"Identifier \"+key+\" is not declared\");\t\t\t\t\t\n\t\t\t\t\treturn id.getReturnType();\t\t\t\t\t\n\t\t\t\t}\t\t\t \n\t\t\t}else {\n\t\t\t\tString type=visit(ctx.getChild(0));\n\t\t\t\treturn type;\n\t\t\t}\n\t\t\t\n\t\t}\n\t\treturn null;\n\t}", "private Operator checkOperator(char c){\n if (c == '+'){\n return new AddOperator(); \n }\n else if (c == '-'){\n return new SubOperator(); \n }\n else if (c == '*'){\n return new MulOperator(); \n }\n else if (c == '/'){\n return new DivOperator(); \n }\n else \n return null;\n }", "Expr expr() throws IOException {\n\t\tExpr e = term();\n\t\twhile (look.tag == '+' || look.tag == '-') {\n\t\t\tToken tok = look;\n\t\t\tmove();\n\t\t\te = new Arith(tok, e, term());\n\t\t}\n\t\treturn e;\n\t}", "private Term parseUnary(final boolean required) throws ParseException {\n Term t1 = null;\n final int tt = _tokenizer.next();\n if (tt == '+') {\n Term t2 = parseUnary(true);\n if (t2.isI() || t2.isD()) {\n t1 = t2;\n } else if (!isTypeChecking()) {\n t1 = t2;\n } else {\n reportTypeErrorN1(\"'+'\");\n }\n } else if (tt == '-') {\n Term t2 = parseUnary(true);\n if (t2 instanceof Term.ConstI) {\n t1 = new Term.ConstI(-((Term.ConstI) t2).getValue());\n } else if (t2 instanceof Term.ConstD) {\n t1 = new Term.ConstD(-((Term.ConstD) t2).getValue());\n } else if (t2.isI()) {\n t1 = new Term.Neg(Term.TYPE_I, t2);\n } else if (t2.isD()) {\n t1 = new Term.Neg(Term.TYPE_D, t2);\n } else if (!isTypeChecking()) {\n t1 = new Term.Neg(Term.TYPE_I, t2);\n } else {\n reportTypeErrorN1(\"'-'\");\n }\n } else if (tt == '!' || isKeyword(\"not\")) {\n Term t2 = parseUnary(true);\n if (t2.isB() || !isTypeChecking()) {\n t1 = new Term.NotB(t2);\n } else {\n reportTypeErrorB1(\"'!' or 'not'\");\n }\n } else if (tt == '~') {\n Term t2 = parseUnary(true);\n if (t2.isI() || !isTypeChecking()) {\n t1 = new Term.NotI(t2);\n } else {\n reportTypeErrorI1(\"'~'\");\n }\n } else {\n _tokenizer.pushBack();\n t1 = parsePostfix(required);\n }\n return t1;\n }", "Expression expression() throws SyntaxException {\r\n\t\tToken first = t;\r\n\t\tExpression e0 = orExpression();\r\n\t\tif (isKind(OP_QUESTION)) {\r\n\t\t\tconsume();\r\n\t\t\tExpression e1 = expression();\r\n\t\t\tmatch(OP_COLON);\r\n\t\t\tExpression e2 = expression();\r\n\t\t\te0 = new ExpressionConditional(first, e0, e1, e2);\r\n\t\t}\r\n\t\treturn e0;\r\n\t}", "@Override\n\tpublic String visitExpr(ExprContext ctx) {\n\t\t\t\t\n\t\t\tif(ctx.getChildCount()==1)\n\t\t\t{\n\t\t\t\treturn visitSubexpr(ctx.subexpr());\n\t\t\t}\n\t\t\telse\n\t\t\t\t\n\t\t\t{\n\t\t\t\tString result = \"\";\n\t\t\t\t\n\t\t\t\t\tresult = \"temp\"+ count.count++;\n\t\t\t\tif(ctx.getChild(1).getText().equals(\"+\"))\n\t\t\t\t{\n\t\t\t\t\tsb.append(\"ADD \"+visit(ctx.children.get(0))+\" \"+visitSubexpr(ctx.subexpr())+\" \"+result+\"\\n\");\n\t\t\t\t\treturn result;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tsb.append(\"SUB \"+visit(ctx.children.get(0))+\" \"+visitSubexpr(ctx.subexpr())+\" \"+ result+\"\\n\");\n\t\t\t\t\treturn result;\n\t\t\t\t}\n\t\t\t}\n\t\n\n\t\t\n\t}", "private Term parseAdd(final boolean required) throws ParseException {\n Term t1 = parseMul(required);\n while (t1 != null) {\n int tt = _tokenizer.next();\n if (tt == '+') {\n Term t2 = parseMul(true);\n if (t1.isD() && t2.isN() || t1.isN() && t2.isD()) {\n t1 = new Term.Add(Term.TYPE_D, t1, t2);\n } else if (t1.isI() && t2.isI()) {\n t1 = new Term.Add(Term.TYPE_I, t1, t2);\n } else if (!isTypeChecking()) {\n t1 = new Term.Add(t1.isD() || t2.isD() ? Term.TYPE_D : Term.TYPE_I, t1, t2);\n } else {\n reportTypeErrorN2(\"'+'\");\n }\n } else if (tt == '-') {\n Term t2 = parseMul(true);\n if (t1.isD() && t2.isN() || t1.isN() && t2.isD()) {\n t1 = new Term.Sub(Term.TYPE_D, t1, t2);\n } else if (t1.isI() && t2.isI()) {\n t1 = new Term.Sub(Term.TYPE_I, t1, t2);\n } else if (!isTypeChecking()) {\n t1 = new Term.Sub(t1.isD() || t2.isD() ? Term.TYPE_D : Term.TYPE_I, t1, t2);\n } else {\n reportTypeErrorN2(\"'-'\");\n }\n } else {\n _tokenizer.pushBack();\n break;\n }\n }\n return t1;\n }", "public String getAndOr();", "public Node term(Node n_parent) {\r\n\r\n if (token.get(lookAheadPossition).contains(\"ident(\") || token.get(lookAheadPossition).contains(\"num(\") || token.get(lookAheadPossition).contains(\"boollit(\") || token.get(lookAheadPossition).equals(\"LP\")) {\r\n System.out.println(\":: term:if:\" + n_parent.getData());\r\n Node n_factor = this.factor(n_parent);\r\n //if (n_parent.getData().contains(\"*\")) {n_parent.setNodeChild(n_factor); }\r\n //if (n_parent.getData().contains(\"DIV\")) {n_parent.setNodeChild(n_factor); }\r\n //if (n_parent.getData().contains(\"MOD\")) {n_parent.setNodeChild(n_factor); }\r\n //if (!(n_parent.getData().equals(\"makeown\"))) {n_parent.setNodeChild(n_factor); }\r\n return (this.restTerm(n_parent, n_factor));\r\n } else {\r\n\r\n return (null);\r\n }\r\n }", "@Override\n public String evaluate(final String leftOperand, final String rightOperand)\n throws IllegalArgumentException\n {\n // error checking for null/empty\n if (leftOperand == null || rightOperand == null || leftOperand.equals(\"\")\n || rightOperand.equals(\"\"))\n {\n throw new IllegalArgumentException(Strings.UI.getStrings().getString(Strings.TWO_OPERANDS));\n }\n\n String noSpL = leftOperand.replaceAll(Strings.SPACE, \"\");\n String noSpR = rightOperand.replaceAll(Strings.SPACE, \"\");\n String distribute = SubtractionOperator.distribute(noSpR);\n String result = new AdditionOperator().evaluate(noSpL, distribute);\n\n return result;\n }", "public void setLHS(String lhs)\n {\n this.lhs = lhs;\n }", "private static boolean make_type_x(String query, DataDir dir, \n\t\t\t\t int query_type, Z39session zsession, boolean addOID) {\n\t StringTokenizer st = new StringTokenizer(query);\n\t nodes node[] = new nodes[st.countTokens()];\n\t int rc = 0;\n\t DataDir parm = dir;\n\n//System.out.println(\"make type x: num nodes: \" + node.length);\n\n\t if (node.length==0)\n\t {\n if (zsession != null && zsession.logger != null && \n\t\t zsession.logger.getLevel() != Z39logging.OFF)\n\t\t zsession.logger.println(\"No query provided!\");\n\t\treturn false;\n\t }\n\n \t String q = query.trim();\n\n \t int i=0, j, o, len, nodecnt=0;\n\n try {\n \t for (o=0, len = q.length(); o < len; o=j+1) {\n \t if (q.charAt(o) == '\"') {\n\t\ti = q.indexOf('\"', o+1);\n\t\tif (i == -1)\n\t\t i = o;\n \t }\n\t else\n\t\ti = o;\n\n \t j = q.indexOf(' ', i);\n \t if (j == -1)\n\t j = q.length();\n\n // If length > 0, add new node \n if ( (j-o) > 0 ) {\n node[nodecnt] = new nodes(q.substring(o,j), query_type, zsession);\n\n if (zsession != null && zsession.logger != null && \n\t\t zsession.logger.getLevel() != Z39logging.OFF)\n\t\t zsession.logger.println(\n\t\t \"node[\"+nodecnt+\"].type=\" + nodes.operators[node[nodecnt].type]+\n\t\t \", .term='\"+node[nodecnt].term+\"'\");\n\n \t //System.out.println(\"node[\"+nodecnt+\"].type=\" + nodes.operators[node[nodecnt].type]+\n\t\t //\", .term='\"+node[nodecnt].term+\"'\");\n\n nodecnt++; \n }\n\t }\n }\n catch (Exception e) {\n System.out.println(\"caught exception from nodemaker\");\n e.printStackTrace();\n }\n\n\n//System.out.println(\"link nodes \" + (nodecnt-1));\n\n\n\t rc=nodes.linkNodes(node, nodecnt-1); //node.length-1);\n\t if (rc != -1)\n\t {\n if (zsession != null && zsession.logger != null && \n\t\t zsession.logger.getLevel() != Z39logging.OFF)\n\t\t zsession.logger.println(\n\t\t \"Ill formed query, linkNodes returned \" + rc);\n\t\treturn false;\n\t }\n\n if (zsession != null && zsession.logger != null && \n\t\tzsession.logger.getLevel() != Z39logging.OFF)\n\t\tzsession.logger.println(\"building type-\"+query_type+\" query\");\n\n if (addOID) {\n \t parm = dir.add(query_type, ASN1.CONTEXT);\n\t parm.addOID(ASN1.OBJECTIDENTIFIER, ASN1.UNIVERSAL, \n\t\t\"1.2.840.10003.3.1\");\n }\n\t node[nodecnt-1].buildQuery(parm);\n\n\t return true;\n\t}", "public Object visitLogicalAndExpression(GNode n) {\n if (dostring) {\n Object a = dispatch(n.getGeneric(0));\n Object b = dispatch(n.getGeneric(1));\n \n if (a instanceof Long && b instanceof Long) {\n return (Long) a & (Long) b;\n }\n else {\n return parens(a) + \" && \" + parens(b);\n }\n }\n else {\n BDD a, b, bdd;\n \n a = ensureBDD(dispatch(n.getGeneric(0)));\n b = ensureBDD(dispatch(n.getGeneric(1)));\n \n bdd = a.andWith(b);\n \n return bdd;\n }\n }", "@Test(timeout = 4000)\n public void test074() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\") (\");\n Token token0 = xPathLexer0.notEquals();\n xPathLexer0.setPreviousToken(token0);\n assertEquals(\") \", token0.getTokenText());\n assertEquals(22, token0.getTokenType());\n \n Token token1 = xPathLexer0.identifierOrOperatorName();\n assertEquals(15, token1.getTokenType());\n assertEquals(\"\", token1.getTokenText());\n }", "int parseExpression() {\r\n\t\t\t\tint x = parseTerm();\r\n\t\t\t\tfor (;;) {\r\n\t\t\t\t\tif (eat('+'))\r\n\t\t\t\t\t\tx += parseTerm(); // addition\r\n\t\t\t\t\telse if (eat('-'))\r\n\t\t\t\t\t\tx -= parseTerm(); // subtraction\r\n\t\t\t\t\telse\r\n\t\t\t\t\t\treturn x;\r\n\t\t\t\t}\r\n\t\t\t}", "private InfixExpression getNode()\n{\n return (InfixExpression) ast_node;\n}", "public final Object expression() throws RecognitionException {\n Object result = null;\n\n\n CommonTree INTEGER15=null;\n CommonTree BOOL16=null;\n CommonTree IDENT17=null;\n Object op1 =null;\n\n Object op2 =null;\n\n Object call18 =null;\n\n\n try {\n // /v/filer4b/v38q001/rjnevels/Desktop/Antlr Eclipse Test/workspace3/BFlat/src/a/b/c/EvaluatorWalker.g:322:3: ( ( ^( '+' op1= expression op2= expression ) | ^( '-' op1= expression op2= expression ) | ^( '*' op1= expression op2= expression ) | ^( '/' op1= expression op2= expression ) | ^( '%' op1= expression op2= expression ) | ^( ARITH_NEGATION op1= expression ) | ^( '||' op1= expression op2= expression ) | ^( '&&' op1= expression op2= expression ) | ^( '==' op1= expression op2= expression ) | ^( '!=' op1= expression op2= expression ) | ^( '>=' op1= expression op2= expression ) | ^( '<=' op1= expression op2= expression ) | ^( '>' op1= expression op2= expression ) | ^( '<' op1= expression op2= expression ) | ^( BOOL_NEGATION op1= expression ) | INTEGER | BOOL | IDENT | call ) )\n // /v/filer4b/v38q001/rjnevels/Desktop/Antlr Eclipse Test/workspace3/BFlat/src/a/b/c/EvaluatorWalker.g:323:3: ( ^( '+' op1= expression op2= expression ) | ^( '-' op1= expression op2= expression ) | ^( '*' op1= expression op2= expression ) | ^( '/' op1= expression op2= expression ) | ^( '%' op1= expression op2= expression ) | ^( ARITH_NEGATION op1= expression ) | ^( '||' op1= expression op2= expression ) | ^( '&&' op1= expression op2= expression ) | ^( '==' op1= expression op2= expression ) | ^( '!=' op1= expression op2= expression ) | ^( '>=' op1= expression op2= expression ) | ^( '<=' op1= expression op2= expression ) | ^( '>' op1= expression op2= expression ) | ^( '<' op1= expression op2= expression ) | ^( BOOL_NEGATION op1= expression ) | INTEGER | BOOL | IDENT | call )\n {\n OperationExecuter oe = null;\n\n // /v/filer4b/v38q001/rjnevels/Desktop/Antlr Eclipse Test/workspace3/BFlat/src/a/b/c/EvaluatorWalker.g:324:3: ( ^( '+' op1= expression op2= expression ) | ^( '-' op1= expression op2= expression ) | ^( '*' op1= expression op2= expression ) | ^( '/' op1= expression op2= expression ) | ^( '%' op1= expression op2= expression ) | ^( ARITH_NEGATION op1= expression ) | ^( '||' op1= expression op2= expression ) | ^( '&&' op1= expression op2= expression ) | ^( '==' op1= expression op2= expression ) | ^( '!=' op1= expression op2= expression ) | ^( '>=' op1= expression op2= expression ) | ^( '<=' op1= expression op2= expression ) | ^( '>' op1= expression op2= expression ) | ^( '<' op1= expression op2= expression ) | ^( BOOL_NEGATION op1= expression ) | INTEGER | BOOL | IDENT | call )\n int alt14=19;\n switch ( input.LA(1) ) {\n case 32:\n {\n alt14=1;\n }\n break;\n case 34:\n {\n alt14=2;\n }\n break;\n case 31:\n {\n alt14=3;\n }\n break;\n case 35:\n {\n alt14=4;\n }\n break;\n case 29:\n {\n alt14=5;\n }\n break;\n case ARITH_NEGATION:\n {\n alt14=6;\n }\n break;\n case 50:\n {\n alt14=7;\n }\n break;\n case 30:\n {\n alt14=8;\n }\n break;\n case 39:\n {\n alt14=9;\n }\n break;\n case 28:\n {\n alt14=10;\n }\n break;\n case 41:\n {\n alt14=11;\n }\n break;\n case 37:\n {\n alt14=12;\n }\n break;\n case 40:\n {\n alt14=13;\n }\n break;\n case 36:\n {\n alt14=14;\n }\n break;\n case BOOL_NEGATION:\n {\n alt14=15;\n }\n break;\n case INTEGER:\n {\n alt14=16;\n }\n break;\n case BOOL:\n {\n alt14=17;\n }\n break;\n case IDENT:\n {\n alt14=18;\n }\n break;\n case CALL:\n {\n alt14=19;\n }\n break;\n default:\n NoViableAltException nvae =\n new NoViableAltException(\"\", 14, 0, input);\n\n throw nvae;\n\n }\n\n switch (alt14) {\n case 1 :\n // /v/filer4b/v38q001/rjnevels/Desktop/Antlr Eclipse Test/workspace3/BFlat/src/a/b/c/EvaluatorWalker.g:325:4: ^( '+' op1= expression op2= expression )\n {\n match(input,32,FOLLOW_32_in_expression564); \n\n match(input, Token.DOWN, null); \n pushFollow(FOLLOW_expression_in_expression570);\n op1=expression();\n\n state._fsp--;\n\n\n pushFollow(FOLLOW_expression_in_expression576);\n op2=expression();\n\n state._fsp--;\n\n\n match(input, Token.UP, null); \n\n\n oe = new OperationExecuter(op1,op2,\"+\"); \n\n }\n break;\n case 2 :\n // /v/filer4b/v38q001/rjnevels/Desktop/Antlr Eclipse Test/workspace3/BFlat/src/a/b/c/EvaluatorWalker.g:326:6: ^( '-' op1= expression op2= expression )\n {\n match(input,34,FOLLOW_34_in_expression590); \n\n match(input, Token.DOWN, null); \n pushFollow(FOLLOW_expression_in_expression596);\n op1=expression();\n\n state._fsp--;\n\n\n pushFollow(FOLLOW_expression_in_expression602);\n op2=expression();\n\n state._fsp--;\n\n\n match(input, Token.UP, null); \n\n\n oe = new OperationExecuter(op1,op2,\"-\"); \n\n }\n break;\n case 3 :\n // /v/filer4b/v38q001/rjnevels/Desktop/Antlr Eclipse Test/workspace3/BFlat/src/a/b/c/EvaluatorWalker.g:327:6: ^( '*' op1= expression op2= expression )\n {\n match(input,31,FOLLOW_31_in_expression614); \n\n match(input, Token.DOWN, null); \n pushFollow(FOLLOW_expression_in_expression620);\n op1=expression();\n\n state._fsp--;\n\n\n pushFollow(FOLLOW_expression_in_expression626);\n op2=expression();\n\n state._fsp--;\n\n\n match(input, Token.UP, null); \n\n\n oe = new OperationExecuter(op1,op2,\"*\"); \n\n }\n break;\n case 4 :\n // /v/filer4b/v38q001/rjnevels/Desktop/Antlr Eclipse Test/workspace3/BFlat/src/a/b/c/EvaluatorWalker.g:328:6: ^( '/' op1= expression op2= expression )\n {\n match(input,35,FOLLOW_35_in_expression638); \n\n match(input, Token.DOWN, null); \n pushFollow(FOLLOW_expression_in_expression644);\n op1=expression();\n\n state._fsp--;\n\n\n pushFollow(FOLLOW_expression_in_expression650);\n op2=expression();\n\n state._fsp--;\n\n\n match(input, Token.UP, null); \n\n\n oe = new OperationExecuter(op1,op2,\"/\"); \n\n }\n break;\n case 5 :\n // /v/filer4b/v38q001/rjnevels/Desktop/Antlr Eclipse Test/workspace3/BFlat/src/a/b/c/EvaluatorWalker.g:329:6: ^( '%' op1= expression op2= expression )\n {\n match(input,29,FOLLOW_29_in_expression662); \n\n match(input, Token.DOWN, null); \n pushFollow(FOLLOW_expression_in_expression668);\n op1=expression();\n\n state._fsp--;\n\n\n pushFollow(FOLLOW_expression_in_expression674);\n op2=expression();\n\n state._fsp--;\n\n\n match(input, Token.UP, null); \n\n\n oe = new OperationExecuter(op1,op2,\"%\"); \n\n }\n break;\n case 6 :\n // /v/filer4b/v38q001/rjnevels/Desktop/Antlr Eclipse Test/workspace3/BFlat/src/a/b/c/EvaluatorWalker.g:330:6: ^( ARITH_NEGATION op1= expression )\n {\n match(input,ARITH_NEGATION,FOLLOW_ARITH_NEGATION_in_expression686); \n\n match(input, Token.DOWN, null); \n pushFollow(FOLLOW_expression_in_expression692);\n op1=expression();\n\n state._fsp--;\n\n\n match(input, Token.UP, null); \n\n\n oe = new OperationExecuter(op1,null,\"ARITH_NEGATION\"); \n\n }\n break;\n case 7 :\n // /v/filer4b/v38q001/rjnevels/Desktop/Antlr Eclipse Test/workspace3/BFlat/src/a/b/c/EvaluatorWalker.g:331:6: ^( '||' op1= expression op2= expression )\n {\n match(input,50,FOLLOW_50_in_expression710); \n\n match(input, Token.DOWN, null); \n pushFollow(FOLLOW_expression_in_expression716);\n op1=expression();\n\n state._fsp--;\n\n\n pushFollow(FOLLOW_expression_in_expression722);\n op2=expression();\n\n state._fsp--;\n\n\n match(input, Token.UP, null); \n\n\n oe = new OperationExecuter(op1,op2,\"||\"); \n\n }\n break;\n case 8 :\n // /v/filer4b/v38q001/rjnevels/Desktop/Antlr Eclipse Test/workspace3/BFlat/src/a/b/c/EvaluatorWalker.g:332:6: ^( '&&' op1= expression op2= expression )\n {\n match(input,30,FOLLOW_30_in_expression733); \n\n match(input, Token.DOWN, null); \n pushFollow(FOLLOW_expression_in_expression739);\n op1=expression();\n\n state._fsp--;\n\n\n pushFollow(FOLLOW_expression_in_expression745);\n op2=expression();\n\n state._fsp--;\n\n\n match(input, Token.UP, null); \n\n\n oe = new OperationExecuter(op1,op2,\"&&\"); \n\n }\n break;\n case 9 :\n // /v/filer4b/v38q001/rjnevels/Desktop/Antlr Eclipse Test/workspace3/BFlat/src/a/b/c/EvaluatorWalker.g:333:6: ^( '==' op1= expression op2= expression )\n {\n match(input,39,FOLLOW_39_in_expression756); \n\n match(input, Token.DOWN, null); \n pushFollow(FOLLOW_expression_in_expression762);\n op1=expression();\n\n state._fsp--;\n\n\n pushFollow(FOLLOW_expression_in_expression768);\n op2=expression();\n\n state._fsp--;\n\n\n match(input, Token.UP, null); \n\n\n oe = new OperationExecuter(op1,op2,\"==\"); \n\n }\n break;\n case 10 :\n // /v/filer4b/v38q001/rjnevels/Desktop/Antlr Eclipse Test/workspace3/BFlat/src/a/b/c/EvaluatorWalker.g:334:6: ^( '!=' op1= expression op2= expression )\n {\n match(input,28,FOLLOW_28_in_expression779); \n\n match(input, Token.DOWN, null); \n pushFollow(FOLLOW_expression_in_expression785);\n op1=expression();\n\n state._fsp--;\n\n\n pushFollow(FOLLOW_expression_in_expression791);\n op2=expression();\n\n state._fsp--;\n\n\n match(input, Token.UP, null); \n\n\n oe = new OperationExecuter(op1,op2,\"!=\"); \n\n }\n break;\n case 11 :\n // /v/filer4b/v38q001/rjnevels/Desktop/Antlr Eclipse Test/workspace3/BFlat/src/a/b/c/EvaluatorWalker.g:335:6: ^( '>=' op1= expression op2= expression )\n {\n match(input,41,FOLLOW_41_in_expression802); \n\n match(input, Token.DOWN, null); \n pushFollow(FOLLOW_expression_in_expression808);\n op1=expression();\n\n state._fsp--;\n\n\n pushFollow(FOLLOW_expression_in_expression814);\n op2=expression();\n\n state._fsp--;\n\n\n match(input, Token.UP, null); \n\n\n oe = new OperationExecuter(op1,op2,\">=\"); \n\n }\n break;\n case 12 :\n // /v/filer4b/v38q001/rjnevels/Desktop/Antlr Eclipse Test/workspace3/BFlat/src/a/b/c/EvaluatorWalker.g:336:6: ^( '<=' op1= expression op2= expression )\n {\n match(input,37,FOLLOW_37_in_expression825); \n\n match(input, Token.DOWN, null); \n pushFollow(FOLLOW_expression_in_expression831);\n op1=expression();\n\n state._fsp--;\n\n\n pushFollow(FOLLOW_expression_in_expression837);\n op2=expression();\n\n state._fsp--;\n\n\n match(input, Token.UP, null); \n\n\n oe = new OperationExecuter(op1,op2,\"<=\"); \n\n }\n break;\n case 13 :\n // /v/filer4b/v38q001/rjnevels/Desktop/Antlr Eclipse Test/workspace3/BFlat/src/a/b/c/EvaluatorWalker.g:337:6: ^( '>' op1= expression op2= expression )\n {\n match(input,40,FOLLOW_40_in_expression848); \n\n match(input, Token.DOWN, null); \n pushFollow(FOLLOW_expression_in_expression854);\n op1=expression();\n\n state._fsp--;\n\n\n pushFollow(FOLLOW_expression_in_expression860);\n op2=expression();\n\n state._fsp--;\n\n\n match(input, Token.UP, null); \n\n\n oe = new OperationExecuter(op1,op2,\">\"); \n\n }\n break;\n case 14 :\n // /v/filer4b/v38q001/rjnevels/Desktop/Antlr Eclipse Test/workspace3/BFlat/src/a/b/c/EvaluatorWalker.g:338:6: ^( '<' op1= expression op2= expression )\n {\n match(input,36,FOLLOW_36_in_expression872); \n\n match(input, Token.DOWN, null); \n pushFollow(FOLLOW_expression_in_expression878);\n op1=expression();\n\n state._fsp--;\n\n\n pushFollow(FOLLOW_expression_in_expression884);\n op2=expression();\n\n state._fsp--;\n\n\n match(input, Token.UP, null); \n\n\n oe = new OperationExecuter(op1,op2,\"<\"); \n\n }\n break;\n case 15 :\n // /v/filer4b/v38q001/rjnevels/Desktop/Antlr Eclipse Test/workspace3/BFlat/src/a/b/c/EvaluatorWalker.g:339:6: ^( BOOL_NEGATION op1= expression )\n {\n match(input,BOOL_NEGATION,FOLLOW_BOOL_NEGATION_in_expression896); \n\n match(input, Token.DOWN, null); \n pushFollow(FOLLOW_expression_in_expression902);\n op1=expression();\n\n state._fsp--;\n\n\n match(input, Token.UP, null); \n\n\n oe = new OperationExecuter(op1,null,\"BOOL_NEGATION\"); \n\n }\n break;\n case 16 :\n // /v/filer4b/v38q001/rjnevels/Desktop/Antlr Eclipse Test/workspace3/BFlat/src/a/b/c/EvaluatorWalker.g:340:6: INTEGER\n {\n INTEGER15=(CommonTree)match(input,INTEGER,FOLLOW_INTEGER_in_expression920); \n\n oe = new OperationExecuter(localScope, (INTEGER15!=null?INTEGER15.getText():null),\"INTEGER\"); \n\n }\n break;\n case 17 :\n // /v/filer4b/v38q001/rjnevels/Desktop/Antlr Eclipse Test/workspace3/BFlat/src/a/b/c/EvaluatorWalker.g:341:6: BOOL\n {\n BOOL16=(CommonTree)match(input,BOOL,FOLLOW_BOOL_in_expression964); \n\n oe = new OperationExecuter(localScope, (BOOL16!=null?BOOL16.getText():null),\"BOOL\"); \n\n }\n break;\n case 18 :\n // /v/filer4b/v38q001/rjnevels/Desktop/Antlr Eclipse Test/workspace3/BFlat/src/a/b/c/EvaluatorWalker.g:342:6: IDENT\n {\n IDENT17=(CommonTree)match(input,IDENT,FOLLOW_IDENT_in_expression1010); \n\n oe = new OperationExecuter(localScope, (IDENT17!=null?IDENT17.getText():null),\"IDENT\"); \n\n }\n break;\n case 19 :\n // /v/filer4b/v38q001/rjnevels/Desktop/Antlr Eclipse Test/workspace3/BFlat/src/a/b/c/EvaluatorWalker.g:343:6: call\n {\n pushFollow(FOLLOW_call_in_expression1055);\n call18=call();\n\n state._fsp--;\n\n\n result = call18;\n\n }\n break;\n\n }\n\n\n if (oe != null) result = oe.doOperation();\n if (result == null)\n BFlatGUI.debugPrint(0, \"result of expression is null!\");\n \n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n\n finally {\n \t// do for sure before leaving\n }\n return result;\n }", "private Object parseExpr() throws IOException, FSException{\n\n ETreeNode curNode=null;\n boolean end=false;\n Object val;\n boolean negate=false; //flag for unary minus\n boolean not=false;//flag for unary not.\n boolean prevOp=true;//flag - true if previous value was an operator\n\n while (!end){\n\n switch (tok.ttype) {\n\n\n //the various possible 'values'\n case LexAnn.TT_INTEGER:\n case LexAnn.TT_DOUBLE:\n case LexAnn.TT_STRING:\n case LexAnn.TT_WORD:\n case LexAnn.TT_FUNC:\n case LexAnn.TT_NULL:\n case LexAnn.TT_ARRAY:{\n\n if (!prevOp){\n parseError(\"Expected Operator\");\n } else {\n\n val=null;\n ETreeNode node=new ETreeNode();\n node.type=ETreeNode.E_VAL;\n\n switch (tok.ttype){\n //numbers - just get them\n case LexAnn.TT_INTEGER:{\n val=tok.value;\n break;\n }\n case LexAnn.TT_DOUBLE:{\n val=tok.value;\n break;\n }\n //functions - evaluate them\n case LexAnn.TT_FUNC:{\n String name=(String)tok.value;\n getNextToken();\n val=parseCallFunc(name);\n break;\n }\n //arrays - evaluate them\n case LexAnn.TT_ARRAY:{\n String name=(String)tok.value;\n getNextToken(); //should be a '['\n getNextToken(); //should be the index\n Object index=parseExpr();\n try {\n val=host.getVarEntry(name,index);\n } catch (Exception e) {\n parseError(e.getMessage());\n }\n break;\n }\n //variables - resolve them\n case LexAnn.TT_WORD:{\n if (hasVar((String)tok.value)) {\n val=getVar((String)tok.value);\n } else {\n try {\n val=host.getVarEntry((String)tok.value,null);\n } catch (Exception e) {\n parseError(e.getMessage());\n }\n }\n break;\n }\n //strings - just get again\n case LexAnn.TT_STRING:{\n val=tok.value;\n break;\n }\n //null\n case LexAnn.TT_NULL:{\n val=new FSObject(null);\n break;\n }\n }\n\n //unary not\n if (not){\n if (val instanceof Integer){\n if (((Integer)val).intValue()==0){\n val=FS_TRUE;\n } else {\n val=FS_FALSE;\n }\n not=false;\n } else if (val instanceof FSObject && ((FSObject)val).getObject() instanceof Boolean) {\n if (((FSObject)val).getObject().equals(Boolean.FALSE)) {\n val=FS_TRUE;\n } else {\n val=FS_FALSE;\n }\n } else if (val instanceof FSObject && ((FSObject)val).getObject() instanceof Integer) {\n if (((Integer)((FSObject)val).getObject()).intValue()==0) {\n val=FS_TRUE;\n } else {\n val=FS_FALSE;\n }\n } else {\n String msg=val.getClass().getName();\n if (val instanceof FSObject) msg=\"FSObject with \"+((FSObject)val).getNullClass().getName();\n parseError(\"Type mismatch for ! \"+msg);\n }\n }\n\n //unary minus\n if (negate) {\n if (val instanceof Integer){\n val=new Integer(-((Integer)val).intValue());\n } else if (val instanceof Double){\n val=new Double(-((Double)val).doubleValue());\n } else {\n parseError(\"Type mistmatch for unary -\");\n }\n }\n\n node.value=val;\n\n if (curNode!=null){\n if (curNode.left==null){\n curNode.left=node;\n node.parent=curNode;\n curNode=node;\n\n } else if (curNode.right==null){\n curNode.right=node;\n node.parent=curNode;\n curNode=node;\n\n }\n } else {\n curNode=node;\n }\n\n prevOp=false;\n }\n break;\n }\n /*operators - have to be more carefull with these.\n We build an expression tree - inserting the nodes at the right\n points to get a reasonable approximation to correct operator\n precidence*/\n case LexAnn.TT_LEQ:\n case LexAnn.TT_LNEQ:\n case LexAnn.TT_MULT:\n case LexAnn.TT_DIV:\n case LexAnn.TT_MOD:\n case LexAnn.TT_PLUS:\n case LexAnn.TT_MINUS:\n case LexAnn.TT_LGR:\n case LexAnn.TT_LGRE:\n case LexAnn.TT_LLSE:\n case LexAnn.TT_LLS:\n case LexAnn.TT_NOT:\n case LexAnn.TT_LAND:\n case LexAnn.TT_LOR: {\n if (prevOp){\n if (tok.ttype==LexAnn.TT_MINUS){\n negate=true;\n } else if (tok.ttype==LexAnn.TT_NOT){\n not=true;\n } else {\n parseError(\"Expected Expression\");\n }\n } else {\n\n ETreeNode node=new ETreeNode();\n\n node.type=ETreeNode.E_OP;\n node.value=new Integer(tok.ttype);\n\n if (curNode.parent!=null){\n\n int curPrio=getPrio(tok.ttype);\n int parPrio=\n getPrio(((Integer)curNode.parent.value).intValue());\n\n if (curPrio<=parPrio){\n //this nodes parent is the current nodes grandparent\n node.parent=curNode.parent.parent;\n //our nodes left leg is now linked into the current nodes\n //parent\n node.left=curNode.parent;\n //hook into grandparent\n if (curNode.parent.parent!=null){\n curNode.parent.parent.right=node;\n }\n\n //the current nodes parent is now us (because of above)\n curNode.parent=node;\n //set the current node.\n curNode=node;\n } else {\n //current node's parent's right is now us.\n curNode.parent.right=node;\n //our nodes left is the current node.\n node.left=curNode;\n //our nodes parent is the current node's parent.\n node.parent=curNode.parent;\n //curent nodes parent is now us.\n curNode.parent=node;\n //set the current node.\n curNode=node;\n }\n } else {\n //our node's left is the current node\n node.left=curNode;\n //current node's parent is us now\n //we don't have to set our parent, as it is null.\n curNode.parent=node;\n //set current node\n curNode=node;\n }\n prevOp=true;\n }\n break;\n }\n case '(':\n //start of an bracketed expression, recursively call ourself\n //to get a value\n {\n getNextToken();\n val=parseExpr();\n\n if (negate) {\n if (val instanceof Integer){\n val=new Integer(-((Integer)val).intValue());\n } else if (val instanceof Double){\n val=new Double(-((Double)val).doubleValue());\n } else {\n parseError(\"Type mistmatch for unary -\");\n }\n }\n\n ETreeNode node=new ETreeNode();\n node.value=val;\n node.type=ETreeNode.E_VAL;\n\n if (curNode!=null){\n if (curNode.left==null){\n curNode.left=node;\n node.parent=curNode;\n curNode=node;\n\n } else if (curNode.right==null){\n curNode.right=node;\n node.parent=curNode;\n curNode=node;\n\n }\n } else {\n curNode=node;\n }\n prevOp=false;\n break;\n }\n\n default: {\n end=true;\n }\n\n }\n if (!end){\n tok.nextToken();\n }\n }\n\n //find the top of the tree we just built.\n if (curNode==null) parseError(\"Missing Expression\");\n while(curNode.parent!=null){\n curNode=curNode.parent;\n }\n\n\n return evalETree(curNode);\n\n }", "public Object visitRelationalExpression(GNode n) {\n Object a, b, result;\n String op;\n \n nonboolean = true;\n \n dostring = true;\n \n a = dispatch(n.getGeneric(0));\n b = dispatch(n.getGeneric(2));\n op = n.getString(1);\n \n dostring = false;\n \n if (a instanceof Long && b instanceof Long) {\n Long x = (Long) a;\n Long y = (Long) b;\n long zero = 0;\n long one = 1;\n \n if (op.equals(\"<\")) {\n result = x < y ? one : zero;\n }\n else if (op.equals(\"<=\")) {\n result = x <= y ? one : zero;\n }\n else if (op.equals(\">\")) {\n result = x > y ? one : zero;\n }\n else if (op.equals(\">=\")) {\n result = x >= y ? one : zero;\n }\n else {\n result = \"\";\n }\n }\n else {\n result = parens(a) + \" \" + op + \" \" + parens(b);\n }\n \n return result;\n }", "public Object visitAdditiveExpression(GNode n) {\n Object a, b, result;\n String op;\n \n nonboolean = true;\n \n dostring = true;\n \n a = dispatch(n.getGeneric(0));\n b = dispatch(n.getGeneric(2));\n op = n.getString(1);\n \n dostring = false;\n \n if (a instanceof Long && b instanceof Long) {\n if (op.equals(\"+\")) {\n result = (Long) a + (Long) b;\n }\n else if (op.equals(\"-\")) {\n result = (Long) a - (Long) b;\n }\n else {\n result = \"\";\n }\n }\n else {\n result = parens(a) + \" \" + op + \" \" + parens(b);\n }\n \n return result;\n }", "@Test\r\n\t\tpublic void testCompileAllOperators() {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\tdriver.findElement(By.id(\"code_code\")).sendKeys(\"a = 6\\nb = 6\\nc = a + (b * 4)\\nd = c / 3\");;\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\tWebElement submitButton = driver.findElement(By.xpath(\"(//input[@name='commit'])[3]\"));\r\n\t\t\tsubmitButton.click();\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\ttry {\r\n\t\t\t\tWebElement e = driver.findElement(By.tagName(\"code\"));\r\n\t\t\t\tString elementText = e.getText();\r\n\t\t\t\tassertTrue(elementText.contains(\"opt_plus\") && elementText.contains(\"opt_div\") && elementText.contains(\"opt_mult\") &! elementText.contains(\"opt_minus\"));\r\n\t\t\t} catch (NoSuchElementException nseex) {\r\n\t\t\t\tfail();\r\n\t\t\t}\r\n\t\t}", "@Test\n public void syntactic_fail(){\n SetupMocks.setup();\n\n List<Token> tokens= new ArrayList<>();\n\n// tokens.add(new Token(Token.TSTRG,1,1,null));\n\n tokens.add(new Token(Token.TCOMA,1,1,null));\n\n Parser parser = new Parser(tokens);\n\n NPrintItemNode nPrintItemNode = new NPrintItemNode();\n nPrintItemNode.setnExprNode(NExprNode.INSTANCE());\n\n TreeNode printitem = nPrintItemNode.make(parser);\n\n assertEquals(TreeNode.NUNDEF, printitem.getValue());\n\n }", "@Test(timeout = 4000)\n public void test019() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\">6_XdrPl\");\n Token token0 = xPathLexer0.relationalOperator();\n assertNotNull(token0);\n assertEquals(\">\", token0.getTokenText());\n assertEquals(9, token0.getTokenType());\n \n Token token1 = xPathLexer0.rightParen();\n assertEquals(2, token1.getTokenType());\n assertEquals(\"6\", token1.getTokenText());\n \n char char0 = xPathLexer0.LA(0);\n assertEquals('6', char0);\n }", "@Override\n public Expression asExpression(TokenValue<?> token, Deque<Value<Expression>> next) {\n Additive op = token.getValue(); // + | -\n // + is always followed by an argument\n Expression arg = next.pollFirst().getTarget(); // b argument\n Term<Additive> term = new Term<>(op, arg);\n return term;\n }", "@Test\n public void equalityForDifferentBinaryOps() {\n XPathStringLiteral leftStringExpr = new XPathStringLiteral(\"left side\");\n XPathNumericLiteral zero = new XPathNumericLiteral(0d);\n\n // Setup expressions to test equality over.\n // Note: these binary expressions make semantic sense\n XPathArithExpr additionExpr = new XPathArithExpr(XPathArithExpr.ADD, leftStringExpr, zero);\n XPathArithExpr additionExprClone = new XPathArithExpr(XPathArithExpr.ADD, leftStringExpr, zero);\n XPathArithExpr subtractExpr = new XPathArithExpr(XPathArithExpr.SUBTRACT, leftStringExpr, zero);\n\n XPathBoolExpr andExpr = new XPathBoolExpr(XPathBoolExpr.AND, leftStringExpr, zero);\n XPathBoolExpr andExprClone = new XPathBoolExpr(XPathBoolExpr.AND, leftStringExpr, zero);\n XPathBoolExpr orExpr = new XPathBoolExpr(XPathBoolExpr.OR, leftStringExpr, zero);\n\n XPathCmpExpr lessThanExpr = new XPathCmpExpr(XPathCmpExpr.LT, leftStringExpr, zero);\n XPathCmpExpr greaterThanExpr = new XPathCmpExpr(XPathCmpExpr.GT, leftStringExpr, zero);\n\n XPathEqExpr eqExpr = new XPathEqExpr(XPathEqExpr.EQ, leftStringExpr, zero);\n XPathEqExpr neqExpr = new XPathEqExpr(XPathEqExpr.NEQ, leftStringExpr, zero);\n\n XPathUnionExpr union = new XPathUnionExpr(leftStringExpr, zero);\n XPathUnionExpr differentUnion = new XPathUnionExpr(zero, zero);\n\n // basic equality tests over same subclass\n Assert.assertEquals(\"Same + expression reference is equal\", additionExpr, additionExpr);\n Assert.assertEquals(\"Same + expression is equal\", additionExpr, additionExprClone);\n Assert.assertNotEquals(\"+ not equal to -\", additionExpr, subtractExpr);\n Assert.assertEquals(\"Same && expression reference is equal\", andExpr, andExpr);\n Assert.assertEquals(\"Same && expression is equal\", andExpr, andExprClone);\n Assert.assertNotEquals(\"&& not equal to ||\", andExpr, orExpr);\n Assert.assertEquals(\"Same < expression is equal\", lessThanExpr, lessThanExpr);\n Assert.assertNotEquals(\"< not equal to >\", lessThanExpr, greaterThanExpr);\n Assert.assertEquals(\"Same == expression is equal\", eqExpr, eqExpr);\n Assert.assertNotEquals(\"== not equal to !=\", eqExpr, neqExpr);\n\n // make sure different binary expressions with same op code aren't equal\n Assert.assertNotEquals(\"+ not equal to &&\", additionExpr, andExpr);\n Assert.assertNotEquals(\"+ not equal to <\", additionExpr, lessThanExpr);\n Assert.assertNotEquals(\"+ not equal to ==\", additionExpr, eqExpr);\n Assert.assertNotEquals(\"- not equal to ||\", subtractExpr, orExpr);\n Assert.assertNotEquals(\"- not equal to >\", subtractExpr, greaterThanExpr);\n Assert.assertNotEquals(\"- not equal to !=\", subtractExpr, neqExpr);\n\n // make sure union equality, which doesn't have an op code, works\n Assert.assertEquals(\"same union instance is equal to itself\", union, union);\n Assert.assertNotEquals(union, differentUnion);\n Assert.assertNotEquals(\"+ not equal to union\", additionExpr, union);\n }", "public String operator( String op);", "POperand createPOperand();", "public Object visitUnaryPlusExpression(GNode n) {\n nonboolean = true;\n \n return dispatch(n.getGeneric(0));\n }", "@Override\n\tpublic Object visit(ASTGeometric node, Object data)\n\t{\n\t\treturn visitOperatorNode(node, data);\n\t}", "public String visit(AndExpression n, Object argu) \n\t{\n\t\tString _ret=null;\n\t String e0 = n.f0.accept(this, argu);\n\t String e1 = n.f2.accept(this, argu);\n\t \n\t if (e0.equals(\"boolean\") && e1.equals(\"boolean\"))\n\t {\n\t \t_ret = \"boolean\";\n\t }\n\t return _ret;\n\t}", "Expression() { }", "public interface Unary extends Expr \n{\n /** Unary expression operator. */\n public static enum Operator {\n BIT_NOT (\"~\", true),\n NEG (\"-\", true),\n POST_INC (\"++\", false),\n POST_DEC (\"--\", false),\n PRE_INC (\"++\", true),\n PRE_DEC (\"--\", true),\n POS (\"+\", true),\n NOT (\"!\", true),\n CARET (\"^\", true),\n BAR (\"|\", true),\n AMPERSAND(\"&\", true),\n STAR (\"*\", true),\n SLASH (\"/\", true),\n PERCENT (\"%\", true);\n\n protected boolean prefix;\n protected String name;\n\n private Operator(String name, boolean prefix) {\n this.name = name;\n this.prefix = prefix;\n }\n\n /** Returns true of the operator is a prefix operator, false if\n * postfix. */\n public boolean isPrefix() { return prefix; }\n\n @Override public String toString() { return name; }\n }\n\n public static final Operator BIT_NOT = Operator.BIT_NOT;\n public static final Operator NEG = Operator.NEG;\n public static final Operator POST_INC = Operator.POST_INC;\n public static final Operator POST_DEC = Operator.POST_DEC;\n public static final Operator PRE_INC = Operator.PRE_INC;\n public static final Operator PRE_DEC = Operator.PRE_DEC;\n public static final Operator POS = Operator.POS;\n public static final Operator NOT = Operator.NOT;\n public static final Operator CARET = Operator.CARET;\n public static final Operator BAR = Operator.BAR;\n public static final Operator AMPERSAND = Operator.AMPERSAND;\n public static final Operator STAR = Operator.STAR;\n public static final Operator SLASH = Operator.SLASH;\n public static final Operator PERCENT = Operator.PERCENT;\n\n /** The sub-expression on that to apply the operator. */\n Expr expr();\n /** Set the sub-expression on that to apply the operator. */\n Unary expr(Expr e);\n\n /** The operator to apply on the sub-expression. */\n Operator operator();\n /** Set the operator to apply on the sub-expression. */\n Unary operator(Operator o);\n}", "@Override\n public R visit(IRIref n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "public ParseTreeNode visit(LiteralNode literalNode) {\n return null;\n }", "private boolean isOperator(char ch)\n {\n if (ch == '+' || ch == '-' || ch == '*' || ch == '/' || ch == '^')\n//returns true if either of the operator is found\n return true;\n//else returns false\n return false;\n }", "SQLCaseOperand createSQLCaseOperand();", "String getOr_op();", "Expression eqExpression() throws SyntaxException {\r\n\t\tToken first = t;\r\n\t\tExpression e0 = relExpression();\r\n\t\twhile(isKind(OP_EQ, OP_NEQ)) {\r\n\t\t\tToken op = consume();\r\n\t\t\tExpression e1 = relExpression();\r\n\t\t\te0 = new ExpressionBinary(first, e0,op,e1);\r\n\t\t}\r\n\t\treturn e0;\r\n\t}", "ParenthesisExpr createParenthesisExpr();", "@Override\n public R visit(TriplesNode n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "@Override\npublic final void accept(TreeVisitor visitor) {\n visitor.visitWord(OpCodes.OR_NAME);\n if (ops != null) {\n for (int i = 0; i < ops.length; i++) {\n ops[i].accept(visitor);\n }\n } else {\n visitor.visitConstant(null, \"?\");\n }\n visitor.visitEnd();\n }", "String getOperator();", "public static void main(String []args) {\n ConstantNode ten = new ConstantNode(10);\n ExprNode tree = ten.into(20).plus(30);\n// ExprNode exprNode = new AddOperator(\n// new MultiplyOperator(\n// new ConstantNode(10),\n// new ConstantNode(20)),\n// new ConstantNode(30));\n tree.genCode();\n }", "private boolean isOperator(String op){\n return (op.equals(\"+\") || op.equals(\"-\") || op.equals(\"*\") || op.equals(\"/\"));\n }", "@Test(timeout = 4000)\n public void test076() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"5!\");\n Token token0 = xPathLexer0.star();\n xPathLexer0.setPreviousToken(token0);\n assertEquals(20, token0.getTokenType());\n assertEquals(\"5\", token0.getTokenText());\n \n Token token1 = xPathLexer0.identifierOrOperatorName();\n assertEquals(15, token1.getTokenType());\n assertEquals(\"\", token1.getTokenText());\n }" ]
[ "0.6129654", "0.5890019", "0.58862567", "0.58641195", "0.5828073", "0.574639", "0.56994724", "0.5691317", "0.56897384", "0.56568617", "0.56481975", "0.56476045", "0.5638474", "0.56294626", "0.5612991", "0.5591969", "0.54826075", "0.54657036", "0.54316336", "0.5414404", "0.53723985", "0.53683954", "0.5361082", "0.53319883", "0.5323062", "0.53205025", "0.53199106", "0.53151625", "0.53115845", "0.5308675", "0.53081185", "0.52866435", "0.52833045", "0.5277593", "0.5270611", "0.5262949", "0.5260121", "0.52206314", "0.52205515", "0.522021", "0.5214574", "0.52131593", "0.5202409", "0.52023846", "0.51952124", "0.51848525", "0.51839465", "0.5181624", "0.5175004", "0.51735705", "0.5173489", "0.51708686", "0.5167967", "0.5164932", "0.51258326", "0.5124475", "0.5120281", "0.5119573", "0.5117511", "0.5111471", "0.5104501", "0.51037055", "0.5095816", "0.5094645", "0.5091952", "0.50862074", "0.508587", "0.506799", "0.5065998", "0.5065426", "0.50637335", "0.5062392", "0.5059328", "0.5057239", "0.5056251", "0.5055281", "0.5047908", "0.5045707", "0.5045512", "0.5037828", "0.5034939", "0.50343883", "0.503109", "0.50293636", "0.5013497", "0.50131893", "0.5012392", "0.50110453", "0.5010507", "0.5010253", "0.50095147", "0.5008721", "0.5005218", "0.50043213", "0.5003976", "0.5002709", "0.4998008", "0.49925467", "0.4992048", "0.49915317" ]
0.57446593
6
nodeChoice > BrackettedExpression() | BuiltInCall() | IRIrefOrFunction() | RDFLiteral() | NumericLiteral() | BooleanLiteral() | Var()
@Override public R visit(PrimaryExpression n, A argu) { R _ret = null; n.nodeChoice.accept(this, argu); return _ret; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public R visit(SparqlString n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "@Override\n public R visit(VarOrIRIref n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "@Override\n public R visit(VarOrTerm n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "@Override\n public R visit(NumericLiteral n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "public interface Node {\n Oper oper();\n CNFOrdinal toCNF();\n}", "@Override\n public R visit(IRIref n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "@Override\n public R visit(BuiltInCall n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "@Override\n public R visit(GraphTerm n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "@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 }", "public void visit(Literal literal) {}", "@Test\n public void defaultOperatorsEvaluteTrueTest() throws Exception {\n\n assertThat(getNode(\"1 == 1\", \"expr\").render(null), is((Object)true));\n assertThat(getNode(\"1 != 2\", \"expr\").render(null), is((Object)true));\n assertThat(getNode(\"1 <> 2\", \"expr\").render(null), is((Object)true));\n assertThat(getNode(\"1 < 2\", \"expr\").render(null), is((Object)true));\n assertThat(getNode(\"2 > 1\", \"expr\").render(null), is((Object)true));\n assertThat(getNode(\"1 >= 1\", \"expr\").render(null), is((Object)true));\n assertThat(getNode(\"2 >= 1\", \"expr\").render(null), is((Object)true));\n assertThat(getNode(\"1 <= 2\", \"expr\").render(null), is((Object)true));\n assertThat(getNode(\"1 <= 1\", \"expr\").render(null), is((Object)true));\n\n // negative numbers\n assertThat(getNode(\"1 > -1\", \"expr\").render(null), is((Object)true));\n assertThat(getNode(\"-1 < 1\", \"expr\").render(null), is((Object)true));\n assertThat(getNode(\"1.0 > -1.0\", \"expr\").render(null), is((Object)true));\n assertThat(getNode(\"-1.0 < 1.0\", \"expr\").render(null), is((Object)true));\n }", "Node getVariable();", "@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 }", "@Override\n public R visit(TriplesNode n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "@Override\n public R visit(UnaryExpression n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "@Override\n public R visit(NumericLiteralPositive n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "@Override\n public R visit(NumericLiteralUnsigned n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "@Override\n public R visit(Verb n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "@Override\n public R visit(Constraint n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "public Snippet visit(ReturnType n, Snippet argu) {\n\t Snippet _ret=null;\n\t _ret = n.nodeChoice.accept(this, argu);\n\t return _ret;\n\t }", "@Override\n public R visit(ArgList n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "public String getElement()\n {\n return nodeChoice;\n }", "public Node factor(Node n_parent) {\r\n String identifier=\"\";\r\n String type=\"\";\r\n if(token.get(lookAheadPossition).contains(\"ident(\")){\r\n System.out.println(\":: factor:if:\");\r\n identifier = token.get(lookAheadPossition).substring(6, token.get(lookAheadPossition).length() - 1);\r\n type = (String) symbolTable.get(identifier);\r\n type=type.toLowerCase();\r\n\r\n this.CheckError(token.get(lookAheadPossition));\r\n Node n_factor =new Node(identifier+\":\"+type);\r\n\r\n return n_factor;\r\n }\r\n else if(token.get(lookAheadPossition).contains(\"num(\")){\r\n System.out.println(\":: factor:if\");\r\n identifier = token.get(lookAheadPossition).substring(4, token.get(lookAheadPossition).length() - 1);\r\n type = \"int\";\r\n\r\n this.CheckError(token.get(lookAheadPossition));\r\n Node n_factor =new Node(identifier+\":\"+type);\r\n return n_factor;\r\n }\r\n else if(token.get(lookAheadPossition).contains(\"boollit(\")){\r\n System.out.println(\":: factor:if\");\r\n identifier = token.get(lookAheadPossition).substring(8, token.get(lookAheadPossition).length() - 1);\r\n\r\n System.out.println(\":: factor:if:boollit \"+identifier);\r\n if (identifier.contentEquals(\"true\") || identifier.contentEquals(\"false\") ){ type=\"bool\";}else { type = (String) symbolTable.get(identifier); type = type.toLowerCase();}\r\n System.out.println(\":: factor:if:boolint\"+type);\r\n this.CheckError(token.get(lookAheadPossition));\r\n Node n_factor =new Node(identifier+\":\"+type);\r\n return n_factor;\r\n }\r\n else if(token.get(lookAheadPossition).equals(\"LP\")){\r\n System.out.println(\":: factor:if:: LP\");\r\n//\r\n this.CheckError(\"LP\");\r\n// Node n_LP_RP = n_parent.setChildren(\"LP:RP\");\r\n //this.simpleExpression(n_parent );\r\n Node n_factor = this.simpleExpression(n_parent);\r\n this.CheckError(\"RP\");\r\n return n_factor;\r\n }\r\n return(null);\r\n }", "@Override\n public R visit(GraphNode n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "@Override\n public R visit(DatasetClause n, A argu) {\n R _ret = null;\n n.nodeToken.accept(this, argu);\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "public Literal getLiteral();", "public Literal getLiteral();", "public final ValueNode literal() throws RecognitionException {\n ValueNode value = null;\n\n CommonTree NUMBER11=null;\n CommonTree FPNUMBER12=null;\n CommonTree STRING13=null;\n\n try {\n // C:\\\\Users\\\\Lyle\\\\BitTorrent Sync\\\\workspace\\\\SIDSL\\\\src\\\\JSONHandler\\\\JSONTreeConstruct.g:47:3: ( NUMBER | FPNUMBER | STRING | TRUE | FALSE | NULL )\n int alt9=6;\n switch ( input.LA(1) ) {\n case NUMBER:\n {\n alt9=1;\n }\n break;\n case FPNUMBER:\n {\n alt9=2;\n }\n break;\n case STRING:\n {\n alt9=3;\n }\n break;\n case TRUE:\n {\n alt9=4;\n }\n break;\n case FALSE:\n {\n alt9=5;\n }\n break;\n case NULL:\n {\n alt9=6;\n }\n break;\n default:\n NoViableAltException nvae =\n new NoViableAltException(\"\", 9, 0, input);\n\n throw nvae;\n }\n\n switch (alt9) {\n case 1 :\n // C:\\\\Users\\\\Lyle\\\\BitTorrent Sync\\\\workspace\\\\SIDSL\\\\src\\\\JSONHandler\\\\JSONTreeConstruct.g:47:5: NUMBER\n {\n NUMBER11=(CommonTree)match(input,NUMBER,FOLLOW_NUMBER_in_literal248); \n value = new ValueNode((NUMBER11!=null?NUMBER11.getText():null), \"int\");\n\n }\n break;\n case 2 :\n // C:\\\\Users\\\\Lyle\\\\BitTorrent Sync\\\\workspace\\\\SIDSL\\\\src\\\\JSONHandler\\\\JSONTreeConstruct.g:48:5: FPNUMBER\n {\n FPNUMBER12=(CommonTree)match(input,FPNUMBER,FOLLOW_FPNUMBER_in_literal256); \n value = new ValueNode((FPNUMBER12!=null?FPNUMBER12.getText():null), \"double\");\n\n }\n break;\n case 3 :\n // C:\\\\Users\\\\Lyle\\\\BitTorrent Sync\\\\workspace\\\\SIDSL\\\\src\\\\JSONHandler\\\\JSONTreeConstruct.g:49:5: STRING\n {\n STRING13=(CommonTree)match(input,STRING,FOLLOW_STRING_in_literal264); \n value = new ValueNode((STRING13!=null?STRING13.getText():null), \"string\");\n\n }\n break;\n case 4 :\n // C:\\\\Users\\\\Lyle\\\\BitTorrent Sync\\\\workspace\\\\SIDSL\\\\src\\\\JSONHandler\\\\JSONTreeConstruct.g:50:5: TRUE\n {\n match(input,TRUE,FOLLOW_TRUE_in_literal272); \n value = new ValueNode(\"true\", \"boolean\");\n\n }\n break;\n case 5 :\n // C:\\\\Users\\\\Lyle\\\\BitTorrent Sync\\\\workspace\\\\SIDSL\\\\src\\\\JSONHandler\\\\JSONTreeConstruct.g:51:5: FALSE\n {\n match(input,FALSE,FOLLOW_FALSE_in_literal280); \n value = new ValueNode(\"false\", \"boolean\");\n\n }\n break;\n case 6 :\n // C:\\\\Users\\\\Lyle\\\\BitTorrent Sync\\\\workspace\\\\SIDSL\\\\src\\\\JSONHandler\\\\JSONTreeConstruct.g:52:5: NULL\n {\n match(input,NULL,FOLLOW_NULL_in_literal288); \n value = new ValueNode(\"null\", \"null\");\n\n }\n break;\n\n }\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n }\n return value;\n }", "final public IASTLiteralTextNode Argument() throws ParseException {\r\n IASTLiteralTextNode node = null;\r\n Token lastToken = null;\r\n Token equalToken = null;\r\n Token firstToken = null;\r\n switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\r\n case INT:\r\n firstToken = jj_consume_token(INT);\r\n if (jj_2_3(2147483647)) {\r\n equalToken = jj_consume_token(EQUAL);\r\n switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\r\n case MINUS:\r\n jj_consume_token(MINUS);\r\n break;\r\n default:\r\n jj_la1[16] = jj_gen;\r\n ;\r\n }\r\n lastToken = jj_consume_token(INT);\r\n } else {\r\n ;\r\n }\r\n if (equalToken == null) {\r\n lastToken = firstToken;\r\n }\r\n break;\r\n case ASTERISK:\r\n case WORD:\r\n case STRING:\r\n case PACKAGE_OPTION:\r\n switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\r\n case ASTERISK:\r\n firstToken = jj_consume_token(ASTERISK);\r\n break;\r\n case PACKAGE_OPTION:\r\n firstToken = jj_consume_token(PACKAGE_OPTION);\r\n break;\r\n case WORD:\r\n firstToken = jj_consume_token(WORD);\r\n break;\r\n case STRING:\r\n firstToken = jj_consume_token(STRING);\r\n break;\r\n default:\r\n jj_la1[17] = jj_gen;\r\n jj_consume_token(-1);\r\n throw new ParseException();\r\n }\r\n lastToken = firstToken;\r\n break;\r\n default:\r\n jj_la1[18] = jj_gen;\r\n jj_consume_token(-1);\r\n throw new ParseException();\r\n }\r\n node = getRawLiteralTextNodeSpanning(firstToken, lastToken);\r\n {if (true) return node;}\r\n throw new Error(\"Missing return statement in function\");\r\n }", "public Snippet visit(Type n, Snippet argu) {\n\t Snippet _ret=null;\n\t _ret = n.nodeChoice.accept(this, argu);\n\t return _ret;\n\t }", "@Override\n\tpublic String visitArExpr(ArExprContext ctx) {\n\t\tint chNo=ctx.children.size();\n\t\tif(chNo == 3){\n\t\t\tParseTree cur = ctx.getChild(1);\n\t\t\tif(cur==ctx.MULT() || cur==ctx.DIV()|| cur==ctx.PLUS() || cur==ctx.MINUS()){\n\t\t\t\tString left = visit(ctx.getChild(0));\n\t\t\t\tString right = visit(ctx.getChild(2));\n\t\t\t\tif(!(right.equals(left) && right.equals(\"int\")) ){throw new RuntimeException(\"Arithmetic operations only with integers\");}\n\t\t\t\treturn(\"int\");\n\t\t\t}\n\t\t\telse{\n\t\t\t\treturn(visit(cur));\n\t\t\t}\n\t\t}\n\t\telse{\n\t\t\tParseTree cur=ctx.getChild(0);\n\t\t\tif (cur instanceof TerminalNode) {\t\t\t\t\n\t\t\t\tif (cur==ctx.INTEG()) return \"int\";\n\t\t\t\telse if (cur==ctx.CH()) return \"char\";\n\t\t\t\telse if(cur==ctx.ID()){\n\t\t\t\t\tString key=visitTerminal((TerminalNode)cur);\n\t\t\t\t\tRecord id= table.lookup(key);\n\t\t\t\t\tif (id==null) throw new RuntimeException(\"Identifier \"+key+\" is not declared\");\t\t\t\t\t\n\t\t\t\t\treturn id.getReturnType();\t\t\t\t\t\n\t\t\t\t}\t\t\t \n\t\t\t}else {\n\t\t\t\tString type=visit(ctx.getChild(0));\n\t\t\t\treturn type;\n\t\t\t}\n\t\t\t\n\t\t}\n\t\treturn null;\n\t}", "private Object evalETree(ETreeNode node) throws FSException{\n Object lVal,rVal;\n\n if ( node == null )\n {\n parseError(\"Malformed expression\");\n // this is never reached, just for readability\n return null;\n }\n\n if (node.type==ETreeNode.E_VAL){\n return node.value;\n }\n lVal=evalETree(node.left);\n rVal=evalETree(node.right);\n\n switch (((Integer)node.value).intValue()){\n //call the various eval functions\n case LexAnn.TT_PLUS:{\n return evalPlus(lVal,rVal);\n }\n case LexAnn.TT_MINUS:{\n return evalMinus(lVal,rVal);\n }\n case LexAnn.TT_MULT:{\n return evalMult(lVal,rVal);\n }\n case LexAnn.TT_DIV:{\n return evalDiv(lVal,rVal);\n }\n case LexAnn.TT_LEQ:{\n return evalEq(lVal,rVal);\n }\n case LexAnn.TT_LNEQ:{\n return evalNEq(lVal,rVal);\n }\n case LexAnn.TT_LLS:{\n return evalLs(lVal,rVal);\n }\n case LexAnn.TT_LLSE:{\n return evalLse(lVal,rVal);\n }\n case LexAnn.TT_LGR:{\n return evalGr(lVal,rVal);\n }\n case LexAnn.TT_LGRE:{\n return evalGre(lVal,rVal);\n }\n case LexAnn.TT_MOD:{\n return evalMod(lVal,rVal);\n }\n case LexAnn.TT_LAND:{\n return evalAnd(lVal,rVal);\n }\n case LexAnn.TT_LOR:{\n return evalOr(lVal,rVal);\n }\n }\n\n return null;\n }", "@Test(timeout = 4000)\n public void test019() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\">6_XdrPl\");\n Token token0 = xPathLexer0.relationalOperator();\n assertNotNull(token0);\n assertEquals(\">\", token0.getTokenText());\n assertEquals(9, token0.getTokenType());\n \n Token token1 = xPathLexer0.rightParen();\n assertEquals(2, token1.getTokenType());\n assertEquals(\"6\", token1.getTokenText());\n \n char char0 = xPathLexer0.LA(0);\n assertEquals('6', char0);\n }", "@Override\r\n\tpublic boolean visit(VariableDeclarationFragment node) {\r\n//\t\toperator(node);\r\n\t\treturn true;\r\n\t}", "@Test\n public void basicConditionTest() throws Exception {\n\n assertThat(getNode(\"1 == 2\", \"expr\").render(null), is((Object)false));\n assertThat(getNode(\"1 == 1\", \"expr\").render(null), is((Object)true));\n }", "public static void QuestionOne(Node n) {\n\n\n\n }", "@Override\n\tpublic Object visit(ASTPCGenBracket node, Object data)\n\t{\n\t\t//Should be stripped by the function\n\t\tFormulaSemantics semantics = (FormulaSemantics) data;\n\t\tFormulaSemanticsUtilities.setInvalid(semantics,\n\t\t\t\"Parse Error: Invalid Class: \" + node.getClass().getName()\n\t\t\t\t+ \" found in operable location (class cannot be evaluated)\");\n\t\treturn semantics;\n\t}", "private Object parseExpr() throws IOException, FSException{\n\n ETreeNode curNode=null;\n boolean end=false;\n Object val;\n boolean negate=false; //flag for unary minus\n boolean not=false;//flag for unary not.\n boolean prevOp=true;//flag - true if previous value was an operator\n\n while (!end){\n\n switch (tok.ttype) {\n\n\n //the various possible 'values'\n case LexAnn.TT_INTEGER:\n case LexAnn.TT_DOUBLE:\n case LexAnn.TT_STRING:\n case LexAnn.TT_WORD:\n case LexAnn.TT_FUNC:\n case LexAnn.TT_NULL:\n case LexAnn.TT_ARRAY:{\n\n if (!prevOp){\n parseError(\"Expected Operator\");\n } else {\n\n val=null;\n ETreeNode node=new ETreeNode();\n node.type=ETreeNode.E_VAL;\n\n switch (tok.ttype){\n //numbers - just get them\n case LexAnn.TT_INTEGER:{\n val=tok.value;\n break;\n }\n case LexAnn.TT_DOUBLE:{\n val=tok.value;\n break;\n }\n //functions - evaluate them\n case LexAnn.TT_FUNC:{\n String name=(String)tok.value;\n getNextToken();\n val=parseCallFunc(name);\n break;\n }\n //arrays - evaluate them\n case LexAnn.TT_ARRAY:{\n String name=(String)tok.value;\n getNextToken(); //should be a '['\n getNextToken(); //should be the index\n Object index=parseExpr();\n try {\n val=host.getVarEntry(name,index);\n } catch (Exception e) {\n parseError(e.getMessage());\n }\n break;\n }\n //variables - resolve them\n case LexAnn.TT_WORD:{\n if (hasVar((String)tok.value)) {\n val=getVar((String)tok.value);\n } else {\n try {\n val=host.getVarEntry((String)tok.value,null);\n } catch (Exception e) {\n parseError(e.getMessage());\n }\n }\n break;\n }\n //strings - just get again\n case LexAnn.TT_STRING:{\n val=tok.value;\n break;\n }\n //null\n case LexAnn.TT_NULL:{\n val=new FSObject(null);\n break;\n }\n }\n\n //unary not\n if (not){\n if (val instanceof Integer){\n if (((Integer)val).intValue()==0){\n val=FS_TRUE;\n } else {\n val=FS_FALSE;\n }\n not=false;\n } else if (val instanceof FSObject && ((FSObject)val).getObject() instanceof Boolean) {\n if (((FSObject)val).getObject().equals(Boolean.FALSE)) {\n val=FS_TRUE;\n } else {\n val=FS_FALSE;\n }\n } else if (val instanceof FSObject && ((FSObject)val).getObject() instanceof Integer) {\n if (((Integer)((FSObject)val).getObject()).intValue()==0) {\n val=FS_TRUE;\n } else {\n val=FS_FALSE;\n }\n } else {\n String msg=val.getClass().getName();\n if (val instanceof FSObject) msg=\"FSObject with \"+((FSObject)val).getNullClass().getName();\n parseError(\"Type mismatch for ! \"+msg);\n }\n }\n\n //unary minus\n if (negate) {\n if (val instanceof Integer){\n val=new Integer(-((Integer)val).intValue());\n } else if (val instanceof Double){\n val=new Double(-((Double)val).doubleValue());\n } else {\n parseError(\"Type mistmatch for unary -\");\n }\n }\n\n node.value=val;\n\n if (curNode!=null){\n if (curNode.left==null){\n curNode.left=node;\n node.parent=curNode;\n curNode=node;\n\n } else if (curNode.right==null){\n curNode.right=node;\n node.parent=curNode;\n curNode=node;\n\n }\n } else {\n curNode=node;\n }\n\n prevOp=false;\n }\n break;\n }\n /*operators - have to be more carefull with these.\n We build an expression tree - inserting the nodes at the right\n points to get a reasonable approximation to correct operator\n precidence*/\n case LexAnn.TT_LEQ:\n case LexAnn.TT_LNEQ:\n case LexAnn.TT_MULT:\n case LexAnn.TT_DIV:\n case LexAnn.TT_MOD:\n case LexAnn.TT_PLUS:\n case LexAnn.TT_MINUS:\n case LexAnn.TT_LGR:\n case LexAnn.TT_LGRE:\n case LexAnn.TT_LLSE:\n case LexAnn.TT_LLS:\n case LexAnn.TT_NOT:\n case LexAnn.TT_LAND:\n case LexAnn.TT_LOR: {\n if (prevOp){\n if (tok.ttype==LexAnn.TT_MINUS){\n negate=true;\n } else if (tok.ttype==LexAnn.TT_NOT){\n not=true;\n } else {\n parseError(\"Expected Expression\");\n }\n } else {\n\n ETreeNode node=new ETreeNode();\n\n node.type=ETreeNode.E_OP;\n node.value=new Integer(tok.ttype);\n\n if (curNode.parent!=null){\n\n int curPrio=getPrio(tok.ttype);\n int parPrio=\n getPrio(((Integer)curNode.parent.value).intValue());\n\n if (curPrio<=parPrio){\n //this nodes parent is the current nodes grandparent\n node.parent=curNode.parent.parent;\n //our nodes left leg is now linked into the current nodes\n //parent\n node.left=curNode.parent;\n //hook into grandparent\n if (curNode.parent.parent!=null){\n curNode.parent.parent.right=node;\n }\n\n //the current nodes parent is now us (because of above)\n curNode.parent=node;\n //set the current node.\n curNode=node;\n } else {\n //current node's parent's right is now us.\n curNode.parent.right=node;\n //our nodes left is the current node.\n node.left=curNode;\n //our nodes parent is the current node's parent.\n node.parent=curNode.parent;\n //curent nodes parent is now us.\n curNode.parent=node;\n //set the current node.\n curNode=node;\n }\n } else {\n //our node's left is the current node\n node.left=curNode;\n //current node's parent is us now\n //we don't have to set our parent, as it is null.\n curNode.parent=node;\n //set current node\n curNode=node;\n }\n prevOp=true;\n }\n break;\n }\n case '(':\n //start of an bracketed expression, recursively call ourself\n //to get a value\n {\n getNextToken();\n val=parseExpr();\n\n if (negate) {\n if (val instanceof Integer){\n val=new Integer(-((Integer)val).intValue());\n } else if (val instanceof Double){\n val=new Double(-((Double)val).doubleValue());\n } else {\n parseError(\"Type mistmatch for unary -\");\n }\n }\n\n ETreeNode node=new ETreeNode();\n node.value=val;\n node.type=ETreeNode.E_VAL;\n\n if (curNode!=null){\n if (curNode.left==null){\n curNode.left=node;\n node.parent=curNode;\n curNode=node;\n\n } else if (curNode.right==null){\n curNode.right=node;\n node.parent=curNode;\n curNode=node;\n\n }\n } else {\n curNode=node;\n }\n prevOp=false;\n break;\n }\n\n default: {\n end=true;\n }\n\n }\n if (!end){\n tok.nextToken();\n }\n }\n\n //find the top of the tree we just built.\n if (curNode==null) parseError(\"Missing Expression\");\n while(curNode.parent!=null){\n curNode=curNode.parent;\n }\n\n\n return evalETree(curNode);\n\n }", "public boolean evaluate(SDGNode node);", "@Override\n public void visit(VariableEvalNode variableEvalNode) {\n }", "public Expression differentiate(String var) {\r\n // var might be a differentiate of other variable\r\n if (!this.toString().equalsIgnoreCase(var)) {\r\n return (Expression) new Num(0);\r\n }\r\n return (Expression) new Num(1);\r\n\r\n }", "@Override\npublic final void accept(TreeVisitor visitor) {\n visitor.visitWord(OpCodes.OR_NAME);\n if (ops != null) {\n for (int i = 0; i < ops.length; i++) {\n ops[i].accept(visitor);\n }\n } else {\n visitor.visitConstant(null, \"?\");\n }\n visitor.visitEnd();\n }", "@Override\n\tpublic String visitExpression(ExpressionContext ctx) {\n\t\tif(ctx.getChildCount() == 3){\n\t\t\treturn visit(ctx.getChild(1));\n\t\t}\n\t\tParseTree cur = ctx.getChild(0);\n\t\tif(!(cur instanceof TerminalNode)){\n\t\t\treturn visit(cur);\n\t\t}\n\t\telse if(cur == ctx.ID()){\n\t\t\tString key=visitTerminal((TerminalNode)cur);\n\t\t\tRecord id= table.lookup(key);\n\t\t\tif (id==null) throw new RuntimeException(\"Identifier \"+key+\" is not declared\");\t\t\t\t\t\n\t\t\treturn id.getReturnType();\n\t\t}\n\t\telse if (cur==ctx.BOOLEANLIT()) return \"boolean\";\n\t\telse if (cur==ctx.STRING()) return \"String\";\n\t\treturn null;\n\t}", "@Test\n\t\tpublic void testExpression() throws LexicalException, SyntaxException {\n\t\t\tString input = \"x + 2\";\n\t\t\tPLPParser parser = makeParser(input);\n\t\t\tExpression e = parser.expression(); //call expression here instead of parse\n\t\t\tshow(e);\t\n\t\t\tassertEquals(ExpressionBinary.class, e.getClass());\n\t\t\tExpressionBinary b = (ExpressionBinary)e;\n\t\t\tassertEquals(ExpressionIdentifier.class, b.leftExpression.getClass());//\n\t\t\tExpressionIdentifier left = (ExpressionIdentifier)b.leftExpression;\n\t\t\tassertEquals(\"x\", left.name);\n\t\t\tassertEquals(ExpressionIntegerLiteral.class, b.rightExpression.getClass());\n\t\t\tExpressionIntegerLiteral right = (ExpressionIntegerLiteral)b.rightExpression;\n\t\t\tassertEquals(2, right.value);\n\t\t\tassertEquals(OP_PLUS, b.op);\n\t\t}", "final int getNodeType0() {\n return EXPRESSION_METHOD_REFERENCE;\n }", "public R visit(Operator n) {\n R _ret=null;\n int which = n.f0.which;\n String s = \" \";\n switch (which)\n {\n case 0 : {s=\"LT\"; break;}\n case 1 : {s= \"PLUS\"; break;}\n case 2 : {s= \"MINUS\";break;}\n case 3 : {s= \"TIMES\"; break;}\n }\n \t return (R)s;\n }", "@Override\n public Expression visit(LogicalOpNode node) {\n\n Label trueLabel = new Label ();\n Label falseLabel = new Label ();\n Label endLabel = new Label ();\n\n process(node, trueLabel, falseLabel);\n\n cat.footoredo.mx.entity.Variable variable = tmpVariable(node.getType());\n\n label (trueLabel);\n assign (node.getLocation(), ref(variable), new Integer(Type.INT8, 1));\n jump (endLabel);\n\n label (falseLabel);\n assign (node.getLocation(), ref(variable), new Integer(Type.INT8, 0));\n jump (endLabel);\n\n label (endLabel);\n\n return isStatement() ? null : ref (variable);\n }", "public interface DataNode\r\n{\r\n /** @return type name of this data node */\r\n public String get_type_name();\r\n /** @return the bits of this data node */\r\n public String get_bitsequence_value() ;\r\n \r\n /** @return size of this data in bits*/\r\n public int get_bit_size(); \r\n \r\n /** @return size of this data as an integer (for expresion evaluation\r\n * purpose */\r\n public int get_int_value() throws Exception;\r\n \r\n /** @return the number of bits this type takes */ \r\n public int get_fieldsize();\r\n \r\n /** set the expression for number of bits this type takes*/\r\n public void set_fieldsize(AST fieldsize);\r\n \r\n /** set valid ok nok */\r\n public void set_verify_then_else(AST verify_ast,AST then_ast , AST else_ast) throws Exception;\r\n \r\n /** sets the contaxt for evaluation of expressions for this data node*/\r\n public void set_context(VariableSymbolTable context);\r\n \r\n /** print a human readable form of this node */\r\n public String print();\r\n \r\n /** print with formatting \r\n * 0 = print() [debug formatted]\r\n * 1 = as string [useful to write to a file]\r\n * 2 = debug with strings [similar to 0, but with strings instad of bytes]\r\n * @return Formatted output ready to be printed\r\n */\r\n public String print(int format);\r\n public void set_name(String name);\r\n public String get_name();\r\n \r\n /** returns the maximum size this object can accept (hold) or -1 for infinity */\r\n public int get_max_accept() throws Exception;\r\n public void assign(DataNodeAbstract rhs) throws Exception;\r\n public void populate(BdplFile rhs) throws Exception;\r\n \r\n}", "@Override\n public R visit(Consequent n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "@Override\r\n\tpublic boolean visit(QualifiedName node) {\r\n\t\toperand(node,node.getFullyQualifiedName());\r\n\t\treturn false;\r\n\t}", "@Override\n\tpublic Object visit(ASTRelational node, Object data)\n\t{\n\t\treturn visitOperatorNode(node, data);\n\t}", "public ParseTreeNode visit(LiteralNode literalNode) {\n return null;\n }", "@Override\n public R visit(GraphPatternNotTriples n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "public Node term(Node n_parent) {\r\n\r\n if (token.get(lookAheadPossition).contains(\"ident(\") || token.get(lookAheadPossition).contains(\"num(\") || token.get(lookAheadPossition).contains(\"boollit(\") || token.get(lookAheadPossition).equals(\"LP\")) {\r\n System.out.println(\":: term:if:\" + n_parent.getData());\r\n Node n_factor = this.factor(n_parent);\r\n //if (n_parent.getData().contains(\"*\")) {n_parent.setNodeChild(n_factor); }\r\n //if (n_parent.getData().contains(\"DIV\")) {n_parent.setNodeChild(n_factor); }\r\n //if (n_parent.getData().contains(\"MOD\")) {n_parent.setNodeChild(n_factor); }\r\n //if (!(n_parent.getData().equals(\"makeown\"))) {n_parent.setNodeChild(n_factor); }\r\n return (this.restTerm(n_parent, n_factor));\r\n } else {\r\n\r\n return (null);\r\n }\r\n }", "public interface QuotedL1Node {\n\n}", "private Operand parseFactor() {\n Operand operand = new Operand(SymbolTable.OBJECT_NONE);\n switch (nextToken.kind) {\n case Token.IDENT:\n operand = parseDesignator();\n\n if (nextToken.kind == Token.LPAR) {\n if (operand.kind != Operand.KIND_METHOD) {\n error(\"Illegal method call\");\n }\n parseActPars(operand.object);\n if (operand.object == SymbolTable.OBJECT_LEN) {\n code.put(Code.OP_ARRAYLENGTH);\n } else if(operand.object != SymbolTable.OBJECT_CHR\n && operand.object != SymbolTable.OBJECT_ORD) {\n code.put(Code.OP_CALL);\n code.put2(operand.address);\n }\n } else {\n code.load(operand);\n }\n\n break;\n case Token.NUMBER:\n check(Token.NUMBER);\n operand = new Operand(token.value);\n operand.type = SymbolTable.STRUCT_INT;\n code.load(new Operand(token.value));\n break;\n case Token.CHAR_CONST:\n check(Token.CHAR_CONST);\n operand = new Operand(token.value);\n operand.type = SymbolTable.STRUCT_CHAR;\n code.load(new Operand(token.value));\n break;\n case Token.NEW:\n check(Token.NEW);\n check(Token.IDENT);\n SymObject object = find(token.string);\n assertIsType(object);\n Struct type = object.type;\n if (nextToken.kind == Token.LBRACK) {\n check(Token.LBRACK);\n Struct sizeType = parseExpr().type;\n if (sizeType != SymbolTable.STRUCT_INT) {\n error(\"Array size must be an int\");\n }\n check(Token.RBRACK);\n type = new Struct(Struct.KIND_ARRAY, type);\n\n code.put(Code.OP_NEWARRAY);\n if (type.elementsType == SymbolTable.STRUCT_CHAR) {\n code.put(0);\n } else {\n code.put(1);\n }\n } else {\n if (type.kind != Struct.KIND_CLASS) {\n error(\"Illegal instantiation: type isn't a class\");\n }\n\n code.put(Code.OP_NEW);\n code.put2(type.fields.size());\n }\n operand = new Operand(Operand.KIND_EXPR, -1, type);\n break;\n case Token.LPAR:\n check(Token.LPAR);\n operand = parseExpr();\n check(Token.RPAR);\n break;\n }\n\n return operand;\n }", "public void visit(Operand operand);", "@Override\n\tpublic Object visit(ASTLogical node, Object data)\n\t{\n\t\treturn visitOperatorNode(node, data);\n\t}", "public static void expression(CommonTree ast, IRTree irt)\n {\n CommonTree ast1;\n IRTree irt1 = new IRTree();\n Token t = ast.getToken();\n int tt = t.getType();\n if (tt == REALNUM) {\n constant(ast, irt1);\n irt.setOp(\"CONST\");\n irt.addSub(irt1);\n }\n else if(tt == PLUS || tt == MINUS || tt == TIMES || tt == DIVIDE)\n {\n //do something\n irt.setOp(\"BINOP\");\n IRTree irt2 = new IRTree();\n expression((CommonTree)ast.getChild(0), irt1);\n expression((CommonTree)ast.getChild(1), irt2);\n\tif(tt == PLUS)\n \t\t irt.addSub(new IRTree(\"+\")); \n\telse if(tt == MINUS)\n\t\tirt.addSub(new IRTree(\"-\"));\n\telse if(tt == TIMES)\n\t\tirt.addSub(new IRTree(\"*\"));\n\telse if(tt == DIVIDE)\n\t\tirt.addSub(new IRTree(\"/\"));\n irt.addSub(irt1);\n irt.addSub(irt2);\n }\n else\n\tSystem.out.println(\"unrecognised type \" + tt);\n }", "public Snippet visit(Expression n, Snippet argu) {\n\t Snippet _ret=null;\n\t _ret = n.nodeChoice.accept(this, argu);\n\t return _ret;\n\t }", "private InfixExpression getNode()\n{\n return (InfixExpression) ast_node;\n}", "@Override\n\tpublic Object visit(ASTExpon node, Object data)\n\t{\n\t\tFormulaSemantics semantics = (FormulaSemantics) data;\n\t\tif (node.getOperator() == null)\n\t\t{\n\t\t\tFormulaSemanticsUtilities.setInvalid(semantics,\n\t\t\t\t\"Parse Error: Object of type \" + node.getClass()\n\t\t\t\t\t+ \" expected to have an operator, none was found\");\n\t\t\treturn semantics;\n\t\t}\n\t\tfor (int i = 0; i < node.jjtGetNumChildren(); i++)\n\t\t{\n\t\t\tnode.jjtGetChild(i).jjtAccept(this, semantics);\n\t\t\t//Consistent with the \"fail fast\" behavior in the implementation note\n\t\t\tif (!semantics.getInfo(FormulaSemanticsUtilities.SEM_VALID)\n\t\t\t\t.isValid())\n\t\t\t{\n\t\t\t\treturn semantics;\n\t\t\t}\n\t\t\t/*\n\t\t\t * Note: We only implement ^ for Number.class today. This is a\n\t\t\t * \"known\" limitation, but would be nice to escape. However, this\n\t\t\t * means we can't shortcut the item in evaluate... (see\n\t\t\t * EvaluationVisitor)\n\t\t\t */\n\t\t\tClass<?> format =\n\t\t\t\t\tsemantics.getInfo(FormulaSemanticsUtilities.SEM_FORMAT)\n\t\t\t\t\t\t.getFormat();\n\t\t\tif (!format.equals(NUMBER_CLASS))\n\t\t\t{\n\t\t\t\tFormulaSemanticsUtilities.setInvalid(semantics,\n\t\t\t\t\t\"Parse Error: Invalid Value Format: \" + format\n\t\t\t\t\t\t+ \" found in \"\n\t\t\t\t\t\t+ node.jjtGetChild(i).getClass().getName()\n\t\t\t\t\t\t+ \" found in location requiring a\"\n\t\t\t\t\t\t+ \" Number (class cannot be evaluated)\");\n\t\t\t}\n\t\t}\n\t\treturn semantics;\n\t}", "public String visit(TrueLiteral n, LLVMRedux argu) throws Exception {\n return \"true\";\n }", "Term getNodeTerm();", "@Test(timeout = 4000)\n public void test001() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"hN!SM~8ux(wB\");\n xPathLexer0.dollar();\n xPathLexer0.not();\n xPathLexer0.nextToken();\n xPathLexer0.leftParen();\n xPathLexer0.whitespace();\n xPathLexer0.plus();\n Token token0 = xPathLexer0.or();\n assertNull(token0);\n }", "@Override\n public R visit(NumericLiteralNegative n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "Operands createOperands();", "public interface BranchNode extends StatementNode\n{\n\t/**\n\t * Set the branching condition.\n\t * \n\t * @param condition\n\t * the condition of the branch.\n\t */\n\tpublic void setCondition(ExpressionNode condition);\n\n\t/**\n\t * Get the branching condition.\n\t * \n\t * @return the condition of the branch.\n\t */\n\tpublic ExpressionNode getCondition();\n\n\t/**\n\t * Set the statement that is executed when the condition evaluates to true.\n\t * \n\t * @param statement\n\t * The statement to execute when the condition evaluates to true.\n\t */\n\tpublic void setStatementNodeOnTrue(StatementNode statement);\n\n\t/**\n\t * The statement that is executed when the condition evaluates to true.\n\t * \n\t * @return The statement to execute when the condition evaluates to true.\n\t */\n\tpublic StatementNode getStatementNodeOnTrue();\n\n\t/**\n\t * Set the statement that is executed when the condition evaluates to false.\n\t * This is the else statement. If there is no else set to null.\n\t * \n\t * @param statement\n\t * The statement to execute when the condition evaluates to false or\n\t * null if no else branch is needed.\n\t */\n\tpublic void setStatementNodeOnFalse(StatementNode statement);\n\n\t/**\n\t * The statement that is executed when the condition is false. This is the else\n\t * branch. If no else branch exists this will return null.\n\t * \n\t * @return The statement to execute when the condition evaluates to false.\n\t */\n\tpublic StatementNode getStatementNodeOnFalse();\n}", "Literal createLiteral();", "Literal createLiteral();", "protected Evaluable parseFactor() throws ParsingException {\n if (_token == null) {\n throw makeException(\"Expecting something more at end of expression\");\n }\n\n Evaluable eval = null;\n\n if (_token.type == TokenType.String) {\n eval = new LiteralExpr(_token.text);\n next(false);\n } else if (_token.type == TokenType.Regex) {\n RegexToken t = (RegexToken) _token;\n\n try {\n Pattern pattern = Pattern.compile(_token.text, t.caseInsensitive ? Pattern.CASE_INSENSITIVE : 0);\n eval = new LiteralExpr(pattern);\n next(false);\n } catch (Exception e) {\n throw makeException(\"Bad regular expression (\" + e.getMessage() + \")\");\n }\n } else if (_token.type == TokenType.Number) {\n eval = new LiteralExpr(((NumberToken)_token).value);\n next(false);\n } else if (_token.type == TokenType.Operator && _token.text.equals(\"-\")) { // unary minus?\n next(true);\n\n if (_token != null && _token.type == TokenType.Number) {\n Number n = ((NumberToken)_token).value;\n\n eval = new LiteralExpr(n instanceof Long ? -n.longValue() : -n.doubleValue());\n\n next(false);\n } else {\n throw makeException(\"Bad negative number\");\n }\n } else if (_token.type == TokenType.Identifier) {\n String text = _token.text;\n next(false);\n\n if (_token == null || _token.type != TokenType.Delimiter || !_token.text.equals(\"(\")) {\n eval = \"null\".equals(text) ? new LiteralExpr(null) : new VariableExpr(text);\n } else if( \"PI\".equals(text) ) {\n eval = new LiteralExpr(Math.PI);\n next(false);\n } else {\n Function f = ControlFunctionRegistry.getFunction(text);\n Control c = ControlFunctionRegistry.getControl(text);\n if (f == null && c == null) {\n throw makeException(\"Unknown function or control named \" + text);\n }\n\n next(true); // swallow (\n\n List<Evaluable> args = parseExpressionList(\")\");\n\n if (c != null) {\n Evaluable[] argsA = makeArray(args);\n String errorMessage = c.checkArguments(argsA);\n if (errorMessage != null) {\n throw makeException(errorMessage);\n }\n eval = new ControlCallExpr(argsA, c);\n } else {\n eval = new FunctionCallExpr(makeArray(args), f);\n }\n }\n } else if (_token.type == TokenType.Delimiter && _token.text.equals(\"(\")) {\n next(true);\n\n eval = parseExpression();\n\n if (_token != null && _token.type == TokenType.Delimiter && _token.text.equals(\")\")) {\n next(false);\n } else {\n throw makeException(\"Missing )\");\n }\n } else if (_token.type == TokenType.Delimiter && _token.text.equals(\"[\")) { // [ ... ] array\n next(true); // swallow [\n\n List<Evaluable> args = parseExpressionList(\"]\");\n\n eval = new FunctionCallExpr(makeArray(args), new ArgsToArray());\n } else {\n throw makeException(\"Missing number, string, identifier, regex, or parenthesized expression\");\n }\n\n while (_token != null) {\n if (_token.type == TokenType.Operator && _token.text.equals(\".\")) {\n next(false); // swallow .\n\n if (_token == null || _token.type != TokenType.Identifier) {\n throw makeException(\"Missing function name\");\n }\n\n String identifier = _token.text;\n next(false);\n\n if (_token != null && _token.type == TokenType.Delimiter && _token.text.equals(\"(\")) {\n next(true); // swallow (\n\n Function f = ControlFunctionRegistry.getFunction(identifier);\n if (f == null) {\n throw makeException(\"Unknown function \" + identifier);\n }\n\n List<Evaluable> args = parseExpressionList(\")\");\n args.add(0, eval);\n\n eval = new FunctionCallExpr(makeArray(args), f);\n } else {\n eval = new FieldAccessorExpr(eval, identifier);\n }\n } else if (_token.type == TokenType.Delimiter && _token.text.equals(\"[\")) {\n next(true); // swallow [\n\n List<Evaluable> args = parseExpressionList(\"]\");\n args.add(0, eval);\n\n eval = new FunctionCallExpr(makeArray(args), ControlFunctionRegistry.getFunction(\"get\"));\n } else {\n break;\n }\n }\n\n return eval;\n }", "public interface Node extends TreeComponent {\n /**\n * The types of decision tree nodes available.\n */\n enum NodeType {\n Internal,\n Leaf\n }\n\n /**\n * Gets the type of this node.\n * @return The type of node.\n */\n NodeType getType();\n\n void print();\n\n String getClassLabel(DataTuple tuple);\n}", "public void visit (Object expr) {\n\t\t\t\n\t\t\toffset += 2;\n\t\t\t\n\t\t\tif (expr instanceof VariableReferenceExpr) {\n\t\t\t\tvisit ( (VariableReferenceExpr) expr);\n\t\t\t} else if (expr instanceof UnionExpr) {\n\t\t\t\tvisit ( (UnionExpr) expr);\n\t\t\t} else if ( expr instanceof UnaryExpr) {\n\t\t\t\tvisit ( (UnaryExpr) expr);\n\t\t\t} else if ( expr instanceof TextNodeStep ) {\n\t\t\t\tvisit ( (TextNodeStep) expr) ;\n\t\t\t} else if ( expr instanceof RelationalExpr) {\n\t\t\t\tvisit ( (RelationalExpr) expr);\n\t\t\t} else if ( expr instanceof ProcessingInstructionNodeStep) {\n\t\t\t\tvisit ( (ProcessingInstructionNodeStep) expr) ;\n\t\t\t} else if ( expr instanceof Predicate) {\n\t\t\t\tvisit ( (Predicate) expr );\n\t\t\t} else if ( expr instanceof PathExpr) {\n\t\t\t\tvisit ( (PathExpr) expr) ;\n\t\t\t} else if ( expr instanceof NumberExpr) {\n\t\t\t\tvisit ( (NumberExpr) expr);\n\t\t\t} else if ( expr instanceof NameStep) {\n\t\t\t\tvisit ( (NameStep) expr);\n\t\t\t} else if ( expr instanceof MultiplicativeExpr) {\n\t\t\t\tvisit ( (MultiplicativeExpr) expr);\n\t\t\t} else if ( expr instanceof LogicalExpr) {\n\t\t\t\tvisit ( (LogicalExpr) expr);\n\t\t\t} else if ( expr instanceof LocationPath) {\n\t\t\t\tvisit ( (LocationPath) expr);\n\t\t\t} else if ( expr instanceof LiteralExpr) {\n\t\t\t\tvisit ( (LiteralExpr) expr);\n\t\t\t} else if ( expr instanceof FunctionCallExpr) {\n\t\t\t\tvisit ( (FunctionCallExpr) expr);\n\t\t\t} else if ( expr instanceof FilterExpr) {\n\t\t\t\tvisit ( (FilterExpr) expr);\n\t\t\t} else if ( expr instanceof EqualityExpr) {\n\t\t\t\tvisit ( (EqualityExpr) expr);\n\t\t\t} else if ( expr instanceof CommentNodeStep) {\n\t\t\t\tvisit ( (CommentNodeStep)expr);\n\t\t\t} else if ( expr instanceof AllNodeStep) {\n\t\t\t\tvisit ( (AllNodeStep) expr);\n\t\t\t} else if ( expr instanceof AdditiveExpr) {\n\t\t\t\tvisit ( (AdditiveExpr) expr);\n\t\t\t} else if (expr instanceof List) {\n\t\t\t\tvisitList((List)expr);\n\t\t\t} else if (expr != null) {\n\t\t\t\tout(\"Panic: Unknown expression kind {0} \",expr.getClass().getName()); //$NON-NLS-1$\n\t\t\t} else {\n\t\t\t\tout(\"null - unset\");\n\t\t\t}\n\t\t\t\n\t\t\toffset -= 2;\n\t\t}", "public interface Node {\n public int arityOfOperation();\n public String getText(int depth) throws CalculationException;\n public double getResult() throws CalculationException;\n public boolean isReachable(int depth);\n public List<Node> getAdjacentNodes();\n public String getTitle();\n public void setDepth(int depth);\n}", "@Test public void term_value_01() {\n RDF_Term rt = testTermValue(\"123\") ;\n assertEquals(rt.getTermCase(), TermCase.VALINTEGER);\n assertEquals(123, rt.getValInteger()) ;\n }", "@Override\n public TypeNode evaluate() {\n return this.hijo.evaluate().toBoolNode();\n }", "@Test\n public void defaultOperatorsEvaluateFalseTest() throws Exception {\n\n assertThat(getNode(\"1 == 2\", \"expr\").render(null), is((Object)false));\n assertThat(getNode(\"1 != 1\", \"expr\").render(null), is((Object)false));\n assertThat(getNode(\"1 <> 1\", \"expr\").render(null), is((Object)false));\n assertThat(getNode(\"1 < 0\", \"expr\").render(null), is((Object)false));\n assertThat(getNode(\"2 > 4\", \"expr\").render(null), is((Object)false));\n assertThat(getNode(\"1 >= 3\", \"expr\").render(null), is((Object)false));\n assertThat(getNode(\"2 >= 4\", \"expr\").render(null), is((Object)false));\n assertThat(getNode(\"1 <= 0\", \"expr\").render(null), is((Object)false));\n }", "public String getNodeValue ();", "@Override\n\tpublic Object visit(ASTFParen node, Object data)\n\t{\n\t\t//Should be stripped by the function\n\t\tFormulaSemantics semantics = (FormulaSemantics) data;\n\t\tFormulaSemanticsUtilities.setInvalid(semantics,\n\t\t\t\"Parse Error: Invalid Class: \" + node.getClass().getName()\n\t\t\t\t+ \" found in operable location (class cannot be evaluated)\");\n\t\treturn semantics;\n\t}", "public static XLExpr getExpression(Node node) throws DatatypeFormatException {\n if (node.isURI() && node.getURI().startsWith(Constants.VARIABLE_NS)) {\n return new E_ConstantRef(node.getURI().substring(Constants.VARIABLE_NS.length()));\n }\n if (!node.isLiteral()) return null;\n RDFDatatype dt = node.getLiteralDatatype();\n if (dt == null || dt.getURI().equals(XSD.xstring.getURI())) {\n return new E_String(node.getLiteralLexicalForm());\n }\n if (dt.equals(XLExprDatatype.instance)) {\n return (XLExpr) node.getLiteralValue();\n }\n return null;\n }", "@Override\n\tpublic void visit(Parenthesis arg0) {\n\t\t\n\t}", "public Literal getLiteral(Object literalData);", "@Override\n public String visit(BinaryExpr n, Object arg) {\n return null;\n }", "public final Object expression() throws RecognitionException {\n Object result = null;\n\n\n CommonTree INTEGER15=null;\n CommonTree BOOL16=null;\n CommonTree IDENT17=null;\n Object op1 =null;\n\n Object op2 =null;\n\n Object call18 =null;\n\n\n try {\n // /v/filer4b/v38q001/rjnevels/Desktop/Antlr Eclipse Test/workspace3/BFlat/src/a/b/c/EvaluatorWalker.g:322:3: ( ( ^( '+' op1= expression op2= expression ) | ^( '-' op1= expression op2= expression ) | ^( '*' op1= expression op2= expression ) | ^( '/' op1= expression op2= expression ) | ^( '%' op1= expression op2= expression ) | ^( ARITH_NEGATION op1= expression ) | ^( '||' op1= expression op2= expression ) | ^( '&&' op1= expression op2= expression ) | ^( '==' op1= expression op2= expression ) | ^( '!=' op1= expression op2= expression ) | ^( '>=' op1= expression op2= expression ) | ^( '<=' op1= expression op2= expression ) | ^( '>' op1= expression op2= expression ) | ^( '<' op1= expression op2= expression ) | ^( BOOL_NEGATION op1= expression ) | INTEGER | BOOL | IDENT | call ) )\n // /v/filer4b/v38q001/rjnevels/Desktop/Antlr Eclipse Test/workspace3/BFlat/src/a/b/c/EvaluatorWalker.g:323:3: ( ^( '+' op1= expression op2= expression ) | ^( '-' op1= expression op2= expression ) | ^( '*' op1= expression op2= expression ) | ^( '/' op1= expression op2= expression ) | ^( '%' op1= expression op2= expression ) | ^( ARITH_NEGATION op1= expression ) | ^( '||' op1= expression op2= expression ) | ^( '&&' op1= expression op2= expression ) | ^( '==' op1= expression op2= expression ) | ^( '!=' op1= expression op2= expression ) | ^( '>=' op1= expression op2= expression ) | ^( '<=' op1= expression op2= expression ) | ^( '>' op1= expression op2= expression ) | ^( '<' op1= expression op2= expression ) | ^( BOOL_NEGATION op1= expression ) | INTEGER | BOOL | IDENT | call )\n {\n OperationExecuter oe = null;\n\n // /v/filer4b/v38q001/rjnevels/Desktop/Antlr Eclipse Test/workspace3/BFlat/src/a/b/c/EvaluatorWalker.g:324:3: ( ^( '+' op1= expression op2= expression ) | ^( '-' op1= expression op2= expression ) | ^( '*' op1= expression op2= expression ) | ^( '/' op1= expression op2= expression ) | ^( '%' op1= expression op2= expression ) | ^( ARITH_NEGATION op1= expression ) | ^( '||' op1= expression op2= expression ) | ^( '&&' op1= expression op2= expression ) | ^( '==' op1= expression op2= expression ) | ^( '!=' op1= expression op2= expression ) | ^( '>=' op1= expression op2= expression ) | ^( '<=' op1= expression op2= expression ) | ^( '>' op1= expression op2= expression ) | ^( '<' op1= expression op2= expression ) | ^( BOOL_NEGATION op1= expression ) | INTEGER | BOOL | IDENT | call )\n int alt14=19;\n switch ( input.LA(1) ) {\n case 32:\n {\n alt14=1;\n }\n break;\n case 34:\n {\n alt14=2;\n }\n break;\n case 31:\n {\n alt14=3;\n }\n break;\n case 35:\n {\n alt14=4;\n }\n break;\n case 29:\n {\n alt14=5;\n }\n break;\n case ARITH_NEGATION:\n {\n alt14=6;\n }\n break;\n case 50:\n {\n alt14=7;\n }\n break;\n case 30:\n {\n alt14=8;\n }\n break;\n case 39:\n {\n alt14=9;\n }\n break;\n case 28:\n {\n alt14=10;\n }\n break;\n case 41:\n {\n alt14=11;\n }\n break;\n case 37:\n {\n alt14=12;\n }\n break;\n case 40:\n {\n alt14=13;\n }\n break;\n case 36:\n {\n alt14=14;\n }\n break;\n case BOOL_NEGATION:\n {\n alt14=15;\n }\n break;\n case INTEGER:\n {\n alt14=16;\n }\n break;\n case BOOL:\n {\n alt14=17;\n }\n break;\n case IDENT:\n {\n alt14=18;\n }\n break;\n case CALL:\n {\n alt14=19;\n }\n break;\n default:\n NoViableAltException nvae =\n new NoViableAltException(\"\", 14, 0, input);\n\n throw nvae;\n\n }\n\n switch (alt14) {\n case 1 :\n // /v/filer4b/v38q001/rjnevels/Desktop/Antlr Eclipse Test/workspace3/BFlat/src/a/b/c/EvaluatorWalker.g:325:4: ^( '+' op1= expression op2= expression )\n {\n match(input,32,FOLLOW_32_in_expression564); \n\n match(input, Token.DOWN, null); \n pushFollow(FOLLOW_expression_in_expression570);\n op1=expression();\n\n state._fsp--;\n\n\n pushFollow(FOLLOW_expression_in_expression576);\n op2=expression();\n\n state._fsp--;\n\n\n match(input, Token.UP, null); \n\n\n oe = new OperationExecuter(op1,op2,\"+\"); \n\n }\n break;\n case 2 :\n // /v/filer4b/v38q001/rjnevels/Desktop/Antlr Eclipse Test/workspace3/BFlat/src/a/b/c/EvaluatorWalker.g:326:6: ^( '-' op1= expression op2= expression )\n {\n match(input,34,FOLLOW_34_in_expression590); \n\n match(input, Token.DOWN, null); \n pushFollow(FOLLOW_expression_in_expression596);\n op1=expression();\n\n state._fsp--;\n\n\n pushFollow(FOLLOW_expression_in_expression602);\n op2=expression();\n\n state._fsp--;\n\n\n match(input, Token.UP, null); \n\n\n oe = new OperationExecuter(op1,op2,\"-\"); \n\n }\n break;\n case 3 :\n // /v/filer4b/v38q001/rjnevels/Desktop/Antlr Eclipse Test/workspace3/BFlat/src/a/b/c/EvaluatorWalker.g:327:6: ^( '*' op1= expression op2= expression )\n {\n match(input,31,FOLLOW_31_in_expression614); \n\n match(input, Token.DOWN, null); \n pushFollow(FOLLOW_expression_in_expression620);\n op1=expression();\n\n state._fsp--;\n\n\n pushFollow(FOLLOW_expression_in_expression626);\n op2=expression();\n\n state._fsp--;\n\n\n match(input, Token.UP, null); \n\n\n oe = new OperationExecuter(op1,op2,\"*\"); \n\n }\n break;\n case 4 :\n // /v/filer4b/v38q001/rjnevels/Desktop/Antlr Eclipse Test/workspace3/BFlat/src/a/b/c/EvaluatorWalker.g:328:6: ^( '/' op1= expression op2= expression )\n {\n match(input,35,FOLLOW_35_in_expression638); \n\n match(input, Token.DOWN, null); \n pushFollow(FOLLOW_expression_in_expression644);\n op1=expression();\n\n state._fsp--;\n\n\n pushFollow(FOLLOW_expression_in_expression650);\n op2=expression();\n\n state._fsp--;\n\n\n match(input, Token.UP, null); \n\n\n oe = new OperationExecuter(op1,op2,\"/\"); \n\n }\n break;\n case 5 :\n // /v/filer4b/v38q001/rjnevels/Desktop/Antlr Eclipse Test/workspace3/BFlat/src/a/b/c/EvaluatorWalker.g:329:6: ^( '%' op1= expression op2= expression )\n {\n match(input,29,FOLLOW_29_in_expression662); \n\n match(input, Token.DOWN, null); \n pushFollow(FOLLOW_expression_in_expression668);\n op1=expression();\n\n state._fsp--;\n\n\n pushFollow(FOLLOW_expression_in_expression674);\n op2=expression();\n\n state._fsp--;\n\n\n match(input, Token.UP, null); \n\n\n oe = new OperationExecuter(op1,op2,\"%\"); \n\n }\n break;\n case 6 :\n // /v/filer4b/v38q001/rjnevels/Desktop/Antlr Eclipse Test/workspace3/BFlat/src/a/b/c/EvaluatorWalker.g:330:6: ^( ARITH_NEGATION op1= expression )\n {\n match(input,ARITH_NEGATION,FOLLOW_ARITH_NEGATION_in_expression686); \n\n match(input, Token.DOWN, null); \n pushFollow(FOLLOW_expression_in_expression692);\n op1=expression();\n\n state._fsp--;\n\n\n match(input, Token.UP, null); \n\n\n oe = new OperationExecuter(op1,null,\"ARITH_NEGATION\"); \n\n }\n break;\n case 7 :\n // /v/filer4b/v38q001/rjnevels/Desktop/Antlr Eclipse Test/workspace3/BFlat/src/a/b/c/EvaluatorWalker.g:331:6: ^( '||' op1= expression op2= expression )\n {\n match(input,50,FOLLOW_50_in_expression710); \n\n match(input, Token.DOWN, null); \n pushFollow(FOLLOW_expression_in_expression716);\n op1=expression();\n\n state._fsp--;\n\n\n pushFollow(FOLLOW_expression_in_expression722);\n op2=expression();\n\n state._fsp--;\n\n\n match(input, Token.UP, null); \n\n\n oe = new OperationExecuter(op1,op2,\"||\"); \n\n }\n break;\n case 8 :\n // /v/filer4b/v38q001/rjnevels/Desktop/Antlr Eclipse Test/workspace3/BFlat/src/a/b/c/EvaluatorWalker.g:332:6: ^( '&&' op1= expression op2= expression )\n {\n match(input,30,FOLLOW_30_in_expression733); \n\n match(input, Token.DOWN, null); \n pushFollow(FOLLOW_expression_in_expression739);\n op1=expression();\n\n state._fsp--;\n\n\n pushFollow(FOLLOW_expression_in_expression745);\n op2=expression();\n\n state._fsp--;\n\n\n match(input, Token.UP, null); \n\n\n oe = new OperationExecuter(op1,op2,\"&&\"); \n\n }\n break;\n case 9 :\n // /v/filer4b/v38q001/rjnevels/Desktop/Antlr Eclipse Test/workspace3/BFlat/src/a/b/c/EvaluatorWalker.g:333:6: ^( '==' op1= expression op2= expression )\n {\n match(input,39,FOLLOW_39_in_expression756); \n\n match(input, Token.DOWN, null); \n pushFollow(FOLLOW_expression_in_expression762);\n op1=expression();\n\n state._fsp--;\n\n\n pushFollow(FOLLOW_expression_in_expression768);\n op2=expression();\n\n state._fsp--;\n\n\n match(input, Token.UP, null); \n\n\n oe = new OperationExecuter(op1,op2,\"==\"); \n\n }\n break;\n case 10 :\n // /v/filer4b/v38q001/rjnevels/Desktop/Antlr Eclipse Test/workspace3/BFlat/src/a/b/c/EvaluatorWalker.g:334:6: ^( '!=' op1= expression op2= expression )\n {\n match(input,28,FOLLOW_28_in_expression779); \n\n match(input, Token.DOWN, null); \n pushFollow(FOLLOW_expression_in_expression785);\n op1=expression();\n\n state._fsp--;\n\n\n pushFollow(FOLLOW_expression_in_expression791);\n op2=expression();\n\n state._fsp--;\n\n\n match(input, Token.UP, null); \n\n\n oe = new OperationExecuter(op1,op2,\"!=\"); \n\n }\n break;\n case 11 :\n // /v/filer4b/v38q001/rjnevels/Desktop/Antlr Eclipse Test/workspace3/BFlat/src/a/b/c/EvaluatorWalker.g:335:6: ^( '>=' op1= expression op2= expression )\n {\n match(input,41,FOLLOW_41_in_expression802); \n\n match(input, Token.DOWN, null); \n pushFollow(FOLLOW_expression_in_expression808);\n op1=expression();\n\n state._fsp--;\n\n\n pushFollow(FOLLOW_expression_in_expression814);\n op2=expression();\n\n state._fsp--;\n\n\n match(input, Token.UP, null); \n\n\n oe = new OperationExecuter(op1,op2,\">=\"); \n\n }\n break;\n case 12 :\n // /v/filer4b/v38q001/rjnevels/Desktop/Antlr Eclipse Test/workspace3/BFlat/src/a/b/c/EvaluatorWalker.g:336:6: ^( '<=' op1= expression op2= expression )\n {\n match(input,37,FOLLOW_37_in_expression825); \n\n match(input, Token.DOWN, null); \n pushFollow(FOLLOW_expression_in_expression831);\n op1=expression();\n\n state._fsp--;\n\n\n pushFollow(FOLLOW_expression_in_expression837);\n op2=expression();\n\n state._fsp--;\n\n\n match(input, Token.UP, null); \n\n\n oe = new OperationExecuter(op1,op2,\"<=\"); \n\n }\n break;\n case 13 :\n // /v/filer4b/v38q001/rjnevels/Desktop/Antlr Eclipse Test/workspace3/BFlat/src/a/b/c/EvaluatorWalker.g:337:6: ^( '>' op1= expression op2= expression )\n {\n match(input,40,FOLLOW_40_in_expression848); \n\n match(input, Token.DOWN, null); \n pushFollow(FOLLOW_expression_in_expression854);\n op1=expression();\n\n state._fsp--;\n\n\n pushFollow(FOLLOW_expression_in_expression860);\n op2=expression();\n\n state._fsp--;\n\n\n match(input, Token.UP, null); \n\n\n oe = new OperationExecuter(op1,op2,\">\"); \n\n }\n break;\n case 14 :\n // /v/filer4b/v38q001/rjnevels/Desktop/Antlr Eclipse Test/workspace3/BFlat/src/a/b/c/EvaluatorWalker.g:338:6: ^( '<' op1= expression op2= expression )\n {\n match(input,36,FOLLOW_36_in_expression872); \n\n match(input, Token.DOWN, null); \n pushFollow(FOLLOW_expression_in_expression878);\n op1=expression();\n\n state._fsp--;\n\n\n pushFollow(FOLLOW_expression_in_expression884);\n op2=expression();\n\n state._fsp--;\n\n\n match(input, Token.UP, null); \n\n\n oe = new OperationExecuter(op1,op2,\"<\"); \n\n }\n break;\n case 15 :\n // /v/filer4b/v38q001/rjnevels/Desktop/Antlr Eclipse Test/workspace3/BFlat/src/a/b/c/EvaluatorWalker.g:339:6: ^( BOOL_NEGATION op1= expression )\n {\n match(input,BOOL_NEGATION,FOLLOW_BOOL_NEGATION_in_expression896); \n\n match(input, Token.DOWN, null); \n pushFollow(FOLLOW_expression_in_expression902);\n op1=expression();\n\n state._fsp--;\n\n\n match(input, Token.UP, null); \n\n\n oe = new OperationExecuter(op1,null,\"BOOL_NEGATION\"); \n\n }\n break;\n case 16 :\n // /v/filer4b/v38q001/rjnevels/Desktop/Antlr Eclipse Test/workspace3/BFlat/src/a/b/c/EvaluatorWalker.g:340:6: INTEGER\n {\n INTEGER15=(CommonTree)match(input,INTEGER,FOLLOW_INTEGER_in_expression920); \n\n oe = new OperationExecuter(localScope, (INTEGER15!=null?INTEGER15.getText():null),\"INTEGER\"); \n\n }\n break;\n case 17 :\n // /v/filer4b/v38q001/rjnevels/Desktop/Antlr Eclipse Test/workspace3/BFlat/src/a/b/c/EvaluatorWalker.g:341:6: BOOL\n {\n BOOL16=(CommonTree)match(input,BOOL,FOLLOW_BOOL_in_expression964); \n\n oe = new OperationExecuter(localScope, (BOOL16!=null?BOOL16.getText():null),\"BOOL\"); \n\n }\n break;\n case 18 :\n // /v/filer4b/v38q001/rjnevels/Desktop/Antlr Eclipse Test/workspace3/BFlat/src/a/b/c/EvaluatorWalker.g:342:6: IDENT\n {\n IDENT17=(CommonTree)match(input,IDENT,FOLLOW_IDENT_in_expression1010); \n\n oe = new OperationExecuter(localScope, (IDENT17!=null?IDENT17.getText():null),\"IDENT\"); \n\n }\n break;\n case 19 :\n // /v/filer4b/v38q001/rjnevels/Desktop/Antlr Eclipse Test/workspace3/BFlat/src/a/b/c/EvaluatorWalker.g:343:6: call\n {\n pushFollow(FOLLOW_call_in_expression1055);\n call18=call();\n\n state._fsp--;\n\n\n result = call18;\n\n }\n break;\n\n }\n\n\n if (oe != null) result = oe.doOperation();\n if (result == null)\n BFlatGUI.debugPrint(0, \"result of expression is null!\");\n \n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n\n finally {\n \t// do for sure before leaving\n }\n return result;\n }", "@Test(timeout = 4000)\n public void test076() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"5!\");\n Token token0 = xPathLexer0.star();\n xPathLexer0.setPreviousToken(token0);\n assertEquals(20, token0.getTokenType());\n assertEquals(\"5\", token0.getTokenText());\n \n Token token1 = xPathLexer0.identifierOrOperatorName();\n assertEquals(15, token1.getTokenType());\n assertEquals(\"\", token1.getTokenText());\n }", "public interface ExpressionNode\n{\n /** Node id for matrix nodes (remain constant) */\n public static final int MATRIX_NODE = 1;\n /** Node id for addition nodes */\n public static final int ADDITION_NODE = 2;\n /** Node id for multiplication nodes */\n public static final int MULTIPLICATION_NODE = 3;\n\n /**\n * Returns the type of the node.ExpressionNode\n *\n * Each class derived from ExpressionNode representing a specific\n * role in the expression should return the type according to that\n * role.\n * \n * @return type of the node\n */\n public int getType();\n \n /**\n * Calculates and returns the value of the sub-expression represented by\n * the node.\n * \n * @return value of expression\n */\n public Matrix getValue();\n \n /**\n * Method needed for the visitor design pattern\n * \n * @param visitor\n * the visitor\n */\n public void accept(ExpressionNodeVisitor visitor);\n\n}", "@Test(timeout = 4000)\n public void test135() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"d>%NV0\");\n Token token0 = xPathLexer0.leftParen();\n assertEquals(\"d\", token0.getTokenText());\n assertEquals(1, token0.getTokenType());\n \n Token token1 = xPathLexer0.nextToken();\n assertEquals(\">\", token1.getTokenText());\n assertEquals(9, token1.getTokenType());\n \n Token token2 = xPathLexer0.identifierOrOperatorName();\n assertEquals(15, token2.getTokenType());\n assertEquals(\"\", token2.getTokenText());\n }", "@Override\r\n\tpublic void visit(BinaryExpression binaryExpression) {\n\r\n\t}", "public Snippet visit(NonArrayType n, Snippet argu) {\n\t Snippet _ret=null;\n\t \n\t _ret =n.nodeChoice.accept(this, argu); \n\t\t\t_ret.expType.typeName = _ret.returnTemp;\n\t return _ret;\n\t }", "SigLitNode SigLitNode(Token t, OpNode op, PayElemList pay);", "public abstract XPathExpression getExpression();", "@Override\n public void visitSelect(JCTree.JCFieldAccess jcFieldAccess) {\n Symbol symbol = jcFieldAccess.sym;\n\n if (symbol instanceof VarSymbol\n && symbol.getEnclosingElement() != null // The R.resourceType class\n && symbol.getEnclosingElement().getEnclosingElement() != null // The R class\n && symbol.getEnclosingElement().getEnclosingElement().enclClass() != null) {\n\n ResourceValue result = parseResourceSymbol((VariableElement) symbol);\n if (result != null) {\n results.add(result);\n }\n }\n }", "@Override\n\tpublic Object visit(ASTGeometric node, Object data)\n\t{\n\t\treturn visitOperatorNode(node, data);\n\t}", "ExpOperand createExpOperand();", "public String visit(AndExpression n, Object argu) \n\t{\n\t\tString _ret=null;\n\t String e0 = n.f0.accept(this, argu);\n\t String e1 = n.f2.accept(this, argu);\n\t \n\t if (e0.equals(\"boolean\") && e1.equals(\"boolean\"))\n\t {\n\t \t_ret = \"boolean\";\n\t }\n\t return _ret;\n\t}", "public LiteralExpression (String str){\n _value = str;\n }", "private final TypeSAT GetTypeSAT(String expression, String leftExpression, String rightExpression) {\r\n // remove extra brackets\r\n expression = this.RemoveExtraBrackets(expression);\r\n // look for binary implies\r\n if (expression.contains(\">\")) {\r\n if (this.IsBinaryOp(expression, \">\", leftExpression, rightExpression)) {\r\n return TypeSAT.Implies;\r\n }\r\n \r\n }\r\n \r\n // look for binary and\r\n if (expression.contains(\"&\")) {\r\n if (this.IsBinaryOp(expression, \"&\", leftExpression, rightExpression)) {\r\n return TypeSAT.And;\r\n }\r\n \r\n }\r\n \r\n // look for binary or\r\n if (expression.contains(\"|\")) {\r\n if (this.IsBinaryOp(expression, \"|\", leftExpression, rightExpression)) {\r\n return TypeSAT.Or;\r\n }\r\n \r\n }\r\n \r\n // look for binary AU\r\n if (expression.startsWith(\"A(\")) {\r\n String strippedExpression = expression.substring(2, (expression.length() - 3));\r\n if (this.IsBinaryOp(strippedExpression, \"U\", leftExpression, rightExpression)) {\r\n return TypeSAT.AU;\r\n }\r\n \r\n }\r\n \r\n // look for binary EU\r\n if (expression.startsWith(\"E(\")) {\r\n String strippedExpression = expression.substring(2, (expression.length() - 3));\r\n if (this.IsBinaryOp(strippedExpression, \"U\", leftExpression, rightExpression)) {\r\n return TypeSAT.EU;\r\n }\r\n \r\n }\r\n \r\n // look for unary T, F, !, AX, EX, AG, EG, AF, EF, atomic\r\n if (expression.equals(\"T\")) {\r\n this.leftExpression = expression;\r\n return TypeSAT.AllTrue;\r\n }\r\n \r\n if (expression.equals(\"F\")) {\r\n this.leftExpression = expression;\r\n return TypeSAT.AllFalse;\r\n }\r\n \r\n if (this.IsAtomic(expression)) {\r\n this.leftExpression = expression;\r\n return TypeSAT.Atomic;\r\n }\r\n \r\n if (expression.startsWith(\"!\")) {\r\n this.leftExpression = expression.substring(1,expression.length());\r\n return TypeSAT.Not;\r\n }\r\n \r\n if (expression.startsWith(\"AX\")) {\r\n this.leftExpression = expression.substring(2,expression.length());\r\n return TypeSAT.AX;\r\n }\r\n \r\n if (expression.startsWith(\"EX\")) {\r\n this.leftExpression = expression.substring(2,expression.length());\r\n System.out.println(\"exp\"+leftExpression);\r\n return TypeSAT.EX;\r\n }\r\n \r\n if (expression.startsWith(\"EF\")) {\r\n this.leftExpression = expression.substring(2,expression.length());\r\n return TypeSAT.EF;\r\n }\r\n \r\n if (expression.startsWith(\"EG\")) {\r\n this.leftExpression = expression.substring(2,expression.length());\r\n return TypeSAT.EG;\r\n }\r\n \r\n if (expression.startsWith(\"AF\")) {\r\n this.leftExpression = expression.substring(2,expression.length());\r\n return TypeSAT.AF;\r\n }\r\n \r\n if (expression.startsWith(\"AG\")) {\r\n this.leftExpression = expression.substring(2,expression.length());\r\n return TypeSAT.AG;\r\n }\r\n \r\n return TypeSAT.Unknown;\r\n }", "Expr expr();", "public String getKind(State finalState, String lexeme) {\r\n switch (finalState) {\r\n case ST_ZERO:\r\n kind=\"IntegerLiteral\";\r\n break;\r\n case ST_NUM:\r\n kind=\"IntegerLiteral\";\r\n //check range for the special case\r\n if(_isLastTokenMinus){\r\n try {\r\n long val=Long.parseLong(lexeme);\r\n if(val <= 2147483648l){\r\n kind=\"IntegerLiteral\";\r\n } else {\r\n kind=\"ERROR\";\r\n System.err.println(\"Number out of range.\");\r\n } // else\r\n } catch (NumberFormatException e){\r\n kind=\"ERROR\";\r\n } // catch\r\n } else {\r\n try {\r\n Integer.parseInt(lexeme);\r\n } catch (NumberFormatException e){ \r\n // out of range\r\n kind=\"ERROR\";\r\n System.err.println(\"Number out of range.\");\r\n } // catch\r\n } // else\r\n break;\r\n case ST_BOF:\r\n kind=\"BOF\";\r\n break;\r\n case ST_EOF:\r\n kind=\"EOF\";\r\n break;\r\n case ST_COMMA:\r\n kind=\"COMMA\";\r\n break;\r\n case ST_SEMICOLON:\r\n kind=\"SEMICOLON\";\r\n break;\r\n case ST_COLON:\r\n kind=\"COLON\";\r\n break;\r\n case ST_LPAREN:\r\n kind=\"LPAREN\";\r\n break;\r\n case ST_RPAREN:\r\n kind=\"RPAREN\";\r\n break;\r\n case ST_LBRACK:\r\n kind=\"LBRACK\";\r\n break;\r\n case ST_RBRACK:\r\n kind=\"RBRACK\";\r\n break;\r\n case ST_LBRACE:\r\n kind=\"LBRACE\";\r\n break;\r\n case ST_RBRACE:\r\n kind=\"RBRACE\";\r\n break;\r\n case ST_DOT:\r\n kind=\"DOT\";\r\n break;\r\n case ST_MINUS:\r\n kind=\"MINUS\";\r\n break;\r\n case ST_PLUS:\r\n kind=\"PLUS\";\r\n break;\r\n case ST_STAR:\r\n kind=\"STAR\";\r\n break;\r\n case ST_PCT:\r\n kind=\"PCT\";\r\n break;\r\n case ST_SLASH:\r\n kind=\"SLASH\";\r\n break;\r\n case ST_EXCLAM:\r\n kind=\"EXCLAM\";\r\n break;\r\n case ST_NE:\r\n kind=\"NE\";\r\n break;\r\n case ST_BECOMES:\r\n kind=\"BECOMES\";\r\n break;\r\n case ST_EQUALS:\r\n kind=\"EQUALS\";\r\n break;\r\n case ST_LT:\r\n kind=\"LT\";\r\n break;\r\n case ST_LE:\r\n kind=\"LE\";\r\n break;\r\n case ST_GT:\r\n kind=\"GT\";\r\n break;\r\n case ST_GE:\r\n kind=\"GE\";\r\n break;\r\n case ST_AMP:\r\n kind=\"AMP\";\r\n break;\r\n case ST_AMPAMP:\r\n kind=\"AMPAMP\";\r\n break;\r\n case ST_OR:\r\n kind=\"OR\";\r\n break;\r\n case ST_OROR:\r\n kind=\"OROR\";\r\n break;\r\n case ST_CHARLIT:\r\n kind=\"CharacterLiteral\";\r\n break;\r\n case ST_STRINGLIT:\r\n kind=\"StringLiteral\";\r\n break;\r\n default:\r\n break;\r\n } // switch\r\n if(finalState == State.ST_ID) {\r\n if (lexeme.equals(\"extends\")){\r\n kind=\"EXTENDS\";\r\n } else if (lexeme.equals(\"implements\")){\r\n kind=\"IMPLEMENTS\";\r\n } else if (lexeme.equals(\"static\")){\r\n kind=\"STATIC\";\r\n } else if(lexeme.equals(\"import\")){\r\n kind=\"IMPORT\";\r\n } else if(lexeme.equals(\"package\")){\r\n kind=\"PACKAGE\";\r\n } else if(lexeme.equals(\"public\")){\r\n kind=\"PUBLIC\";\r\n } else if(lexeme.equals(\"interface\")){\r\n kind=\"INTERFACE\";\r\n } else if(lexeme.equals(\"protected\")){\r\n kind=\"PROTECTED\";\r\n } else if(lexeme.equals(\"abstract\")){\r\n kind=\"ABSTRACT\";\r\n } else if(lexeme.equals(\"native\")){\r\n kind=\"NATIVE\";\r\n } else if(lexeme.equals(\"while\")){\r\n kind=\"WHILE\";\r\n } else if(lexeme.equals(\"for\")){\r\n kind=\"FOR\";\r\n } else if(lexeme.equals(\"boolean\")){\r\n kind=\"BOOLEAN\";\r\n } else if(lexeme.equals(\"int\")){\r\n kind=\"INT\";\r\n } else if(lexeme.equals(\"char\")){\r\n kind=\"CHAR\";\r\n } else if(lexeme.equals(\"byte\")){\r\n kind=\"BYTE\";\r\n } else if(lexeme.equals(\"short\")){\r\n kind=\"SHORT\";\r\n } else if(lexeme.equals(\"null\")){\r\n kind=\"NULL\";\r\n } else if(lexeme.equals(\"this\")){\r\n kind=\"THIS\";\r\n } else if(lexeme.equals(\"true\") || lexeme.equals(\"false\")){\r\n kind=\"BooleanLiteral\";\r\n } else if(lexeme.equals(\"instanceof\")){\r\n kind=\"INSTANCEOF\";\r\n } else if(lexeme.equals(\"class\")){\r\n kind=\"CLASS\";\r\n } else if(lexeme.equals(\"if\")){\r\n kind=\"IF\";\r\n } else if(lexeme.equals(\"else\")){\r\n kind=\"ELSE\";\r\n } else if(lexeme.equals(\"final\")){\r\n kind=\"FINAL\";\r\n } else if(lexeme.equals(\"new\")){\r\n kind=\"NEW\";\r\n } else if(lexeme.equals(\"return\")){\r\n kind=\"RETURN\";\r\n } else if(lexeme.equals(\"void\")){\r\n kind=\"VOID\";\r\n } else if(!Arrays.asList(_RESERVED_KEYWORDS).contains(lexeme)){\r\n kind=\"ID\";\r\n } // else\r\n } // if\r\n if(kind.equals(\"ERROR\")){\r\n printErrToken();\r\n } // if\r\n\r\n setLastTokenMinus(kind.equals(\"MINUS\"));\r\n return kind;\r\n }", "@Override \n\tpublic void caseAOpExpr(AOpExpr node){\n\t\tExpressionType expType = (ExpressionType) nodeTypes.get(node.getOp()); \n\t\tswitch (expType){\n\t\t\tcase AND :\n\t\t\tcreateShortCircuitAnd(node);\n\t\t\t\tbreak;\n\t\t\tcase OR :\n\t\t\tcreateShortCircuiteOR(node);\n\t\t\t\tbreak;\n\t\t\tcase ADD :\n\t\t\t\tType left = nodeTypes.get(node.getLeft()); \n\t\t\t\tif (left == Type.STRING_TYPE){\n\t\t\t\t\tthis.createStringConcat(node);\n\t\t\t\t\tbreak; \n\t\t\t\t}\n\t\t\tdefault : \n\t\t\t\tsuper.caseAOpExpr(node); \n\t\t}\n\t}" ]
[ "0.6157492", "0.61251247", "0.6037306", "0.6019784", "0.5884004", "0.5827076", "0.5815682", "0.5766316", "0.5711225", "0.5600473", "0.5528702", "0.552458", "0.5448065", "0.54472476", "0.54340845", "0.541214", "0.53763485", "0.535506", "0.52882695", "0.5278321", "0.52590024", "0.5210942", "0.5210152", "0.5195296", "0.51854944", "0.5183369", "0.5183369", "0.5163503", "0.5154172", "0.5153963", "0.5132713", "0.51291883", "0.5083976", "0.5078444", "0.507318", "0.5068572", "0.5065599", "0.5059323", "0.50540245", "0.50475466", "0.50450355", "0.50417435", "0.5037978", "0.5030573", "0.5023191", "0.50178903", "0.50117844", "0.50078857", "0.50076234", "0.49955553", "0.49943885", "0.49853063", "0.4984933", "0.4983974", "0.49790776", "0.49731585", "0.49665368", "0.49630675", "0.49593586", "0.49588084", "0.49566117", "0.4954746", "0.4951815", "0.49490827", "0.49485907", "0.4931655", "0.49284884", "0.49209225", "0.49201667", "0.49201667", "0.49101996", "0.49032173", "0.49004376", "0.49002925", "0.48989278", "0.48958474", "0.48940703", "0.48929924", "0.4892169", "0.48903552", "0.48839554", "0.48816362", "0.48801848", "0.48734754", "0.4872331", "0.4867334", "0.48671848", "0.48623896", "0.48619968", "0.4860417", "0.4845998", "0.48437807", "0.4841225", "0.48345459", "0.4825543", "0.48241016", "0.4822049", "0.48184544", "0.48088634", "0.47962344" ]
0.58171093
6
nodeToken > "(" expression > Expression() nodeToken1 > ")"
@Override public R visit(BrackettedExpression n, A argu) { R _ret = null; n.nodeToken.accept(this, argu); n.expression.accept(this, argu); n.nodeToken1.accept(this, argu); return _ret; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public TreeNode parse() {\n TreeNode first = ArithmeticSubexpression.getAdditive(environment).parse();\n if (first == null) return null;\n\n // Try to parse something starting with an operator.\n List<Wrapper> wrappers = RightSideSubexpression.createKleene(\n environment, ArithmeticSubexpression.getAdditive(environment),\n BemTeVicTokenType.EQUAL, BemTeVicTokenType.DIFFERENT,\n BemTeVicTokenType.GREATER_OR_EQUALS, BemTeVicTokenType.GREATER_THAN,\n BemTeVicTokenType.LESS_OR_EQUALS, BemTeVicTokenType.LESS_THAN\n ).parse();\n\n // If did not found anything starting with an operator, return the first node.\n if (wrappers.isEmpty()) return first;\n\n // Constructs a binary operator node containing the expression.\n Iterator<Wrapper> it = wrappers.iterator();\n Wrapper secondWrapper = it.next();\n BinaryOperatorNode second = new BinaryOperatorNode(secondWrapper.getTokenType(), first, secondWrapper.getOutput());\n\n if (wrappers.size() == 1) return second;\n\n // If we reach this far, the expression has more than one operator. i.e. (x = y = z),\n // which is a shortcut for (x = y AND y = z).\n\n // Firstly, determine if the operators are compatible.\n RelationalOperatorSide side = RelationalOperatorSide.NONE;\n for (Wrapper w : wrappers) {\n side = side.next(w.getTokenType());\n }\n if (side.isMixed()) {\n environment.emitError(\"XXX\");\n }\n\n // Creates the other nodes. In the expression (a = b = c = d), The \"a = b\"\n // is in the \"second\" node. Creates \"b = c\", and \"c = d\" nodes.\n List<BinaryOperatorNode> nodes = new LinkedList<BinaryOperatorNode>();\n nodes.add(second);\n\n TreeNode prev = secondWrapper.getOutput();\n while (it.hasNext()) {\n Wrapper w = it.next();\n BinaryOperatorNode current = new BinaryOperatorNode(w.getTokenType(), prev, w.getOutput());\n prev = w.getOutput();\n nodes.add(current);\n }\n\n // Combines all of the nodes in a single one using AND.\n return new VariableArityOperatorNode(BemTeVicTokenType.AND, nodes);\n }", "@Test(timeout = 4000)\n public void test075() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\") (\");\n Token token0 = xPathLexer0.equals();\n xPathLexer0.setPreviousToken(token0);\n assertEquals(21, token0.getTokenType());\n assertEquals(\")\", token0.getTokenText());\n \n Token token1 = xPathLexer0.identifierOrOperatorName();\n assertEquals(15, token1.getTokenType());\n assertEquals(\"\", token1.getTokenText());\n }", "@Override\n\tpublic void visit(Parenthesis arg0) {\n\t\t\n\t}", "@Override\n\tpublic void visit(Parenthesis arg0) {\n\n\t}", "Expr expr();", "public static void parse()\r\n {\r\n int initial;\r\n initial=expression();\r\n stateList.get(0).setNext1(initial);\r\n stateList.get(0).setNext2(initial);\r\n if(index<=expression.length()-1)\r\n {\r\n error();\r\n }\r\n else\r\n {\r\n state st=new state(state,\"END\",-1,-1);\r\n stateList.add(st);\r\n }\r\n }", "protected Evaluable parseExpression() throws ParsingException {\n Evaluable sub = parseSubExpression();\n\n while (_token != null &&\n _token.type == TokenType.Operator &&\n \">=<==!=\".indexOf(_token.text) >= 0) {\n\n String op = _token.text;\n\n next(true);\n\n Evaluable sub2 = parseSubExpression();\n\n sub = new OperatorCallExpr(new Evaluable[] { sub, sub2 }, op);\n }\n\n return sub;\n }", "@Test\n\tpublic void expression1() throws SyntaxException, LexicalException {\n\t\tString input = \"2\";\n\t\tshow(input);\n\t\tScanner scanner = new Scanner(input).scan();\n\t\tshow(scanner);\n\t\tSimpleParser parser = new SimpleParser(scanner);\n\t\tparser.expression(); // Call expression directly.\n\t}", "@Test(timeout = 4000)\n public void test153() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\") (\");\n Token token0 = xPathLexer0.nextToken();\n assertEquals(\")\", token0.getTokenText());\n assertEquals(2, token0.getTokenType());\n }", "@Test(timeout = 4000)\n public void test074() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\") (\");\n Token token0 = xPathLexer0.notEquals();\n xPathLexer0.setPreviousToken(token0);\n assertEquals(\") \", token0.getTokenText());\n assertEquals(22, token0.getTokenType());\n \n Token token1 = xPathLexer0.identifierOrOperatorName();\n assertEquals(15, token1.getTokenType());\n assertEquals(\"\", token1.getTokenText());\n }", "@Test(timeout = 4000)\n public void test079() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\") (\");\n Token token0 = xPathLexer0.at();\n xPathLexer0.setPreviousToken(token0);\n assertEquals(\")\", token0.getTokenText());\n assertEquals(16, token0.getTokenType());\n \n Token token1 = xPathLexer0.identifierOrOperatorName();\n assertEquals(15, token1.getTokenType());\n assertEquals(\"\", token1.getTokenText());\n }", "@Test(timeout = 4000)\n public void test146() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"(2><\");\n Token token0 = xPathLexer0.leftParen();\n assertEquals(\"(\", token0.getTokenText());\n assertEquals(1, token0.getTokenType());\n \n Token token1 = xPathLexer0.nextToken();\n assertEquals(\"2\", token1.getTokenText());\n assertEquals(30, token1.getTokenType());\n }", "int parseExpression() {\r\n\t\t\t\tint x = parseTerm();\r\n\t\t\t\tfor (;;) {\r\n\t\t\t\t\tif (eat('+'))\r\n\t\t\t\t\t\tx += parseTerm(); // addition\r\n\t\t\t\t\telse if (eat('-'))\r\n\t\t\t\t\t\tx -= parseTerm(); // subtraction\r\n\t\t\t\t\telse\r\n\t\t\t\t\t\treturn x;\r\n\t\t\t\t}\r\n\t\t\t}", "ParenthesisExpr createParenthesisExpr();", "@Test(timeout = 4000)\n public void test135() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"d>%NV0\");\n Token token0 = xPathLexer0.leftParen();\n assertEquals(\"d\", token0.getTokenText());\n assertEquals(1, token0.getTokenType());\n \n Token token1 = xPathLexer0.nextToken();\n assertEquals(\">\", token1.getTokenText());\n assertEquals(9, token1.getTokenType());\n \n Token token2 = xPathLexer0.identifierOrOperatorName();\n assertEquals(15, token2.getTokenType());\n assertEquals(\"\", token2.getTokenText());\n }", "@Test(timeout = 4000)\n public void test084() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"(xA>7o;9b=;e*Y(m\");\n Token token0 = xPathLexer0.rightParen();\n xPathLexer0.setPreviousToken(token0);\n Token token1 = xPathLexer0.identifierOrOperatorName();\n assertNull(token1);\n }", "@Test(timeout = 4000)\n public void test068() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"Y44o{5$K\");\n xPathLexer0.leftParen();\n xPathLexer0.nextToken();\n Token token0 = xPathLexer0.operatorName();\n assertNull(token0);\n }", "public Node expression()\r\n\t{\r\n\t\tNode lhs = term();\r\n\t\tif(lhs!=null)\r\n\t\t{\r\n\t\t\tint index = lexer.getPosition();\r\n\t\t\tLexer.Token token = lexer.getToken();\r\n\t\t\twhile(token == Lexer.Token.PLUS\r\n\t\t\t\t||token == Lexer.Token.MINUS)\r\n\t\t\t{\r\n\t\t\t\tNode rhs = term(); \r\n\t\t\t\tif(rhs!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tif(token == Lexer.Token.PLUS)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tlhs = new Add(lhs,rhs);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(token == Lexer.Token.MINUS)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tlhs = new Sub(lhs,rhs);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tindex = lexer.getPosition();\r\n\t\t\t\t\ttoken = lexer.getToken();\r\n\t\t\t\t}\r\n\t\t\t\telse break;\r\n\t\t\t}\r\n\t\t\tlexer.setPosition(index);\r\n\t\t}\r\n\t\treturn lhs;\r\n\t}", "ExpOperand createExpOperand();", "@Test(timeout = 4000)\n public void test076() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"5!\");\n Token token0 = xPathLexer0.star();\n xPathLexer0.setPreviousToken(token0);\n assertEquals(20, token0.getTokenType());\n assertEquals(\"5\", token0.getTokenText());\n \n Token token1 = xPathLexer0.identifierOrOperatorName();\n assertEquals(15, token1.getTokenType());\n assertEquals(\"\", token1.getTokenText());\n }", "@Override\n public Expression asExpression(TokenValue<?> token, Deque<Value<Expression>> next) {\n Additive op = token.getValue(); // + | -\n // + is always followed by an argument\n Expression arg = next.pollFirst().getTarget(); // b argument\n Term<Additive> term = new Term<>(op, arg);\n return term;\n }", "private InfixExpression getNode()\n{\n return (InfixExpression) ast_node;\n}", "public UnaryExpNode() {\n }", "@Override public JannotTreeJCExpression getLeftOperand()\n{\n return createTree(getNode().getLeftOperand()); \n}", "@Test(timeout = 4000)\n public void test116() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"LW>$p??\");\n Token token0 = xPathLexer0.leftParen();\n assertEquals(\"L\", token0.getTokenText());\n assertEquals(1, token0.getTokenType());\n \n Token token1 = xPathLexer0.nextToken();\n assertEquals(\"W\", token1.getTokenText());\n assertEquals(15, token1.getTokenType());\n }", "void token(TokenNode node);", "@Test(timeout = 4000)\n public void test001() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"hN!SM~8ux(wB\");\n xPathLexer0.dollar();\n xPathLexer0.not();\n xPathLexer0.nextToken();\n xPathLexer0.leftParen();\n xPathLexer0.whitespace();\n xPathLexer0.plus();\n Token token0 = xPathLexer0.or();\n assertNull(token0);\n }", "@Test(timeout = 4000)\n public void test157() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"($mYG)Udli\");\n Token token0 = xPathLexer0.leftParen();\n assertEquals(1, token0.getTokenType());\n assertEquals(\"(\", token0.getTokenText());\n \n Token token1 = xPathLexer0.nextToken();\n assertEquals(\"$\", token1.getTokenText());\n assertEquals(26, token1.getTokenType());\n }", "@Test(timeout = 4000)\n public void test161() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\") T/\");\n Token token0 = xPathLexer0.leftParen();\n assertEquals(1, token0.getTokenType());\n assertEquals(\")\", token0.getTokenText());\n \n Token token1 = xPathLexer0.nextToken();\n assertEquals(15, token1.getTokenType());\n assertEquals(\"T\", token1.getTokenText());\n }", "@Test(timeout = 4000)\n public void test105() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\";b_z(sF5\");\n Token token0 = xPathLexer0.leftParen();\n assertEquals(\";\", token0.getTokenText());\n assertEquals(1, token0.getTokenType());\n \n Token token1 = xPathLexer0.nextToken();\n assertEquals(\"b_z\", token1.getTokenText());\n assertEquals(15, token1.getTokenType());\n }", "@Test(timeout = 4000)\n public void test132() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"3APV;W&5C\\\"!eSgJk*X\");\n Token token0 = xPathLexer0.leftParen();\n assertEquals(1, token0.getTokenType());\n assertEquals(\"3\", token0.getTokenText());\n \n Token token1 = xPathLexer0.nextToken();\n assertEquals(\"APV\", token1.getTokenText());\n assertEquals(15, token1.getTokenType());\n }", "@Test(timeout = 4000)\n public void test061() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\") (\");\n Token token0 = xPathLexer0.whitespace();\n assertEquals(\"\", token0.getTokenText());\n assertEquals((-2), token0.getTokenType());\n }", "@Test(timeout = 4000)\n public void test159() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"g\\\"K@1\");\n Token token0 = xPathLexer0.leftParen();\n assertEquals(\"g\", token0.getTokenText());\n assertEquals(1, token0.getTokenType());\n \n Token token1 = xPathLexer0.nextToken();\n assertEquals((-1), token1.getTokenType());\n }", "@Test(timeout = 4000)\n public void test088() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"<y\");\n Token token0 = xPathLexer0.leftParen();\n assertEquals(\"<\", token0.getTokenText());\n assertEquals(1, token0.getTokenType());\n \n Token token1 = xPathLexer0.nextToken();\n assertEquals(\"y\", token1.getTokenText());\n assertEquals(15, token1.getTokenType());\n }", "Expression createExpression();", "void visit(PlusExpression expression);", "Expression() { }", "@Override\r\n\tpublic boolean visit(VariableDeclarationFragment node) {\r\n//\t\toperator(node);\r\n\t\treturn true;\r\n\t}", "private Object parseExpr() throws IOException, FSException{\n\n ETreeNode curNode=null;\n boolean end=false;\n Object val;\n boolean negate=false; //flag for unary minus\n boolean not=false;//flag for unary not.\n boolean prevOp=true;//flag - true if previous value was an operator\n\n while (!end){\n\n switch (tok.ttype) {\n\n\n //the various possible 'values'\n case LexAnn.TT_INTEGER:\n case LexAnn.TT_DOUBLE:\n case LexAnn.TT_STRING:\n case LexAnn.TT_WORD:\n case LexAnn.TT_FUNC:\n case LexAnn.TT_NULL:\n case LexAnn.TT_ARRAY:{\n\n if (!prevOp){\n parseError(\"Expected Operator\");\n } else {\n\n val=null;\n ETreeNode node=new ETreeNode();\n node.type=ETreeNode.E_VAL;\n\n switch (tok.ttype){\n //numbers - just get them\n case LexAnn.TT_INTEGER:{\n val=tok.value;\n break;\n }\n case LexAnn.TT_DOUBLE:{\n val=tok.value;\n break;\n }\n //functions - evaluate them\n case LexAnn.TT_FUNC:{\n String name=(String)tok.value;\n getNextToken();\n val=parseCallFunc(name);\n break;\n }\n //arrays - evaluate them\n case LexAnn.TT_ARRAY:{\n String name=(String)tok.value;\n getNextToken(); //should be a '['\n getNextToken(); //should be the index\n Object index=parseExpr();\n try {\n val=host.getVarEntry(name,index);\n } catch (Exception e) {\n parseError(e.getMessage());\n }\n break;\n }\n //variables - resolve them\n case LexAnn.TT_WORD:{\n if (hasVar((String)tok.value)) {\n val=getVar((String)tok.value);\n } else {\n try {\n val=host.getVarEntry((String)tok.value,null);\n } catch (Exception e) {\n parseError(e.getMessage());\n }\n }\n break;\n }\n //strings - just get again\n case LexAnn.TT_STRING:{\n val=tok.value;\n break;\n }\n //null\n case LexAnn.TT_NULL:{\n val=new FSObject(null);\n break;\n }\n }\n\n //unary not\n if (not){\n if (val instanceof Integer){\n if (((Integer)val).intValue()==0){\n val=FS_TRUE;\n } else {\n val=FS_FALSE;\n }\n not=false;\n } else if (val instanceof FSObject && ((FSObject)val).getObject() instanceof Boolean) {\n if (((FSObject)val).getObject().equals(Boolean.FALSE)) {\n val=FS_TRUE;\n } else {\n val=FS_FALSE;\n }\n } else if (val instanceof FSObject && ((FSObject)val).getObject() instanceof Integer) {\n if (((Integer)((FSObject)val).getObject()).intValue()==0) {\n val=FS_TRUE;\n } else {\n val=FS_FALSE;\n }\n } else {\n String msg=val.getClass().getName();\n if (val instanceof FSObject) msg=\"FSObject with \"+((FSObject)val).getNullClass().getName();\n parseError(\"Type mismatch for ! \"+msg);\n }\n }\n\n //unary minus\n if (negate) {\n if (val instanceof Integer){\n val=new Integer(-((Integer)val).intValue());\n } else if (val instanceof Double){\n val=new Double(-((Double)val).doubleValue());\n } else {\n parseError(\"Type mistmatch for unary -\");\n }\n }\n\n node.value=val;\n\n if (curNode!=null){\n if (curNode.left==null){\n curNode.left=node;\n node.parent=curNode;\n curNode=node;\n\n } else if (curNode.right==null){\n curNode.right=node;\n node.parent=curNode;\n curNode=node;\n\n }\n } else {\n curNode=node;\n }\n\n prevOp=false;\n }\n break;\n }\n /*operators - have to be more carefull with these.\n We build an expression tree - inserting the nodes at the right\n points to get a reasonable approximation to correct operator\n precidence*/\n case LexAnn.TT_LEQ:\n case LexAnn.TT_LNEQ:\n case LexAnn.TT_MULT:\n case LexAnn.TT_DIV:\n case LexAnn.TT_MOD:\n case LexAnn.TT_PLUS:\n case LexAnn.TT_MINUS:\n case LexAnn.TT_LGR:\n case LexAnn.TT_LGRE:\n case LexAnn.TT_LLSE:\n case LexAnn.TT_LLS:\n case LexAnn.TT_NOT:\n case LexAnn.TT_LAND:\n case LexAnn.TT_LOR: {\n if (prevOp){\n if (tok.ttype==LexAnn.TT_MINUS){\n negate=true;\n } else if (tok.ttype==LexAnn.TT_NOT){\n not=true;\n } else {\n parseError(\"Expected Expression\");\n }\n } else {\n\n ETreeNode node=new ETreeNode();\n\n node.type=ETreeNode.E_OP;\n node.value=new Integer(tok.ttype);\n\n if (curNode.parent!=null){\n\n int curPrio=getPrio(tok.ttype);\n int parPrio=\n getPrio(((Integer)curNode.parent.value).intValue());\n\n if (curPrio<=parPrio){\n //this nodes parent is the current nodes grandparent\n node.parent=curNode.parent.parent;\n //our nodes left leg is now linked into the current nodes\n //parent\n node.left=curNode.parent;\n //hook into grandparent\n if (curNode.parent.parent!=null){\n curNode.parent.parent.right=node;\n }\n\n //the current nodes parent is now us (because of above)\n curNode.parent=node;\n //set the current node.\n curNode=node;\n } else {\n //current node's parent's right is now us.\n curNode.parent.right=node;\n //our nodes left is the current node.\n node.left=curNode;\n //our nodes parent is the current node's parent.\n node.parent=curNode.parent;\n //curent nodes parent is now us.\n curNode.parent=node;\n //set the current node.\n curNode=node;\n }\n } else {\n //our node's left is the current node\n node.left=curNode;\n //current node's parent is us now\n //we don't have to set our parent, as it is null.\n curNode.parent=node;\n //set current node\n curNode=node;\n }\n prevOp=true;\n }\n break;\n }\n case '(':\n //start of an bracketed expression, recursively call ourself\n //to get a value\n {\n getNextToken();\n val=parseExpr();\n\n if (negate) {\n if (val instanceof Integer){\n val=new Integer(-((Integer)val).intValue());\n } else if (val instanceof Double){\n val=new Double(-((Double)val).doubleValue());\n } else {\n parseError(\"Type mistmatch for unary -\");\n }\n }\n\n ETreeNode node=new ETreeNode();\n node.value=val;\n node.type=ETreeNode.E_VAL;\n\n if (curNode!=null){\n if (curNode.left==null){\n curNode.left=node;\n node.parent=curNode;\n curNode=node;\n\n } else if (curNode.right==null){\n curNode.right=node;\n node.parent=curNode;\n curNode=node;\n\n }\n } else {\n curNode=node;\n }\n prevOp=false;\n break;\n }\n\n default: {\n end=true;\n }\n\n }\n if (!end){\n tok.nextToken();\n }\n }\n\n //find the top of the tree we just built.\n if (curNode==null) parseError(\"Missing Expression\");\n while(curNode.parent!=null){\n curNode=curNode.parent;\n }\n\n\n return evalETree(curNode);\n\n }", "@Test(timeout = 4000)\n public void test114() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\":Y[~gy\");\n Token token0 = xPathLexer0.leftParen();\n assertEquals(1, token0.getTokenType());\n assertEquals(\":\", token0.getTokenText());\n \n Token token1 = xPathLexer0.nextToken();\n assertEquals(15, token1.getTokenType());\n assertEquals(\"Y\", token1.getTokenText());\n }", "@Test\n\t\tpublic void testExpression() throws LexicalException, SyntaxException {\n\t\t\tString input = \"x + 2\";\n\t\t\tPLPParser parser = makeParser(input);\n\t\t\tExpression e = parser.expression(); //call expression here instead of parse\n\t\t\tshow(e);\t\n\t\t\tassertEquals(ExpressionBinary.class, e.getClass());\n\t\t\tExpressionBinary b = (ExpressionBinary)e;\n\t\t\tassertEquals(ExpressionIdentifier.class, b.leftExpression.getClass());//\n\t\t\tExpressionIdentifier left = (ExpressionIdentifier)b.leftExpression;\n\t\t\tassertEquals(\"x\", left.name);\n\t\t\tassertEquals(ExpressionIntegerLiteral.class, b.rightExpression.getClass());\n\t\t\tExpressionIntegerLiteral right = (ExpressionIntegerLiteral)b.rightExpression;\n\t\t\tassertEquals(2, right.value);\n\t\t\tassertEquals(OP_PLUS, b.op);\n\t\t}", "@Test\n void testExample1() {\n List<Token> input = Arrays.asList(\n new Token(Token.Type.IDENTIFIER, \"LET\", -1),\n new Token(Token.Type.IDENTIFIER, \"first\", -1),\n new Token(Token.Type.OPERATOR, \":\", -1),\n new Token(Token.Type.IDENTIFIER, \"INTEGER\", -1),\n new Token(Token.Type.OPERATOR, \"=\", -1),\n new Token(Token.Type.INTEGER, \"1\", -1),\n new Token(Token.Type.OPERATOR, \";\", -1),\n\n new Token(Token.Type.IDENTIFIER, \"WHILE\", -1),\n new Token(Token.Type.IDENTIFIER, \"first\", -1),\n new Token(Token.Type.OPERATOR, \"!=\", -1),\n new Token(Token.Type.INTEGER, \"10\", -1),\n new Token(Token.Type.IDENTIFIER, \"DO\", -1),\n\n new Token(Token.Type.IDENTIFIER, \"PRINT\", -1),\n new Token(Token.Type.OPERATOR, \"(\", -1),\n new Token(Token.Type.IDENTIFIER, \"first\", -1),\n new Token(Token.Type.OPERATOR, \")\", -1),\n new Token(Token.Type.OPERATOR, \";\", -1),\n\n new Token(Token.Type.IDENTIFIER, \"first\", -1),\n new Token(Token.Type.OPERATOR, \"=\", -1),\n new Token(Token.Type.IDENTIFIER, \"first\", -1),\n new Token(Token.Type.OPERATOR, \"+\", -1),\n new Token(Token.Type.INTEGER, \"1\", -1),\n new Token(Token.Type.OPERATOR, \";\", -1),\n\n new Token(Token.Type.IDENTIFIER, \"END\", -1)\n );\n Ast.Source expected = new Ast.Source(Arrays.asList(\n new Ast.Statement.Declaration(\"first\", \"INTEGER\",\n Optional.of(new Ast.Expression.Literal(BigInteger.valueOf(1)))),\n new Ast.Statement.While(\n new Ast.Expression.Binary(\"!=\",\n new Ast.Expression.Variable(\"first\"),\n new Ast.Expression.Literal(BigInteger.valueOf(10))\n ),\n Arrays.asList(\n new Ast.Statement.Expression(\n new Ast.Expression.Function(\"PRINT\", Arrays.asList(\n new Ast.Expression.Variable(\"first\"))\n )\n ),\n new Ast.Statement.Assignment(\"first\",\n new Ast.Expression.Binary(\"+\",\n new Ast.Expression.Variable(\"first\"),\n new Ast.Expression.Literal(BigInteger.valueOf(1))\n )\n )\n )\n )\n ));\n test(input, expected, Parser::parseSource);\n }", "private CalculatableNode nextNode() throws IOException {\n\t\tint ttype;\n\t\tttype = tokenizer.nextToken();\n\t\tif (ttype == StreamTokenizer.TT_NUMBER) {\n\t\t\treturn new NumericalNode((int) tokenizer.nval);\n\t\t}\n\t\tif (ttype >= 0) {\n\t\t\t// sign character such as +-*/()\n\t\t\tchar sign = (char) tokenizer.ttype;\n\t\t\tif (sign == '(') {\n\t\t\t\tCalculatableNode node = parseNode();\n\t\t\t\treturn node;\n\t\t\t}\n\t\t}\n\t\tthrow new IllegalFormulaException(\"数式が不正です\");\n\t}", "public Node getExpression() {\r\n return expression;\r\n }", "private double evaluarExp6() throws Excepciones{\n double resultado;\n if(token.equals(\"(\")) {\n obtieneToken();\n resultado = evaluarExp2();\n if(!token.equals(\")\")){\n obtieneError(PARENTESIS);\n }\n obtieneToken();\n }else{\n resultado = valor();\n }\n return resultado;\n}", "public void visit (Object expr) {\n\t\t\t\n\t\t\toffset += 2;\n\t\t\t\n\t\t\tif (expr instanceof VariableReferenceExpr) {\n\t\t\t\tvisit ( (VariableReferenceExpr) expr);\n\t\t\t} else if (expr instanceof UnionExpr) {\n\t\t\t\tvisit ( (UnionExpr) expr);\n\t\t\t} else if ( expr instanceof UnaryExpr) {\n\t\t\t\tvisit ( (UnaryExpr) expr);\n\t\t\t} else if ( expr instanceof TextNodeStep ) {\n\t\t\t\tvisit ( (TextNodeStep) expr) ;\n\t\t\t} else if ( expr instanceof RelationalExpr) {\n\t\t\t\tvisit ( (RelationalExpr) expr);\n\t\t\t} else if ( expr instanceof ProcessingInstructionNodeStep) {\n\t\t\t\tvisit ( (ProcessingInstructionNodeStep) expr) ;\n\t\t\t} else if ( expr instanceof Predicate) {\n\t\t\t\tvisit ( (Predicate) expr );\n\t\t\t} else if ( expr instanceof PathExpr) {\n\t\t\t\tvisit ( (PathExpr) expr) ;\n\t\t\t} else if ( expr instanceof NumberExpr) {\n\t\t\t\tvisit ( (NumberExpr) expr);\n\t\t\t} else if ( expr instanceof NameStep) {\n\t\t\t\tvisit ( (NameStep) expr);\n\t\t\t} else if ( expr instanceof MultiplicativeExpr) {\n\t\t\t\tvisit ( (MultiplicativeExpr) expr);\n\t\t\t} else if ( expr instanceof LogicalExpr) {\n\t\t\t\tvisit ( (LogicalExpr) expr);\n\t\t\t} else if ( expr instanceof LocationPath) {\n\t\t\t\tvisit ( (LocationPath) expr);\n\t\t\t} else if ( expr instanceof LiteralExpr) {\n\t\t\t\tvisit ( (LiteralExpr) expr);\n\t\t\t} else if ( expr instanceof FunctionCallExpr) {\n\t\t\t\tvisit ( (FunctionCallExpr) expr);\n\t\t\t} else if ( expr instanceof FilterExpr) {\n\t\t\t\tvisit ( (FilterExpr) expr);\n\t\t\t} else if ( expr instanceof EqualityExpr) {\n\t\t\t\tvisit ( (EqualityExpr) expr);\n\t\t\t} else if ( expr instanceof CommentNodeStep) {\n\t\t\t\tvisit ( (CommentNodeStep)expr);\n\t\t\t} else if ( expr instanceof AllNodeStep) {\n\t\t\t\tvisit ( (AllNodeStep) expr);\n\t\t\t} else if ( expr instanceof AdditiveExpr) {\n\t\t\t\tvisit ( (AdditiveExpr) expr);\n\t\t\t} else if (expr instanceof List) {\n\t\t\t\tvisitList((List)expr);\n\t\t\t} else if (expr != null) {\n\t\t\t\tout(\"Panic: Unknown expression kind {0} \",expr.getClass().getName()); //$NON-NLS-1$\n\t\t\t} else {\n\t\t\t\tout(\"null - unset\");\n\t\t\t}\n\t\t\t\n\t\t\toffset -= 2;\n\t\t}", "@Test(timeout = 4000)\n public void test101() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"qgS3&9T,:6UK}hF\");\n Token token0 = xPathLexer0.leftParen();\n assertEquals(\"q\", token0.getTokenText());\n assertEquals(1, token0.getTokenType());\n \n Token token1 = xPathLexer0.nextToken();\n assertEquals(\"gS3\", token1.getTokenText());\n assertEquals(15, token1.getTokenType());\n }", "@Test\r\n public void test1(){\r\n Exp one = new NumericLiteral(1);\r\n Exp three = new NumericLiteral(3);\r\n Exp exp = new PlusExp(one, three);\r\n Stmt decl = new DeclStmt(\"x\");\r\n Stmt assign = new Assignment(\"x\", exp);\r\n Stmt seq = new Sequence(decl, assign);\r\n assertEquals(seq.text(), \"var x; x = 1 + 3\");\r\n }", "public final Object expression() throws RecognitionException {\n Object result = null;\n\n\n CommonTree INTEGER15=null;\n CommonTree BOOL16=null;\n CommonTree IDENT17=null;\n Object op1 =null;\n\n Object op2 =null;\n\n Object call18 =null;\n\n\n try {\n // /v/filer4b/v38q001/rjnevels/Desktop/Antlr Eclipse Test/workspace3/BFlat/src/a/b/c/EvaluatorWalker.g:322:3: ( ( ^( '+' op1= expression op2= expression ) | ^( '-' op1= expression op2= expression ) | ^( '*' op1= expression op2= expression ) | ^( '/' op1= expression op2= expression ) | ^( '%' op1= expression op2= expression ) | ^( ARITH_NEGATION op1= expression ) | ^( '||' op1= expression op2= expression ) | ^( '&&' op1= expression op2= expression ) | ^( '==' op1= expression op2= expression ) | ^( '!=' op1= expression op2= expression ) | ^( '>=' op1= expression op2= expression ) | ^( '<=' op1= expression op2= expression ) | ^( '>' op1= expression op2= expression ) | ^( '<' op1= expression op2= expression ) | ^( BOOL_NEGATION op1= expression ) | INTEGER | BOOL | IDENT | call ) )\n // /v/filer4b/v38q001/rjnevels/Desktop/Antlr Eclipse Test/workspace3/BFlat/src/a/b/c/EvaluatorWalker.g:323:3: ( ^( '+' op1= expression op2= expression ) | ^( '-' op1= expression op2= expression ) | ^( '*' op1= expression op2= expression ) | ^( '/' op1= expression op2= expression ) | ^( '%' op1= expression op2= expression ) | ^( ARITH_NEGATION op1= expression ) | ^( '||' op1= expression op2= expression ) | ^( '&&' op1= expression op2= expression ) | ^( '==' op1= expression op2= expression ) | ^( '!=' op1= expression op2= expression ) | ^( '>=' op1= expression op2= expression ) | ^( '<=' op1= expression op2= expression ) | ^( '>' op1= expression op2= expression ) | ^( '<' op1= expression op2= expression ) | ^( BOOL_NEGATION op1= expression ) | INTEGER | BOOL | IDENT | call )\n {\n OperationExecuter oe = null;\n\n // /v/filer4b/v38q001/rjnevels/Desktop/Antlr Eclipse Test/workspace3/BFlat/src/a/b/c/EvaluatorWalker.g:324:3: ( ^( '+' op1= expression op2= expression ) | ^( '-' op1= expression op2= expression ) | ^( '*' op1= expression op2= expression ) | ^( '/' op1= expression op2= expression ) | ^( '%' op1= expression op2= expression ) | ^( ARITH_NEGATION op1= expression ) | ^( '||' op1= expression op2= expression ) | ^( '&&' op1= expression op2= expression ) | ^( '==' op1= expression op2= expression ) | ^( '!=' op1= expression op2= expression ) | ^( '>=' op1= expression op2= expression ) | ^( '<=' op1= expression op2= expression ) | ^( '>' op1= expression op2= expression ) | ^( '<' op1= expression op2= expression ) | ^( BOOL_NEGATION op1= expression ) | INTEGER | BOOL | IDENT | call )\n int alt14=19;\n switch ( input.LA(1) ) {\n case 32:\n {\n alt14=1;\n }\n break;\n case 34:\n {\n alt14=2;\n }\n break;\n case 31:\n {\n alt14=3;\n }\n break;\n case 35:\n {\n alt14=4;\n }\n break;\n case 29:\n {\n alt14=5;\n }\n break;\n case ARITH_NEGATION:\n {\n alt14=6;\n }\n break;\n case 50:\n {\n alt14=7;\n }\n break;\n case 30:\n {\n alt14=8;\n }\n break;\n case 39:\n {\n alt14=9;\n }\n break;\n case 28:\n {\n alt14=10;\n }\n break;\n case 41:\n {\n alt14=11;\n }\n break;\n case 37:\n {\n alt14=12;\n }\n break;\n case 40:\n {\n alt14=13;\n }\n break;\n case 36:\n {\n alt14=14;\n }\n break;\n case BOOL_NEGATION:\n {\n alt14=15;\n }\n break;\n case INTEGER:\n {\n alt14=16;\n }\n break;\n case BOOL:\n {\n alt14=17;\n }\n break;\n case IDENT:\n {\n alt14=18;\n }\n break;\n case CALL:\n {\n alt14=19;\n }\n break;\n default:\n NoViableAltException nvae =\n new NoViableAltException(\"\", 14, 0, input);\n\n throw nvae;\n\n }\n\n switch (alt14) {\n case 1 :\n // /v/filer4b/v38q001/rjnevels/Desktop/Antlr Eclipse Test/workspace3/BFlat/src/a/b/c/EvaluatorWalker.g:325:4: ^( '+' op1= expression op2= expression )\n {\n match(input,32,FOLLOW_32_in_expression564); \n\n match(input, Token.DOWN, null); \n pushFollow(FOLLOW_expression_in_expression570);\n op1=expression();\n\n state._fsp--;\n\n\n pushFollow(FOLLOW_expression_in_expression576);\n op2=expression();\n\n state._fsp--;\n\n\n match(input, Token.UP, null); \n\n\n oe = new OperationExecuter(op1,op2,\"+\"); \n\n }\n break;\n case 2 :\n // /v/filer4b/v38q001/rjnevels/Desktop/Antlr Eclipse Test/workspace3/BFlat/src/a/b/c/EvaluatorWalker.g:326:6: ^( '-' op1= expression op2= expression )\n {\n match(input,34,FOLLOW_34_in_expression590); \n\n match(input, Token.DOWN, null); \n pushFollow(FOLLOW_expression_in_expression596);\n op1=expression();\n\n state._fsp--;\n\n\n pushFollow(FOLLOW_expression_in_expression602);\n op2=expression();\n\n state._fsp--;\n\n\n match(input, Token.UP, null); \n\n\n oe = new OperationExecuter(op1,op2,\"-\"); \n\n }\n break;\n case 3 :\n // /v/filer4b/v38q001/rjnevels/Desktop/Antlr Eclipse Test/workspace3/BFlat/src/a/b/c/EvaluatorWalker.g:327:6: ^( '*' op1= expression op2= expression )\n {\n match(input,31,FOLLOW_31_in_expression614); \n\n match(input, Token.DOWN, null); \n pushFollow(FOLLOW_expression_in_expression620);\n op1=expression();\n\n state._fsp--;\n\n\n pushFollow(FOLLOW_expression_in_expression626);\n op2=expression();\n\n state._fsp--;\n\n\n match(input, Token.UP, null); \n\n\n oe = new OperationExecuter(op1,op2,\"*\"); \n\n }\n break;\n case 4 :\n // /v/filer4b/v38q001/rjnevels/Desktop/Antlr Eclipse Test/workspace3/BFlat/src/a/b/c/EvaluatorWalker.g:328:6: ^( '/' op1= expression op2= expression )\n {\n match(input,35,FOLLOW_35_in_expression638); \n\n match(input, Token.DOWN, null); \n pushFollow(FOLLOW_expression_in_expression644);\n op1=expression();\n\n state._fsp--;\n\n\n pushFollow(FOLLOW_expression_in_expression650);\n op2=expression();\n\n state._fsp--;\n\n\n match(input, Token.UP, null); \n\n\n oe = new OperationExecuter(op1,op2,\"/\"); \n\n }\n break;\n case 5 :\n // /v/filer4b/v38q001/rjnevels/Desktop/Antlr Eclipse Test/workspace3/BFlat/src/a/b/c/EvaluatorWalker.g:329:6: ^( '%' op1= expression op2= expression )\n {\n match(input,29,FOLLOW_29_in_expression662); \n\n match(input, Token.DOWN, null); \n pushFollow(FOLLOW_expression_in_expression668);\n op1=expression();\n\n state._fsp--;\n\n\n pushFollow(FOLLOW_expression_in_expression674);\n op2=expression();\n\n state._fsp--;\n\n\n match(input, Token.UP, null); \n\n\n oe = new OperationExecuter(op1,op2,\"%\"); \n\n }\n break;\n case 6 :\n // /v/filer4b/v38q001/rjnevels/Desktop/Antlr Eclipse Test/workspace3/BFlat/src/a/b/c/EvaluatorWalker.g:330:6: ^( ARITH_NEGATION op1= expression )\n {\n match(input,ARITH_NEGATION,FOLLOW_ARITH_NEGATION_in_expression686); \n\n match(input, Token.DOWN, null); \n pushFollow(FOLLOW_expression_in_expression692);\n op1=expression();\n\n state._fsp--;\n\n\n match(input, Token.UP, null); \n\n\n oe = new OperationExecuter(op1,null,\"ARITH_NEGATION\"); \n\n }\n break;\n case 7 :\n // /v/filer4b/v38q001/rjnevels/Desktop/Antlr Eclipse Test/workspace3/BFlat/src/a/b/c/EvaluatorWalker.g:331:6: ^( '||' op1= expression op2= expression )\n {\n match(input,50,FOLLOW_50_in_expression710); \n\n match(input, Token.DOWN, null); \n pushFollow(FOLLOW_expression_in_expression716);\n op1=expression();\n\n state._fsp--;\n\n\n pushFollow(FOLLOW_expression_in_expression722);\n op2=expression();\n\n state._fsp--;\n\n\n match(input, Token.UP, null); \n\n\n oe = new OperationExecuter(op1,op2,\"||\"); \n\n }\n break;\n case 8 :\n // /v/filer4b/v38q001/rjnevels/Desktop/Antlr Eclipse Test/workspace3/BFlat/src/a/b/c/EvaluatorWalker.g:332:6: ^( '&&' op1= expression op2= expression )\n {\n match(input,30,FOLLOW_30_in_expression733); \n\n match(input, Token.DOWN, null); \n pushFollow(FOLLOW_expression_in_expression739);\n op1=expression();\n\n state._fsp--;\n\n\n pushFollow(FOLLOW_expression_in_expression745);\n op2=expression();\n\n state._fsp--;\n\n\n match(input, Token.UP, null); \n\n\n oe = new OperationExecuter(op1,op2,\"&&\"); \n\n }\n break;\n case 9 :\n // /v/filer4b/v38q001/rjnevels/Desktop/Antlr Eclipse Test/workspace3/BFlat/src/a/b/c/EvaluatorWalker.g:333:6: ^( '==' op1= expression op2= expression )\n {\n match(input,39,FOLLOW_39_in_expression756); \n\n match(input, Token.DOWN, null); \n pushFollow(FOLLOW_expression_in_expression762);\n op1=expression();\n\n state._fsp--;\n\n\n pushFollow(FOLLOW_expression_in_expression768);\n op2=expression();\n\n state._fsp--;\n\n\n match(input, Token.UP, null); \n\n\n oe = new OperationExecuter(op1,op2,\"==\"); \n\n }\n break;\n case 10 :\n // /v/filer4b/v38q001/rjnevels/Desktop/Antlr Eclipse Test/workspace3/BFlat/src/a/b/c/EvaluatorWalker.g:334:6: ^( '!=' op1= expression op2= expression )\n {\n match(input,28,FOLLOW_28_in_expression779); \n\n match(input, Token.DOWN, null); \n pushFollow(FOLLOW_expression_in_expression785);\n op1=expression();\n\n state._fsp--;\n\n\n pushFollow(FOLLOW_expression_in_expression791);\n op2=expression();\n\n state._fsp--;\n\n\n match(input, Token.UP, null); \n\n\n oe = new OperationExecuter(op1,op2,\"!=\"); \n\n }\n break;\n case 11 :\n // /v/filer4b/v38q001/rjnevels/Desktop/Antlr Eclipse Test/workspace3/BFlat/src/a/b/c/EvaluatorWalker.g:335:6: ^( '>=' op1= expression op2= expression )\n {\n match(input,41,FOLLOW_41_in_expression802); \n\n match(input, Token.DOWN, null); \n pushFollow(FOLLOW_expression_in_expression808);\n op1=expression();\n\n state._fsp--;\n\n\n pushFollow(FOLLOW_expression_in_expression814);\n op2=expression();\n\n state._fsp--;\n\n\n match(input, Token.UP, null); \n\n\n oe = new OperationExecuter(op1,op2,\">=\"); \n\n }\n break;\n case 12 :\n // /v/filer4b/v38q001/rjnevels/Desktop/Antlr Eclipse Test/workspace3/BFlat/src/a/b/c/EvaluatorWalker.g:336:6: ^( '<=' op1= expression op2= expression )\n {\n match(input,37,FOLLOW_37_in_expression825); \n\n match(input, Token.DOWN, null); \n pushFollow(FOLLOW_expression_in_expression831);\n op1=expression();\n\n state._fsp--;\n\n\n pushFollow(FOLLOW_expression_in_expression837);\n op2=expression();\n\n state._fsp--;\n\n\n match(input, Token.UP, null); \n\n\n oe = new OperationExecuter(op1,op2,\"<=\"); \n\n }\n break;\n case 13 :\n // /v/filer4b/v38q001/rjnevels/Desktop/Antlr Eclipse Test/workspace3/BFlat/src/a/b/c/EvaluatorWalker.g:337:6: ^( '>' op1= expression op2= expression )\n {\n match(input,40,FOLLOW_40_in_expression848); \n\n match(input, Token.DOWN, null); \n pushFollow(FOLLOW_expression_in_expression854);\n op1=expression();\n\n state._fsp--;\n\n\n pushFollow(FOLLOW_expression_in_expression860);\n op2=expression();\n\n state._fsp--;\n\n\n match(input, Token.UP, null); \n\n\n oe = new OperationExecuter(op1,op2,\">\"); \n\n }\n break;\n case 14 :\n // /v/filer4b/v38q001/rjnevels/Desktop/Antlr Eclipse Test/workspace3/BFlat/src/a/b/c/EvaluatorWalker.g:338:6: ^( '<' op1= expression op2= expression )\n {\n match(input,36,FOLLOW_36_in_expression872); \n\n match(input, Token.DOWN, null); \n pushFollow(FOLLOW_expression_in_expression878);\n op1=expression();\n\n state._fsp--;\n\n\n pushFollow(FOLLOW_expression_in_expression884);\n op2=expression();\n\n state._fsp--;\n\n\n match(input, Token.UP, null); \n\n\n oe = new OperationExecuter(op1,op2,\"<\"); \n\n }\n break;\n case 15 :\n // /v/filer4b/v38q001/rjnevels/Desktop/Antlr Eclipse Test/workspace3/BFlat/src/a/b/c/EvaluatorWalker.g:339:6: ^( BOOL_NEGATION op1= expression )\n {\n match(input,BOOL_NEGATION,FOLLOW_BOOL_NEGATION_in_expression896); \n\n match(input, Token.DOWN, null); \n pushFollow(FOLLOW_expression_in_expression902);\n op1=expression();\n\n state._fsp--;\n\n\n match(input, Token.UP, null); \n\n\n oe = new OperationExecuter(op1,null,\"BOOL_NEGATION\"); \n\n }\n break;\n case 16 :\n // /v/filer4b/v38q001/rjnevels/Desktop/Antlr Eclipse Test/workspace3/BFlat/src/a/b/c/EvaluatorWalker.g:340:6: INTEGER\n {\n INTEGER15=(CommonTree)match(input,INTEGER,FOLLOW_INTEGER_in_expression920); \n\n oe = new OperationExecuter(localScope, (INTEGER15!=null?INTEGER15.getText():null),\"INTEGER\"); \n\n }\n break;\n case 17 :\n // /v/filer4b/v38q001/rjnevels/Desktop/Antlr Eclipse Test/workspace3/BFlat/src/a/b/c/EvaluatorWalker.g:341:6: BOOL\n {\n BOOL16=(CommonTree)match(input,BOOL,FOLLOW_BOOL_in_expression964); \n\n oe = new OperationExecuter(localScope, (BOOL16!=null?BOOL16.getText():null),\"BOOL\"); \n\n }\n break;\n case 18 :\n // /v/filer4b/v38q001/rjnevels/Desktop/Antlr Eclipse Test/workspace3/BFlat/src/a/b/c/EvaluatorWalker.g:342:6: IDENT\n {\n IDENT17=(CommonTree)match(input,IDENT,FOLLOW_IDENT_in_expression1010); \n\n oe = new OperationExecuter(localScope, (IDENT17!=null?IDENT17.getText():null),\"IDENT\"); \n\n }\n break;\n case 19 :\n // /v/filer4b/v38q001/rjnevels/Desktop/Antlr Eclipse Test/workspace3/BFlat/src/a/b/c/EvaluatorWalker.g:343:6: call\n {\n pushFollow(FOLLOW_call_in_expression1055);\n call18=call();\n\n state._fsp--;\n\n\n result = call18;\n\n }\n break;\n\n }\n\n\n if (oe != null) result = oe.doOperation();\n if (result == null)\n BFlatGUI.debugPrint(0, \"result of expression is null!\");\n \n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n\n finally {\n \t// do for sure before leaving\n }\n return result;\n }", "@Test(timeout = 4000)\n public void test082() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\") (\");\n Token token0 = xPathLexer0.minus();\n xPathLexer0.setPreviousToken(token0);\n assertEquals(6, token0.getTokenType());\n assertEquals(\")\", token0.getTokenText());\n \n Token token1 = xPathLexer0.identifierOrOperatorName();\n assertEquals(\"\", token1.getTokenText());\n assertEquals(15, token1.getTokenType());\n }", "Expression addExpression() throws SyntaxException {\r\n\t\tToken first = t;\r\n\t\tExpression e0 = multExpression();\r\n\t\twhile(isKind(OP_PLUS, OP_MINUS)) {\r\n\t\t\tToken op = consume();\r\n\t\t\tExpression e1 = multExpression();\r\n\t\t\te0 = new ExpressionBinary(first,e0,op,e1);\r\n\t\t}\r\n\t\treturn e0;\r\n\t}", "protected Evaluable parseSubExpression() throws ParsingException {\n Evaluable sub = parseTerm();\n\n while (_token != null &&\n _token.type == TokenType.Operator &&\n \"+-\".indexOf(_token.text) >= 0) {\n\n String op = _token.text;\n\n next(true);\n\n Evaluable sub2 = parseTerm();\n\n sub = new OperatorCallExpr(new Evaluable[] { sub, sub2 }, op);\n }\n\n return sub;\n }", "@Test(timeout = 4000)\n public void test119() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"gQFm^#}*F\");\n Token token0 = xPathLexer0.leftParen();\n assertEquals(\"g\", token0.getTokenText());\n assertEquals(1, token0.getTokenType());\n \n Token token1 = xPathLexer0.nextToken();\n assertEquals(\"QFm\", token1.getTokenText());\n assertEquals(15, token1.getTokenType());\n }", "@Override\n public NodeType ExecuteOperation()\n {\n //if the first child is an operator\n if(this.childNodes[0].isOperator==true)\n {\n BasicOperator basicOperator=(BasicOperator)this.childNodes[0]; \n if(basicOperator.operands==1)\n {\n UnaryOperator unaryOperator=(UnaryOperator)childNodes[0];\n return unaryOperator.PerformOperation(childNodes[1]);\n }\n else if(basicOperator.operands==2)\n {\n BinaryOperator binaryOperator=(BinaryOperator)childNodes[0];\n return binaryOperator.PerformOperation(childNodes[1], childNodes[2]);\n }\n else if(basicOperator.operands==3)\n {\n TernaryOperator ternaryOperator=(TernaryOperator)childNodes[0];\n return ternaryOperator.PerformOperation(childNodes[1], childNodes[2], childNodes[3]);\n }\n }\n //if not an operator\n else\n {\n return this.childNodes[0].ExecuteOperation();\n }\n return null;\n }", "@Test(timeout = 4000)\n public void test096() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"ml'}{GbV%Y&X\");\n Token token0 = xPathLexer0.leftParen();\n assertEquals(1, token0.getTokenType());\n assertEquals(\"m\", token0.getTokenText());\n \n Token token1 = xPathLexer0.nextToken();\n assertEquals(\"l\", token1.getTokenText());\n assertEquals(15, token1.getTokenType());\n }", "@Test(timeout = 4000)\n public void test122() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"yN}H8h\");\n Token token0 = xPathLexer0.leftParen();\n assertEquals(\"y\", token0.getTokenText());\n assertEquals(1, token0.getTokenType());\n \n Token token1 = xPathLexer0.nextToken();\n assertEquals(\"N\", token1.getTokenText());\n assertEquals(15, token1.getTokenType());\n }", "@Override\n public Expression asExpression(TokenValue<?> token, Deque<Value<Expression>> next) {\n Calc.Function function = token.getValue(); // e.g. CalcGrammar.Function.sin\n Expression argument = next.pollFirst().getTarget(); // e.g. Expression.Variable(\"x\")\n return new Expression.Function(function, argument);\n }", "@Test(timeout = 4000)\n public void test141() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"z8I-qq3BBV%.C. *\");\n Token token0 = xPathLexer0.leftParen();\n assertEquals(1, token0.getTokenType());\n assertEquals(\"z\", token0.getTokenText());\n \n Token token1 = xPathLexer0.nextToken();\n assertEquals(30, token1.getTokenType());\n assertEquals(\"8\", token1.getTokenText());\n }", "@Override\r\n\tpublic void visit(BinaryExpression binaryExpression) {\n\r\n\t}", "public interface Expression {\n \n enum ExpressivoGrammar {ROOT, SUM, PRODUCT, TOKEN, PRIMITIVE_1, PRIMITIVE_2, \n NUMBER, INT, DECIMAL, WHITESPACE, VARIABLE};\n \n public static Expression buildAST(ParseTree<ExpressivoGrammar> concreteSymbolTree) {\n \n if (concreteSymbolTree.getName() == ExpressivoGrammar.DECIMAL) {\n /* reached a double terminal */\n return new Num(Double.parseDouble(concreteSymbolTree.getContents())); \n }\n\n else if (concreteSymbolTree.getName() == ExpressivoGrammar.INT) {\n /* reached an int terminal */\n return new Num(Integer.parseInt(concreteSymbolTree.getContents()));\n }\n \n else if (concreteSymbolTree.getName() == ExpressivoGrammar.VARIABLE) {\n /* reached a terminal */\n return new Var(concreteSymbolTree.getContents());\n }\n \n else if (concreteSymbolTree.getName() == ExpressivoGrammar.ROOT || \n concreteSymbolTree.getName() == ExpressivoGrammar.TOKEN || \n concreteSymbolTree.getName() == ExpressivoGrammar.PRIMITIVE_1 || \n concreteSymbolTree.getName() == ExpressivoGrammar.PRIMITIVE_2 || \n concreteSymbolTree.getName() == ExpressivoGrammar.NUMBER) {\n \n /* non-terminals with only one child */\n for (ParseTree<ExpressivoGrammar> child: concreteSymbolTree.children()) {\n if (child.getName() != ExpressivoGrammar.WHITESPACE) \n return buildAST(child);\n }\n \n // should never reach here\n throw new IllegalArgumentException(\"error in parsing\");\n }\n \n else if (concreteSymbolTree.getName() == ExpressivoGrammar.SUM || concreteSymbolTree.getName() == ExpressivoGrammar.PRODUCT) {\n /* a sum or product node can have one or more children that need to be accumulated together */\n return accumulator(concreteSymbolTree, concreteSymbolTree.getName()); \n }\n \n else {\n throw new IllegalArgumentException(\"error in input: should never reach here\");\n }\n \n }\n \n /**\n * (1) Create parser using lib6005.parser from grammar file\n * (2) Parse string input into CST\n * (3) Build AST from this CST using buildAST()\n * @param input\n * @return Expression (AST)\n */\n public static Expression parse(String input) {\n \n try {\n Parser<ExpressivoGrammar> parser = GrammarCompiler.compile(\n new File(\"src/expressivo/Expression.g\"), ExpressivoGrammar.ROOT);\n ParseTree<ExpressivoGrammar> concreteSymbolTree = parser.parse(input);\n \n// tree.display();\n \n return buildAST(concreteSymbolTree);\n \n }\n \n catch (UnableToParseException e) {\n throw new IllegalArgumentException(\"Can't parse the expression...\");\n }\n catch (IOException e) {\n System.out.println(\"Cannot open file Expression.g\");\n throw new RuntimeException(\"Can't open the file with grammar...\");\n }\n }\n \n // helper methods\n public static Expression accumulator(ParseTree<ExpressivoGrammar> tree, ExpressivoGrammar grammarObj) {\n Expression expr = null;\n boolean first = true;\n List<ParseTree<ExpressivoGrammar>> children = tree.children();\n int len = children.size();\n for (int i = len-1; i >= 0; i--) {\n /* the first child */\n ParseTree<ExpressivoGrammar> child = children.get(i);\n if (first) {\n expr = buildAST(child);\n first = false;\n }\n \n /* accumulate this by creating a new binaryOp object with\n * expr as the leftOp and the result as rightOp\n **/\n \n else if (child.getName() == ExpressivoGrammar.WHITESPACE) continue;\n else {\n if (grammarObj == ExpressivoGrammar.SUM)\n expr = new Sum(buildAST(child), expr);\n else\n expr = new Product(buildAST(child), expr);\n }\n }\n \n return expr;\n \n }\n \n // ----------------- problems 3-4 -----------------\n \n public static Expression create(Expression leftExpr, Expression rightExpr, char op) {\n if (op == '+')\n return Sum.createSum(leftExpr, rightExpr);\n else\n return Product.createProduct(leftExpr, rightExpr);\n }\n\n public Expression differentiate(Var x);\n \n public Expression simplify(Map<String, Double> env);\n\n}", "private TreeNode exprTreeHelper(String expr) {\n if (expr.charAt(0) != '(') {\n \n \treturn new TreeNode(expr); // you fill this in\n } else{\n // expr is a parenthesized expression.\n // Strip off the beginning and ending parentheses,\n // find the main operator (an occurrence of + or * not nested\n // in parentheses, and construct the two subtrees.\n int nesting = 0;\n int opPos = 0;\n char myChar='\\0';\n \n for (int k = 1; k < expr.length() - 1; k++) {\n myChar = expr.charAt(k);\n \tif(myChar == '('){\n \tnesting++;\n }\n if(myChar==')'){\n \tnesting--;\n }\n if(nesting == 0){\n \tif(myChar == '+' || myChar == '*'){\n \t\topPos = k;\n \t break;\t\n \t}\n }\n }\n \n String opnd1 = expr.substring(1, opPos);\n String opnd2 = expr.substring(opPos + 1, expr.length() - 1);\n String op = expr.substring(opPos, opPos + 1);\n System.out.println(\"expression = \" + expr);\n System.out.println(\"operand 1 = \" + opnd1);\n System.out.println(\"operator = \" + op);\n System.out.println(\"operand 2 = \" + opnd2);\n System.out.println();\n return new TreeNode(op,exprTreeHelper(opnd1),exprTreeHelper(opnd2));\n \n }\n }", "@Test(timeout = 4000)\n public void test004() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"d>%NV0\");\n Token token0 = xPathLexer0.operatorName();\n assertNull(token0);\n }", "double parseExpression() {\n double x = parseTerm();\n for (;;) {\n if (eat('+')) x += parseTerm(); // addition\n else if (eat('-')) x -= parseTerm(); // subtraction\n else return x;\n }\n }", "double parseExpression() {\n double x = parseTerm();\n for (;;) {\n if (eat('+')) x += parseTerm(); // addition\n else if (eat('-')) x -= parseTerm(); // subtraction\n else return x;\n }\n }", "@Test(timeout = 4000)\n public void test019() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\">6_XdrPl\");\n Token token0 = xPathLexer0.relationalOperator();\n assertNotNull(token0);\n assertEquals(\">\", token0.getTokenText());\n assertEquals(9, token0.getTokenType());\n \n Token token1 = xPathLexer0.rightParen();\n assertEquals(2, token1.getTokenType());\n assertEquals(\"6\", token1.getTokenText());\n \n char char0 = xPathLexer0.LA(0);\n assertEquals('6', char0);\n }", "@Test(timeout = 4000)\n public void test133() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"P@,DtvglU*(KV:16h\");\n Token token0 = xPathLexer0.leftParen();\n assertEquals(1, token0.getTokenType());\n assertEquals(\"P\", token0.getTokenText());\n \n Token token1 = xPathLexer0.nextToken();\n assertEquals(\"@\", token1.getTokenText());\n assertEquals(16, token1.getTokenType());\n }", "private Expression parseParen(Tokenizer in) {\n\t\tExpression expr = parseExpr(in,OperatorLevel.lowest);\n\t\tToken expectParen = in.next();\n\t\tif (expectParen.type != Token.TokenType.CLOSE_PARENTHESIS)\n\t\t\tthrow new SyntaxError(\"Expected ) got: '\" + expectParen + \"'\" + expectParen.generateLineChar());\n\t\treturn expr;\n\t}", "final public ASTExpression Expression() throws ParseException {\r\n /*@bgen(jjtree) Expression */\r\n ASTExpression jjtn000 = new ASTExpression(JJTEXPRESSION);\r\n boolean jjtc000 = true;\r\n jjtree.openNodeScope(jjtn000);\r\n try {\r\n switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\r\n case QUOTE:\r\n StringLiteral();\r\n jj_consume_token(61);\r\n jjtree.closeNodeScope(jjtn000, true);\r\n jjtc000 = false;\r\n {if (true) return jjtn000;}\r\n break;\r\n case IDENTIFIER:\r\n case INTEGER:\r\n case NOT:\r\n case SUB:\r\n case FLOATING_POINT_LITERAL:\r\n case 59:\r\n LogicalORExpression();\r\n jjtree.closeNodeScope(jjtn000, true);\r\n jjtc000 = false;\r\n {if (true) return jjtn000;}\r\n break;\r\n default:\r\n jj_la1[45] = jj_gen;\r\n jj_consume_token(-1);\r\n throw new ParseException();\r\n }\r\n } catch (Throwable jjte000) {\r\n if (jjtc000) {\r\n jjtree.clearNodeScope(jjtn000);\r\n jjtc000 = false;\r\n } else {\r\n jjtree.popNode();\r\n }\r\n if (jjte000 instanceof RuntimeException) {\r\n {if (true) throw (RuntimeException)jjte000;}\r\n }\r\n if (jjte000 instanceof ParseException) {\r\n {if (true) throw (ParseException)jjte000;}\r\n }\r\n {if (true) throw (Error)jjte000;}\r\n } finally {\r\n if (jjtc000) {\r\n jjtree.closeNodeScope(jjtn000, true);\r\n }\r\n }\r\n throw new Error(\"Missing return statement in function\");\r\n }", "@Test(timeout = 4000)\n public void test162() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"com.werken.saxpath.XPathLexer\");\n xPathLexer0.rightParen();\n xPathLexer0.notEquals();\n xPathLexer0.nextToken();\n Token token0 = xPathLexer0.identifierOrOperatorName();\n assertNull(token0);\n }", "public int eval(String expression) {\n String token;\n // The 3rd argument is true to indicate that the delimiters should be used\n // as tokens, too. \n this.tokenizer = new StringTokenizer(expression, DELIMITERS, true);\n\n //initialized with # operator, used as bogus to compare priorities and detect end of operatorStack.\n operatorStack.push(new PoundOperator());\n\n //Checks whether there are more tokens to be pushed in stacks\n while (this.tokenizer.hasMoreTokens()) {\n // filter out spaces\n if (!(token = this.tokenizer.nextToken()).equals(\" \")) {\n // check if token is an operand\n if (Operand.check(token)) {\n operandStack.push(new Operand(token));\n\n } else {\n if (!Operator.check(token)) {\n System.out.println(\"*****invalid token******\");\n System.exit(1);\n }\n\n //Gets a newOperator it matches from hashmap.\n Operator newOperator = Operator.getToken(token);\n\n //Processes only, when there is greater priority in stack and there are no '('\n while (operatorStack.peek().priority() >= newOperator.priority() && !newOperator.equals(Operator.getToken(\"(\"))) {\n\n //If the token read is ), then there is already '(' which is inserted in the operator stack.\n if (token.equals(\")\")) {\n //Perform until, the '(' is on top of the stack.\n while (!operatorStack.peek().equals(Operator.getToken(\"(\"))) {\n Operator oldOpr = operatorStack.pop();\n Operand op2 = operandStack.pop();\n Operand op1 = operandStack.pop();\n operandStack.push(oldOpr.execute(op1, op2));\n\n }\n\n //If '(' found on top, pop and break, to continue to read more takens\n if (operatorStack.peek().equals(Operator.getToken(\"(\"))) {\n operatorStack.pop();\n break;\n }\n\n } \n //if ')' not found, it means either its in '(' or there are no parenthesis\n else {\n Operator oldOpr = operatorStack.pop();\n Operand op2 = operandStack.pop();\n Operand op1 = operandStack.pop();\n operandStack.push(oldOpr.execute(op1, op2));\n }\n }\n //Pushes the operator, when the operator!=')'\n if (!newOperator.equals(Operator.getToken(\")\"))) {\n operatorStack.push(newOperator);\n }\n }\n }\n }\n // No more tokens to be read. All the tokens are in stacks, gets processed.\n if (!this.tokenizer.hasMoreTokens()) {\n //Keeps processing, until it reaches #\n while (operatorStack.size() != 1) {\n Operator oldOpr = operatorStack.pop();\n //Checks if there are operand left to be used,\n if (!operandStack.empty()) {\n Operand op2 = operandStack.pop();\n Operand op1 = operandStack.pop();\n operandStack.push(oldOpr.execute(op1, op2));\n } else {\n System.exit(1);\n }\n }\n }\n // Returns, the final result\n return operandStack.pop().getValue();\n }", "private double parseExpression() {\n\t\tdouble value = parseTerm();\n\t\twhile (true) {\n\t\t\tif (token.getType().equals(Token.Type.PLUS)) { // addition\n\t\t\t\ttoken=lexer.getNextToken();\n\t\t\t\tvalue += parseTerm();\n\t\t\t} else if (token.getType().equals(Token.Type.MINUS)) { // subtraction\n\t\t\t\ttoken = lexer.getNextToken();\n\t\t\t\tvalue -= parseTerm();\n\t\t\t} else {\n\t\t\t\treturn value;\n\t\t\t}\n\t\t}\n\t}", "@Test(timeout = 4000)\n public void test112() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"ji{:[5xw96\");\n Token token0 = xPathLexer0.rightParen();\n assertEquals(2, token0.getTokenType());\n assertEquals(\"j\", token0.getTokenText());\n \n Token token1 = xPathLexer0.dollar();\n assertEquals(26, token1.getTokenType());\n assertEquals(\"i\", token1.getTokenText());\n \n Token token2 = xPathLexer0.notEquals();\n assertEquals(\"{:\", token2.getTokenText());\n assertEquals(22, token2.getTokenType());\n \n Token token3 = xPathLexer0.nextToken();\n assertEquals(3, token3.getTokenType());\n assertEquals(\"[\", token3.getTokenText());\n \n Token token4 = xPathLexer0.identifierOrOperatorName();\n assertEquals(15, token4.getTokenType());\n assertEquals(\"5xw96\", token4.getTokenText());\n }", "final public Expression GraphNode(Exp stack) throws ParseException {\n Expression expression1;\n if (jj_2_17(2)) {\n expression1 = VarOrTerm(stack);\n } else {\n switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n case ATLIST:\n case ATPATH:\n case LPAREN:\n case LBRACKET:\n case AT:\n expression1 = TriplesNode(stack);\n break;\n default:\n jj_la1[229] = jj_gen;\n jj_consume_token(-1);\n throw new ParseException();\n }\n }\n {if (true) return expression1;}\n throw new Error(\"Missing return statement in function\");\n }", "@Test(timeout = 4000)\n public void test117() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"_V)2V93#c=~\\\")I\");\n Token token0 = xPathLexer0.leftParen();\n assertEquals(1, token0.getTokenType());\n assertEquals(\"_\", token0.getTokenText());\n \n Token token1 = xPathLexer0.nextToken();\n assertEquals(\"V\", token1.getTokenText());\n assertEquals(15, token1.getTokenType());\n }", "@Test(timeout = 4000)\n public void test118() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\">Uuu/X==mpx'Q N+\");\n Token token0 = xPathLexer0.leftParen();\n assertEquals(1, token0.getTokenType());\n assertEquals(\">\", token0.getTokenText());\n \n Token token1 = xPathLexer0.nextToken();\n assertEquals(15, token1.getTokenType());\n assertEquals(\"Uuu\", token1.getTokenText());\n }", "Expr expr() throws IOException {\n\t\tExpr e = term();\n\t\twhile (look.tag == '+' || look.tag == '-') {\n\t\t\tToken tok = look;\n\t\t\tmove();\n\t\t\te = new Arith(tok, e, term());\n\t\t}\n\t\treturn e;\n\t}", "@Test(timeout = 4000)\n public void test149() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"m6l-dKX`qghFq8(,{\");\n Token token0 = xPathLexer0.rightParen();\n assertEquals(2, token0.getTokenType());\n assertEquals(\"m\", token0.getTokenText());\n \n Token token1 = xPathLexer0.notEquals();\n assertEquals(\"6l\", token1.getTokenText());\n assertEquals(22, token1.getTokenType());\n \n Token token2 = xPathLexer0.nextToken();\n assertEquals(\"-\", token2.getTokenText());\n assertEquals(6, token2.getTokenType());\n }", "public R visit(Operator n) {\n R _ret=null;\n int which = n.f0.which;\n String s = \" \";\n switch (which)\n {\n case 0 : {s=\"LT\"; break;}\n case 1 : {s= \"PLUS\"; break;}\n case 2 : {s= \"MINUS\";break;}\n case 3 : {s= \"TIMES\"; break;}\n }\n \t return (R)s;\n }", "private TreeNode exprTreeHelper(String expr) {\n if (expr.charAt(0) != '(') {\n return new TreeNode(expr); // you fill this in\n } else {\n // expr is a parenthesized expression.\n // Strip off the beginning and ending parentheses,\n // find the main operator (an occurrence of + or * not nested\n // in parentheses, and construct the two subtrees.\n int nesting = 0;\n int opPos = 0;\n for (int k = 1; k < expr.length() - 1; k++) {\n // you supply the missing code\n \tif (nesting == 0) {\n \t\tif (expr.charAt(k) == '+' || expr.charAt(k) == '*') {\n \t\t\topPos = k;\n \t\t}\n \t}\n \tif (expr.charAt(k) == '(') {\n \t\tnesting++;\n \t} else if (expr.charAt(k) == ')') {\n \t\tnesting--;\n \t}\n }\n String opnd1 = expr.substring(1, opPos);\n String opnd2 = expr.substring(opPos + 1, expr.length() - 1);\n String op = expr.substring(opPos, opPos + 1);\n System.out.println(\"expression = \" + expr);\n System.out.println(\"operand 1 = \" + opnd1);\n System.out.println(\"operator = \" + op);\n System.out.println(\"operand 2 = \" + opnd2);\n System.out.println();\n return new TreeNode(op, exprTreeHelper(opnd1), exprTreeHelper(opnd2)); // you fill this in\n }\n }", "final public IASTLiteralTextNode Argument() throws ParseException {\r\n IASTLiteralTextNode node = null;\r\n Token lastToken = null;\r\n Token equalToken = null;\r\n Token firstToken = null;\r\n switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\r\n case INT:\r\n firstToken = jj_consume_token(INT);\r\n if (jj_2_3(2147483647)) {\r\n equalToken = jj_consume_token(EQUAL);\r\n switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\r\n case MINUS:\r\n jj_consume_token(MINUS);\r\n break;\r\n default:\r\n jj_la1[16] = jj_gen;\r\n ;\r\n }\r\n lastToken = jj_consume_token(INT);\r\n } else {\r\n ;\r\n }\r\n if (equalToken == null) {\r\n lastToken = firstToken;\r\n }\r\n break;\r\n case ASTERISK:\r\n case WORD:\r\n case STRING:\r\n case PACKAGE_OPTION:\r\n switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\r\n case ASTERISK:\r\n firstToken = jj_consume_token(ASTERISK);\r\n break;\r\n case PACKAGE_OPTION:\r\n firstToken = jj_consume_token(PACKAGE_OPTION);\r\n break;\r\n case WORD:\r\n firstToken = jj_consume_token(WORD);\r\n break;\r\n case STRING:\r\n firstToken = jj_consume_token(STRING);\r\n break;\r\n default:\r\n jj_la1[17] = jj_gen;\r\n jj_consume_token(-1);\r\n throw new ParseException();\r\n }\r\n lastToken = firstToken;\r\n break;\r\n default:\r\n jj_la1[18] = jj_gen;\r\n jj_consume_token(-1);\r\n throw new ParseException();\r\n }\r\n node = getRawLiteralTextNodeSpanning(firstToken, lastToken);\r\n {if (true) return node;}\r\n throw new Error(\"Missing return statement in function\");\r\n }", "@Test(timeout = 4000)\n public void test011() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\") (\");\n String string0 = xPathLexer0.getXPath();\n assertEquals(\") (\", string0);\n }", "@Test(timeout = 4000)\n public void test070() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer();\n xPathLexer0.nextToken();\n xPathLexer0.setXPath(\"y]jad[mR3w=N\");\n xPathLexer0.leftParen();\n xPathLexer0.doubleColon();\n Token token0 = xPathLexer0.identifierOrOperatorName();\n assertNull(token0);\n }", "@Test(timeout = 4000)\n public void test137() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\":E<;\");\n Token token0 = xPathLexer0.rightParen();\n assertEquals(\":\", token0.getTokenText());\n assertEquals(2, token0.getTokenType());\n \n Token token1 = xPathLexer0.identifier();\n assertEquals(\"E\", token1.getTokenText());\n assertEquals(15, token1.getTokenType());\n \n Token token2 = xPathLexer0.nextToken();\n assertEquals(7, token2.getTokenType());\n assertEquals(\"<\", token2.getTokenText());\n }", "@Test\n\tpublic void testExpression() throws ParseException {\n\t\tExpression expression = langParser(\"a\").expression();\n\t\tassertEquals(expression.getClass(), Identifier.class);\n\t\texpression = langParser(\"a()\").expression();\n\t\tassertEquals(expression.getClass(), FunctionCall.class);\n\t\texpression = langParser(\"a.b\").expression();\n\t\tassertEquals(expression.getClass(), MemberAccess.class);\n\t\texpression = langParser(\"1\").expression();\n\t\tassertEquals(expression.getClass(), LongLiteral.class);\n\t\texpression = langParser(\"1.1\").expression();\n\t\tassertEquals(expression.getClass(), DoubleLiteral.class);\n\t\texpression = langParser(\"if(a,b,c)\").expression();\n\t\tassertEquals(expression.getClass(), TernaryIf.class);\n\t}", "Syntax.Node ParseActualParameters(Token t) throws Exception{\n if (t.token.equals(\"(\")){\n var expList = ParseExpList();\n t = lexer.next();\n if (t.token.equals(\")\")){\n return new Syntax.NodeActualParameters( expList);\n }\n }\n throw new Exception(\"Error in ParseActualParameters !!! \");\n }", "@Test(timeout = 4000)\n public void test127() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"#Hl\\\"URCdTMz/SP7f,\");\n Token token0 = xPathLexer0.leftParen();\n assertEquals(\"#\", token0.getTokenText());\n assertEquals(1, token0.getTokenType());\n \n Token token1 = xPathLexer0.nextToken();\n assertEquals(\"Hl\", token1.getTokenText());\n assertEquals(15, token1.getTokenType());\n }", "Expression(String expressionString) throws IllegalArgumentException {\r\n tokenList = new ArrayList<String>();\r\n StringBuilder token = new StringBuilder();\r\n\r\n // ADD YOUR CODE BELOW HERE\r\n // ..\r\n for (int i = 0; i < expressionString.length(); i++) {\r\n Character first = expressionString.charAt(i);\r\n if (first == ' ') {\r\n continue;\r\n }\r\n if (first == '(' || first == ')' || first == '[' || first == ']') {\r\n tokenList.add(expressionString.substring(i, i + 1));\r\n }\r\n if (first == '+' || first == '-' || first == '*' || first == '/') {\r\n if (expressionString.charAt(i + 1) == '+' || expressionString.charAt(i + 1) == '-') {\r\n tokenList.add(expressionString.substring(i, i + 2));\r\n i++;\r\n continue;\r\n }\r\n tokenList.add(expressionString.substring(i, i + 1));\r\n }\r\n if (Character.isDigit(first)) {\r\n int k = i + 1;\r\n while (Character.isDigit(expressionString.charAt(k))) {\r\n k++;\r\n }\r\n tokenList.add(expressionString.substring(i, k));\r\n i = k - 1;\r\n\r\n }\r\n }\r\n }", "public static int evaluateExpression(String expression) {\r\n // Create operandStack of ints to store operands\r\n Stack<Integer> operandStack = new Stack<>();\r\n \r\n // Create operatorStack of characters to store operators\r\n Stack<Character> operatorStack = new Stack<>();\r\n \r\n // Insert Blanks\r\n expression = insertBlanks(expression);\r\n \r\n // Extract operands and operators by splitting around blanks\r\n String[] tokens = expression.split(\" \");\r\n \r\n /* Phase 1: Scan tokens\r\n Enhanced for loop, puts every element of tokens in token each time\r\n Like writing token = tokens[i] every time\r\n */\r\n for (String token: tokens) { \r\n if(token.length() == 0) // It's a blank\r\n continue; // Go to the while loop\r\n else if (token.charAt(0) == '+' || token.charAt(0) == '-') {\r\n // process all +, -, *, / in the top of the operator stack\r\n while (!operatorStack.isEmpty() && // While stack isn't empty\r\n (operatorStack.peek() == '+' || // and has an operator on top\r\n operatorStack.peek() == '-' || // Like if you had (2 * 3) + 5 \r\n operatorStack.peek() == '*' || // Or if you had (2 - 3) + 5, do that last no matter what b/c +- is lowest priority\r\n operatorStack.peek() == '/' ||\r\n operatorStack.peek() == '^')) {\r\n processAnOperator(operandStack, operatorStack);\r\n }\r\n \r\n // After processing the all the previous operations, push the +- operator onto the stack\r\n operatorStack.push(token.charAt(0));\r\n }\r\n else if (token.charAt(0) == '*' || token.charAt(0) == '/') {\r\n // Proess all *, / in the top of the operator stack\r\n while(!operatorStack.isEmpty() &&\r\n (operatorStack.peek() == '*' ||\r\n operatorStack.peek() == '/' ||\r\n operatorStack.peek() == '^')) {\r\n processAnOperator(operandStack, operatorStack);\r\n }\r\n \r\n //Push the * or / onto the stack\r\n operatorStack.push(token.charAt(0));\r\n }\r\n else if (token.charAt(0) == '^') {\r\n // Proess all ^ in the top of the operator stack\r\n while(!operatorStack.isEmpty() &&\r\n (operatorStack.peek() == '^')) {\r\n processAnOperator(operandStack, operatorStack);\r\n }\r\n \r\n //Push the ^ onto the stack\r\n operatorStack.push(token.charAt(0));\r\n }\r\n else if(token.trim().charAt(0) == '(') {\r\n operatorStack.push('(');\r\n } \r\n else if(token.trim().charAt(0) == ')') {\r\n while(operatorStack.peek() != '(') {\r\n processAnOperator(operandStack, operatorStack);\r\n }\r\n operatorStack.pop(); // pop\r\n }\r\n else {\r\n operandStack.push(new Integer(token));\r\n }\r\n }\r\n // Phase two: process everything left over\r\n while (!operatorStack.isEmpty()) {\r\n processAnOperator(operandStack, operatorStack);\r\n }\r\n \r\n return operandStack.pop(); \r\n }", "public ParseExpression(){\n expression = null;\n }", "public void visit(Operand operand);", "public void visit(ExpressionStatement expressionStatement) {\n\t}", "@Override\n public R visit(RegexExpression n, A argu) {\n R _ret = null;\n n.nodeToken.accept(this, argu);\n n.nodeToken1.accept(this, argu);\n n.expression.accept(this, argu);\n n.nodeToken2.accept(this, argu);\n n.expression1.accept(this, argu);\n n.nodeOptional.accept(this, argu);\n n.nodeToken3.accept(this, argu);\n return _ret;\n }", "@Test(timeout = 4000)\n public void test003() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"hN!SM~8ux(wB\");\n xPathLexer0.dollar();\n Token token0 = xPathLexer0.and();\n assertNull(token0);\n }", "public Element compileExpression() {\n\t\tElement ele = null;\n\t\tString token, tokenType;\n\t\tboolean op;\n\t\tboolean oper = false;\n\t\tString command = \"\";\n\t\tElement expressionParent = document.createElement(\"expression\");\n\n\t\t// if the term-op-term-op cycle breaks, that means its the end of the expression\n\t\tdo {\n\n\t\t\t// At least one term\n\t\t\texpressionParent.appendChild(compileTerm());\n\t\t\t\n\t\t\t//If an operand has been encountered, then can write the command as it is postfix\n\t\t\tif (oper) {\n\t\t\t\twriter.writeCommand(command);\n\t\t\t}\n\t\t\tjackTokenizer clone = new jackTokenizer(jTokenizer);\n\t\t\tclone.advance();\n\t\t\ttoken = clone.presentToken;\n\n\t\t\t// zero or more ops\n\t\t\tif (token.matches(\"\\\\+|-|\\\\*|/|\\\\&|\\\\||<|=|>|~\")) {\n\t\t\t\toper = true;\n\n\t\t\t\tswitch (token) {\n\t\t\t\tcase \"+\":\n\t\t\t\t\tcommand = \"add\";\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"-\":\n\t\t\t\t\tcommand = \"sub\";\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"*\":\n\t\t\t\t\tcommand = \"call Math.multiply 2\";\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"/\":\n\t\t\t\t\tcommand = \"call Math.divide 2\";\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"<\":\n\t\t\t\t\tcommand = \"lt\";\n\t\t\t\t\tbreak;\n\t\t\t\tcase \">\":\n\t\t\t\t\tcommand = \"gt\";\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"=\":\n\t\t\t\t\tcommand = \"eq\";\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"&\":\n\t\t\t\t\tcommand = \"and\";\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"|\":\n\t\t\t\t\tcommand = \"or\";\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t\tjTokenizer.advance();\n\t\t\t\ttokenType = jTokenizer.tokenType();\n\t\t\t\tele = createXMLnode(tokenType);\n\t\t\t\texpressionParent.appendChild(ele);\n\t\t\t\tjTokenizer.advance();\n\t\t\t\top = true;\n\t\t\t} else {\n\t\t\t\top = false;\n\t\t\t}\n\t\t} while (op);\n\n\t\treturn expressionParent;\n\t}", "public static int expression()\r\n {\r\n //get the start state of this term\r\n int r,t1,f1;\r\n t1=r=term();\r\n\r\n //if there is no more input, we are done\r\n if(index>expression.length()-1)\r\n {\r\n return r;\r\n }\r\n\r\n //if this is concatenation\r\n if(expression.charAt(index)=='.'||isVocab(expression.charAt(index))||expression.charAt(index)=='\\\\'\r\n ||expression.charAt(index)=='['||expression.charAt(index)=='(')\r\n {\r\n //get the start state of this expression and\r\n //update next1 and next2\r\n int t2,cur;\r\n cur=state-1;\r\n t2=expression();\r\n if(stateList.get(cur).getNext1()==stateList.get(cur).getNext2())\r\n {\r\n stateList.get(cur).setNext1(t2);\r\n }\r\n stateList.get(cur).setNext2(t2);\r\n\r\n }\r\n\r\n //if there is no more input, we are done\r\n if(index>=expression.length())\r\n {\r\n return r;\r\n }\r\n\r\n //if this is alternation\r\n if(expression.charAt(index)=='|')\r\n {\r\n //if there is nothing after '|', it is a invalid expression\r\n index++;\r\n if(index>expression.length()-1)\r\n {\r\n error();\r\n }\r\n else\r\n {\r\n //create a branch state,set the nex1 of the branch state to the term\r\n //so a|b and a|b|c both work\r\n int t2;\r\n f1=state-1;\r\n\r\n state st=new state(state,\"BR\",t1,-1);\r\n stateList.add(st);\r\n r=state;\r\n state++;\r\n\r\n //get the start state of this expression\r\n t2=expression();\r\n\r\n //update the branch state's next2 to the start state of the expression\r\n stateList.get(f1+1).setNext2(t2);\r\n\r\n //update term's next1 and next2\r\n if(stateList.get(f1).getNext1()==stateList.get(f1).getNext2())\r\n {\r\n stateList.get(f1).setNext1(state);\r\n }\r\n stateList.get(f1).setNext2(state);\r\n\r\n }\r\n\r\n }\r\n\r\n\r\n return r;\r\n }", "@Test(timeout = 4000)\n public void test085() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"com.werken.saxpath.XPathLexer\");\n xPathLexer0.setXPath(\"[ (2) (c)\");\n Token token0 = xPathLexer0.notEquals();\n assertEquals(22, token0.getTokenType());\n assertEquals(\"[ \", token0.getTokenText());\n \n Token token1 = xPathLexer0.nextToken();\n assertEquals(\"(\", token1.getTokenText());\n \n Token token2 = xPathLexer0.identifierOrOperatorName();\n assertNotNull(token2);\n assertEquals(15, token2.getTokenType());\n assertEquals(\"2\", token2.getTokenText());\n }", "public static void main(String[] args) {\n\n System.out.println(\"119.1+(28.2+37.3*(46.4-55.5)-4.6+(3/2)+1) = \" + evaluateExpression(\"119.1 + ( 28.2 + 37.3 * ( 46.4 - 55.5 ) - 4.6 + ( 3 / 2 ) + 1 )\"));\n\n}", "public static Node parseExpression(String expression)\n throws OgnlException {\n try {\n OgnlParser parser = new OgnlParser(new StringReader(expression));\n return parser.topLevelExpression();\n } catch (ParseException e) {\n throw new ExpressionSyntaxException(expression, e);\n } catch (TokenMgrError e) {\n throw new ExpressionSyntaxException(expression, e);\n }\n }", "@Test(timeout = 4000)\n public void test150() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"4,\");\n Token token0 = xPathLexer0.leftParen();\n assertEquals(\"4\", token0.getTokenText());\n assertEquals(1, token0.getTokenType());\n \n Token token1 = xPathLexer0.nextToken();\n assertEquals(32, token1.getTokenType());\n assertEquals(\",\", token1.getTokenText());\n }", "public BinaryTree(String expression) {\n \tString[] arr = expression.split(\" \");\n \troot = parse(arr);\n }" ]
[ "0.68043953", "0.6790426", "0.67814445", "0.669376", "0.66689414", "0.66416913", "0.6584209", "0.6511857", "0.64884615", "0.64810336", "0.64332014", "0.6379273", "0.6351789", "0.63039017", "0.6272045", "0.6262201", "0.62378716", "0.6222648", "0.6206705", "0.61971533", "0.6187613", "0.61840725", "0.61597854", "0.6131154", "0.6104584", "0.61025584", "0.6076794", "0.607136", "0.6063533", "0.60599685", "0.6052615", "0.6051789", "0.6036992", "0.60265064", "0.60250247", "0.6013588", "0.60071105", "0.6001457", "0.59843683", "0.5982526", "0.59734726", "0.59698343", "0.59698236", "0.5964041", "0.5963531", "0.59548944", "0.5943756", "0.5942902", "0.59362465", "0.59305453", "0.5930104", "0.5922434", "0.5921081", "0.59207815", "0.59119534", "0.5906358", "0.59008884", "0.59001994", "0.5896055", "0.5893738", "0.5883683", "0.588194", "0.5880258", "0.5880258", "0.5876755", "0.5862827", "0.5857803", "0.58561164", "0.585507", "0.5853739", "0.58529437", "0.584853", "0.5840353", "0.58232045", "0.5821093", "0.581746", "0.5813312", "0.58108723", "0.579815", "0.579638", "0.5780959", "0.5780396", "0.5779517", "0.57752234", "0.57714766", "0.5770964", "0.57678974", "0.57633436", "0.57391024", "0.5736311", "0.5733913", "0.57335716", "0.5722742", "0.5721469", "0.57130206", "0.5700635", "0.5699403", "0.56954026", "0.56791055", "0.5677918" ]
0.6074708
27
nodeChoice > ( "(" Expression() ")" | "(" Expression() ")" | "(" Expression() "," Expression() ")" | "(" Expression() ")" | "(" Var() ")" | "(" Expression() "," Expression() ")" | "(" Expression() ")" | "(" Expression() ")" | "(" Expression() ")" | "(" Expression() ")" | RegexExpression() )
@Override public R visit(BuiltInCall n, A argu) { R _ret = null; n.nodeChoice.accept(this, argu); return _ret; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public R visit(PrimaryExpression n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "@Override\n public R visit(SparqlString n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "@Override\n public R visit(VarOrTerm n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "@Override\n public R visit(GraphTerm n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "@Override\n public R visit(UnaryExpression n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "private Object parseExpr() throws IOException, FSException{\n\n ETreeNode curNode=null;\n boolean end=false;\n Object val;\n boolean negate=false; //flag for unary minus\n boolean not=false;//flag for unary not.\n boolean prevOp=true;//flag - true if previous value was an operator\n\n while (!end){\n\n switch (tok.ttype) {\n\n\n //the various possible 'values'\n case LexAnn.TT_INTEGER:\n case LexAnn.TT_DOUBLE:\n case LexAnn.TT_STRING:\n case LexAnn.TT_WORD:\n case LexAnn.TT_FUNC:\n case LexAnn.TT_NULL:\n case LexAnn.TT_ARRAY:{\n\n if (!prevOp){\n parseError(\"Expected Operator\");\n } else {\n\n val=null;\n ETreeNode node=new ETreeNode();\n node.type=ETreeNode.E_VAL;\n\n switch (tok.ttype){\n //numbers - just get them\n case LexAnn.TT_INTEGER:{\n val=tok.value;\n break;\n }\n case LexAnn.TT_DOUBLE:{\n val=tok.value;\n break;\n }\n //functions - evaluate them\n case LexAnn.TT_FUNC:{\n String name=(String)tok.value;\n getNextToken();\n val=parseCallFunc(name);\n break;\n }\n //arrays - evaluate them\n case LexAnn.TT_ARRAY:{\n String name=(String)tok.value;\n getNextToken(); //should be a '['\n getNextToken(); //should be the index\n Object index=parseExpr();\n try {\n val=host.getVarEntry(name,index);\n } catch (Exception e) {\n parseError(e.getMessage());\n }\n break;\n }\n //variables - resolve them\n case LexAnn.TT_WORD:{\n if (hasVar((String)tok.value)) {\n val=getVar((String)tok.value);\n } else {\n try {\n val=host.getVarEntry((String)tok.value,null);\n } catch (Exception e) {\n parseError(e.getMessage());\n }\n }\n break;\n }\n //strings - just get again\n case LexAnn.TT_STRING:{\n val=tok.value;\n break;\n }\n //null\n case LexAnn.TT_NULL:{\n val=new FSObject(null);\n break;\n }\n }\n\n //unary not\n if (not){\n if (val instanceof Integer){\n if (((Integer)val).intValue()==0){\n val=FS_TRUE;\n } else {\n val=FS_FALSE;\n }\n not=false;\n } else if (val instanceof FSObject && ((FSObject)val).getObject() instanceof Boolean) {\n if (((FSObject)val).getObject().equals(Boolean.FALSE)) {\n val=FS_TRUE;\n } else {\n val=FS_FALSE;\n }\n } else if (val instanceof FSObject && ((FSObject)val).getObject() instanceof Integer) {\n if (((Integer)((FSObject)val).getObject()).intValue()==0) {\n val=FS_TRUE;\n } else {\n val=FS_FALSE;\n }\n } else {\n String msg=val.getClass().getName();\n if (val instanceof FSObject) msg=\"FSObject with \"+((FSObject)val).getNullClass().getName();\n parseError(\"Type mismatch for ! \"+msg);\n }\n }\n\n //unary minus\n if (negate) {\n if (val instanceof Integer){\n val=new Integer(-((Integer)val).intValue());\n } else if (val instanceof Double){\n val=new Double(-((Double)val).doubleValue());\n } else {\n parseError(\"Type mistmatch for unary -\");\n }\n }\n\n node.value=val;\n\n if (curNode!=null){\n if (curNode.left==null){\n curNode.left=node;\n node.parent=curNode;\n curNode=node;\n\n } else if (curNode.right==null){\n curNode.right=node;\n node.parent=curNode;\n curNode=node;\n\n }\n } else {\n curNode=node;\n }\n\n prevOp=false;\n }\n break;\n }\n /*operators - have to be more carefull with these.\n We build an expression tree - inserting the nodes at the right\n points to get a reasonable approximation to correct operator\n precidence*/\n case LexAnn.TT_LEQ:\n case LexAnn.TT_LNEQ:\n case LexAnn.TT_MULT:\n case LexAnn.TT_DIV:\n case LexAnn.TT_MOD:\n case LexAnn.TT_PLUS:\n case LexAnn.TT_MINUS:\n case LexAnn.TT_LGR:\n case LexAnn.TT_LGRE:\n case LexAnn.TT_LLSE:\n case LexAnn.TT_LLS:\n case LexAnn.TT_NOT:\n case LexAnn.TT_LAND:\n case LexAnn.TT_LOR: {\n if (prevOp){\n if (tok.ttype==LexAnn.TT_MINUS){\n negate=true;\n } else if (tok.ttype==LexAnn.TT_NOT){\n not=true;\n } else {\n parseError(\"Expected Expression\");\n }\n } else {\n\n ETreeNode node=new ETreeNode();\n\n node.type=ETreeNode.E_OP;\n node.value=new Integer(tok.ttype);\n\n if (curNode.parent!=null){\n\n int curPrio=getPrio(tok.ttype);\n int parPrio=\n getPrio(((Integer)curNode.parent.value).intValue());\n\n if (curPrio<=parPrio){\n //this nodes parent is the current nodes grandparent\n node.parent=curNode.parent.parent;\n //our nodes left leg is now linked into the current nodes\n //parent\n node.left=curNode.parent;\n //hook into grandparent\n if (curNode.parent.parent!=null){\n curNode.parent.parent.right=node;\n }\n\n //the current nodes parent is now us (because of above)\n curNode.parent=node;\n //set the current node.\n curNode=node;\n } else {\n //current node's parent's right is now us.\n curNode.parent.right=node;\n //our nodes left is the current node.\n node.left=curNode;\n //our nodes parent is the current node's parent.\n node.parent=curNode.parent;\n //curent nodes parent is now us.\n curNode.parent=node;\n //set the current node.\n curNode=node;\n }\n } else {\n //our node's left is the current node\n node.left=curNode;\n //current node's parent is us now\n //we don't have to set our parent, as it is null.\n curNode.parent=node;\n //set current node\n curNode=node;\n }\n prevOp=true;\n }\n break;\n }\n case '(':\n //start of an bracketed expression, recursively call ourself\n //to get a value\n {\n getNextToken();\n val=parseExpr();\n\n if (negate) {\n if (val instanceof Integer){\n val=new Integer(-((Integer)val).intValue());\n } else if (val instanceof Double){\n val=new Double(-((Double)val).doubleValue());\n } else {\n parseError(\"Type mistmatch for unary -\");\n }\n }\n\n ETreeNode node=new ETreeNode();\n node.value=val;\n node.type=ETreeNode.E_VAL;\n\n if (curNode!=null){\n if (curNode.left==null){\n curNode.left=node;\n node.parent=curNode;\n curNode=node;\n\n } else if (curNode.right==null){\n curNode.right=node;\n node.parent=curNode;\n curNode=node;\n\n }\n } else {\n curNode=node;\n }\n prevOp=false;\n break;\n }\n\n default: {\n end=true;\n }\n\n }\n if (!end){\n tok.nextToken();\n }\n }\n\n //find the top of the tree we just built.\n if (curNode==null) parseError(\"Missing Expression\");\n while(curNode.parent!=null){\n curNode=curNode.parent;\n }\n\n\n return evalETree(curNode);\n\n }", "@Override\n public R visit(VarOrIRIref n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "@Override\n public R visit(ArgList n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "@Override\n public TreeNode parse() {\n TreeNode first = ArithmeticSubexpression.getAdditive(environment).parse();\n if (first == null) return null;\n\n // Try to parse something starting with an operator.\n List<Wrapper> wrappers = RightSideSubexpression.createKleene(\n environment, ArithmeticSubexpression.getAdditive(environment),\n BemTeVicTokenType.EQUAL, BemTeVicTokenType.DIFFERENT,\n BemTeVicTokenType.GREATER_OR_EQUALS, BemTeVicTokenType.GREATER_THAN,\n BemTeVicTokenType.LESS_OR_EQUALS, BemTeVicTokenType.LESS_THAN\n ).parse();\n\n // If did not found anything starting with an operator, return the first node.\n if (wrappers.isEmpty()) return first;\n\n // Constructs a binary operator node containing the expression.\n Iterator<Wrapper> it = wrappers.iterator();\n Wrapper secondWrapper = it.next();\n BinaryOperatorNode second = new BinaryOperatorNode(secondWrapper.getTokenType(), first, secondWrapper.getOutput());\n\n if (wrappers.size() == 1) return second;\n\n // If we reach this far, the expression has more than one operator. i.e. (x = y = z),\n // which is a shortcut for (x = y AND y = z).\n\n // Firstly, determine if the operators are compatible.\n RelationalOperatorSide side = RelationalOperatorSide.NONE;\n for (Wrapper w : wrappers) {\n side = side.next(w.getTokenType());\n }\n if (side.isMixed()) {\n environment.emitError(\"XXX\");\n }\n\n // Creates the other nodes. In the expression (a = b = c = d), The \"a = b\"\n // is in the \"second\" node. Creates \"b = c\", and \"c = d\" nodes.\n List<BinaryOperatorNode> nodes = new LinkedList<BinaryOperatorNode>();\n nodes.add(second);\n\n TreeNode prev = secondWrapper.getOutput();\n while (it.hasNext()) {\n Wrapper w = it.next();\n BinaryOperatorNode current = new BinaryOperatorNode(w.getTokenType(), prev, w.getOutput());\n prev = w.getOutput();\n nodes.add(current);\n }\n\n // Combines all of the nodes in a single one using AND.\n return new VariableArityOperatorNode(BemTeVicTokenType.AND, nodes);\n }", "private Object evalETree(ETreeNode node) throws FSException{\n Object lVal,rVal;\n\n if ( node == null )\n {\n parseError(\"Malformed expression\");\n // this is never reached, just for readability\n return null;\n }\n\n if (node.type==ETreeNode.E_VAL){\n return node.value;\n }\n lVal=evalETree(node.left);\n rVal=evalETree(node.right);\n\n switch (((Integer)node.value).intValue()){\n //call the various eval functions\n case LexAnn.TT_PLUS:{\n return evalPlus(lVal,rVal);\n }\n case LexAnn.TT_MINUS:{\n return evalMinus(lVal,rVal);\n }\n case LexAnn.TT_MULT:{\n return evalMult(lVal,rVal);\n }\n case LexAnn.TT_DIV:{\n return evalDiv(lVal,rVal);\n }\n case LexAnn.TT_LEQ:{\n return evalEq(lVal,rVal);\n }\n case LexAnn.TT_LNEQ:{\n return evalNEq(lVal,rVal);\n }\n case LexAnn.TT_LLS:{\n return evalLs(lVal,rVal);\n }\n case LexAnn.TT_LLSE:{\n return evalLse(lVal,rVal);\n }\n case LexAnn.TT_LGR:{\n return evalGr(lVal,rVal);\n }\n case LexAnn.TT_LGRE:{\n return evalGre(lVal,rVal);\n }\n case LexAnn.TT_MOD:{\n return evalMod(lVal,rVal);\n }\n case LexAnn.TT_LAND:{\n return evalAnd(lVal,rVal);\n }\n case LexAnn.TT_LOR:{\n return evalOr(lVal,rVal);\n }\n }\n\n return null;\n }", "@Override\n public R visit(GraphNode n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "@Override\n public R visit(TriplesNode n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "@Override\n public R visit(IRIref n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "@Override\n public R visit(Constraint n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "public interface Node {\n Oper oper();\n CNFOrdinal toCNF();\n}", "@Override\n public R visit(NumericLiteral n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "public R visit(Operator n) {\n R _ret=null;\n int which = n.f0.which;\n String s = \" \";\n switch (which)\n {\n case 0 : {s=\"LT\"; break;}\n case 1 : {s= \"PLUS\"; break;}\n case 2 : {s= \"MINUS\";break;}\n case 3 : {s= \"TIMES\"; break;}\n }\n \t return (R)s;\n }", "Expr expr();", "public interface ExpressionNode\n{\n /** Node id for matrix nodes (remain constant) */\n public static final int MATRIX_NODE = 1;\n /** Node id for addition nodes */\n public static final int ADDITION_NODE = 2;\n /** Node id for multiplication nodes */\n public static final int MULTIPLICATION_NODE = 3;\n\n /**\n * Returns the type of the node.ExpressionNode\n *\n * Each class derived from ExpressionNode representing a specific\n * role in the expression should return the type according to that\n * role.\n * \n * @return type of the node\n */\n public int getType();\n \n /**\n * Calculates and returns the value of the sub-expression represented by\n * the node.\n * \n * @return value of expression\n */\n public Matrix getValue();\n \n /**\n * Method needed for the visitor design pattern\n * \n * @param visitor\n * the visitor\n */\n public void accept(ExpressionNodeVisitor visitor);\n\n}", "public static void parse()\r\n {\r\n int initial;\r\n initial=expression();\r\n stateList.get(0).setNext1(initial);\r\n stateList.get(0).setNext2(initial);\r\n if(index<=expression.length()-1)\r\n {\r\n error();\r\n }\r\n else\r\n {\r\n state st=new state(state,\"END\",-1,-1);\r\n stateList.add(st);\r\n }\r\n }", "@Override\n public NodeType ExecuteOperation()\n {\n //if the first child is an operator\n if(this.childNodes[0].isOperator==true)\n {\n BasicOperator basicOperator=(BasicOperator)this.childNodes[0]; \n if(basicOperator.operands==1)\n {\n UnaryOperator unaryOperator=(UnaryOperator)childNodes[0];\n return unaryOperator.PerformOperation(childNodes[1]);\n }\n else if(basicOperator.operands==2)\n {\n BinaryOperator binaryOperator=(BinaryOperator)childNodes[0];\n return binaryOperator.PerformOperation(childNodes[1], childNodes[2]);\n }\n else if(basicOperator.operands==3)\n {\n TernaryOperator ternaryOperator=(TernaryOperator)childNodes[0];\n return ternaryOperator.PerformOperation(childNodes[1], childNodes[2], childNodes[3]);\n }\n }\n //if not an operator\n else\n {\n return this.childNodes[0].ExecuteOperation();\n }\n return null;\n }", "@Test(timeout = 4000)\n public void test001() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"hN!SM~8ux(wB\");\n xPathLexer0.dollar();\n xPathLexer0.not();\n xPathLexer0.nextToken();\n xPathLexer0.leftParen();\n xPathLexer0.whitespace();\n xPathLexer0.plus();\n Token token0 = xPathLexer0.or();\n assertNull(token0);\n }", "private TreeNode exprTreeHelper(String expr) {\n if (expr.charAt(0) != '(') {\n \n \treturn new TreeNode(expr); // you fill this in\n } else{\n // expr is a parenthesized expression.\n // Strip off the beginning and ending parentheses,\n // find the main operator (an occurrence of + or * not nested\n // in parentheses, and construct the two subtrees.\n int nesting = 0;\n int opPos = 0;\n char myChar='\\0';\n \n for (int k = 1; k < expr.length() - 1; k++) {\n myChar = expr.charAt(k);\n \tif(myChar == '('){\n \tnesting++;\n }\n if(myChar==')'){\n \tnesting--;\n }\n if(nesting == 0){\n \tif(myChar == '+' || myChar == '*'){\n \t\topPos = k;\n \t break;\t\n \t}\n }\n }\n \n String opnd1 = expr.substring(1, opPos);\n String opnd2 = expr.substring(opPos + 1, expr.length() - 1);\n String op = expr.substring(opPos, opPos + 1);\n System.out.println(\"expression = \" + expr);\n System.out.println(\"operand 1 = \" + opnd1);\n System.out.println(\"operator = \" + op);\n System.out.println(\"operand 2 = \" + opnd2);\n System.out.println();\n return new TreeNode(op,exprTreeHelper(opnd1),exprTreeHelper(opnd2));\n \n }\n }", "@Override\n\tpublic void visit(Parenthesis arg0) {\n\t\t\n\t}", "@Test\n public void defaultOperatorsEvaluteTrueTest() throws Exception {\n\n assertThat(getNode(\"1 == 1\", \"expr\").render(null), is((Object)true));\n assertThat(getNode(\"1 != 2\", \"expr\").render(null), is((Object)true));\n assertThat(getNode(\"1 <> 2\", \"expr\").render(null), is((Object)true));\n assertThat(getNode(\"1 < 2\", \"expr\").render(null), is((Object)true));\n assertThat(getNode(\"2 > 1\", \"expr\").render(null), is((Object)true));\n assertThat(getNode(\"1 >= 1\", \"expr\").render(null), is((Object)true));\n assertThat(getNode(\"2 >= 1\", \"expr\").render(null), is((Object)true));\n assertThat(getNode(\"1 <= 2\", \"expr\").render(null), is((Object)true));\n assertThat(getNode(\"1 <= 1\", \"expr\").render(null), is((Object)true));\n\n // negative numbers\n assertThat(getNode(\"1 > -1\", \"expr\").render(null), is((Object)true));\n assertThat(getNode(\"-1 < 1\", \"expr\").render(null), is((Object)true));\n assertThat(getNode(\"1.0 > -1.0\", \"expr\").render(null), is((Object)true));\n assertThat(getNode(\"-1.0 < 1.0\", \"expr\").render(null), is((Object)true));\n }", "@Test(timeout = 4000)\n public void test075() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\") (\");\n Token token0 = xPathLexer0.equals();\n xPathLexer0.setPreviousToken(token0);\n assertEquals(21, token0.getTokenType());\n assertEquals(\")\", token0.getTokenText());\n \n Token token1 = xPathLexer0.identifierOrOperatorName();\n assertEquals(15, token1.getTokenType());\n assertEquals(\"\", token1.getTokenText());\n }", "private TreeNode exprTreeHelper(String expr) {\n if (expr.charAt(0) != '(') {\n return new TreeNode(expr); // you fill this in\n } else {\n // expr is a parenthesized expression.\n // Strip off the beginning and ending parentheses,\n // find the main operator (an occurrence of + or * not nested\n // in parentheses, and construct the two subtrees.\n int nesting = 0;\n int opPos = 0;\n for (int k = 1; k < expr.length() - 1; k++) {\n // you supply the missing code\n \tif (nesting == 0) {\n \t\tif (expr.charAt(k) == '+' || expr.charAt(k) == '*') {\n \t\t\topPos = k;\n \t\t}\n \t}\n \tif (expr.charAt(k) == '(') {\n \t\tnesting++;\n \t} else if (expr.charAt(k) == ')') {\n \t\tnesting--;\n \t}\n }\n String opnd1 = expr.substring(1, opPos);\n String opnd2 = expr.substring(opPos + 1, expr.length() - 1);\n String op = expr.substring(opPos, opPos + 1);\n System.out.println(\"expression = \" + expr);\n System.out.println(\"operand 1 = \" + opnd1);\n System.out.println(\"operator = \" + op);\n System.out.println(\"operand 2 = \" + opnd2);\n System.out.println();\n return new TreeNode(op, exprTreeHelper(opnd1), exprTreeHelper(opnd2)); // you fill this in\n }\n }", "public static Expr parse(String str) {\r\n\t\tExprBinary at = new ExprBinary(null, null); // the root of the tree\r\n\t\tStringBuilder opstore = new StringBuilder(); // stores operator characters\r\n\t\tStringBuilder adder = new StringBuilder(); // stores value characters\r\n\t\tboolean text = false; // whether inside of a string\r\n\r\n\t\tfor (int i = 0; i < str.length(); i++) {\r\n\t\t\tchar c = str.charAt(i);\r\n\t\t\tboolean add = (c != '\\\\'); // whether to add the char to adder. ignore escape char\r\n\t\t\tboolean leftSide = (opstore.length() == 0); // whether on the left side of the binary expression (before the operator)\r\n\t\t\tString adderStr = adder.toString();\r\n\t\t\tString opStr = opstore.toString();\r\n\r\n\t\t\tif (c == '\"') { // string\r\n\t\t\t\tif (i == 0 || str.charAt(i - 1) != '\\\\') {\r\n\t\t\t\t\ttext = !text; // ignore string contents\r\n\t\t\t\t}\r\n\t\t\t} else if (!text) {\r\n\t\t\t\tif (c == ' ') {\r\n\t\t\t\t\tadd = false; // ignore spaces\r\n\t\t\t\t} else if (c == '(') { // grouping or function\r\n\t\t\t\t\tint closeIndex = getExitIndex(str, i);\r\n\t\t\t\t\tString contents = str.substring(i + 1, closeIndex);\r\n\t\t\t\t\tExpr group; // the expression denoted by the parentheses group\r\n\r\n\t\t\t\t\tif (i > 0 && (!isReserved(str.charAt(i - 1)) || str.charAt(i - 1) == ')')) { // function\r\n\t\t\t\t\t\tif (adderStr.isEmpty()) { // function reference call ... func()()\r\n\t\t\t\t\t\t\tExpr leftLink = leftSide ? at.left() : at.right();\r\n\t\t\t\t\t\t\tExprCall rightLink = new ExprCall(null, contents); // a reference call is only a parameter group, null name\r\n\t\t\t\t\t\t\tgroup = new ExprCallChain(leftLink, rightLink);\r\n\r\n\t\t\t\t\t\t} else { // function call\r\n\t\t\t\t\t\t\tif (adderStr.startsWith(\".\")) { // function sub call ... func().subfunc()\r\n\t\t\t\t\t\t\t\tExpr leftLink = leftSide ? at.left() : at.right();\r\n\t\t\t\t\t\t\t\tExprCall rightLink = new ExprCall(adderStr.substring(1), contents);\r\n\t\t\t\t\t\t\t\tgroup = new ExprCallChain(leftLink, rightLink);\r\n\r\n\t\t\t\t\t\t\t} else { // standalone function ... func()\r\n\t\t\t\t\t\t\t\tif (Character.toString(adderStr.charAt(0)).equals(Operator.REF.op)) { // @func()\r\n\t\t\t\t\t\t\t\t\tgroup = new ExprFuncRef(adderStr.substring(1), contents);\r\n\t\t\t\t\t\t\t\t} else { // func()\r\n\t\t\t\t\t\t\t\t\tgroup = new ExprCall(adderStr, contents);\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} else { // parenthetical grouping\r\n\t\t\t\t\t\tchar cc = (adderStr.length() == 1 ? adderStr.charAt(0) : 0); // operator before parenthesis ... !()\r\n\t\t\t\t\t\tif (isReserved(cc)) { // operation on the group\r\n\t\t\t\t\t\t\tgroup = new ExprUnary(Operator.get(Character.toString(cc)), parse(contents));\r\n\t\t\t\t\t\t} else { // ignore character, not an operator\r\n\t\t\t\t\t\t\tgroup = parse(contents);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\t// add to tree\r\n\t\t\t\t\tif (leftSide) at.setLeft(group);\r\n\t\t\t\t\telse at.setRight(group);\r\n\r\n\t\t\t\t\tadder.setLength(0);\r\n\t\t\t\t\ti = closeIndex;\r\n\t\t\t\t\tadd = false;\r\n\r\n\t\t\t\t} else if (c == '{') { // array initializer ... {}\r\n\t\t\t\t\tint closeIndex = getExitIndex(str, i);\r\n\t\t\t\t\tExpr arr = new ExprArray(str.substring(i + 1, closeIndex), adderStr);\r\n\r\n\t\t\t\t\tif (adderStr.length() == 1 && isReserved(adderStr.charAt(0))) {\r\n\t\t\t\t\t\t// unary op done on array initializer ... !{}\r\n\t\t\t\t\t\tarr = new ExprUnary(Operator.get(Character.toString(adderStr.charAt(0))), arr);\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tif (leftSide) at.setLeft(arr);\r\n\t\t\t\t\telse at.setRight(arr);\r\n\r\n\t\t\t\t\tadder.setLength(0);\r\n\t\t\t\t\ti = closeIndex;\r\n\t\t\t\t\tadd = false;\r\n\r\n\t\t\t\t} else if (isOp(c)) { // operator\r\n\t\t\t\t\t// add value used in operation to tree\r\n\t\t\t\t\tif (!adderStr.isEmpty()) {\r\n\t\t\t\t\t\tif (leftSide) { // ex: adderStr + ___\r\n\t\t\t\t\t\t\tat.setLeft(parseValue(adderStr));\r\n\t\t\t\t\t\t} else { // ex: (___ + adderStr) + ___\r\n\t\t\t\t\t\t\tat.setRight(parseValue(adderStr));\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tif (opStr.equals(\"\") || (i > 0 && isOp(str.charAt(i - 1)))) { // accumulate operator from adjacent operator characters (ex: != consists of ! and =)\r\n\t\t\t\t\t\tif (!(adderStr.isEmpty() && (opStr + c).equals(\"-\")) && (Operator.get(opStr + c) != null || (opStr.isEmpty() && isOp(c)))) {// if the operator exists, then it is an operator character\r\n\t\t\t\t\t\t\tif (opStr.equals(\"-\") && c == '-') { // this and the above line handle negatives and double negatives\r\n\t\t\t\t\t\t\t\topStr = \"+\";\r\n\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\topStr += c;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tadd = false;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t} else { // existing operator operation must be added to tree ... in \"(a + b) * c\", \"(a+b)\" must be abstracted-out so we get \"x * c\"\r\n\t\t\t\t\t\tint endIndex = i + 1; // end index of operator\r\n\r\n\t\t\t\t\t\t// get entire operator if operator is more than 1 character long\r\n\t\t\t\t\t\tfor (int i2 = endIndex; i2 < str.length(); i2++) {\r\n\t\t\t\t\t\t\tif (isOp(str.charAt(i2))) endIndex++;\r\n\t\t\t\t\t\t\telse break;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tOperator nextOp = Operator.get(str.substring(i, endIndex)); // second (right-most) operator\r\n\t\t\t\t\t\tat.op = Operator.get(opStr); // first (left-most) operator\r\n\r\n\t\t\t\t\t\t// group values in operation by operator precedence\r\n\t\t\t\t\t\tint p1 = precedence(nextOp); // right-most op\r\n\t\t\t\t\t\tint p2 = precedence(at.op); // left-most op\r\n\r\n\t\t\t\t\t\tif (p1 > p2) { // group around the right-most op\r\n\t\t\t\t\t\t\tExprBinary right = new ExprBinary(at, nextOp);\r\n\t\t\t\t\t\t\tright.setLeft(at.right());\r\n\r\n\t\t\t\t\t\t\tat.setRight(right);\r\n\t\t\t\t\t\t\tat = right;\r\n\r\n\t\t\t\t\t\t} else if (p1 < p2) { // group around the left-most op\r\n\t\t\t\t\t\t\tExprBinary last = at;\r\n\t\t\t\t\t\t\tExprBinary match = at.parent();\r\n\r\n\t\t\t\t\t\t\t// correctly add to the binary tree based on precedence of operators\r\n\t\t\t\t\t\t\twhile (match instanceof ExprBinary && p1 < (p2 = precedence(((ExprBinary) match).op))) {\r\n\t\t\t\t\t\t\t\tlast = match;\r\n\t\t\t\t\t\t\t\tmatch = match.parent();\r\n\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\tExprBinary tr = new ExprBinary(match, nextOp);\r\n\t\t\t\t\t\t\ttr.setLeft(last);\r\n\r\n\t\t\t\t\t\t\tif (match != null) {\r\n\t\t\t\t\t\t\t\tif (last == match.right()) match.setRight(tr);\r\n\t\t\t\t\t\t\t\telse match.setLeft(tr);\r\n\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\tat = tr;\r\n\r\n\t\t\t\t\t\t} else { // group from left to right (equal operator precedence)\r\n\t\t\t\t\t\t\tExprBinary left = new ExprBinary(at, at.op); // group existing values into left node, add right to open right node spot\r\n\t\t\t\t\t\t\tleft.setLeft(at.left());\r\n\t\t\t\t\t\t\tleft.setRight(at.right());\r\n\r\n\t\t\t\t\t\t\tat.op = nextOp;\r\n\t\t\t\t\t\t\tat.setLeft(left);\r\n\t\t\t\t\t\t\tat.setRight(null);\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\topStr = nextOp.op;\r\n\t\t\t\t\t\ti = endIndex - 1;\r\n\t\t\t\t\t\tadd = false;\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tadder.setLength(0);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\t// store valid value characters\r\n\t\t\tif (add) {\r\n\t\t\t\tadder.append(c);\r\n\r\n\t\t\t\t// if this is the last character, then add the stored value to the tree.\r\n\t\t\t\t// otherwise, would be incorrectly ignored because there is no next operator\r\n\t\t\t\tif (i + 1 == str.length()) {\r\n\t\t\t\t\tif (opstore.length() == 0) {\r\n\t\t\t\t\t\tat.setLeft(parseValue(adder.toString()));\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tat.setRight(parseValue(adder.toString()));\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t// initialize binary tree operator if not done so already\r\n\t\tif (at.op == null) {\r\n\t\t\tat.op = Operator.get(opstore.toString());\r\n\t\t}\r\n\r\n\t\t// after traversing the tree to some point, we need to get back to root so we can return the entire tree\r\n\t\twhile (at.parent() != null) {\r\n\t\t\tat = (ExprBinary) at.parent();\r\n\t\t}\r\n\r\n\t\t// the expression may not actually be a binary operation\r\n\t\tif (at.op == null && at.right() == NULL) {\r\n\t\t\tif (at.left() == NULL) return NULL; // the expression is empty\r\n\t\t\treturn at.left(); // the expression is a single value/unary-operation\r\n\t\t}\r\n\r\n\t\treturn at;\r\n\t}", "private CalculatableNode nextNode() throws IOException {\n\t\tint ttype;\n\t\tttype = tokenizer.nextToken();\n\t\tif (ttype == StreamTokenizer.TT_NUMBER) {\n\t\t\treturn new NumericalNode((int) tokenizer.nval);\n\t\t}\n\t\tif (ttype >= 0) {\n\t\t\t// sign character such as +-*/()\n\t\t\tchar sign = (char) tokenizer.ttype;\n\t\t\tif (sign == '(') {\n\t\t\t\tCalculatableNode node = parseNode();\n\t\t\t\treturn node;\n\t\t\t}\n\t\t}\n\t\tthrow new IllegalFormulaException(\"数式が不正です\");\n\t}", "@Override\npublic final void accept(TreeVisitor visitor) {\n visitor.visitWord(OpCodes.OR_NAME);\n if (ops != null) {\n for (int i = 0; i < ops.length; i++) {\n ops[i].accept(visitor);\n }\n } else {\n visitor.visitConstant(null, \"?\");\n }\n visitor.visitEnd();\n }", "@Override\n\tpublic void visit(Parenthesis arg0) {\n\n\t}", "@Override\n public R visit(Verb n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "@Override\n public R visit(DatasetClause n, A argu) {\n R _ret = null;\n n.nodeToken.accept(this, argu);\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "@Override \n\tpublic void caseAOpExpr(AOpExpr node){\n\t\tExpressionType expType = (ExpressionType) nodeTypes.get(node.getOp()); \n\t\tswitch (expType){\n\t\t\tcase AND :\n\t\t\tcreateShortCircuitAnd(node);\n\t\t\t\tbreak;\n\t\t\tcase OR :\n\t\t\tcreateShortCircuiteOR(node);\n\t\t\t\tbreak;\n\t\t\tcase ADD :\n\t\t\t\tType left = nodeTypes.get(node.getLeft()); \n\t\t\t\tif (left == Type.STRING_TYPE){\n\t\t\t\t\tthis.createStringConcat(node);\n\t\t\t\t\tbreak; \n\t\t\t\t}\n\t\t\tdefault : \n\t\t\t\tsuper.caseAOpExpr(node); \n\t\t}\n\t}", "public interface ExpressionVisitor{\n\n void handel(BracketExpression bracketExpression);\n\n void handel(NaturalNumber naturalNumber);\n\n\n void handel(Sum sum);\n void handel(Difference difference);\n void handel(Product product);\n void handel(Quotient quotient);\n\n void handel(VariableExpression variableExpression);\n}", "protected Evaluable parseExpression() throws ParsingException {\n Evaluable sub = parseSubExpression();\n\n while (_token != null &&\n _token.type == TokenType.Operator &&\n \">=<==!=\".indexOf(_token.text) >= 0) {\n\n String op = _token.text;\n\n next(true);\n\n Evaluable sub2 = parseSubExpression();\n\n sub = new OperatorCallExpr(new Evaluable[] { sub, sub2 }, op);\n }\n\n return sub;\n }", "Expression expression() throws SyntaxException {\r\n\t\tToken first = t;\r\n\t\tExpression e0 = orExpression();\r\n\t\tif (isKind(OP_QUESTION)) {\r\n\t\t\tconsume();\r\n\t\t\tExpression e1 = expression();\r\n\t\t\tmatch(OP_COLON);\r\n\t\t\tExpression e2 = expression();\r\n\t\t\te0 = new ExpressionConditional(first, e0, e1, e2);\r\n\t\t}\r\n\t\treturn e0;\r\n\t}", "@Override\n public R visit(GraphPatternNotTriples n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "protected Evaluable parseFactor() throws ParsingException {\n if (_token == null) {\n throw makeException(\"Expecting something more at end of expression\");\n }\n\n Evaluable eval = null;\n\n if (_token.type == TokenType.String) {\n eval = new LiteralExpr(_token.text);\n next(false);\n } else if (_token.type == TokenType.Regex) {\n RegexToken t = (RegexToken) _token;\n\n try {\n Pattern pattern = Pattern.compile(_token.text, t.caseInsensitive ? Pattern.CASE_INSENSITIVE : 0);\n eval = new LiteralExpr(pattern);\n next(false);\n } catch (Exception e) {\n throw makeException(\"Bad regular expression (\" + e.getMessage() + \")\");\n }\n } else if (_token.type == TokenType.Number) {\n eval = new LiteralExpr(((NumberToken)_token).value);\n next(false);\n } else if (_token.type == TokenType.Operator && _token.text.equals(\"-\")) { // unary minus?\n next(true);\n\n if (_token != null && _token.type == TokenType.Number) {\n Number n = ((NumberToken)_token).value;\n\n eval = new LiteralExpr(n instanceof Long ? -n.longValue() : -n.doubleValue());\n\n next(false);\n } else {\n throw makeException(\"Bad negative number\");\n }\n } else if (_token.type == TokenType.Identifier) {\n String text = _token.text;\n next(false);\n\n if (_token == null || _token.type != TokenType.Delimiter || !_token.text.equals(\"(\")) {\n eval = \"null\".equals(text) ? new LiteralExpr(null) : new VariableExpr(text);\n } else if( \"PI\".equals(text) ) {\n eval = new LiteralExpr(Math.PI);\n next(false);\n } else {\n Function f = ControlFunctionRegistry.getFunction(text);\n Control c = ControlFunctionRegistry.getControl(text);\n if (f == null && c == null) {\n throw makeException(\"Unknown function or control named \" + text);\n }\n\n next(true); // swallow (\n\n List<Evaluable> args = parseExpressionList(\")\");\n\n if (c != null) {\n Evaluable[] argsA = makeArray(args);\n String errorMessage = c.checkArguments(argsA);\n if (errorMessage != null) {\n throw makeException(errorMessage);\n }\n eval = new ControlCallExpr(argsA, c);\n } else {\n eval = new FunctionCallExpr(makeArray(args), f);\n }\n }\n } else if (_token.type == TokenType.Delimiter && _token.text.equals(\"(\")) {\n next(true);\n\n eval = parseExpression();\n\n if (_token != null && _token.type == TokenType.Delimiter && _token.text.equals(\")\")) {\n next(false);\n } else {\n throw makeException(\"Missing )\");\n }\n } else if (_token.type == TokenType.Delimiter && _token.text.equals(\"[\")) { // [ ... ] array\n next(true); // swallow [\n\n List<Evaluable> args = parseExpressionList(\"]\");\n\n eval = new FunctionCallExpr(makeArray(args), new ArgsToArray());\n } else {\n throw makeException(\"Missing number, string, identifier, regex, or parenthesized expression\");\n }\n\n while (_token != null) {\n if (_token.type == TokenType.Operator && _token.text.equals(\".\")) {\n next(false); // swallow .\n\n if (_token == null || _token.type != TokenType.Identifier) {\n throw makeException(\"Missing function name\");\n }\n\n String identifier = _token.text;\n next(false);\n\n if (_token != null && _token.type == TokenType.Delimiter && _token.text.equals(\"(\")) {\n next(true); // swallow (\n\n Function f = ControlFunctionRegistry.getFunction(identifier);\n if (f == null) {\n throw makeException(\"Unknown function \" + identifier);\n }\n\n List<Evaluable> args = parseExpressionList(\")\");\n args.add(0, eval);\n\n eval = new FunctionCallExpr(makeArray(args), f);\n } else {\n eval = new FieldAccessorExpr(eval, identifier);\n }\n } else if (_token.type == TokenType.Delimiter && _token.text.equals(\"[\")) {\n next(true); // swallow [\n\n List<Evaluable> args = parseExpressionList(\"]\");\n args.add(0, eval);\n\n eval = new FunctionCallExpr(makeArray(args), ControlFunctionRegistry.getFunction(\"get\"));\n } else {\n break;\n }\n }\n\n return eval;\n }", "private void parseOr(Node node) {\r\n if (switchTest) return;\r\n int saveIn = in;\r\n parse(node.left());\r\n if (ok || in > saveIn) return;\r\n parse(node.right());\r\n }", "public Node expression()\r\n\t{\r\n\t\tNode lhs = term();\r\n\t\tif(lhs!=null)\r\n\t\t{\r\n\t\t\tint index = lexer.getPosition();\r\n\t\t\tLexer.Token token = lexer.getToken();\r\n\t\t\twhile(token == Lexer.Token.PLUS\r\n\t\t\t\t||token == Lexer.Token.MINUS)\r\n\t\t\t{\r\n\t\t\t\tNode rhs = term(); \r\n\t\t\t\tif(rhs!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tif(token == Lexer.Token.PLUS)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tlhs = new Add(lhs,rhs);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(token == Lexer.Token.MINUS)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tlhs = new Sub(lhs,rhs);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tindex = lexer.getPosition();\r\n\t\t\t\t\ttoken = lexer.getToken();\r\n\t\t\t\t}\r\n\t\t\t\telse break;\r\n\t\t\t}\r\n\t\t\tlexer.setPosition(index);\r\n\t\t}\r\n\t\treturn lhs;\r\n\t}", "public static void QuestionOne(Node n) {\n\n\n\n }", "public interface Expression {\n \n enum ExpressivoGrammar {ROOT, SUM, PRODUCT, TOKEN, PRIMITIVE_1, PRIMITIVE_2, \n NUMBER, INT, DECIMAL, WHITESPACE, VARIABLE};\n \n public static Expression buildAST(ParseTree<ExpressivoGrammar> concreteSymbolTree) {\n \n if (concreteSymbolTree.getName() == ExpressivoGrammar.DECIMAL) {\n /* reached a double terminal */\n return new Num(Double.parseDouble(concreteSymbolTree.getContents())); \n }\n\n else if (concreteSymbolTree.getName() == ExpressivoGrammar.INT) {\n /* reached an int terminal */\n return new Num(Integer.parseInt(concreteSymbolTree.getContents()));\n }\n \n else if (concreteSymbolTree.getName() == ExpressivoGrammar.VARIABLE) {\n /* reached a terminal */\n return new Var(concreteSymbolTree.getContents());\n }\n \n else if (concreteSymbolTree.getName() == ExpressivoGrammar.ROOT || \n concreteSymbolTree.getName() == ExpressivoGrammar.TOKEN || \n concreteSymbolTree.getName() == ExpressivoGrammar.PRIMITIVE_1 || \n concreteSymbolTree.getName() == ExpressivoGrammar.PRIMITIVE_2 || \n concreteSymbolTree.getName() == ExpressivoGrammar.NUMBER) {\n \n /* non-terminals with only one child */\n for (ParseTree<ExpressivoGrammar> child: concreteSymbolTree.children()) {\n if (child.getName() != ExpressivoGrammar.WHITESPACE) \n return buildAST(child);\n }\n \n // should never reach here\n throw new IllegalArgumentException(\"error in parsing\");\n }\n \n else if (concreteSymbolTree.getName() == ExpressivoGrammar.SUM || concreteSymbolTree.getName() == ExpressivoGrammar.PRODUCT) {\n /* a sum or product node can have one or more children that need to be accumulated together */\n return accumulator(concreteSymbolTree, concreteSymbolTree.getName()); \n }\n \n else {\n throw new IllegalArgumentException(\"error in input: should never reach here\");\n }\n \n }\n \n /**\n * (1) Create parser using lib6005.parser from grammar file\n * (2) Parse string input into CST\n * (3) Build AST from this CST using buildAST()\n * @param input\n * @return Expression (AST)\n */\n public static Expression parse(String input) {\n \n try {\n Parser<ExpressivoGrammar> parser = GrammarCompiler.compile(\n new File(\"src/expressivo/Expression.g\"), ExpressivoGrammar.ROOT);\n ParseTree<ExpressivoGrammar> concreteSymbolTree = parser.parse(input);\n \n// tree.display();\n \n return buildAST(concreteSymbolTree);\n \n }\n \n catch (UnableToParseException e) {\n throw new IllegalArgumentException(\"Can't parse the expression...\");\n }\n catch (IOException e) {\n System.out.println(\"Cannot open file Expression.g\");\n throw new RuntimeException(\"Can't open the file with grammar...\");\n }\n }\n \n // helper methods\n public static Expression accumulator(ParseTree<ExpressivoGrammar> tree, ExpressivoGrammar grammarObj) {\n Expression expr = null;\n boolean first = true;\n List<ParseTree<ExpressivoGrammar>> children = tree.children();\n int len = children.size();\n for (int i = len-1; i >= 0; i--) {\n /* the first child */\n ParseTree<ExpressivoGrammar> child = children.get(i);\n if (first) {\n expr = buildAST(child);\n first = false;\n }\n \n /* accumulate this by creating a new binaryOp object with\n * expr as the leftOp and the result as rightOp\n **/\n \n else if (child.getName() == ExpressivoGrammar.WHITESPACE) continue;\n else {\n if (grammarObj == ExpressivoGrammar.SUM)\n expr = new Sum(buildAST(child), expr);\n else\n expr = new Product(buildAST(child), expr);\n }\n }\n \n return expr;\n \n }\n \n // ----------------- problems 3-4 -----------------\n \n public static Expression create(Expression leftExpr, Expression rightExpr, char op) {\n if (op == '+')\n return Sum.createSum(leftExpr, rightExpr);\n else\n return Product.createProduct(leftExpr, rightExpr);\n }\n\n public Expression differentiate(Var x);\n \n public Expression simplify(Map<String, Double> env);\n\n}", "private void parse(Node node) {\r\n if (tracing && ! skipTrace) System.out.println(node.trace());\r\n skipTrace = false;\r\n switch(node.op()) {\r\n case Error: case Temp: case List: case Empty: break;\r\n case Rule: parseRule(node); break;\r\n case Id: parseId(node); break;\r\n case Or: parseOr(node); break;\r\n case And: parseAnd(node); break;\r\n case Opt: parseOpt(node); break;\r\n case Any: parseAny(node); break;\r\n case Some: parseSome(node); break;\r\n case See: parseSee(node); break;\r\n case Has: parseHas(node); break;\r\n case Not: parseNot(node); break;\r\n case Tag: parseTag(node); break;\r\n case Success: parseSuccess(node); break;\r\n case Fail: parseFail(node); break;\r\n case Eot: parseEot(node); break;\r\n case Char: parseChar(node); break;\r\n case Text: parseText(node); break;\r\n case Set: parseSet(node); break;\r\n case Range: parseRange(node); break;\r\n case Split: parseSplit(node); break;\r\n case Point: parsePoint(node); break;\r\n case Cat: parseCat(node); break;\r\n case Mark: parseMark(node); break;\r\n case Drop: parseDrop(node); break;\r\n case Act: parseAct(node); break;\r\n default: assert false : \"Unexpected node type \" + node.op(); break;\r\n }\r\n }", "void visit(Object node, String command);", "public void visit (Object expr) {\n\t\t\t\n\t\t\toffset += 2;\n\t\t\t\n\t\t\tif (expr instanceof VariableReferenceExpr) {\n\t\t\t\tvisit ( (VariableReferenceExpr) expr);\n\t\t\t} else if (expr instanceof UnionExpr) {\n\t\t\t\tvisit ( (UnionExpr) expr);\n\t\t\t} else if ( expr instanceof UnaryExpr) {\n\t\t\t\tvisit ( (UnaryExpr) expr);\n\t\t\t} else if ( expr instanceof TextNodeStep ) {\n\t\t\t\tvisit ( (TextNodeStep) expr) ;\n\t\t\t} else if ( expr instanceof RelationalExpr) {\n\t\t\t\tvisit ( (RelationalExpr) expr);\n\t\t\t} else if ( expr instanceof ProcessingInstructionNodeStep) {\n\t\t\t\tvisit ( (ProcessingInstructionNodeStep) expr) ;\n\t\t\t} else if ( expr instanceof Predicate) {\n\t\t\t\tvisit ( (Predicate) expr );\n\t\t\t} else if ( expr instanceof PathExpr) {\n\t\t\t\tvisit ( (PathExpr) expr) ;\n\t\t\t} else if ( expr instanceof NumberExpr) {\n\t\t\t\tvisit ( (NumberExpr) expr);\n\t\t\t} else if ( expr instanceof NameStep) {\n\t\t\t\tvisit ( (NameStep) expr);\n\t\t\t} else if ( expr instanceof MultiplicativeExpr) {\n\t\t\t\tvisit ( (MultiplicativeExpr) expr);\n\t\t\t} else if ( expr instanceof LogicalExpr) {\n\t\t\t\tvisit ( (LogicalExpr) expr);\n\t\t\t} else if ( expr instanceof LocationPath) {\n\t\t\t\tvisit ( (LocationPath) expr);\n\t\t\t} else if ( expr instanceof LiteralExpr) {\n\t\t\t\tvisit ( (LiteralExpr) expr);\n\t\t\t} else if ( expr instanceof FunctionCallExpr) {\n\t\t\t\tvisit ( (FunctionCallExpr) expr);\n\t\t\t} else if ( expr instanceof FilterExpr) {\n\t\t\t\tvisit ( (FilterExpr) expr);\n\t\t\t} else if ( expr instanceof EqualityExpr) {\n\t\t\t\tvisit ( (EqualityExpr) expr);\n\t\t\t} else if ( expr instanceof CommentNodeStep) {\n\t\t\t\tvisit ( (CommentNodeStep)expr);\n\t\t\t} else if ( expr instanceof AllNodeStep) {\n\t\t\t\tvisit ( (AllNodeStep) expr);\n\t\t\t} else if ( expr instanceof AdditiveExpr) {\n\t\t\t\tvisit ( (AdditiveExpr) expr);\n\t\t\t} else if (expr instanceof List) {\n\t\t\t\tvisitList((List)expr);\n\t\t\t} else if (expr != null) {\n\t\t\t\tout(\"Panic: Unknown expression kind {0} \",expr.getClass().getName()); //$NON-NLS-1$\n\t\t\t} else {\n\t\t\t\tout(\"null - unset\");\n\t\t\t}\n\t\t\t\n\t\t\toffset -= 2;\n\t\t}", "@Override\n\tpublic void visit(OrExpression arg0) {\n\t\t\n\t}", "public Snippet visit(ReturnType n, Snippet argu) {\n\t Snippet _ret=null;\n\t _ret = n.nodeChoice.accept(this, argu);\n\t return _ret;\n\t }", "@Override\n public R visit(Consequent n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "ExpOperand createExpOperand();", "@FunctionalInterface\npublic interface StepExpr extends Expr {\n\n /**\n * {@inheritDoc}\n *\n * @return evaluated XML node views\n */\n @Override\n <N extends Node> IterableNodeView<N> resolve(Navigator<N> navigator, NodeView<N> view, boolean greedy)\n throws XmlBuilderException;\n\n}", "public ExpressionNodes(String data)\n\t {\n\t this.data = data;\n\t this.left = null;\n\t this.right = null;\n\t }", "@Test(timeout = 4000)\n public void test135() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"d>%NV0\");\n Token token0 = xPathLexer0.leftParen();\n assertEquals(\"d\", token0.getTokenText());\n assertEquals(1, token0.getTokenType());\n \n Token token1 = xPathLexer0.nextToken();\n assertEquals(\">\", token1.getTokenText());\n assertEquals(9, token1.getTokenType());\n \n Token token2 = xPathLexer0.identifierOrOperatorName();\n assertEquals(15, token2.getTokenType());\n assertEquals(\"\", token2.getTokenText());\n }", "@Override\n\tpublic Object visit(ASTCondOr node, Object data) {\n\t\tnode.jjtGetChild(0).jjtAccept(this, data);\n\t\tSystem.out.print(\" or \");\n\t\tnode.jjtGetChild(1).jjtAccept(this, data);\n\t\treturn null;\n\t}", "@Override\n\tpublic Object visit(ASTParen node, Object data) {\n\t\tSystem.out.print(\"(\");\n\t\tnode.childrenAccept(this, data);\n\t\tSystem.out.print(\")\");\n\t\treturn null;\n\t}", "@Override\n public R visit(SelectQuery n, A argu) {\n R _ret = null;\n n.nodeToken.accept(this, argu);\n n.nodeOptional.accept(this, argu);\n n.nodeChoice.accept(this, argu);\n n.nodeListOptional.accept(this, argu);\n n.whereClause.accept(this, argu);\n n.solutionModifier.accept(this, argu);\n return _ret;\n }", "private InfixExpression getNode()\n{\n return (InfixExpression) ast_node;\n}", "@Override\n public R visit(NumericLiteralPositive n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "@Test(timeout = 4000)\n public void test146() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"(2><\");\n Token token0 = xPathLexer0.leftParen();\n assertEquals(\"(\", token0.getTokenText());\n assertEquals(1, token0.getTokenType());\n \n Token token1 = xPathLexer0.nextToken();\n assertEquals(\"2\", token1.getTokenText());\n assertEquals(30, token1.getTokenType());\n }", "@Override\n\tpublic String visitArExpr(ArExprContext ctx) {\n\t\tint chNo=ctx.children.size();\n\t\tif(chNo == 3){\n\t\t\tParseTree cur = ctx.getChild(1);\n\t\t\tif(cur==ctx.MULT() || cur==ctx.DIV()|| cur==ctx.PLUS() || cur==ctx.MINUS()){\n\t\t\t\tString left = visit(ctx.getChild(0));\n\t\t\t\tString right = visit(ctx.getChild(2));\n\t\t\t\tif(!(right.equals(left) && right.equals(\"int\")) ){throw new RuntimeException(\"Arithmetic operations only with integers\");}\n\t\t\t\treturn(\"int\");\n\t\t\t}\n\t\t\telse{\n\t\t\t\treturn(visit(cur));\n\t\t\t}\n\t\t}\n\t\telse{\n\t\t\tParseTree cur=ctx.getChild(0);\n\t\t\tif (cur instanceof TerminalNode) {\t\t\t\t\n\t\t\t\tif (cur==ctx.INTEG()) return \"int\";\n\t\t\t\telse if (cur==ctx.CH()) return \"char\";\n\t\t\t\telse if(cur==ctx.ID()){\n\t\t\t\t\tString key=visitTerminal((TerminalNode)cur);\n\t\t\t\t\tRecord id= table.lookup(key);\n\t\t\t\t\tif (id==null) throw new RuntimeException(\"Identifier \"+key+\" is not declared\");\t\t\t\t\t\n\t\t\t\t\treturn id.getReturnType();\t\t\t\t\t\n\t\t\t\t}\t\t\t \n\t\t\t}else {\n\t\t\t\tString type=visit(ctx.getChild(0));\n\t\t\t\treturn type;\n\t\t\t}\n\t\t\t\n\t\t}\n\t\treturn null;\n\t}", "@Test(timeout = 4000)\n public void test074() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\") (\");\n Token token0 = xPathLexer0.notEquals();\n xPathLexer0.setPreviousToken(token0);\n assertEquals(\") \", token0.getTokenText());\n assertEquals(22, token0.getTokenType());\n \n Token token1 = xPathLexer0.identifierOrOperatorName();\n assertEquals(15, token1.getTokenType());\n assertEquals(\"\", token1.getTokenText());\n }", "@Test\n\t\tpublic void testExpression() throws LexicalException, SyntaxException {\n\t\t\tString input = \"x + 2\";\n\t\t\tPLPParser parser = makeParser(input);\n\t\t\tExpression e = parser.expression(); //call expression here instead of parse\n\t\t\tshow(e);\t\n\t\t\tassertEquals(ExpressionBinary.class, e.getClass());\n\t\t\tExpressionBinary b = (ExpressionBinary)e;\n\t\t\tassertEquals(ExpressionIdentifier.class, b.leftExpression.getClass());//\n\t\t\tExpressionIdentifier left = (ExpressionIdentifier)b.leftExpression;\n\t\t\tassertEquals(\"x\", left.name);\n\t\t\tassertEquals(ExpressionIntegerLiteral.class, b.rightExpression.getClass());\n\t\t\tExpressionIntegerLiteral right = (ExpressionIntegerLiteral)b.rightExpression;\n\t\t\tassertEquals(2, right.value);\n\t\t\tassertEquals(OP_PLUS, b.op);\n\t\t}", "@Test(timeout = 4000)\n public void test019() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\">6_XdrPl\");\n Token token0 = xPathLexer0.relationalOperator();\n assertNotNull(token0);\n assertEquals(\">\", token0.getTokenText());\n assertEquals(9, token0.getTokenType());\n \n Token token1 = xPathLexer0.rightParen();\n assertEquals(2, token1.getTokenType());\n assertEquals(\"6\", token1.getTokenText());\n \n char char0 = xPathLexer0.LA(0);\n assertEquals('6', char0);\n }", "public interface Node {\n public int arityOfOperation();\n public String getText(int depth) throws CalculationException;\n public double getResult() throws CalculationException;\n public boolean isReachable(int depth);\n public List<Node> getAdjacentNodes();\n public String getTitle();\n public void setDepth(int depth);\n}", "@Override\n public R visit(NumericLiteralUnsigned n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "public void expression(Node n_parent) {\r\n if(token.get(lookAheadPossition).contains(\"ident(\")||token.get(lookAheadPossition).contains(\"num(\")||token.get(lookAheadPossition).contains(\"boollit(\")||token.get(lookAheadPossition).equals(\"LP\")){\r\n System.out.println(\":: expression::if- \"+n_parent.getData());\r\n\r\n Node makeown = new Node (\"makeown\");\r\n Node n_factor = this.simpleExpression(makeown);\r\n\r\n //compNode = expressionNode.addChild(\"Compare\");\r\n //Node n_connect =\r\n this.restExpression(n_parent,n_factor);\r\n //n_parent.setNodeChild(n_connect);\r\n }\r\n }", "@Override\n\tpublic String visitExpression(ExpressionContext ctx) {\n\t\tif(ctx.getChildCount() == 3){\n\t\t\treturn visit(ctx.getChild(1));\n\t\t}\n\t\tParseTree cur = ctx.getChild(0);\n\t\tif(!(cur instanceof TerminalNode)){\n\t\t\treturn visit(cur);\n\t\t}\n\t\telse if(cur == ctx.ID()){\n\t\t\tString key=visitTerminal((TerminalNode)cur);\n\t\t\tRecord id= table.lookup(key);\n\t\t\tif (id==null) throw new RuntimeException(\"Identifier \"+key+\" is not declared\");\t\t\t\t\t\n\t\t\treturn id.getReturnType();\n\t\t}\n\t\telse if (cur==ctx.BOOLEANLIT()) return \"boolean\";\n\t\telse if (cur==ctx.STRING()) return \"String\";\n\t\treturn null;\n\t}", "public Node factor(Node n_parent) {\r\n String identifier=\"\";\r\n String type=\"\";\r\n if(token.get(lookAheadPossition).contains(\"ident(\")){\r\n System.out.println(\":: factor:if:\");\r\n identifier = token.get(lookAheadPossition).substring(6, token.get(lookAheadPossition).length() - 1);\r\n type = (String) symbolTable.get(identifier);\r\n type=type.toLowerCase();\r\n\r\n this.CheckError(token.get(lookAheadPossition));\r\n Node n_factor =new Node(identifier+\":\"+type);\r\n\r\n return n_factor;\r\n }\r\n else if(token.get(lookAheadPossition).contains(\"num(\")){\r\n System.out.println(\":: factor:if\");\r\n identifier = token.get(lookAheadPossition).substring(4, token.get(lookAheadPossition).length() - 1);\r\n type = \"int\";\r\n\r\n this.CheckError(token.get(lookAheadPossition));\r\n Node n_factor =new Node(identifier+\":\"+type);\r\n return n_factor;\r\n }\r\n else if(token.get(lookAheadPossition).contains(\"boollit(\")){\r\n System.out.println(\":: factor:if\");\r\n identifier = token.get(lookAheadPossition).substring(8, token.get(lookAheadPossition).length() - 1);\r\n\r\n System.out.println(\":: factor:if:boollit \"+identifier);\r\n if (identifier.contentEquals(\"true\") || identifier.contentEquals(\"false\") ){ type=\"bool\";}else { type = (String) symbolTable.get(identifier); type = type.toLowerCase();}\r\n System.out.println(\":: factor:if:boolint\"+type);\r\n this.CheckError(token.get(lookAheadPossition));\r\n Node n_factor =new Node(identifier+\":\"+type);\r\n return n_factor;\r\n }\r\n else if(token.get(lookAheadPossition).equals(\"LP\")){\r\n System.out.println(\":: factor:if:: LP\");\r\n//\r\n this.CheckError(\"LP\");\r\n// Node n_LP_RP = n_parent.setChildren(\"LP:RP\");\r\n //this.simpleExpression(n_parent );\r\n Node n_factor = this.simpleExpression(n_parent);\r\n this.CheckError(\"RP\");\r\n return n_factor;\r\n }\r\n return(null);\r\n }", "public Snippet visit(Expression n, Snippet argu) {\n\t Snippet _ret=null;\n\t _ret = n.nodeChoice.accept(this, argu);\n\t return _ret;\n\t }", "int parseExpression() {\r\n\t\t\t\tint x = parseTerm();\r\n\t\t\t\tfor (;;) {\r\n\t\t\t\t\tif (eat('+'))\r\n\t\t\t\t\t\tx += parseTerm(); // addition\r\n\t\t\t\t\telse if (eat('-'))\r\n\t\t\t\t\t\tx -= parseTerm(); // subtraction\r\n\t\t\t\t\telse\r\n\t\t\t\t\t\treturn x;\r\n\t\t\t\t}\r\n\t\t\t}", "public static int expression()\r\n {\r\n //get the start state of this term\r\n int r,t1,f1;\r\n t1=r=term();\r\n\r\n //if there is no more input, we are done\r\n if(index>expression.length()-1)\r\n {\r\n return r;\r\n }\r\n\r\n //if this is concatenation\r\n if(expression.charAt(index)=='.'||isVocab(expression.charAt(index))||expression.charAt(index)=='\\\\'\r\n ||expression.charAt(index)=='['||expression.charAt(index)=='(')\r\n {\r\n //get the start state of this expression and\r\n //update next1 and next2\r\n int t2,cur;\r\n cur=state-1;\r\n t2=expression();\r\n if(stateList.get(cur).getNext1()==stateList.get(cur).getNext2())\r\n {\r\n stateList.get(cur).setNext1(t2);\r\n }\r\n stateList.get(cur).setNext2(t2);\r\n\r\n }\r\n\r\n //if there is no more input, we are done\r\n if(index>=expression.length())\r\n {\r\n return r;\r\n }\r\n\r\n //if this is alternation\r\n if(expression.charAt(index)=='|')\r\n {\r\n //if there is nothing after '|', it is a invalid expression\r\n index++;\r\n if(index>expression.length()-1)\r\n {\r\n error();\r\n }\r\n else\r\n {\r\n //create a branch state,set the nex1 of the branch state to the term\r\n //so a|b and a|b|c both work\r\n int t2;\r\n f1=state-1;\r\n\r\n state st=new state(state,\"BR\",t1,-1);\r\n stateList.add(st);\r\n r=state;\r\n state++;\r\n\r\n //get the start state of this expression\r\n t2=expression();\r\n\r\n //update the branch state's next2 to the start state of the expression\r\n stateList.get(f1+1).setNext2(t2);\r\n\r\n //update term's next1 and next2\r\n if(stateList.get(f1).getNext1()==stateList.get(f1).getNext2())\r\n {\r\n stateList.get(f1).setNext1(state);\r\n }\r\n stateList.get(f1).setNext2(state);\r\n\r\n }\r\n\r\n }\r\n\r\n\r\n return r;\r\n }", "@Override\n\tpublic void visit(OrExpression arg0) {\n\n\t}", "@Test(timeout = 4000)\n public void test149() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"m6l-dKX`qghFq8(,{\");\n Token token0 = xPathLexer0.rightParen();\n assertEquals(2, token0.getTokenType());\n assertEquals(\"m\", token0.getTokenText());\n \n Token token1 = xPathLexer0.notEquals();\n assertEquals(\"6l\", token1.getTokenText());\n assertEquals(22, token1.getTokenType());\n \n Token token2 = xPathLexer0.nextToken();\n assertEquals(\"-\", token2.getTokenText());\n assertEquals(6, token2.getTokenType());\n }", "Expr expr() throws IOException {\n\t\tExpr e = term();\n\t\twhile (look.tag == '+' || look.tag == '-') {\n\t\t\tToken tok = look;\n\t\t\tmove();\n\t\t\te = new Arith(tok, e, term());\n\t\t}\n\t\treturn e;\n\t}", "@Test(timeout = 4000)\n public void test079() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\") (\");\n Token token0 = xPathLexer0.at();\n xPathLexer0.setPreviousToken(token0);\n assertEquals(\")\", token0.getTokenText());\n assertEquals(16, token0.getTokenType());\n \n Token token1 = xPathLexer0.identifierOrOperatorName();\n assertEquals(15, token1.getTokenType());\n assertEquals(\"\", token1.getTokenText());\n }", "@Override\n\tpublic void outAOpExpr(AOpExpr node) {\n\t\tExpressionType expType = (ExpressionType) nodeTypes.get(node.getOp()); \n\t\tType left = nodeTypes.get(node.getLeft()); \n\t\tswitch (expType){\n\t\t\tcase DIV :\n\t\t\t\tcreateBinArithmetic(\"/\"); \n\t\t\t\tbreak; \n\t\t\tcase MINUS: \n\t\t\t\tcreateBinArithmetic(\"-\"); \n\t\t\t\tbreak; \n\t\t\tcase MOD: \n\t\t\t\tcreateBinArithmetic(\"%\"); \n\t\t\t\tbreak;\n\t\t\tcase MUL:\n\t\t\t\tcreateBinArithmetic(\"*\"); \n\t\t\t\tbreak; \n\t\t\tcase ADD : \n\t\t\t\tif ( left != Type.STRING_TYPE ){\n\t\t\t\t\tcreateBinArithmetic(\"+\"); \n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase AINVERSE : \n\t\t\t\til.append(new INEG()); \n\t\t\t\tbreak;\n\t\t\t\t//TODO comparison \n\t\t\tcase LOWEREQ:\n\t\t\t\tcreateCmpOp(Constants.IF_ICMPGT);\n\t\t\t\tbreak; \n\t\t\tcase LOWER :\n\t\t\t\tcreateCmpOp(Constants.IF_ICMPGE); \n\t\t\t\tbreak; \n\t\t\tcase BIGGEREQ:\n\t\t\t\tcreateCmpOp(Constants.IF_ICMPLT);\n\t\t\t\tbreak; \n\t\t\tcase BIGGER : \n\t\t\t\tcreateCmpOp(Constants.IF_ICMPLE); \n\t\t\t\tbreak; \n\t\t\tcase EQ :\n\t\t\t\tif (left == Type.BOOLEAN_TYPE || left == Type.INTEGER_TYPE)\n\t\t\t\t\tcreateCmpOp(Constants.IF_ICMPNE);\n\t\t\t\telse\n\t\t\t\t\tcreateCmpOp(Constants.IF_ACMPNE); \n\t\t\t\tbreak;\n\t\t\tcase NEQ :\n\t\t\t\tif (left == Type.BOOLEAN_TYPE || left == Type.INTEGER_TYPE)\n\t\t\t\t\tcreateCmpOp(Constants.IF_ICMPEQ);\n\t\t\t\telse\n\t\t\t\t\tcreateCmpOp(Constants.IF_ACMPEQ); \n\t\t\t\tbreak; \n\t\t\tcase NOT : \n\t\t\t\tcreateCmpOp(Constants.IFNE); \n\t\t\t\tbreak;\n\t\t}\n\t}", "@Test\n\tpublic void testExpression() throws ParseException {\n\t\tExpression expression = langParser(\"a\").expression();\n\t\tassertEquals(expression.getClass(), Identifier.class);\n\t\texpression = langParser(\"a()\").expression();\n\t\tassertEquals(expression.getClass(), FunctionCall.class);\n\t\texpression = langParser(\"a.b\").expression();\n\t\tassertEquals(expression.getClass(), MemberAccess.class);\n\t\texpression = langParser(\"1\").expression();\n\t\tassertEquals(expression.getClass(), LongLiteral.class);\n\t\texpression = langParser(\"1.1\").expression();\n\t\tassertEquals(expression.getClass(), DoubleLiteral.class);\n\t\texpression = langParser(\"if(a,b,c)\").expression();\n\t\tassertEquals(expression.getClass(), TernaryIf.class);\n\t}", "final public IASTLiteralTextNode Argument() throws ParseException {\r\n IASTLiteralTextNode node = null;\r\n Token lastToken = null;\r\n Token equalToken = null;\r\n Token firstToken = null;\r\n switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\r\n case INT:\r\n firstToken = jj_consume_token(INT);\r\n if (jj_2_3(2147483647)) {\r\n equalToken = jj_consume_token(EQUAL);\r\n switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\r\n case MINUS:\r\n jj_consume_token(MINUS);\r\n break;\r\n default:\r\n jj_la1[16] = jj_gen;\r\n ;\r\n }\r\n lastToken = jj_consume_token(INT);\r\n } else {\r\n ;\r\n }\r\n if (equalToken == null) {\r\n lastToken = firstToken;\r\n }\r\n break;\r\n case ASTERISK:\r\n case WORD:\r\n case STRING:\r\n case PACKAGE_OPTION:\r\n switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\r\n case ASTERISK:\r\n firstToken = jj_consume_token(ASTERISK);\r\n break;\r\n case PACKAGE_OPTION:\r\n firstToken = jj_consume_token(PACKAGE_OPTION);\r\n break;\r\n case WORD:\r\n firstToken = jj_consume_token(WORD);\r\n break;\r\n case STRING:\r\n firstToken = jj_consume_token(STRING);\r\n break;\r\n default:\r\n jj_la1[17] = jj_gen;\r\n jj_consume_token(-1);\r\n throw new ParseException();\r\n }\r\n lastToken = firstToken;\r\n break;\r\n default:\r\n jj_la1[18] = jj_gen;\r\n jj_consume_token(-1);\r\n throw new ParseException();\r\n }\r\n node = getRawLiteralTextNodeSpanning(firstToken, lastToken);\r\n {if (true) return node;}\r\n throw new Error(\"Missing return statement in function\");\r\n }", "public void accept(ExpressionNodeVisitor visitor);", "public static Node executeExpressions(Node node, Environment env) {\n Node statement = node;\n Node nextStatement = statement.getCdr();\n\n\n while (!nextStatement.isNull()) {\n statement.getCar().eval(statement, env);\n statement = nextStatement;\n nextStatement = nextStatement.getCdr();\n }\n return statement.getCar().eval(statement, env);\n }", "public Expression differentiate(String var) {\r\n // var might be a differentiate of other variable\r\n if (!this.toString().equalsIgnoreCase(var)) {\r\n return (Expression) new Num(0);\r\n }\r\n return (Expression) new Num(1);\r\n\r\n }", "public Snippet visit(Type n, Snippet argu) {\n\t Snippet _ret=null;\n\t _ret = n.nodeChoice.accept(this, argu);\n\t return _ret;\n\t }", "public abstract XPathExpression getExpression();", "Operands createOperands();", "ParenthesisExpr createParenthesisExpr();", "public Snippet visit(ExplodedSpecification n, Snippet argu) {\n\t Snippet _ret=null;\n\t _ret = n.nodeChoice.accept(this, argu);\n\t return _ret;\n\t }", "Expression createExpression();", "@Override\n\tpublic Object visit(FuncNode funcNode) {\n\t\tif (funcNode.getChild(0) != null) \n\t\t\tfuncNode.getChild(0).accept(this);\t\n\t\t\n\t\t//Variables\n\t\tif (funcNode.getChild(1) != null)\n\t\t\tfuncNode.getChild(1).accept(this);\n\t\n\t\t//Compstmt\n\t\tfuncNode.getChild(2).accept(this);\n\t\t\n\treturn null; }", "@Override\n public Node visit(BinaryExpression nd, Void v) {\n if (\"??\".equals(nd.getOperator())) return nd;\n return nd.getLeft().accept(this, v);\n }", "@Override\r\n\tpublic boolean visit(QualifiedName node) {\r\n\t\toperand(node,node.getFullyQualifiedName());\r\n\t\treturn false;\r\n\t}", "public static void parseLine(String input){\r\n\t\tfor(int i = 0;i<input.length();i++){\r\n\t\t\t\r\n\t\t\tString currentChar = parseChar(input,i);\r\n\t\t\ti+=currentChar.length()-1; //skip past all integer characters if there are any\r\n\t\t\t\r\n\t\t\tif(checkOperand(currentChar)){\r\n\t\t\t\texpressionTree.treeStack.push(new Node(currentChar));\r\n\t\t\t}else if(checkOperator(currentChar)){\r\n\t\t\t\tNode node = new Node(currentChar);\r\n\t\t\t\t\r\n\t\t\t\tif(!expressionTree.treeStack.empty()){\r\n\t\t\t\t\tnode.rightNode = (Node) expressionTree.treeStack.peek();\r\n\t\t\t\t\tnode.rightNode.parentNode = node;\r\n\t\t\t\t\texpressionTree.treeStack.pop();\r\n\t\t\t\t}\r\n\t\t\t\tif(!expressionTree.treeStack.empty()){\r\n\t\t\t\t\tnode.leftNode = (Node) expressionTree.treeStack.peek();\r\n\t\t\t\t\tnode.leftNode.parentNode = node;\r\n\t\t\t\t\texpressionTree.treeStack.pop();\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\texpressionTree.treeStack.push(node);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "@Override\r\n\tpublic boolean visit(VariableDeclarationFragment node) {\r\n//\t\toperator(node);\r\n\t\treturn true;\r\n\t}", "final public Expression GraphNode(Exp stack) throws ParseException {\n Expression expression1;\n if (jj_2_17(2)) {\n expression1 = VarOrTerm(stack);\n } else {\n switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n case ATLIST:\n case ATPATH:\n case LPAREN:\n case LBRACKET:\n case AT:\n expression1 = TriplesNode(stack);\n break;\n default:\n jj_la1[229] = jj_gen;\n jj_consume_token(-1);\n throw new ParseException();\n }\n }\n {if (true) return expression1;}\n throw new Error(\"Missing return statement in function\");\n }", "public abstract Node apply(Node node);", "public static Temp evalExpression(CommonTree tree){\n\t\t// leaf node, int/float/id\n\n\t\tif (tree.getChildCount() == 0){\n\t\t\tTemp temp = new Temp(temperaryNum++,tree.getType(),tree.getText());\n\t\t\tif (tree.getType() == LittleParser.INTLITERAL){\n\t\t\t\tircode.add(new ThreeOpCode(\"STOREI\",tree.getText(),temp.getName()));\n\t\t\t}\n\t\t\telse if(tree.getType() == LittleParser.FLOATLITERAL){\n\t\t\t\tircode.add(new ThreeOpCode(\"STOREF\",tree.getText(),temp.getName()));\n\t\t\t}\n\t\t\telse{ // look up the variable in the symbol table to set type, use var_name instead of $Tx and recycle $Tx\n\t\t\t\ttemp.setType(allTables.lookupType(temp.getValue().trim()));\n\t\t\t\ttemp.setName(tree.getText());\n\t\t\t\ttemperaryNum--;\n\t\t\t}\n\t\t\treturn temp;\n\t\t}\n\t\t// Not a leaf node, evaluate children expressions\n\t\telse{\n\t\t\t// test for function call\n\t\t\tif (tree.getType() == LittleParser.FUNC_CALL){\n\t\t\t\t// add IR for evaluating the function and return temperary for return value\n\t\t\t\t// after it has been popped off the stack\n\t\t\t\treturn evalFunction(tree);\n\t\t\t}\n\t\t\t//\t\t\tif (tree.getChild(0).getChildCount() == 0 && tree.getChild(1).getChildCount() == 0){\n\t\t\t//\t\t\t\tif ()\n\t\t\t//\t\t\t}\n\t\t\tTemp left = evalExpression((CommonTree) tree.getChild(0));\n\t\t\tTemp right = evalExpression((CommonTree) tree.getChild(1));\n\n\t\t\tTemp temp = new Temp(temperaryNum++,left.getType(), \"EXP\");\n\t\t\tif (tree.getText().contains(\"+\")){ // add\n\t\t\t\tif (left.getType() == LittleParser.INTLITERAL && right.getType() == LittleParser.INTLITERAL){\n\t\t\t\t\tircode.add(new ThreeOpCode(\"ADDI\",left.getName(),right.getName(),temp.getName()));\n\t\t\t\t}\n\t\t\t\telse if (left.getType() == LittleParser.FLOATLITERAL || right.getType() == LittleParser.FLOATLITERAL){\n\t\t\t\t\tircode.add(new ThreeOpCode(\"ADDR\",left.getName(),right.getName(),temp.getName()));\n\t\t\t\t} //both parameters\n\t\t\t\telse if (left.getType() == -1 && right.getType() == -1){\n\t\t\t\t\t//System.out.println(left.getName() + \": \" + left.getType() + \" \" + right.getName() + \": \" + right.getType());\n\t\t\t\t\t// need to lookup symbol in main and then global to find type\n\t\t\t\t\tint ltype = allTables.lookupType(left.name);\n\t\t\t\t\tint rtype = allTables.lookupType(right.name);\n\t\t\t\t\tif (ltype == LittleParser.INTLITERAL && rtype == LittleParser.INTLITERAL){\n\t\t\t\t\t\tircode.add(new ThreeOpCode(\"ADDI\", left.getName(),right.getName(),temp.getName()));\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t\tircode.add(new ThreeOpCode(\"ADDR\", left.getName(),right.getName(),temp.getName()));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tircode.add(new ThreeOpCode(\"ADDI\",left.getName(),right.getName(),temp.getName()));\n\t\t\t\t\ttemp.setType(LittleParser.INTLITERAL);\n\t\t\t\t}\n\t\t\t}\n\t\t\telse if (tree.getText().contains(\"-\")){ // subtract\n\t\t\t\tif (left.getType() == LittleParser.INTLITERAL && right.getType() == LittleParser.INTLITERAL){\n\t\t\t\t\tircode.add(new ThreeOpCode(\"SUBI\",left.getName(),right.getName(),temp.getName()));\n\t\t\t\t}\n\t\t\t\telse if (left.getType() == LittleParser.FLOATLITERAL || right.getType() == LittleParser.FLOATLITERAL){\n\t\t\t\t\tircode.add(new ThreeOpCode(\"SUBR\",left.getName(),right.getName(),temp.getName()));\n\t\t\t\t}\n\t\t\t\telse if (left.getType() == -1 && right.getType() == -1){\n\t\t\t\t\t//System.out.println(left.getName() + \": \" + left.getType() + \" \" + right.getName() + \": \" + right.getType());\n\t\t\t\t\t// need to lookup symbol in main and then global to find type\n\t\t\t\t\tint ltype = allTables.lookupType(left.name);\n\t\t\t\t\tint rtype = allTables.lookupType(right.name);\n\t\t\t\t\tif (ltype == LittleParser.INTLITERAL && rtype == LittleParser.INTLITERAL){\n\t\t\t\t\t\tircode.add(new ThreeOpCode(\"SUBI\", left.getName(),right.getName(),temp.getName()));\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t\tircode.add(new ThreeOpCode(\"SUBR\", left.getName(),right.getName(),temp.getName()));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tircode.add(new ThreeOpCode(\"SUBI\",left.getName(),right.getName(),temp.getName()));\n\t\t\t\t\ttemp.setType(LittleParser.INTLITERAL);\n\t\t\t\t}\n\t\t\t}\n\t\t\telse if (tree.getText().contains(\"*\")){ // multiply\n\t\t\t\tif (left.getType() == LittleParser.INTLITERAL && right.getType() == LittleParser.INTLITERAL){\n\t\t\t\t\t//System.out.println(\"MULTI \" + left.getName() + \" \" + right.getName() + \" \"+temp.getName());\n\t\t\t\t\tircode.add(new ThreeOpCode(\"MULI\",left.getName(),right.getName(),temp.getName()));\n\t\t\t\t}\n\t\t\t\telse if (left.getType() == LittleParser.FLOATLITERAL || right.getType() == LittleParser.FLOATLITERAL){\n\t\t\t\t\t//System.out.println(\"MULTF \" + left.getName() + \" \" + right.getName() + \" \"+temp.getName());\n\t\t\t\t\tircode.add(new ThreeOpCode(\"MULR\",left.getName(),right.getName(),temp.getName()));\n\t\t\t\t}\n\t\t\t\telse if (left.getType() == -1 && right.getType() == -1){\n\t\t\t\t\t//System.out.println(left.getName() + \": \" + left.getType() + \" \" + right.getName() + \": \" + right.getType());\n\t\t\t\t\t// need to lookup symbol in main and then global to find type\n\t\t\t\t\tint ltype = allTables.lookupType(left.name);\n\t\t\t\t\tint rtype = allTables.lookupType(right.name);\n\t\t\t\t\tif (ltype == LittleParser.INTLITERAL && rtype == LittleParser.INTLITERAL){\n\t\t\t\t\t\tircode.add(new ThreeOpCode(\"MULI\", left.getName(),right.getName(),temp.getName()));\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t\tircode.add(new ThreeOpCode(\"MULR\", left.getName(),right.getName(),temp.getName()));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\t//System.out.println(\"MULTI \" + left.getName() + \" \" + right.getName() + \" \"+temp.getName());\n\t\t\t\t\tircode.add(new ThreeOpCode(\"MULI\",left.getName(),right.getName(),temp.getName()));\n\t\t\t\t\ttemp.setType(LittleParser.INTLITERAL);\n\t\t\t\t}\n\t\t\t}\n\t\t\telse{ // divide\n\t\t\t\tif (right.getType() == LittleParser.INTLITERAL && left.getType() == LittleParser.FLOATLITERAL){\n\t\t\t\t\t//System.out.println(\"DIVI \" + left.getName() + \" \" + right.getName() + \" \"+temp.getName());\n\t\t\t\t\tircode.add(new ThreeOpCode(\"DIVI\",left.getName(),right.getName(),temp.getName()));\n\t\t\t\t}\n\t\t\t\telse if (right.getType() == LittleParser.FLOATLITERAL || left.getType() == LittleParser.FLOATLITERAL){\n\t\t\t\t\t//System.out.println(\"DIVF \" + left.getName() + \" \" + right.getName() + \" \"+temp.getName());\n\t\t\t\t\tircode.add(new ThreeOpCode(\"DIVR\",left.getName(),right.getName(),temp.getName()));\n\t\t\t\t}\n\t\t\t\telse if (left.getType() == -1 && right.getType() == -1){\n\t\t\t\t\t//System.out.println(left.getName() + \": \" + left.getType() + \" \" + right.getName() + \": \" + right.getType());\n\t\t\t\t\t// need to lookup symbol in main and then global to find type\n\t\t\t\t\tint ltype = allTables.lookupType(left.name);\n\t\t\t\t\tint rtype = allTables.lookupType(right.name);\n\t\t\t\t\tif (ltype == LittleParser.INTLITERAL && rtype == LittleParser.INTLITERAL){\n\t\t\t\t\t\tircode.add(new ThreeOpCode(\"DIVI\", left.getName(),right.getName(),temp.getName()));\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t\tircode.add(new ThreeOpCode(\"DIVR\", left.getName(),right.getName(),temp.getName()));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\t//System.out.println(\"DIVI \" + left.getName() + \" \" + right.getName() + \" \"+temp.getName());\n\t\t\t\t\tircode.add(new ThreeOpCode(\"DIVI\",left.getName(),right.getName(),temp.getName()));\n\t\t\t\t\ttemp.setType(LittleParser.INTLITERAL);\n\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn temp;\n\t\t}\n\n\t}", "@Test(timeout = 4000)\n public void test112() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"ji{:[5xw96\");\n Token token0 = xPathLexer0.rightParen();\n assertEquals(2, token0.getTokenType());\n assertEquals(\"j\", token0.getTokenText());\n \n Token token1 = xPathLexer0.dollar();\n assertEquals(26, token1.getTokenType());\n assertEquals(\"i\", token1.getTokenText());\n \n Token token2 = xPathLexer0.notEquals();\n assertEquals(\"{:\", token2.getTokenText());\n assertEquals(22, token2.getTokenType());\n \n Token token3 = xPathLexer0.nextToken();\n assertEquals(3, token3.getTokenType());\n assertEquals(\"[\", token3.getTokenText());\n \n Token token4 = xPathLexer0.identifierOrOperatorName();\n assertEquals(15, token4.getTokenType());\n assertEquals(\"5xw96\", token4.getTokenText());\n }", "@Test(timeout = 4000)\n public void test114() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\":Y[~gy\");\n Token token0 = xPathLexer0.leftParen();\n assertEquals(1, token0.getTokenType());\n assertEquals(\":\", token0.getTokenText());\n \n Token token1 = xPathLexer0.nextToken();\n assertEquals(15, token1.getTokenType());\n assertEquals(\"Y\", token1.getTokenText());\n }", "@Override\n public R visit(RegexExpression n, A argu) {\n R _ret = null;\n n.nodeToken.accept(this, argu);\n n.nodeToken1.accept(this, argu);\n n.expression.accept(this, argu);\n n.nodeToken2.accept(this, argu);\n n.expression1.accept(this, argu);\n n.nodeOptional.accept(this, argu);\n n.nodeToken3.accept(this, argu);\n return _ret;\n }", "@Override\n\tpublic Object visit(ASTRelational node, Object data)\n\t{\n\t\treturn visitOperatorNode(node, data);\n\t}", "@Override\r\n\tpublic void visit(BinaryExpression binaryExpression) {\n\r\n\t}" ]
[ "0.6147068", "0.61435986", "0.60234594", "0.5958757", "0.58473474", "0.5821135", "0.58146894", "0.57876676", "0.5760967", "0.5704279", "0.5702726", "0.5700981", "0.5691921", "0.56553656", "0.559495", "0.55700386", "0.55203825", "0.55162984", "0.5508685", "0.5477042", "0.5464018", "0.5456132", "0.5436449", "0.5434842", "0.5429433", "0.54040575", "0.539212", "0.5373319", "0.53634846", "0.5359466", "0.5356935", "0.5352705", "0.5352489", "0.53462434", "0.5342814", "0.533372", "0.53333575", "0.5326143", "0.532434", "0.532055", "0.53184086", "0.5314231", "0.5305509", "0.52476174", "0.52444696", "0.52440274", "0.5240849", "0.5227612", "0.52223086", "0.52182823", "0.520271", "0.5189117", "0.51804775", "0.51771903", "0.51730037", "0.5172014", "0.5169263", "0.5163796", "0.51637405", "0.5157321", "0.5152836", "0.5152495", "0.5150435", "0.51493955", "0.51470894", "0.51400685", "0.5135248", "0.5135162", "0.51316756", "0.5131361", "0.51303524", "0.51272506", "0.5122916", "0.5115573", "0.5110251", "0.5099923", "0.5095787", "0.50902987", "0.5072999", "0.50635654", "0.5057513", "0.50514364", "0.50474805", "0.5043523", "0.5042995", "0.5042933", "0.5041063", "0.50399", "0.5039729", "0.5037664", "0.50229037", "0.5021667", "0.50202984", "0.501763", "0.5012494", "0.5010057", "0.5009144", "0.5007454", "0.50045407", "0.5002731" ]
0.5613564
14
nodeToken > nodeToken1 > "(" expression > Expression() nodeToken2 > "," expression1 > Expression() nodeOptional > ( "," Expression() )? nodeToken3 > ")"
@Override public R visit(RegexExpression n, A argu) { R _ret = null; n.nodeToken.accept(this, argu); n.nodeToken1.accept(this, argu); n.expression.accept(this, argu); n.nodeToken2.accept(this, argu); n.expression1.accept(this, argu); n.nodeOptional.accept(this, argu); n.nodeToken3.accept(this, argu); return _ret; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test(timeout = 4000)\n public void test153() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\") (\");\n Token token0 = xPathLexer0.nextToken();\n assertEquals(\")\", token0.getTokenText());\n assertEquals(2, token0.getTokenType());\n }", "@Test(timeout = 4000)\n public void test075() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\") (\");\n Token token0 = xPathLexer0.equals();\n xPathLexer0.setPreviousToken(token0);\n assertEquals(21, token0.getTokenType());\n assertEquals(\")\", token0.getTokenText());\n \n Token token1 = xPathLexer0.identifierOrOperatorName();\n assertEquals(15, token1.getTokenType());\n assertEquals(\"\", token1.getTokenText());\n }", "@Override\n public TreeNode parse() {\n TreeNode first = ArithmeticSubexpression.getAdditive(environment).parse();\n if (first == null) return null;\n\n // Try to parse something starting with an operator.\n List<Wrapper> wrappers = RightSideSubexpression.createKleene(\n environment, ArithmeticSubexpression.getAdditive(environment),\n BemTeVicTokenType.EQUAL, BemTeVicTokenType.DIFFERENT,\n BemTeVicTokenType.GREATER_OR_EQUALS, BemTeVicTokenType.GREATER_THAN,\n BemTeVicTokenType.LESS_OR_EQUALS, BemTeVicTokenType.LESS_THAN\n ).parse();\n\n // If did not found anything starting with an operator, return the first node.\n if (wrappers.isEmpty()) return first;\n\n // Constructs a binary operator node containing the expression.\n Iterator<Wrapper> it = wrappers.iterator();\n Wrapper secondWrapper = it.next();\n BinaryOperatorNode second = new BinaryOperatorNode(secondWrapper.getTokenType(), first, secondWrapper.getOutput());\n\n if (wrappers.size() == 1) return second;\n\n // If we reach this far, the expression has more than one operator. i.e. (x = y = z),\n // which is a shortcut for (x = y AND y = z).\n\n // Firstly, determine if the operators are compatible.\n RelationalOperatorSide side = RelationalOperatorSide.NONE;\n for (Wrapper w : wrappers) {\n side = side.next(w.getTokenType());\n }\n if (side.isMixed()) {\n environment.emitError(\"XXX\");\n }\n\n // Creates the other nodes. In the expression (a = b = c = d), The \"a = b\"\n // is in the \"second\" node. Creates \"b = c\", and \"c = d\" nodes.\n List<BinaryOperatorNode> nodes = new LinkedList<BinaryOperatorNode>();\n nodes.add(second);\n\n TreeNode prev = secondWrapper.getOutput();\n while (it.hasNext()) {\n Wrapper w = it.next();\n BinaryOperatorNode current = new BinaryOperatorNode(w.getTokenType(), prev, w.getOutput());\n prev = w.getOutput();\n nodes.add(current);\n }\n\n // Combines all of the nodes in a single one using AND.\n return new VariableArityOperatorNode(BemTeVicTokenType.AND, nodes);\n }", "@Test(timeout = 4000)\n public void test001() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"hN!SM~8ux(wB\");\n xPathLexer0.dollar();\n xPathLexer0.not();\n xPathLexer0.nextToken();\n xPathLexer0.leftParen();\n xPathLexer0.whitespace();\n xPathLexer0.plus();\n Token token0 = xPathLexer0.or();\n assertNull(token0);\n }", "public static void parse()\r\n {\r\n int initial;\r\n initial=expression();\r\n stateList.get(0).setNext1(initial);\r\n stateList.get(0).setNext2(initial);\r\n if(index<=expression.length()-1)\r\n {\r\n error();\r\n }\r\n else\r\n {\r\n state st=new state(state,\"END\",-1,-1);\r\n stateList.add(st);\r\n }\r\n }", "@Test(timeout = 4000)\n public void test074() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\") (\");\n Token token0 = xPathLexer0.notEquals();\n xPathLexer0.setPreviousToken(token0);\n assertEquals(\") \", token0.getTokenText());\n assertEquals(22, token0.getTokenType());\n \n Token token1 = xPathLexer0.identifierOrOperatorName();\n assertEquals(15, token1.getTokenType());\n assertEquals(\"\", token1.getTokenText());\n }", "@Override\n\tpublic void visit(Parenthesis arg0) {\n\t\t\n\t}", "@Override\n\tpublic void visit(Parenthesis arg0) {\n\n\t}", "@Test(timeout = 4000)\n public void test146() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"(2><\");\n Token token0 = xPathLexer0.leftParen();\n assertEquals(\"(\", token0.getTokenText());\n assertEquals(1, token0.getTokenType());\n \n Token token1 = xPathLexer0.nextToken();\n assertEquals(\"2\", token1.getTokenText());\n assertEquals(30, token1.getTokenType());\n }", "@Test(timeout = 4000)\n public void test079() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\") (\");\n Token token0 = xPathLexer0.at();\n xPathLexer0.setPreviousToken(token0);\n assertEquals(\")\", token0.getTokenText());\n assertEquals(16, token0.getTokenType());\n \n Token token1 = xPathLexer0.identifierOrOperatorName();\n assertEquals(15, token1.getTokenType());\n assertEquals(\"\", token1.getTokenText());\n }", "@Override\n\tpublic Object visit(ASTXQueryComma node, Object data) {\n\t\tnode.jjtGetChild(0).jjtAccept(this, data);\n\t\tSystem.out.println(\",\");\n\t\tnode.jjtGetChild(1).jjtAccept(this, data);\n\t\treturn null;\n\t}", "@Test(timeout = 4000)\n public void test150() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"4,\");\n Token token0 = xPathLexer0.leftParen();\n assertEquals(\"4\", token0.getTokenText());\n assertEquals(1, token0.getTokenType());\n \n Token token1 = xPathLexer0.nextToken();\n assertEquals(32, token1.getTokenType());\n assertEquals(\",\", token1.getTokenText());\n }", "@Test(timeout = 4000)\n public void test149() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"m6l-dKX`qghFq8(,{\");\n Token token0 = xPathLexer0.rightParen();\n assertEquals(2, token0.getTokenType());\n assertEquals(\"m\", token0.getTokenText());\n \n Token token1 = xPathLexer0.notEquals();\n assertEquals(\"6l\", token1.getTokenText());\n assertEquals(22, token1.getTokenType());\n \n Token token2 = xPathLexer0.nextToken();\n assertEquals(\"-\", token2.getTokenText());\n assertEquals(6, token2.getTokenType());\n }", "@Test(timeout = 4000)\n public void test061() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\") (\");\n Token token0 = xPathLexer0.whitespace();\n assertEquals(\"\", token0.getTokenText());\n assertEquals((-2), token0.getTokenType());\n }", "@Test(timeout = 4000)\n public void test135() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"d>%NV0\");\n Token token0 = xPathLexer0.leftParen();\n assertEquals(\"d\", token0.getTokenText());\n assertEquals(1, token0.getTokenType());\n \n Token token1 = xPathLexer0.nextToken();\n assertEquals(\">\", token1.getTokenText());\n assertEquals(9, token1.getTokenType());\n \n Token token2 = xPathLexer0.identifierOrOperatorName();\n assertEquals(15, token2.getTokenType());\n assertEquals(\"\", token2.getTokenText());\n }", "@Test(timeout = 4000)\n public void test161() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\") T/\");\n Token token0 = xPathLexer0.leftParen();\n assertEquals(1, token0.getTokenType());\n assertEquals(\")\", token0.getTokenText());\n \n Token token1 = xPathLexer0.nextToken();\n assertEquals(15, token1.getTokenType());\n assertEquals(\"T\", token1.getTokenText());\n }", "@Test(timeout = 4000)\n public void test132() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"3APV;W&5C\\\"!eSgJk*X\");\n Token token0 = xPathLexer0.leftParen();\n assertEquals(1, token0.getTokenType());\n assertEquals(\"3\", token0.getTokenText());\n \n Token token1 = xPathLexer0.nextToken();\n assertEquals(\"APV\", token1.getTokenText());\n assertEquals(15, token1.getTokenType());\n }", "@Test(timeout = 4000)\n public void test084() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"(xA>7o;9b=;e*Y(m\");\n Token token0 = xPathLexer0.rightParen();\n xPathLexer0.setPreviousToken(token0);\n Token token1 = xPathLexer0.identifierOrOperatorName();\n assertNull(token1);\n }", "protected Evaluable parseExpression() throws ParsingException {\n Evaluable sub = parseSubExpression();\n\n while (_token != null &&\n _token.type == TokenType.Operator &&\n \">=<==!=\".indexOf(_token.text) >= 0) {\n\n String op = _token.text;\n\n next(true);\n\n Evaluable sub2 = parseSubExpression();\n\n sub = new OperatorCallExpr(new Evaluable[] { sub, sub2 }, op);\n }\n\n return sub;\n }", "@Test\n\tpublic void testExpressionList() throws ParseException {\n\t\tList<Expression> list = langParser(\"\").expressionList();\n\t\tassertEquals(list.size(), 0);\n\t\tlist = langParser(\"a\").expressionList();\n\t\tassertEquals(list.size(), 1);\n\t\tlist = langParser(\"a, b\").expressionList();\n\t\tassertEquals(list.size(), 2);\n\t}", "public interface Expression {\n \n enum ExpressivoGrammar {ROOT, SUM, PRODUCT, TOKEN, PRIMITIVE_1, PRIMITIVE_2, \n NUMBER, INT, DECIMAL, WHITESPACE, VARIABLE};\n \n public static Expression buildAST(ParseTree<ExpressivoGrammar> concreteSymbolTree) {\n \n if (concreteSymbolTree.getName() == ExpressivoGrammar.DECIMAL) {\n /* reached a double terminal */\n return new Num(Double.parseDouble(concreteSymbolTree.getContents())); \n }\n\n else if (concreteSymbolTree.getName() == ExpressivoGrammar.INT) {\n /* reached an int terminal */\n return new Num(Integer.parseInt(concreteSymbolTree.getContents()));\n }\n \n else if (concreteSymbolTree.getName() == ExpressivoGrammar.VARIABLE) {\n /* reached a terminal */\n return new Var(concreteSymbolTree.getContents());\n }\n \n else if (concreteSymbolTree.getName() == ExpressivoGrammar.ROOT || \n concreteSymbolTree.getName() == ExpressivoGrammar.TOKEN || \n concreteSymbolTree.getName() == ExpressivoGrammar.PRIMITIVE_1 || \n concreteSymbolTree.getName() == ExpressivoGrammar.PRIMITIVE_2 || \n concreteSymbolTree.getName() == ExpressivoGrammar.NUMBER) {\n \n /* non-terminals with only one child */\n for (ParseTree<ExpressivoGrammar> child: concreteSymbolTree.children()) {\n if (child.getName() != ExpressivoGrammar.WHITESPACE) \n return buildAST(child);\n }\n \n // should never reach here\n throw new IllegalArgumentException(\"error in parsing\");\n }\n \n else if (concreteSymbolTree.getName() == ExpressivoGrammar.SUM || concreteSymbolTree.getName() == ExpressivoGrammar.PRODUCT) {\n /* a sum or product node can have one or more children that need to be accumulated together */\n return accumulator(concreteSymbolTree, concreteSymbolTree.getName()); \n }\n \n else {\n throw new IllegalArgumentException(\"error in input: should never reach here\");\n }\n \n }\n \n /**\n * (1) Create parser using lib6005.parser from grammar file\n * (2) Parse string input into CST\n * (3) Build AST from this CST using buildAST()\n * @param input\n * @return Expression (AST)\n */\n public static Expression parse(String input) {\n \n try {\n Parser<ExpressivoGrammar> parser = GrammarCompiler.compile(\n new File(\"src/expressivo/Expression.g\"), ExpressivoGrammar.ROOT);\n ParseTree<ExpressivoGrammar> concreteSymbolTree = parser.parse(input);\n \n// tree.display();\n \n return buildAST(concreteSymbolTree);\n \n }\n \n catch (UnableToParseException e) {\n throw new IllegalArgumentException(\"Can't parse the expression...\");\n }\n catch (IOException e) {\n System.out.println(\"Cannot open file Expression.g\");\n throw new RuntimeException(\"Can't open the file with grammar...\");\n }\n }\n \n // helper methods\n public static Expression accumulator(ParseTree<ExpressivoGrammar> tree, ExpressivoGrammar grammarObj) {\n Expression expr = null;\n boolean first = true;\n List<ParseTree<ExpressivoGrammar>> children = tree.children();\n int len = children.size();\n for (int i = len-1; i >= 0; i--) {\n /* the first child */\n ParseTree<ExpressivoGrammar> child = children.get(i);\n if (first) {\n expr = buildAST(child);\n first = false;\n }\n \n /* accumulate this by creating a new binaryOp object with\n * expr as the leftOp and the result as rightOp\n **/\n \n else if (child.getName() == ExpressivoGrammar.WHITESPACE) continue;\n else {\n if (grammarObj == ExpressivoGrammar.SUM)\n expr = new Sum(buildAST(child), expr);\n else\n expr = new Product(buildAST(child), expr);\n }\n }\n \n return expr;\n \n }\n \n // ----------------- problems 3-4 -----------------\n \n public static Expression create(Expression leftExpr, Expression rightExpr, char op) {\n if (op == '+')\n return Sum.createSum(leftExpr, rightExpr);\n else\n return Product.createProduct(leftExpr, rightExpr);\n }\n\n public Expression differentiate(Var x);\n \n public Expression simplify(Map<String, Double> env);\n\n}", "@Override\n public R visit(BrackettedExpression n, A argu) {\n R _ret = null;\n n.nodeToken.accept(this, argu);\n n.expression.accept(this, argu);\n n.nodeToken1.accept(this, argu);\n return _ret;\n }", "@Override\n public Expression asExpression(TokenValue<?> token, Deque<Value<Expression>> next) {\n Additive op = token.getValue(); // + | -\n // + is always followed by an argument\n Expression arg = next.pollFirst().getTarget(); // b argument\n Term<Additive> term = new Term<>(op, arg);\n return term;\n }", "Syntax.Node ParseActualParameters(Token t) throws Exception{\n if (t.token.equals(\"(\")){\n var expList = ParseExpList();\n t = lexer.next();\n if (t.token.equals(\")\")){\n return new Syntax.NodeActualParameters( expList);\n }\n }\n throw new Exception(\"Error in ParseActualParameters !!! \");\n }", "@Test\n\tpublic void testBuildExpressionWithThreeArguments() {\n\t\t\n\t\tWord wordA = new Word(\"apple\", 1);\n\t\tWord wordB = new Word(\"car\", 1);\n\t\tWord wordC = new Word(\"roof\", 2);\n\t\t\n\t\tExpressionBuilder<Word> builder = new ExpressionBuilder<>();\n\t\tbuilder.append(null, wordA);\n\t\tbuilder.append(new AndOperator<Word>(), wordB);\n\t\tbuilder.append(new OrOperator<Word>(), wordC);\n\t\t\n\t\tExpression<Word> resultExpression = builder.getExpression();\n\t\t\n\t\tString expectedResult = \"((apple [1] AND car [1]) OR roof [2])\";\n\t\t\n\t\tSystem.out.println(resultExpression.evaluate());\n\t\tassertEquals(expectedResult, resultExpression.toString());\n\t\t\n\t}", "@Test(timeout = 4000)\n public void test133() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"P@,DtvglU*(KV:16h\");\n Token token0 = xPathLexer0.leftParen();\n assertEquals(1, token0.getTokenType());\n assertEquals(\"P\", token0.getTokenText());\n \n Token token1 = xPathLexer0.nextToken();\n assertEquals(\"@\", token1.getTokenText());\n assertEquals(16, token1.getTokenType());\n }", "@Test(timeout = 4000)\n public void test124() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"Z uKBSX,^\");\n Token token0 = xPathLexer0.rightParen();\n assertEquals(\"Z\", token0.getTokenText());\n assertEquals(2, token0.getTokenType());\n \n Token token1 = xPathLexer0.notEquals();\n assertEquals(22, token1.getTokenType());\n assertEquals(\" u\", token1.getTokenText());\n \n Token token2 = xPathLexer0.nextToken();\n assertEquals(\"KBSX\", token2.getTokenText());\n assertEquals(15, token2.getTokenType());\n }", "@Test(timeout = 4000)\n public void test003() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"hN!SM~8ux(wB\");\n xPathLexer0.dollar();\n Token token0 = xPathLexer0.and();\n assertNull(token0);\n }", "public synchronized double parseExpression() throws InvalidExpressionException { // parse expression within parentheses\r\n\t\tdouble value = parseSubExpression();\r\n\t\twhile (true) {\r\n\t\t\tignorWhiteSpace();\r\n\t\t\tif (singleChar == '+') { // in case of addition\r\n\t\t\t\tnextChar();\r\n\t\t\t\tvalue = value + parseSubExpression();\r\n\t\t\t} else if (singleChar == '-') { // in case of subtraction\r\n\t\t\t\tnextChar();\r\n\t\t\t\tvalue = value - parseSubExpression();\r\n\t\t\t} else {\r\n\t\t\t\treturn value;\r\n\t\t\t}\r\n\t\t}\r\n\t}", "@Test(timeout = 4000)\n public void test162() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"com.werken.saxpath.XPathLexer\");\n xPathLexer0.rightParen();\n xPathLexer0.notEquals();\n xPathLexer0.nextToken();\n Token token0 = xPathLexer0.identifierOrOperatorName();\n assertNull(token0);\n }", "@Test(timeout = 4000)\n public void test159() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"g\\\"K@1\");\n Token token0 = xPathLexer0.leftParen();\n assertEquals(\"g\", token0.getTokenText());\n assertEquals(1, token0.getTokenType());\n \n Token token1 = xPathLexer0.nextToken();\n assertEquals((-1), token1.getTokenType());\n }", "@Test(timeout = 4000)\n public void test114() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\":Y[~gy\");\n Token token0 = xPathLexer0.leftParen();\n assertEquals(1, token0.getTokenType());\n assertEquals(\":\", token0.getTokenText());\n \n Token token1 = xPathLexer0.nextToken();\n assertEquals(15, token1.getTokenType());\n assertEquals(\"Y\", token1.getTokenText());\n }", "@Test(timeout = 4000)\n public void test068() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"Y44o{5$K\");\n xPathLexer0.leftParen();\n xPathLexer0.nextToken();\n Token token0 = xPathLexer0.operatorName();\n assertNull(token0);\n }", "@Test(timeout = 4000)\n public void test011() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\") (\");\n String string0 = xPathLexer0.getXPath();\n assertEquals(\") (\", string0);\n }", "@Test(timeout = 4000)\n public void test141() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"z8I-qq3BBV%.C. *\");\n Token token0 = xPathLexer0.leftParen();\n assertEquals(1, token0.getTokenType());\n assertEquals(\"z\", token0.getTokenText());\n \n Token token1 = xPathLexer0.nextToken();\n assertEquals(30, token1.getTokenType());\n assertEquals(\"8\", token1.getTokenText());\n }", "@Test(timeout = 4000)\n public void test101() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"qgS3&9T,:6UK}hF\");\n Token token0 = xPathLexer0.leftParen();\n assertEquals(\"q\", token0.getTokenText());\n assertEquals(1, token0.getTokenType());\n \n Token token1 = xPathLexer0.nextToken();\n assertEquals(\"gS3\", token1.getTokenText());\n assertEquals(15, token1.getTokenType());\n }", "ParenthesisExpr createParenthesisExpr();", "private Expression parseParen(Tokenizer in) {\n\t\tExpression expr = parseExpr(in,OperatorLevel.lowest);\n\t\tToken expectParen = in.next();\n\t\tif (expectParen.type != Token.TokenType.CLOSE_PARENTHESIS)\n\t\t\tthrow new SyntaxError(\"Expected ) got: '\" + expectParen + \"'\" + expectParen.generateLineChar());\n\t\treturn expr;\n\t}", "@Test(timeout = 4000)\n public void test157() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"($mYG)Udli\");\n Token token0 = xPathLexer0.leftParen();\n assertEquals(1, token0.getTokenType());\n assertEquals(\"(\", token0.getTokenText());\n \n Token token1 = xPathLexer0.nextToken();\n assertEquals(\"$\", token1.getTokenText());\n assertEquals(26, token1.getTokenType());\n }", "@Test(timeout = 4000)\n public void test076() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"5!\");\n Token token0 = xPathLexer0.star();\n xPathLexer0.setPreviousToken(token0);\n assertEquals(20, token0.getTokenType());\n assertEquals(\"5\", token0.getTokenText());\n \n Token token1 = xPathLexer0.identifierOrOperatorName();\n assertEquals(15, token1.getTokenType());\n assertEquals(\"\", token1.getTokenText());\n }", "@Test(timeout = 4000)\n public void test122() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"yN}H8h\");\n Token token0 = xPathLexer0.leftParen();\n assertEquals(\"y\", token0.getTokenText());\n assertEquals(1, token0.getTokenType());\n \n Token token1 = xPathLexer0.nextToken();\n assertEquals(\"N\", token1.getTokenText());\n assertEquals(15, token1.getTokenType());\n }", "@Test\n\tpublic void expression1() throws SyntaxException, LexicalException {\n\t\tString input = \"2\";\n\t\tshow(input);\n\t\tScanner scanner = new Scanner(input).scan();\n\t\tshow(scanner);\n\t\tSimpleParser parser = new SimpleParser(scanner);\n\t\tparser.expression(); // Call expression directly.\n\t}", "int parseExpression() {\r\n\t\t\t\tint x = parseTerm();\r\n\t\t\t\tfor (;;) {\r\n\t\t\t\t\tif (eat('+'))\r\n\t\t\t\t\t\tx += parseTerm(); // addition\r\n\t\t\t\t\telse if (eat('-'))\r\n\t\t\t\t\t\tx -= parseTerm(); // subtraction\r\n\t\t\t\t\telse\r\n\t\t\t\t\t\treturn x;\r\n\t\t\t\t}\r\n\t\t\t}", "private double evaluarExp6() throws Excepciones{\n double resultado;\n if(token.equals(\"(\")) {\n obtieneToken();\n resultado = evaluarExp2();\n if(!token.equals(\")\")){\n obtieneError(PARENTESIS);\n }\n obtieneToken();\n }else{\n resultado = valor();\n }\n return resultado;\n}", "Expr expr();", "@Test(timeout = 4000)\n public void test105() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\";b_z(sF5\");\n Token token0 = xPathLexer0.leftParen();\n assertEquals(\";\", token0.getTokenText());\n assertEquals(1, token0.getTokenType());\n \n Token token1 = xPathLexer0.nextToken();\n assertEquals(\"b_z\", token1.getTokenText());\n assertEquals(15, token1.getTokenType());\n }", "@Test(timeout = 4000)\n public void test082() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\") (\");\n Token token0 = xPathLexer0.minus();\n xPathLexer0.setPreviousToken(token0);\n assertEquals(6, token0.getTokenType());\n assertEquals(\")\", token0.getTokenText());\n \n Token token1 = xPathLexer0.identifierOrOperatorName();\n assertEquals(\"\", token1.getTokenText());\n assertEquals(15, token1.getTokenType());\n }", "@Test(timeout = 4000)\n public void test088() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"<y\");\n Token token0 = xPathLexer0.leftParen();\n assertEquals(\"<\", token0.getTokenText());\n assertEquals(1, token0.getTokenType());\n \n Token token1 = xPathLexer0.nextToken();\n assertEquals(\"y\", token1.getTokenText());\n assertEquals(15, token1.getTokenType());\n }", "public Rule itAdd()\n \t{\n \t\treturn sequence(expr(), SP_COMMA/*oneOrMore(sequence(SP_COMMA, expr())), optional(SP_COMMA), eos()*/);\n \t}", "@Test(timeout = 4000)\n public void test127() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"#Hl\\\"URCdTMz/SP7f,\");\n Token token0 = xPathLexer0.leftParen();\n assertEquals(\"#\", token0.getTokenText());\n assertEquals(1, token0.getTokenType());\n \n Token token1 = xPathLexer0.nextToken();\n assertEquals(\"Hl\", token1.getTokenText());\n assertEquals(15, token1.getTokenType());\n }", "@Test(timeout = 4000)\n public void test130() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"pDt&YchL\");\n Token token0 = xPathLexer0.leftParen();\n assertEquals(1, token0.getTokenType());\n assertEquals(\"p\", token0.getTokenText());\n \n Token token1 = xPathLexer0.nextToken();\n assertEquals(15, token1.getTokenType());\n assertEquals(\"Dt\", token1.getTokenText());\n }", "private Object parseExpr() throws IOException, FSException{\n\n ETreeNode curNode=null;\n boolean end=false;\n Object val;\n boolean negate=false; //flag for unary minus\n boolean not=false;//flag for unary not.\n boolean prevOp=true;//flag - true if previous value was an operator\n\n while (!end){\n\n switch (tok.ttype) {\n\n\n //the various possible 'values'\n case LexAnn.TT_INTEGER:\n case LexAnn.TT_DOUBLE:\n case LexAnn.TT_STRING:\n case LexAnn.TT_WORD:\n case LexAnn.TT_FUNC:\n case LexAnn.TT_NULL:\n case LexAnn.TT_ARRAY:{\n\n if (!prevOp){\n parseError(\"Expected Operator\");\n } else {\n\n val=null;\n ETreeNode node=new ETreeNode();\n node.type=ETreeNode.E_VAL;\n\n switch (tok.ttype){\n //numbers - just get them\n case LexAnn.TT_INTEGER:{\n val=tok.value;\n break;\n }\n case LexAnn.TT_DOUBLE:{\n val=tok.value;\n break;\n }\n //functions - evaluate them\n case LexAnn.TT_FUNC:{\n String name=(String)tok.value;\n getNextToken();\n val=parseCallFunc(name);\n break;\n }\n //arrays - evaluate them\n case LexAnn.TT_ARRAY:{\n String name=(String)tok.value;\n getNextToken(); //should be a '['\n getNextToken(); //should be the index\n Object index=parseExpr();\n try {\n val=host.getVarEntry(name,index);\n } catch (Exception e) {\n parseError(e.getMessage());\n }\n break;\n }\n //variables - resolve them\n case LexAnn.TT_WORD:{\n if (hasVar((String)tok.value)) {\n val=getVar((String)tok.value);\n } else {\n try {\n val=host.getVarEntry((String)tok.value,null);\n } catch (Exception e) {\n parseError(e.getMessage());\n }\n }\n break;\n }\n //strings - just get again\n case LexAnn.TT_STRING:{\n val=tok.value;\n break;\n }\n //null\n case LexAnn.TT_NULL:{\n val=new FSObject(null);\n break;\n }\n }\n\n //unary not\n if (not){\n if (val instanceof Integer){\n if (((Integer)val).intValue()==0){\n val=FS_TRUE;\n } else {\n val=FS_FALSE;\n }\n not=false;\n } else if (val instanceof FSObject && ((FSObject)val).getObject() instanceof Boolean) {\n if (((FSObject)val).getObject().equals(Boolean.FALSE)) {\n val=FS_TRUE;\n } else {\n val=FS_FALSE;\n }\n } else if (val instanceof FSObject && ((FSObject)val).getObject() instanceof Integer) {\n if (((Integer)((FSObject)val).getObject()).intValue()==0) {\n val=FS_TRUE;\n } else {\n val=FS_FALSE;\n }\n } else {\n String msg=val.getClass().getName();\n if (val instanceof FSObject) msg=\"FSObject with \"+((FSObject)val).getNullClass().getName();\n parseError(\"Type mismatch for ! \"+msg);\n }\n }\n\n //unary minus\n if (negate) {\n if (val instanceof Integer){\n val=new Integer(-((Integer)val).intValue());\n } else if (val instanceof Double){\n val=new Double(-((Double)val).doubleValue());\n } else {\n parseError(\"Type mistmatch for unary -\");\n }\n }\n\n node.value=val;\n\n if (curNode!=null){\n if (curNode.left==null){\n curNode.left=node;\n node.parent=curNode;\n curNode=node;\n\n } else if (curNode.right==null){\n curNode.right=node;\n node.parent=curNode;\n curNode=node;\n\n }\n } else {\n curNode=node;\n }\n\n prevOp=false;\n }\n break;\n }\n /*operators - have to be more carefull with these.\n We build an expression tree - inserting the nodes at the right\n points to get a reasonable approximation to correct operator\n precidence*/\n case LexAnn.TT_LEQ:\n case LexAnn.TT_LNEQ:\n case LexAnn.TT_MULT:\n case LexAnn.TT_DIV:\n case LexAnn.TT_MOD:\n case LexAnn.TT_PLUS:\n case LexAnn.TT_MINUS:\n case LexAnn.TT_LGR:\n case LexAnn.TT_LGRE:\n case LexAnn.TT_LLSE:\n case LexAnn.TT_LLS:\n case LexAnn.TT_NOT:\n case LexAnn.TT_LAND:\n case LexAnn.TT_LOR: {\n if (prevOp){\n if (tok.ttype==LexAnn.TT_MINUS){\n negate=true;\n } else if (tok.ttype==LexAnn.TT_NOT){\n not=true;\n } else {\n parseError(\"Expected Expression\");\n }\n } else {\n\n ETreeNode node=new ETreeNode();\n\n node.type=ETreeNode.E_OP;\n node.value=new Integer(tok.ttype);\n\n if (curNode.parent!=null){\n\n int curPrio=getPrio(tok.ttype);\n int parPrio=\n getPrio(((Integer)curNode.parent.value).intValue());\n\n if (curPrio<=parPrio){\n //this nodes parent is the current nodes grandparent\n node.parent=curNode.parent.parent;\n //our nodes left leg is now linked into the current nodes\n //parent\n node.left=curNode.parent;\n //hook into grandparent\n if (curNode.parent.parent!=null){\n curNode.parent.parent.right=node;\n }\n\n //the current nodes parent is now us (because of above)\n curNode.parent=node;\n //set the current node.\n curNode=node;\n } else {\n //current node's parent's right is now us.\n curNode.parent.right=node;\n //our nodes left is the current node.\n node.left=curNode;\n //our nodes parent is the current node's parent.\n node.parent=curNode.parent;\n //curent nodes parent is now us.\n curNode.parent=node;\n //set the current node.\n curNode=node;\n }\n } else {\n //our node's left is the current node\n node.left=curNode;\n //current node's parent is us now\n //we don't have to set our parent, as it is null.\n curNode.parent=node;\n //set current node\n curNode=node;\n }\n prevOp=true;\n }\n break;\n }\n case '(':\n //start of an bracketed expression, recursively call ourself\n //to get a value\n {\n getNextToken();\n val=parseExpr();\n\n if (negate) {\n if (val instanceof Integer){\n val=new Integer(-((Integer)val).intValue());\n } else if (val instanceof Double){\n val=new Double(-((Double)val).doubleValue());\n } else {\n parseError(\"Type mistmatch for unary -\");\n }\n }\n\n ETreeNode node=new ETreeNode();\n node.value=val;\n node.type=ETreeNode.E_VAL;\n\n if (curNode!=null){\n if (curNode.left==null){\n curNode.left=node;\n node.parent=curNode;\n curNode=node;\n\n } else if (curNode.right==null){\n curNode.right=node;\n node.parent=curNode;\n curNode=node;\n\n }\n } else {\n curNode=node;\n }\n prevOp=false;\n break;\n }\n\n default: {\n end=true;\n }\n\n }\n if (!end){\n tok.nextToken();\n }\n }\n\n //find the top of the tree we just built.\n if (curNode==null) parseError(\"Missing Expression\");\n while(curNode.parent!=null){\n curNode=curNode.parent;\n }\n\n\n return evalETree(curNode);\n\n }", "Expression(String expressionString) throws IllegalArgumentException {\r\n tokenList = new ArrayList<String>();\r\n StringBuilder token = new StringBuilder();\r\n\r\n // ADD YOUR CODE BELOW HERE\r\n // ..\r\n for (int i = 0; i < expressionString.length(); i++) {\r\n Character first = expressionString.charAt(i);\r\n if (first == ' ') {\r\n continue;\r\n }\r\n if (first == '(' || first == ')' || first == '[' || first == ']') {\r\n tokenList.add(expressionString.substring(i, i + 1));\r\n }\r\n if (first == '+' || first == '-' || first == '*' || first == '/') {\r\n if (expressionString.charAt(i + 1) == '+' || expressionString.charAt(i + 1) == '-') {\r\n tokenList.add(expressionString.substring(i, i + 2));\r\n i++;\r\n continue;\r\n }\r\n tokenList.add(expressionString.substring(i, i + 1));\r\n }\r\n if (Character.isDigit(first)) {\r\n int k = i + 1;\r\n while (Character.isDigit(expressionString.charAt(k))) {\r\n k++;\r\n }\r\n tokenList.add(expressionString.substring(i, k));\r\n i = k - 1;\r\n\r\n }\r\n }\r\n }", "@Test(timeout = 4000)\n public void test137() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\":E<;\");\n Token token0 = xPathLexer0.rightParen();\n assertEquals(\":\", token0.getTokenText());\n assertEquals(2, token0.getTokenType());\n \n Token token1 = xPathLexer0.identifier();\n assertEquals(\"E\", token1.getTokenText());\n assertEquals(15, token1.getTokenType());\n \n Token token2 = xPathLexer0.nextToken();\n assertEquals(7, token2.getTokenType());\n assertEquals(\"<\", token2.getTokenText());\n }", "@Test(timeout = 4000)\n public void test116() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"LW>$p??\");\n Token token0 = xPathLexer0.leftParen();\n assertEquals(\"L\", token0.getTokenText());\n assertEquals(1, token0.getTokenType());\n \n Token token1 = xPathLexer0.nextToken();\n assertEquals(\"W\", token1.getTokenText());\n assertEquals(15, token1.getTokenType());\n }", "@Test\n\tpublic void testExpression() throws ParseException {\n\t\tExpression expression = langParser(\"a\").expression();\n\t\tassertEquals(expression.getClass(), Identifier.class);\n\t\texpression = langParser(\"a()\").expression();\n\t\tassertEquals(expression.getClass(), FunctionCall.class);\n\t\texpression = langParser(\"a.b\").expression();\n\t\tassertEquals(expression.getClass(), MemberAccess.class);\n\t\texpression = langParser(\"1\").expression();\n\t\tassertEquals(expression.getClass(), LongLiteral.class);\n\t\texpression = langParser(\"1.1\").expression();\n\t\tassertEquals(expression.getClass(), DoubleLiteral.class);\n\t\texpression = langParser(\"if(a,b,c)\").expression();\n\t\tassertEquals(expression.getClass(), TernaryIf.class);\n\t}", "Expression expression() throws SyntaxException {\r\n\t\tToken first = t;\r\n\t\tExpression e0 = orExpression();\r\n\t\tif (isKind(OP_QUESTION)) {\r\n\t\t\tconsume();\r\n\t\t\tExpression e1 = expression();\r\n\t\t\tmatch(OP_COLON);\r\n\t\t\tExpression e2 = expression();\r\n\t\t\te0 = new ExpressionConditional(first, e0, e1, e2);\r\n\t\t}\r\n\t\treturn e0;\r\n\t}", "private ArgumentListTree parseArguments() {\n\n SourcePosition start = getTreeStartLocation();\n ImmutableList.Builder<ParseTree> arguments = ImmutableList.builder();\n boolean trailingComma = false;\n ImmutableList.Builder<SourcePosition> commaPositions = ImmutableList.builder();\n\n eat(TokenType.OPEN_PAREN);\n while (peekAssignmentOrSpread()) {\n arguments.add(parseAssignmentOrSpread());\n\n if (!peek(TokenType.CLOSE_PAREN)) {\n Token comma = eat(TokenType.COMMA);\n if (comma != null) {\n commaPositions.add(comma.getStart());\n }\n if (peek(TokenType.CLOSE_PAREN)) {\n if (!config.atLeast8) {\n reportError(comma, \"Invalid trailing comma in arguments list\");\n }\n trailingComma = true;\n }\n }\n }\n eat(TokenType.CLOSE_PAREN);\n return new ArgumentListTree(\n getTreeLocation(start), arguments.build(), trailingComma, commaPositions.build());\n }", "public static Expression parse(String exp) {\n\t\texp = exp.replace(\" \", \"\");\r\n\t\tchar[] cs = exp.toCharArray();\r\n\t\tint i = 0;\r\n\t\twhile (i < cs.length && !Operator.validOp(cs[i])) {\r\n\t\t\t++i;\r\n\t\t}\r\n\t\tif (i == cs.length)\r\n\t\t\treturn new Expression(Token.parse(exp));\r\n\t\telse {\r\n\t\t\t//to preserve order of operations here, flip order accordingly\r\n\t\t\t//if the operator is * or /\r\n\t\t\treturn new Expression(\r\n\t\t\t\t\tExpression.parse(exp.substring(0,i)),\r\n\t\t\t\t\t(Operator)Token.parse(cs[i]),\r\n\t\t\t\t\tExpression.parse(exp.substring(i+1, exp.length()))\r\n\t\t\t);\r\n\t\t}\r\n\t}", "@Test(timeout = 4000)\n public void test096() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"ml'}{GbV%Y&X\");\n Token token0 = xPathLexer0.leftParen();\n assertEquals(1, token0.getTokenType());\n assertEquals(\"m\", token0.getTokenText());\n \n Token token1 = xPathLexer0.nextToken();\n assertEquals(\"l\", token1.getTokenText());\n assertEquals(15, token1.getTokenType());\n }", "@Test(timeout = 4000)\n public void test002() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"/a\");\n xPathLexer0.dollar();\n Token token0 = xPathLexer0.and();\n assertNull(token0);\n }", "private Term[] parseArgumentList() throws ParseException {\n \n final Term[] args = parseTermList();\n final int tt = _tokenizer.next();\n if (tt != ')') {\n _tokenizer.pushBack();\n reportError(\"Missing ')' or ','.\"); /*I18N*/\n }\n \n return args;\n }", "public static FunctionCallExpression parse(Expression firstOperand, TokenStream tokens)\n\t{\n\t\tFunctionCallExpression expr = null;\n\n\t\tArgumentList argList = ArgumentList.parse(tokens);\n\t\tif (argList != null) {\n\t\t\texpr = new FunctionCallExpression(firstOperand, argList,\n\t\t\t\t\tfirstOperand.getLine(), firstOperand.getColumn());\n\t\t}\n\n\t\treturn expr;\n\t}", "@Test(timeout = 4000)\n public void test118() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\">Uuu/X==mpx'Q N+\");\n Token token0 = xPathLexer0.leftParen();\n assertEquals(1, token0.getTokenType());\n assertEquals(\">\", token0.getTokenText());\n \n Token token1 = xPathLexer0.nextToken();\n assertEquals(15, token1.getTokenType());\n assertEquals(\"Uuu\", token1.getTokenText());\n }", "@Test(timeout = 4000)\n public void test004() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"d>%NV0\");\n Token token0 = xPathLexer0.operatorName();\n assertNull(token0);\n }", "@Override\n public Expression asExpression(TokenValue<?> token, Deque<Value<Expression>> next) {\n return null; // we don't know how to process it here => keep the source value\n }", "@Test(timeout = 4000)\n public void test022() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"[ (\");\n xPathLexer0.setPreviousToken((Token) null);\n assertEquals(\"[ (\", xPathLexer0.getXPath());\n }", "public interface Parser<T> {\n TripleExpression<T> parse(String expression) throws Exception;\n}", "@Test(timeout = 4000)\n public void test112() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"ji{:[5xw96\");\n Token token0 = xPathLexer0.rightParen();\n assertEquals(2, token0.getTokenType());\n assertEquals(\"j\", token0.getTokenText());\n \n Token token1 = xPathLexer0.dollar();\n assertEquals(26, token1.getTokenType());\n assertEquals(\"i\", token1.getTokenText());\n \n Token token2 = xPathLexer0.notEquals();\n assertEquals(\"{:\", token2.getTokenText());\n assertEquals(22, token2.getTokenType());\n \n Token token3 = xPathLexer0.nextToken();\n assertEquals(3, token3.getTokenType());\n assertEquals(\"[\", token3.getTokenText());\n \n Token token4 = xPathLexer0.identifierOrOperatorName();\n assertEquals(15, token4.getTokenType());\n assertEquals(\"5xw96\", token4.getTokenText());\n }", "public ParseExpression(){\n expression = null;\n }", "Expression addExpression() throws SyntaxException {\r\n\t\tToken first = t;\r\n\t\tExpression e0 = multExpression();\r\n\t\twhile(isKind(OP_PLUS, OP_MINUS)) {\r\n\t\t\tToken op = consume();\r\n\t\t\tExpression e1 = multExpression();\r\n\t\t\te0 = new ExpressionBinary(first,e0,op,e1);\r\n\t\t}\r\n\t\treturn e0;\r\n\t}", "@Override\n\tpublic Object visit(ASTRelComma node, Object data) {\n\t\tnode.jjtGetChild(0).jjtAccept(this, data);\n\t\tSystem.out.print(\", \");\n\t\tnode.jjtGetChild(1).jjtAccept(this, data);\n\t\treturn null;\n\t}", "@Test(timeout = 4000)\n public void test070() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer();\n xPathLexer0.nextToken();\n xPathLexer0.setXPath(\"y]jad[mR3w=N\");\n xPathLexer0.leftParen();\n xPathLexer0.doubleColon();\n Token token0 = xPathLexer0.identifierOrOperatorName();\n assertNull(token0);\n }", "@Test(timeout = 4000)\n public void test000() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"oofT'b.HnXtsd.\");\n Token token0 = xPathLexer0.or();\n assertNull(token0);\n }", "private TreeNode exprTreeHelper(String expr) {\n if (expr.charAt(0) != '(') {\n \n \treturn new TreeNode(expr); // you fill this in\n } else{\n // expr is a parenthesized expression.\n // Strip off the beginning and ending parentheses,\n // find the main operator (an occurrence of + or * not nested\n // in parentheses, and construct the two subtrees.\n int nesting = 0;\n int opPos = 0;\n char myChar='\\0';\n \n for (int k = 1; k < expr.length() - 1; k++) {\n myChar = expr.charAt(k);\n \tif(myChar == '('){\n \tnesting++;\n }\n if(myChar==')'){\n \tnesting--;\n }\n if(nesting == 0){\n \tif(myChar == '+' || myChar == '*'){\n \t\topPos = k;\n \t break;\t\n \t}\n }\n }\n \n String opnd1 = expr.substring(1, opPos);\n String opnd2 = expr.substring(opPos + 1, expr.length() - 1);\n String op = expr.substring(opPos, opPos + 1);\n System.out.println(\"expression = \" + expr);\n System.out.println(\"operand 1 = \" + opnd1);\n System.out.println(\"operator = \" + op);\n System.out.println(\"operand 2 = \" + opnd2);\n System.out.println();\n return new TreeNode(op,exprTreeHelper(opnd1),exprTreeHelper(opnd2));\n \n }\n }", "private double parseExpression() {\n\t\tdouble value = parseTerm();\n\t\twhile (true) {\n\t\t\tif (token.getType().equals(Token.Type.PLUS)) { // addition\n\t\t\t\ttoken=lexer.getNextToken();\n\t\t\t\tvalue += parseTerm();\n\t\t\t} else if (token.getType().equals(Token.Type.MINUS)) { // subtraction\n\t\t\t\ttoken = lexer.getNextToken();\n\t\t\t\tvalue -= parseTerm();\n\t\t\t} else {\n\t\t\t\treturn value;\n\t\t\t}\n\t\t}\n\t}", "private TreeNode exprTreeHelper(String expr) {\n if (expr.charAt(0) != '(') {\n return new TreeNode(expr); // you fill this in\n } else {\n // expr is a parenthesized expression.\n // Strip off the beginning and ending parentheses,\n // find the main operator (an occurrence of + or * not nested\n // in parentheses, and construct the two subtrees.\n int nesting = 0;\n int opPos = 0;\n for (int k = 1; k < expr.length() - 1; k++) {\n // you supply the missing code\n \tif (nesting == 0) {\n \t\tif (expr.charAt(k) == '+' || expr.charAt(k) == '*') {\n \t\t\topPos = k;\n \t\t}\n \t}\n \tif (expr.charAt(k) == '(') {\n \t\tnesting++;\n \t} else if (expr.charAt(k) == ')') {\n \t\tnesting--;\n \t}\n }\n String opnd1 = expr.substring(1, opPos);\n String opnd2 = expr.substring(opPos + 1, expr.length() - 1);\n String op = expr.substring(opPos, opPos + 1);\n System.out.println(\"expression = \" + expr);\n System.out.println(\"operand 1 = \" + opnd1);\n System.out.println(\"operator = \" + op);\n System.out.println(\"operand 2 = \" + opnd2);\n System.out.println();\n return new TreeNode(op, exprTreeHelper(opnd1), exprTreeHelper(opnd2)); // you fill this in\n }\n }", "@Override\n\tpublic Object visit(ASTParen node, Object data) {\n\t\tSystem.out.print(\"(\");\n\t\tnode.childrenAccept(this, data);\n\t\tSystem.out.print(\")\");\n\t\treturn null;\n\t}", "@Test\n void testExample1() {\n List<Token> input = Arrays.asList(\n new Token(Token.Type.IDENTIFIER, \"LET\", -1),\n new Token(Token.Type.IDENTIFIER, \"first\", -1),\n new Token(Token.Type.OPERATOR, \":\", -1),\n new Token(Token.Type.IDENTIFIER, \"INTEGER\", -1),\n new Token(Token.Type.OPERATOR, \"=\", -1),\n new Token(Token.Type.INTEGER, \"1\", -1),\n new Token(Token.Type.OPERATOR, \";\", -1),\n\n new Token(Token.Type.IDENTIFIER, \"WHILE\", -1),\n new Token(Token.Type.IDENTIFIER, \"first\", -1),\n new Token(Token.Type.OPERATOR, \"!=\", -1),\n new Token(Token.Type.INTEGER, \"10\", -1),\n new Token(Token.Type.IDENTIFIER, \"DO\", -1),\n\n new Token(Token.Type.IDENTIFIER, \"PRINT\", -1),\n new Token(Token.Type.OPERATOR, \"(\", -1),\n new Token(Token.Type.IDENTIFIER, \"first\", -1),\n new Token(Token.Type.OPERATOR, \")\", -1),\n new Token(Token.Type.OPERATOR, \";\", -1),\n\n new Token(Token.Type.IDENTIFIER, \"first\", -1),\n new Token(Token.Type.OPERATOR, \"=\", -1),\n new Token(Token.Type.IDENTIFIER, \"first\", -1),\n new Token(Token.Type.OPERATOR, \"+\", -1),\n new Token(Token.Type.INTEGER, \"1\", -1),\n new Token(Token.Type.OPERATOR, \";\", -1),\n\n new Token(Token.Type.IDENTIFIER, \"END\", -1)\n );\n Ast.Source expected = new Ast.Source(Arrays.asList(\n new Ast.Statement.Declaration(\"first\", \"INTEGER\",\n Optional.of(new Ast.Expression.Literal(BigInteger.valueOf(1)))),\n new Ast.Statement.While(\n new Ast.Expression.Binary(\"!=\",\n new Ast.Expression.Variable(\"first\"),\n new Ast.Expression.Literal(BigInteger.valueOf(10))\n ),\n Arrays.asList(\n new Ast.Statement.Expression(\n new Ast.Expression.Function(\"PRINT\", Arrays.asList(\n new Ast.Expression.Variable(\"first\"))\n )\n ),\n new Ast.Statement.Assignment(\"first\",\n new Ast.Expression.Binary(\"+\",\n new Ast.Expression.Variable(\"first\"),\n new Ast.Expression.Literal(BigInteger.valueOf(1))\n )\n )\n )\n )\n ));\n test(input, expected, Parser::parseSource);\n }", "public UnaryExpNode() {\n }", "@Override\n public NodeType ExecuteOperation()\n {\n //if the first child is an operator\n if(this.childNodes[0].isOperator==true)\n {\n BasicOperator basicOperator=(BasicOperator)this.childNodes[0]; \n if(basicOperator.operands==1)\n {\n UnaryOperator unaryOperator=(UnaryOperator)childNodes[0];\n return unaryOperator.PerformOperation(childNodes[1]);\n }\n else if(basicOperator.operands==2)\n {\n BinaryOperator binaryOperator=(BinaryOperator)childNodes[0];\n return binaryOperator.PerformOperation(childNodes[1], childNodes[2]);\n }\n else if(basicOperator.operands==3)\n {\n TernaryOperator ternaryOperator=(TernaryOperator)childNodes[0];\n return ternaryOperator.PerformOperation(childNodes[1], childNodes[2], childNodes[3]);\n }\n }\n //if not an operator\n else\n {\n return this.childNodes[0].ExecuteOperation();\n }\n return null;\n }", "@Test(timeout = 4000)\n public void test083() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\".s,=X(+aojF=\");\n Token token0 = xPathLexer0.rightBracket();\n xPathLexer0.setPreviousToken(token0);\n assertEquals(4, token0.getTokenType());\n assertEquals(\".\", token0.getTokenText());\n \n Token token1 = xPathLexer0.nextToken();\n assertEquals(\"s,=X(+aojF=\", token1.getTokenText());\n }", "@Test(timeout = 4000)\n public void test119() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"gQFm^#}*F\");\n Token token0 = xPathLexer0.leftParen();\n assertEquals(\"g\", token0.getTokenText());\n assertEquals(1, token0.getTokenType());\n \n Token token1 = xPathLexer0.nextToken();\n assertEquals(\"QFm\", token1.getTokenText());\n assertEquals(15, token1.getTokenType());\n }", "ExpOperand createExpOperand();", "public interface QuotedL1Node {\n\n}", "@Test(timeout = 4000)\n public void test060() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer();\n Token token0 = xPathLexer0.relationalOperator();\n assertNull(token0);\n }", "@Test\r\n public void test1(){\r\n Exp one = new NumericLiteral(1);\r\n Exp three = new NumericLiteral(3);\r\n Exp exp = new PlusExp(one, three);\r\n Stmt decl = new DeclStmt(\"x\");\r\n Stmt assign = new Assignment(\"x\", exp);\r\n Stmt seq = new Sequence(decl, assign);\r\n assertEquals(seq.text(), \"var x; x = 1 + 3\");\r\n }", "double parseExpression() {\n double x = parseTerm();\n for (;;) {\n if (eat('+')) x += parseTerm(); // addition\n else if (eat('-')) x -= parseTerm(); // subtraction\n else return x;\n }\n }", "double parseExpression() {\n double x = parseTerm();\n for (;;) {\n if (eat('+')) x += parseTerm(); // addition\n else if (eat('-')) x -= parseTerm(); // subtraction\n else return x;\n }\n }", "public ExpressionPart parseExpressions (String[] exp, QBParser parser) {\n\t\texp = fixArray(exp);\n\t//\tSystem.out.println(\"EXPS: \" + Arrays.toString(exp));\n\t\tif(exp[0].startsWith(\"if\")){\n\t\t\tif( (exp[0].length() > 2 && !Character.isLetterOrDigit( exp[0].charAt(2) )) || exp[0].length() == 2){\n\t\t\t\tString name = ExpressionPuller.pullIfThenElse(exp, parser.getCurrentCompilingNamespace());\n\t\t\t\texp = new String[]{name};\n\t\t\t}\n\t\t}\n\t\t\n//\t\tif(exp[0].equals(\"if\")){\n//\t\t\tint thenIdx = MArrays.indexOf(exp, \"then\");\n//\t\t\tString ifPart = MArrays.concat(exp, 1, thenIdx-1);\n//\t\t\t\n//\t\t\tint elseIdx = MArrays.indexOf(exp, \"else\");\n//\t\t\tString thenPart = MArrays.concat(exp, thenIdx+1, elseIdx-thenIdx-1);\n//\t\t\t\n//\t\t\tString elsePart = MArrays.concat(exp, elseIdx+1);\n//\t\t\t\n//\t\t\tExpressionPart ifExpPart = parseExpressions(ifPart);\n//\t\t\tExpressionPart thenExpPart = parseExpressions(thenPart);\n//\t\t\tExpressionPart elseExpPart = parseExpressions(elsePart);\n//\t\t\t\n//\t\t\tExpressionPart totalIf = ExpressionPart.makePrimaryExpressionPart(null, \"if\", new ExpressionPart[]{ifExpPart});\n//\t\t\tExpressionPart totalThen = ExpressionPart.makePrimaryExpressionPart(totalIf, \"then\", new ExpressionPart[]{thenExpPart});\n//\t\t\tExpressionPart total = ExpressionPart.makePrimaryExpressionPart(totalThen, \"else\", new ExpressionPart[]{elseExpPart});\n//\t\t\n//\t\t\treturn total;\n//\t\t}\n\t\t\n\n\t\t// Go though all of the operators in order from their respective order of operations.\n\t\tfor( String[] ops : operators() ){\n\t\t\t\n\t\t\tint idx = -1;\n\t\t\t// Some operators have the same precedence, so we need to deal with that\n\t\t\tfor( String op : ops ) {\n\t\t\t\tidx = Math.max(idx, MArrays.lastIndexOf(exp, op));\n\t\t\t}\n\t\t\t\n\t\t\t// if we found one of these opeartors, then we\n\t\t\t// need to deal with it.\n\t\t\tif( idx != -1 ){\n\t\t\t\t// get the function (thats easy, it is what we just found)\n\t\t\t\tString function = exp[idx];\n\t\t\t\t\n\t\t\t\t// get all stuff before and after this point\n\t\t\t\t// the first is the caller and the second is the\n\t\t\t\t// argument believe me it works because\n\t\t\t\t// 3 * 4 / 6 + 1 * 2 - 3 ^ 2 * 2 = (3 * 4 / 6 + 1 * 2) - (3 ^ 2 * 2)\n\t\t\t\tString[] before = Arrays.copyOfRange(exp, 0, idx);\n\t\t\t\tString[] after = Arrays.copyOfRange(exp, idx + 1, exp.length);\n\t\t\t\t\n\t\t\t\t// now, using recursion we make the expression parts out of them\n\t\t\t\tExpressionPart part1 = parseExpressions( before, parser );\n\t\t\t\tExpressionPart part2 = parseExpressions( after, parser );\n\t\t\t\t\n\t\t\t\tif(function.equals(\"->\")){\n\t\t\t\t\tExpressionPart tmp = part1;\n\t\t\t\t\tpart1 = part2;\n\t\t\t\t\tpart2 = tmp;\n\t\t\t\t}\n\t\t\t\t// now put the whole thing together, and you now have a mess\n\t\t\t\treturn ExpressionPart.makePrimaryExpressionPart(part1, function, new ExpressionPart[]{part2} );\n\t\t\t}\n\t\t\t\t\n\t\t\t\n\t\t}\n\t\t\n\t\t// If there are no more \"Binary Functions\"\n\t\t// what is left must be grouped or it must be a function\n\t\tif( exp.length == 1 ){\n\t\t\tString str = exp[0];\n\t\t\tif( completelySurrounded(str) ){\n\t\t\t\tString middle = str.substring(1, str.length() - 1);\n\t\t\t\treturn parseExpressions(middle);\n\t\t\t}\n\t\t\t// This must then be a function\n\t\t\telse if(str.endsWith(\")\")){\n\t\t\t\t\n\t\t\t\t// this function will get the last index of a dot ('.') that is outside parenthesis\n\t\t\t\t// the dot is used to determine if the function is being called by an object\n\t\t\t\tint dotIdx = lastDotIndex(str);\n\t\t\t\t\n\t\t\t\t// now we find the index that the arguments start on\n\t\t\t\tint idx = str.indexOf('(',dotIdx);\n\t\t\t\t\n\t\t\t\t// check to make sure there is one.\n\t\t\t\tif( idx < 0 ){\n\t\t\t\t\tthrow new RuntimeException(\"Expected '('\");\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// from here it is pretty straight forward to get the function,\n\t\t\t\t// caller and parameters.\n\t\t\t\tString function = str.substring(0, idx);\n\t\t\t\tString args = str.substring(idx + 1, str.length() - 1);\n\t\t\t\tString caller = null;\n\t\t\t\t\n\t\t\t\t// if there is not dot, then there is no caller and the function is global\n\t\t\t\tif( dotIdx >= 0 ){\n\t\t\t\t\tcaller = function.substring( 0, dotIdx );\n\t\t\t\t\tfunction = function.substring( dotIdx + 1 );\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// now use recursion to build the parts and make a new part.\n\t\t\t\tExpressionPart part1 = caller !=null ? parseExpressions(caller) : null;\n\t\t\t\tExpressionPart[] parts = parseParams(args);\n\t\t\t\t\n\t\t\t\treturn ExpressionPart.makePrimaryExpressionPart(part1, function, parts);\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\telse{\n\t\t\t\t// This is the base case, the very bottom of the ladder, this is where all\n\t\t\t\t// that is left is some entity that has no function.\n\t\t\t\treturn ExpressionPart.makeExpressionPart(exp[0]);\n\t\t\t}\n\t\t}\n\t\t\n\t\tthrow new RuntimeException(\"Syntax Error\");\n\t}", "@Test(timeout = 4000)\n public void test019() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\">6_XdrPl\");\n Token token0 = xPathLexer0.relationalOperator();\n assertNotNull(token0);\n assertEquals(\">\", token0.getTokenText());\n assertEquals(9, token0.getTokenType());\n \n Token token1 = xPathLexer0.rightParen();\n assertEquals(2, token1.getTokenType());\n assertEquals(\"6\", token1.getTokenText());\n \n char char0 = xPathLexer0.LA(0);\n assertEquals('6', char0);\n }", "private void parseExpression(String l, String r) throws IllegalArgumentException {\n this.leftChild = this.parse(l, this.opers);\n this.rightChild = this.parse(r, this.opers);\n }", "@Test(timeout = 4000)\n public void test151() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"9M4i+yR.T\");\n Token token0 = xPathLexer0.number();\n assertEquals(\"9\", token0.getTokenText());\n assertEquals(30, token0.getTokenType());\n \n Token token1 = xPathLexer0.dollar();\n assertEquals(26, token1.getTokenType());\n assertEquals(\"M\", token1.getTokenText());\n \n Token token2 = xPathLexer0.at();\n assertEquals(16, token2.getTokenType());\n assertEquals(\"4\", token2.getTokenText());\n \n Token token3 = xPathLexer0.not();\n assertEquals(\"i\", token3.getTokenText());\n assertEquals(23, token3.getTokenType());\n \n Token token4 = xPathLexer0.nextToken();\n assertEquals(\"+\", token4.getTokenText());\n assertEquals(5, token4.getTokenType());\n \n Token token5 = xPathLexer0.nextToken();\n assertEquals(\"yR.T\", token5.getTokenText());\n assertEquals(15, token5.getTokenType());\n }", "private Object parseCallFunc(String name) throws\n IOException,FSException {\n\n ArrayList params=new ArrayList(4);\n\n\n //Set up the parameters\n do {\n getNextToken();\n if (tok.ttype==',') {\n getNextToken();\n } else if (tok.ttype==')') {\n break;\n }\n params.add(parseExpr());\n } while (tok.ttype==',');\n\n\n return callFunction(name,params);\n\n }", "@Test\r\n\tpublic void test3() throws IOException, LexerException, ParserException {\r\n\t\tStringReader ex = new StringReader(\"(lam^s f.\\n\\t(lam^s x.x) (f 1))\\n(lam^c y.\\n\\t(lam^s z.z) y)\");\r\n\r\n\t\tParser parser = new Parser();\r\n\t\tTerm result = parser.Parsing(ex);\r\n\t}", "public Snippet visit(AndExpression n, Snippet argu) {\n\t Snippet _ret= new Snippet(\"\",\"\",null,false);\n\t Snippet f0 = n.identifier.accept(this, argu);\n\t n.nodeToken.accept(this, argu);\n\t Snippet f2 = n.identifier1.accept(this, argu);\n\t _ret.returnTemp = f0.returnTemp+\" & \"+f2.returnTemp;\n\t return _ret;\n\t }", "@Test(timeout = 4000)\n public void test069() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer();\n xPathLexer0.nextToken();\n xPathLexer0.setXPath(\"y]jad[mR3w=N\");\n xPathLexer0.leftParen();\n xPathLexer0.doubleColon();\n xPathLexer0.pipe();\n xPathLexer0.consume();\n xPathLexer0.minus();\n Token token0 = xPathLexer0.identifierOrOperatorName();\n assertNull(token0);\n }", "private static String[] parseParenthesis(final String token) throws TagException {\r\n String[] tokenArray = null;\r\n if (token != null && token.length() > 0) {\r\n final TagOptionSingleton option = TagOptionSingleton.getInstance();\r\n String tempOpen;\r\n String open = \"\";\r\n final String close;\r\n int openIndex = token.length();\r\n int tempIndex;\r\n final int closeIndex;\r\n final Iterator iterator = option.getOpenParenthesisIterator();\r\n\r\n // find first parenthesis\r\n while (iterator.hasNext()) {\r\n tempOpen = (String) iterator.next();\r\n tempIndex = token.indexOf(tempOpen);\r\n if (tempIndex >= 0 && tempIndex < openIndex) {\r\n openIndex = tempIndex;\r\n open = tempOpen;\r\n }\r\n }\r\n\r\n // we have a parenthesis\r\n if (openIndex >= 0 && openIndex < token.length()) {\r\n close = option.getCloseParenthesis(open);\r\n closeIndex = TagUtility.findMatchingParenthesis(token, openIndex);\r\n if (closeIndex < 0) {\r\n throw new TagException(\"Unmatched parenthesis in \\\"\" + token + \"\\\" at position : \" + openIndex);\r\n }\r\n tokenArray = new String[5];\r\n tokenArray[0] = open;\r\n tokenArray[1] = close;\r\n tokenArray[2] = token.substring(0, openIndex);\r\n tokenArray[3] = token.substring(openIndex + open.length(), closeIndex);\r\n tokenArray[4] = token.substring(closeIndex + close.length());\r\n }\r\n }\r\n return tokenArray;\r\n }", "public static void assignCompoundTokens(ArrayList<String>scan){\n\nfor(int i=0;i<scan.size();i++){\n if( isUnaryPostOperator( scan.get(i) ) ){\n \n if(isNumber(scan.get(i-1))||isVariableString(scan.get(i-1))){ \n int index=i-1;\n int j=i;\n while(isUnaryPostOperator(scan.get(j))){\n ++j;\n }\n scan.add(j, \")\");\n scan.add(index,\"(\");\ni=j+1;\n }//end if\n\n else if(isClosingBracket(scan.get(i-1))){\n int index=MBracket.getComplementIndex(false, i-1, scan);\n int j=i;\n while(isUnaryPostOperator(scan.get(j))){\n ++j;\n }\n scan.add(j, \")\");\n scan.add(index,\"(\");\n i=j+1;\n }\n \n \n \n }\n \n \n \n}\n\n\n\n}", "@Test(timeout = 4000)\n public void test148() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\")o/f0*4=P~Q{S\");\n Token token0 = xPathLexer0.dollar();\n assertEquals(26, token0.getTokenType());\n assertEquals(\")\", token0.getTokenText());\n \n Token token1 = xPathLexer0.at();\n assertEquals(\"o\", token1.getTokenText());\n assertEquals(16, token1.getTokenType());\n \n xPathLexer0.not();\n Token token2 = xPathLexer0.not();\n assertEquals(\"f\", token2.getTokenText());\n assertEquals(23, token2.getTokenType());\n \n Token token3 = xPathLexer0.nextToken();\n assertEquals(30, token3.getTokenType());\n assertEquals(\"0\", token3.getTokenText());\n }" ]
[ "0.6177007", "0.6073211", "0.6042479", "0.60340565", "0.601666", "0.6008348", "0.59428793", "0.5905072", "0.5890552", "0.5851688", "0.5806145", "0.5800216", "0.5703586", "0.56871974", "0.5661608", "0.565716", "0.56402266", "0.5639536", "0.5614409", "0.5608312", "0.55870444", "0.5554545", "0.5542971", "0.553758", "0.55049163", "0.54979324", "0.5491983", "0.54896826", "0.54748195", "0.5467134", "0.5462096", "0.54563075", "0.54471725", "0.54383695", "0.54321134", "0.5422034", "0.54114926", "0.54114205", "0.5401188", "0.53699553", "0.5368652", "0.5362753", "0.5361835", "0.5361675", "0.5361145", "0.5343675", "0.53374404", "0.5336613", "0.53319794", "0.53169656", "0.53094065", "0.5308184", "0.5306455", "0.5294869", "0.52942926", "0.52932006", "0.5291065", "0.52903646", "0.5286626", "0.5282818", "0.5277797", "0.52694374", "0.5250071", "0.5248393", "0.5236525", "0.52292925", "0.5225123", "0.52150387", "0.5214159", "0.521347", "0.5209976", "0.52052915", "0.520408", "0.51866734", "0.51847845", "0.51818013", "0.51800454", "0.5178804", "0.5177792", "0.51762664", "0.51637214", "0.5151485", "0.5144018", "0.5138605", "0.5138107", "0.5128396", "0.51165026", "0.5113591", "0.5113591", "0.51014185", "0.5086636", "0.5084159", "0.508126", "0.5077652", "0.50760794", "0.507575", "0.5075134", "0.50617456", "0.5058544", "0.5057765" ]
0.5588872
20
iRIref > IRIref() nodeOptional > ( ArgList() )?
@Override public R visit(IRIrefOrFunction n, A argu) { R _ret = null; n.iRIref.accept(this, argu); n.nodeOptional.accept(this, argu); return _ret; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public R visit(FunctionCall n, A argu) {\n R _ret = null;\n n.iRIref.accept(this, argu);\n n.argList.accept(this, argu);\n return _ret;\n }", "@Override\n public R visit(IRIref n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "@Override\n\tpublic void traverseArg(UniArg node) {\n\t}", "public Arginfo visit(IdentifierRest n, Arginfo argu) {\n Arginfo _ret=null;\n n.f0.accept(this, argu);\n n.f1.accept(this, argu);\n return _ret;\n }", "final public Expression IRIrefOrFunction(Exp stack) throws ParseException {\n Expression exp;\n exp = StdIRIrefOrFunction(stack);\n {if (true) return exp;}\n throw new Error(\"Missing return statement in function\");\n }", "@Override\n public R visit(ArgList n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "@FunctionalInterface\npublic interface IRIPrinter {\n String getString(IRI iri);\n}", "@Override\n\tpublic void addArg(FormulaElement arg){\n\t}", "public interface IAbsolute extends IMeasurement_descriptor{\n\n\tpublic IRI iri();\n\n}", "AstroArg seq(AstroArg first, AstroArg second, AstroArg third);", "AstroArg seq(AstroArg first,\n AstroArg second,\n AstroArg third,\n AstroArg fourth);", "@Override\n public R visit(SparqlString n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "public Snippet visit(IdentifierList n, Snippet argu) {\n\t\t Snippet _ret= new Snippet(\"\",\"\",null,false);\n\t\t\tSnippet f0 =n.identifier.accept(this, argu);\n\t\t\tfieldsCode = \"\";\n\t\t\tidentifierList.add(f0.returnTemp);\n\t\t\tSnippet f1=n.nodeListOptional.accept(this, argu);\n\t _ret.returnTemp= f0.returnTemp+fieldsCode;\n\t\t\tfieldsCode = \"\";\n\t return _ret;\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 }", "IRI getBaseIRI();", "@Override\n public R visit(VarOrIRIref n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "AstroArg seq(AstroArg first, AstroArg second);", "public void harvest(List<IRI> iris);", "@Override\n public String visit(NodeList n, Object arg) {\n return null;\n }", "@Override\n public R visit(BuiltInCall n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "@Override\n public R visit(PrimaryExpression n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "public Snippet visit(IdentifierRest n, Snippet argu) {\n\t Snippet _ret=null;\n\t n.nodeToken.accept(this, argu);\n\t _ret = n.identifier.accept(this, argu);\n\t\t\tidentifierList.add(_ret.returnTemp);\n\t\t\tfieldsCode += \",\"+ _ret.returnTemp;\n\t return _ret;\n\t }", "public Arginfo visit(IdentifierList n, Arginfo argu) {\n Arginfo _ret=null;\n n.f0.accept(this, argu);\n n.f1.accept(this, argu);\n return _ret;\n }", "public Snippet visit(InclusiveOrExpression n, Snippet argu) {\n\t\t Snippet _ret= new Snippet(\"\",\"\",null,false);\n\t Snippet f0 = n.identifier.accept(this, argu);\n\t n.nodeToken.accept(this, argu);\n\t Snippet f2 = n.identifier1.accept(this, argu);\n\t _ret.returnTemp = f0.returnTemp+\" | \"+f2.returnTemp;\n\t return _ret;\n\t }", "AstroArg empty();", "public String visit(ExpressionRest n, Object argu) \n\t{\n\t\tString _ret=null;\n\t\tMap<String, String> parameter = parameters.get(0);\n\t\t\n\t\t\n\t\tString e0 = n.f1.accept(this, argu);\n\t\tif (parameter.containsValue(e0) \n\t\t\t\t&& ((parameters.size() <= 1) \n\t\t\t\t|| n.f1.accept(this, parameters.subList(1, parameters.size()-1)) != null))\n\t\t{\n\t\t\t_ret = e0;\n\t\t}\n\t return _ret;\n\t}", "public Arginfo visit(ExpressionRest n, Arginfo argu) {\n Arginfo _ret=null;\n n.f0.accept(this, argu);\n n.f1.accept(this, argu);\n return _ret;\n }", "String getISOPref();", "@Override\n public R visit(GraphPatternNotTriples n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "@Override\n public R visit(ObjectList n, A argu) {\n R _ret = null;\n n.sparqlObject.accept(this, argu);\n n.nodeListOptional.accept(this, argu);\n return _ret;\n }", "@Override\n public R visit(RelationalExpression n, A argu) {\n R _ret = null;\n n.numericExpression.accept(this, argu);\n n.nodeOptional.accept(this, argu);\n return _ret;\n }", "@Override\n public R visit(DescribeQuery n, A argu) {\n R _ret = null;\n n.nodeToken.accept(this, argu);\n n.nodeChoice.accept(this, argu);\n n.nodeListOptional.accept(this, argu);\n n.nodeOptional.accept(this, argu);\n n.solutionModifier.accept(this, argu);\n return _ret;\n }", "@Override\n public R visit(TriplesNode n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "@Override\n public R visit(SparqlCollection n, A argu) {\n R _ret = null;\n n.nodeToken.accept(this, argu);\n n.nodeList.accept(this, argu);\n n.nodeToken1.accept(this, argu);\n return _ret;\n }", "@Override\n public R visit(GraphTerm n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "public Snippet visit(FormalParameterList n, Snippet argu) {\n\t\t Snippet _ret=new Snippet(\"\",\"\",null,false);\n\t Snippet f0 = n.finalFormalParameter.accept(this, argu);\n\t fieldsCode = \"\";\n\t Snippet f1 = n.nodeListOptional.accept(this, argu);\n\t \n\t\t\t\n\t\t\t\t_ret.returnTemp = f0.returnTemp+fieldsCode;\t\n\t\t\t\tfieldsCode = \"\";\n\t\t\t\n\t return _ret;\n\t }", "public IRAttribute ( ) {\n\t\tsuper();\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 }", "public String visit(PrimaryExpression n, String argu) {\n return n.f0.accept(this, null); \n }", "@Override\n public R visit(Prologue n, A argu) {\n R _ret = null;\n n.nodeOptional.accept(this, argu);\n n.nodeListOptional.accept(this, argu);\n return _ret;\n }", "@Override\n public R visit(SolutionModifier n, A argu) {\n R _ret = null;\n n.nodeOptional.accept(this, argu);\n n.nodeOptional1.accept(this, argu);\n return _ret;\n }", "public interface Program extends AstItem {\n}", "public ArvoreRB(Node nil){\r\n\tthis.raiz = nil;\r\n\tthis.pr = nil;\r\n\tthis.aux = nil;\r\n\tthis.tamanho = 0;\r\n\tthis.print = \" \";\r\n this.nil=nil;\r\n}", "public interface IInstanceVariable extends INameNode {\n}", "public Arginfo visit(PrimaryExpression n, Arginfo argu) {\n Arginfo _ret=null;\n argu.isreq=1;\n argu.ispri=1;\n Arginfo temp1=n.f0.accept(this, argu);\n argu.ispri=0;\n if(n.f0.which==3){\n \t int a=prectr++;\n \t System.out.println(\"BEGIN\");\n \t String strtofind=temp1.str2;\n \t String classname=argu.classname;\n \t if(globalmap.containsKey(strtofind)){\n \t System.out.println(\"\\tMOVE TEMP \"+a+\" TEMP \"+globalmap.get(strtofind)+\" \");\n }\n else{\n \t System.out.println(\"\\tHLOAD TEMP \"+a+\" TEMP 0 \"+classpos(strtofind,classname)+\" \");\n }\n \t System.out.println(\"RETURN TEMP \"+a+\"\\nEND\\n\");\n }\n return temp1;\n }", "public String visit(SpilledArg n, Object argu)\r\n\t {\r\n\t\t return null;\r\n\t }", "public interface IOverride extends IMeasurement_descriptor{\n\n\tpublic IRI iri();\n\n}", "static void perform_xri(String passed){\n\t\tint type = type_of_xri(passed);\n\t\tif(type==1)\n\t\t\txri_with_acc(passed);\n\t}", "public Relation getRelation(XDI3Segment arcXri);", "@Override\n public R visit(Verb n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "OclExpression getArgument();", "public static void main(String[] args) throws Exception {\n\tinitXMLdoc();\n\n\t// get a Dryad ID\n\tString itemID = args[0];\n\tSystem.out.println(\"processing \" + itemID);\n\n\t// retrieve the object from Dryad (in OAI_DC format)\n\tString accessURL = OAI_BASE + itemID + OAI_APPEND;\n\tSystem.out.println(\"retrieving \" + accessURL);\n\tDocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();\n\tDocumentBuilder db = dbf.newDocumentBuilder();\n\tDocument userdoc = db.parse(new URL(accessURL).openStream());\n\t\n\t// extract its DOI\n\tNodeList nl = userdoc.getElementsByTagName(\"dc:relation\");\n\tString targetDOI = null;\n\tfor(int i=0; i < nl.getLength(); i++){\n\t String rel = nl.item(i).getTextContent();\n\t System.out.println(\"relation \" + rel);\n\t if (rel.startsWith(\"doi\")) {\n\t\ttargetDOI = rel.substring(\"doi:\".length()); // skip \"doi:\"\n\t }\n\t}\n\tSystem.out.println(\"doi is \" + targetDOI);\n\n\t// get the corresponding record from crossref\n\tString authURL = CROSSREF_URL + targetDOI + \".xml\";\n\tSystem.out.println(\"retrieving \" + authURL);\n\tDocumentBuilderFactory authdbf = DocumentBuilderFactory.newInstance();\n\tDocumentBuilder authdb = authdbf.newDocumentBuilder();\n\tDocument authdoc = authdb.parse(new URL(authURL).openStream());\n\n\t// compute title match\n\tNodeList titles = userdoc.getElementsByTagName(\"dc:title\");\n\tString doctitle = titles.item(0).getTextContent().substring(\"Data from: \".length()); // remove the Data from:\n\tSystem.out.println(\"doctitle \" + doctitle);\n\t\n\tNodeList authtitles = authdoc.getElementsByTagName(\"title\");\n\tString authtitle = authtitles.item(0).getTextContent();\n\tSystem.out.println(\"authtitle \" + authtitle);\n\t\n\tgenerateMatchXML(doctitle, authtitle, \"dc:title\");\n\n\n\t// render the XML into pretty HTML\t\n\toutputXMLdoc();\n\t\n\t// display\n\t\n }", "Astro bag(AstroArg args);", "static void perform_inr(String passed){\n\t\tint type = type_of_inr(passed);\n\t\tswitch(type){\n\t\tcase 1:\n\t\t\tinr_reg(passed);\n\t\t\tbreak;\n\t\tcase 2:\n\t\t\tinr_mem(passed);\n\t\t\tbreak;\n\t\t}\n\t}", "String getIdNode2();", "@Override\n public R visit(GraphNode n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "public String visit(BooleanType n, LLVMRedux argu) {\n return \"i1\";\n }", "@Override\n public String visit(MethodReferenceExpr n, Object arg) {\n return null;\n }", "AstroArg start(AstroArg top);", "@Override\n public String visit(BinaryExpr n, Object arg) {\n return null;\n }", "public String visit(Exp n, int argu)\r\n\t {\r\n\t\t return null;\r\n\t\t \r\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 }", "protected String handleIRI(IRI iri, int elementType) {\n if (parserConfig.getGraphConf().getHandleVocabUris() == GRAPHCONF_VOC_URI_SHORTEN ||\n parserConfig.getGraphConf().getHandleVocabUris() == GRAPHCONF_VOC_URI_SHORTEN_STRICT) {\n String localName = iri.getLocalName();\n String prefix = namespaces.getPrefixOrAdd(iri.getNamespace(),\n parserConfig.getGraphConf().getHandleVocabUris() == GRAPHCONF_VOC_URI_SHORTEN_STRICT);\n return prefix + PREFIX_SEPARATOR + localName;\n } else if (parserConfig.getGraphConf().getHandleVocabUris() == GRAPHCONF_VOC_URI_IGNORE) {\n return applyCapitalisation(iri.getLocalName(), elementType);\n } else if (parserConfig.getGraphConf().getHandleVocabUris() == GRAPHCONF_VOC_URI_MAP) {\n return mapElement(iri, elementType, null);\n } else { //if (handleUris == URL_KEEP){\n return iri.stringValue();\n }\n }", "@Override\n public String visit(Name n, Object arg) {\n return null;\n }", "default String args() {\n return (String) metadata().get(\"x-uri-args\");\n }", "public interface QuotedL1Node {\n\n}", "public Snippet visit(ExclusiveOrExpression n, Snippet argu) {\n\t\t Snippet _ret= new Snippet(\"\",\"\",null,false);\n\t Snippet f0 = n.identifier.accept(this, argu);\n\t n.nodeToken.accept(this, argu);\n\t Snippet f2 = n.identifier1.accept(this, argu);\n\t _ret.returnTemp = f0.returnTemp+\" ^ \"+f2.returnTemp;\n\t return _ret;\n\t }", "@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 }", "public IRubyObject aref(IRubyObject[] args) {\n switch (args.length) {\n case 1:\n return aref(args[0]);\n case 2:\n return aref(args[0], args[1]);\n default:\n Arity.raiseArgumentError(getRuntime(), args.length, 1, 2);\n return null; // not reached\n }\n }", "FunctionArgument getRef();", "public Arginfo visit(FormalParameterRest n, Arginfo argu) {\n Arginfo _ret=null;\n n.f0.accept(this, argu);\n n.f1.accept(this, argu);\n return _ret;\n }", "String getIdNode1();", "public interface IResource {\n\n\t/**\n\t * An optional attribute that identifies the Resource-element.\n\t */\n\tpublic URI getId();\n\n\tpublic boolean setId(URI id);\n\n\t/**\n\t * An optional attribute. If present, it provides a relative URI template for the identifier of the resource. The\n\t * resource's base URI is given by the Resource-element's parent Resource- or Resources-element. The value of the\n\t * path-attribute may be static or may contain embedded template parameters.\n\t */\n\tpublic String getPath();\n\n\tpublic boolean setPath(String path);\n\n\t/**\n\t * An optional attribute whose type is a space-separated list of URIs. Each value in the list identifies a\n\t * ResourceType-element that defines a set of methods supported by the resource.\n\t */\n\tpublic List<URI> getType();\n\n\tpublic boolean setType(List<URI> type);\n\n\tpublic boolean addType(URI type);\n\n\t/**\n\t * Defines the media type for the query component of the resourve URI. Defaults to\n\t * 'application/x-www-form-urlencoded' if not specified which results in query strings being formatted as specified.\n\t */\n\tpublic String getQueryType();\n\n\tpublic boolean setQueryType(String queryType);\n\n\t/**\n\t * A Resource-element contains zero or more Doc-elements.\n\t */\n\tpublic List<IDoc> getDocs();\n\n\tpublic boolean addDoc(IDoc doc);\n\n\t/**\n\t * A Resource-element contains zero or more Param-elements with one of the following values for its style-attriute:\n\t * template, matrix, query, header.\n\t */\n\tpublic List<IParam> getParams();\n\n\tpublic boolean addParam(IParam param);\n\n\t/**\n\t * A Resource-element contains zero or more Method-elements, each of which describes the input to and output from an\n\t * HTTP protocol method that can be applied to the resource. Such locally-defined methods are added to any methods\n\t * included in ResourceType-elements referred to using the type-attribute.\n\t */\n\tpublic List<IMethod> getMethods();\n\n\tpublic boolean addMethod(IMethod method);\n\n\t/**\n\t * A Resource-element contains zero or more Resource-elements that describe sub-resources. Such sub-resources\n\t * inherit matrix and template parameters from the parent resource since their URI is relative to that of the parent\n\t * resource but they do not inherit query or header parameters specified globally for the parent resource.\n\t */\n\tpublic List<IResource> getResources();\n\n\tpublic boolean addResource(IResource resource);\n\n\tpublic String toString();\n\n}", "public interface AstIncreUnaryExpression extends AstUnaryExpression {\r\n}", "public interface IArgsParser {\r\n\tvoid parse(String [] aParams, Iterable<IArgument> args);\r\n}", "@Override\n public R visit(Consequent n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "public interface IFormalParameter {\r\n\t/*\r\n\t * Fills in the given actual parameters in the formal parameters and declare\r\n\t * them in the given context\r\n\t */\r\n\tpublic void fillIn(Context context, Iterator<IReferable> _actualParams);\r\n\r\n}", "public interface InputParam extends Parameter {\r\n\r\n /* ***************************************************\r\n * Property http://www.semanticweb.org/rami#isEquivalent\r\n */\r\n \r\n /**\r\n * Gets all property values for the isEquivalent property.<p>\r\n * \r\n * @returns a collection of values for the isEquivalent property.\r\n */\r\n Collection<? extends Noun> getIsEquivalent();\r\n\r\n /**\r\n * Checks if the class has a isEquivalent property value.<p>\r\n * \r\n * @return true if there is a isEquivalent property value.\r\n */\r\n boolean hasIsEquivalent();\r\n\r\n /**\r\n * Adds a isEquivalent property value.<p>\r\n * \r\n * @param newIsEquivalent the isEquivalent property value to be added\r\n */\r\n void addIsEquivalent(Noun newIsEquivalent);\r\n\r\n /**\r\n * Removes a isEquivalent property value.<p>\r\n * \r\n * @param oldIsEquivalent the isEquivalent property value to be removed.\r\n */\r\n void removeIsEquivalent(Noun oldIsEquivalent);\r\n\r\n\r\n /* ***************************************************\r\n * Property http://www.semanticweb.org/rami#isInputTo\r\n */\r\n \r\n /**\r\n * Gets all property values for the isInputTo property.<p>\r\n * \r\n * @returns a collection of values for the isInputTo property.\r\n */\r\n Collection<? extends MethodCall> getIsInputTo();\r\n\r\n /**\r\n * Checks if the class has a isInputTo property value.<p>\r\n * \r\n * @return true if there is a isInputTo property value.\r\n */\r\n boolean hasIsInputTo();\r\n\r\n /**\r\n * Adds a isInputTo property value.<p>\r\n * \r\n * @param newIsInputTo the isInputTo property value to be added\r\n */\r\n void addIsInputTo(MethodCall newIsInputTo);\r\n\r\n /**\r\n * Removes a isInputTo property value.<p>\r\n * \r\n * @param oldIsInputTo the isInputTo property value to be removed.\r\n */\r\n void removeIsInputTo(MethodCall oldIsInputTo);\r\n\r\n\r\n /* ***************************************************\r\n * Property http://www.semanticweb.org/rami#Label\r\n */\r\n \r\n /**\r\n * Gets all property values for the Label property.<p>\r\n * \r\n * @returns a collection of values for the Label property.\r\n */\r\n Collection<? extends Object> getLabel();\r\n\r\n /**\r\n * Checks if the class has a Label property value.<p>\r\n * \r\n * @return true if there is a Label property value.\r\n */\r\n boolean hasLabel();\r\n\r\n /**\r\n * Adds a Label property value.<p>\r\n * \r\n * @param newLabel the Label property value to be added\r\n */\r\n void addLabel(Object newLabel);\r\n\r\n /**\r\n * Removes a Label property value.<p>\r\n * \r\n * @param oldLabel the Label property value to be removed.\r\n */\r\n void removeLabel(Object oldLabel);\r\n\r\n\r\n\r\n /* ***************************************************\r\n * Common interfaces\r\n */\r\n\r\n OWLNamedIndividual getOwlIndividual();\r\n\r\n OWLOntology getOwlOntology();\r\n\r\n void delete();\r\n\r\n}", "public ConceptAtom(IRI iri)\n {\n super(iri);\n this.strVariable = \"\"; \n }", "@Override\n public String visit(IntersectionType n, Object arg) {\n return null;\n }", "public Snippet visit(DotId n, Snippet argu) {\n\t Snippet _ret= new Snippet(\"\",\"\",null,false);\n\t _ret = n.identifier.accept(this, argu);\n\t n.nodeToken.accept(this, argu);\n\t n.nodeToken1.accept(this, argu);\n\t // return new Snippet(\"\",_ret.returnTemp + \".id\", new X10Integer(), false);\n\t return new Snippet(\"\",\"0\", new X10Integer(), false);\n\t }", "@Override\n public String visit(SimpleName n, Object arg) {\n return null;\n }", "@Override\n public R visit(UnaryExpression n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "public interface PathNodeMember extends PathNode {\n}", "public interface TreeInterface extends SymmetricDigraphInterface {\r\n /** Return parent of a tree node.\r\n * @precondition nonNull(node)\r\n */\r\n public IRNode getParent(IRNode node);\r\n\r\n /** The location is a value used by an IRSequence\r\n * to locate an element. For IRArray, it is an integer.\r\n * @precondition nonNull(node)\r\n */\r\n public IRLocation getLocation(IRNode node);\r\n\r\n /** Return the root of a subtree.\r\n */\r\n public IRNode getRoot(IRNode subtree);\r\n\r\n /** Return an enumeration of nodes in the subtree\r\n * starting with leaves and working toward the node given.\r\n * A postorder traversal.\r\n */\r\n public Iteratable<IRNode> bottomUp(IRNode subtree);\r\n\r\n /** Return an enumeration of nodes in the subtree\r\n * starting with this node and working toward the leaves.\r\n * A preorder traversal.\r\n */\r\n public Iteratable<IRNode> topDown(IRNode subtree);\r\n}", "AstroArg unpack(Astro litChars);", "@Override\n public String visit(NormalAnnotationExpr n, Object arg) {\n return null;\n }", "public String visit(PrimaryExpression n, Object argu) \n\t{\n\t\tString _ret=null;\n\t n.f0.accept(this, argu);\n\t return _ret;\n\t}", "public static String arg(CommonTree ast, IRTree irt)\n {\n Token t = ast.getToken();\n int tt = t.getType();\n if (tt == STRING) {\n String tx = t.getText();\n int a = Memory.allocateString(tx); \n String st = String.valueOf(a);\n irt.setOp(\"MEM\");\n irt.addSub(new IRTree(\"CONST\", new IRTree(st)));\n return \"string\";\n }\n else {\n expression(ast, irt);\n return \"real\";\n }\n }", "public Attribution(\n Function function, int resultOfs, int resultAttr, int[] argsOfs, int[] argsAttr)\n {\n this.function = function;\n this.resultOfs = resultOfs;\n this.resultAttr = resultAttr;\n this.argsOfs = argsOfs;\n this.argsAttr = argsAttr;\n this.args = new Object[argsOfs.length];\n }", "@Override\n public R visit(Constraint n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "public interface IRelationship<A extends IAttribute> extends IErdNode\n{\n\n /**\n * check the relationship, if the two connected entities are the same\n *\n * @return recursive\n */\n boolean isRecursive();\n\n /**\n * check if this relationship is a weak relationship\n * -> one of the entities is weak\n *\n * @return weak\n */\n boolean isWeakRelationship();\n\n /**\n * return the description of the relationship\n *\n * @return description\n */\n String getDescription();\n\n /**\n * create new attribute to relationship\n *\n * @param p_id name of the attribute\n * @param p_property of the attribute\n * @return self-reference\n */\n A createAttribute( @NonNull final String p_id, @Nonnull final String p_property );\n\n /**\n * get all connected attributes from the relationship in a map\n *\n * @return map with all attributes\n */\n Map<String, IAttribute> getConnectedAttributes();\n\n /**\n * connect entity incl. cardinality to the relationship\n *\n * @param p_entity name of the entity\n * @param p_cardinality cardinality\n * @return self-reference\n */\n IEntity<A> connectEntity( @NonNull final IEntity<IAttribute> p_entity, @NonNull final String p_cardinality );\n\n /**\n * return the connected entities in a map\n *\n * @return connected entities\n */\n Map<String, Collection<String>> getConnectedEntities();\n\n}", "@Override\n public R visit(NodeList n, A argu) {\n R _ret = null;\n for (Enumeration<Node> e = n.elements(); e.hasMoreElements();) {\n e.nextElement().accept(this, argu);\n }\n return _ret;\n }", "public String visit(ExpressionList n, Object argu) \n\t{\n\t\tString _ret=null;\n\t\tMap<String, String> parameter = parameters.get(0);\n\t\t\n\t\t\n\t\tString e0 = n.f0.accept(this, argu);\n\t\tif (parameter.containsValue(e0) \n\t\t\t\t&& ((parameters.size() <= 1) \n\t\t\t\t|| n.f1.accept(this, parameters.subList(1, parameters.size()-1)) != null))\n\t\t{\n\t\t\t_ret = e0;\n\t\t}\n\t\t\n\t return _ret;\n\t}", "void mo7375a(C1320b bVar, int i, String str, Uri uri, String str2, String str3) throws RemoteException;", "public interface ResolvableModelicaNode extends ModelicaNode {\n /**\n * Tries to resolve the <b>declaration</b> of the referenced component.\n */\n ResolutionResult getResolutionCandidates();\n}", "public Snippet visit(ReturnType n, Snippet argu) {\n\t Snippet _ret=null;\n\t _ret = n.nodeChoice.accept(this, argu);\n\t return _ret;\n\t }", "public static <R> function<R> function(RNArgsInterface<R> body) {\n\t\treturn $(body);\n\t}", "public interface IASTPathPart {\n\t/**\n\t * The node child index at its parent\n\t * \n\t * @return\n\t */\n\tint index();\n\n\t/**\n\t * The unique node identifier\n\t * \n\t * @return\n\t */\n\tString id();\n}", "public Arginfo visit(ExpressionList n, Arginfo argu) {\n Arginfo _ret=null;\n n.f0.accept(this, argu);\n n.f1.accept(this, argu);\n return _ret;\n }" ]
[ "0.60783976", "0.5912319", "0.577626", "0.56815004", "0.55670434", "0.5378821", "0.5377468", "0.5358081", "0.53294677", "0.5311725", "0.5304943", "0.5298459", "0.52873266", "0.5285282", "0.5283964", "0.52577657", "0.5239141", "0.51960886", "0.51757634", "0.5173925", "0.51106215", "0.5088145", "0.50796753", "0.5077067", "0.50672865", "0.5063002", "0.5060739", "0.50308377", "0.5029846", "0.49980125", "0.4994815", "0.4990112", "0.49638295", "0.49622297", "0.49421683", "0.49238956", "0.49100178", "0.48935077", "0.4878446", "0.48742154", "0.48713255", "0.48696613", "0.4839186", "0.48368984", "0.48330507", "0.48304173", "0.4825914", "0.48258853", "0.4825482", "0.48247507", "0.48196885", "0.4812416", "0.48037636", "0.47881597", "0.47851598", "0.47796765", "0.4775878", "0.47694066", "0.4766147", "0.4756715", "0.47466227", "0.47406957", "0.47255504", "0.47207135", "0.4719269", "0.4718349", "0.47168523", "0.47117952", "0.4709945", "0.47017166", "0.46953726", "0.46804264", "0.4671045", "0.46695054", "0.46679935", "0.46624148", "0.4658832", "0.46553513", "0.46539673", "0.46449882", "0.4637455", "0.46364298", "0.46338382", "0.46291074", "0.46275663", "0.4625297", "0.46189377", "0.46181083", "0.46179244", "0.4617626", "0.46153218", "0.46128315", "0.4611731", "0.46003973", "0.45986593", "0.45970517", "0.45919073", "0.45906368", "0.45897123", "0.45859233" ]
0.7112018
0
sparqlString > SparqlString() nodeOptional > ( | ( "^^" IRIref() ) )?
@Override public R visit(RDFLiteral n, A argu) { R _ret = null; n.sparqlString.accept(this, argu); n.nodeOptional.accept(this, argu); return _ret; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public R visit(SparqlString n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "Object executeQuery(String sparqlQuery);", "@Test\n public void example13 () throws Exception {\n Map<String, Stmt> inputs = example2setup();\n conn.setNamespace(\"ex\", \"http://example.org/people/\");\n conn.setNamespace(\"ont\", \"http://example.org/ontology/\");\n String prefix = \"PREFIX ont: \" + \"<http://example.org/ontology/>\\n\";\n \n String queryString = \"select ?s ?p ?o where { ?s ?p ?o} \";\n TupleQuery tupleQuery = conn.prepareTupleQuery(QueryLanguage.SPARQL, queryString);\n assertSetsEqual(\"SELECT result:\", inputs.values(),\n statementSet(tupleQuery.evaluate()));\n \n assertTrue(\"Boolean result\",\n conn.prepareBooleanQuery(QueryLanguage.SPARQL,\n prefix + \n \"ask { ?s ont:name \\\"Alice\\\" } \").evaluate());\n assertFalse(\"Boolean result\",\n conn.prepareBooleanQuery(QueryLanguage.SPARQL,\n prefix + \n \"ask { ?s ont:name \\\"NOT Alice\\\" } \").evaluate());\n \n queryString = \"construct {?s ?p ?o} where { ?s ?p ?o . filter (?o = \\\"Alice\\\") } \";\n GraphQuery constructQuery = conn.prepareGraphQuery(QueryLanguage.SPARQL, queryString);\n assertSetsEqual(\"Construct result\",\n mapKeep(new String[] {\"an\"}, inputs).values(),\n statementSet(constructQuery.evaluate()));\n \n queryString = \"describe ?s where { ?s ?p ?o . filter (?o = \\\"Alice\\\") } \";\n GraphQuery describeQuery = conn.prepareGraphQuery(QueryLanguage.SPARQL, queryString);\n assertSetsEqual(\"Describe result\",\n mapKeep(new String[] {\"an\", \"at\"}, inputs).values(),\n statementSet(describeQuery.evaluate()));\n }", "public static void main( String[] args ) {\n\n Model m = ModelFactory.createOntologyModel(OntModelSpec.OWL_DL_MEM_RDFS_INF);\n\n\n FileManager.get().readModel( m, owlFile );\n String myOntologyName = \"http://www.w3.org/2002/07/owl#\";\n String myOntologyNS = \"http://www.w3.org/2002/07/owl#\";\n////\n////\n// String rdfPrefix = \"PREFIX rdf: <\"+RDF.getURI()+\">\" ;\n// String myOntologyPrefix = \"PREFIX \"+myOntologyName+\": <\"+myOntologyNS+\">\" ;\n// String myOntologyPrefix1 = \"PREFIX \"+myOntologyName ;\n String myOntologyPrefix2 = \"prefix pizza: <http://www.w3.org/2002/07/owl#> \";\n//\n//\n//// String queryString = myOntologyPrefix + NL\n//// + rdfPrefix + NL +\n//// \"SELECT ?subject\" ;\n \n String queryString = rdfPrefix + myOntologyPrefix2 +\n// \t\t \"prefix pizza: <http://www.w3.org/2002/07/owl#> \"+ \n \t\t \"prefix rdfs: <\" + RDFS.getURI() + \"> \" +\n \t\t \"prefix owl: <\" + OWL.getURI() + \"> \" +\n// \t\t \"select ?o where {?s ?p ?o}\";\n \n//\t\t\t\t\t\t\"select ?s where {?s rdfs:label \"苹果\"@zh}\";\n \n// \"SELECT ?label WHERE { ?subject rdfs:label ?label }\" ;\n// \"SELECT DISTINCT ?predicate ?label WHERE { ?subject ?predicate ?object. ?predicate rdfs:label ?label .}\";\n// \"SELECT DISTINCT ?s WHERE {?s rdfs:label \\\"Italy\\\"@en}\" ;\n// \"SELECT DISTINCT ?s WHERE {?s rdfs:label \\\"苹果\\\"@zh}\" ;\n// \"SELECT DISTINCT ?s WHERE\" +\n// \"{?object rdfs:label \\\"水果\\\"@zh.\" +\n// \"?subject rdfs:subClassOf ?object.\" +\n// \"?subject rdfs:label ?s}\";\n //星号是转义字符,分号是转义字符\n\t\t\t\t\"SELECT DISTINCT ?e ?s WHERE {?entity a ?subject.?subject rdfs:subClassOf ?object.\"+\n \"?object rdfs:label \\\"富士苹果\\\"@zh.?entity rdfs:label ?e.?subject rdfs:label ?s}ORDER BY ?s\";\n \t\t\n\n \n \t\tcom.hp.hpl.jena.query.Query query = QueryFactory.create(queryString);\n \t\tQueryExecution qe = QueryExecutionFactory.create(query, m);\n \t\tcom.hp.hpl.jena.query.ResultSet results = qe.execSelect();\n\n \t\tResultSetFormatter.out(System.out, results, query);\n \t\tqe.close();\n\n// Query query = QueryFactory.create(queryString) ;\n\n query.serialize(new IndentedWriter(System.out,true)) ;\n System.out.println() ;\n\n\n\n QueryExecution qexec = QueryExecutionFactory.create(query, m) ;\n\n try {\n\n ResultSet rs = qexec.execSelect() ;\n\n\n for ( ; rs.hasNext() ; ){\n QuerySolution rb = rs.nextSolution() ;\n RDFNode y = rb.get(\"person\");\n System.out.print(\"name : \"+y+\"--- \");\n Resource z = (Resource) rb.getResource(\"person\");\n System.out.println(\"plus simplement \"+z.getLocalName());\n }\n }\n finally{\n qexec.close() ;\n }\n }", "public void test_sf_969475() {\n String SOURCE=\n \"<?xml version='1.0'?>\" +\n \"<!DOCTYPE owl [\" +\n \" <!ENTITY rdf 'http://www.w3.org/1999/02/22-rdf-syntax-ns#' >\" +\n \" <!ENTITY rdfs 'http://www.w3.org/2000/01/rdf-schema#' >\" +\n \" <!ENTITY xsd 'http://www.w3.org/2001/XMLSchema#' >\" +\n \" <!ENTITY owl 'http://www.w3.org/2002/07/owl#' >\" +\n \" <!ENTITY dc 'http://purl.org/dc/elements/1.1/' >\" +\n \" <!ENTITY base 'http://jena.hpl.hp.com/test' >\" +\n \" ]>\" +\n \"<rdf:RDF xmlns:owl ='&owl;' xmlns:rdf='&rdf;' xmlns:rdfs='&rdfs;' xmlns:dc='&dc;' xmlns='&base;#' xml:base='&base;'>\" +\n \" <owl:ObjectProperty rdf:ID='p0'>\" +\n \" <owl:inverseOf>\" +\n \" <owl:ObjectProperty rdf:ID='q0' />\" +\n \" </owl:inverseOf>\" +\n \" </owl:ObjectProperty>\" +\n \" <owl:ObjectProperty rdf:ID='p1'>\" +\n \" <owl:inverseOf>\" +\n \" <owl:ObjectProperty rdf:ID='q1' />\" +\n \" </owl:inverseOf>\" +\n \" </owl:ObjectProperty>\" +\n \"</rdf:RDF>\";\n OntModel m = ModelFactory.createOntologyModel( OntModelSpec.OWL_MEM );\n m.read( new StringReader( SOURCE ), null );\n \n ObjectProperty p0 = m.getObjectProperty( \"http://jena.hpl.hp.com/test#p0\");\n Object invP0 = p0.getInverseOf();\n \n assertEquals( m.getResource( \"http://jena.hpl.hp.com/test#q0\"), invP0 );\n assertTrue( \"Should be an ObjectProperty facet\", invP0 instanceof ObjectProperty );\n \n ObjectProperty q1 = m.getObjectProperty( \"http://jena.hpl.hp.com/test#q1\");\n Object invQ1 = q1.getInverse();\n \n assertEquals( m.getResource( \"http://jena.hpl.hp.com/test#p1\"), invQ1 );\n assertTrue( \"Should be an ObjectProperty facet\", invQ1 instanceof ObjectProperty );\n }", "public Collection<URI> searchWithSPARQL(final String queryString)\n {\n if (DEBUG.SEARCH) Log.debug(\"searchWithSPARQL; queryString:\\n\" + Util.tags(queryString));\n \n final Collection<URI> resultSet = new ArrayList<URI>();\n final com.hp.hpl.jena.query.Query query = QueryFactory.create(queryString);\n \n if (DEBUG.SEARCH) Log.debug(\"QF created \" + Util.tag(query)\n + \"; memory=\" + Runtime.getRuntime().freeMemory()\n + \"\\n\" + query.toString().trim().replaceAll(\"\\n\\n\", \"\\n\"));\n\n final QueryExecution qe = QueryExecutionFactory.create(query, this); // 2nd arg is for Model or for FileManager?\n if (DEBUG.SEARCH) Log.debug(\"created QEF \" + qe + \"; memory=\" + Runtime.getRuntime().freeMemory());\n\n final ResultSet results = qe.execSelect();\n if (DEBUG.SEARCH) Log.debug(\"execSelect returned; memory=\" + Runtime.getRuntime().freeMemory());\n \n while (results.hasNext()) {\n final QuerySolution qs = results.nextSolution();\n if (DEBUG.SEARCH) {\n final String qss = qs.toString().replaceAll(\"<http://vue.tufts.edu\", \"...\"); // shorten debug output\n Log.debug(\"qSol \" + String.format(\"%.190s%s\", qss, qss.length() > 190 ? (\"...x\"+qss.length()) : \"\"));\n }\n if (false) {\n // debug debug all vars from query\n //Util.dumpIterator(qs.varNames());\n Iterator<String> vn = qs.varNames(); \n while (vn.hasNext()) {\n String v = vn.next();\n Log.debug(\"\\t\" + Util.tags(v) + \"=\" + Util.tags(qs.get(v)));\n }\n }\n try {\n resultSet.add(new URI(qs.getResource(\"rid\").getURI()));\n } catch (Throwable t) {\n Log.warn(\"handling QuerySolution \" + qs, t);\n }\n }\n qe.close();\n return resultSet;\n }", "public String getOntologyURI();", "private static String determineInputSparql(CommandLine optionLine, Map<String, String> prefixes)\n {\n String query = optionLine.getOptionValue(Environment.QUERY).trim(); //$NON-NLS-1$\n if (StringUtils.isEmpty(query)) {\n System.err.println(\"Input query is missing\"); //$NON-NLS-1$\n System.exit(1);\n }\n return appendPrefixes(query, prefixes);\n }", "public interface SparqlQueryService {\n\n\t/**\n\t * Generic method to invoke a supplied query regardless of its type. The\n\t * client has to inspect and cast the result object accordingly.\n\t * \n\t * @param name\n\t * @param params\n\t * @return\n\t */\n\tObject executeQuery(String sparqlQuery);\n\n\t/**\n\t * Generic method to invoke a query regardless of its type. The client has\n\t * to inspect and cast the result object accordingly.\n\t * \n\t * @param name\n\t * @param params\n\t * @return\n\t */\n\tObject callQuery(String name, Map<String, String> params);\n\n\t/**\n\t * Invocation of a SPARQL SELECT query. The resultant JSON structure is\n\t * serialized according to the W3C SPARQL 1.1 Query Results JSON Format.\n\t * \n\t * @see http://www.w3.org/TR/sparql11-query/#select\n\t * @param name\n\t * @param params\n\t * @return JSON result structure.\n\t */\n\tSparqlResultObject callSelectQuery(String name, Map<String, String> params);\n\n\t/**\n\t * Invocation of a SPARQL CONSTRUCT query resulting in new graph serialized\n\t * according to RDF/JSON format\n\t * (http://jena.apache.org/documentation/io/rdf-json.html).\n\t * \n\t * \n\t * @see http://www.w3.org/TR/sparql11-query/#construct\n\t * @param name\n\t * @param params\n\t * @return\n\t */\n\tGraph callConstructQuery(String name, Map<String, String> params);\n\n\t/**\n\t * Invocation of a SPARQL ASK query resulting in a boolean value.\n\t * \n\t * @see\n\t * \n\t * @param name\n\t * Unique name of the query.\n\t * @param params\n\t * Map of required parameter-value pairs.\n\t * @return true or false, depending whether the pattern matches.\n\t */\n\tBoolean callAskQuery(String name, Map<String, String> params);\n\n}", "public static void querying(String constructQuery2) {\n\t\t//construct the new query\n\t\t//String constructQuery2 = prefix+\" \"+select+\" \"+selectValues+\" \"+where+openBracket+openBracket+\" \"+local+\" \"+service+\" \"+openBracket+\" \"+remote+\" \"+closeBracket+closeBracket;\n\t\t//constructQuery2 = constructQuery2+\" UNION \"+\" \"+openBracket+\" \"+local+\" \"+service+\" \"+openBracket+\" \"+remote+\" \"+closeBracket+closeBracket+closeBracket;\n\t\t\n\t\tSystem.out.println(constructQuery2);\n\t\tQuery query2 = QueryFactory.create(constructQuery2);\n\t\tQueryExecution qe2 = QueryExecutionFactory.sparqlService(\n\t\t\t\t\"http://localhost:3030/USNA/query\", query2);\n\t\t\n\t\tResultSet results1 = qe2.execSelect();\n\t\tif(constantOutput == \"\") {\n\t\t\tResultSetFormatter.out(System.out, results1);\n\t\t}else {\n\t\t\tString NS = \"http://www.usna.org/ns#\";\n\t\t\tModel rdfssExample = ModelFactory.createDefaultModel();\n\t\t\tString [] constant = constantOutput.trim().split(\" \");\n\t\t\t\n\t\t\tString [] headers = selectValues.split(\" \");\n\t\t System.out.println(\"--------------------------------------------------------------------------------------------------------------------------------------------\");\n\t\t\tfor(int i = 0; i< headers.length; i++) {\n\t\t\t\t//System.out.print(headers[i].substring(1,headers[i].length()).trim()+\"\\t\\t\\t\\t\\t\\t\");\n\t\t\t\tSystem.out.print(headers[i].substring(1,headers[i].length()).trim()+\"\\t\\t\\t\\t\\t\\t\");\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t\tSystem.out.println(\"----------------------------------------------------------------------------------------------------------------------------------------------\");\n\t\t\tSystem.out.println();\n\t\t\t\n\t\t\ttry {\n\t\t\t\t int count = 0;\n\t\t while ( results1.hasNext() ) {\n\t\t \t //Resource Response = rdfssExample.createResource(NS+constant[count]);\n\t\t \t \n\t\t QuerySolution soln = results1.nextSolution();\n\t\t Resource first = soln.getResource(headers[0].substring(1,headers[0].length()).trim());\n\t\t //Resource second = soln.getResource(headers[1].substring(1,headers[1].length()).trim());\n\t\t //Resource third = soln.getResource(headers[2].substring(1,headers[2].length()).trim());\n\t\t //Resource fourth = soln.getResource(headers[3].substring(1,headers[3].length()).trim());\n\t\t for(int i=0; i< constant.length; i++) {\n\t\t \t Resource Response = rdfssExample.createResource(NS+constant[i]);\n\t\t \t System.out.format(\"%10s %50s\",first, Response);\n\t\t \t System.out.println();\n\t\t\t\t\t //count++;\n\t\t }\n\t\t //System.out.format(\"%10s %50s\",first, Response);\n\t\t //System.out.format(\"%10s\",first);\n\t\t\t\t System.out.println();\n\t\t\t\t //count++;\n\t\t\t\t \n\t\t\t\t //System.out.println(count);\n\t\t \n\t\t }\n\t\t } finally {\n\t\t \t qe2.close();\n\t\t}\n\t\t\t \n\t\t}\t\t \n\t}", "public interface QuotedL1Node {\n\n}", "@Test\n public void testPhrase() {\n assertQ(req(\"q\",\"text:now-cow\", \"indent\",\"true\")\n ,\"//*[@numFound='1']\"\n );\n // should generate a query of (now OR cow) and match both docs\n assertQ(req(\"q\",\"text_np:now-cow\", \"indent\",\"true\")\n ,\"//*[@numFound='2']\"\n );\n }", "public void test_afs_01() {\n String sourceT =\n \"<rdf:RDF \"\n + \" xmlns:rdf='http://www.w3.org/1999/02/22-rdf-syntax-ns#'\"\n + \" xmlns:rdfs='http://www.w3.org/2000/01/rdf-schema#'\"\n + \" xmlns:owl=\\\"http://www.w3.org/2002/07/owl#\\\">\"\n + \" <owl:Class rdf:about='http://example.org/foo#A'>\"\n + \" </owl:Class>\"\n + \"</rdf:RDF>\";\n \n String sourceA =\n \"<rdf:RDF \"\n + \" xmlns:rdf='http://www.w3.org/1999/02/22-rdf-syntax-ns#'\"\n + \" xmlns:rdfs='http://www.w3.org/2000/01/rdf-schema#' \"\n + \" xmlns:owl=\\\"http://www.w3.org/2002/07/owl#\\\">\"\n + \" <rdf:Description rdf:about='http://example.org/foo#x'>\"\n + \" <rdf:type rdf:resource='http://example.org/foo#A' />\"\n + \" </rdf:Description>\"\n + \"</rdf:RDF>\";\n \n Model tBox = ModelFactory.createDefaultModel();\n tBox.read(new ByteArrayInputStream(sourceT.getBytes()), \"http://example.org/foo\");\n \n Model aBox = ModelFactory.createDefaultModel();\n aBox.read(new ByteArrayInputStream(sourceA.getBytes()), \"http://example.org/foo\");\n \n Reasoner reasoner = ReasonerRegistry.getOWLReasoner();\n reasoner = reasoner.bindSchema(tBox);\n \n OntModelSpec spec = new OntModelSpec(OntModelSpec.OWL_MEM_RULE_INF);\n spec.setReasoner(reasoner);\n \n OntModel m = ModelFactory.createOntologyModel(spec, aBox);\n \n List inds = new ArrayList();\n for (Iterator i = m.listIndividuals(); i.hasNext();) {\n inds.add(i.next());\n }\n \n assertTrue(\"x should be an individual\", inds.contains(m.getResource(\"http://example.org/foo#x\")));\n \n }", "public void test_sf_945436() {\n String SOURCE=\n \"<?xml version='1.0'?>\" +\n \"<!DOCTYPE owl [\" +\n \" <!ENTITY rdf 'http://www.w3.org/1999/02/22-rdf-syntax-ns#' >\" +\n \" <!ENTITY rdfs 'http://www.w3.org/2000/01/rdf-schema#' >\" +\n \" <!ENTITY xsd 'http://www.w3.org/2001/XMLSchema#' >\" +\n \" <!ENTITY owl 'http://www.w3.org/2002/07/owl#' >\" +\n \" <!ENTITY dc 'http://purl.org/dc/elements/1.1/' >\" +\n \" <!ENTITY base 'http://jena.hpl.hp.com/test' >\" +\n \" ]>\" +\n \"<rdf:RDF xmlns:owl ='&owl;' xmlns:rdf='&rdf;' xmlns:rdfs='&rdfs;' xmlns:dc='&dc;' xmlns='&base;#' xml:base='&base;'>\" +\n \" <C rdf:ID='x'>\" +\n \" <rdfs:label xml:lang=''>a_label</rdfs:label>\" +\n \" </C>\" +\n \" <owl:Class rdf:ID='C'>\" +\n \" </owl:Class>\" +\n \"</rdf:RDF>\";\n OntModel m = ModelFactory.createOntologyModel( OntModelSpec.OWL_MEM );\n m.read( new StringReader( SOURCE ), null );\n Individual x = m.getIndividual( \"http://jena.hpl.hp.com/test#x\" );\n assertEquals( \"Label on resource x\", \"a_label\", x.getLabel( null) );\n assertEquals( \"Label on resource x\", \"a_label\", x.getLabel( \"\" ) );\n assertSame( \"fr label on resource x\", null, x.getLabel( \"fr\" ) );\n }", "@rdf(FOAF.SPATIALTHING)\npublic interface SpatialThing extends Thing {\n}", "IRI getBaseIRI();", "@Test\n public void testSomeToStrings() {\n System.out.println(new JresBoolQuery()\n .must(new JresQueryStringQuery(\"stuff:true\").withDefaultOperator(\"AND\"))\n .should(\n new JresMatchQuery(\"color\", \"orange\"),\n new JresTermQuery(\"key\", \"abc123\")\n )\n .mustNot(new JresDisMaxQuery(\n new JresMatchQuery(\"color\", \"yellow\"),\n new JresMatchQuery(\"color\", \"green\")\n ))\n );\n }", "public static void main (String[] args) {\n EntityQuery query = new EntityQuery();\n Harvestable res = new OaiPmhResource();\n query.setFilter(\"test\", res);\n query.setAcl(\"diku\");\n query.setStartsWith(\"cf\",\"name\");\n System.out.println(query.asUrlParameters());\n System.out.println(query.asWhereClause(\"a\"));\n query.setQuery(\"(usedBy=library)\");\n System.out.println(query.asUrlParameters());\n System.out.println(query.asWhereClause(\"x\"));\n\n query = new EntityQuery();\n query.setQuery(\"(usedBy=library)\");\n System.out.println(query.asUrlParameters());\n System.out.println(query.asWhereClause(\"b\"));\n query.setQuery(\"usedBy=*library\");\n System.out.println(query.asUrlParameters());\n System.out.println(query.asWhereClause(\"c\"));\n query.setQuery(\"(=library\");\n System.out.println(query.asUrlParameters());\n System.out.println(query.asWhereClause(\"d\"));\n query.setQuery(\"usedBy=\");\n System.out.println(query.asUrlParameters());\n System.out.println(query.asWhereClause(\"e\"));\n query.setQuery(\"(usedBy!=library)\");\n System.out.println(query.asUrlParameters());\n System.out.println(query.asWhereClause(\"f\"));\n query.setQuery(\"(usedBy==library)\");\n System.out.println(query.asUrlParameters());\n System.out.println(query.asWhereClause(\"g\"));\n query.setQuery(\"(usedBy===library)\");\n System.out.println(query.asUrlParameters());\n System.out.println(query.asWhereClause(\"h\"));\n }", "@Override\n public final InputStream dereference(String uri, String contentType) throws IOException {\n if(uri==null){\n return null;\n }\n UriRef reference = new UriRef(uri);\n StringBuilder query = new StringBuilder();\n query.append(\"CONSTRUCT { \");\n query.append(reference);\n query.append(\" ?p ?o } WHERE { \");\n query.append(reference);\n query.append(\" ?p ?o }\");\n\n //String format = SupportedFormat.RDF_XML;\n return SparqlEndpointUtils.sendSparqlRequest(getAccessUri(),query.toString(),contentType);\n }", "@Test\n\tpublic void testSparqlQuery() throws OWLOntologyCreationException,\n\t\t\tIOException {\n\t\tInputStream ontStream = LDLPReasonerTest.class\n\t\t\t\t.getResourceAsStream(\"/data/university0-0.owl\");\n\t\tOWLOntologyManager manager = OWLManager.createOWLOntologyManager();\n\t\tOWLOntology ontology = manager\n\t\t\t\t.loadOntologyFromOntologyDocument(ontStream);\n\n\t\tInputStream queryStream = LDLPReasonerTest.class\n\t\t\t\t.getResourceAsStream(\"/data/lubm-query4.sparql\");\n\n\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(\n\t\t\t\tqueryStream));\n\t\tString line;\n\t\tString queryText = \"\";\n\t\twhile ((line = reader.readLine()) != null) {\n\t\t\tqueryText = queryText + line + \"\\n\";\n\t\t}\n\n\t\tQuery query = QueryFactory.create(queryText, Syntax.syntaxARQ);\n\t\tLDLPReasoner reasoner = new LDLPReasoner(ontology);\n\t\tList<Literal> results = reasoner.executeQuery(query);\n\t\tSystem.out.println(results.size() + \" answers :\");\n\t\tfor (Literal result : results) {\n\t\t\tSystem.out.println(result);\n\t\t}\n\t\tLDLPCompilerManager m = LDLPCompilerManager.getInstance();\n\n\t\t// m.dump();\n\n\t}", "@org.junit.Test\n public void constrCompelemString1() {\n final XQuery query = new XQuery(\n \"fn:string(element elem {'a', element a {}, 'b'})\",\n ctx);\n try {\n result = new QT3Result(query.value());\n } catch(final Throwable trw) {\n result = new QT3Result(trw);\n } finally {\n query.close();\n }\n test(\n assertStringValue(false, \"ab\")\n );\n }", "public void test_der_02() {\n String SOURCE=\n \"<?xml version='1.0'?>\" +\n \"<!DOCTYPE owl [\" +\n \" <!ENTITY rdf 'http://www.w3.org/1999/02/22-rdf-syntax-ns#' >\" +\n \" <!ENTITY rdfs 'http://www.w3.org/2000/01/rdf-schema#' >\" +\n \" <!ENTITY xsd 'http://www.w3.org/2001/XMLSchema#' >\" +\n \" <!ENTITY owl 'http://www.w3.org/2002/07/owl#' >\" +\n \" <!ENTITY dc 'http://purl.org/dc/elements/1.1/' >\" +\n \" <!ENTITY base 'http://jena.hpl.hp.com/test' >\" +\n \" ]>\" +\n \"<rdf:RDF xmlns:owl ='&owl;' xmlns:rdf='&rdf;' xmlns:rdfs='&rdfs;' xmlns:dc='&dc;' xmlns='&base;#' xml:base='&base;'>\" +\n \" <owl:ObjectProperty rdf:ID='hasPublications'>\" +\n \" <rdfs:domain>\" +\n \" <owl:Class>\" +\n \" <owl:unionOf rdf:parseType='Collection'>\" +\n \" <owl:Class rdf:about='#Project'/>\" +\n \" <owl:Class rdf:about='#Task'/>\" +\n \" </owl:unionOf>\" +\n \" </owl:Class>\" +\n \" </rdfs:domain>\" +\n \" <rdfs:domain rdf:resource='#Dummy' />\" +\n \" <rdfs:range rdf:resource='#Publications'/>\" +\n \" </owl:ObjectProperty>\" +\n \" <owl:Class rdf:ID='Dummy'>\" +\n \" </owl:Class>\" +\n \"</rdf:RDF>\";\n String NS = \"http://jena.hpl.hp.com/test#\";\n OntModel m = ModelFactory.createOntologyModel(OntModelSpec.OWL_MEM, null);\n m.read(new ByteArrayInputStream( SOURCE.getBytes()), NS );\n \n OntClass dummy = m.getOntClass( NS + \"Dummy\" );\n // assert commented out - bug not accepted -ijd\n //TestUtil.assertIteratorValues( this, dummy.listDeclaredProperties(), \n // new Object[] {m.getObjectProperty( NS+\"hasPublications\")} );\n }", "public abstract String unrewrite(String absoluteIRI);", "public final EObject ruleSparqlQueryVariable() throws RecognitionException {\n EObject current = null;\n\n Token otherlv_0=null;\n Token lv_variable_1_0=null;\n Token otherlv_2=null;\n Token lv_variable_3_0=null;\n\n enterRule(); \n \n try {\n // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:1780:28: ( (otherlv_0= '?' ( (lv_variable_1_0= RULE_STRING ) ) (otherlv_2= '?' ( (lv_variable_3_0= RULE_STRING ) ) )* ) )\n // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:1781:1: (otherlv_0= '?' ( (lv_variable_1_0= RULE_STRING ) ) (otherlv_2= '?' ( (lv_variable_3_0= RULE_STRING ) ) )* )\n {\n // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:1781:1: (otherlv_0= '?' ( (lv_variable_1_0= RULE_STRING ) ) (otherlv_2= '?' ( (lv_variable_3_0= RULE_STRING ) ) )* )\n // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:1781:3: otherlv_0= '?' ( (lv_variable_1_0= RULE_STRING ) ) (otherlv_2= '?' ( (lv_variable_3_0= RULE_STRING ) ) )*\n {\n otherlv_0=(Token)match(input,34,FOLLOW_34_in_ruleSparqlQueryVariable3970); \n\n \tnewLeafNode(otherlv_0, grammarAccess.getSparqlQueryVariableAccess().getQuestionMarkKeyword_0());\n \n // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:1785:1: ( (lv_variable_1_0= RULE_STRING ) )\n // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:1786:1: (lv_variable_1_0= RULE_STRING )\n {\n // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:1786:1: (lv_variable_1_0= RULE_STRING )\n // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:1787:3: lv_variable_1_0= RULE_STRING\n {\n lv_variable_1_0=(Token)match(input,RULE_STRING,FOLLOW_RULE_STRING_in_ruleSparqlQueryVariable3987); \n\n \t\t\tnewLeafNode(lv_variable_1_0, grammarAccess.getSparqlQueryVariableAccess().getVariableSTRINGTerminalRuleCall_1_0()); \n \t\t\n\n \t if (current==null) {\n \t current = createModelElement(grammarAccess.getSparqlQueryVariableRule());\n \t }\n \t\taddWithLastConsumed(\n \t\t\tcurrent, \n \t\t\t\"variable\",\n \t\tlv_variable_1_0, \n \t\t\"STRING\");\n \t \n\n }\n\n\n }\n\n // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:1803:2: (otherlv_2= '?' ( (lv_variable_3_0= RULE_STRING ) ) )*\n loop18:\n do {\n int alt18=2;\n int LA18_0 = input.LA(1);\n\n if ( (LA18_0==34) ) {\n alt18=1;\n }\n\n\n switch (alt18) {\n \tcase 1 :\n \t // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:1803:4: otherlv_2= '?' ( (lv_variable_3_0= RULE_STRING ) )\n \t {\n \t otherlv_2=(Token)match(input,34,FOLLOW_34_in_ruleSparqlQueryVariable4005); \n\n \t \tnewLeafNode(otherlv_2, grammarAccess.getSparqlQueryVariableAccess().getQuestionMarkKeyword_2_0());\n \t \n \t // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:1807:1: ( (lv_variable_3_0= RULE_STRING ) )\n \t // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:1808:1: (lv_variable_3_0= RULE_STRING )\n \t {\n \t // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:1808:1: (lv_variable_3_0= RULE_STRING )\n \t // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:1809:3: lv_variable_3_0= RULE_STRING\n \t {\n \t lv_variable_3_0=(Token)match(input,RULE_STRING,FOLLOW_RULE_STRING_in_ruleSparqlQueryVariable4022); \n\n \t \t\t\tnewLeafNode(lv_variable_3_0, grammarAccess.getSparqlQueryVariableAccess().getVariableSTRINGTerminalRuleCall_2_1_0()); \n \t \t\t\n\n \t \t if (current==null) {\n \t \t current = createModelElement(grammarAccess.getSparqlQueryVariableRule());\n \t \t }\n \t \t\taddWithLastConsumed(\n \t \t\t\tcurrent, \n \t \t\t\t\"variable\",\n \t \t\tlv_variable_3_0, \n \t \t\t\"STRING\");\n \t \t \n\n \t }\n\n\n \t }\n\n\n \t }\n \t break;\n\n \tdefault :\n \t break loop18;\n }\n } while (true);\n\n\n }\n\n\n }\n\n leaveRule(); \n }\n \n catch (RecognitionException re) { \n recover(input,re); \n appendSkippedTokens();\n } \n finally {\n }\n return current;\n }", "@Override\n public String visit(StringLiteralExpr n, Object arg) {\n return null;\n }", "public abstract URI getOntologyTermUri ( String valueLabel, String typeLabel ) throws OntologyDiscoveryException;", "public void test_anon_0() {\n String NS = \"http://example.org/foo#\";\n String sourceT =\n \"<rdf:RDF \"\n + \" xmlns:rdf='http://www.w3.org/1999/02/22-rdf-syntax-ns#'\"\n + \" xmlns:rdfs='http://www.w3.org/2000/01/rdf-schema#'\"\n + \" xmlns:ex='http://example.org/foo#'\"\n + \" xmlns:owl='http://www.w3.org/2002/07/owl#'>\"\n + \" <owl:ObjectProperty rdf:about='http://example.org/foo#p' />\"\n + \" <owl:Class rdf:about='http://example.org/foo#A' />\"\n + \" <ex:A rdf:about='http://example.org/foo#x' />\"\n + \" <owl:Class rdf:about='http://example.org/foo#B'>\"\n + \" <owl:equivalentClass>\"\n + \" <owl:Restriction>\" \n + \" <owl:onProperty rdf:resource='http://example.org/foo#p' />\" \n + \" <owl:hasValue rdf:resource='http://example.org/foo#x' />\" \n + \" </owl:Restriction>\"\n + \" </owl:equivalentClass>\"\n + \" </owl:Class>\"\n + \"</rdf:RDF>\";\n \n OntModel m = ModelFactory.createOntologyModel(OntModelSpec.OWL_MEM, null);\n m.read(new ByteArrayInputStream(sourceT.getBytes()), \"http://example.org/foo\");\n \n OntClass B = m.getOntClass( NS + \"B\");\n Restriction r = B.getEquivalentClass().asRestriction();\n HasValueRestriction hvr = r.asHasValueRestriction();\n RDFNode n = hvr.getHasValue();\n \n assertTrue( \"Should be an individual\", n instanceof Individual );\n }", "@Test\n \tpublic void whereClauseForNodeSpanString() {\n \t\tnode23.setSpannedText(\"string\", TextMatching.EXACT_EQUAL);\n \t\tcheckWhereCondition(join(\"=\", \"_node23.span\", \"'string'\"));\n \t}", "public void testWriteRDF() {\n\n\t\trunQuery(new LinkQueryTerm(relationVocabulary.is_a(),NEURON), \"subclass\");\n\n\t\trunQuery(new LinkQueryTerm(MELANOCYTE),\"any link\");\n\t\t\n\t\trunQuery(new LinkQueryTerm(relationVocabulary.part_of(),MELANOCYTE),\"part_of (class)\");\n\t\t\n\t\trunQuery(new LinkQueryTerm(relationVocabulary.inheres_in(),\tnew LinkQueryTerm(relationVocabulary.part_of(),HUMAN_EYE)),\"phenotype in some part of the eye\");\n\t\t\n\t\trunQuery(new AnnotationLinkQueryTerm(MELANOCYTE),\"anything annotated to melanocyte\");\n\t\t\n\t\trunQuery(new AnnotationLinkQueryTerm(new LinkQueryTerm(relationVocabulary.inheres_in(),\tMELANOCYTE)),\"anything annotated to a melanocyte phenotype\");\n\t\t\n\t\tQueryTerm classQt =\tnew BooleanQueryTerm(new LinkQueryTerm(relationVocabulary.inheres_in(),NEURON),\tnew LinkQueryTerm(relationVocabulary.inheres_in(),BEHAVIOR));\n\t\t\n\t\trunQuery(new AnnotationLinkQueryTerm(classQt),\"boolean query\");\n\n\n\t}", "@Test\n public void example10 () throws Exception {\n ValueFactory f = repo.getValueFactory();\n String exns = \"http://example.org/people/\";\n URI alice = f.createURI(exns, \"alice\");\n URI bob = f.createURI(exns, \"bob\");\n URI ted = f.createURI(exns, \"ted\"); \n URI person = f.createURI(\"http://example.org/ontology/Person\");\n URI name = f.createURI(\"http://example.org/ontology/name\");\n Literal alicesName = f.createLiteral(\"Alice\");\n Literal bobsName = f.createLiteral(\"Bob\");\n Literal tedsName = f.createLiteral(\"Ted\"); \n URI context1 = f.createURI(exns, \"cxt1\"); \n URI context2 = f.createURI(exns, \"cxt2\"); \n conn.add(alice, RDF.TYPE, person, context1);\n conn.add(alice, name, alicesName, context1);\n conn.add(bob, RDF.TYPE, person, context2);\n conn.add(bob, name, bobsName, context2);\n conn.add(ted, RDF.TYPE, person);\n conn.add(ted, name, tedsName);\n \n assertSetsEqual(\n stmts(new Stmt[] {\n new Stmt(alice, RDF.TYPE, person, context1),\n new Stmt(alice, name, alicesName, context1),\n new Stmt(bob, RDF.TYPE, person, context2),\n new Stmt(bob, name, bobsName, context2),\n new Stmt(ted, RDF.TYPE, person),\n new Stmt(ted, name, tedsName)\n }),\n statementSet(conn.getStatements(null, null, null, false)));\n assertSetsEqual(\n stmts(new Stmt[] {\n new Stmt(alice, RDF.TYPE, person, context1),\n new Stmt(alice, name, alicesName, context1),\n new Stmt(bob, RDF.TYPE, person, context2),\n new Stmt(bob, name, bobsName, context2)\n }),\n statementSet(conn.getStatements(null, null, null, false, context1, context2)));\n assertSetsEqual(\n stmts(new Stmt[] {\n new Stmt(bob, RDF.TYPE, person, context2),\n new Stmt(bob, name, bobsName, context2),\n new Stmt(ted, RDF.TYPE, person),\n new Stmt(ted, name, tedsName)\n }),\n statementSet(conn.getStatements(null, null, null, false, null, context2)));\n \n // testing named graph query\n DatasetImpl ds = new DatasetImpl();\n ds.addNamedGraph(context1);\n ds.addNamedGraph(context2);\n TupleQuery tupleQuery = conn.prepareTupleQuery(\n QueryLanguage.SPARQL, \"SELECT ?s ?p ?o ?g WHERE { GRAPH ?g {?s ?p ?o . } }\");\n tupleQuery.setDataset(ds);\n assertSetsEqual(\n stmts(new Stmt[] {\n new Stmt(alice, RDF.TYPE, person, context1),\n new Stmt(alice, name, alicesName, context1),\n new Stmt(bob, RDF.TYPE, person, context2),\n new Stmt(bob, name, bobsName, context2)\n }),\n statementSet(tupleQuery.evaluate()));\n \n ds = new DatasetImpl();\n ds.addDefaultGraph(null);\n tupleQuery = conn.prepareTupleQuery(QueryLanguage.SPARQL, \"SELECT ?s ?p ?o WHERE {?s ?p ?o . }\");\n tupleQuery.setDataset(ds);\n assertSetsEqual(\n stmts(new Stmt[] {\n new Stmt(ted, RDF.TYPE, person),\n new Stmt(ted, name, tedsName)\n }),\n statementSet(tupleQuery.evaluate()));\n }", "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 }", "protected Query newGraphSynonymQuery(Iterator<Query> queries) {\n BooleanQuery.Builder builder = new BooleanQuery.Builder();\n while (queries.hasNext()) {\n builder.add(queries.next(), BooleanClause.Occur.SHOULD);\n }\n BooleanQuery bq = builder.build();\n if (bq.clauses().size() == 1) {\n return bq.clauses().get(0).getQuery();\n }\n return bq;\n }", "@Override\n\tpublic NodeIterator search(String queryString) throws Exception {\n\t\treturn null;\n\t}", "@Override\n\tpublic Object visit(StringNode stringNode) {\n\treturn null; }", "public ConceptAtom(IRI iri)\n {\n super(iri);\n this.strVariable = \"\"; \n }", "@Override\n public Query forValue(String value) {\n if (value == null) return null;\n for (TermQuery t : this._queries) {\n if (value.equals(t.getTerm().text())) return t;\n }\n // Why null?\n return new TermQuery(new Term(this._name, value));\n }", "public Query( String queryString ) {\r\n\tStringTokenizer tok = new StringTokenizer( queryString );\r\n\twhile ( tok.hasMoreTokens() ) {\r\n\t terms.add( tok.nextToken() );\r\n\t weights.add( new Double(1) );\r\n\t} \r\n }", "@Override\n public R visit(IRIrefOrFunction n, A argu) {\n R _ret = null;\n n.iRIref.accept(this, argu);\n n.nodeOptional.accept(this, argu);\n return _ret;\n }", "public SPARQLBooleanXMLParser() {\n\t\tsuper();\n\t}", "private List<Query> createSynonymQueries(SolrParams solrParams, List<String> alternateQueryTexts) {\n \n String nullsafeOriginalString = getQueryStringFromParser();\n \n List<Query> result = new ArrayList<>();\n for (String alternateQueryText : alternateQueryTexts) {\n if (alternateQueryText.equalsIgnoreCase(nullsafeOriginalString)) { \n // alternate query is the same as what the user entered\n continue;\n }\n \n synonymQueryParser.setString(alternateQueryText);\n try {\n result.add(synonymQueryParser.parse());\n } catch (SyntaxError e) {\n // TODO: better error handling - for now just bail out; ignore this synonym\n e.printStackTrace(System.err);\n }\n }\n \n return result;\n }", "@Test(timeout = 4000)\n public void test001() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"hN!SM~8ux(wB\");\n xPathLexer0.dollar();\n xPathLexer0.not();\n xPathLexer0.nextToken();\n xPathLexer0.leftParen();\n xPathLexer0.whitespace();\n xPathLexer0.plus();\n Token token0 = xPathLexer0.or();\n assertNull(token0);\n }", "public String getSparqlEndPoint() {\n\t\treturn this.sparqlEndPointURL;\n\t}", "@Override\n\tpublic Query createQuery(String qlString) {\n\t\treturn null;\n\t}", "public void gerarRDF() throws SenseRDFException;", "@Test public void term_value_roundtriple_1() {\n RDF_Term rt = testTermValue(\"'123'^^xsd:integer\") ;\n assertEquals(123, rt.getValInteger()) ;\n Node n = ProtobufConvert.convert(rt, prefixMap);\n assertEquals(XSDDatatype.XSDinteger, n.getLiteralDatatype());\n assertEquals(\"123\", n.getLiteralLexicalForm());\n }", "void setQueryString (String string);", "public HashSet<String> getHypernymsLexical(String linkedConcept, Language language) {\n String key = linkedConcept + \"_\" + language.toSparqlChar2();\n HashSet<String> result = new HashSet<>();\n if (linkedConcept.startsWith(WikidataLinker.MULTI_CONCEPT_PREFIX)) {\n Set<String> individualLinks = this.linker.getUris(linkedConcept);\n for (String individualLink : individualLinks) {\n result.addAll(getHypernymsLexical(individualLink, language));\n }\n } else {\n String queryString = \"PREFIX skos: <http://www.w3.org/2004/02/skos/core#>\\n\" +\n \"PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>\\n\" +\n \"PREFIX wdt: <http://www.wikidata.org/prop/direct/>\\n\" +\n \"SELECT DISTINCT ?l WHERE { \\n\" +\n \" { <\" + linkedConcept + \"> wdt:P31 ?c . \\n\" +\n \" ?c rdfs:label ?l .\\n\" +\n \" }\\n\" +\n \" UNION\\n\" +\n \" { <\" + linkedConcept + \"> wdt:P31 ?c . \\n\" +\n \" ?c skos:altLabel ?l .\\n\" +\n \" }\\n\" +\n \" UNION\\n\" +\n \" { <\" + linkedConcept + \"> wdt:P279 ?c . \\n\" +\n \" ?c rdfs:label ?l .\\n\" +\n \" }\\n\" +\n \" UNION\\n\" +\n \" { <\" + linkedConcept + \"> wdt:P279 ?c . \\n\" +\n \" ?c skos:altLabel ?l .\\n\" +\n \" }\\n\" +\n \" FILTER(LANG(?l) = '\" + language.toSparqlChar2() + \"')\\n\" +\n \"}\";\n //System.out.println(queryString);\n Query query = QueryFactory.create(queryString);\n QueryExecution queryExecution = QueryExecutionFactory.sparqlService(ENDPOINT_URL, query);\n ResultSet resultSet = queryExecution.execSelect();\n while (resultSet.hasNext()) {\n QuerySolution solution = resultSet.next();\n String uri = solution.getLiteral(\"l\").getLexicalForm();\n result.add(uri);\n }\n queryExecution.close();\n }\n hypernymyBuffer.put(key, result);\n commitAll(WIKIDATA_HYPERNYMY_BUFFER);\n return result;\n }", "public URI toAnyURI(\n ){\n return toIRI();\n }", "StringBuffer getSparqlHeader(StringBuffer sb) {\r\n \tString SPACE = KeywordPP.SPACE;\r\n \tList<Constant> from = getFrom();\r\n \tList<Constant> named = getNamed();\r\n \tList<Variable> select = getSelectVar();\r\n\r\n \t// Select\r\n \tif (isSelect()) {\r\n \t\tsb.append(KeywordPP.SELECT + SPACE);\r\n \t\t\r\n \t\tif (isDebug())\r\n \t\t\tsb.append(KeywordPP.DEBUG + SPACE);\r\n \t\t\r\n \t\tif (isMore())\r\n \t\t\tsb.append(KeywordPP.MORE + SPACE);\r\n \t\t\r\n \t\tif (isDistinct())\r\n \t\t\tsb.append(KeywordPP.DISTINCT + SPACE);\r\n\r\n \t\tif (isSelectAll()) {\r\n \t\t\tsb.append(KeywordPP.STAR + SPACE);\r\n \t\t}\r\n \t\t\r\n \t\tif (select != null && select.size()>0){\r\n \t\t\tfor (Variable s : getSelectVar()){\r\n \r\n \t\t\t\tif (getExpression(s) != null) {\r\n \t\t\t\t\texpr(getExpression(s), s, sb);\r\n \t\t\t\t}\r\n \t\t\t\telse {\r\n \t\t\t\t\tsb.append(s);\r\n \t\t\t\t}\r\n sb.append(SPACE);\r\n \t\t\t}\r\n \t\t} \r\n \t\t\r\n \t} \r\n \telse if (isAsk()) {\r\n \t\tsb.append(KeywordPP.ASK + SPACE);\r\n \t} \r\n \telse if (isDelete()) {\r\n \t\tsb.append(KeywordPP.DELETE + SPACE); \r\n \t\tif (isDeleteData()){\r\n \t\t\tsb.append(KeywordPP.DATA + SPACE); \r\n\t\t\t}\r\n \t\tgetDelete().toString(sb);\r\n \t\t\r\n \t\tif (isInsert()){\r\n \t\t\tsb.append(KeywordPP.INSERT + SPACE); \r\n \t\tgetInsert().toString(sb); \r\n \t\t}\r\n \t\t\r\n \t}\r\n \telse if (isConstruct()) {\r\n \t\tif (isInsert()){\r\n \t\t\tsb.append(KeywordPP.INSERT + SPACE); \r\n \t\t\tif (isInsertData()){\r\n \t\t\tsb.append(KeywordPP.DATA + SPACE); \r\n \t\t\t}\r\n \t\tgetInsert().toString(sb); \r\n \t\t}\r\n \t\telse if (getConstruct() != null){\r\n \t\tsb.append(KeywordPP.CONSTRUCT + SPACE); \r\n \t\tgetConstruct().toString(sb); \r\n \t\t}\r\n \t\telse if (getInsert() != null){\r\n \t\tsb.append(KeywordPP.INSERT + SPACE); \r\n \t\tgetInsert().toString(sb); \r\n \t\t}\r\n \t\telse if (getDelete() != null){\r\n \t\tsb.append(KeywordPP.DELETE + SPACE); \r\n \t\tif (isDeleteData()){\r\n \t\t\tsb.append(KeywordPP.DATA + SPACE); \r\n \t\t\t}\r\n \t\tgetDelete().toString(sb); \r\n \t\t}\r\n \t} \r\n \telse if (isDescribe()) {\r\n \t\tsb.append(KeywordPP.DESCRIBE + SPACE);\r\n \t\t\r\n \t\tif (isDescribeAll()) {\r\n \t\t\tsb.append(KeywordPP.STAR + SPACE);\r\n \t\t} \r\n \t\telse if (adescribe != null && adescribe.size()>0) {\r\n\r\n \t\t\tfor (Atom at : adescribe) {\r\n \t\t\t\tat.toString(sb);\r\n \t\t\t\tsb.append(SPACE);\r\n \t\t\t}\r\n \t\t}\r\n \t} \r\n \t\r\n \t// DataSet\r\n \t//if (! isConstruct()) // because it's already done in the construct case\r\n \t\tsb.append(NL);\r\n \t\r\n \t// From\r\n \tfor (Atom name: from) {\r\n \t\tsb.append(KeywordPP.FROM + SPACE);\r\n \t\tname.toString(sb);\r\n \t\tsb.append(NL);\r\n \t}\r\n \t\r\n \t// From Named\r\n \tfor (Atom name : named) {\r\n \t\tsb.append(KeywordPP.FROM + SPACE + KeywordPP.NAMED + SPACE);\r\n \t\tname.toString(sb);\r\n \t\tsb.append(NL);\r\n \t}\r\n \t\r\n \t// Where\r\n \tif ((! (isDescribe() && ! isWhere())) && ! isData() ){\r\n \t\tsb.append(KeywordPP.WHERE + NL) ; \r\n \t}\r\n\r\n \treturn sb;\r\n }", "@Test\n public void testFromWithTernaryFollowedByQuery() throws Exception {\n final String text = \"rule X when Cheese() from (isFull ? $cheesery : $market) ?person( \\\"Mark\\\", 42; ) then end\";\n RuleDescr rule = ((RuleDescr) (parse(\"rule\", text)));\n TestCase.assertFalse(parser.getErrors().toString(), parser.hasErrors());\n PatternDescr pattern = ((PatternDescr) (getDescrs().get(0)));\n TestCase.assertEquals(\"Cheese\", pattern.getObjectType());\n TestCase.assertEquals(\"from (isFull ? $cheesery : $market)\", pattern.getSource().getText());\n TestCase.assertFalse(pattern.isQuery());\n pattern = ((PatternDescr) (getDescrs().get(1)));\n TestCase.assertEquals(\"person\", pattern.getObjectType());\n TestCase.assertTrue(pattern.isQuery());\n }", "public interface SString extends SInlinedSQLType\n{\n}", "@Test(timeout = 4000)\n public void test000() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"oofT'b.HnXtsd.\");\n Token token0 = xPathLexer0.or();\n assertNull(token0);\n }", "public String visit(ExpressionTerm n, String s) {\n n.f1.accept(this, null);\n return null;\n }", "protected Query analyzeBoolean(String field, TokenStream stream) throws IOException {\n TermToBytesRefAttribute termAtt = stream.getAttribute(TermToBytesRefAttribute.class);\n BoostAttribute boostAtt = stream.addAttribute(BoostAttribute.class);\n\n stream.reset();\n List<TermAndBoost> terms = new ArrayList<>();\n while (stream.incrementToken()) {\n terms.add(new TermAndBoost(termAtt.getBytesRef(), boostAtt.getBoost()));\n }\n\n return newSynonymQuery(field, terms.toArray(TermAndBoost[]::new));\n }", "String query();", "public OWLProperty (String iri) {\n\t\tthis.classIRI = iri;\n//\t\tthis.domain = domain;\n//\t\tthis.range = range;\n\t}", "@Override\r\n\tpublic boolean visit(QualifiedName node) {\r\n\t\toperand(node,node.getFullyQualifiedName());\r\n\t\treturn false;\r\n\t}", "public SPARQL() {\n initComponents();\n \n model = ModelFactory.createOntologyModel(OntModelSpec.OWL_LITE_MEM_RDFS_INF);\n model.setDynamicImports(true);\n model.read(\"file:\"+\"data/ontologies/Papers_Ready.owl\", \"http://www.l3g.pl/ontologies/OntoBeef/Papers.owl\", \"N-TRIPLE\");\n model.loadImports();\n \n for (Individual i : model.listIndividuals(model.getOntClass(\"http://www.l3g.pl/ontologies/OntoBeef/Conceptualisation.owl#Category\")).toSet())\n {\n System.out.println(i.listLabels(null).toSet());\n }\n }", "public TriplePattern getPredicateBasedTriplePattern( String pred ) ;", "protected String handleIRI(IRI iri, int elementType) {\n if (parserConfig.getGraphConf().getHandleVocabUris() == GRAPHCONF_VOC_URI_SHORTEN ||\n parserConfig.getGraphConf().getHandleVocabUris() == GRAPHCONF_VOC_URI_SHORTEN_STRICT) {\n String localName = iri.getLocalName();\n String prefix = namespaces.getPrefixOrAdd(iri.getNamespace(),\n parserConfig.getGraphConf().getHandleVocabUris() == GRAPHCONF_VOC_URI_SHORTEN_STRICT);\n return prefix + PREFIX_SEPARATOR + localName;\n } else if (parserConfig.getGraphConf().getHandleVocabUris() == GRAPHCONF_VOC_URI_IGNORE) {\n return applyCapitalisation(iri.getLocalName(), elementType);\n } else if (parserConfig.getGraphConf().getHandleVocabUris() == GRAPHCONF_VOC_URI_MAP) {\n return mapElement(iri, elementType, null);\n } else { //if (handleUris == URL_KEEP){\n return iri.stringValue();\n }\n }", "StringLiteralExp createStringLiteralExp();", "public void testDynamizePredicate() {\n part.insertPredicate(\"<http://dbpedia.org/ontology/deathPlace>\", 100);\n\n part.setInsDyn(0.5);\n part.setDelDyn(0.1);\n \n part.dynamizePredicate(\"<http://dbpedia.org/ontology/deathPlace>\");\n\n WebResource endpoint = part.getService();\n String checkquery= \"SELECT (COUNT(*) as ?no) \"\n + \"{?s <http://dbpedia.org/ontology/deathPlace> ?o }\";\n\n assertEquals(140,\n Integer.parseInt(\n endpoint.path(\"sparql\").queryParam(\"query\", checkquery)\n\t\t\t .accept(\"application/sparql-results+csv\")\n\t\t\t .get(String.class).replace(\"no\\n\", \"\").trim()));\n }", "public SemanticWorkflow addQueryGraph(String q){\n SPARQLProcess sp = new SPARQLProcess(q);\n sp.setResult(GRAPH);\n return add(sp);\n }", "public interface BiomedicalParseSym {\n /* terminals */\n public static final int OR_OP = 6;\n public static final int String = 4;\n public static final int RPAREN = 3;\n public static final int error = 1;\n public static final int AND_OP = 5;\n public static final int NOT_OP = 7;\n public static final int LPAREN = 2;\n public static final int EOF = 0;\n}", "public final EObject entryRuleSparqlQuery() throws RecognitionException {\n EObject current = null;\n\n EObject iv_ruleSparqlQuery = null;\n\n\n try {\n // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:1718:2: (iv_ruleSparqlQuery= ruleSparqlQuery EOF )\n // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:1719:2: iv_ruleSparqlQuery= ruleSparqlQuery EOF\n {\n newCompositeNode(grammarAccess.getSparqlQueryRule()); \n pushFollow(FOLLOW_ruleSparqlQuery_in_entryRuleSparqlQuery3795);\n iv_ruleSparqlQuery=ruleSparqlQuery();\n\n state._fsp--;\n\n current =iv_ruleSparqlQuery; \n match(input,EOF,FOLLOW_EOF_in_entryRuleSparqlQuery3805); \n\n }\n\n }\n \n catch (RecognitionException re) { \n recover(input,re); \n appendSkippedTokens();\n } \n finally {\n }\n return current;\n }", "public interface PredicateBinaryExpr extends BinaryExpr {\r\n /**\r\n * Returns the wildcard operator.\r\n * \r\n * @return the wildcard operator.\r\n */\r\n public PredicateOperator getOperator();\r\n\r\n /**\r\n * Returns the property.\r\n * \r\n * @return the property.\r\n */\r\n public Property getProperty();\r\n\r\n /**\r\n * Returns the string representation of the path qualified property.\r\n * \r\n * @return the string representation of the path qualified property\r\n */\r\n public String getPropertyPath();\r\n\r\n /**\r\n * Returns the query literal\r\n * \r\n * @return the query literal\r\n */\r\n public Literal getLiteral();\r\n}", "public void createQuery(String s) throws HibException;", "public String visit(AndExpression n, String s) {\n n.f0.accept(this, null);\n n.f2.accept(this, null);\n return null;\n }", "private static String stripIRI (String inputConcept) {\n\n\t\tString returnedConceptName = null;\n\n\t\tif (inputConcept.contains(\"http://manusquare.project.eu/industrial-manusquare#\")) {\n\t\t\treturnedConceptName = inputConcept.replaceAll(\"http://manusquare.project.eu/industrial-manusquare#\", \"\");\n\t\t} else if (inputConcept.contains(\"http://manusquare.project.eu/core-manusquare#\")) {\n\t\t\treturnedConceptName = inputConcept.replaceAll(\"http://manusquare.project.eu/core-manusquare#\", \"\");\n\t\t} else {\n\t\t\treturnedConceptName = inputConcept;\n\t\t}\n\n\t\treturn returnedConceptName;\n\n\t}", "private void setSparqlQueries(EditConfigurationVTwo editConfiguration, VitroRequest vreq) {\n \t//Sparql queries defining retrieval of literals etc.\n \teditConfiguration.setSparqlForAdditionalLiteralsInScope(new HashMap<String, String>());\n \teditConfiguration.setSparqlForAdditionalUrisInScope(new HashMap<String, String>());\n \teditConfiguration.setSparqlForExistingLiterals(new HashMap<String, String>());\n \teditConfiguration.setSparqlForExistingUris(new HashMap<String, String>());\n }", "private Nodes xPathQuery(String query)\r\n \t{\r\n \t\treturn document.query(query, context);\r\n \t}", "public String getRuleBodySQLQueries(List<SWRLAtom> bodyAtoms, Map<String, String> v2prefix) {\n\t\tOntopOWLConnection conn = null;\n\t\tOntopOWLStatement st = null;\n\t\tString sql = null;\n\t\ttry{\n\t\t\tconn = _reasoner.getConnection();\n\t\t\tst = conn.createStatement();\n\t\t\tList<String> lines = new LinkedList<String>();\n\t\t\t\n\t\t\t// parse atoms into sparql query constraints\n\t\t\tfor(SWRLAtom atom : bodyAtoms) {\n\t\t\t\tif (atom instanceof SWRLClassAtom) {\n\t\t\t\t\t// class assertion\n\t\t\t\t\tString cls = atom.getPredicate().toString();\n\t\t\t\t\tString var = null;\n\t\t\t\t\tfor(SWRLArgument arg : atom.getAllArguments()) {\n\t\t\t\t\t\tif (arg instanceof SWRLVariable) {\n\t\t\t\t\t\t\t var = ((SWRLVariable)arg).getIRI().getRemainder().get();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tlines.add(String.format(\"?%s a %s .\", var, cls));\n\t\t\t\t}else if(atom instanceof SWRLDataPropertyAtom) {\n\t\t\t\t\t//data value property\n\t\t\t\t\tString pred = atom.getPredicate().toString();\n\t\t\t\t\tList<String> vars = new LinkedList<String>();\n\t\t\t\t\tString val = \"\";\n\t\t\t\t\tfor(SWRLArgument arg : atom.getAllArguments()) {\n\t\t\t\t\t\tif (arg instanceof SWRLVariable) {\n\t\t\t\t\t\t\tvars.add(((SWRLVariable)arg).getIRI().getRemainder().get());\n\t\t\t\t\t\t}else if (arg instanceof SWRLLiteralArgument) {\n\t\t\t\t\t\t\t val = arg.toString();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif (vars.size() == 2)\n\t\t\t\t\t\tlines.add(String.format(\"?%s %s ?%s .\", vars.get(0), pred, vars.get(1)));\n\t\t\t\t\telse\n\t\t\t\t\t\tlines.add(String.format(\"?%s %s %s .\", vars.get(0), pred, val));\n\t\t\t\t}else if(atom instanceof SWRLObjectPropertyAtom) {\n\t\t\t\t\t// object property\n\t\t\t\t\tString pred = atom.getPredicate().toString();\n\t\t\t\t\tList<String> vars = new LinkedList<String>();\n\t\t\t\t\tfor(SWRLArgument arg : atom.getAllArguments()) {\n\t\t\t\t\t\tif (arg instanceof SWRLVariable) {\n\t\t\t\t\t\t\tvars.add(((SWRLVariable)arg).getIRI().getRemainder().get());\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif (vars.size() == 2)\n\t\t\t\t\t\tlines.add(String.format(\"?%s %s ?%s .\", vars.get(0), pred, vars.get(1)));\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\tString sparqlQuery = String.format(queryTemplate, String.join(\"\\n\", lines));\n\t\t\t_logger.info(String.format(\"SPARQL: [%s]\", sparqlQuery));\n\t sql = st.getExecutableQuery(sparqlQuery).toString();\n } catch(Exception e){\n \te.printStackTrace();\n }finally {\n \tif (conn != null) {\n \t\ttry {\n \t\t\tst.close();\n\t\t\t\t\tconn.close();\n\t\t\t\t} catch (OWLException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n \t}\n }\n\t\tif (null != sql) {\n\t\t\tsql = clearGeneratedSQl(sql);\n\t\t\tsql = fixURIPrefixIssue(sql, v2prefix);\n\t\t}\n\t\t_logger.info(String.format(\"translated SQL is: [%s]\", sql));\n\t\treturn sql;\n\t}", "public GrandChildOfStringMatch() {}", "public interface SPARQLService {\n // TODO: Create methods for at least CRUD \n}", "public URI toIRI(\n ){\n String xri = toXRI();\n StringBuilder iri = new StringBuilder(xri.length());\n int xRef = 0;\n for(\n int i = 0, limit = xri.length();\n i < limit;\n i++\n ){\n char c = xri.charAt(i);\n if(c == '%') {\n iri.append(\"%25\");\n } else if (c == '(') {\n xRef++;\n iri.append(c);\n } else if (c == ')') {\n xRef--;\n iri.append(c);\n } else if (xRef == 0) {\n iri.append(c);\n } else if (c == '#') {\n iri.append(\"%23\");\n } else if (c == '?') {\n iri.append(\"%3F\");\n } else if (c == '/') {\n iri.append(\"%2F\");\n } else {\n iri.append(c);\n }\n }\n return URI.create(iri.toString());\n }", "protected String AddPrefixes(String queryString) {\n\t\t\n\t\tString prefixes = \"\\n\";\n\t\t\n\t\tfor (Entry<String, Namespace> namespace : UConfig.namespaces.entrySet()) {\n\t\t\tprefixes += \"PREFIX \" + namespace.getKey() + \": \\t\";\n\t\t\tif(namespace.getKey().length() < 7) prefixes += \"\\t\";\n\t\t\tprefixes += \" <\" + namespace.getValue().getURI() +\">\\n\" ;\n\t\t}\n\t\t\n\t\tUDebug.print(prefixes, dbgLevel+1);\n\t\t\n\t\treturn prefixes + \"\\n\" + queryString;\n\t\t\n//PREFIX rdf: \t\t<http://www.w3.org/1999/02/22-rdf-syntax-ns#>\n//PREFIX xsd: \t\t<http://www.w3.org/2001/XMLSchema#>\n//PREFIX dcterms: \t<http://purl.org/dc/terms/>\n//PREFIX foaf: \t\t<http://xmlns.com/foaf/0.1/>\n//PREFIX geosparql: <http://www.opengis.net/ont/geosparql#>\n//PREFIX geof: \t\t<http://www.opengis.net/def/function/geosparql/>\n//PREFIX sf: \t\t<http://www.opengis.net/ont/sf#>\n//PREFIX units: \t<http://www.opengis.net/def/uom/OGC/1.0/>\n//PREFIX hvgi: \t\t<http://semantic.web/vocabs/history_vgi/hvgi#>\n//PREFIX osp: \t\t<http://semantic.web/vocabs/osm_provenance/osp#> \n//PREFIX prv: \t\t<http://purl.org/net/provenance/ns#>\n//PREFIX time: \t\t<http://www.w3.org/2006/time#>\n\n\t\t\n\t}", "public IAstRlsString findRlsString(String identifer);", "public abstract QueryElement addOrNotEquals(String property, Object value);", "public String getAndOr();", "public interface One extends RelationQuantifier\n{\n}", "@RDF(\"foaf:name\")\n\tString getName();", "@RequestMapping(value = \"/queryrdf\", method = {RequestMethod.GET, RequestMethod.POST})\n public void queryRdf(@RequestParam(\"query\") final String query,\n @RequestParam(value = RdfCloudTripleStoreConfiguration.CONF_QUERY_AUTH, required = false) String auth,\n @RequestParam(value = RdfCloudTripleStoreConfiguration.CONF_CV, required = false) final String vis,\n @RequestParam(value = RdfCloudTripleStoreConfiguration.CONF_INFER, required = false) final String infer,\n @RequestParam(value = \"nullout\", required = false) final String nullout,\n @RequestParam(value = RdfCloudTripleStoreConfiguration.CONF_RESULT_FORMAT, required = false) final String emit,\n @RequestParam(value = \"padding\", required = false) final String padding,\n @RequestParam(value = \"callback\", required = false) final String callback,\n final HttpServletRequest request,\n final HttpServletResponse response) {\n SailRepositoryConnection conn = null;\n final Thread queryThread = Thread.currentThread();\n auth = StringUtils.arrayToCommaDelimitedString(provider.getUserAuths(request));\n final Timer timer = new Timer();\n timer.schedule(new TimerTask() {\n\n @Override\n public void run() {\n log.debug(\"interrupting\");\n queryThread.interrupt();\n\n }\n }, QUERY_TIME_OUT_SECONDS * 1000);\n\n try {\n final ServletOutputStream os = response.getOutputStream();\n conn = repository.getConnection();\n\n final Boolean isBlankQuery = StringUtils.isEmpty(query);\n final ParsedOperation operation = QueryParserUtil.parseOperation(QueryLanguage.SPARQL, query, null);\n\n final Boolean requestedCallback = !StringUtils.isEmpty(callback);\n final Boolean requestedFormat = !StringUtils.isEmpty(emit);\n\n if (!isBlankQuery) {\n if (operation instanceof ParsedGraphQuery) {\n // Perform Graph Query\n final RDFHandler handler = new RDFXMLWriter(os);\n response.setContentType(\"text/xml\");\n performGraphQuery(query, conn, auth, infer, nullout, handler);\n } else if (operation instanceof ParsedTupleQuery) {\n // Perform Tuple Query\n TupleQueryResultHandler handler;\n\n if (requestedFormat && emit.equalsIgnoreCase(\"json\")) {\n handler = new SPARQLResultsJSONWriter(os);\n response.setContentType(\"application/json\");\n } else {\n handler = new SPARQLResultsXMLWriter(os);\n response.setContentType(\"text/xml\");\n }\n\n performQuery(query, conn, auth, infer, nullout, handler);\n } else if (operation instanceof ParsedUpdate) {\n // Perform Update Query\n performUpdate(query, conn, os, infer, vis);\n } else {\n throw new MalformedQueryException(\"Cannot process query. Query type not supported.\");\n }\n }\n\n if (requestedCallback) {\n os.print(\")\");\n }\n } catch (final Exception e) {\n log.error(\"Error running query\", e);\n throw new RuntimeException(e);\n } finally {\n if (conn != null) {\n try {\n conn.close();\n } catch (final RepositoryException e) {\n log.error(\"Error closing connection\", e);\n }\n }\n }\n\n timer.cancel();\n }", "@Test\n\tpublic void explicitANDTest() {\n\t\tString query = \"hello goodbye\";\n\t\tString query2 = \"hello goodbye hello\";\n\t\tString query3 = \"( hello ( goodbye | hello bye ) )\";\n\t\t\n\t\tString queryResults = \"hello & goodbye\";\n\t\tString query2Results = \"hello & goodbye & hello\";\n\t\tString query3Results = \"( hello & ( goodbye | hello & bye ) )\";\n\n\t\tassertEquals(queryResults, String.join(\" \", queryTest.addExplicitAND(query.split(\" \"))));\n\t\tassertEquals(query2Results, String.join(\" \", queryTest.addExplicitAND(query2.split(\" \"))));\n\t\tassertEquals(query3Results, String.join(\" \", queryTest.addExplicitAND(query3.split(\" \"))));\n\t}", "public abstract QueryElement addOrLike(String property, Object value);", "String resolveText(QName name, boolean mandatory) throws SmartFrogResolutionException, RemoteException;", "java.lang.String getQuery();", "java.lang.String getQuery();", "private RDF_Term testTerm(Node node, PrefixMap pmap, boolean asValue) {\n RDF_Term rt = ProtobufConvert.convert(node, pmap, asValue) ;\n\n if ( node == null) {\n assertTrue(rt.hasUndefined());\n return rt;\n }\n\n switch (rt.getTermCase()) {\n// message RDF_Term {\n// oneof term {\n// RDF_IRI iri = 1 ;\n// RDF_BNode bnode = 2 ;\n// RDF_Literal literal = 3 ;\n// RDF_PrefixName prefixName = 4 ;\n// RDF_VAR variable = 5 ;\n// RDF_Triple tripleTerm = 6 ;\n// RDF_ANY any = 7 ;\n// RDF_UNDEF undefined = 8 ;\n// RDF_REPEAT repeat = 9 ;\n//\n// // Value forms of literals.\n// int64 valInteger = 20 ;\n// double valDouble = 21 ;\n// RDF_Decimal valDecimal = 22 ;\n// }\n// }\n case IRI : {\n RDF_IRI iri = rt.getIri() ;\n assertEquals(node.getURI(), iri.getIri()) ;\n break;\n }\n case BNODE : {\n RDF_BNode bnode = rt.getBnode() ;\n assertEquals(node.getBlankNodeLabel(), bnode.getLabel()) ;\n break;\n }\n case LITERAL : {\n RDF_Literal lit = rt.getLiteral() ;\n assertEquals(node.getLiteralLexicalForm(), lit.getLex()) ;\n\n if (JenaRuntime.isRDF11) {\n // RDF 1.1\n if ( Util.isSimpleString(node) ) {\n assertTrue(lit.getSimple());\n // Protobug default is \"\"\n assertNullPB(lit.getDatatype()) ;\n assertEquals(RDF_PrefixName.getDefaultInstance(), lit.getDtPrefix());\n assertNullPB(lit.getLangtag()) ;\n } else if ( Util.isLangString(node) ) {\n assertFalse(lit.getSimple());\n assertNullPB(lit.getDatatype()) ;\n assertEquals(RDF_PrefixName.getDefaultInstance(), lit.getDtPrefix());\n assertNotSame(\"\", lit.getLangtag()) ;\n }\n else {\n assertFalse(lit.getSimple());\n // Regular typed literal.\n assertTrue(lit.getDatatype() != null || lit.getDtPrefix() != null );\n assertNullPB(lit.getLangtag()) ;\n }\n } else {\n // RDF 1.0\n if ( node.getLiteralDatatype() == null ) {\n if ( Util.isLangString(node ) ) {\n assertFalse(lit.getSimple());\n assertNullPB(lit.getDatatype()) ;\n assertNull(lit.getDtPrefix()) ;\n assertNotSame(\"\", lit.getLangtag()) ;\n } else {\n assertTrue(lit.getSimple());\n assertNullPB(lit.getDatatype()) ;\n assertEquals(RDF_PrefixName.getDefaultInstance(), lit.getDtPrefix());\n assertNullPB(lit.getLangtag()) ;\n }\n } else {\n assertTrue(lit.getDatatype() != null || lit.getDtPrefix() != null );\n }\n }\n break;\n }\n case PREFIXNAME : {\n assertNotNull(rt.getPrefixName().getPrefix()) ;\n assertNotNull(rt.getPrefixName().getLocalName()) ;\n String x = pmap.expand(rt.getPrefixName().getPrefix(), rt.getPrefixName().getLocalName());\n assertEquals(node.getURI(),x);\n break;\n }\n case VARIABLE :\n assertEquals(node.getName(), rt.getVariable().getName());\n break;\n case TRIPLETERM : {\n RDF_Triple encTriple = rt.getTripleTerm();\n Triple t = node.getTriple();\n RDF_Term rt_s = testTerm(t.getSubject(), pmap, asValue);\n RDF_Term rt_p = testTerm(t.getPredicate(), pmap, asValue);\n RDF_Term rt_o = testTerm(t.getObject(), pmap, asValue);\n assertEquals(encTriple.getS(), rt_s);\n assertEquals(encTriple.getP(), rt_p);\n assertEquals(encTriple.getO(), rt_o);\n break;\n }\n case ANY :\n assertEquals(Node.ANY, node);\n case REPEAT :\n break;\n case UNDEFINED :\n assertNull(node);\n return rt;\n case VALINTEGER : {\n long x = rt.getValInteger();\n assertTrue(integerSubTypes.contains(node.getLiteralDatatype()));\n //assertEquals(node.getLiteralDatatype(), XSDDatatype.XSDinteger);\n long x2 = Long.parseLong(node.getLiteralLexicalForm());\n assertEquals(x,x2);\n break;\n }\n case VALDOUBLE : {\n double x = rt.getValDouble();\n assertEquals(node.getLiteralDatatype(), XSDDatatype.XSDdouble);\n double x2 = Double.parseDouble(node.getLiteralLexicalForm());\n assertEquals(x, x2, 0.01);\n break;\n }\n case VALDECIMAL : {\n assertEquals(node.getLiteralDatatype(), XSDDatatype.XSDdecimal);\n NodeValue nv = NodeValue.makeNode(node);\n assertTrue(nv.isDecimal());\n\n long value = rt.getValDecimal().getValue() ;\n int scale = rt.getValDecimal().getScale() ;\n BigDecimal d = BigDecimal.valueOf(value, scale) ;\n assertEquals(nv.getDecimal(), d);\n break;\n }\n case TERM_NOT_SET :\n break;\n }\n\n // And reverse\n if ( ! asValue ) {\n // Value based does not preserve exact datatype or lexical form.\n Node n2 = ProtobufConvert.convert(rt, pmap);\n assertEquals(node, n2) ;\n }\n\n return rt;\n }", "@rdf(SIOC.USERACCOUNT)\npublic interface User extends Thing {\n @rdf(SIOC.ID)\n String getId();\n\n void setId(String id);\n\n @rdf(SIOC.ACCOUNT_OF)\n Agent getAccountOf();\n\n void setAccountOf(Agent accountOf);\n}", "final public Expression IRIrefOrFunction(Exp stack) throws ParseException {\n Expression exp;\n exp = StdIRIrefOrFunction(stack);\n {if (true) return exp;}\n throw new Error(\"Missing return statement in function\");\n }", "Rule DoubleQuotedLiteral() {\n return Sequence(\n \"\\\"\",\n ZeroOrMore(NoneOf(\"\\\"\")),\n \"\\\"\");\n }", "public abstract QueryElement addOrEquals(String property, Object value);", "private static String readResource(String resource) {\n String sresults = \"\";\n String sparql = \"SELECT DISTINCT *\\n\"\n + \"WHERE {\\n\"\n + \" GRAPH ?g {\\n\"\n + \" <\" + resource + \"> ?p ?o\\n\"\n + \" }\\n\"\n + \"}\";\n\n Query query = QueryFactory.create(sparql);\n String endpoint = \"http://localhost:3030/RDFChess/query\";\n QueryExecution qexec = QueryExecutionFactory.sparqlService(endpoint, query);\n// QueryExecution qexec = QueryExecutionFactory.create(query, model);\n ResultSet results = qexec.execSelect();\n for (; results.hasNext();) {\n QuerySolution soln = results.nextSolution();\n Resource p = soln.getResource(\"p\"); // Get a result variable by name.\n RDFNode o = soln.get(\"o\"); // Get a result variable - must be a resource\n String so = \"\";\n if (o.isLiteral()) {\n so = \"\\\"\" + o.toString() + \"\\\"\";\n } else {\n so = \"<\" + o.toString() + \">\";\n }\n\n sresults += \"<\" + resource + \"> <\" + p.toString() + \"> \" + so + \" . \\n\";\n }\n\n return sresults;\n }", "String getQuery() throws RemoteException;", "public abstract QueryElement addNotEquals(String property, Object value);", "@Override\n public R visit(SparqlCollection n, A argu) {\n R _ret = null;\n n.nodeToken.accept(this, argu);\n n.nodeList.accept(this, argu);\n n.nodeToken1.accept(this, argu);\n return _ret;\n }", "@Test\n public void testFromFollowedByQuery() throws Exception {\n final String text = \"rule X when Cheese() from $cheesery ?person( \\\"Mark\\\", 42; ) then end\";\n RuleDescr rule = ((RuleDescr) (parse(\"rule\", text)));\n TestCase.assertFalse(parser.getErrors().toString(), parser.hasErrors());\n PatternDescr pattern = ((PatternDescr) (getDescrs().get(0)));\n TestCase.assertEquals(\"Cheese\", pattern.getObjectType());\n TestCase.assertEquals(\"from $cheesery\", pattern.getSource().getText());\n TestCase.assertFalse(pattern.isQuery());\n pattern = ((PatternDescr) (getDescrs().get(1)));\n TestCase.assertEquals(\"person\", pattern.getObjectType());\n TestCase.assertTrue(pattern.isQuery());\n }", "@FunctionalInterface\npublic interface IRIPrinter {\n String getString(IRI iri);\n}", "@Test\n public void testExploratoryString() throws IOException {\n String simplestProgram = \"x := 1;\" +\n \"y :={0,1,2,33};\" +\n \"if (x>y) then \" +\n \"{x:=1;} \" +\n \"else \" +\n \"{y:=1;}\";\n\n CharStream inputCharStream = new ANTLRInputStream(new StringReader(simplestProgram));\n TokenSource tokenSource = new GrammarLexer(inputCharStream);\n TokenStream inputTokenStream = new CommonTokenStream(tokenSource);\n GrammarParser parser = new GrammarParser(inputTokenStream);\n\n //parser.addErrorListener(new TestErrorListener());\n parser.setErrorHandler(new BailErrorStrategy());\n\n GrammarParser.ProgramContext context = parser.program();\n\n System.out.println(context.getText());\n\n logger.info(context.toString());\n }", "private static boolean make_type_x(String query, DataDir dir, \n\t\t\t\t int query_type, Z39session zsession, boolean addOID) {\n\t StringTokenizer st = new StringTokenizer(query);\n\t nodes node[] = new nodes[st.countTokens()];\n\t int rc = 0;\n\t DataDir parm = dir;\n\n//System.out.println(\"make type x: num nodes: \" + node.length);\n\n\t if (node.length==0)\n\t {\n if (zsession != null && zsession.logger != null && \n\t\t zsession.logger.getLevel() != Z39logging.OFF)\n\t\t zsession.logger.println(\"No query provided!\");\n\t\treturn false;\n\t }\n\n \t String q = query.trim();\n\n \t int i=0, j, o, len, nodecnt=0;\n\n try {\n \t for (o=0, len = q.length(); o < len; o=j+1) {\n \t if (q.charAt(o) == '\"') {\n\t\ti = q.indexOf('\"', o+1);\n\t\tif (i == -1)\n\t\t i = o;\n \t }\n\t else\n\t\ti = o;\n\n \t j = q.indexOf(' ', i);\n \t if (j == -1)\n\t j = q.length();\n\n // If length > 0, add new node \n if ( (j-o) > 0 ) {\n node[nodecnt] = new nodes(q.substring(o,j), query_type, zsession);\n\n if (zsession != null && zsession.logger != null && \n\t\t zsession.logger.getLevel() != Z39logging.OFF)\n\t\t zsession.logger.println(\n\t\t \"node[\"+nodecnt+\"].type=\" + nodes.operators[node[nodecnt].type]+\n\t\t \", .term='\"+node[nodecnt].term+\"'\");\n\n \t //System.out.println(\"node[\"+nodecnt+\"].type=\" + nodes.operators[node[nodecnt].type]+\n\t\t //\", .term='\"+node[nodecnt].term+\"'\");\n\n nodecnt++; \n }\n\t }\n }\n catch (Exception e) {\n System.out.println(\"caught exception from nodemaker\");\n e.printStackTrace();\n }\n\n\n//System.out.println(\"link nodes \" + (nodecnt-1));\n\n\n\t rc=nodes.linkNodes(node, nodecnt-1); //node.length-1);\n\t if (rc != -1)\n\t {\n if (zsession != null && zsession.logger != null && \n\t\t zsession.logger.getLevel() != Z39logging.OFF)\n\t\t zsession.logger.println(\n\t\t \"Ill formed query, linkNodes returned \" + rc);\n\t\treturn false;\n\t }\n\n if (zsession != null && zsession.logger != null && \n\t\tzsession.logger.getLevel() != Z39logging.OFF)\n\t\tzsession.logger.println(\"building type-\"+query_type+\" query\");\n\n if (addOID) {\n \t parm = dir.add(query_type, ASN1.CONTEXT);\n\t parm.addOID(ASN1.OBJECTIDENTIFIER, ASN1.UNIVERSAL, \n\t\t\"1.2.840.10003.3.1\");\n }\n\t node[nodecnt-1].buildQuery(parm);\n\n\t return true;\n\t}" ]
[ "0.58847755", "0.5596863", "0.55121094", "0.5352262", "0.52856004", "0.5162227", "0.50985205", "0.5091518", "0.5090989", "0.4995014", "0.49817374", "0.49713218", "0.49673155", "0.49390456", "0.49109447", "0.489816", "0.48915637", "0.4881067", "0.48809826", "0.48769897", "0.47736955", "0.47579157", "0.47399577", "0.47332457", "0.4720045", "0.47065607", "0.47050506", "0.46989393", "0.4697243", "0.46711057", "0.46403694", "0.46172595", "0.46075538", "0.46074104", "0.455282", "0.45409697", "0.45329365", "0.45309296", "0.45185804", "0.45161578", "0.44984502", "0.44805866", "0.44639683", "0.44590005", "0.4452542", "0.4431423", "0.44254282", "0.44132915", "0.44032156", "0.44019926", "0.43950975", "0.439345", "0.43867704", "0.438374", "0.4382605", "0.43783376", "0.43761155", "0.43601444", "0.4358309", "0.4353463", "0.43481702", "0.4347593", "0.43446946", "0.43315822", "0.43294403", "0.432665", "0.43110725", "0.42980608", "0.42978638", "0.42878947", "0.42858002", "0.42857477", "0.42822278", "0.4278354", "0.42717326", "0.42687333", "0.42684868", "0.4267423", "0.42620105", "0.4260561", "0.425915", "0.42545086", "0.4254057", "0.42540106", "0.42531258", "0.42526633", "0.42526633", "0.4244139", "0.4241685", "0.4236461", "0.4236161", "0.42316458", "0.42312083", "0.42250052", "0.4219491", "0.42143822", "0.421153", "0.4206795", "0.42057714", "0.4200754" ]
0.70059276
0
nodeChoice > ( NumericLiteralUnsigned() | NumericLiteralPositive() | NumericLiteralNegative() )
@Override public R visit(NumericLiteral n, A argu) { R _ret = null; n.nodeChoice.accept(this, argu); return _ret; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public R visit(NumericLiteralUnsigned n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "@Override\n public R visit(NumericLiteralPositive n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "@Override\n public R visit(NumericLiteralNegative n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "@Override\n public R visit(UnaryExpression n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "private FinalIntegerNode() { }", "@Test\n public void defaultOperatorsEvaluteTrueTest() throws Exception {\n\n assertThat(getNode(\"1 == 1\", \"expr\").render(null), is((Object)true));\n assertThat(getNode(\"1 != 2\", \"expr\").render(null), is((Object)true));\n assertThat(getNode(\"1 <> 2\", \"expr\").render(null), is((Object)true));\n assertThat(getNode(\"1 < 2\", \"expr\").render(null), is((Object)true));\n assertThat(getNode(\"2 > 1\", \"expr\").render(null), is((Object)true));\n assertThat(getNode(\"1 >= 1\", \"expr\").render(null), is((Object)true));\n assertThat(getNode(\"2 >= 1\", \"expr\").render(null), is((Object)true));\n assertThat(getNode(\"1 <= 2\", \"expr\").render(null), is((Object)true));\n assertThat(getNode(\"1 <= 1\", \"expr\").render(null), is((Object)true));\n\n // negative numbers\n assertThat(getNode(\"1 > -1\", \"expr\").render(null), is((Object)true));\n assertThat(getNode(\"-1 < 1\", \"expr\").render(null), is((Object)true));\n assertThat(getNode(\"1.0 > -1.0\", \"expr\").render(null), is((Object)true));\n assertThat(getNode(\"-1.0 < 1.0\", \"expr\").render(null), is((Object)true));\n }", "public String visit(BinOp n, Object argu)\r\n\t {\r\n switch(n.f0.f0.which)\r\n\t {\r\n\t case 0:return \"slt\";\r\n\t case 1:return \"add\";\r\n\t case 2:return \"sub\";\r\n\t case 3:return \"mul\";\r\n\t default:break;\r\n\t }\r\n return null;\r\n\t }", "private ASTNode binaryMinusRules(ASTNode left, ASTNode right) throws Exception {\n\n Token leftToken = left.getToken();\n Token rightToken = right.getToken();\n\n TokenType leftType = leftToken.getType();\n TokenType rightType = rightToken.getType();\n\n TokenType numType = TokenType.NUMBER;\n TokenType varType = TokenType.VAR;\n TokenType minusType = TokenType.MINUS;\n TokenType plusType = TokenType.PLUS;\n\n Token tempToken;\n\n if (patternMatcher(leftType, rightType, numType, numType)){\n //left is num and right is num -> num\n Double leftVal = Double.parseDouble(leftToken.getIdentifier());\n Double rightVal = Double.parseDouble(rightToken.getIdentifier());\n Double sum = leftVal + rightVal;\n\n //if sum is negative, store the new node as unaryMinus(abs(left+right))\n if (sum < 0){\n tempToken = new Token(minusType);\n Token tempInnerToken = new Token(numType, String.valueOf(sum * -1));\n ASTNode tempOperand = new Num(tempInnerToken);\n return new UnaryOP(tempToken, tempOperand);\n }\n else{\n String tempString = String.valueOf(sum);\n tempToken = new Token(numType, tempString);\n return new Num(tempToken);\n }\n }\n else if (patternMatcher(leftType, rightType, varType, varType)){\n //left is var and right is var -> 0\n tempToken = new Token(numType, \"0\");\n return new Num(tempToken);\n }\n else if (rightType == minusType && right instanceof UnaryOP){\n //left is anything and right is unary minus -> var+right.operand\n tempToken = new Token(plusType);\n return new BinaryOp(tempToken, left, ((UnaryOP) right).getOperand());\n }\n else if (rightToken.getIdentifier().equals(\"0\")){\n //left is anything and right is 0 -> anything\n return left;\n }\n else if (leftToken.getIdentifier().equals(\"0\")){\n //left is 0 and right is anything -> -anything\n tempToken = new Token(minusType);\n return new UnaryOP(tempToken, right);\n }\n //else\n tempToken = new Token(minusType);\n return new BinaryOp(tempToken ,left, right);\n }", "private Term parseUnary(final boolean required) throws ParseException {\n Term t1 = null;\n final int tt = _tokenizer.next();\n if (tt == '+') {\n Term t2 = parseUnary(true);\n if (t2.isI() || t2.isD()) {\n t1 = t2;\n } else if (!isTypeChecking()) {\n t1 = t2;\n } else {\n reportTypeErrorN1(\"'+'\");\n }\n } else if (tt == '-') {\n Term t2 = parseUnary(true);\n if (t2 instanceof Term.ConstI) {\n t1 = new Term.ConstI(-((Term.ConstI) t2).getValue());\n } else if (t2 instanceof Term.ConstD) {\n t1 = new Term.ConstD(-((Term.ConstD) t2).getValue());\n } else if (t2.isI()) {\n t1 = new Term.Neg(Term.TYPE_I, t2);\n } else if (t2.isD()) {\n t1 = new Term.Neg(Term.TYPE_D, t2);\n } else if (!isTypeChecking()) {\n t1 = new Term.Neg(Term.TYPE_I, t2);\n } else {\n reportTypeErrorN1(\"'-'\");\n }\n } else if (tt == '!' || isKeyword(\"not\")) {\n Term t2 = parseUnary(true);\n if (t2.isB() || !isTypeChecking()) {\n t1 = new Term.NotB(t2);\n } else {\n reportTypeErrorB1(\"'!' or 'not'\");\n }\n } else if (tt == '~') {\n Term t2 = parseUnary(true);\n if (t2.isI() || !isTypeChecking()) {\n t1 = new Term.NotI(t2);\n } else {\n reportTypeErrorI1(\"'~'\");\n }\n } else {\n _tokenizer.pushBack();\n t1 = parsePostfix(required);\n }\n return t1;\n }", "private CalculatableNode nextNode() throws IOException {\n\t\tint ttype;\n\t\tttype = tokenizer.nextToken();\n\t\tif (ttype == StreamTokenizer.TT_NUMBER) {\n\t\t\treturn new NumericalNode((int) tokenizer.nval);\n\t\t}\n\t\tif (ttype >= 0) {\n\t\t\t// sign character such as +-*/()\n\t\t\tchar sign = (char) tokenizer.ttype;\n\t\t\tif (sign == '(') {\n\t\t\t\tCalculatableNode node = parseNode();\n\t\t\t\treturn node;\n\t\t\t}\n\t\t}\n\t\tthrow new IllegalFormulaException(\"数式が不正です\");\n\t}", "public abstract Number getPrimitiveType();", "@Override\n public R visit(GraphTerm n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "String getZero_or_one();", "@Test\n public void TestLiteralExpr() {\n testLiteralExprPositive(\"false\", Type.BOOLEAN);\n testLiteralExprPositive(\"1\", Type.TINYINT);\n testLiteralExprPositive(\"1\", Type.SMALLINT);\n testLiteralExprPositive(\"1\", Type.INT);\n testLiteralExprPositive(\"1\", Type.BIGINT);\n testLiteralExprPositive(\"1.0\", Type.FLOAT);\n testLiteralExprPositive(\"1.0\", Type.DOUBLE);\n testLiteralExprPositive(\"ABC\", Type.STRING);\n testLiteralExprPositive(\"ABC\", Type.BINARY);\n testLiteralExprPositive(\"1.1\", ScalarType.createDecimalType(2, 1));\n testLiteralExprPositive(\"2001-02-28\", Type.DATE);\n\n // INVALID_TYPE should always fail\n testLiteralExprNegative(\"ABC\", Type.INVALID);\n\n // Invalid casts\n testLiteralExprNegative(\"ABC\", Type.BOOLEAN);\n testLiteralExprNegative(\"ABC\", Type.TINYINT);\n testLiteralExprNegative(\"ABC\", Type.SMALLINT);\n testLiteralExprNegative(\"ABC\", Type.INT);\n testLiteralExprNegative(\"ABC\", Type.BIGINT);\n testLiteralExprNegative(\"ABC\", Type.FLOAT);\n testLiteralExprNegative(\"ABC\", Type.DOUBLE);\n testLiteralExprNegative(\"ABC\", Type.TIMESTAMP);\n testLiteralExprNegative(\"ABC\", ScalarType.createDecimalType());\n testLiteralExprNegative(\"ABC\", Type.DATE);\n // Invalid date test\n testLiteralExprNegative(\"2001-02-31\", Type.DATE);\n\n // DATETIME/TIMESTAMP types not implemented\n testLiteralExprNegative(\"2010-01-01\", Type.DATETIME);\n testLiteralExprNegative(\"2010-01-01\", Type.TIMESTAMP);\n }", "Node(int value, String name) {\n this.value = value;\n this.name = name;\n }", "@Override\n\tpublic Object visit(ASTUnary node, Object data)\n\t{\n\t\tFormulaSemantics semantics =\n\t\t\t\t(FormulaSemantics) singleChildValid(node, data);\n\t\t//Consistent with the \"fail fast\" behavior in the implementation note\n\t\tif (!semantics.getInfo(FormulaSemanticsUtilities.SEM_VALID).isValid())\n\t\t{\n\t\t\treturn semantics;\n\t\t}\n\t\t/*\n\t\t * Note: We only implement unary minus for Number.class today. This is a\n\t\t * \"known\" limitation, but would be nice to escape. However, this means\n\t\t * we need an entire equivalent to OperatorAction for 1-argument\n\t\t * operations :/\n\t\t */\n\t\tClass<?> format =\n\t\t\t\tsemantics.getInfo(FormulaSemanticsUtilities.SEM_FORMAT)\n\t\t\t\t\t.getFormat();\n\t\tif (!format.equals(NUMBER_CLASS))\n\t\t{\n\t\t\tFormulaSemanticsUtilities.setInvalid(semantics,\n\t\t\t\t\"Parse Error: Invalid Value Format: \" + format + \" found in \"\n\t\t\t\t\t+ node.jjtGetChild(0).getClass().getName()\n\t\t\t\t\t+ \" found in location requiring a\"\n\t\t\t\t\t+ \" Number (class cannot be evaluated)\");\n\t\t}\n\t\treturn semantics;\n\t}", "public Node negaposi()\r\n\t{\r\n\t\tint index = lexer.getPosition();\r\n\t\tif(lexer.getToken()==Lexer.Token.PLUS)\r\n\t\t{\r\n\t\t\tNode fact = power();\r\n\t\t\tif(fact!=null)\r\n\t\t\t{\r\n\t\t\t\treturn new Positive(fact);\r\n\t\t\t}\r\n\t\t}\r\n\t\tlexer.setPosition(index);\r\n\t\tif(lexer.getToken()==Lexer.Token.MINUS)\r\n\t\t{\r\n\t\t\tNode fact = power();\r\n\t\t\tif(fact!=null)\r\n\t\t\t{\r\n\t\t\t\treturn new Negative(fact);\r\n\t\t\t}\r\n\t\t}\r\n\t\tlexer.setPosition(index);\r\n\t\treturn power();\r\n\t}", "public String visit(MinusExpression n, Object argu) \n\t{\n\t\tString _ret=null;\n\t String e0 = n.f0.accept(this, argu);\n\t String e1 = n.f2.accept(this, argu);\n\t \n\t if (e0.equals(\"int\") && e1.equals(\"int\"))\n\t {\n\t \t_ret = \"int\";\n\t }\n\t return _ret;\n\t}", "@Override\n\tpublic int getNumericCode() {\n\t\treturn 0;\n\t}", "@Override\n public R visit(VarOrTerm n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "@Override\n public R visit(PrimaryExpression n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "public Node()\n\t{\n\t\t\n\t\tdata = new IntData();\n\t\tdata.setData(Integer.MIN_VALUE);\n\t\tnext=null;\n\t}", "private void empty_to_int_step( ExpressionNode nd, VMState vms ) {\n Assert.check( vms.top().at( nd ) == null ) ;\r\n \r\n // Clear the selection\r\n vms.top().setSelected( null ) ;\r\n \r\n // Compute the value\r\n long value ;\r\n switch( op_code ) {\r\n case RAND :\r\n if( random == null ) random = new java.util.Random(1) ;\r\n value = random.nextInt() % 32767 ;\r\n if( value < 0 ) value = - value ;\r\n break ;\r\n default: Assert.check(false) ; value = 0 ;\r\n }\r\n \r\n putIntResult(nd, vms, value);\r\n }", "public final void mINTEGER() throws RecognitionException {\n try {\n int _type = INTEGER;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // /Users/devdatta.kulkarni/Documents/Cassandra/apache-cassandra-0.8.6-src/src/java/org/apache/cassandra/cql/Cql.g:581:5: ( ( '-' )? ( DIGIT )+ )\n // /Users/devdatta.kulkarni/Documents/Cassandra/apache-cassandra-0.8.6-src/src/java/org/apache/cassandra/cql/Cql.g:581:7: ( '-' )? ( DIGIT )+\n {\n // /Users/devdatta.kulkarni/Documents/Cassandra/apache-cassandra-0.8.6-src/src/java/org/apache/cassandra/cql/Cql.g:581:7: ( '-' )?\n int alt5=2;\n int LA5_0 = input.LA(1);\n\n if ( (LA5_0=='-') ) {\n alt5=1;\n }\n switch (alt5) {\n case 1 :\n // /Users/devdatta.kulkarni/Documents/Cassandra/apache-cassandra-0.8.6-src/src/java/org/apache/cassandra/cql/Cql.g:581:7: '-'\n {\n match('-'); \n\n }\n break;\n\n }\n\n // /Users/devdatta.kulkarni/Documents/Cassandra/apache-cassandra-0.8.6-src/src/java/org/apache/cassandra/cql/Cql.g:581:12: ( DIGIT )+\n int cnt6=0;\n loop6:\n do {\n int alt6=2;\n int LA6_0 = input.LA(1);\n\n if ( ((LA6_0>='0' && LA6_0<='9')) ) {\n alt6=1;\n }\n\n\n switch (alt6) {\n \tcase 1 :\n \t // /Users/devdatta.kulkarni/Documents/Cassandra/apache-cassandra-0.8.6-src/src/java/org/apache/cassandra/cql/Cql.g:581:12: DIGIT\n \t {\n \t mDIGIT(); \n\n \t }\n \t break;\n\n \tdefault :\n \t if ( cnt6 >= 1 ) break loop6;\n EarlyExitException eee =\n new EarlyExitException(6, input);\n throw eee;\n }\n cnt6++;\n } while (true);\n\n\n }\n\n state.type = _type;\n state.channel = _channel;\n }\n finally {\n }\n }", "@Override\n public R visit(TriplesNode n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "public String visit(IntegerType n, LLVMRedux argu) {\n return \"i32\";\n }", "@Override\n\tpublic String getValue() {\n\t\treturn integerLiteral;\n\t}", "public IntegerLiteral(Integer number)\n {\n this.literal = number; \n }", "@Override\n public R visit(IRIref n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "public Literal getLiteralNumber(Double literalData);", "@Override\n public NumberExpr parse(ModuleState state, ASTNode parent) {\n var s = state.tokens.value().toLowerCase();\n state.tokens.next();\n\n boolean neg = s.startsWith(\"-\");\n if(neg) s = s.substring(1);\n\n if(s.length()>1) {\n if(s.startsWith(\"0x\")) {\n this.value = Long.parseLong(s.substring(2), 16);\n } else if(s.startsWith(\"0o\")) {\n this.value = Long.parseLong(s.substring(2), 8);\n } else if(s.startsWith(\"0b\")) {\n this.value = Long.parseLong(s.substring(2), 2);\n } else if(s.contains(\".\")) {\n this.value = Double.parseDouble(s);\n } else if(s.contains(\"e\")) {\n /* scientific notation */\n this.value = Double.parseDouble(s);\n } else {\n this.value = Long.parseLong(s);\n }\n } else {\n /* Single digit must be an int */\n this.value = Integer.parseInt(s);\n }\n if(neg) this.value = -this.value;\n\n parent.add(this);\n return this;\n }", "@Override\n public R visit(ArgList n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "@Test\n public void defaultOperatorsEvaluateFalseTest() throws Exception {\n\n assertThat(getNode(\"1 == 2\", \"expr\").render(null), is((Object)false));\n assertThat(getNode(\"1 != 1\", \"expr\").render(null), is((Object)false));\n assertThat(getNode(\"1 <> 1\", \"expr\").render(null), is((Object)false));\n assertThat(getNode(\"1 < 0\", \"expr\").render(null), is((Object)false));\n assertThat(getNode(\"2 > 4\", \"expr\").render(null), is((Object)false));\n assertThat(getNode(\"1 >= 3\", \"expr\").render(null), is((Object)false));\n assertThat(getNode(\"2 >= 4\", \"expr\").render(null), is((Object)false));\n assertThat(getNode(\"1 <= 0\", \"expr\").render(null), is((Object)false));\n }", "@Override\n public String visit(PrimitiveType n, Object arg) {\n return null;\n }", "@Override\r\n\t\tpublic short getNodeType()\r\n\t\t\t{\n\t\t\t\treturn 0;\r\n\t\t\t}", "public Object visitUnaryMinusExpression(GNode n) {\n Object a;\n \n nonboolean = true;\n \n dostring = true;\n \n a = dispatch(n.getGeneric(0));\n \n dostring = false;\n \n if (a instanceof Long) {\n return - (Long) a;\n }\n else {\n return \"- \" + parens(a);\n }\n }", "public LlvmValue visit(IntegerType n){\n\t\treturn LlvmPrimitiveType.I32;\n\t}", "SEIntegerVariable getOperand1();", "public LlvmValue visit(IntegerLiteral n) {\n return new LlvmIntegerLiteral(n.value);\n }", "public UnaryExpNode() {\n }", "@Override\n\tpublic void VisitUnaryNode(UnaryOperatorNode Node) {\n\n\t}", "@Override\r\n public String toString(){\r\n return Integer.toString(node);\r\n }", "@Test\n public void equalityForDifferentBinaryOps() {\n XPathStringLiteral leftStringExpr = new XPathStringLiteral(\"left side\");\n XPathNumericLiteral zero = new XPathNumericLiteral(0d);\n\n // Setup expressions to test equality over.\n // Note: these binary expressions make semantic sense\n XPathArithExpr additionExpr = new XPathArithExpr(XPathArithExpr.ADD, leftStringExpr, zero);\n XPathArithExpr additionExprClone = new XPathArithExpr(XPathArithExpr.ADD, leftStringExpr, zero);\n XPathArithExpr subtractExpr = new XPathArithExpr(XPathArithExpr.SUBTRACT, leftStringExpr, zero);\n\n XPathBoolExpr andExpr = new XPathBoolExpr(XPathBoolExpr.AND, leftStringExpr, zero);\n XPathBoolExpr andExprClone = new XPathBoolExpr(XPathBoolExpr.AND, leftStringExpr, zero);\n XPathBoolExpr orExpr = new XPathBoolExpr(XPathBoolExpr.OR, leftStringExpr, zero);\n\n XPathCmpExpr lessThanExpr = new XPathCmpExpr(XPathCmpExpr.LT, leftStringExpr, zero);\n XPathCmpExpr greaterThanExpr = new XPathCmpExpr(XPathCmpExpr.GT, leftStringExpr, zero);\n\n XPathEqExpr eqExpr = new XPathEqExpr(XPathEqExpr.EQ, leftStringExpr, zero);\n XPathEqExpr neqExpr = new XPathEqExpr(XPathEqExpr.NEQ, leftStringExpr, zero);\n\n XPathUnionExpr union = new XPathUnionExpr(leftStringExpr, zero);\n XPathUnionExpr differentUnion = new XPathUnionExpr(zero, zero);\n\n // basic equality tests over same subclass\n Assert.assertEquals(\"Same + expression reference is equal\", additionExpr, additionExpr);\n Assert.assertEquals(\"Same + expression is equal\", additionExpr, additionExprClone);\n Assert.assertNotEquals(\"+ not equal to -\", additionExpr, subtractExpr);\n Assert.assertEquals(\"Same && expression reference is equal\", andExpr, andExpr);\n Assert.assertEquals(\"Same && expression is equal\", andExpr, andExprClone);\n Assert.assertNotEquals(\"&& not equal to ||\", andExpr, orExpr);\n Assert.assertEquals(\"Same < expression is equal\", lessThanExpr, lessThanExpr);\n Assert.assertNotEquals(\"< not equal to >\", lessThanExpr, greaterThanExpr);\n Assert.assertEquals(\"Same == expression is equal\", eqExpr, eqExpr);\n Assert.assertNotEquals(\"== not equal to !=\", eqExpr, neqExpr);\n\n // make sure different binary expressions with same op code aren't equal\n Assert.assertNotEquals(\"+ not equal to &&\", additionExpr, andExpr);\n Assert.assertNotEquals(\"+ not equal to <\", additionExpr, lessThanExpr);\n Assert.assertNotEquals(\"+ not equal to ==\", additionExpr, eqExpr);\n Assert.assertNotEquals(\"- not equal to ||\", subtractExpr, orExpr);\n Assert.assertNotEquals(\"- not equal to >\", subtractExpr, greaterThanExpr);\n Assert.assertNotEquals(\"- not equal to !=\", subtractExpr, neqExpr);\n\n // make sure union equality, which doesn't have an op code, works\n Assert.assertEquals(\"same union instance is equal to itself\", union, union);\n Assert.assertNotEquals(union, differentUnion);\n Assert.assertNotEquals(\"+ not equal to union\", additionExpr, union);\n }", "@Test\n public void testCalculateRPNCustomNegativeNumbers() throws Exception {\n String[] expression = {\"3\",\"4\",\"+\",\"8\",\"3\",\"-\",\"+\",\"-10\",\"*\"};\n double result = solver.calculateRPNCustom(expression);\n\n assertThat(result, is(-120.0));\n }", "public R visit(Operator n) {\n R _ret=null;\n int which = n.f0.which;\n String s = \" \";\n switch (which)\n {\n case 0 : {s=\"LT\"; break;}\n case 1 : {s= \"PLUS\"; break;}\n case 2 : {s= \"MINUS\";break;}\n case 3 : {s= \"TIMES\"; break;}\n }\n \t return (R)s;\n }", "private Object getTypeObjectPair() throws MathLinkException, NumberRangeException {\n Object result = null;\n int type = this.getInteger();\n if (type % -17 == -15) {\n type = -7 + -17 * (type / -17);\n } else if (type % -17 == -16) {\n type = -8 + -17 * (type / -17);\n }\n switch (type) {\n case -5: {\n result = new Integer(this.getInteger());\n break;\n }\n case -6: {\n result = new Long(this.getLongInteger());\n break;\n }\n case -4: {\n int i = this.getInteger();\n if (i < -32768 || i > 32767) {\n throw new NumberRangeException(i, \"short\");\n }\n result = new Short((short)i);\n break;\n }\n case -2: {\n int i = this.getInteger();\n if (i < -128 || i > 127) {\n throw new NumberRangeException(i, \"byte\");\n }\n result = new Byte((byte)i);\n break;\n }\n case -3: {\n int i = this.getInteger();\n if (i < 0 || i > 65535) {\n throw new NumberRangeException(i, \"char\");\n }\n result = new Character((char)i);\n break;\n }\n case -15: \n case -7: {\n double d = this.getDouble();\n if (d < -3.4028234663852886E38 || d > 3.4028234663852886E38) {\n throw new NumberRangeException(d, \"float\");\n }\n result = new Float((float)d);\n break;\n }\n case -16: \n case -8: {\n result = new Double(this.getDouble());\n break;\n }\n case -9: {\n int tok = this.getType();\n if (tok == 100000) {\n result = this.getObject();\n break;\n }\n result = this.getString();\n if (tok != 35 || !result.equals(\"Null\")) break;\n result = null;\n break;\n }\n case -1: {\n String s = this.getSymbol();\n if (s.equals(\"True\")) {\n result = Boolean.TRUE;\n break;\n }\n result = Boolean.FALSE;\n break;\n }\n case -13: {\n long mark = this.createMark();\n try {\n int tok = this.getNext();\n if (tok == 100000) {\n result = this.getObject();\n break;\n }\n if (tok == 35) {\n result = this.getSymbol();\n if (result.equals(\"Null\")) {\n result = null;\n break;\n }\n this.seekMark(mark);\n result = this.getComplex();\n break;\n }\n this.seekMark(mark);\n result = this.getComplex();\n }\n finally {\n this.destroyMark(mark);\n }\n }\n case -10: {\n long mark = this.createMark();\n try {\n int tok = this.getType();\n if (tok == 100000) {\n result = this.getObject();\n break;\n }\n if (tok == 35) {\n result = this.getSymbol();\n if (result.equals(\"Null\")) {\n result = null;\n break;\n }\n result = new BigInteger((String)result);\n break;\n }\n result = new BigInteger(this.getString());\n }\n finally {\n this.destroyMark(mark);\n }\n }\n case -11: {\n long mark = this.createMark();\n try {\n int tok = this.getType();\n if (tok == 100000) {\n result = this.getObject();\n break;\n }\n if (tok == 35) {\n result = this.getSymbol();\n if (result.equals(\"Null\")) {\n result = null;\n break;\n }\n result = Utils.bigDecimalFromString((String)result);\n break;\n }\n result = Utils.bigDecimalFromString(this.getString());\n }\n finally {\n this.destroyMark(mark);\n }\n }\n case -12: {\n long mark = this.createMark();\n try {\n int tok = this.getNext();\n if (tok == 100000 && (result = this.getObject()) != null) break;\n this.seekMark(mark);\n result = this.getExpr();\n }\n finally {\n this.destroyMark(mark);\n }\n }\n case -14: {\n result = this.getObject();\n break;\n }\n case -10000: {\n break;\n }\n default: {\n int tok = this.getNext();\n result = tok == 100000 || tok == 35 ? this.getObject() : (type > -34 ? this.getArray(type - -17, 1) : (type > -51 ? this.getArray(type - -34, 2) : (type > -68 ? this.getArray(type - -51, 3) : (type > -85 ? this.getArray(type - -68, 4) : this.getArray(type - -85, 5)))));\n }\n }\n return result;\n }", "public void visit(PrimitiveType n) {\n n.f0.accept(this);\n }", "private PseudostateKind(int value, String name, String literal) {\r\n\t\tthis.value = value;\r\n\t\tthis.name = name;\r\n\t\tthis.literal = literal;\r\n\t}", "@Override\n public R visit(VarOrIRIref n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "PrimitiveType createPrimitiveType();", "@Override\n public R visit(GraphNode n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "public final void mRANGE_OR_INT() throws RecognitionException {\n try {\n int _type = RANGE_OR_INT;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // C:\\\\Documents and Settings\\\\D043530\\\\runtime-workspace\\\\com.sap.ap.cts.editor\\\\generated\\\\generated\\\\Binding.g:2954:5: ( ( INT '..' )=> INT | ( INT '.' NAME )=> INT | ( INT '.' ~ ( '.' | 'a' .. 'z' | 'A' .. 'Z' | '_' | '\\\\u00C0' .. '\\\\u00D6' | '\\\\u00D8' .. '\\\\u00F6' | '\\\\u00F8' .. '\\\\u00FF' ) )=> FLOAT | INT )\n int alt12=4;\n int LA12_0 = input.LA(1);\n\n if ( ((LA12_0>='0' && LA12_0<='9')) ) {\n int LA12_1 = input.LA(2);\n\n if ( ((LA12_1>='0' && LA12_1<='9')) && (synpred3_Binding())) {\n alt12=3;\n }\n else if ( (LA12_1=='.') && (synpred3_Binding())) {\n alt12=3;\n }\n else if ( (synpred1_Binding()) ) {\n alt12=1;\n }\n else if ( (synpred2_Binding()) ) {\n alt12=2;\n }\n else if ( (true) ) {\n alt12=4;\n }\n else {\n if (state.backtracking>0) {state.failed=true; return ;}\n NoViableAltException nvae =\n new NoViableAltException(\"\", 12, 1, input);\n\n throw nvae;\n }\n }\n else {\n if (state.backtracking>0) {state.failed=true; return ;}\n NoViableAltException nvae =\n new NoViableAltException(\"\", 12, 0, input);\n\n throw nvae;\n }\n switch (alt12) {\n case 1 :\n // C:\\\\Documents and Settings\\\\D043530\\\\runtime-workspace\\\\com.sap.ap.cts.editor\\\\generated\\\\generated\\\\Binding.g:2954:9: ( INT '..' )=> INT\n {\n mINT(); if (state.failed) return ;\n if ( state.backtracking==0 ) {\n _type = INT; \n }\n\n }\n break;\n case 2 :\n // C:\\\\Documents and Settings\\\\D043530\\\\runtime-workspace\\\\com.sap.ap.cts.editor\\\\generated\\\\generated\\\\Binding.g:2955:7: ( INT '.' NAME )=> INT\n {\n mINT(); if (state.failed) return ;\n if ( state.backtracking==0 ) {\n _type = INT; \n }\n\n }\n break;\n case 3 :\n // C:\\\\Documents and Settings\\\\D043530\\\\runtime-workspace\\\\com.sap.ap.cts.editor\\\\generated\\\\generated\\\\Binding.g:2956:9: ( INT '.' ~ ( '.' | 'a' .. 'z' | 'A' .. 'Z' | '_' | '\\\\u00C0' .. '\\\\u00D6' | '\\\\u00D8' .. '\\\\u00F6' | '\\\\u00F8' .. '\\\\u00FF' ) )=> FLOAT\n {\n mFLOAT(); if (state.failed) return ;\n if ( state.backtracking==0 ) {\n _type = FLOAT; \n }\n\n }\n break;\n case 4 :\n // C:\\\\Documents and Settings\\\\D043530\\\\runtime-workspace\\\\com.sap.ap.cts.editor\\\\generated\\\\generated\\\\Binding.g:2963:9: INT\n {\n mINT(); if (state.failed) return ;\n if ( state.backtracking==0 ) {\n _type = INT; \n }\n\n }\n break;\n\n }\n state.type = _type;\n state.channel = _channel;\n }\n finally {\n }\n }", "@Test public void term_value_01() {\n RDF_Term rt = testTermValue(\"123\") ;\n assertEquals(rt.getTermCase(), TermCase.VALINTEGER);\n assertEquals(123, rt.getValInteger()) ;\n }", "@Override\n public R visit(SparqlString n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "@Override\n public R visit(GraphPatternNotTriples n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "@Override\n public R visit(Constraint n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "IntegerLiteralExp createIntegerLiteralExp();", "@Override\n public R visit(BuiltInCall n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "@Test public void term_value_roundtriple_1() {\n RDF_Term rt = testTermValue(\"'123'^^xsd:integer\") ;\n assertEquals(123, rt.getValInteger()) ;\n Node n = ProtobufConvert.convert(rt, prefixMap);\n assertEquals(XSDDatatype.XSDinteger, n.getLiteralDatatype());\n assertEquals(\"123\", n.getLiteralLexicalForm());\n }", "@Override\n public TypeNode evaluate() {\n return this.hijo.evaluate().toBoolNode();\n }", "@Override\n public Type evaluateType() throws Exception {\n return new IntegerType();\n }", "@Override\n public R visit(Verb n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "@Override\n\t\t\tpublic Ast binaryOp(BinaryOp ast, Void arg) {\n\t\t\t\tsuper.binaryOp(ast, arg);\n\n\t\t\t\ttry {\n\t\t\t\t\tExpr left = ast.left();\n\t\t\t\t\tExpr right = ast.right();\n\t\t\t\t\tInteger intValue = null;\n\t\t\t\t\tBoolean boolValue = null;\n\n\t\t\t\t\tswitch (ast.operator) {\n\t\t\t\t\tcase B_TIMES:\n\t\t\t\t\t\tintValue = asInt(left) * asInt(right);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase B_DIV:\n\t\t\t\t\t\tintValue = asInt(left) / asInt(right);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase B_MOD:\n\t\t\t\t\t\tintValue = asInt(left) % asInt(right);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase B_PLUS:\n\t\t\t\t\t\tintValue = asInt(left) + asInt(right);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase B_MINUS:\n\t\t\t\t\t\tintValue = asInt(left) - asInt(right);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase B_AND:\n\t\t\t\t\t\tboolValue = asBool(left) && asBool(right);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase B_OR:\n\t\t\t\t\t\tboolValue = asBool(left) || asBool(right);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase B_LESS_THAN:\n\t\t\t\t\t\tboolValue = asInt(left) < asInt(right);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase B_LESS_OR_EQUAL:\n\t\t\t\t\t\tboolValue = asInt(left) <= asInt(right);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase B_GREATER_THAN:\n\t\t\t\t\t\tboolValue = asInt(left) > asInt(right);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase B_GREATER_OR_EQUAL:\n\t\t\t\t\t\tboolValue = asInt(left) >= asInt(right);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase B_EQUAL:\n\t\t\t\t\t\tboolValue = areEqual(left, right);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase B_NOT_EQUAL:\n\t\t\t\t\t\tboolValue = areEqual(left, right);\n\t\t\t\t\t\tif (boolValue != null)\n\t\t\t\t\t\t\tboolValue = !boolValue;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\n\t\t\t\t\treturn replace(ast, intValue, boolValue);\n\t\t\t\t} catch (NotConstantException exc) {\n\t\t\t\t\t// non-constant operands: make no change.\n\t\t\t\t\treturn ast;\n\t\t\t\t} catch (ArithmeticException exc) {\n\t\t\t\t\t// division by zero etc: make no change.\n\t\t\t\t\treturn ast;\n\t\t\t\t}\n\t\t\t}", "@Override\n public String visit(IntegerLiteralExpr n, Object arg) {\n return null;\n }", "@Override\r\n public void visit(SimpleExp n, Graph argu) {\r\n Node t = n.f0.choice;\r\n if (t instanceof Temp)\r\n cur.addUse(Integer.parseInt(((Temp) t).f1.f0.tokenImage));\r\n }", "public final ValueNode literal() throws RecognitionException {\n ValueNode value = null;\n\n CommonTree NUMBER11=null;\n CommonTree FPNUMBER12=null;\n CommonTree STRING13=null;\n\n try {\n // C:\\\\Users\\\\Lyle\\\\BitTorrent Sync\\\\workspace\\\\SIDSL\\\\src\\\\JSONHandler\\\\JSONTreeConstruct.g:47:3: ( NUMBER | FPNUMBER | STRING | TRUE | FALSE | NULL )\n int alt9=6;\n switch ( input.LA(1) ) {\n case NUMBER:\n {\n alt9=1;\n }\n break;\n case FPNUMBER:\n {\n alt9=2;\n }\n break;\n case STRING:\n {\n alt9=3;\n }\n break;\n case TRUE:\n {\n alt9=4;\n }\n break;\n case FALSE:\n {\n alt9=5;\n }\n break;\n case NULL:\n {\n alt9=6;\n }\n break;\n default:\n NoViableAltException nvae =\n new NoViableAltException(\"\", 9, 0, input);\n\n throw nvae;\n }\n\n switch (alt9) {\n case 1 :\n // C:\\\\Users\\\\Lyle\\\\BitTorrent Sync\\\\workspace\\\\SIDSL\\\\src\\\\JSONHandler\\\\JSONTreeConstruct.g:47:5: NUMBER\n {\n NUMBER11=(CommonTree)match(input,NUMBER,FOLLOW_NUMBER_in_literal248); \n value = new ValueNode((NUMBER11!=null?NUMBER11.getText():null), \"int\");\n\n }\n break;\n case 2 :\n // C:\\\\Users\\\\Lyle\\\\BitTorrent Sync\\\\workspace\\\\SIDSL\\\\src\\\\JSONHandler\\\\JSONTreeConstruct.g:48:5: FPNUMBER\n {\n FPNUMBER12=(CommonTree)match(input,FPNUMBER,FOLLOW_FPNUMBER_in_literal256); \n value = new ValueNode((FPNUMBER12!=null?FPNUMBER12.getText():null), \"double\");\n\n }\n break;\n case 3 :\n // C:\\\\Users\\\\Lyle\\\\BitTorrent Sync\\\\workspace\\\\SIDSL\\\\src\\\\JSONHandler\\\\JSONTreeConstruct.g:49:5: STRING\n {\n STRING13=(CommonTree)match(input,STRING,FOLLOW_STRING_in_literal264); \n value = new ValueNode((STRING13!=null?STRING13.getText():null), \"string\");\n\n }\n break;\n case 4 :\n // C:\\\\Users\\\\Lyle\\\\BitTorrent Sync\\\\workspace\\\\SIDSL\\\\src\\\\JSONHandler\\\\JSONTreeConstruct.g:50:5: TRUE\n {\n match(input,TRUE,FOLLOW_TRUE_in_literal272); \n value = new ValueNode(\"true\", \"boolean\");\n\n }\n break;\n case 5 :\n // C:\\\\Users\\\\Lyle\\\\BitTorrent Sync\\\\workspace\\\\SIDSL\\\\src\\\\JSONHandler\\\\JSONTreeConstruct.g:51:5: FALSE\n {\n match(input,FALSE,FOLLOW_FALSE_in_literal280); \n value = new ValueNode(\"false\", \"boolean\");\n\n }\n break;\n case 6 :\n // C:\\\\Users\\\\Lyle\\\\BitTorrent Sync\\\\workspace\\\\SIDSL\\\\src\\\\JSONHandler\\\\JSONTreeConstruct.g:52:5: NULL\n {\n match(input,NULL,FOLLOW_NULL_in_literal288); \n value = new ValueNode(\"null\", \"null\");\n\n }\n break;\n\n }\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n }\n return value;\n }", "NumericExpression createNumericExpression();", "public final flipsParser.numericValuePositive_return numericValuePositive() throws RecognitionException {\n flipsParser.numericValuePositive_return retval = new flipsParser.numericValuePositive_return();\n retval.start = input.LT(1);\n\n CommonTree root_0 = null;\n\n Token FloatingPointLiteral548=null;\n flipsParser.integerValuePositive_return integerValuePositive547 = null;\n\n\n CommonTree FloatingPointLiteral548_tree=null;\n\n try {\n // flips.g:820:2: ( integerValuePositive | FloatingPointLiteral )\n int alt216=2;\n int LA216_0 = input.LA(1);\n\n if ( ((LA216_0>=BinaryLiteral && LA216_0<=HexLiteral)) ) {\n alt216=1;\n }\n else if ( (LA216_0==FloatingPointLiteral) ) {\n alt216=2;\n }\n else {\n NoViableAltException nvae =\n new NoViableAltException(\"\", 216, 0, input);\n\n throw nvae;\n }\n switch (alt216) {\n case 1 :\n // flips.g:820:4: integerValuePositive\n {\n root_0 = (CommonTree)adaptor.nil();\n\n pushFollow(FOLLOW_integerValuePositive_in_numericValuePositive4892);\n integerValuePositive547=integerValuePositive();\n\n state._fsp--;\n\n adaptor.addChild(root_0, integerValuePositive547.getTree());\n\n }\n break;\n case 2 :\n // flips.g:821:4: FloatingPointLiteral\n {\n root_0 = (CommonTree)adaptor.nil();\n\n FloatingPointLiteral548=(Token)match(input,FloatingPointLiteral,FOLLOW_FloatingPointLiteral_in_numericValuePositive4897); \n FloatingPointLiteral548_tree = (CommonTree)adaptor.create(FloatingPointLiteral548);\n adaptor.addChild(root_0, FloatingPointLiteral548_tree);\n\n\n }\n break;\n\n }\n retval.stop = input.LT(-1);\n\n retval.tree = (CommonTree)adaptor.rulePostProcessing(root_0);\n adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n \tretval.tree = (CommonTree)adaptor.errorNode(input, retval.start, input.LT(-1), re);\n\n }\n finally {\n }\n return retval;\n }", "public PrimitiveType getPrimitiveType();", "public final flipsParser.numericValue_return numericValue() throws RecognitionException {\n flipsParser.numericValue_return retval = new flipsParser.numericValue_return();\n retval.start = input.LT(1);\n\n CommonTree root_0 = null;\n\n Token char_literal539=null;\n Token char_literal541=null;\n Token FloatingPointLiteral542=null;\n Token char_literal543=null;\n Token char_literal545=null;\n Token FloatingPointLiteral546=null;\n flipsParser.integerValuePositive_return integerValuePositive540 = null;\n\n flipsParser.integerValuePositive_return integerValuePositive544 = null;\n\n\n CommonTree char_literal539_tree=null;\n CommonTree char_literal541_tree=null;\n CommonTree FloatingPointLiteral542_tree=null;\n CommonTree char_literal543_tree=null;\n CommonTree char_literal545_tree=null;\n CommonTree FloatingPointLiteral546_tree=null;\n RewriteRuleTokenStream stream_340=new RewriteRuleTokenStream(adaptor,\"token 340\");\n RewriteRuleTokenStream stream_341=new RewriteRuleTokenStream(adaptor,\"token 341\");\n RewriteRuleTokenStream stream_FloatingPointLiteral=new RewriteRuleTokenStream(adaptor,\"token FloatingPointLiteral\");\n RewriteRuleSubtreeStream stream_integerValuePositive=new RewriteRuleSubtreeStream(adaptor,\"rule integerValuePositive\");\n try {\n // flips.g:809:2: ( ( '+' )? integerValuePositive -> POSITIVE integerValuePositive | ( '+' )? FloatingPointLiteral -> POSITIVE FloatingPointLiteral | '-' integerValuePositive -> NEGATIVE integerValuePositive | '-' FloatingPointLiteral -> NEGATIVE FloatingPointLiteral )\n int alt215=4;\n switch ( input.LA(1) ) {\n case 340:\n {\n int LA215_1 = input.LA(2);\n\n if ( ((LA215_1>=BinaryLiteral && LA215_1<=HexLiteral)) ) {\n alt215=1;\n }\n else if ( (LA215_1==FloatingPointLiteral) ) {\n alt215=2;\n }\n else {\n NoViableAltException nvae =\n new NoViableAltException(\"\", 215, 1, input);\n\n throw nvae;\n }\n }\n break;\n case BinaryLiteral:\n case OctalLiteral:\n case DecimalLiteral:\n case HexLiteral:\n {\n alt215=1;\n }\n break;\n case FloatingPointLiteral:\n {\n alt215=2;\n }\n break;\n case 341:\n {\n int LA215_4 = input.LA(2);\n\n if ( (LA215_4==FloatingPointLiteral) ) {\n alt215=4;\n }\n else if ( ((LA215_4>=BinaryLiteral && LA215_4<=HexLiteral)) ) {\n alt215=3;\n }\n else {\n NoViableAltException nvae =\n new NoViableAltException(\"\", 215, 4, input);\n\n throw nvae;\n }\n }\n break;\n default:\n NoViableAltException nvae =\n new NoViableAltException(\"\", 215, 0, input);\n\n throw nvae;\n }\n\n switch (alt215) {\n case 1 :\n // flips.g:809:4: ( '+' )? integerValuePositive\n {\n // flips.g:809:4: ( '+' )?\n int alt213=2;\n int LA213_0 = input.LA(1);\n\n if ( (LA213_0==340) ) {\n alt213=1;\n }\n switch (alt213) {\n case 1 :\n // flips.g:809:4: '+'\n {\n char_literal539=(Token)match(input,340,FOLLOW_340_in_numericValue4828); \n stream_340.add(char_literal539);\n\n\n }\n break;\n\n }\n\n pushFollow(FOLLOW_integerValuePositive_in_numericValue4831);\n integerValuePositive540=integerValuePositive();\n\n state._fsp--;\n\n stream_integerValuePositive.add(integerValuePositive540.getTree());\n\n\n // AST REWRITE\n // elements: integerValuePositive\n // token labels: \n // rule labels: retval\n // token list labels: \n // rule list labels: \n // wildcard labels: \n retval.tree = root_0;\n RewriteRuleSubtreeStream stream_retval=new RewriteRuleSubtreeStream(adaptor,\"rule retval\",retval!=null?retval.tree:null);\n\n root_0 = (CommonTree)adaptor.nil();\n // 810:2: -> POSITIVE integerValuePositive\n {\n adaptor.addChild(root_0, (CommonTree)adaptor.create(POSITIVE, \"POSITIVE\"));\n adaptor.addChild(root_0, stream_integerValuePositive.nextTree());\n\n }\n\n retval.tree = root_0;\n }\n break;\n case 2 :\n // flips.g:811:4: ( '+' )? FloatingPointLiteral\n {\n // flips.g:811:4: ( '+' )?\n int alt214=2;\n int LA214_0 = input.LA(1);\n\n if ( (LA214_0==340) ) {\n alt214=1;\n }\n switch (alt214) {\n case 1 :\n // flips.g:811:4: '+'\n {\n char_literal541=(Token)match(input,340,FOLLOW_340_in_numericValue4843); \n stream_340.add(char_literal541);\n\n\n }\n break;\n\n }\n\n FloatingPointLiteral542=(Token)match(input,FloatingPointLiteral,FOLLOW_FloatingPointLiteral_in_numericValue4846); \n stream_FloatingPointLiteral.add(FloatingPointLiteral542);\n\n\n\n // AST REWRITE\n // elements: FloatingPointLiteral\n // token labels: \n // rule labels: retval\n // token list labels: \n // rule list labels: \n // wildcard labels: \n retval.tree = root_0;\n RewriteRuleSubtreeStream stream_retval=new RewriteRuleSubtreeStream(adaptor,\"rule retval\",retval!=null?retval.tree:null);\n\n root_0 = (CommonTree)adaptor.nil();\n // 812:2: -> POSITIVE FloatingPointLiteral\n {\n adaptor.addChild(root_0, (CommonTree)adaptor.create(POSITIVE, \"POSITIVE\"));\n adaptor.addChild(root_0, stream_FloatingPointLiteral.nextNode());\n\n }\n\n retval.tree = root_0;\n }\n break;\n case 3 :\n // flips.g:813:4: '-' integerValuePositive\n {\n char_literal543=(Token)match(input,341,FOLLOW_341_in_numericValue4858); \n stream_341.add(char_literal543);\n\n pushFollow(FOLLOW_integerValuePositive_in_numericValue4860);\n integerValuePositive544=integerValuePositive();\n\n state._fsp--;\n\n stream_integerValuePositive.add(integerValuePositive544.getTree());\n\n\n // AST REWRITE\n // elements: integerValuePositive\n // token labels: \n // rule labels: retval\n // token list labels: \n // rule list labels: \n // wildcard labels: \n retval.tree = root_0;\n RewriteRuleSubtreeStream stream_retval=new RewriteRuleSubtreeStream(adaptor,\"rule retval\",retval!=null?retval.tree:null);\n\n root_0 = (CommonTree)adaptor.nil();\n // 814:2: -> NEGATIVE integerValuePositive\n {\n adaptor.addChild(root_0, (CommonTree)adaptor.create(NEGATIVE, \"NEGATIVE\"));\n adaptor.addChild(root_0, stream_integerValuePositive.nextTree());\n\n }\n\n retval.tree = root_0;\n }\n break;\n case 4 :\n // flips.g:815:4: '-' FloatingPointLiteral\n {\n char_literal545=(Token)match(input,341,FOLLOW_341_in_numericValue4872); \n stream_341.add(char_literal545);\n\n FloatingPointLiteral546=(Token)match(input,FloatingPointLiteral,FOLLOW_FloatingPointLiteral_in_numericValue4874); \n stream_FloatingPointLiteral.add(FloatingPointLiteral546);\n\n\n\n // AST REWRITE\n // elements: FloatingPointLiteral\n // token labels: \n // rule labels: retval\n // token list labels: \n // rule list labels: \n // wildcard labels: \n retval.tree = root_0;\n RewriteRuleSubtreeStream stream_retval=new RewriteRuleSubtreeStream(adaptor,\"rule retval\",retval!=null?retval.tree:null);\n\n root_0 = (CommonTree)adaptor.nil();\n // 816:2: -> NEGATIVE FloatingPointLiteral\n {\n adaptor.addChild(root_0, (CommonTree)adaptor.create(NEGATIVE, \"NEGATIVE\"));\n adaptor.addChild(root_0, stream_FloatingPointLiteral.nextNode());\n\n }\n\n retval.tree = root_0;\n }\n break;\n\n }\n retval.stop = input.LT(-1);\n\n retval.tree = (CommonTree)adaptor.rulePostProcessing(root_0);\n adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n \tretval.tree = (CommonTree)adaptor.errorNode(input, retval.start, input.LT(-1), re);\n\n }\n finally {\n }\n return retval;\n }", "public Literal setLiteralNumber(Double literalData);", "public Object visitBitwiseNegationExpression(GNode n) {\n Object a, result;\n \n nonboolean = true;\n \n dostring = true;\n \n a = dispatch(n.getGeneric(0));\n \n dostring = false;\n \n if (a instanceof Long) {\n result = ~ (Long) a;\n }\n else {\n return \"~ \" + parens(a);\n }\n \n return result;\n }", "public VariType visit(MinusExpression n, Table argu) {\n\t VariType _ret = new VariType();\n\t VariType t0 = n.f0.accept(this, argu);\n\t n.f1.accept(this, argu);\n\t VariType t2 = n.f2.accept(this, argu);\n\t if(t0.type != \"Integer\") {\n\t \t PrintError.errorexist = true;\n\t \t String emsg = \"variable type does not match, variable has type \"+t0.type+\", expect type Integer\";\n\t \t PrintError.print(emsg, n.f1.beginLine, n.f1.beginColumn, 1);\n\t }\n\t if(t2.type != \"Integer\") {\n\t \t PrintError.errorexist = true;\n\t \t String emsg = \"variable type does not match, variable has type \"+t2.type+\", expect type Integer\";\n\t \t PrintError.print(emsg, n.f1.beginLine, n.f1.beginColumn, 1);\n\t }\n\t _ret.type = \"Integer\";\n\t return _ret;\n\t }", "public T caseURDFAttrSignedNumeric(URDFAttrSignedNumeric object) {\r\n\t\treturn null;\r\n\t}", "private HydroPlantType(int value, String name, String literal) {\n\t\tthis.value = value;\n\t\tthis.name = name;\n\t\tthis.literal = literal;\n\t}", "public interface Node {\n Oper oper();\n CNFOrdinal toCNF();\n}", "@Override\n public R visit(RelationalExpression n, A argu) {\n R _ret = null;\n n.numericExpression.accept(this, argu);\n n.nodeOptional.accept(this, argu);\n return _ret;\n }", "@Override\r\n\tpublic int compareTo(Object o) {\n\t\tNode<T> node=(Node<T>)o;\r\n\t\tif(node!=null&&node.value instanceof Integer){\r\n\t\t\tif((int)value-(int)node.value!=0)\r\n\t\t\t\treturn (int)value-(int)node.value;\r\n\t\t\telse\r\n\t\t\t\treturn (-1)*this.word.compareTo(node.word);\r\n\t\t}\r\n\t\telse \r\n\t\t\treturn 0;\r\n\t}", "final public IASTLiteralTextNode Argument() throws ParseException {\r\n IASTLiteralTextNode node = null;\r\n Token lastToken = null;\r\n Token equalToken = null;\r\n Token firstToken = null;\r\n switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\r\n case INT:\r\n firstToken = jj_consume_token(INT);\r\n if (jj_2_3(2147483647)) {\r\n equalToken = jj_consume_token(EQUAL);\r\n switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\r\n case MINUS:\r\n jj_consume_token(MINUS);\r\n break;\r\n default:\r\n jj_la1[16] = jj_gen;\r\n ;\r\n }\r\n lastToken = jj_consume_token(INT);\r\n } else {\r\n ;\r\n }\r\n if (equalToken == null) {\r\n lastToken = firstToken;\r\n }\r\n break;\r\n case ASTERISK:\r\n case WORD:\r\n case STRING:\r\n case PACKAGE_OPTION:\r\n switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\r\n case ASTERISK:\r\n firstToken = jj_consume_token(ASTERISK);\r\n break;\r\n case PACKAGE_OPTION:\r\n firstToken = jj_consume_token(PACKAGE_OPTION);\r\n break;\r\n case WORD:\r\n firstToken = jj_consume_token(WORD);\r\n break;\r\n case STRING:\r\n firstToken = jj_consume_token(STRING);\r\n break;\r\n default:\r\n jj_la1[17] = jj_gen;\r\n jj_consume_token(-1);\r\n throw new ParseException();\r\n }\r\n lastToken = firstToken;\r\n break;\r\n default:\r\n jj_la1[18] = jj_gen;\r\n jj_consume_token(-1);\r\n throw new ParseException();\r\n }\r\n node = getRawLiteralTextNodeSpanning(firstToken, lastToken);\r\n {if (true) return node;}\r\n throw new Error(\"Missing return statement in function\");\r\n }", "@Override\n\tpublic String toString() {\n\t\treturn \"NEG\";\n\t}", "SEIntegerVariable getOperand2();", "public Object visitBitwiseOrExpression(GNode n) {\n Object a, b, result;\n \n nonboolean = true;\n \n dostring = true;\n \n a = dispatch(n.getGeneric(0));\n b = dispatch(n.getGeneric(1));\n \n dostring = false;\n \n if (a instanceof Long && b instanceof Long) {\n result = (Long) a | (Long) b;\n }\n else {\n result = parens(a) + \" | \" + parens(b);\n }\n \n return result;\n }", "@Override\n\tpublic Class<Number> getAcceptedBinClass () {\n\t\treturn Number.class;\n\t}", "public Object visitIntegerConstant(GNode n) {\n xtc.type.Type result;\n \n result = cops.typeInteger(n.getString(0));\n \n return result.getConstant().bigIntValue().longValue();\n }", "@Test\n public void testTypeOf() throws ValueDoesNotMatchTypeException {\n TestEvaluationContext context = new TestEvaluationContext();\n DecisionVariableDeclaration decl = new DecisionVariableDeclaration(\"x\", IntegerType.TYPE, null);\n ConstantValue c0 = new ConstantValue(ValueFactory.createValue(IntegerType.TYPE, 0));\n ConstraintSyntaxTree cst = new OCLFeatureCall(\n new Variable(decl), IntegerType.LESS_EQUALS_INTEGER_INTEGER.getName(), c0);\n EvaluationAccessor cValue = Utils.createValue(ConstraintType.TYPE, context, cst);\n Utils.testTypeOf(context, ConstraintType.TYPE_OF, cValue);\n cValue.release();\n }", "private RepresentacionGrafica(int value, String name, String literal) {\n\t\tthis.value = value;\n\t\tthis.name = name;\n\t\tthis.literal = literal;\n\t}", "public String visit(PlusExpression n, Object argu) \n\t{\n\t\tString _ret=null;\n\t String e0 = n.f0.accept(this, argu);\n\t String e1 = n.f2.accept(this, argu);\n\t \n\t if (e0.equals(\"int\") && e1.equals(\"int\"))\n\t {\n\t \t_ret = \"int\";\n\t }\n\t return _ret;\n\t}", "public interface SimpleGrParserConstants {\n\n /** End of File. */\n int EOF = 0;\n /** RegularExpression Id. */\n int NumberLit = 6;\n /** RegularExpression Id. */\n int BooleanLit = 7;\n /** RegularExpression Id. */\n int StringLit = 8;\n /** RegularExpression Id. */\n int Null = 9;\n /** RegularExpression Id. */\n int And = 10;\n /** RegularExpression Id. */\n int Or = 11;\n /** RegularExpression Id. */\n int Not = 12;\n /** RegularExpression Id. */\n int Identifier = 13;\n /** RegularExpression Id. */\n int Equal = 14;\n /** RegularExpression Id. */\n int NotEqual = 15;\n /** RegularExpression Id. */\n int LessThan = 16;\n /** RegularExpression Id. */\n int LessEqualThan = 17;\n /** RegularExpression Id. */\n int GreaterThan = 18;\n /** RegularExpression Id. */\n int GreaterEqualThan = 19;\n /** RegularExpression Id. */\n int Plus = 20;\n /** RegularExpression Id. */\n int Minus = 21;\n /** RegularExpression Id. */\n int Div = 22;\n /** RegularExpression Id. */\n int Mult = 23;\n /** RegularExpression Id. */\n int Open = 24;\n /** RegularExpression Id. */\n int Close = 25;\n /** RegularExpression Id. */\n int Comma = 26;\n /** RegularExpression Id. */\n int Letter = 27;\n /** RegularExpression Id. */\n int Digit = 28;\n\n /** Lexical state. */\n int DEFAULT = 0;\n\n /** Literal token values. */\n String[] tokenImage = {\n \"<EOF>\",\n \"\\\" \\\"\",\n \"\\\"\\\\t\\\"\",\n \"\\\"\\\\n\\\"\",\n \"\\\"\\\\r\\\"\",\n \"\\\"\\\\f\\\"\",\n \"<NumberLit>\",\n \"<BooleanLit>\",\n \"<StringLit>\",\n \"\\\"NULL\\\"\",\n \"\\\"AND\\\"\",\n \"\\\"OR\\\"\",\n \"\\\"NOT\\\"\",\n \"<Identifier>\",\n \"\\\"==\\\"\",\n \"\\\"!=\\\"\",\n \"\\\"<\\\"\",\n \"\\\"<=\\\"\",\n \"\\\">\\\"\",\n \"\\\">=\\\"\",\n \"\\\"+\\\"\",\n \"\\\"-\\\"\",\n \"\\\"/\\\"\",\n \"\\\"*\\\"\",\n \"\\\"(\\\"\",\n \"\\\")\\\"\",\n \"\\\",\\\"\",\n \"<Letter>\",\n \"<Digit>\",\n };\n\n}", "@Override\n\tpublic Object visit(ASTArithmetic node, Object data)\n\t{\n\t\treturn visitOperatorNode(node, data);\n\t}", "public LlvmValue visit(BooleanType n){\n\t\treturn LlvmPrimitiveType.I1;\n\t}", "Astro leafInteger(Number integralData, SourceSpan optSpan);", "void visitOperandNumber(OperandNumber operand);", "public T caseURDFAttrNumeric(URDFAttrNumeric object) {\r\n\t\treturn null;\r\n\t}", "public Literal setDeepLiteralNumber(XDI3Segment contextNodeXri, Double literalData);", "@Override\n public void outPlusExp(PlusExp node)\n {\n Type lexpType = this.mCurrentST.getExpType(node.getLExp());\n Type rexpType = this.mCurrentST.getExpType(node.getRExp());\n mPrintWriter.println(\"#Addddddddddddding\");\n Label l1 = new Label();\n Label l0 = new Label();\n Label l2 = new Label();\n Label l3 = new Label();\n //# Load constant int 1\n if(lexpType == Type.BYTE && rexpType == Type.INT){\n /*mPrintWriter.println(\"ldi r24,lo8(\"+node.getLExp().value+\")\");\n mPrintWriter.println(\"ldi r25,hi8(\"+node.getLExp().value+\")\");\n //# push two byte expression onto stack\n mPrintWriter.println(\"push r25\");\n mPrintWriter.println(\"push r24\");\n //# Load constant int 0\n mPrintWriter.println(\"ldi r24,lo8(\"+node.getRExp().value+\")\");\n mPrintWriter.println(\"ldi r25,hi8(\"+node.getRExp().value+\")\");\n //# push two byte expression onto stack\n mPrintWriter.println(\"push r25\");\n mPrintWriter.println(\"push r24\");\n //# Casting int to byte by popping\n //# 2 bytes off stack and only pushing low order bits\n //# back on. Low order bits are on top of stack.\n mPrintWriter.println(\"pop r24\");\n mPrintWriter.println(\"pop r25\");\n mPrintWriter.println(\"push r24\");*/\n //# load a one byte expression off stack\n mPrintWriter.println(\"pop r18\");\n mPrintWriter.println(\"pop r19\");\n //mPrintWriter.println(# load a one byte expression off stack\n mPrintWriter.println(\"pop r24\");\n //mPrintWriter.println(# promoting a byte to an int\n mPrintWriter.println(\"tst r24\");\n mPrintWriter.println(\"brlt \" + l0);\n mPrintWriter.println(\"ldi r25, 0\");\n mPrintWriter.println(\"jmp \" + l1);\n mPrintWriter.println(l0 + \":\");\n mPrintWriter.println(\"ldi r25, hi8(-1)\");\n mPrintWriter.println( l1 + \":\");\n\n // mPrintWriter.println(# Do add operation\n mPrintWriter.println(\"add r24, r18\");\n mPrintWriter.println(\"adc r25, r19\");\n //mPrintWriter.println(# push two byte expression onto stack\n mPrintWriter.println(\"push r25\");\n mPrintWriter.println(\"push r24\");\n }\n else if(lexpType == Type.BYTE && rexpType == Type.BYTE){\n /*mPrintWriter.println(\"ldi r24,lo8(\"+node.getLExp().value+\")\");\n mPrintWriter.println(\"ldi r25,hi8(\"+node.getLExp().value+\")\");\n //# push two byte expression onto stack\n mPrintWriter.println(\"push r25\");\n mPrintWriter.println(\"push r24\");\n //# Casting int to byte by popping\n //# 2 bytes off stack and only pushing low order bits\n //# back on. Low order bits are on top of stack.\n mPrintWriter.println(\"pop r24\");\n mPrintWriter.println(\"pop r25\");\n mPrintWriter.println(\"push r24\");\n mPrintWriter.println(\"ldi r24,lo8(\"+node.getRExp().value+\")\");\n mPrintWriter.println(\"ldi r25,hi8(\"+node.getRExp().value+\")\");\n //# push two byte expression onto stack\n mPrintWriter.println(\"push r25\");\n mPrintWriter.println(\"push r24\");\n //# Casting int to byte by popping\n //# 2 bytes off stack and only pushing low order bits\n //# back on. Low order bits are on top of stack.\n mPrintWriter.println(\"pop r24\");\n mPrintWriter.println(\"pop r25\");\n mPrintWriter.println(\"push r24\");*/\n //# load a one byte expression off stack\n mPrintWriter.println(\"pop r18\");\n //# load a one byte expression off stack\n mPrintWriter.println(\"pop r24\");\n //# promoting a byte to an int\n mPrintWriter.println(\"tst r24\");\n mPrintWriter.println(\"brlt \" + l0);\n mPrintWriter.println(\"ldi r25, 0\");\n mPrintWriter.println(\"jmp \" + l1);\n mPrintWriter.println(l0 + \":\");\n mPrintWriter.println(\"ldi r25, hi8(-1)\");\n mPrintWriter.println( l1 + \":\");\n //# promoting a byte to an int\n mPrintWriter.println(\"tst r18\");\n mPrintWriter.println(\"brlt \" + l2);\n mPrintWriter.println(\"ldi r19, 0\");\n mPrintWriter.println(\"jmp \" + l3);\n mPrintWriter.println(l2 + \":\");\n mPrintWriter.println(\"ldi r19, hi8(-1)\");\n mPrintWriter.println(l3 + \":\");\n\n //mPrintWriter.println(# Do add operation\n mPrintWriter.println(\"add r24, r18\");\n mPrintWriter.println(\"adc r25, r19\");\n //mPrintWriter.println(# push two byte expression onto stack\n mPrintWriter.println(\"push r25\");\n mPrintWriter.println(\"push r24\");\n }\n else if(lexpType == Type.INT && rexpType == Type.BYTE){\n /*mPrintWriter.println(\"ldi r24,lo8(\"+node.getLExp().value+\")\");\n mPrintWriter.println(\"ldi r25,hi8(\"+node.getLExp().value+\")\");\n //mPrintWriter.println(# push two byte expression onto stack);\n mPrintWriter.println(\"push r25\");\n mPrintWriter.println(\"push r24\");\n //mPrintWriter.println(# Casting int to byte by popping);\n //mPrintWriter.println(# 2 bytes off stack and only pushing low order bits);\n //mPrintWriter.println(# back on. Low order bits are on top of stack.);\n mPrintWriter.println(\"pop r24\");\n mPrintWriter.println(\"pop r25\");\n mPrintWriter.println(\"push r24\");\n //mPrintWriter.println(# Load constant int 0);\n mPrintWriter.println(\"ldi r24,lo8(\"+node.getRExp().value+\")\");\n mPrintWriter.println(\"ldi r25,hi8(\"+node.getRExp().value+\")\");\n //# push two byte expression onto stack);\n mPrintWriter.println(\"push r25\");\n mPrintWriter.println(\"push r24\");*/\n //# load a two byte expression off stack);\n mPrintWriter.println(\"pop r18\");\n //mPrintWriter.println(\"pop r19\");\n //# load a one byte expression off stack\n mPrintWriter.println(\"pop r24\");\n mPrintWriter.println(\"pop r25\");\n //# promoting a byte to an int\n mPrintWriter.println(\"tst r18\");\n mPrintWriter.println(\"brlt\" + l0);\n mPrintWriter.println(\"ldi r19, 0\");\n mPrintWriter.println(\"jmp \" + l1);\n mPrintWriter.println(l0 + \":\");\n mPrintWriter.println(\"ldi r19, hi8(-1)\");\n mPrintWriter.println(l1 + \":\");\n\n //mPrintWriter.println(# Do add operation\n mPrintWriter.println(\"add r24, r18\");\n mPrintWriter.println(\"adc r25, r19\");\n //mPrintWriter.println(# push two byte expression onto stack\n mPrintWriter.println(\"push r25\");\n mPrintWriter.println(\"push r24\");\n }\n else{\n mPrintWriter.println(\"pop r18\");\n mPrintWriter.println(\"pop r19\");\n //# load a one byte expression off stack\n mPrintWriter.println(\"pop r24\");\n mPrintWriter.println(\"pop r25\");\n\n mPrintWriter.println(\"add r24, r18\");\n mPrintWriter.println(\"adc r25, r19\");\n //mPrintWriter.println(# push two byte expression onto stack\n mPrintWriter.println(\"push r25\");\n mPrintWriter.println(\"push r24\");\n }\n }", "private Token number() {\n\t\tStringBuffer sb = new StringBuffer();\n\t\twhile(isDigit(this.currentChar) && this.pos != Integer.MIN_VALUE) {\n\t\t\tsb.append(this.currentChar);\n\t\t\tnext_char();\n\t\t}\n\t\t//处理小数\n\t\tif(this.currentChar == '.') {\n\t\t\tsb.append(this.currentChar);\n\t\t\tnext_char();\n\t\t\t\n\t\t\twhile(isDigit(this.currentChar) && this.pos != Integer.MIN_VALUE) {\n\t\t\t\tsb.append(this.currentChar);\n\t\t\t\tnext_char();\n\t\t\t}\n\t\t\treturn new Token(Type.REAL_CONST, sb.toString());\n\t\t}else {\n\t\t\treturn new Token(Type.INTEGER_CONST, sb.toString());\n\t\t}\n\t}", "private Term parseAdd(final boolean required) throws ParseException {\n Term t1 = parseMul(required);\n while (t1 != null) {\n int tt = _tokenizer.next();\n if (tt == '+') {\n Term t2 = parseMul(true);\n if (t1.isD() && t2.isN() || t1.isN() && t2.isD()) {\n t1 = new Term.Add(Term.TYPE_D, t1, t2);\n } else if (t1.isI() && t2.isI()) {\n t1 = new Term.Add(Term.TYPE_I, t1, t2);\n } else if (!isTypeChecking()) {\n t1 = new Term.Add(t1.isD() || t2.isD() ? Term.TYPE_D : Term.TYPE_I, t1, t2);\n } else {\n reportTypeErrorN2(\"'+'\");\n }\n } else if (tt == '-') {\n Term t2 = parseMul(true);\n if (t1.isD() && t2.isN() || t1.isN() && t2.isD()) {\n t1 = new Term.Sub(Term.TYPE_D, t1, t2);\n } else if (t1.isI() && t2.isI()) {\n t1 = new Term.Sub(Term.TYPE_I, t1, t2);\n } else if (!isTypeChecking()) {\n t1 = new Term.Sub(t1.isD() || t2.isD() ? Term.TYPE_D : Term.TYPE_I, t1, t2);\n } else {\n reportTypeErrorN2(\"'-'\");\n }\n } else {\n _tokenizer.pushBack();\n break;\n }\n }\n return t1;\n }", "@Override\r\n\tpublic Object visitIntegerLiteralExpression(\r\n\t\t\tIntegerLiteralExpression integerLiteralExpression, Object arg)\r\n\t\t\tthrows Exception {\n\t\tmv.visitLdcInsn(integerLiteralExpression.integerLiteral.getIntVal());\r\n\t\tif(arg != null)\r\n\t\t{\r\n//\t\t mv.visitMethodInsn(INVOKESTATIC, \"java/lang/Integer\", \"valueOf\", \"(I)Ljava/lang/Integer;\");\r\n\t\t}\r\n\t\treturn \"I\";\r\n\t}", "@Override\n\tpublic void outAIntegerExpr(AIntegerExpr node) {\n\t\til.append(new PUSH(cp, Integer.valueOf(node.getNumber().getText()))); \n\n\t}", "private Token scanRealOrIntegerLiteral() {\n Token tok;\n Pair<Integer, Integer> pos = new Pair<>(in.line(), in.pos());\n while (Character.isDigit(c) && c != '.' && c != -1) {\n buffer.add(c);\n c = in.read();\n }\n\n if (c == '.') {\n int nextChar = in.read();\n if (nextChar == '.') { // which means '..' operator was encountered\n tok = new Token(buffer.toString(),\n TokenType.INTEGER, pos);\n enqueuedToken = new Token(\"..\", TokenType.RANGE, pos);\n buffer.flush();\n c = in.read(); // reading in the next unprocessed character\n } else if (Character.isDigit(nextChar)) { // which means a real literal was encountered\n buffer.add(c);\n while (Character.isDigit(nextChar)) {\n buffer.add(nextChar);\n nextChar = in.read();\n }\n tok = new Token(buffer.toString(), TokenType.REAL_LITERAL, pos);\n buffer.flush();\n c = nextChar;\n\n } else { // which means a real literal without digits after dot (like 1. <=> 1.0)\n\n buffer.add(c);\n tok = new Token(buffer.toString(), TokenType.REAL_LITERAL, pos);\n buffer.flush();\n c = nextChar;\n\n }\n } else {\n tok = new Token(buffer.toString(), TokenType.INTEGER_LITERAL, pos);\n buffer.flush();\n }\n return tok;\n }" ]
[ "0.7026294", "0.68931806", "0.67666477", "0.5632341", "0.5616909", "0.5392834", "0.5352559", "0.52461845", "0.52391154", "0.5207629", "0.51698077", "0.51338655", "0.5099979", "0.50840056", "0.50652117", "0.50424355", "0.50263757", "0.5022331", "0.49961746", "0.4996095", "0.49891225", "0.49761063", "0.49749094", "0.4962707", "0.4959176", "0.49500763", "0.4940848", "0.49391383", "0.49284628", "0.49281162", "0.4915641", "0.49082696", "0.4906968", "0.4902836", "0.4899495", "0.48969984", "0.48951733", "0.48900276", "0.48807275", "0.48769563", "0.4865914", "0.4862502", "0.48515502", "0.48449126", "0.48444065", "0.48351488", "0.4834341", "0.4826722", "0.48180276", "0.48154297", "0.48044625", "0.48024145", "0.47968727", "0.47946766", "0.47944507", "0.47918296", "0.47783184", "0.4777624", "0.47736964", "0.47600427", "0.47588676", "0.47518957", "0.47510353", "0.47473907", "0.47312433", "0.47305632", "0.4723731", "0.47123185", "0.4704098", "0.4696137", "0.46908438", "0.46907216", "0.46814248", "0.46733963", "0.46727684", "0.467237", "0.46716425", "0.46694368", "0.46677595", "0.46662682", "0.46568742", "0.46326405", "0.461865", "0.46171647", "0.46151012", "0.46110296", "0.4606849", "0.4604562", "0.46037325", "0.46027", "0.45991585", "0.45969522", "0.4595617", "0.4595358", "0.45953092", "0.4595021", "0.4587196", "0.4584554", "0.45838815", "0.4582864" ]
0.69053316
1
nodeChoice > | |
@Override public R visit(NumericLiteralUnsigned n, A argu) { R _ret = null; n.nodeChoice.accept(this, argu); return _ret; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract String getSelectedNode();", "@Override\n public R visit(GraphTerm n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "MCTS.State select(MCTS.State node);", "public String getElement()\n {\n return nodeChoice;\n }", "@Override\n public R visit(GraphNode n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "@Override\n public R visit(TriplesNode n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "@Override\n public R visit(Verb n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "@Override\n public R visit(IRIref n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "@Override\n public R visit(ArgList n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "public abstract void setSelectedNode(String n);", "public static void playGame()\r\n\t{\r\n\t\tScanner input = new Scanner(System.in);\r\n\t\tSceneNode node = tree.getRoot();\r\n\t\tString option;\r\n\t\tSystem.out.println();\r\n\t\tSystem.out.println(\"Now beginning game...\");\r\n\t\tSystem.out.println();\r\n\t\twhile(!node.isEnding())\r\n\t\t{\r\n\t\t\tSystem.out.println(node.getTitle());\r\n\t\t\tSystem.out.println(node.getSceneDescription());\r\n\t\t\tSystem.out.println();\r\n\t\t\tif(node.getLeft() != null)\r\n\t\t\tSystem.out.println(\"A) \" + node.getLeft().getTitle());\r\n\t\t\tif(node.getMiddle() != null)\r\n\t\t\tSystem.out.println(\"B) \" + node.getMiddle().getTitle());\r\n\t\t\tif(node.getRight() != null)\r\n\t\t\tSystem.out.println(\"C) \" + node.getRight().getTitle());\r\n\t\t\tSystem.out.println();\r\n\t\t\tSystem.out.print(\"Please enter an option: \");\r\n\t\t\toption = input.next().toUpperCase();\r\n\t\t\tSystem.out.println();\r\n\t\t\tswitch(option)\r\n\t\t\t{\r\n\t\t\t\tcase \"A\": node = node.getLeft();\r\n\t\t\t\t\t\t break;\r\n\t\t\t\tcase \"B\": node = node.getMiddle();\r\n\t\t\t\t\t\t break;\r\n\t\t\t\tcase \"C\": node = node.getRight();\r\n\t\t\t\t\t\t break;\r\n\t\t\t}\r\n\t\t}\r\n\t\tSystem.out.println(node.getTitle());\r\n\t\tSystem.out.println(node.getSceneDescription());\r\n\t\tSystem.out.println();\r\n\t\tSystem.out.println(\"The End\");\r\n\t\tSystem.out.println();\r\n\t\tSystem.out.println(\"Returning back to creation mode...\");\r\n\t\tSystem.out.println();\r\n\t}", "public static void QuestionOne(Node n) {\n\n\n\n }", "@Override\n public R visit(GraphPatternNotTriples n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "abstract public void showSelection(Node[] nodes) ;", "void visit(Object node, String command);", "private void parseOr(Node node) {\r\n if (switchTest) return;\r\n int saveIn = in;\r\n parse(node.left());\r\n if (ok || in > saveIn) return;\r\n parse(node.right());\r\n }", "@Override\n public R visit(Constraint n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "@Override\n public R visit(SparqlString n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "public static void main(String[] args) {\n Node s0 = new Node(\"s0\");\n Node s1 = new Node(\"s1\");\n Node s2 = new Node(\"s2\");\n Node s3 = new Node(\"s3\");\n Node current = s0;\n appendName(current);\n\n s0.setConA(s2);\n s0.setConB(s1);\n\n s1.setConA(s1);\n s1.setConB(s2);\n\n s2.setConB(s3);\n\n s3.setConA(s3);\n s3.setConB(s0);\n\n Scanner in = new Scanner(System.in);\n while (running){\n System.out.println(\"\\nType A/B\\n(quit):\");\n String input = in.nextLine().toUpperCase();\n Node newNode;\n switch (input){\n case \"A\":\n System.out.println(\"Case A:\"+input);\n newNode = current.getA();\n if(newNode != null){\n appendName(newNode);\n }else{\n System.out.println(\"\\n Invalid connection beeing called,\"+current.getStateName()+\" does not have a connection called:\"+input);\n quit();\n }\n current = newNode;\n break;\n case \"B\":\n System.out.println(\"Case B:\"+input);\n newNode = current.getB();\n if(newNode != null){\n appendName(newNode);\n }else{\n System.out.println(\"\\n Invalid connection beeing called,\"+current.getStateName()+\" does not have a connection called:\"+input);\n quit();\n }\n current = newNode;\n break;\n case \"QUIT\":\n quit();\n break;\n default:\n System.out.println(\"Input a valid option\");\n }\n }\n }", "public void doMenu(){\n Scanner readinput = new Scanner(System.in); // needed to read the user's input\r\n System.out.println(\"Using Red Black Tree. 9 for list of commands\");\r\n while (this.userinput != -1) {\r\n \r\n this.update(); // every loop, print diagram of the tree\r\n \r\n System.out.print(\"Option: \");\r\n this.userinput = readinput.nextInt(); // input. Await user.\r\n \r\n switch(this.userinput){ // checks and matches the input to available functions\r\n \r\n case 9:\r\n System.out.println(\"\\nAvailable commands:\"\r\n + \"\\n'0': create a new empty root\"\r\n + \"\\n'-1': quits the program\"\r\n + \"\\n'1': recursively inserts new node with value\"\r\n + \"\\n'2': remove a node\"\r\n + \"\\n'3': print information about the tree\"\r\n + \"\\n'4': print information about a node\"\r\n + \"\\n'9': print this help section\"\r\n );\r\n break;\r\n \r\n case -1: // quit.\r\n System.out.println(\"Stopping.\");\r\n break;\r\n \r\n case 0: // Empty all\r\n System.out.print(\"Removing all.\");\r\n this.root = null;\r\n break;\r\n \r\n case 1: // insere objeto no conteúdo do nó.\r\n System.out.print(\">>> New Value: \");\r\n this.userinput2 = readinput.nextInt();\r\n this.insertElement(this.root, userinput2);\r\n break;\r\n \r\n case 2: //remover certo valor\r\n System.out.print(\">>> Value to be removed: \");\r\n this.userinput2 = readinput.nextInt();\r\n this.remove(root, userinput2);\r\n break;\r\n \r\n case 3: // imprimir informações da árvore\r\n\r\n //this.calculateNodes(root);\r\n System.out.println(\"Pre Order NLR:\");\r\n this.traversePreOrder(root);\r\n System.out.println(\"\\nPost Order LRN:\");\r\n this.traversePostOrder(root);\r\n System.out.println(\"\\nIn Order LNR:\");\r\n this.traverseInOrder(root);\r\n System.out.println(\"\\n[!] Finished printing tree information\\n\");\r\n break;\r\n \r\n case 4: \r\n System.out.print(\">>> Value of node to be fetched: \");\r\n this.userinput2 = readinput.nextInt();\r\n this.info(this.fetch(root, userinput2));\r\n break;\r\n \r\n \r\n }\r\n \r\n }\r\n \r\n }", "void clickOnEmptyNode(Node node);", "@Override\n public R visit(PrimaryExpression n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "@Override\r\n\tpublic void visit(Choose choose)\r\n\t{\n\t\t\r\n\t}", "@Override\n public R visit(VarOrTerm n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "@Override\n public void visitTerminal(TerminalNode node) {\n\n }", "@Override\n public R visit(TriplesSameSubject n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "@Override\n public StoryTree makeChoice() {\n Scanner reader = new Scanner(System.in);\n System.out.println(this.print());\n\n int choice = reader.nextInt();\n\n if(choice == 1) {\n return this.option1.outcome;\n }\n if(choice == 2) {\n return this.option2.outcome;\n } else {\n System.out.println(\"Invalid Input\");\n return this;\n }\n }", "public void setNode_1(String node_1);", "public static void playGame(){\n SceneNode tempCursor = sceneTree.cursor;\n sceneTree.cursor = sceneTree.root;\n System.out.println(\"Now beginning game...\\n\");\n while(!sceneTree.cursor.isEnding()){\n sceneTree.cursor.displayScene();\n System.out.println(\"A)\"+sceneTree.cursor.getLeft().getTitle());\n if(sceneTree.cursor.getMiddle()!=null)\n System.out.println(\"B)\"+sceneTree.cursor.getMiddle().getTitle());\n if(sceneTree.cursor.getRight()!=null)\n System.out.println(\"C)\"+sceneTree.cursor.getRight().getTitle());\n Scanner in = new Scanner(System.in);\n System.out.println(\"Please enter an option:\");\n String option = in.next().toLowerCase();\n sceneTree.moveCursorForwards(option);\n }\n sceneTree.cursor.displayScene();\n sceneTree.cursor = tempCursor;\n System.out.println(\"\\nThe End\\n\\n\"+\"Returning back to creation mode...\");\n\n\n\n }", "int pickTree(String actionStr)\r\n\t{\r\n\t\tboolean endLoop = false;\r\n\t\tString choiceStr = \"\";\r\n\t\tint intChoice = -1;\r\n\t\t\r\n\t\tif(createdTrees.isEmpty())\r\n\t\t{\r\n\t\t\tSystem.out.println(\"No trees created. Please build a tree first.\");\r\n\t\t\treturn -1;\r\n\t\t}\r\n\r\n\t\tdo\r\n\t\t{\r\n\t\t\ttry\r\n\t\t\t{\r\n\t\t\t\tSystem.out.println(\"Which tree to \" + actionStr + \"?: (1 to \" + createdTrees.size() + \")\");\r\n\t\t\t\tchoiceStr = lineReader.nextLine();\r\n\t\t\t\t\r\n\t\t\t\tif(false == choiceStr.matches(\"[+-]?\\\\d\"))\r\n\t\t\t\t{\r\n\t\t\t\t\tSystem.out.println(\"Invalid choice. Please try again.\");\r\n\t\t\t\t\tcontinue;\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tintChoice = Integer.parseInt(choiceStr);\r\n\t\t\t\t\r\n\t\t\t\tif((0 < intChoice) && (intChoice <= createdTrees.size()))\r\n\t\t\t\t{\r\n\t\t\t\t\tendLoop = true;\r\n\t\t\t\t}\r\n\t\t\t\telse\r\n\t\t\t\t{\r\n\t\t\t\t\tSystem.out.println(\"Invalid choice. Please try again.\");\r\n\t\t\t\t\tcontinue;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tcatch(NoSuchElementException|IllegalStateException|PatternSyntaxException|NumberFormatException e)\r\n\t\t\t{\r\n\t\t\t\tSystem.out.println(\"Caught Exception: \" + e.getMessage());\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}while(false == endLoop);\r\n\t\t\r\n\t\treturn (intChoice-1);\r\n\t}", "@Override\n public R visit(Consequent n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "public void setNode_2(String node_2);", "public Snippet visit(SwitchLabel n, Snippet argu) {\n\t Snippet _ret=null;\n\t _ret = n.nodeChoice.accept(this, argu);\n\t return _ret;\n\t }", "@Override\n public R visit(UnaryExpression n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "private Node chooseNode(Identity identity) {\n\t\treturn availableNodes.peek();\n\t}", "Node currentNode();", "@Override\n public R visit(VarOrIRIref n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "public String nodeColor() { return findSelected(node_colors); }", "@Override\n public R visit(BuiltInCall n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "void printpopulateInorderSucc(Node t){\n\t\n\n}", "public void setPlayerChoice(){\n\t\tthis.setAlignment(Pos.CENTER);\n\t\tthis.getChildren().clear();\n\t\tthis.getChildren().add(playerChoice);\n\t}", "void printNode() {\n\t\tint j;\n\t\tSystem.out.print(\"[\");\n\t\tfor (j = 0; j <= lastindex; j++) {\n\n\t\t\tif (j == 0)\n\t\t\t\tSystem.out.print (\" * \");\n\t\t\telse\n\t\t\t\tSystem.out.print(keys[j] + \" * \");\n\n\t\t\tif (j == lastindex)\n\t\t\t\tSystem.out.print (\"]\");\n\t\t}\n\t}", "@Override\n\tpublic Object visit(ASTCondOr node, Object data) {\n\t\tnode.jjtGetChild(0).jjtAccept(this, data);\n\t\tSystem.out.print(\" or \");\n\t\tnode.jjtGetChild(1).jjtAccept(this, data);\n\t\treturn null;\n\t}", "private void fxml2Node(ViewsEnum fxml, Node node) {\n navBanner.getChildren().get(selectedMenuOption).getStyleClass().remove(\"selected_option\");\n int newIndex = navBanner.getChildren().indexOf(node);\n selectedMenuOption = (newIndex != -1) ? newIndex : selectedMenuOption;\n navBanner.getChildren().get(selectedMenuOption).getStyleClass().add(\"selected_option\");\n // Clean body\n Node tmp[] = new Node[2];\n tmp[0] = body.getChildren().get(0);\n tmp[1] = body.getChildren().get(1);\n body.getChildren().setAll(tmp[0], tmp[1]);\n // Load new content\n FXMLLoader fxmlLoader = new FXMLLoader();\n Node root = null;\n try {\n root = fxmlLoader.load(sample.Main.class.getResource(\"views/\" +fxmlList.get(fxml)+\".fxml\"));\n } catch (IOException e) {\n e.printStackTrace();\n }\n // Add new node\n body.getChildren().add(root);\n }", "public void mutateNonterminalNode() {\n Node[] nodes = getRandomNonterminalNode(false);\n if (nodes != null)\n ((CriteriaNode) nodes[1]).randomizeIndicator();\n }", "@Test\n public void test34(){\n Tree<PermissionDO> tree = permissionService.getTree(16);\n for (Tree<PermissionDO> permissionDOTree : tree.getChildren()) {\n if((boolean)(permissionDOTree.getState().get(\"selected\"))){\n System.out.println(permissionDOTree.getText());\n }\n System.out.println(\"--------------------\");\n }\n }", "public void getChoice()\n {\n }", "Term getNodeTerm();", "@Override\r\n public void nodeActivity() {\n }", "public static void main(String[] args) \r\n\t{\r\n\t\ttry\r\n\t\t{\r\n\t\t\ttree = new SceneTree();\r\n\t\t\tSystem.out.println(\"Creating a story...\");\r\n\t\t\tSystem.out.print(\"Please enter a title: \");\r\n\t\t\tScanner in = new Scanner(System.in);\r\n\t\t\tString title = in.nextLine();\r\n\t\t\tSystem.out.print(\"Please enter a scene: \");\r\n\t\t\tString scene = in.nextLine();\r\n\t\t\ttree.addNewNode(title, scene);\r\n\t\t\tSystem.out.println();\r\n\t\t\tSystem.out.println(\"Scene #\" + tree.getCursor().getSceneID() + \" added.\");\r\n\t\t\tSystem.out.println();\r\n\t\t\tString choice = \"\";\r\n\t\t\tdo\r\n\t\t\t{\r\n\t\t\t try \r\n\t\t\t {\r\n\t\t\t\t printMenu();\r\n\t\t\t\t System.out.print(\"Please enter a selection: \");\r\n\t\t\t\t choice = in.next().toUpperCase();\r\n\t\t\t\t switch(choice)\r\n\t\t\t\t {\r\n\t\t\t\t \tcase \"A\": in.nextLine();\r\n\t\t\t\t \t\t\t System.out.println();\r\n\t\t\t\t \t\t\t System.out.print(\"Please enter a title: \");\r\n\t\t\t\t \t\t\t String t = in.nextLine();\r\n\t\t\t\t \t\t\t System.out.print(\"Please enter a scene: \");\r\n\t\t\t\t \t\t\t String s = in.nextLine();\r\n\t\t\t\t \t\t\t tree.addNewNode(t,s);\r\n\t\t\t\t \t\t\t System.out.println();\r\n\t\t\t\t \t\t\t System.out.println(\"Scene #\" + tree.getCursor().getNumScene() + \" added.\");\r\n\t\t\t\t \t\t\t System.out.println();\r\n\t\t\t\t \t\t\t break;\r\n\t\t\t\t \tcase \"R\": System.out.println();\r\n\t\t\t\t \t\t System.out.print(\"Please enter an option: \");\r\n\t\t\t\t \t\t String remove = in.next();\r\n\t\t\t\t \t\t tree.removeScene(remove);\r\n\t\t\t\t \t\t System.out.println();\r\n\t\t\t\t \t\t\t break;\r\n\t\t\t\t \tcase \"S\": System.out.println();\r\n\t\t\t\t \t\t\t tree.getCursor().displayFullScene();\r\n\t\t\t\t \t\t System.out.println();\r\n\t\t\t\t \t\t\t break;\r\n\t\t\t\t \tcase \"P\": System.out.println();\r\n\t\t\t\t \t\t System.out.println(tree.toString());\r\n\t\t\t\t \t\t\t System.out.println();\r\n\t\t\t\t \t\t\t break;\r\n\t\t\t\t \tcase \"B\": System.out.println();\r\n\t\t\t\t \t\t\t tree.moveCursorBackwards();\r\n\t\t\t\t \t\t\t System.out.println(\"Successfuly moved to \" + tree.getCursor().getTitle());\r\n\t\t\t\t \t\t\t System.out.println();\r\n\t\t\t\t \t\t\t break;\r\n\t\t\t\t \tcase \"F\": System.out.println();\r\n\t\t\t\t \t\t\t System.out.print(\"Which option do you wish to go to: \");\r\n\t\t\t\t \t\t\t String forward = in.next();\r\n\t\t\t\t \t\t\t tree.moveCursorForward(forward);\r\n\t\t\t\t \t\t\t System.out.println();\r\n\t\t\t\t \t\t\t System.out.println(\"Successfuly moved to \" + tree.getCursor().getTitle());\r\n\t\t\t\t \t\t\t System.out.println();\r\n\t\t\t\t \t\t\t break;\r\n\t\t\t\t \tcase \"G\": playGame();\r\n\t\t\t\t \t\t\t break;\r\n\t\t\t\t \tcase \"N\": System.out.println();\r\n\t\t\t\t \t\t\t System.out.println(tree.getPathFromRoot());\r\n\t\t\t\t \t\t\t System.out.println();\r\n\t\t\t\t \t\t\t break;\r\n\t\t\t\t \tcase \"M\": System.out.println();\r\n\t\t\t\t \t\t\t System.out.print(\"Move current scene to: \");\r\n\t\t\t\t \t\t\t int num = in.nextInt();\r\n\t\t\t\t \t\t\t tree.moveScene(num);\r\n\t\t\t\t \t\t\t System.out.println();\r\n\t\t\t\t \t\t\t System.out.println(\"Successfully moved scene\");\r\n\t\t\t\t \t\t\t System.out.println();\r\n\t\t\t\t \t\t\t break;\t \t\r\n\t\t\t\t }\r\n\t\t\t }\r\n\t\t\t catch(FullSceneException e)\r\n\t\t\t {\r\n\t\t\t\tSystem.out.println();\r\n\t\t\t\tSystem.out.println(\"You cannot add another scene!\");\r\n\t\t\t\tSystem.out.println();\r\n\t\t\t }\r\n\t\t\t catch(NoSuchNodeException e)\r\n\t\t\t {\r\n\t\t\t\tSystem.out.println();\r\n\t\t\t\tSystem.out.println(\"That option does not exist.\");\r\n\t\t\t\tSystem.out.println();\r\n\t\t\t }\r\n\t\t\t}\r\n\t\t\twhile(!choice.equals(\"Q\"));\r\n\t\t}\r\n\t\tcatch(FullSceneException e)\r\n\t\t{\r\n\t\t\tSystem.out.println();\r\n\t\t\tSystem.out.println(\"Hey\");\r\n\t\t\tSystem.out.println();\r\n\t\t}\r\n\t\tSystem.out.println();\r\n\t\tSystem.out.println(\"Program terminating normally...\");\r\n\t}", "public void setNode_5(String node_5);", "@Override\n public R visit(OrderCondition n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "@AutoEscape\n\tpublic String getNode_2();", "public void nodeColor(String str) { setSelected(node_colors, str); }", "String showAllNodes();", "private void pressedSelect(MouseEvent e) {\r\n if (e.getModifiers() >= MouseEvent.BUTTON1_MASK) {\r\n /* Click on a node */\r\n if (graphX.nodesContains(e.getPoint())) {\r\n /* Resize the selected node */\r\n if (graphX.isOneNodeSelected() && !ctrlPressed\r\n && graphX.getSelectedNode().getResizeRectangle().contains(e.getPoint())) {\r\n NodeX nodeX = graphX.getSelectedNode();\r\n nodeX.setResize(true);\r\n nodeX.setState(true);\r\n nodeX.setRelativePosition(e.getPoint());\r\n }\r\n /* Click to resize a node */\r\n else if (graphX.getNode(e.getPoint()).getResizeRectangle().contains(e.getPoint()) && !ctrlPressed) {\r\n /* Put the node over the others */\r\n graphX.selectNode(e.getPoint());\r\n\r\n graphX.deselectAll();\r\n graphX.getNode(e.getPoint()).setResize(true);\r\n graphX.getNode(e.getPoint()).setState(true);\r\n graphX.getNode(e.getPoint()).setRelativePosition(e.getPoint());\r\n\r\n selectTool.setMultiple(false);\r\n selectTool.reset();\r\n }\r\n /* Click to move (select) a node or mode nodes */\r\n else {\r\n NodeX nodeX;\r\n if ((nodeX = graphX.getNode(e.getPoint())) != null) {\r\n if (ctrlPressed == false && nodeX.getState() == false) {\r\n graphX.deselectAll();\r\n }\r\n /* Deselect the node */\r\n if (ctrlPressed == true && nodeX.getState() == true) {\r\n graphX.deselectNode(nodeX);\r\n graphX.selectEdgesFromNodes();\r\n }\r\n /* Select the node */\r\n else {\r\n // graphX.deselectEdges();\r\n graphX.selectNode(nodeX);\r\n graphX.selectEdgesFromNodes();\r\n }\r\n\r\n /* Set the relative position at the selected nodes */\r\n for (int i = 0; i < graphX.nodesNumber(); i++) {\r\n if (graphX.nodeAt(i).getState()) {\r\n moveingGraph = true;\r\n graphX.nodeAt(i).setRelativePositionTo(e.getPoint());\r\n }\r\n }\r\n for (int i = 0; i < graphX.edgesNumber(); i++) {\r\n if (graphX.edgeAt(i).getState()) {\r\n graphX.edgeAt(i).setRelativePositionsTo(e.getPoint());\r\n }\r\n }\r\n\r\n dragMultiple = false;\r\n }\r\n }\r\n }\r\n /* Click on an edge */\r\n else if ((graphX.edgesContains(e.getPoint(), graph instanceof GraphOriented)\r\n || graphX.overSplitPoints(e.getPoint()) || edgeFromLabel(e.getPoint()) != null)\r\n && ctrlPressed == false) {\r\n deleteWays();\r\n\r\n EdgeX edgeX = graphX.getEdge(e.getPoint());\r\n if (edgeX != null) {\r\n graphX.deselectAll();\r\n edgeX.setState(true);\r\n } else {\r\n try {\r\n edgeX = edgeFromLabel(e.getPoint());\r\n graphX.deselectAll();\r\n edgeX.setState(true);\r\n } catch (NullPointerException e1) {\r\n }\r\n }\r\n // /* Set the split point if pressed on it */\r\n // graphX.getSelectedEdge().selectSplitPoint(e.getPoint());\r\n }\r\n /* Click on background */\r\n else {\r\n selectTool.setMultiple(true);\r\n selectTool.setFirstPoint(e.getPoint());\r\n /* Deselect all the nodes and edges */\r\n if (ctrlPressed == false) {\r\n graphX.deselectAll();\r\n /* Delete the ways */\r\n deleteWays();\r\n }\r\n }\r\n } else if (e.getModifiers() >= MouseEvent.BUTTON3_MASK) {\r\n NodeX nodeX = graphX.getNode(e.getPoint());\r\n EdgeX edgeX = graphX.getEdge(e.getPoint());\r\n\r\n if (nodeX != null) {\r\n itemType = NODE;\r\n\r\n /* Select the node */\r\n graphX.deselectAll();\r\n nodeX.setState(true);\r\n\r\n nodePopupMenu.show(this, e.getPoint().x, e.getPoint().y);\r\n } else if (edgeX != null) {\r\n /* Select the edge */\r\n graphX.deselectAll();\r\n edgeX.setState(true);\r\n\r\n if (ctrlPressed) {\r\n edgeX.deleteSplitPoint(e.getPoint());\r\n } else {\r\n itemType = EDGE;\r\n edgePopupMenu.show(this, e.getPoint().x, e.getPoint().y);\r\n splitPointLocation = e.getPoint();\r\n }\r\n\r\n // System.out.println(edgePopupMenu);\r\n // if(ctrlPressed) {\r\n // edgeX.deleteSplitPoint(e.getPoint());\r\n // }\r\n // else {\r\n // edgeX.addSplitPoint(e.getPoint());\r\n // }\r\n }\r\n }\r\n }", "protected boolean selectionAccept(Node[] nodes) {\n return true;\n }", "private boolean checkAction() {\n if (nodes == null || nodes.length > 1) {\r\n return false;\r\n }\r\n // Emptry node name\r\n if (jtfChildName.getText().isEmpty()) {\r\n JOptionPane.showMessageDialog(JZVNode.this,\r\n bundle.getString(\"dlg.error.addWithoutName\"),\r\n bundle.getString(\"dlg.error.title\"),\r\n JOptionPane.ERROR_MESSAGE);\r\n return false;\r\n }\r\n // No parent\r\n if (nodes == null || nodes.length != 1) {\r\n JOptionPane.showMessageDialog(JZVNode.this,\r\n bundle.getString(\"dlg.error.addWithoutParent\"),\r\n bundle.getString(\"dlg.error.title\"),\r\n JOptionPane.ERROR_MESSAGE);\r\n return false;\r\n }\r\n return true;\r\n }", "@Override\n\tpublic void VisitOrNode(BunOrNode Node) {\n\n\t}", "public interface Node extends TreeComponent {\n /**\n * The types of decision tree nodes available.\n */\n enum NodeType {\n Internal,\n Leaf\n }\n\n /**\n * Gets the type of this node.\n * @return The type of node.\n */\n NodeType getType();\n\n void print();\n\n String getClassLabel(DataTuple tuple);\n}", "@Override\npublic final void accept(TreeVisitor visitor) {\n visitor.visitWord(OpCodes.OR_NAME);\n if (ops != null) {\n for (int i = 0; i < ops.length; i++) {\n ops[i].accept(visitor);\n }\n } else {\n visitor.visitConstant(null, \"?\");\n }\n visitor.visitEnd();\n }", "@AutoEscape\n\tpublic String getNode_1();", "@Override\n public void actionPerformed(ActionEvent e) {\n sender.setNode(SelectNode());\n try {\n // Sender sender = new Sender(ValidAction.START_TRANSACTION);\n // sender.startTransaction(SelectNode());\n log.getDocument().insertString(0,\"Set Node to: \" +SelectNode().toString() +\"\\n\" , null);\n } catch (BadLocationException ex) {\n Logger.getLogger(MainView.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "public static void display(Node node) {\n if (node == null) {\n return;\n }\n\n String str = \"\";\n\n str += node.left == null ? \".\" : node.left.data;\n str += \" <= \" + node.data + \" => \";\n str += node.right == null ? \".\" : node.right.data;\n\n System.out.println(str);\n\n display(node.left);\n display(node.right);\n }", "public abstract Node apply(Node node);", "public void explore(Node node, int nchoices) {\n /**\n * Solution strategy: recursive backtracking.\n */\n\n if (nchoices == graphSize) {\n //\n // BASE CASE\n //\n if (this.this_distance < this.min_distance || this.min_distance < 0) {\n // if this_distance < min_distance, this is our new minimum distance\n // if min_distance < 0, this is our first minimium distance\n this.min_distance = this.this_distance;\n\n\n printSolution();\n\n\n } else {\n printFailure();\n }\n\n } else {\n //\n // RECURSIVE CASE\n //\n Set<Node> neighbors = graph.adjacentNodes(node);\n for (Node neighbor : neighbors) {\n if (neighbor.visited == false) {\n\n int distance_btwn = 0;\n\n for (Edge edge : graph.edgesConnecting(node, neighbor)) {\n distance_btwn = edge.value;\n\n\n }\n\n\n // Make a choice\n\n this.route[nchoices] = neighbor;\n neighbor.visit();\n this.this_distance += distance_btwn;\n\n // Explore the consequences\n explore(neighbor, nchoices+ 1);\n\n // Unmake the choice\n\n this.route[nchoices] = null;\n neighbor.unvisit();\n this.this_distance -= distance_btwn;\n\n }\n\n // Move on to the next choice (continue loop)\n }\n\n\n } // End base/recursive case\n\n\n }", "public void setNode(String node)\n {\n this.node = node;\n }", "public void setNode_3(String node_3);", "public int getNodeLabel ();", "public void printNode(){\r\n // make an appropriately lengthed array of formatting\r\n // to separate rows/space coordinates\r\n String[] separators = new String[puzzleSize + 2];\r\n separators[0] = \"\\n((\";\r\n for (int i=0; i<puzzleSize; i++)\r\n separators[i+1] = \") (\";\r\n separators[puzzleSize+1] = \"))\";\r\n // print the rows\r\n for (int i = 0; i<puzzleSize; i++){\r\n System.out.print(separators[i]);\r\n for (int j = 0; j<puzzleSize; j++){\r\n System.out.print(this.state[i][j]);\r\n if (j<puzzleSize-1)\r\n System.out.print(\" \");\r\n }\r\n }\r\n // print the space's coordinates\r\n int x = (int)this.space.getX();\r\n int y = (int)this.space.getY();\r\n System.out.print(separators[puzzleSize] + x + \" \" + y + separators[puzzleSize+1]);\r\n }", "NodeChain createNodeChain();", "public void setNode(String node) {\n this.node = node;\n }", "public void printNode(Node n);", "@Override\n\tpublic void processNode(DirectedGraphNode node) {\n\t\tSystem.out.print(node.getLabel()+\" \");\n\t}", "public void print(Node node) \n{\n PrintWriter w = new PrintWriter(new OutputStreamWriter(System.out), true);\n print(node, w);\n}", "OperationNode getNode();", "public void start(Node n) {}", "@Override\n\tpublic void addChoice(String choice) {\n\t}", "private void menu2Switch(int choice) {\r\n\t\tswitch(choice) {\r\n\t\tcase 1:\r\n\t\t\tthis.myMaze.movePlayer('n');\r\n\t\t\tbreak;\r\n\t\tcase 2:\r\n\t\t\tthis.myMaze.movePlayer('e');\r\n\t\t\tbreak;\r\n\t\tcase 3:\r\n\t\t\tthis.myMaze.movePlayer('s');\r\n\t\t\tbreak;\r\n\t\tcase 4:\r\n\t\t\tthis.myMaze.movePlayer('w');\r\n\t\t\tbreak;\r\n\t\t}\r\n\t}", "Node getNode();", "public interface Node {\n Oper oper();\n CNFOrdinal toCNF();\n}", "private void pressedNode(MouseEvent e) {\r\n if (e.getModifiers() >= MouseEvent.BUTTON1_MASK) {\r\n /* Set the first point in the tool */\r\n nodeTool.setFirstPoint(e.getPoint());\r\n }\r\n }", "public void actionPerformed(ActionEvent e) {\r\n mode = InputMode.BFS;\r\n instr.setText(\"Click one node to start Breath First Traversal from it.\");\r\n }", "public static void printcom( int cb,int n ,int bssf , int r , String asf){\n if(cb==n)///cb==tb\n {\n if(bssf==r)//box selected so far==number of boxes to be selected\n {\n System.out.println(asf); \n }\n return;\n }\n\n //no loop required when number of choices are same at each level\n\n \n //box selected \n printcom(cb+1 , n , bssf+1 , r , asf+cb);\n //box rejected\n printcom(cb+1 , n , bssf , r , asf); \n \n \n\n \n }", "private void parseOpt(Node node) {\r\n if (switchTest) return;\r\n int saveIn = in;\r\n parse(node.left());\r\n if (! ok && in == saveIn) ok = true;\r\n }", "public Node getGoal(){\n return goal;\n }", "public void currView(String currViewingNode)\n {\n if (nodeChoice.equals(currViewingNode))\n passData = true;\n else\n passData = false;\n }", "private void hierarchyMouseClicked(java.awt.event.MouseEvent evt) {\n nodeSelected = setNode(evt);\n if(nodeSelected) {\n System.out.println(\"Hierarchy Mouse Clicked: \" + selectedNode.toString());\n if(isLeafNode) System.out.println(\"Leaf Node\");\n } else {\n System.out.println(\"Hierarchy Mouse Clicked: failure\");\n }\n \n }", "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}", "interface Selector {\n boolean end();\n Object current();\n void next();\n}", "public interface Node {\n public int arityOfOperation();\n public String getText(int depth) throws CalculationException;\n public double getResult() throws CalculationException;\n public boolean isReachable(int depth);\n public List<Node> getAdjacentNodes();\n public String getTitle();\n public void setDepth(int depth);\n}", "public synchronized String collectPhaseInput() throws PipelineException {\n\t\tif(pPrimary==null)\n\t\t\tthrow new PipelineException(\"Please select a node.\");\n\n\t\tif(!pPrimary.matches(switchPattern))\n\t\t\tthrow new PipelineException(\"This tool will only work on a switchLgt node!\");\n\n\t\tFile errFile;\n\t\ttry {\n\t\t\terrFile = File.createTempFile(\"Dylanator.\", \".err\",PackageInfo.sTempPath.toFile());\n\t\t\terr = new PrintWriter(errFile);\n\t\t\tFileCleaner.add(errFile);\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\tNodeStatus status = pSelected.get(pPrimary);\n\t\tNodeID nodeID = status.getNodeID();\n\t\tpUser = nodeID.getAuthor();\n\t\tpView = nodeID.getView();\n\n//\t\tOverallNodeState state = status.getDetails().getOverallNodeState();\n//\t\tJToolDialog tool = new JToolDialog(\"Dylanator\", new JPanel(), \"Continue\");\n//\t\tif (!state.equals(OverallNodeState.Identical)) {\n//\t\tJConfirmDialog dialog = new JConfirmDialog(tool,\n//\t\t\"This node is not identical to the checked in node.\\n\"\n//\t\t+ \"Using this tool could be a bad idea.\\n Do you want to continue?\");\n//\t\tdialog.setVisible(true);\n//\t\tif (!dialog.wasConfirmed()) {\n//\t\treturn null;\n//\t\t}// end if\n//\t\t}// end if\n\n\t\treturn \"...Oh Happy Day!\";\n\t}", "private static boolean isItVisted(Node node) {\n\t\t\n\t\tboolean areNodesEqual = false;\n\t\tfor (Node temp : nodesCovered) {\n\t\t\tif(choice==1){\n\t\t\t\tif (node.count == temp.count) \t\t\t\t{\n\t\t\t\t\tif (areTheyEqual(temp.stateSpace, node.stateSpace)) {\n\t\t\t\t\t\treturn true;\n\t\t\t\t\t}\n\t\t\t\t\n\t\t\t }\n\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\t\n\t\t\t\t\tif (node.manhattanDist == temp.manhattanDist) {\n\t\t\t\t\t\tif (areTheyEqual(temp.stateSpace, node.stateSpace)) {\n\t\t\t\t\treturn true;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t}\n\t\treturn areNodesEqual;\n\t}", "@Override\n\tpublic Object visit(ASTFilterOr node, Object data) {\n\t\tSystem.out.print(node.jjtGetChild(0).jjtAccept(this, data));\n\t\tSystem.out.print(\" or \");\n\t\tSystem.out.print(node.jjtGetChild(1).jjtAccept(this, data));\n\t\treturn null;\n\t}", "private QuestionNode play(QuestionNode current){\n Scanner console = new Scanner(System.in);\n if (current.left == null && current.right == null) {\n //base case, when leaf node reached\n System.out.println(\"I guess that your object is \"\n + current.data + \"!\"); \n System.out.print(\"Am I right? (y/n)? \");\n if (console.nextLine().trim().toLowerCase().startsWith(\"y\")){\n //print awesome message if win\n System.out.println(\"Awesome! I win!\");\n } else {\n //ask player for help if lose\n System.out.println(\"Boo! I Lose. Please help me get better!\");\n System.out.print(\"What is your object? \");\n String ans = console.nextLine();\n System.out.println(\"Please give me a yes/no question that \"\n + \"distinguishes between \"\n + ans + \" and \"+ current.data + \".\");\n System.out.print(\"Q: \");\n String newQuestion = console.nextLine();\n System.out.print(\"Is the answer \\\"yes\\\" for \" + ans + \"? (y/n)? \");\n //update questionTree\n if(console.nextLine().trim().toLowerCase().startsWith(\"y\")){\n current = new QuestionNode(newQuestion,new QuestionNode(ans)\n ,new QuestionNode(current.data)); \n } else {\n current = new QuestionNode(newQuestion,new QuestionNode(current.data)\n ,new QuestionNode(ans)); \n } \n } \n } else {\n //recursive base\n System.out.print(current.data + \" (y/n)? \");\n if (console.nextLine().trim().toLowerCase().startsWith(\"y\")) {\n current.left = play(current.left);\n } else {\n current.right = play(current.right); \n }\n }\n return current;\n }", "@Override\r\n\tpublic void mousePressed(MouseEvent e) {\n\t\tif (selected != null) {\r\n\t\t\tselected.setBackground(null);\r\n\t\t\tselected.rename.setVisible(false);\r\n\t\t\tselected.name.setVisible(true);\r\n\t\t}\r\n\t\tallowAction = true;\r\n\t\tselected = this;\r\n\t\tselected.setBackground(Color.gray);\r\n\t\tSystem.out.println(\"Node: \" + selected.get_path());\t\t\r\n\r\n\t}", "public HIR\n getNextExecutableNode();", "private void handeComparisonMenuCommands() throws Exception {\n printOptionsMessage();\n\n while (true) {\n String command = scanner.nextLine();\n\n\n\n if (command.equals(\"1\")) {\n toggleSelectedAlgorithm(0);\n } else if (command.equals(\"2\")) {\n toggleSelectedAlgorithm(1);\n } else if (command.equals(\"3\")) {\n toggleSelectedAlgorithm(2);\n } else if (command.equals(\"s\")) {\n intSelect.start();\n startComparison(selected);\n return;\n } else if (command.equals(\"r\")) {\n startComparison(selected);\n return;\n } else if (command.equals(\"x\")) {\n break;\n }\n\n comparisonMenuOptions();\n printOptionsMessage();\n }\n }", "List<Node> getNode(String str);", "@Override\n\tpublic Object visit(ASTLogical node, Object data)\n\t{\n\t\treturn visitOperatorNode(node, data);\n\t}" ]
[ "0.6062672", "0.60158914", "0.5818231", "0.5777264", "0.57514405", "0.5734164", "0.5717383", "0.56470317", "0.55657256", "0.55207723", "0.547398", "0.5461568", "0.5445403", "0.5441304", "0.54352444", "0.5432536", "0.5428564", "0.5393862", "0.5393451", "0.5350399", "0.5332976", "0.5314167", "0.5307743", "0.52807707", "0.5266061", "0.52531123", "0.5224286", "0.52203995", "0.5204533", "0.5193641", "0.51921767", "0.5186092", "0.5102491", "0.5093384", "0.5079596", "0.507676", "0.5055859", "0.5051725", "0.5032997", "0.5029672", "0.502063", "0.50173753", "0.49992502", "0.49947146", "0.49868256", "0.49823788", "0.49796116", "0.49767956", "0.49464196", "0.49393097", "0.49370784", "0.493058", "0.49253052", "0.4916946", "0.4901073", "0.4896852", "0.48902255", "0.48878053", "0.4886251", "0.48772174", "0.4865281", "0.48629782", "0.48562485", "0.48528647", "0.48496857", "0.48494697", "0.48486698", "0.48239547", "0.4820416", "0.4820228", "0.48174328", "0.4815123", "0.48142734", "0.48109388", "0.48098448", "0.4804777", "0.48012504", "0.48006588", "0.479696", "0.47961676", "0.47844386", "0.47786206", "0.47765183", "0.47667122", "0.47596705", "0.47587088", "0.474875", "0.4746184", "0.47432545", "0.47392413", "0.4736898", "0.47363475", "0.4728628", "0.47250238", "0.47236967", "0.472067", "0.47188383", "0.47154465", "0.47129664", "0.47129554" ]
0.47497615
86
nodeChoice > | |
@Override public R visit(NumericLiteralPositive n, A argu) { R _ret = null; n.nodeChoice.accept(this, argu); return _ret; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract String getSelectedNode();", "@Override\n public R visit(GraphTerm n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "MCTS.State select(MCTS.State node);", "public String getElement()\n {\n return nodeChoice;\n }", "@Override\n public R visit(GraphNode n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "@Override\n public R visit(TriplesNode n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "@Override\n public R visit(Verb n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "@Override\n public R visit(IRIref n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "@Override\n public R visit(ArgList n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "public abstract void setSelectedNode(String n);", "public static void playGame()\r\n\t{\r\n\t\tScanner input = new Scanner(System.in);\r\n\t\tSceneNode node = tree.getRoot();\r\n\t\tString option;\r\n\t\tSystem.out.println();\r\n\t\tSystem.out.println(\"Now beginning game...\");\r\n\t\tSystem.out.println();\r\n\t\twhile(!node.isEnding())\r\n\t\t{\r\n\t\t\tSystem.out.println(node.getTitle());\r\n\t\t\tSystem.out.println(node.getSceneDescription());\r\n\t\t\tSystem.out.println();\r\n\t\t\tif(node.getLeft() != null)\r\n\t\t\tSystem.out.println(\"A) \" + node.getLeft().getTitle());\r\n\t\t\tif(node.getMiddle() != null)\r\n\t\t\tSystem.out.println(\"B) \" + node.getMiddle().getTitle());\r\n\t\t\tif(node.getRight() != null)\r\n\t\t\tSystem.out.println(\"C) \" + node.getRight().getTitle());\r\n\t\t\tSystem.out.println();\r\n\t\t\tSystem.out.print(\"Please enter an option: \");\r\n\t\t\toption = input.next().toUpperCase();\r\n\t\t\tSystem.out.println();\r\n\t\t\tswitch(option)\r\n\t\t\t{\r\n\t\t\t\tcase \"A\": node = node.getLeft();\r\n\t\t\t\t\t\t break;\r\n\t\t\t\tcase \"B\": node = node.getMiddle();\r\n\t\t\t\t\t\t break;\r\n\t\t\t\tcase \"C\": node = node.getRight();\r\n\t\t\t\t\t\t break;\r\n\t\t\t}\r\n\t\t}\r\n\t\tSystem.out.println(node.getTitle());\r\n\t\tSystem.out.println(node.getSceneDescription());\r\n\t\tSystem.out.println();\r\n\t\tSystem.out.println(\"The End\");\r\n\t\tSystem.out.println();\r\n\t\tSystem.out.println(\"Returning back to creation mode...\");\r\n\t\tSystem.out.println();\r\n\t}", "public static void QuestionOne(Node n) {\n\n\n\n }", "@Override\n public R visit(GraphPatternNotTriples n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "abstract public void showSelection(Node[] nodes) ;", "void visit(Object node, String command);", "private void parseOr(Node node) {\r\n if (switchTest) return;\r\n int saveIn = in;\r\n parse(node.left());\r\n if (ok || in > saveIn) return;\r\n parse(node.right());\r\n }", "@Override\n public R visit(Constraint n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "public static void main(String[] args) {\n Node s0 = new Node(\"s0\");\n Node s1 = new Node(\"s1\");\n Node s2 = new Node(\"s2\");\n Node s3 = new Node(\"s3\");\n Node current = s0;\n appendName(current);\n\n s0.setConA(s2);\n s0.setConB(s1);\n\n s1.setConA(s1);\n s1.setConB(s2);\n\n s2.setConB(s3);\n\n s3.setConA(s3);\n s3.setConB(s0);\n\n Scanner in = new Scanner(System.in);\n while (running){\n System.out.println(\"\\nType A/B\\n(quit):\");\n String input = in.nextLine().toUpperCase();\n Node newNode;\n switch (input){\n case \"A\":\n System.out.println(\"Case A:\"+input);\n newNode = current.getA();\n if(newNode != null){\n appendName(newNode);\n }else{\n System.out.println(\"\\n Invalid connection beeing called,\"+current.getStateName()+\" does not have a connection called:\"+input);\n quit();\n }\n current = newNode;\n break;\n case \"B\":\n System.out.println(\"Case B:\"+input);\n newNode = current.getB();\n if(newNode != null){\n appendName(newNode);\n }else{\n System.out.println(\"\\n Invalid connection beeing called,\"+current.getStateName()+\" does not have a connection called:\"+input);\n quit();\n }\n current = newNode;\n break;\n case \"QUIT\":\n quit();\n break;\n default:\n System.out.println(\"Input a valid option\");\n }\n }\n }", "@Override\n public R visit(SparqlString n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "public void doMenu(){\n Scanner readinput = new Scanner(System.in); // needed to read the user's input\r\n System.out.println(\"Using Red Black Tree. 9 for list of commands\");\r\n while (this.userinput != -1) {\r\n \r\n this.update(); // every loop, print diagram of the tree\r\n \r\n System.out.print(\"Option: \");\r\n this.userinput = readinput.nextInt(); // input. Await user.\r\n \r\n switch(this.userinput){ // checks and matches the input to available functions\r\n \r\n case 9:\r\n System.out.println(\"\\nAvailable commands:\"\r\n + \"\\n'0': create a new empty root\"\r\n + \"\\n'-1': quits the program\"\r\n + \"\\n'1': recursively inserts new node with value\"\r\n + \"\\n'2': remove a node\"\r\n + \"\\n'3': print information about the tree\"\r\n + \"\\n'4': print information about a node\"\r\n + \"\\n'9': print this help section\"\r\n );\r\n break;\r\n \r\n case -1: // quit.\r\n System.out.println(\"Stopping.\");\r\n break;\r\n \r\n case 0: // Empty all\r\n System.out.print(\"Removing all.\");\r\n this.root = null;\r\n break;\r\n \r\n case 1: // insere objeto no conteúdo do nó.\r\n System.out.print(\">>> New Value: \");\r\n this.userinput2 = readinput.nextInt();\r\n this.insertElement(this.root, userinput2);\r\n break;\r\n \r\n case 2: //remover certo valor\r\n System.out.print(\">>> Value to be removed: \");\r\n this.userinput2 = readinput.nextInt();\r\n this.remove(root, userinput2);\r\n break;\r\n \r\n case 3: // imprimir informações da árvore\r\n\r\n //this.calculateNodes(root);\r\n System.out.println(\"Pre Order NLR:\");\r\n this.traversePreOrder(root);\r\n System.out.println(\"\\nPost Order LRN:\");\r\n this.traversePostOrder(root);\r\n System.out.println(\"\\nIn Order LNR:\");\r\n this.traverseInOrder(root);\r\n System.out.println(\"\\n[!] Finished printing tree information\\n\");\r\n break;\r\n \r\n case 4: \r\n System.out.print(\">>> Value of node to be fetched: \");\r\n this.userinput2 = readinput.nextInt();\r\n this.info(this.fetch(root, userinput2));\r\n break;\r\n \r\n \r\n }\r\n \r\n }\r\n \r\n }", "void clickOnEmptyNode(Node node);", "@Override\n public R visit(PrimaryExpression n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "@Override\r\n\tpublic void visit(Choose choose)\r\n\t{\n\t\t\r\n\t}", "@Override\n public R visit(VarOrTerm n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "@Override\n public void visitTerminal(TerminalNode node) {\n\n }", "@Override\n public R visit(TriplesSameSubject n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "@Override\n public StoryTree makeChoice() {\n Scanner reader = new Scanner(System.in);\n System.out.println(this.print());\n\n int choice = reader.nextInt();\n\n if(choice == 1) {\n return this.option1.outcome;\n }\n if(choice == 2) {\n return this.option2.outcome;\n } else {\n System.out.println(\"Invalid Input\");\n return this;\n }\n }", "public void setNode_1(String node_1);", "public static void playGame(){\n SceneNode tempCursor = sceneTree.cursor;\n sceneTree.cursor = sceneTree.root;\n System.out.println(\"Now beginning game...\\n\");\n while(!sceneTree.cursor.isEnding()){\n sceneTree.cursor.displayScene();\n System.out.println(\"A)\"+sceneTree.cursor.getLeft().getTitle());\n if(sceneTree.cursor.getMiddle()!=null)\n System.out.println(\"B)\"+sceneTree.cursor.getMiddle().getTitle());\n if(sceneTree.cursor.getRight()!=null)\n System.out.println(\"C)\"+sceneTree.cursor.getRight().getTitle());\n Scanner in = new Scanner(System.in);\n System.out.println(\"Please enter an option:\");\n String option = in.next().toLowerCase();\n sceneTree.moveCursorForwards(option);\n }\n sceneTree.cursor.displayScene();\n sceneTree.cursor = tempCursor;\n System.out.println(\"\\nThe End\\n\\n\"+\"Returning back to creation mode...\");\n\n\n\n }", "int pickTree(String actionStr)\r\n\t{\r\n\t\tboolean endLoop = false;\r\n\t\tString choiceStr = \"\";\r\n\t\tint intChoice = -1;\r\n\t\t\r\n\t\tif(createdTrees.isEmpty())\r\n\t\t{\r\n\t\t\tSystem.out.println(\"No trees created. Please build a tree first.\");\r\n\t\t\treturn -1;\r\n\t\t}\r\n\r\n\t\tdo\r\n\t\t{\r\n\t\t\ttry\r\n\t\t\t{\r\n\t\t\t\tSystem.out.println(\"Which tree to \" + actionStr + \"?: (1 to \" + createdTrees.size() + \")\");\r\n\t\t\t\tchoiceStr = lineReader.nextLine();\r\n\t\t\t\t\r\n\t\t\t\tif(false == choiceStr.matches(\"[+-]?\\\\d\"))\r\n\t\t\t\t{\r\n\t\t\t\t\tSystem.out.println(\"Invalid choice. Please try again.\");\r\n\t\t\t\t\tcontinue;\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tintChoice = Integer.parseInt(choiceStr);\r\n\t\t\t\t\r\n\t\t\t\tif((0 < intChoice) && (intChoice <= createdTrees.size()))\r\n\t\t\t\t{\r\n\t\t\t\t\tendLoop = true;\r\n\t\t\t\t}\r\n\t\t\t\telse\r\n\t\t\t\t{\r\n\t\t\t\t\tSystem.out.println(\"Invalid choice. Please try again.\");\r\n\t\t\t\t\tcontinue;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tcatch(NoSuchElementException|IllegalStateException|PatternSyntaxException|NumberFormatException e)\r\n\t\t\t{\r\n\t\t\t\tSystem.out.println(\"Caught Exception: \" + e.getMessage());\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}while(false == endLoop);\r\n\t\t\r\n\t\treturn (intChoice-1);\r\n\t}", "@Override\n public R visit(Consequent n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "public void setNode_2(String node_2);", "public Snippet visit(SwitchLabel n, Snippet argu) {\n\t Snippet _ret=null;\n\t _ret = n.nodeChoice.accept(this, argu);\n\t return _ret;\n\t }", "@Override\n public R visit(UnaryExpression n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "private Node chooseNode(Identity identity) {\n\t\treturn availableNodes.peek();\n\t}", "Node currentNode();", "@Override\n public R visit(VarOrIRIref n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "public String nodeColor() { return findSelected(node_colors); }", "@Override\n public R visit(BuiltInCall n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "void printpopulateInorderSucc(Node t){\n\t\n\n}", "public void setPlayerChoice(){\n\t\tthis.setAlignment(Pos.CENTER);\n\t\tthis.getChildren().clear();\n\t\tthis.getChildren().add(playerChoice);\n\t}", "void printNode() {\n\t\tint j;\n\t\tSystem.out.print(\"[\");\n\t\tfor (j = 0; j <= lastindex; j++) {\n\n\t\t\tif (j == 0)\n\t\t\t\tSystem.out.print (\" * \");\n\t\t\telse\n\t\t\t\tSystem.out.print(keys[j] + \" * \");\n\n\t\t\tif (j == lastindex)\n\t\t\t\tSystem.out.print (\"]\");\n\t\t}\n\t}", "@Override\n\tpublic Object visit(ASTCondOr node, Object data) {\n\t\tnode.jjtGetChild(0).jjtAccept(this, data);\n\t\tSystem.out.print(\" or \");\n\t\tnode.jjtGetChild(1).jjtAccept(this, data);\n\t\treturn null;\n\t}", "private void fxml2Node(ViewsEnum fxml, Node node) {\n navBanner.getChildren().get(selectedMenuOption).getStyleClass().remove(\"selected_option\");\n int newIndex = navBanner.getChildren().indexOf(node);\n selectedMenuOption = (newIndex != -1) ? newIndex : selectedMenuOption;\n navBanner.getChildren().get(selectedMenuOption).getStyleClass().add(\"selected_option\");\n // Clean body\n Node tmp[] = new Node[2];\n tmp[0] = body.getChildren().get(0);\n tmp[1] = body.getChildren().get(1);\n body.getChildren().setAll(tmp[0], tmp[1]);\n // Load new content\n FXMLLoader fxmlLoader = new FXMLLoader();\n Node root = null;\n try {\n root = fxmlLoader.load(sample.Main.class.getResource(\"views/\" +fxmlList.get(fxml)+\".fxml\"));\n } catch (IOException e) {\n e.printStackTrace();\n }\n // Add new node\n body.getChildren().add(root);\n }", "public void mutateNonterminalNode() {\n Node[] nodes = getRandomNonterminalNode(false);\n if (nodes != null)\n ((CriteriaNode) nodes[1]).randomizeIndicator();\n }", "@Test\n public void test34(){\n Tree<PermissionDO> tree = permissionService.getTree(16);\n for (Tree<PermissionDO> permissionDOTree : tree.getChildren()) {\n if((boolean)(permissionDOTree.getState().get(\"selected\"))){\n System.out.println(permissionDOTree.getText());\n }\n System.out.println(\"--------------------\");\n }\n }", "public void getChoice()\n {\n }", "Term getNodeTerm();", "@Override\r\n public void nodeActivity() {\n }", "public static void main(String[] args) \r\n\t{\r\n\t\ttry\r\n\t\t{\r\n\t\t\ttree = new SceneTree();\r\n\t\t\tSystem.out.println(\"Creating a story...\");\r\n\t\t\tSystem.out.print(\"Please enter a title: \");\r\n\t\t\tScanner in = new Scanner(System.in);\r\n\t\t\tString title = in.nextLine();\r\n\t\t\tSystem.out.print(\"Please enter a scene: \");\r\n\t\t\tString scene = in.nextLine();\r\n\t\t\ttree.addNewNode(title, scene);\r\n\t\t\tSystem.out.println();\r\n\t\t\tSystem.out.println(\"Scene #\" + tree.getCursor().getSceneID() + \" added.\");\r\n\t\t\tSystem.out.println();\r\n\t\t\tString choice = \"\";\r\n\t\t\tdo\r\n\t\t\t{\r\n\t\t\t try \r\n\t\t\t {\r\n\t\t\t\t printMenu();\r\n\t\t\t\t System.out.print(\"Please enter a selection: \");\r\n\t\t\t\t choice = in.next().toUpperCase();\r\n\t\t\t\t switch(choice)\r\n\t\t\t\t {\r\n\t\t\t\t \tcase \"A\": in.nextLine();\r\n\t\t\t\t \t\t\t System.out.println();\r\n\t\t\t\t \t\t\t System.out.print(\"Please enter a title: \");\r\n\t\t\t\t \t\t\t String t = in.nextLine();\r\n\t\t\t\t \t\t\t System.out.print(\"Please enter a scene: \");\r\n\t\t\t\t \t\t\t String s = in.nextLine();\r\n\t\t\t\t \t\t\t tree.addNewNode(t,s);\r\n\t\t\t\t \t\t\t System.out.println();\r\n\t\t\t\t \t\t\t System.out.println(\"Scene #\" + tree.getCursor().getNumScene() + \" added.\");\r\n\t\t\t\t \t\t\t System.out.println();\r\n\t\t\t\t \t\t\t break;\r\n\t\t\t\t \tcase \"R\": System.out.println();\r\n\t\t\t\t \t\t System.out.print(\"Please enter an option: \");\r\n\t\t\t\t \t\t String remove = in.next();\r\n\t\t\t\t \t\t tree.removeScene(remove);\r\n\t\t\t\t \t\t System.out.println();\r\n\t\t\t\t \t\t\t break;\r\n\t\t\t\t \tcase \"S\": System.out.println();\r\n\t\t\t\t \t\t\t tree.getCursor().displayFullScene();\r\n\t\t\t\t \t\t System.out.println();\r\n\t\t\t\t \t\t\t break;\r\n\t\t\t\t \tcase \"P\": System.out.println();\r\n\t\t\t\t \t\t System.out.println(tree.toString());\r\n\t\t\t\t \t\t\t System.out.println();\r\n\t\t\t\t \t\t\t break;\r\n\t\t\t\t \tcase \"B\": System.out.println();\r\n\t\t\t\t \t\t\t tree.moveCursorBackwards();\r\n\t\t\t\t \t\t\t System.out.println(\"Successfuly moved to \" + tree.getCursor().getTitle());\r\n\t\t\t\t \t\t\t System.out.println();\r\n\t\t\t\t \t\t\t break;\r\n\t\t\t\t \tcase \"F\": System.out.println();\r\n\t\t\t\t \t\t\t System.out.print(\"Which option do you wish to go to: \");\r\n\t\t\t\t \t\t\t String forward = in.next();\r\n\t\t\t\t \t\t\t tree.moveCursorForward(forward);\r\n\t\t\t\t \t\t\t System.out.println();\r\n\t\t\t\t \t\t\t System.out.println(\"Successfuly moved to \" + tree.getCursor().getTitle());\r\n\t\t\t\t \t\t\t System.out.println();\r\n\t\t\t\t \t\t\t break;\r\n\t\t\t\t \tcase \"G\": playGame();\r\n\t\t\t\t \t\t\t break;\r\n\t\t\t\t \tcase \"N\": System.out.println();\r\n\t\t\t\t \t\t\t System.out.println(tree.getPathFromRoot());\r\n\t\t\t\t \t\t\t System.out.println();\r\n\t\t\t\t \t\t\t break;\r\n\t\t\t\t \tcase \"M\": System.out.println();\r\n\t\t\t\t \t\t\t System.out.print(\"Move current scene to: \");\r\n\t\t\t\t \t\t\t int num = in.nextInt();\r\n\t\t\t\t \t\t\t tree.moveScene(num);\r\n\t\t\t\t \t\t\t System.out.println();\r\n\t\t\t\t \t\t\t System.out.println(\"Successfully moved scene\");\r\n\t\t\t\t \t\t\t System.out.println();\r\n\t\t\t\t \t\t\t break;\t \t\r\n\t\t\t\t }\r\n\t\t\t }\r\n\t\t\t catch(FullSceneException e)\r\n\t\t\t {\r\n\t\t\t\tSystem.out.println();\r\n\t\t\t\tSystem.out.println(\"You cannot add another scene!\");\r\n\t\t\t\tSystem.out.println();\r\n\t\t\t }\r\n\t\t\t catch(NoSuchNodeException e)\r\n\t\t\t {\r\n\t\t\t\tSystem.out.println();\r\n\t\t\t\tSystem.out.println(\"That option does not exist.\");\r\n\t\t\t\tSystem.out.println();\r\n\t\t\t }\r\n\t\t\t}\r\n\t\t\twhile(!choice.equals(\"Q\"));\r\n\t\t}\r\n\t\tcatch(FullSceneException e)\r\n\t\t{\r\n\t\t\tSystem.out.println();\r\n\t\t\tSystem.out.println(\"Hey\");\r\n\t\t\tSystem.out.println();\r\n\t\t}\r\n\t\tSystem.out.println();\r\n\t\tSystem.out.println(\"Program terminating normally...\");\r\n\t}", "public void setNode_5(String node_5);", "@Override\n public R visit(OrderCondition n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "@AutoEscape\n\tpublic String getNode_2();", "public void nodeColor(String str) { setSelected(node_colors, str); }", "String showAllNodes();", "private void pressedSelect(MouseEvent e) {\r\n if (e.getModifiers() >= MouseEvent.BUTTON1_MASK) {\r\n /* Click on a node */\r\n if (graphX.nodesContains(e.getPoint())) {\r\n /* Resize the selected node */\r\n if (graphX.isOneNodeSelected() && !ctrlPressed\r\n && graphX.getSelectedNode().getResizeRectangle().contains(e.getPoint())) {\r\n NodeX nodeX = graphX.getSelectedNode();\r\n nodeX.setResize(true);\r\n nodeX.setState(true);\r\n nodeX.setRelativePosition(e.getPoint());\r\n }\r\n /* Click to resize a node */\r\n else if (graphX.getNode(e.getPoint()).getResizeRectangle().contains(e.getPoint()) && !ctrlPressed) {\r\n /* Put the node over the others */\r\n graphX.selectNode(e.getPoint());\r\n\r\n graphX.deselectAll();\r\n graphX.getNode(e.getPoint()).setResize(true);\r\n graphX.getNode(e.getPoint()).setState(true);\r\n graphX.getNode(e.getPoint()).setRelativePosition(e.getPoint());\r\n\r\n selectTool.setMultiple(false);\r\n selectTool.reset();\r\n }\r\n /* Click to move (select) a node or mode nodes */\r\n else {\r\n NodeX nodeX;\r\n if ((nodeX = graphX.getNode(e.getPoint())) != null) {\r\n if (ctrlPressed == false && nodeX.getState() == false) {\r\n graphX.deselectAll();\r\n }\r\n /* Deselect the node */\r\n if (ctrlPressed == true && nodeX.getState() == true) {\r\n graphX.deselectNode(nodeX);\r\n graphX.selectEdgesFromNodes();\r\n }\r\n /* Select the node */\r\n else {\r\n // graphX.deselectEdges();\r\n graphX.selectNode(nodeX);\r\n graphX.selectEdgesFromNodes();\r\n }\r\n\r\n /* Set the relative position at the selected nodes */\r\n for (int i = 0; i < graphX.nodesNumber(); i++) {\r\n if (graphX.nodeAt(i).getState()) {\r\n moveingGraph = true;\r\n graphX.nodeAt(i).setRelativePositionTo(e.getPoint());\r\n }\r\n }\r\n for (int i = 0; i < graphX.edgesNumber(); i++) {\r\n if (graphX.edgeAt(i).getState()) {\r\n graphX.edgeAt(i).setRelativePositionsTo(e.getPoint());\r\n }\r\n }\r\n\r\n dragMultiple = false;\r\n }\r\n }\r\n }\r\n /* Click on an edge */\r\n else if ((graphX.edgesContains(e.getPoint(), graph instanceof GraphOriented)\r\n || graphX.overSplitPoints(e.getPoint()) || edgeFromLabel(e.getPoint()) != null)\r\n && ctrlPressed == false) {\r\n deleteWays();\r\n\r\n EdgeX edgeX = graphX.getEdge(e.getPoint());\r\n if (edgeX != null) {\r\n graphX.deselectAll();\r\n edgeX.setState(true);\r\n } else {\r\n try {\r\n edgeX = edgeFromLabel(e.getPoint());\r\n graphX.deselectAll();\r\n edgeX.setState(true);\r\n } catch (NullPointerException e1) {\r\n }\r\n }\r\n // /* Set the split point if pressed on it */\r\n // graphX.getSelectedEdge().selectSplitPoint(e.getPoint());\r\n }\r\n /* Click on background */\r\n else {\r\n selectTool.setMultiple(true);\r\n selectTool.setFirstPoint(e.getPoint());\r\n /* Deselect all the nodes and edges */\r\n if (ctrlPressed == false) {\r\n graphX.deselectAll();\r\n /* Delete the ways */\r\n deleteWays();\r\n }\r\n }\r\n } else if (e.getModifiers() >= MouseEvent.BUTTON3_MASK) {\r\n NodeX nodeX = graphX.getNode(e.getPoint());\r\n EdgeX edgeX = graphX.getEdge(e.getPoint());\r\n\r\n if (nodeX != null) {\r\n itemType = NODE;\r\n\r\n /* Select the node */\r\n graphX.deselectAll();\r\n nodeX.setState(true);\r\n\r\n nodePopupMenu.show(this, e.getPoint().x, e.getPoint().y);\r\n } else if (edgeX != null) {\r\n /* Select the edge */\r\n graphX.deselectAll();\r\n edgeX.setState(true);\r\n\r\n if (ctrlPressed) {\r\n edgeX.deleteSplitPoint(e.getPoint());\r\n } else {\r\n itemType = EDGE;\r\n edgePopupMenu.show(this, e.getPoint().x, e.getPoint().y);\r\n splitPointLocation = e.getPoint();\r\n }\r\n\r\n // System.out.println(edgePopupMenu);\r\n // if(ctrlPressed) {\r\n // edgeX.deleteSplitPoint(e.getPoint());\r\n // }\r\n // else {\r\n // edgeX.addSplitPoint(e.getPoint());\r\n // }\r\n }\r\n }\r\n }", "protected boolean selectionAccept(Node[] nodes) {\n return true;\n }", "private boolean checkAction() {\n if (nodes == null || nodes.length > 1) {\r\n return false;\r\n }\r\n // Emptry node name\r\n if (jtfChildName.getText().isEmpty()) {\r\n JOptionPane.showMessageDialog(JZVNode.this,\r\n bundle.getString(\"dlg.error.addWithoutName\"),\r\n bundle.getString(\"dlg.error.title\"),\r\n JOptionPane.ERROR_MESSAGE);\r\n return false;\r\n }\r\n // No parent\r\n if (nodes == null || nodes.length != 1) {\r\n JOptionPane.showMessageDialog(JZVNode.this,\r\n bundle.getString(\"dlg.error.addWithoutParent\"),\r\n bundle.getString(\"dlg.error.title\"),\r\n JOptionPane.ERROR_MESSAGE);\r\n return false;\r\n }\r\n return true;\r\n }", "@Override\n\tpublic void VisitOrNode(BunOrNode Node) {\n\n\t}", "public interface Node extends TreeComponent {\n /**\n * The types of decision tree nodes available.\n */\n enum NodeType {\n Internal,\n Leaf\n }\n\n /**\n * Gets the type of this node.\n * @return The type of node.\n */\n NodeType getType();\n\n void print();\n\n String getClassLabel(DataTuple tuple);\n}", "@AutoEscape\n\tpublic String getNode_1();", "@Override\npublic final void accept(TreeVisitor visitor) {\n visitor.visitWord(OpCodes.OR_NAME);\n if (ops != null) {\n for (int i = 0; i < ops.length; i++) {\n ops[i].accept(visitor);\n }\n } else {\n visitor.visitConstant(null, \"?\");\n }\n visitor.visitEnd();\n }", "@Override\n public void actionPerformed(ActionEvent e) {\n sender.setNode(SelectNode());\n try {\n // Sender sender = new Sender(ValidAction.START_TRANSACTION);\n // sender.startTransaction(SelectNode());\n log.getDocument().insertString(0,\"Set Node to: \" +SelectNode().toString() +\"\\n\" , null);\n } catch (BadLocationException ex) {\n Logger.getLogger(MainView.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "public static void display(Node node) {\n if (node == null) {\n return;\n }\n\n String str = \"\";\n\n str += node.left == null ? \".\" : node.left.data;\n str += \" <= \" + node.data + \" => \";\n str += node.right == null ? \".\" : node.right.data;\n\n System.out.println(str);\n\n display(node.left);\n display(node.right);\n }", "public void explore(Node node, int nchoices) {\n /**\n * Solution strategy: recursive backtracking.\n */\n\n if (nchoices == graphSize) {\n //\n // BASE CASE\n //\n if (this.this_distance < this.min_distance || this.min_distance < 0) {\n // if this_distance < min_distance, this is our new minimum distance\n // if min_distance < 0, this is our first minimium distance\n this.min_distance = this.this_distance;\n\n\n printSolution();\n\n\n } else {\n printFailure();\n }\n\n } else {\n //\n // RECURSIVE CASE\n //\n Set<Node> neighbors = graph.adjacentNodes(node);\n for (Node neighbor : neighbors) {\n if (neighbor.visited == false) {\n\n int distance_btwn = 0;\n\n for (Edge edge : graph.edgesConnecting(node, neighbor)) {\n distance_btwn = edge.value;\n\n\n }\n\n\n // Make a choice\n\n this.route[nchoices] = neighbor;\n neighbor.visit();\n this.this_distance += distance_btwn;\n\n // Explore the consequences\n explore(neighbor, nchoices+ 1);\n\n // Unmake the choice\n\n this.route[nchoices] = null;\n neighbor.unvisit();\n this.this_distance -= distance_btwn;\n\n }\n\n // Move on to the next choice (continue loop)\n }\n\n\n } // End base/recursive case\n\n\n }", "public void setNode(String node)\n {\n this.node = node;\n }", "public abstract Node apply(Node node);", "public void setNode_3(String node_3);", "public void printNode(){\r\n // make an appropriately lengthed array of formatting\r\n // to separate rows/space coordinates\r\n String[] separators = new String[puzzleSize + 2];\r\n separators[0] = \"\\n((\";\r\n for (int i=0; i<puzzleSize; i++)\r\n separators[i+1] = \") (\";\r\n separators[puzzleSize+1] = \"))\";\r\n // print the rows\r\n for (int i = 0; i<puzzleSize; i++){\r\n System.out.print(separators[i]);\r\n for (int j = 0; j<puzzleSize; j++){\r\n System.out.print(this.state[i][j]);\r\n if (j<puzzleSize-1)\r\n System.out.print(\" \");\r\n }\r\n }\r\n // print the space's coordinates\r\n int x = (int)this.space.getX();\r\n int y = (int)this.space.getY();\r\n System.out.print(separators[puzzleSize] + x + \" \" + y + separators[puzzleSize+1]);\r\n }", "public int getNodeLabel ();", "NodeChain createNodeChain();", "public void setNode(String node) {\n this.node = node;\n }", "public void printNode(Node n);", "@Override\n\tpublic void processNode(DirectedGraphNode node) {\n\t\tSystem.out.print(node.getLabel()+\" \");\n\t}", "public void print(Node node) \n{\n PrintWriter w = new PrintWriter(new OutputStreamWriter(System.out), true);\n print(node, w);\n}", "OperationNode getNode();", "@Override\n\tpublic void addChoice(String choice) {\n\t}", "public void start(Node n) {}", "private void menu2Switch(int choice) {\r\n\t\tswitch(choice) {\r\n\t\tcase 1:\r\n\t\t\tthis.myMaze.movePlayer('n');\r\n\t\t\tbreak;\r\n\t\tcase 2:\r\n\t\t\tthis.myMaze.movePlayer('e');\r\n\t\t\tbreak;\r\n\t\tcase 3:\r\n\t\t\tthis.myMaze.movePlayer('s');\r\n\t\t\tbreak;\r\n\t\tcase 4:\r\n\t\t\tthis.myMaze.movePlayer('w');\r\n\t\t\tbreak;\r\n\t\t}\r\n\t}", "Node getNode();", "public interface Node {\n Oper oper();\n CNFOrdinal toCNF();\n}", "private void pressedNode(MouseEvent e) {\r\n if (e.getModifiers() >= MouseEvent.BUTTON1_MASK) {\r\n /* Set the first point in the tool */\r\n nodeTool.setFirstPoint(e.getPoint());\r\n }\r\n }", "public void actionPerformed(ActionEvent e) {\r\n mode = InputMode.BFS;\r\n instr.setText(\"Click one node to start Breath First Traversal from it.\");\r\n }", "public static void printcom( int cb,int n ,int bssf , int r , String asf){\n if(cb==n)///cb==tb\n {\n if(bssf==r)//box selected so far==number of boxes to be selected\n {\n System.out.println(asf); \n }\n return;\n }\n\n //no loop required when number of choices are same at each level\n\n \n //box selected \n printcom(cb+1 , n , bssf+1 , r , asf+cb);\n //box rejected\n printcom(cb+1 , n , bssf , r , asf); \n \n \n\n \n }", "private void parseOpt(Node node) {\r\n if (switchTest) return;\r\n int saveIn = in;\r\n parse(node.left());\r\n if (! ok && in == saveIn) ok = true;\r\n }", "public Node getGoal(){\n return goal;\n }", "public void currView(String currViewingNode)\n {\n if (nodeChoice.equals(currViewingNode))\n passData = true;\n else\n passData = false;\n }", "@Override\n public R visit(NumericLiteralUnsigned n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "private void hierarchyMouseClicked(java.awt.event.MouseEvent evt) {\n nodeSelected = setNode(evt);\n if(nodeSelected) {\n System.out.println(\"Hierarchy Mouse Clicked: \" + selectedNode.toString());\n if(isLeafNode) System.out.println(\"Leaf Node\");\n } else {\n System.out.println(\"Hierarchy Mouse Clicked: failure\");\n }\n \n }", "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}", "interface Selector {\n boolean end();\n Object current();\n void next();\n}", "public interface Node {\n public int arityOfOperation();\n public String getText(int depth) throws CalculationException;\n public double getResult() throws CalculationException;\n public boolean isReachable(int depth);\n public List<Node> getAdjacentNodes();\n public String getTitle();\n public void setDepth(int depth);\n}", "public synchronized String collectPhaseInput() throws PipelineException {\n\t\tif(pPrimary==null)\n\t\t\tthrow new PipelineException(\"Please select a node.\");\n\n\t\tif(!pPrimary.matches(switchPattern))\n\t\t\tthrow new PipelineException(\"This tool will only work on a switchLgt node!\");\n\n\t\tFile errFile;\n\t\ttry {\n\t\t\terrFile = File.createTempFile(\"Dylanator.\", \".err\",PackageInfo.sTempPath.toFile());\n\t\t\terr = new PrintWriter(errFile);\n\t\t\tFileCleaner.add(errFile);\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\tNodeStatus status = pSelected.get(pPrimary);\n\t\tNodeID nodeID = status.getNodeID();\n\t\tpUser = nodeID.getAuthor();\n\t\tpView = nodeID.getView();\n\n//\t\tOverallNodeState state = status.getDetails().getOverallNodeState();\n//\t\tJToolDialog tool = new JToolDialog(\"Dylanator\", new JPanel(), \"Continue\");\n//\t\tif (!state.equals(OverallNodeState.Identical)) {\n//\t\tJConfirmDialog dialog = new JConfirmDialog(tool,\n//\t\t\"This node is not identical to the checked in node.\\n\"\n//\t\t+ \"Using this tool could be a bad idea.\\n Do you want to continue?\");\n//\t\tdialog.setVisible(true);\n//\t\tif (!dialog.wasConfirmed()) {\n//\t\treturn null;\n//\t\t}// end if\n//\t\t}// end if\n\n\t\treturn \"...Oh Happy Day!\";\n\t}", "private static boolean isItVisted(Node node) {\n\t\t\n\t\tboolean areNodesEqual = false;\n\t\tfor (Node temp : nodesCovered) {\n\t\t\tif(choice==1){\n\t\t\t\tif (node.count == temp.count) \t\t\t\t{\n\t\t\t\t\tif (areTheyEqual(temp.stateSpace, node.stateSpace)) {\n\t\t\t\t\t\treturn true;\n\t\t\t\t\t}\n\t\t\t\t\n\t\t\t }\n\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\t\n\t\t\t\t\tif (node.manhattanDist == temp.manhattanDist) {\n\t\t\t\t\t\tif (areTheyEqual(temp.stateSpace, node.stateSpace)) {\n\t\t\t\t\treturn true;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t}\n\t\treturn areNodesEqual;\n\t}", "private QuestionNode play(QuestionNode current){\n Scanner console = new Scanner(System.in);\n if (current.left == null && current.right == null) {\n //base case, when leaf node reached\n System.out.println(\"I guess that your object is \"\n + current.data + \"!\"); \n System.out.print(\"Am I right? (y/n)? \");\n if (console.nextLine().trim().toLowerCase().startsWith(\"y\")){\n //print awesome message if win\n System.out.println(\"Awesome! I win!\");\n } else {\n //ask player for help if lose\n System.out.println(\"Boo! I Lose. Please help me get better!\");\n System.out.print(\"What is your object? \");\n String ans = console.nextLine();\n System.out.println(\"Please give me a yes/no question that \"\n + \"distinguishes between \"\n + ans + \" and \"+ current.data + \".\");\n System.out.print(\"Q: \");\n String newQuestion = console.nextLine();\n System.out.print(\"Is the answer \\\"yes\\\" for \" + ans + \"? (y/n)? \");\n //update questionTree\n if(console.nextLine().trim().toLowerCase().startsWith(\"y\")){\n current = new QuestionNode(newQuestion,new QuestionNode(ans)\n ,new QuestionNode(current.data)); \n } else {\n current = new QuestionNode(newQuestion,new QuestionNode(current.data)\n ,new QuestionNode(ans)); \n } \n } \n } else {\n //recursive base\n System.out.print(current.data + \" (y/n)? \");\n if (console.nextLine().trim().toLowerCase().startsWith(\"y\")) {\n current.left = play(current.left);\n } else {\n current.right = play(current.right); \n }\n }\n return current;\n }", "@Override\n\tpublic Object visit(ASTFilterOr node, Object data) {\n\t\tSystem.out.print(node.jjtGetChild(0).jjtAccept(this, data));\n\t\tSystem.out.print(\" or \");\n\t\tSystem.out.print(node.jjtGetChild(1).jjtAccept(this, data));\n\t\treturn null;\n\t}", "@Override\r\n\tpublic void mousePressed(MouseEvent e) {\n\t\tif (selected != null) {\r\n\t\t\tselected.setBackground(null);\r\n\t\t\tselected.rename.setVisible(false);\r\n\t\t\tselected.name.setVisible(true);\r\n\t\t}\r\n\t\tallowAction = true;\r\n\t\tselected = this;\r\n\t\tselected.setBackground(Color.gray);\r\n\t\tSystem.out.println(\"Node: \" + selected.get_path());\t\t\r\n\r\n\t}", "public HIR\n getNextExecutableNode();", "private void handeComparisonMenuCommands() throws Exception {\n printOptionsMessage();\n\n while (true) {\n String command = scanner.nextLine();\n\n\n\n if (command.equals(\"1\")) {\n toggleSelectedAlgorithm(0);\n } else if (command.equals(\"2\")) {\n toggleSelectedAlgorithm(1);\n } else if (command.equals(\"3\")) {\n toggleSelectedAlgorithm(2);\n } else if (command.equals(\"s\")) {\n intSelect.start();\n startComparison(selected);\n return;\n } else if (command.equals(\"r\")) {\n startComparison(selected);\n return;\n } else if (command.equals(\"x\")) {\n break;\n }\n\n comparisonMenuOptions();\n printOptionsMessage();\n }\n }", "List<Node> getNode(String str);", "@Override\n\tpublic Object visit(ASTLogical node, Object data)\n\t{\n\t\treturn visitOperatorNode(node, data);\n\t}" ]
[ "0.606517", "0.6016567", "0.5818587", "0.5779216", "0.5752279", "0.5734503", "0.57177913", "0.56474525", "0.556613", "0.5523029", "0.54761255", "0.5462575", "0.54456306", "0.54434323", "0.5435408", "0.54317594", "0.5429003", "0.5395436", "0.5394908", "0.53527576", "0.5332484", "0.5314939", "0.5308819", "0.52812576", "0.52667534", "0.5253916", "0.522614", "0.52221686", "0.52070475", "0.519584", "0.51928645", "0.5187796", "0.51037884", "0.5093421", "0.50813633", "0.507751", "0.50563633", "0.5053348", "0.50331825", "0.50305897", "0.5021796", "0.50200665", "0.4997833", "0.49953035", "0.49881735", "0.49841806", "0.49807036", "0.49776974", "0.494739", "0.49412224", "0.49389267", "0.49303383", "0.49268016", "0.49196136", "0.4902061", "0.48982915", "0.4891447", "0.48891893", "0.48853114", "0.48796475", "0.48644975", "0.48640984", "0.48583072", "0.4853831", "0.48501533", "0.48497757", "0.48495206", "0.48259076", "0.4823213", "0.4822047", "0.4817936", "0.48162344", "0.48160598", "0.48124847", "0.48105648", "0.48049355", "0.48022598", "0.4801341", "0.47981724", "0.47972018", "0.47859034", "0.4780163", "0.47789478", "0.47676572", "0.47604007", "0.4760399", "0.47508422", "0.47500563", "0.4749095", "0.47455463", "0.4738668", "0.47380134", "0.4736612", "0.47294486", "0.47254518", "0.47233498", "0.47225824", "0.4719852", "0.47156012", "0.4713691", "0.4712087" ]
0.0
-1
nodeChoice > | |
@Override public R visit(NumericLiteralNegative n, A argu) { R _ret = null; n.nodeChoice.accept(this, argu); return _ret; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract String getSelectedNode();", "@Override\n public R visit(GraphTerm n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "MCTS.State select(MCTS.State node);", "public String getElement()\n {\n return nodeChoice;\n }", "@Override\n public R visit(GraphNode n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "@Override\n public R visit(TriplesNode n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "@Override\n public R visit(Verb n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "@Override\n public R visit(IRIref n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "@Override\n public R visit(ArgList n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "public abstract void setSelectedNode(String n);", "public static void playGame()\r\n\t{\r\n\t\tScanner input = new Scanner(System.in);\r\n\t\tSceneNode node = tree.getRoot();\r\n\t\tString option;\r\n\t\tSystem.out.println();\r\n\t\tSystem.out.println(\"Now beginning game...\");\r\n\t\tSystem.out.println();\r\n\t\twhile(!node.isEnding())\r\n\t\t{\r\n\t\t\tSystem.out.println(node.getTitle());\r\n\t\t\tSystem.out.println(node.getSceneDescription());\r\n\t\t\tSystem.out.println();\r\n\t\t\tif(node.getLeft() != null)\r\n\t\t\tSystem.out.println(\"A) \" + node.getLeft().getTitle());\r\n\t\t\tif(node.getMiddle() != null)\r\n\t\t\tSystem.out.println(\"B) \" + node.getMiddle().getTitle());\r\n\t\t\tif(node.getRight() != null)\r\n\t\t\tSystem.out.println(\"C) \" + node.getRight().getTitle());\r\n\t\t\tSystem.out.println();\r\n\t\t\tSystem.out.print(\"Please enter an option: \");\r\n\t\t\toption = input.next().toUpperCase();\r\n\t\t\tSystem.out.println();\r\n\t\t\tswitch(option)\r\n\t\t\t{\r\n\t\t\t\tcase \"A\": node = node.getLeft();\r\n\t\t\t\t\t\t break;\r\n\t\t\t\tcase \"B\": node = node.getMiddle();\r\n\t\t\t\t\t\t break;\r\n\t\t\t\tcase \"C\": node = node.getRight();\r\n\t\t\t\t\t\t break;\r\n\t\t\t}\r\n\t\t}\r\n\t\tSystem.out.println(node.getTitle());\r\n\t\tSystem.out.println(node.getSceneDescription());\r\n\t\tSystem.out.println();\r\n\t\tSystem.out.println(\"The End\");\r\n\t\tSystem.out.println();\r\n\t\tSystem.out.println(\"Returning back to creation mode...\");\r\n\t\tSystem.out.println();\r\n\t}", "public static void QuestionOne(Node n) {\n\n\n\n }", "@Override\n public R visit(GraphPatternNotTriples n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "abstract public void showSelection(Node[] nodes) ;", "void visit(Object node, String command);", "private void parseOr(Node node) {\r\n if (switchTest) return;\r\n int saveIn = in;\r\n parse(node.left());\r\n if (ok || in > saveIn) return;\r\n parse(node.right());\r\n }", "@Override\n public R visit(Constraint n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "@Override\n public R visit(SparqlString n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "public static void main(String[] args) {\n Node s0 = new Node(\"s0\");\n Node s1 = new Node(\"s1\");\n Node s2 = new Node(\"s2\");\n Node s3 = new Node(\"s3\");\n Node current = s0;\n appendName(current);\n\n s0.setConA(s2);\n s0.setConB(s1);\n\n s1.setConA(s1);\n s1.setConB(s2);\n\n s2.setConB(s3);\n\n s3.setConA(s3);\n s3.setConB(s0);\n\n Scanner in = new Scanner(System.in);\n while (running){\n System.out.println(\"\\nType A/B\\n(quit):\");\n String input = in.nextLine().toUpperCase();\n Node newNode;\n switch (input){\n case \"A\":\n System.out.println(\"Case A:\"+input);\n newNode = current.getA();\n if(newNode != null){\n appendName(newNode);\n }else{\n System.out.println(\"\\n Invalid connection beeing called,\"+current.getStateName()+\" does not have a connection called:\"+input);\n quit();\n }\n current = newNode;\n break;\n case \"B\":\n System.out.println(\"Case B:\"+input);\n newNode = current.getB();\n if(newNode != null){\n appendName(newNode);\n }else{\n System.out.println(\"\\n Invalid connection beeing called,\"+current.getStateName()+\" does not have a connection called:\"+input);\n quit();\n }\n current = newNode;\n break;\n case \"QUIT\":\n quit();\n break;\n default:\n System.out.println(\"Input a valid option\");\n }\n }\n }", "public void doMenu(){\n Scanner readinput = new Scanner(System.in); // needed to read the user's input\r\n System.out.println(\"Using Red Black Tree. 9 for list of commands\");\r\n while (this.userinput != -1) {\r\n \r\n this.update(); // every loop, print diagram of the tree\r\n \r\n System.out.print(\"Option: \");\r\n this.userinput = readinput.nextInt(); // input. Await user.\r\n \r\n switch(this.userinput){ // checks and matches the input to available functions\r\n \r\n case 9:\r\n System.out.println(\"\\nAvailable commands:\"\r\n + \"\\n'0': create a new empty root\"\r\n + \"\\n'-1': quits the program\"\r\n + \"\\n'1': recursively inserts new node with value\"\r\n + \"\\n'2': remove a node\"\r\n + \"\\n'3': print information about the tree\"\r\n + \"\\n'4': print information about a node\"\r\n + \"\\n'9': print this help section\"\r\n );\r\n break;\r\n \r\n case -1: // quit.\r\n System.out.println(\"Stopping.\");\r\n break;\r\n \r\n case 0: // Empty all\r\n System.out.print(\"Removing all.\");\r\n this.root = null;\r\n break;\r\n \r\n case 1: // insere objeto no conteúdo do nó.\r\n System.out.print(\">>> New Value: \");\r\n this.userinput2 = readinput.nextInt();\r\n this.insertElement(this.root, userinput2);\r\n break;\r\n \r\n case 2: //remover certo valor\r\n System.out.print(\">>> Value to be removed: \");\r\n this.userinput2 = readinput.nextInt();\r\n this.remove(root, userinput2);\r\n break;\r\n \r\n case 3: // imprimir informações da árvore\r\n\r\n //this.calculateNodes(root);\r\n System.out.println(\"Pre Order NLR:\");\r\n this.traversePreOrder(root);\r\n System.out.println(\"\\nPost Order LRN:\");\r\n this.traversePostOrder(root);\r\n System.out.println(\"\\nIn Order LNR:\");\r\n this.traverseInOrder(root);\r\n System.out.println(\"\\n[!] Finished printing tree information\\n\");\r\n break;\r\n \r\n case 4: \r\n System.out.print(\">>> Value of node to be fetched: \");\r\n this.userinput2 = readinput.nextInt();\r\n this.info(this.fetch(root, userinput2));\r\n break;\r\n \r\n \r\n }\r\n \r\n }\r\n \r\n }", "void clickOnEmptyNode(Node node);", "@Override\n public R visit(PrimaryExpression n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "@Override\r\n\tpublic void visit(Choose choose)\r\n\t{\n\t\t\r\n\t}", "@Override\n public R visit(VarOrTerm n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "@Override\n public void visitTerminal(TerminalNode node) {\n\n }", "@Override\n public R visit(TriplesSameSubject n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "@Override\n public StoryTree makeChoice() {\n Scanner reader = new Scanner(System.in);\n System.out.println(this.print());\n\n int choice = reader.nextInt();\n\n if(choice == 1) {\n return this.option1.outcome;\n }\n if(choice == 2) {\n return this.option2.outcome;\n } else {\n System.out.println(\"Invalid Input\");\n return this;\n }\n }", "public void setNode_1(String node_1);", "public static void playGame(){\n SceneNode tempCursor = sceneTree.cursor;\n sceneTree.cursor = sceneTree.root;\n System.out.println(\"Now beginning game...\\n\");\n while(!sceneTree.cursor.isEnding()){\n sceneTree.cursor.displayScene();\n System.out.println(\"A)\"+sceneTree.cursor.getLeft().getTitle());\n if(sceneTree.cursor.getMiddle()!=null)\n System.out.println(\"B)\"+sceneTree.cursor.getMiddle().getTitle());\n if(sceneTree.cursor.getRight()!=null)\n System.out.println(\"C)\"+sceneTree.cursor.getRight().getTitle());\n Scanner in = new Scanner(System.in);\n System.out.println(\"Please enter an option:\");\n String option = in.next().toLowerCase();\n sceneTree.moveCursorForwards(option);\n }\n sceneTree.cursor.displayScene();\n sceneTree.cursor = tempCursor;\n System.out.println(\"\\nThe End\\n\\n\"+\"Returning back to creation mode...\");\n\n\n\n }", "int pickTree(String actionStr)\r\n\t{\r\n\t\tboolean endLoop = false;\r\n\t\tString choiceStr = \"\";\r\n\t\tint intChoice = -1;\r\n\t\t\r\n\t\tif(createdTrees.isEmpty())\r\n\t\t{\r\n\t\t\tSystem.out.println(\"No trees created. Please build a tree first.\");\r\n\t\t\treturn -1;\r\n\t\t}\r\n\r\n\t\tdo\r\n\t\t{\r\n\t\t\ttry\r\n\t\t\t{\r\n\t\t\t\tSystem.out.println(\"Which tree to \" + actionStr + \"?: (1 to \" + createdTrees.size() + \")\");\r\n\t\t\t\tchoiceStr = lineReader.nextLine();\r\n\t\t\t\t\r\n\t\t\t\tif(false == choiceStr.matches(\"[+-]?\\\\d\"))\r\n\t\t\t\t{\r\n\t\t\t\t\tSystem.out.println(\"Invalid choice. Please try again.\");\r\n\t\t\t\t\tcontinue;\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tintChoice = Integer.parseInt(choiceStr);\r\n\t\t\t\t\r\n\t\t\t\tif((0 < intChoice) && (intChoice <= createdTrees.size()))\r\n\t\t\t\t{\r\n\t\t\t\t\tendLoop = true;\r\n\t\t\t\t}\r\n\t\t\t\telse\r\n\t\t\t\t{\r\n\t\t\t\t\tSystem.out.println(\"Invalid choice. Please try again.\");\r\n\t\t\t\t\tcontinue;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tcatch(NoSuchElementException|IllegalStateException|PatternSyntaxException|NumberFormatException e)\r\n\t\t\t{\r\n\t\t\t\tSystem.out.println(\"Caught Exception: \" + e.getMessage());\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}while(false == endLoop);\r\n\t\t\r\n\t\treturn (intChoice-1);\r\n\t}", "@Override\n public R visit(Consequent n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "public void setNode_2(String node_2);", "public Snippet visit(SwitchLabel n, Snippet argu) {\n\t Snippet _ret=null;\n\t _ret = n.nodeChoice.accept(this, argu);\n\t return _ret;\n\t }", "@Override\n public R visit(UnaryExpression n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "private Node chooseNode(Identity identity) {\n\t\treturn availableNodes.peek();\n\t}", "Node currentNode();", "@Override\n public R visit(VarOrIRIref n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "public String nodeColor() { return findSelected(node_colors); }", "@Override\n public R visit(BuiltInCall n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "void printpopulateInorderSucc(Node t){\n\t\n\n}", "public void setPlayerChoice(){\n\t\tthis.setAlignment(Pos.CENTER);\n\t\tthis.getChildren().clear();\n\t\tthis.getChildren().add(playerChoice);\n\t}", "void printNode() {\n\t\tint j;\n\t\tSystem.out.print(\"[\");\n\t\tfor (j = 0; j <= lastindex; j++) {\n\n\t\t\tif (j == 0)\n\t\t\t\tSystem.out.print (\" * \");\n\t\t\telse\n\t\t\t\tSystem.out.print(keys[j] + \" * \");\n\n\t\t\tif (j == lastindex)\n\t\t\t\tSystem.out.print (\"]\");\n\t\t}\n\t}", "@Override\n\tpublic Object visit(ASTCondOr node, Object data) {\n\t\tnode.jjtGetChild(0).jjtAccept(this, data);\n\t\tSystem.out.print(\" or \");\n\t\tnode.jjtGetChild(1).jjtAccept(this, data);\n\t\treturn null;\n\t}", "private void fxml2Node(ViewsEnum fxml, Node node) {\n navBanner.getChildren().get(selectedMenuOption).getStyleClass().remove(\"selected_option\");\n int newIndex = navBanner.getChildren().indexOf(node);\n selectedMenuOption = (newIndex != -1) ? newIndex : selectedMenuOption;\n navBanner.getChildren().get(selectedMenuOption).getStyleClass().add(\"selected_option\");\n // Clean body\n Node tmp[] = new Node[2];\n tmp[0] = body.getChildren().get(0);\n tmp[1] = body.getChildren().get(1);\n body.getChildren().setAll(tmp[0], tmp[1]);\n // Load new content\n FXMLLoader fxmlLoader = new FXMLLoader();\n Node root = null;\n try {\n root = fxmlLoader.load(sample.Main.class.getResource(\"views/\" +fxmlList.get(fxml)+\".fxml\"));\n } catch (IOException e) {\n e.printStackTrace();\n }\n // Add new node\n body.getChildren().add(root);\n }", "public void mutateNonterminalNode() {\n Node[] nodes = getRandomNonterminalNode(false);\n if (nodes != null)\n ((CriteriaNode) nodes[1]).randomizeIndicator();\n }", "@Test\n public void test34(){\n Tree<PermissionDO> tree = permissionService.getTree(16);\n for (Tree<PermissionDO> permissionDOTree : tree.getChildren()) {\n if((boolean)(permissionDOTree.getState().get(\"selected\"))){\n System.out.println(permissionDOTree.getText());\n }\n System.out.println(\"--------------------\");\n }\n }", "public void getChoice()\n {\n }", "Term getNodeTerm();", "@Override\r\n public void nodeActivity() {\n }", "public static void main(String[] args) \r\n\t{\r\n\t\ttry\r\n\t\t{\r\n\t\t\ttree = new SceneTree();\r\n\t\t\tSystem.out.println(\"Creating a story...\");\r\n\t\t\tSystem.out.print(\"Please enter a title: \");\r\n\t\t\tScanner in = new Scanner(System.in);\r\n\t\t\tString title = in.nextLine();\r\n\t\t\tSystem.out.print(\"Please enter a scene: \");\r\n\t\t\tString scene = in.nextLine();\r\n\t\t\ttree.addNewNode(title, scene);\r\n\t\t\tSystem.out.println();\r\n\t\t\tSystem.out.println(\"Scene #\" + tree.getCursor().getSceneID() + \" added.\");\r\n\t\t\tSystem.out.println();\r\n\t\t\tString choice = \"\";\r\n\t\t\tdo\r\n\t\t\t{\r\n\t\t\t try \r\n\t\t\t {\r\n\t\t\t\t printMenu();\r\n\t\t\t\t System.out.print(\"Please enter a selection: \");\r\n\t\t\t\t choice = in.next().toUpperCase();\r\n\t\t\t\t switch(choice)\r\n\t\t\t\t {\r\n\t\t\t\t \tcase \"A\": in.nextLine();\r\n\t\t\t\t \t\t\t System.out.println();\r\n\t\t\t\t \t\t\t System.out.print(\"Please enter a title: \");\r\n\t\t\t\t \t\t\t String t = in.nextLine();\r\n\t\t\t\t \t\t\t System.out.print(\"Please enter a scene: \");\r\n\t\t\t\t \t\t\t String s = in.nextLine();\r\n\t\t\t\t \t\t\t tree.addNewNode(t,s);\r\n\t\t\t\t \t\t\t System.out.println();\r\n\t\t\t\t \t\t\t System.out.println(\"Scene #\" + tree.getCursor().getNumScene() + \" added.\");\r\n\t\t\t\t \t\t\t System.out.println();\r\n\t\t\t\t \t\t\t break;\r\n\t\t\t\t \tcase \"R\": System.out.println();\r\n\t\t\t\t \t\t System.out.print(\"Please enter an option: \");\r\n\t\t\t\t \t\t String remove = in.next();\r\n\t\t\t\t \t\t tree.removeScene(remove);\r\n\t\t\t\t \t\t System.out.println();\r\n\t\t\t\t \t\t\t break;\r\n\t\t\t\t \tcase \"S\": System.out.println();\r\n\t\t\t\t \t\t\t tree.getCursor().displayFullScene();\r\n\t\t\t\t \t\t System.out.println();\r\n\t\t\t\t \t\t\t break;\r\n\t\t\t\t \tcase \"P\": System.out.println();\r\n\t\t\t\t \t\t System.out.println(tree.toString());\r\n\t\t\t\t \t\t\t System.out.println();\r\n\t\t\t\t \t\t\t break;\r\n\t\t\t\t \tcase \"B\": System.out.println();\r\n\t\t\t\t \t\t\t tree.moveCursorBackwards();\r\n\t\t\t\t \t\t\t System.out.println(\"Successfuly moved to \" + tree.getCursor().getTitle());\r\n\t\t\t\t \t\t\t System.out.println();\r\n\t\t\t\t \t\t\t break;\r\n\t\t\t\t \tcase \"F\": System.out.println();\r\n\t\t\t\t \t\t\t System.out.print(\"Which option do you wish to go to: \");\r\n\t\t\t\t \t\t\t String forward = in.next();\r\n\t\t\t\t \t\t\t tree.moveCursorForward(forward);\r\n\t\t\t\t \t\t\t System.out.println();\r\n\t\t\t\t \t\t\t System.out.println(\"Successfuly moved to \" + tree.getCursor().getTitle());\r\n\t\t\t\t \t\t\t System.out.println();\r\n\t\t\t\t \t\t\t break;\r\n\t\t\t\t \tcase \"G\": playGame();\r\n\t\t\t\t \t\t\t break;\r\n\t\t\t\t \tcase \"N\": System.out.println();\r\n\t\t\t\t \t\t\t System.out.println(tree.getPathFromRoot());\r\n\t\t\t\t \t\t\t System.out.println();\r\n\t\t\t\t \t\t\t break;\r\n\t\t\t\t \tcase \"M\": System.out.println();\r\n\t\t\t\t \t\t\t System.out.print(\"Move current scene to: \");\r\n\t\t\t\t \t\t\t int num = in.nextInt();\r\n\t\t\t\t \t\t\t tree.moveScene(num);\r\n\t\t\t\t \t\t\t System.out.println();\r\n\t\t\t\t \t\t\t System.out.println(\"Successfully moved scene\");\r\n\t\t\t\t \t\t\t System.out.println();\r\n\t\t\t\t \t\t\t break;\t \t\r\n\t\t\t\t }\r\n\t\t\t }\r\n\t\t\t catch(FullSceneException e)\r\n\t\t\t {\r\n\t\t\t\tSystem.out.println();\r\n\t\t\t\tSystem.out.println(\"You cannot add another scene!\");\r\n\t\t\t\tSystem.out.println();\r\n\t\t\t }\r\n\t\t\t catch(NoSuchNodeException e)\r\n\t\t\t {\r\n\t\t\t\tSystem.out.println();\r\n\t\t\t\tSystem.out.println(\"That option does not exist.\");\r\n\t\t\t\tSystem.out.println();\r\n\t\t\t }\r\n\t\t\t}\r\n\t\t\twhile(!choice.equals(\"Q\"));\r\n\t\t}\r\n\t\tcatch(FullSceneException e)\r\n\t\t{\r\n\t\t\tSystem.out.println();\r\n\t\t\tSystem.out.println(\"Hey\");\r\n\t\t\tSystem.out.println();\r\n\t\t}\r\n\t\tSystem.out.println();\r\n\t\tSystem.out.println(\"Program terminating normally...\");\r\n\t}", "public void setNode_5(String node_5);", "@Override\n public R visit(OrderCondition n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "@AutoEscape\n\tpublic String getNode_2();", "public void nodeColor(String str) { setSelected(node_colors, str); }", "String showAllNodes();", "private void pressedSelect(MouseEvent e) {\r\n if (e.getModifiers() >= MouseEvent.BUTTON1_MASK) {\r\n /* Click on a node */\r\n if (graphX.nodesContains(e.getPoint())) {\r\n /* Resize the selected node */\r\n if (graphX.isOneNodeSelected() && !ctrlPressed\r\n && graphX.getSelectedNode().getResizeRectangle().contains(e.getPoint())) {\r\n NodeX nodeX = graphX.getSelectedNode();\r\n nodeX.setResize(true);\r\n nodeX.setState(true);\r\n nodeX.setRelativePosition(e.getPoint());\r\n }\r\n /* Click to resize a node */\r\n else if (graphX.getNode(e.getPoint()).getResizeRectangle().contains(e.getPoint()) && !ctrlPressed) {\r\n /* Put the node over the others */\r\n graphX.selectNode(e.getPoint());\r\n\r\n graphX.deselectAll();\r\n graphX.getNode(e.getPoint()).setResize(true);\r\n graphX.getNode(e.getPoint()).setState(true);\r\n graphX.getNode(e.getPoint()).setRelativePosition(e.getPoint());\r\n\r\n selectTool.setMultiple(false);\r\n selectTool.reset();\r\n }\r\n /* Click to move (select) a node or mode nodes */\r\n else {\r\n NodeX nodeX;\r\n if ((nodeX = graphX.getNode(e.getPoint())) != null) {\r\n if (ctrlPressed == false && nodeX.getState() == false) {\r\n graphX.deselectAll();\r\n }\r\n /* Deselect the node */\r\n if (ctrlPressed == true && nodeX.getState() == true) {\r\n graphX.deselectNode(nodeX);\r\n graphX.selectEdgesFromNodes();\r\n }\r\n /* Select the node */\r\n else {\r\n // graphX.deselectEdges();\r\n graphX.selectNode(nodeX);\r\n graphX.selectEdgesFromNodes();\r\n }\r\n\r\n /* Set the relative position at the selected nodes */\r\n for (int i = 0; i < graphX.nodesNumber(); i++) {\r\n if (graphX.nodeAt(i).getState()) {\r\n moveingGraph = true;\r\n graphX.nodeAt(i).setRelativePositionTo(e.getPoint());\r\n }\r\n }\r\n for (int i = 0; i < graphX.edgesNumber(); i++) {\r\n if (graphX.edgeAt(i).getState()) {\r\n graphX.edgeAt(i).setRelativePositionsTo(e.getPoint());\r\n }\r\n }\r\n\r\n dragMultiple = false;\r\n }\r\n }\r\n }\r\n /* Click on an edge */\r\n else if ((graphX.edgesContains(e.getPoint(), graph instanceof GraphOriented)\r\n || graphX.overSplitPoints(e.getPoint()) || edgeFromLabel(e.getPoint()) != null)\r\n && ctrlPressed == false) {\r\n deleteWays();\r\n\r\n EdgeX edgeX = graphX.getEdge(e.getPoint());\r\n if (edgeX != null) {\r\n graphX.deselectAll();\r\n edgeX.setState(true);\r\n } else {\r\n try {\r\n edgeX = edgeFromLabel(e.getPoint());\r\n graphX.deselectAll();\r\n edgeX.setState(true);\r\n } catch (NullPointerException e1) {\r\n }\r\n }\r\n // /* Set the split point if pressed on it */\r\n // graphX.getSelectedEdge().selectSplitPoint(e.getPoint());\r\n }\r\n /* Click on background */\r\n else {\r\n selectTool.setMultiple(true);\r\n selectTool.setFirstPoint(e.getPoint());\r\n /* Deselect all the nodes and edges */\r\n if (ctrlPressed == false) {\r\n graphX.deselectAll();\r\n /* Delete the ways */\r\n deleteWays();\r\n }\r\n }\r\n } else if (e.getModifiers() >= MouseEvent.BUTTON3_MASK) {\r\n NodeX nodeX = graphX.getNode(e.getPoint());\r\n EdgeX edgeX = graphX.getEdge(e.getPoint());\r\n\r\n if (nodeX != null) {\r\n itemType = NODE;\r\n\r\n /* Select the node */\r\n graphX.deselectAll();\r\n nodeX.setState(true);\r\n\r\n nodePopupMenu.show(this, e.getPoint().x, e.getPoint().y);\r\n } else if (edgeX != null) {\r\n /* Select the edge */\r\n graphX.deselectAll();\r\n edgeX.setState(true);\r\n\r\n if (ctrlPressed) {\r\n edgeX.deleteSplitPoint(e.getPoint());\r\n } else {\r\n itemType = EDGE;\r\n edgePopupMenu.show(this, e.getPoint().x, e.getPoint().y);\r\n splitPointLocation = e.getPoint();\r\n }\r\n\r\n // System.out.println(edgePopupMenu);\r\n // if(ctrlPressed) {\r\n // edgeX.deleteSplitPoint(e.getPoint());\r\n // }\r\n // else {\r\n // edgeX.addSplitPoint(e.getPoint());\r\n // }\r\n }\r\n }\r\n }", "protected boolean selectionAccept(Node[] nodes) {\n return true;\n }", "private boolean checkAction() {\n if (nodes == null || nodes.length > 1) {\r\n return false;\r\n }\r\n // Emptry node name\r\n if (jtfChildName.getText().isEmpty()) {\r\n JOptionPane.showMessageDialog(JZVNode.this,\r\n bundle.getString(\"dlg.error.addWithoutName\"),\r\n bundle.getString(\"dlg.error.title\"),\r\n JOptionPane.ERROR_MESSAGE);\r\n return false;\r\n }\r\n // No parent\r\n if (nodes == null || nodes.length != 1) {\r\n JOptionPane.showMessageDialog(JZVNode.this,\r\n bundle.getString(\"dlg.error.addWithoutParent\"),\r\n bundle.getString(\"dlg.error.title\"),\r\n JOptionPane.ERROR_MESSAGE);\r\n return false;\r\n }\r\n return true;\r\n }", "@Override\n\tpublic void VisitOrNode(BunOrNode Node) {\n\n\t}", "public interface Node extends TreeComponent {\n /**\n * The types of decision tree nodes available.\n */\n enum NodeType {\n Internal,\n Leaf\n }\n\n /**\n * Gets the type of this node.\n * @return The type of node.\n */\n NodeType getType();\n\n void print();\n\n String getClassLabel(DataTuple tuple);\n}", "@Override\npublic final void accept(TreeVisitor visitor) {\n visitor.visitWord(OpCodes.OR_NAME);\n if (ops != null) {\n for (int i = 0; i < ops.length; i++) {\n ops[i].accept(visitor);\n }\n } else {\n visitor.visitConstant(null, \"?\");\n }\n visitor.visitEnd();\n }", "@AutoEscape\n\tpublic String getNode_1();", "@Override\n public void actionPerformed(ActionEvent e) {\n sender.setNode(SelectNode());\n try {\n // Sender sender = new Sender(ValidAction.START_TRANSACTION);\n // sender.startTransaction(SelectNode());\n log.getDocument().insertString(0,\"Set Node to: \" +SelectNode().toString() +\"\\n\" , null);\n } catch (BadLocationException ex) {\n Logger.getLogger(MainView.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "public static void display(Node node) {\n if (node == null) {\n return;\n }\n\n String str = \"\";\n\n str += node.left == null ? \".\" : node.left.data;\n str += \" <= \" + node.data + \" => \";\n str += node.right == null ? \".\" : node.right.data;\n\n System.out.println(str);\n\n display(node.left);\n display(node.right);\n }", "public abstract Node apply(Node node);", "public void explore(Node node, int nchoices) {\n /**\n * Solution strategy: recursive backtracking.\n */\n\n if (nchoices == graphSize) {\n //\n // BASE CASE\n //\n if (this.this_distance < this.min_distance || this.min_distance < 0) {\n // if this_distance < min_distance, this is our new minimum distance\n // if min_distance < 0, this is our first minimium distance\n this.min_distance = this.this_distance;\n\n\n printSolution();\n\n\n } else {\n printFailure();\n }\n\n } else {\n //\n // RECURSIVE CASE\n //\n Set<Node> neighbors = graph.adjacentNodes(node);\n for (Node neighbor : neighbors) {\n if (neighbor.visited == false) {\n\n int distance_btwn = 0;\n\n for (Edge edge : graph.edgesConnecting(node, neighbor)) {\n distance_btwn = edge.value;\n\n\n }\n\n\n // Make a choice\n\n this.route[nchoices] = neighbor;\n neighbor.visit();\n this.this_distance += distance_btwn;\n\n // Explore the consequences\n explore(neighbor, nchoices+ 1);\n\n // Unmake the choice\n\n this.route[nchoices] = null;\n neighbor.unvisit();\n this.this_distance -= distance_btwn;\n\n }\n\n // Move on to the next choice (continue loop)\n }\n\n\n } // End base/recursive case\n\n\n }", "public void setNode(String node)\n {\n this.node = node;\n }", "public void setNode_3(String node_3);", "public int getNodeLabel ();", "public void printNode(){\r\n // make an appropriately lengthed array of formatting\r\n // to separate rows/space coordinates\r\n String[] separators = new String[puzzleSize + 2];\r\n separators[0] = \"\\n((\";\r\n for (int i=0; i<puzzleSize; i++)\r\n separators[i+1] = \") (\";\r\n separators[puzzleSize+1] = \"))\";\r\n // print the rows\r\n for (int i = 0; i<puzzleSize; i++){\r\n System.out.print(separators[i]);\r\n for (int j = 0; j<puzzleSize; j++){\r\n System.out.print(this.state[i][j]);\r\n if (j<puzzleSize-1)\r\n System.out.print(\" \");\r\n }\r\n }\r\n // print the space's coordinates\r\n int x = (int)this.space.getX();\r\n int y = (int)this.space.getY();\r\n System.out.print(separators[puzzleSize] + x + \" \" + y + separators[puzzleSize+1]);\r\n }", "NodeChain createNodeChain();", "public void setNode(String node) {\n this.node = node;\n }", "public void printNode(Node n);", "@Override\n\tpublic void processNode(DirectedGraphNode node) {\n\t\tSystem.out.print(node.getLabel()+\" \");\n\t}", "public void print(Node node) \n{\n PrintWriter w = new PrintWriter(new OutputStreamWriter(System.out), true);\n print(node, w);\n}", "OperationNode getNode();", "public void start(Node n) {}", "@Override\n\tpublic void addChoice(String choice) {\n\t}", "private void menu2Switch(int choice) {\r\n\t\tswitch(choice) {\r\n\t\tcase 1:\r\n\t\t\tthis.myMaze.movePlayer('n');\r\n\t\t\tbreak;\r\n\t\tcase 2:\r\n\t\t\tthis.myMaze.movePlayer('e');\r\n\t\t\tbreak;\r\n\t\tcase 3:\r\n\t\t\tthis.myMaze.movePlayer('s');\r\n\t\t\tbreak;\r\n\t\tcase 4:\r\n\t\t\tthis.myMaze.movePlayer('w');\r\n\t\t\tbreak;\r\n\t\t}\r\n\t}", "Node getNode();", "public interface Node {\n Oper oper();\n CNFOrdinal toCNF();\n}", "private void pressedNode(MouseEvent e) {\r\n if (e.getModifiers() >= MouseEvent.BUTTON1_MASK) {\r\n /* Set the first point in the tool */\r\n nodeTool.setFirstPoint(e.getPoint());\r\n }\r\n }", "public void actionPerformed(ActionEvent e) {\r\n mode = InputMode.BFS;\r\n instr.setText(\"Click one node to start Breath First Traversal from it.\");\r\n }", "public static void printcom( int cb,int n ,int bssf , int r , String asf){\n if(cb==n)///cb==tb\n {\n if(bssf==r)//box selected so far==number of boxes to be selected\n {\n System.out.println(asf); \n }\n return;\n }\n\n //no loop required when number of choices are same at each level\n\n \n //box selected \n printcom(cb+1 , n , bssf+1 , r , asf+cb);\n //box rejected\n printcom(cb+1 , n , bssf , r , asf); \n \n \n\n \n }", "private void parseOpt(Node node) {\r\n if (switchTest) return;\r\n int saveIn = in;\r\n parse(node.left());\r\n if (! ok && in == saveIn) ok = true;\r\n }", "public Node getGoal(){\n return goal;\n }", "@Override\n public R visit(NumericLiteralUnsigned n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "public void currView(String currViewingNode)\n {\n if (nodeChoice.equals(currViewingNode))\n passData = true;\n else\n passData = false;\n }", "private void hierarchyMouseClicked(java.awt.event.MouseEvent evt) {\n nodeSelected = setNode(evt);\n if(nodeSelected) {\n System.out.println(\"Hierarchy Mouse Clicked: \" + selectedNode.toString());\n if(isLeafNode) System.out.println(\"Leaf Node\");\n } else {\n System.out.println(\"Hierarchy Mouse Clicked: failure\");\n }\n \n }", "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}", "interface Selector {\n boolean end();\n Object current();\n void next();\n}", "public interface Node {\n public int arityOfOperation();\n public String getText(int depth) throws CalculationException;\n public double getResult() throws CalculationException;\n public boolean isReachable(int depth);\n public List<Node> getAdjacentNodes();\n public String getTitle();\n public void setDepth(int depth);\n}", "public synchronized String collectPhaseInput() throws PipelineException {\n\t\tif(pPrimary==null)\n\t\t\tthrow new PipelineException(\"Please select a node.\");\n\n\t\tif(!pPrimary.matches(switchPattern))\n\t\t\tthrow new PipelineException(\"This tool will only work on a switchLgt node!\");\n\n\t\tFile errFile;\n\t\ttry {\n\t\t\terrFile = File.createTempFile(\"Dylanator.\", \".err\",PackageInfo.sTempPath.toFile());\n\t\t\terr = new PrintWriter(errFile);\n\t\t\tFileCleaner.add(errFile);\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\tNodeStatus status = pSelected.get(pPrimary);\n\t\tNodeID nodeID = status.getNodeID();\n\t\tpUser = nodeID.getAuthor();\n\t\tpView = nodeID.getView();\n\n//\t\tOverallNodeState state = status.getDetails().getOverallNodeState();\n//\t\tJToolDialog tool = new JToolDialog(\"Dylanator\", new JPanel(), \"Continue\");\n//\t\tif (!state.equals(OverallNodeState.Identical)) {\n//\t\tJConfirmDialog dialog = new JConfirmDialog(tool,\n//\t\t\"This node is not identical to the checked in node.\\n\"\n//\t\t+ \"Using this tool could be a bad idea.\\n Do you want to continue?\");\n//\t\tdialog.setVisible(true);\n//\t\tif (!dialog.wasConfirmed()) {\n//\t\treturn null;\n//\t\t}// end if\n//\t\t}// end if\n\n\t\treturn \"...Oh Happy Day!\";\n\t}", "private static boolean isItVisted(Node node) {\n\t\t\n\t\tboolean areNodesEqual = false;\n\t\tfor (Node temp : nodesCovered) {\n\t\t\tif(choice==1){\n\t\t\t\tif (node.count == temp.count) \t\t\t\t{\n\t\t\t\t\tif (areTheyEqual(temp.stateSpace, node.stateSpace)) {\n\t\t\t\t\t\treturn true;\n\t\t\t\t\t}\n\t\t\t\t\n\t\t\t }\n\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\t\n\t\t\t\t\tif (node.manhattanDist == temp.manhattanDist) {\n\t\t\t\t\t\tif (areTheyEqual(temp.stateSpace, node.stateSpace)) {\n\t\t\t\t\treturn true;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t}\n\t\treturn areNodesEqual;\n\t}", "@Override\n\tpublic Object visit(ASTFilterOr node, Object data) {\n\t\tSystem.out.print(node.jjtGetChild(0).jjtAccept(this, data));\n\t\tSystem.out.print(\" or \");\n\t\tSystem.out.print(node.jjtGetChild(1).jjtAccept(this, data));\n\t\treturn null;\n\t}", "private QuestionNode play(QuestionNode current){\n Scanner console = new Scanner(System.in);\n if (current.left == null && current.right == null) {\n //base case, when leaf node reached\n System.out.println(\"I guess that your object is \"\n + current.data + \"!\"); \n System.out.print(\"Am I right? (y/n)? \");\n if (console.nextLine().trim().toLowerCase().startsWith(\"y\")){\n //print awesome message if win\n System.out.println(\"Awesome! I win!\");\n } else {\n //ask player for help if lose\n System.out.println(\"Boo! I Lose. Please help me get better!\");\n System.out.print(\"What is your object? \");\n String ans = console.nextLine();\n System.out.println(\"Please give me a yes/no question that \"\n + \"distinguishes between \"\n + ans + \" and \"+ current.data + \".\");\n System.out.print(\"Q: \");\n String newQuestion = console.nextLine();\n System.out.print(\"Is the answer \\\"yes\\\" for \" + ans + \"? (y/n)? \");\n //update questionTree\n if(console.nextLine().trim().toLowerCase().startsWith(\"y\")){\n current = new QuestionNode(newQuestion,new QuestionNode(ans)\n ,new QuestionNode(current.data)); \n } else {\n current = new QuestionNode(newQuestion,new QuestionNode(current.data)\n ,new QuestionNode(ans)); \n } \n } \n } else {\n //recursive base\n System.out.print(current.data + \" (y/n)? \");\n if (console.nextLine().trim().toLowerCase().startsWith(\"y\")) {\n current.left = play(current.left);\n } else {\n current.right = play(current.right); \n }\n }\n return current;\n }", "@Override\r\n\tpublic void mousePressed(MouseEvent e) {\n\t\tif (selected != null) {\r\n\t\t\tselected.setBackground(null);\r\n\t\t\tselected.rename.setVisible(false);\r\n\t\t\tselected.name.setVisible(true);\r\n\t\t}\r\n\t\tallowAction = true;\r\n\t\tselected = this;\r\n\t\tselected.setBackground(Color.gray);\r\n\t\tSystem.out.println(\"Node: \" + selected.get_path());\t\t\r\n\r\n\t}", "public HIR\n getNextExecutableNode();", "private void handeComparisonMenuCommands() throws Exception {\n printOptionsMessage();\n\n while (true) {\n String command = scanner.nextLine();\n\n\n\n if (command.equals(\"1\")) {\n toggleSelectedAlgorithm(0);\n } else if (command.equals(\"2\")) {\n toggleSelectedAlgorithm(1);\n } else if (command.equals(\"3\")) {\n toggleSelectedAlgorithm(2);\n } else if (command.equals(\"s\")) {\n intSelect.start();\n startComparison(selected);\n return;\n } else if (command.equals(\"r\")) {\n startComparison(selected);\n return;\n } else if (command.equals(\"x\")) {\n break;\n }\n\n comparisonMenuOptions();\n printOptionsMessage();\n }\n }", "List<Node> getNode(String str);", "@Override\n\tpublic Object visit(ASTLogical node, Object data)\n\t{\n\t\treturn visitOperatorNode(node, data);\n\t}" ]
[ "0.6062672", "0.60158914", "0.5818231", "0.5777264", "0.57514405", "0.5734164", "0.5717383", "0.56470317", "0.55657256", "0.55207723", "0.547398", "0.5461568", "0.5445403", "0.5441304", "0.54352444", "0.5432536", "0.5428564", "0.5393862", "0.5393451", "0.5350399", "0.5332976", "0.5314167", "0.5307743", "0.52807707", "0.5266061", "0.52531123", "0.5224286", "0.52203995", "0.5204533", "0.5193641", "0.51921767", "0.5186092", "0.5102491", "0.5093384", "0.5079596", "0.507676", "0.5055859", "0.5051725", "0.5032997", "0.5029672", "0.502063", "0.50173753", "0.49992502", "0.49947146", "0.49868256", "0.49823788", "0.49796116", "0.49767956", "0.49464196", "0.49393097", "0.49370784", "0.493058", "0.49253052", "0.4916946", "0.4901073", "0.4896852", "0.48902255", "0.48878053", "0.4886251", "0.48772174", "0.4865281", "0.48629782", "0.48562485", "0.48528647", "0.48496857", "0.48494697", "0.48486698", "0.48239547", "0.4820416", "0.4820228", "0.48174328", "0.4815123", "0.48142734", "0.48109388", "0.48098448", "0.4804777", "0.48012504", "0.48006588", "0.479696", "0.47961676", "0.47844386", "0.47786206", "0.47765183", "0.47667122", "0.47596705", "0.47587088", "0.47497615", "0.474875", "0.4746184", "0.47432545", "0.47392413", "0.4736898", "0.47363475", "0.4728628", "0.47250238", "0.47236967", "0.472067", "0.47188383", "0.47154465", "0.47129664", "0.47129554" ]
0.0
-1
nodeChoice > | | |
@Override public R visit(SparqlString n, A argu) { R _ret = null; n.nodeChoice.accept(this, argu); return _ret; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract String getSelectedNode();", "@Override\n public R visit(GraphTerm n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "public String getElement()\n {\n return nodeChoice;\n }", "@Override\n public R visit(GraphNode n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "MCTS.State select(MCTS.State node);", "@Override\n public R visit(TriplesNode n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "@Override\n public R visit(Verb n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "public abstract void setSelectedNode(String n);", "@Override\n public R visit(IRIref n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "public static void QuestionOne(Node n) {\n\n\n\n }", "@Override\n public R visit(ArgList n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "abstract public void showSelection(Node[] nodes) ;", "@Override\n public R visit(Constraint n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "@Override\n public R visit(GraphPatternNotTriples n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "public static void playGame()\r\n\t{\r\n\t\tScanner input = new Scanner(System.in);\r\n\t\tSceneNode node = tree.getRoot();\r\n\t\tString option;\r\n\t\tSystem.out.println();\r\n\t\tSystem.out.println(\"Now beginning game...\");\r\n\t\tSystem.out.println();\r\n\t\twhile(!node.isEnding())\r\n\t\t{\r\n\t\t\tSystem.out.println(node.getTitle());\r\n\t\t\tSystem.out.println(node.getSceneDescription());\r\n\t\t\tSystem.out.println();\r\n\t\t\tif(node.getLeft() != null)\r\n\t\t\tSystem.out.println(\"A) \" + node.getLeft().getTitle());\r\n\t\t\tif(node.getMiddle() != null)\r\n\t\t\tSystem.out.println(\"B) \" + node.getMiddle().getTitle());\r\n\t\t\tif(node.getRight() != null)\r\n\t\t\tSystem.out.println(\"C) \" + node.getRight().getTitle());\r\n\t\t\tSystem.out.println();\r\n\t\t\tSystem.out.print(\"Please enter an option: \");\r\n\t\t\toption = input.next().toUpperCase();\r\n\t\t\tSystem.out.println();\r\n\t\t\tswitch(option)\r\n\t\t\t{\r\n\t\t\t\tcase \"A\": node = node.getLeft();\r\n\t\t\t\t\t\t break;\r\n\t\t\t\tcase \"B\": node = node.getMiddle();\r\n\t\t\t\t\t\t break;\r\n\t\t\t\tcase \"C\": node = node.getRight();\r\n\t\t\t\t\t\t break;\r\n\t\t\t}\r\n\t\t}\r\n\t\tSystem.out.println(node.getTitle());\r\n\t\tSystem.out.println(node.getSceneDescription());\r\n\t\tSystem.out.println();\r\n\t\tSystem.out.println(\"The End\");\r\n\t\tSystem.out.println();\r\n\t\tSystem.out.println(\"Returning back to creation mode...\");\r\n\t\tSystem.out.println();\r\n\t}", "public static void main(String[] args) {\n Node s0 = new Node(\"s0\");\n Node s1 = new Node(\"s1\");\n Node s2 = new Node(\"s2\");\n Node s3 = new Node(\"s3\");\n Node current = s0;\n appendName(current);\n\n s0.setConA(s2);\n s0.setConB(s1);\n\n s1.setConA(s1);\n s1.setConB(s2);\n\n s2.setConB(s3);\n\n s3.setConA(s3);\n s3.setConB(s0);\n\n Scanner in = new Scanner(System.in);\n while (running){\n System.out.println(\"\\nType A/B\\n(quit):\");\n String input = in.nextLine().toUpperCase();\n Node newNode;\n switch (input){\n case \"A\":\n System.out.println(\"Case A:\"+input);\n newNode = current.getA();\n if(newNode != null){\n appendName(newNode);\n }else{\n System.out.println(\"\\n Invalid connection beeing called,\"+current.getStateName()+\" does not have a connection called:\"+input);\n quit();\n }\n current = newNode;\n break;\n case \"B\":\n System.out.println(\"Case B:\"+input);\n newNode = current.getB();\n if(newNode != null){\n appendName(newNode);\n }else{\n System.out.println(\"\\n Invalid connection beeing called,\"+current.getStateName()+\" does not have a connection called:\"+input);\n quit();\n }\n current = newNode;\n break;\n case \"QUIT\":\n quit();\n break;\n default:\n System.out.println(\"Input a valid option\");\n }\n }\n }", "void clickOnEmptyNode(Node node);", "@Override\n public R visit(PrimaryExpression n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "@Override\n public R visit(TriplesSameSubject n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "@Override\r\n\tpublic void visit(Choose choose)\r\n\t{\n\t\t\r\n\t}", "@Override\n public R visit(VarOrTerm n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "void visit(Object node, String command);", "public void setNode_1(String node_1);", "public void doMenu(){\n Scanner readinput = new Scanner(System.in); // needed to read the user's input\r\n System.out.println(\"Using Red Black Tree. 9 for list of commands\");\r\n while (this.userinput != -1) {\r\n \r\n this.update(); // every loop, print diagram of the tree\r\n \r\n System.out.print(\"Option: \");\r\n this.userinput = readinput.nextInt(); // input. Await user.\r\n \r\n switch(this.userinput){ // checks and matches the input to available functions\r\n \r\n case 9:\r\n System.out.println(\"\\nAvailable commands:\"\r\n + \"\\n'0': create a new empty root\"\r\n + \"\\n'-1': quits the program\"\r\n + \"\\n'1': recursively inserts new node with value\"\r\n + \"\\n'2': remove a node\"\r\n + \"\\n'3': print information about the tree\"\r\n + \"\\n'4': print information about a node\"\r\n + \"\\n'9': print this help section\"\r\n );\r\n break;\r\n \r\n case -1: // quit.\r\n System.out.println(\"Stopping.\");\r\n break;\r\n \r\n case 0: // Empty all\r\n System.out.print(\"Removing all.\");\r\n this.root = null;\r\n break;\r\n \r\n case 1: // insere objeto no conteúdo do nó.\r\n System.out.print(\">>> New Value: \");\r\n this.userinput2 = readinput.nextInt();\r\n this.insertElement(this.root, userinput2);\r\n break;\r\n \r\n case 2: //remover certo valor\r\n System.out.print(\">>> Value to be removed: \");\r\n this.userinput2 = readinput.nextInt();\r\n this.remove(root, userinput2);\r\n break;\r\n \r\n case 3: // imprimir informações da árvore\r\n\r\n //this.calculateNodes(root);\r\n System.out.println(\"Pre Order NLR:\");\r\n this.traversePreOrder(root);\r\n System.out.println(\"\\nPost Order LRN:\");\r\n this.traversePostOrder(root);\r\n System.out.println(\"\\nIn Order LNR:\");\r\n this.traverseInOrder(root);\r\n System.out.println(\"\\n[!] Finished printing tree information\\n\");\r\n break;\r\n \r\n case 4: \r\n System.out.print(\">>> Value of node to be fetched: \");\r\n this.userinput2 = readinput.nextInt();\r\n this.info(this.fetch(root, userinput2));\r\n break;\r\n \r\n \r\n }\r\n \r\n }\r\n \r\n }", "private Node chooseNode(Identity identity) {\n\t\treturn availableNodes.peek();\n\t}", "@Override\n public R visit(Consequent n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "int pickTree(String actionStr)\r\n\t{\r\n\t\tboolean endLoop = false;\r\n\t\tString choiceStr = \"\";\r\n\t\tint intChoice = -1;\r\n\t\t\r\n\t\tif(createdTrees.isEmpty())\r\n\t\t{\r\n\t\t\tSystem.out.println(\"No trees created. Please build a tree first.\");\r\n\t\t\treturn -1;\r\n\t\t}\r\n\r\n\t\tdo\r\n\t\t{\r\n\t\t\ttry\r\n\t\t\t{\r\n\t\t\t\tSystem.out.println(\"Which tree to \" + actionStr + \"?: (1 to \" + createdTrees.size() + \")\");\r\n\t\t\t\tchoiceStr = lineReader.nextLine();\r\n\t\t\t\t\r\n\t\t\t\tif(false == choiceStr.matches(\"[+-]?\\\\d\"))\r\n\t\t\t\t{\r\n\t\t\t\t\tSystem.out.println(\"Invalid choice. Please try again.\");\r\n\t\t\t\t\tcontinue;\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tintChoice = Integer.parseInt(choiceStr);\r\n\t\t\t\t\r\n\t\t\t\tif((0 < intChoice) && (intChoice <= createdTrees.size()))\r\n\t\t\t\t{\r\n\t\t\t\t\tendLoop = true;\r\n\t\t\t\t}\r\n\t\t\t\telse\r\n\t\t\t\t{\r\n\t\t\t\t\tSystem.out.println(\"Invalid choice. Please try again.\");\r\n\t\t\t\t\tcontinue;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tcatch(NoSuchElementException|IllegalStateException|PatternSyntaxException|NumberFormatException e)\r\n\t\t\t{\r\n\t\t\t\tSystem.out.println(\"Caught Exception: \" + e.getMessage());\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}while(false == endLoop);\r\n\t\t\r\n\t\treturn (intChoice-1);\r\n\t}", "public void setNode_2(String node_2);", "public String nodeColor() { return findSelected(node_colors); }", "@Override\n public StoryTree makeChoice() {\n Scanner reader = new Scanner(System.in);\n System.out.println(this.print());\n\n int choice = reader.nextInt();\n\n if(choice == 1) {\n return this.option1.outcome;\n }\n if(choice == 2) {\n return this.option2.outcome;\n } else {\n System.out.println(\"Invalid Input\");\n return this;\n }\n }", "private void parseOr(Node node) {\r\n if (switchTest) return;\r\n int saveIn = in;\r\n parse(node.left());\r\n if (ok || in > saveIn) return;\r\n parse(node.right());\r\n }", "Node currentNode();", "public void setPlayerChoice(){\n\t\tthis.setAlignment(Pos.CENTER);\n\t\tthis.getChildren().clear();\n\t\tthis.getChildren().add(playerChoice);\n\t}", "public static void playGame(){\n SceneNode tempCursor = sceneTree.cursor;\n sceneTree.cursor = sceneTree.root;\n System.out.println(\"Now beginning game...\\n\");\n while(!sceneTree.cursor.isEnding()){\n sceneTree.cursor.displayScene();\n System.out.println(\"A)\"+sceneTree.cursor.getLeft().getTitle());\n if(sceneTree.cursor.getMiddle()!=null)\n System.out.println(\"B)\"+sceneTree.cursor.getMiddle().getTitle());\n if(sceneTree.cursor.getRight()!=null)\n System.out.println(\"C)\"+sceneTree.cursor.getRight().getTitle());\n Scanner in = new Scanner(System.in);\n System.out.println(\"Please enter an option:\");\n String option = in.next().toLowerCase();\n sceneTree.moveCursorForwards(option);\n }\n sceneTree.cursor.displayScene();\n sceneTree.cursor = tempCursor;\n System.out.println(\"\\nThe End\\n\\n\"+\"Returning back to creation mode...\");\n\n\n\n }", "public Snippet visit(SwitchLabel n, Snippet argu) {\n\t Snippet _ret=null;\n\t _ret = n.nodeChoice.accept(this, argu);\n\t return _ret;\n\t }", "private void fxml2Node(ViewsEnum fxml, Node node) {\n navBanner.getChildren().get(selectedMenuOption).getStyleClass().remove(\"selected_option\");\n int newIndex = navBanner.getChildren().indexOf(node);\n selectedMenuOption = (newIndex != -1) ? newIndex : selectedMenuOption;\n navBanner.getChildren().get(selectedMenuOption).getStyleClass().add(\"selected_option\");\n // Clean body\n Node tmp[] = new Node[2];\n tmp[0] = body.getChildren().get(0);\n tmp[1] = body.getChildren().get(1);\n body.getChildren().setAll(tmp[0], tmp[1]);\n // Load new content\n FXMLLoader fxmlLoader = new FXMLLoader();\n Node root = null;\n try {\n root = fxmlLoader.load(sample.Main.class.getResource(\"views/\" +fxmlList.get(fxml)+\".fxml\"));\n } catch (IOException e) {\n e.printStackTrace();\n }\n // Add new node\n body.getChildren().add(root);\n }", "@Override\n public R visit(VarOrIRIref n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "public void getChoice()\n {\n }", "void printpopulateInorderSucc(Node t){\n\t\n\n}", "public void setNode_5(String node_5);", "public void explore(Node node, int nchoices) {\n /**\n * Solution strategy: recursive backtracking.\n */\n\n if (nchoices == graphSize) {\n //\n // BASE CASE\n //\n if (this.this_distance < this.min_distance || this.min_distance < 0) {\n // if this_distance < min_distance, this is our new minimum distance\n // if min_distance < 0, this is our first minimium distance\n this.min_distance = this.this_distance;\n\n\n printSolution();\n\n\n } else {\n printFailure();\n }\n\n } else {\n //\n // RECURSIVE CASE\n //\n Set<Node> neighbors = graph.adjacentNodes(node);\n for (Node neighbor : neighbors) {\n if (neighbor.visited == false) {\n\n int distance_btwn = 0;\n\n for (Edge edge : graph.edgesConnecting(node, neighbor)) {\n distance_btwn = edge.value;\n\n\n }\n\n\n // Make a choice\n\n this.route[nchoices] = neighbor;\n neighbor.visit();\n this.this_distance += distance_btwn;\n\n // Explore the consequences\n explore(neighbor, nchoices+ 1);\n\n // Unmake the choice\n\n this.route[nchoices] = null;\n neighbor.unvisit();\n this.this_distance -= distance_btwn;\n\n }\n\n // Move on to the next choice (continue loop)\n }\n\n\n } // End base/recursive case\n\n\n }", "public interface Node extends TreeComponent {\n /**\n * The types of decision tree nodes available.\n */\n enum NodeType {\n Internal,\n Leaf\n }\n\n /**\n * Gets the type of this node.\n * @return The type of node.\n */\n NodeType getType();\n\n void print();\n\n String getClassLabel(DataTuple tuple);\n}", "@Override\n public void visitTerminal(TerminalNode node) {\n\n }", "public void mutateNonterminalNode() {\n Node[] nodes = getRandomNonterminalNode(false);\n if (nodes != null)\n ((CriteriaNode) nodes[1]).randomizeIndicator();\n }", "@Override\n public R visit(UnaryExpression n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "public void nodeColor(String str) { setSelected(node_colors, str); }", "public int getNodeLabel ();", "@Override\n public R visit(BuiltInCall n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "Term getNodeTerm();", "private static boolean isItVisted(Node node) {\n\t\t\n\t\tboolean areNodesEqual = false;\n\t\tfor (Node temp : nodesCovered) {\n\t\t\tif(choice==1){\n\t\t\t\tif (node.count == temp.count) \t\t\t\t{\n\t\t\t\t\tif (areTheyEqual(temp.stateSpace, node.stateSpace)) {\n\t\t\t\t\t\treturn true;\n\t\t\t\t\t}\n\t\t\t\t\n\t\t\t }\n\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\t\n\t\t\t\t\tif (node.manhattanDist == temp.manhattanDist) {\n\t\t\t\t\t\tif (areTheyEqual(temp.stateSpace, node.stateSpace)) {\n\t\t\t\t\treturn true;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t}\n\t\treturn areNodesEqual;\n\t}", "public abstract Node apply(Node node);", "@Override\n public R visit(OrderCondition n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "Node getNode();", "void printNode() {\n\t\tint j;\n\t\tSystem.out.print(\"[\");\n\t\tfor (j = 0; j <= lastindex; j++) {\n\n\t\t\tif (j == 0)\n\t\t\t\tSystem.out.print (\" * \");\n\t\t\telse\n\t\t\t\tSystem.out.print(keys[j] + \" * \");\n\n\t\t\tif (j == lastindex)\n\t\t\t\tSystem.out.print (\"]\");\n\t\t}\n\t}", "@Test\n public void test34(){\n Tree<PermissionDO> tree = permissionService.getTree(16);\n for (Tree<PermissionDO> permissionDOTree : tree.getChildren()) {\n if((boolean)(permissionDOTree.getState().get(\"selected\"))){\n System.out.println(permissionDOTree.getText());\n }\n System.out.println(\"--------------------\");\n }\n }", "@Override\r\n public void nodeActivity() {\n }", "private void pressedSelect(MouseEvent e) {\r\n if (e.getModifiers() >= MouseEvent.BUTTON1_MASK) {\r\n /* Click on a node */\r\n if (graphX.nodesContains(e.getPoint())) {\r\n /* Resize the selected node */\r\n if (graphX.isOneNodeSelected() && !ctrlPressed\r\n && graphX.getSelectedNode().getResizeRectangle().contains(e.getPoint())) {\r\n NodeX nodeX = graphX.getSelectedNode();\r\n nodeX.setResize(true);\r\n nodeX.setState(true);\r\n nodeX.setRelativePosition(e.getPoint());\r\n }\r\n /* Click to resize a node */\r\n else if (graphX.getNode(e.getPoint()).getResizeRectangle().contains(e.getPoint()) && !ctrlPressed) {\r\n /* Put the node over the others */\r\n graphX.selectNode(e.getPoint());\r\n\r\n graphX.deselectAll();\r\n graphX.getNode(e.getPoint()).setResize(true);\r\n graphX.getNode(e.getPoint()).setState(true);\r\n graphX.getNode(e.getPoint()).setRelativePosition(e.getPoint());\r\n\r\n selectTool.setMultiple(false);\r\n selectTool.reset();\r\n }\r\n /* Click to move (select) a node or mode nodes */\r\n else {\r\n NodeX nodeX;\r\n if ((nodeX = graphX.getNode(e.getPoint())) != null) {\r\n if (ctrlPressed == false && nodeX.getState() == false) {\r\n graphX.deselectAll();\r\n }\r\n /* Deselect the node */\r\n if (ctrlPressed == true && nodeX.getState() == true) {\r\n graphX.deselectNode(nodeX);\r\n graphX.selectEdgesFromNodes();\r\n }\r\n /* Select the node */\r\n else {\r\n // graphX.deselectEdges();\r\n graphX.selectNode(nodeX);\r\n graphX.selectEdgesFromNodes();\r\n }\r\n\r\n /* Set the relative position at the selected nodes */\r\n for (int i = 0; i < graphX.nodesNumber(); i++) {\r\n if (graphX.nodeAt(i).getState()) {\r\n moveingGraph = true;\r\n graphX.nodeAt(i).setRelativePositionTo(e.getPoint());\r\n }\r\n }\r\n for (int i = 0; i < graphX.edgesNumber(); i++) {\r\n if (graphX.edgeAt(i).getState()) {\r\n graphX.edgeAt(i).setRelativePositionsTo(e.getPoint());\r\n }\r\n }\r\n\r\n dragMultiple = false;\r\n }\r\n }\r\n }\r\n /* Click on an edge */\r\n else if ((graphX.edgesContains(e.getPoint(), graph instanceof GraphOriented)\r\n || graphX.overSplitPoints(e.getPoint()) || edgeFromLabel(e.getPoint()) != null)\r\n && ctrlPressed == false) {\r\n deleteWays();\r\n\r\n EdgeX edgeX = graphX.getEdge(e.getPoint());\r\n if (edgeX != null) {\r\n graphX.deselectAll();\r\n edgeX.setState(true);\r\n } else {\r\n try {\r\n edgeX = edgeFromLabel(e.getPoint());\r\n graphX.deselectAll();\r\n edgeX.setState(true);\r\n } catch (NullPointerException e1) {\r\n }\r\n }\r\n // /* Set the split point if pressed on it */\r\n // graphX.getSelectedEdge().selectSplitPoint(e.getPoint());\r\n }\r\n /* Click on background */\r\n else {\r\n selectTool.setMultiple(true);\r\n selectTool.setFirstPoint(e.getPoint());\r\n /* Deselect all the nodes and edges */\r\n if (ctrlPressed == false) {\r\n graphX.deselectAll();\r\n /* Delete the ways */\r\n deleteWays();\r\n }\r\n }\r\n } else if (e.getModifiers() >= MouseEvent.BUTTON3_MASK) {\r\n NodeX nodeX = graphX.getNode(e.getPoint());\r\n EdgeX edgeX = graphX.getEdge(e.getPoint());\r\n\r\n if (nodeX != null) {\r\n itemType = NODE;\r\n\r\n /* Select the node */\r\n graphX.deselectAll();\r\n nodeX.setState(true);\r\n\r\n nodePopupMenu.show(this, e.getPoint().x, e.getPoint().y);\r\n } else if (edgeX != null) {\r\n /* Select the edge */\r\n graphX.deselectAll();\r\n edgeX.setState(true);\r\n\r\n if (ctrlPressed) {\r\n edgeX.deleteSplitPoint(e.getPoint());\r\n } else {\r\n itemType = EDGE;\r\n edgePopupMenu.show(this, e.getPoint().x, e.getPoint().y);\r\n splitPointLocation = e.getPoint();\r\n }\r\n\r\n // System.out.println(edgePopupMenu);\r\n // if(ctrlPressed) {\r\n // edgeX.deleteSplitPoint(e.getPoint());\r\n // }\r\n // else {\r\n // edgeX.addSplitPoint(e.getPoint());\r\n // }\r\n }\r\n }\r\n }", "protected boolean selectionAccept(Node[] nodes) {\n return true;\n }", "private boolean checkAction() {\n if (nodes == null || nodes.length > 1) {\r\n return false;\r\n }\r\n // Emptry node name\r\n if (jtfChildName.getText().isEmpty()) {\r\n JOptionPane.showMessageDialog(JZVNode.this,\r\n bundle.getString(\"dlg.error.addWithoutName\"),\r\n bundle.getString(\"dlg.error.title\"),\r\n JOptionPane.ERROR_MESSAGE);\r\n return false;\r\n }\r\n // No parent\r\n if (nodes == null || nodes.length != 1) {\r\n JOptionPane.showMessageDialog(JZVNode.this,\r\n bundle.getString(\"dlg.error.addWithoutParent\"),\r\n bundle.getString(\"dlg.error.title\"),\r\n JOptionPane.ERROR_MESSAGE);\r\n return false;\r\n }\r\n return true;\r\n }", "public void setNode_3(String node_3);", "public void setNode(String node)\n {\n this.node = node;\n }", "public static void printcom( int cb,int n ,int bssf , int r , String asf){\n if(cb==n)///cb==tb\n {\n if(bssf==r)//box selected so far==number of boxes to be selected\n {\n System.out.println(asf); \n }\n return;\n }\n\n //no loop required when number of choices are same at each level\n\n \n //box selected \n printcom(cb+1 , n , bssf+1 , r , asf+cb);\n //box rejected\n printcom(cb+1 , n , bssf , r , asf); \n \n \n\n \n }", "String showAllNodes();", "@AutoEscape\n\tpublic String getNode_2();", "@Override\n public void actionPerformed(ActionEvent e) {\n sender.setNode(SelectNode());\n try {\n // Sender sender = new Sender(ValidAction.START_TRANSACTION);\n // sender.startTransaction(SelectNode());\n log.getDocument().insertString(0,\"Set Node to: \" +SelectNode().toString() +\"\\n\" , null);\n } catch (BadLocationException ex) {\n Logger.getLogger(MainView.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "public abstract int getNodeType();", "INodeState getCurrentNode();", "public void printNode(){\r\n // make an appropriately lengthed array of formatting\r\n // to separate rows/space coordinates\r\n String[] separators = new String[puzzleSize + 2];\r\n separators[0] = \"\\n((\";\r\n for (int i=0; i<puzzleSize; i++)\r\n separators[i+1] = \") (\";\r\n separators[puzzleSize+1] = \"))\";\r\n // print the rows\r\n for (int i = 0; i<puzzleSize; i++){\r\n System.out.print(separators[i]);\r\n for (int j = 0; j<puzzleSize; j++){\r\n System.out.print(this.state[i][j]);\r\n if (j<puzzleSize-1)\r\n System.out.print(\" \");\r\n }\r\n }\r\n // print the space's coordinates\r\n int x = (int)this.space.getX();\r\n int y = (int)this.space.getY();\r\n System.out.print(separators[puzzleSize] + x + \" \" + y + separators[puzzleSize+1]);\r\n }", "@AutoEscape\n\tpublic String getNode_1();", "public void setNode(String node) {\n this.node = node;\n }", "public interface Node {\n public int arityOfOperation();\n public String getText(int depth) throws CalculationException;\n public double getResult() throws CalculationException;\n public boolean isReachable(int depth);\n public List<Node> getAdjacentNodes();\n public String getTitle();\n public void setDepth(int depth);\n}", "public static void main(String[] args) \r\n\t{\r\n\t\ttry\r\n\t\t{\r\n\t\t\ttree = new SceneTree();\r\n\t\t\tSystem.out.println(\"Creating a story...\");\r\n\t\t\tSystem.out.print(\"Please enter a title: \");\r\n\t\t\tScanner in = new Scanner(System.in);\r\n\t\t\tString title = in.nextLine();\r\n\t\t\tSystem.out.print(\"Please enter a scene: \");\r\n\t\t\tString scene = in.nextLine();\r\n\t\t\ttree.addNewNode(title, scene);\r\n\t\t\tSystem.out.println();\r\n\t\t\tSystem.out.println(\"Scene #\" + tree.getCursor().getSceneID() + \" added.\");\r\n\t\t\tSystem.out.println();\r\n\t\t\tString choice = \"\";\r\n\t\t\tdo\r\n\t\t\t{\r\n\t\t\t try \r\n\t\t\t {\r\n\t\t\t\t printMenu();\r\n\t\t\t\t System.out.print(\"Please enter a selection: \");\r\n\t\t\t\t choice = in.next().toUpperCase();\r\n\t\t\t\t switch(choice)\r\n\t\t\t\t {\r\n\t\t\t\t \tcase \"A\": in.nextLine();\r\n\t\t\t\t \t\t\t System.out.println();\r\n\t\t\t\t \t\t\t System.out.print(\"Please enter a title: \");\r\n\t\t\t\t \t\t\t String t = in.nextLine();\r\n\t\t\t\t \t\t\t System.out.print(\"Please enter a scene: \");\r\n\t\t\t\t \t\t\t String s = in.nextLine();\r\n\t\t\t\t \t\t\t tree.addNewNode(t,s);\r\n\t\t\t\t \t\t\t System.out.println();\r\n\t\t\t\t \t\t\t System.out.println(\"Scene #\" + tree.getCursor().getNumScene() + \" added.\");\r\n\t\t\t\t \t\t\t System.out.println();\r\n\t\t\t\t \t\t\t break;\r\n\t\t\t\t \tcase \"R\": System.out.println();\r\n\t\t\t\t \t\t System.out.print(\"Please enter an option: \");\r\n\t\t\t\t \t\t String remove = in.next();\r\n\t\t\t\t \t\t tree.removeScene(remove);\r\n\t\t\t\t \t\t System.out.println();\r\n\t\t\t\t \t\t\t break;\r\n\t\t\t\t \tcase \"S\": System.out.println();\r\n\t\t\t\t \t\t\t tree.getCursor().displayFullScene();\r\n\t\t\t\t \t\t System.out.println();\r\n\t\t\t\t \t\t\t break;\r\n\t\t\t\t \tcase \"P\": System.out.println();\r\n\t\t\t\t \t\t System.out.println(tree.toString());\r\n\t\t\t\t \t\t\t System.out.println();\r\n\t\t\t\t \t\t\t break;\r\n\t\t\t\t \tcase \"B\": System.out.println();\r\n\t\t\t\t \t\t\t tree.moveCursorBackwards();\r\n\t\t\t\t \t\t\t System.out.println(\"Successfuly moved to \" + tree.getCursor().getTitle());\r\n\t\t\t\t \t\t\t System.out.println();\r\n\t\t\t\t \t\t\t break;\r\n\t\t\t\t \tcase \"F\": System.out.println();\r\n\t\t\t\t \t\t\t System.out.print(\"Which option do you wish to go to: \");\r\n\t\t\t\t \t\t\t String forward = in.next();\r\n\t\t\t\t \t\t\t tree.moveCursorForward(forward);\r\n\t\t\t\t \t\t\t System.out.println();\r\n\t\t\t\t \t\t\t System.out.println(\"Successfuly moved to \" + tree.getCursor().getTitle());\r\n\t\t\t\t \t\t\t System.out.println();\r\n\t\t\t\t \t\t\t break;\r\n\t\t\t\t \tcase \"G\": playGame();\r\n\t\t\t\t \t\t\t break;\r\n\t\t\t\t \tcase \"N\": System.out.println();\r\n\t\t\t\t \t\t\t System.out.println(tree.getPathFromRoot());\r\n\t\t\t\t \t\t\t System.out.println();\r\n\t\t\t\t \t\t\t break;\r\n\t\t\t\t \tcase \"M\": System.out.println();\r\n\t\t\t\t \t\t\t System.out.print(\"Move current scene to: \");\r\n\t\t\t\t \t\t\t int num = in.nextInt();\r\n\t\t\t\t \t\t\t tree.moveScene(num);\r\n\t\t\t\t \t\t\t System.out.println();\r\n\t\t\t\t \t\t\t System.out.println(\"Successfully moved scene\");\r\n\t\t\t\t \t\t\t System.out.println();\r\n\t\t\t\t \t\t\t break;\t \t\r\n\t\t\t\t }\r\n\t\t\t }\r\n\t\t\t catch(FullSceneException e)\r\n\t\t\t {\r\n\t\t\t\tSystem.out.println();\r\n\t\t\t\tSystem.out.println(\"You cannot add another scene!\");\r\n\t\t\t\tSystem.out.println();\r\n\t\t\t }\r\n\t\t\t catch(NoSuchNodeException e)\r\n\t\t\t {\r\n\t\t\t\tSystem.out.println();\r\n\t\t\t\tSystem.out.println(\"That option does not exist.\");\r\n\t\t\t\tSystem.out.println();\r\n\t\t\t }\r\n\t\t\t}\r\n\t\t\twhile(!choice.equals(\"Q\"));\r\n\t\t}\r\n\t\tcatch(FullSceneException e)\r\n\t\t{\r\n\t\t\tSystem.out.println();\r\n\t\t\tSystem.out.println(\"Hey\");\r\n\t\t\tSystem.out.println();\r\n\t\t}\r\n\t\tSystem.out.println();\r\n\t\tSystem.out.println(\"Program terminating normally...\");\r\n\t}", "public static void display(Node node) {\n if (node == null) {\n return;\n }\n\n String str = \"\";\n\n str += node.left == null ? \".\" : node.left.data;\n str += \" <= \" + node.data + \" => \";\n str += node.right == null ? \".\" : node.right.data;\n\n System.out.println(str);\n\n display(node.left);\n display(node.right);\n }", "public void printNode(Node n);", "private void menu2Switch(int choice) {\r\n\t\tswitch(choice) {\r\n\t\tcase 1:\r\n\t\t\tthis.myMaze.movePlayer('n');\r\n\t\t\tbreak;\r\n\t\tcase 2:\r\n\t\t\tthis.myMaze.movePlayer('e');\r\n\t\t\tbreak;\r\n\t\tcase 3:\r\n\t\t\tthis.myMaze.movePlayer('s');\r\n\t\t\tbreak;\r\n\t\tcase 4:\r\n\t\t\tthis.myMaze.movePlayer('w');\r\n\t\t\tbreak;\r\n\t\t}\r\n\t}", "@Override\n\tpublic void addChoice(String choice) {\n\t}", "OperationNode getNode();", "public String getNodeValue ();", "@Override\n public R visit(NumericLiteralUnsigned n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "private void hierarchyMouseClicked(java.awt.event.MouseEvent evt) {\n nodeSelected = setNode(evt);\n if(nodeSelected) {\n System.out.println(\"Hierarchy Mouse Clicked: \" + selectedNode.toString());\n if(isLeafNode) System.out.println(\"Leaf Node\");\n } else {\n System.out.println(\"Hierarchy Mouse Clicked: failure\");\n }\n \n }", "public void currView(String currViewingNode)\n {\n if (nodeChoice.equals(currViewingNode))\n passData = true;\n else\n passData = false;\n }", "public void select(Node n)\n\t{\n\t\tif (n == null) \n\t\t\t{\n\t\t\t\t//append(\"1Node not found: \" + txtSearch.getText(), Color.RED);\n\t\t\t\treturn;\n\t\t\t}\n\t\t\n\t\tString[] child = n.toStringArray(n);\n\t\tString[] parent = n.toStringArray(n.getParent());\n\t\tString[] sibling = n.toStringArray(n.getSiblings());\n\n\t lstChild.setListData(child);\n\n\t lstParent.setListData(parent);\n\t \n\t //lstSib.setListData(n.getSiblingsList());\n\t lstSib.setListData(sibling);\n\t \n\t\tlblName.setText(n.getName());\t\n\t\t\n\t\tappend(\"Node Found: \" + n.getName(), Color.BLUE);\n \tselectedNode=n;\n\t\t\n\t}", "abstract Color nodeColor(String node);", "public interface Node {\n Oper oper();\n CNFOrdinal toCNF();\n}", "private void pressedNode(MouseEvent e) {\r\n if (e.getModifiers() >= MouseEvent.BUTTON1_MASK) {\r\n /* Set the first point in the tool */\r\n nodeTool.setFirstPoint(e.getPoint());\r\n }\r\n }", "NodeChain createNodeChain();", "@Override\r\n protected CheckBoxSelectionStateEnum getNodeStatus(final DefaultMutableTreeNode node) {\n return CheckBoxSelectionStateEnum.FULL;\r\n }", "@Override\n\tpublic void processNode(DirectedGraphNode node) {\n\t\tSystem.out.print(node.getLabel()+\" \");\n\t}", "public Node getGoal(){\n return goal;\n }", "public void print(Node node) \n{\n PrintWriter w = new PrintWriter(new OutputStreamWriter(System.out), true);\n print(node, w);\n}", "private QuestionNode play(QuestionNode current){\n Scanner console = new Scanner(System.in);\n if (current.left == null && current.right == null) {\n //base case, when leaf node reached\n System.out.println(\"I guess that your object is \"\n + current.data + \"!\"); \n System.out.print(\"Am I right? (y/n)? \");\n if (console.nextLine().trim().toLowerCase().startsWith(\"y\")){\n //print awesome message if win\n System.out.println(\"Awesome! I win!\");\n } else {\n //ask player for help if lose\n System.out.println(\"Boo! I Lose. Please help me get better!\");\n System.out.print(\"What is your object? \");\n String ans = console.nextLine();\n System.out.println(\"Please give me a yes/no question that \"\n + \"distinguishes between \"\n + ans + \" and \"+ current.data + \".\");\n System.out.print(\"Q: \");\n String newQuestion = console.nextLine();\n System.out.print(\"Is the answer \\\"yes\\\" for \" + ans + \"? (y/n)? \");\n //update questionTree\n if(console.nextLine().trim().toLowerCase().startsWith(\"y\")){\n current = new QuestionNode(newQuestion,new QuestionNode(ans)\n ,new QuestionNode(current.data)); \n } else {\n current = new QuestionNode(newQuestion,new QuestionNode(current.data)\n ,new QuestionNode(ans)); \n } \n } \n } else {\n //recursive base\n System.out.print(current.data + \" (y/n)? \");\n if (console.nextLine().trim().toLowerCase().startsWith(\"y\")) {\n current.left = play(current.left);\n } else {\n current.right = play(current.right); \n }\n }\n return current;\n }", "List<Node> getNode(String str);", "public void start(Node n) {}", "public boolean checkCases(RBNode<T, E> node) {\r\n\t\t// case 1\r\n\t\tif (node.uniqueKey.compareTo(this.root.uniqueKey) == 0) {\r\n\t\t\tnode.color = 'b';\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\t// case 2\r\n\t\tif (grandPNode(node).color == 'b') {\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\t// case 3\r\n\t\tif ((node.parent.color == 'r') && (uncleNode(node).color == 'r')) {\r\n\t\t\tnode.parent.color = 'b';\r\n\t\t\tuncleNode(node).color = 'b';\r\n\t\t\tgrandPNode(node).color = 'r';\r\n\t\t\tcheckCases(grandPNode(node));\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\t// case 4\r\n\t\tif ((node.parent.color == 'r') && (uncleNode(node).color == 'b')) {\r\n\t\t\tif ((node.uniqueKey.compareTo(node.parent.uniqueKey) > 0)\r\n\t\t\t\t\t&& (node.parent.uniqueKey.compareTo(grandPNode(node).uniqueKey) < 0)) {\r\n\t\t\t\t// must be to the right of parent\r\n\t\t\t\tleftRotate(node.parent);\r\n\t\t\t\tnode = node.parent;\r\n\t\t\t}\r\n\t\t\tif ((node.uniqueKey.compareTo(node.parent.uniqueKey) < 0)\r\n\t\t\t\t\t&& (node.parent.uniqueKey.compareTo(grandPNode(node).uniqueKey) > 0)) {\r\n\t\t\t\trightRotate(node.parent);\r\n\t\t\t\tnode = node.parent;\r\n\t\t\t}\r\n\t\t\t// check case 5\r\n\t\t\tif ((node.parent.color == 'r') && (uncleNode(node).color == 'b')) {\r\n\t\t\t\tif ((node.uniqueKey.compareTo(node.parent.uniqueKey) < 0)\r\n\t\t\t\t\t\t&& (node.parent.uniqueKey.compareTo(grandPNode(node).uniqueKey) < 0)) {\r\n\t\t\t\t\tnode.parent.color = 'r';\r\n\t\t\t\t\trightRotate(grandPNode(node));\r\n\t\t\t\t}\r\n\t\t\t\tif ((node.uniqueKey.compareTo(node.parent.uniqueKey) > 0)\r\n\t\t\t\t\t\t&& (node.parent.uniqueKey.compareTo(grandPNode(node).uniqueKey) > 0)) {\r\n\t\t\t\t\tnode.parent.color = 'b';\r\n\t\t\t\t\tleftRotate(grandPNode(node));\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "public void setYesLink(DecisionTreeNode node) {\n this.setRightChild(node);\n }", "@Override\n\tpublic void select(Node node) {\n\t\tif (node.getArtifact() == null || !node.getArtifact().isOrdered() || !node.getArtifact().isSequenced() || node.getArtifact().getSequenceGraph() == null)\n\t\t\treturn;\n\n\t\tList<Node> orderedChildren = new ArrayList<Node>();\n\n\t\tthis.traverseSequenceGraph(node.getArtifact().getSequenceGraph().getRoot(), node.getChildren(), orderedChildren);\n\n\t\tnode.getChildren().clear();\n\t\tnode.getChildren().addAll(orderedChildren);\n\t}", "private void selectBranch () {\n \n TagsNode node = (TagsNode)tagsTree.getLastSelectedPathComponent();\n \n if (node == null) {\n // nothing selected\n }\n else\n if (node == position.getTagsNode()) {\n // If we're already positioned on the selected node, then no\n // need to do anything else (especially since it might set off\n // an endless loop).\n }\n else\n if (node.getNodeType() == TagsNode.ITEM) {\n // System.out.println (\"selectBranch selected item = \" + node.toString());\n boolean modOK = modIfChanged();\n if (modOK) {\n ClubEvent branch = (ClubEvent)node.getTaggable();\n int branchIndex = clubEventList.findByUniqueKey (branch);\n if (branchIndex >= 0) {\n position = clubEventList.positionUsingListIndex (branchIndex);\n position.setTagsNode (node);\n positionAndDisplay();\n } else {\n System.out.println (\"ClubPlanner.selectBranch\");\n System.out.println \n (\"-- Selected a branch from the tree that couldn't be found in the list\");\n System.out.println (\"-- node = \" + node.toString());\n System.out.println (\"-- event = \" + branch.getWhat());\n System.out.println (\"-- branch index = \" + String.valueOf(branchIndex));\n }\n }\n }\n else {\n // Do nothing until an item is selected\n // System.out.println (\"selectBranch selected node = \" + node.toString());\n }\n }", "@Override\n\tpublic void sampleNode() {\n\n\t}", "public void cartesianNodeAction(TreeStructure.Node<String> node, Stack<TreeStructure.Node<String>> stack){\n\n /* When we reach a helper node -> check num of children and for we pop the numOfNodeChildren from the stack\n If the node popped is a relation node then add it to the associatedRelationList. if a relation is a helper node then do the same thing\n as for it's parent until we reach to a node with no child nodes or with all its nodes to be relations! */\n int numOfNodeChildren = node.getChildren().size();\n LinkedList<TreeStructure.Node<String>> poppedNodes = new LinkedList<>();\n\n if(!stack.empty()) {\n for(int i=0; i<numOfNodeChildren; i++)\n if (!stack.empty())\n poppedNodes.addLast(stack.pop());\n for (int i = 0; i < poppedNodes.size(); i++)\n if (poppedNodes.get(i).getNodeStatus() == CARTESIAN_NODE_STATUS)\n cartesianNodeAction(poppedNodes.get(i), stack);\n else\n associatedRelations.addLast(poppedNodes.get(i).getData());\n }\n }", "public void actionPerformed(ActionEvent e) {\r\n mode = InputMode.BFS;\r\n instr.setText(\"Click one node to start Breath First Traversal from it.\");\r\n }" ]
[ "0.6324758", "0.6159298", "0.59504753", "0.5940442", "0.58827907", "0.5857384", "0.5776145", "0.5766443", "0.57437086", "0.5717373", "0.5659561", "0.5621774", "0.55920595", "0.54967266", "0.549277", "0.5481693", "0.54752845", "0.5414181", "0.539548", "0.5387095", "0.5385793", "0.53724456", "0.536914", "0.5366272", "0.5348296", "0.5319286", "0.53108025", "0.529872", "0.52867055", "0.5265348", "0.5235734", "0.5208494", "0.51960254", "0.5186348", "0.5185792", "0.5178983", "0.5169508", "0.5127634", "0.512532", "0.5122006", "0.51196176", "0.51103437", "0.5109343", "0.51070905", "0.51045585", "0.5090676", "0.50885844", "0.5085702", "0.5070718", "0.50566417", "0.50470024", "0.5046278", "0.5043753", "0.50423896", "0.5035185", "0.5026875", "0.5019453", "0.501536", "0.5003768", "0.49982", "0.49672046", "0.49612296", "0.49609965", "0.4958734", "0.49582255", "0.4943673", "0.49419093", "0.4937665", "0.4932652", "0.4927985", "0.49272683", "0.49177918", "0.49170336", "0.491484", "0.49086973", "0.49067745", "0.48962224", "0.4892385", "0.4889409", "0.48882446", "0.48881623", "0.48765633", "0.48761362", "0.48734686", "0.4870137", "0.486341", "0.4855904", "0.48555875", "0.48513108", "0.48441124", "0.48425624", "0.48273617", "0.48092586", "0.48033", "0.47968662", "0.47940168", "0.47906914", "0.47895676", "0.47892302", "0.47816095" ]
0.5489167
15
nodeChoice > | PrefixedName()
@Override public R visit(IRIref n, A argu) { R _ret = null; n.nodeChoice.accept(this, argu); return _ret; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract String toName(Object inNode);", "public String getPrefix() { return \"linknode\"; }", "EPREFIX_TYPE getName();", "private String node(String name) { return prefix + \"AST\" + name + \"Node\"; }", "String getNodeName();", "public String getUnprefixedNodeName(Node node) {\n if (node.getPrefix() != null) {\n return node.getNodeName().substring(node.getPrefix().length() + 1);\n }\n return node.getNodeName();\n }", "public abstract String getPrefix();", "String getPrefix();", "String getPrefix();", "String getPrefix();", "String getPrefix();", "private static String formatNode(PrefixMapping prefixMapping, Node node) {\n\t\tif (node.isVariable())\n\t\t\treturn \"?\" + node.getName();\n\t\telse if (node.isBlank())\n\t\t\treturn node.getBlankNodeLabel();\n\t\telse if (node.isURI()) {\n\t\t\t// If the node is a URI without a PREFIX (e.g. ?s rdf:type\n\t\t\t// <http://myOntologyClass>) return the <URI>\n\t\t\tString prefix = prefixMapping.getNsURIPrefix(node.getNameSpace());\n\n\t\t\tif (prefix == null)\n\t\t\t\treturn \"<\" + node.getURI() + \">\";\n\n\t\t\treturn prefix + \":\" + node.getLocalName();\n\t\t} else if (node.isLiteral())\n\t\t\treturn '\"' + node.getLiteralLexicalForm() + '\"';\n\n\t\treturn null;\n\t}", "public String getPrefix();", "public String getPrefix();", "private String getName(Name node) {\n\t\tif (node.isQualifiedName()) {\n\t\t\tQualifiedName name = (QualifiedName) node;\n\t\t\treturn getName(name.getQualifier());\n\t\t}\n\t\t//if it's a simple name\n\t\telse if (node.isSimpleName()) {\n\t\t\treturn node.toString();\n\t\t}\n\t\t\n\t\treturn null;\n\t}", "public String getNodeName(String propertyName);", "public String getName () { return n.getName(); }", "private static void printNode(@Nonnull Node<OWLClass> node) {\n DefaultPrefixManager pm = new DefaultPrefixManager(null, null, \"http://owl.man.ac.uk/2005/07/sssw/people#\");\n // Print out a node as a list of class names in curly brackets\n for (Iterator<OWLClass> it = node.getEntities().iterator(); it.hasNext();) {\n OWLClass cls = it.next();\n // User a prefix manager to provide a slightly nicer shorter name\n String shortForm = pm.getShortForm(cls);\n\n System.out.println(\"Short Name: \"+shortForm);\n //assertNotNull(shortForm);\n }\n }", "String getNameElement();", "public final String name() {\n return node.getNodeName();\n }", "String nameLabel();", "public int getNodeLabel ();", "public abstract String getSimpleName( );", "public String getNodeName (CyNode node) {\n return nodeHandler.getNodeName(node);\n }", "@Override\n @Transient\n protected String getASTNodeName() {\n return ((SuperMethodInvocation) getASTNode()).getName().toString();\n }", "public String getNameIdNode() {\r\n String nameIdNode = null;\r\n nameIdNode = this.getParam(ESCOConstantes.NAMEID_NODE);\r\n // Add the root element if not present\r\n if (null != nameIdNode && !nameIdNode.startsWith(ESCOConstantes.STEM_NAME_SEPARATOR)) {\r\n nameIdNode = ESCOConstantes.STEM_NAME_SEPARATOR + nameIdNode;\r\n }\r\n\r\n return nameIdNode;\r\n }", "public String getLocalName()\n/* */ {\n/* 346 */ return this.name;\n/* */ }", "String getNodeName() {\n return nodeName;\n }", "public java.lang.String getName(){\r\n return localName;\r\n }", "public java.lang.String getName(){\r\n return localName;\r\n }", "public java.lang.String getName(){\r\n return localName;\r\n }", "private void createNodeLabel(NodeAppearanceCalculator nac) {\r\n\t PassThroughMapping passThroughMapping = new PassThroughMapping(\"\",\r\n\t ObjectMapping.NODE_MAPPING);\r\n\t \r\n\t // change canonicalName to Label\r\n//\t passThroughMapping.setControllingAttributeName\r\n//\t (\"canonicalName\", null, false);\r\n\t passThroughMapping.setControllingAttributeName\r\n// (Semantics.LABEL, null, false);\r\n\t (Semantics.CANONICAL_NAME, null, false);\r\n\t\r\n\t GenericNodeLabelCalculator nodeLabelCalculator =\r\n\t new GenericNodeLabelCalculator(\"SimpleBioMoleculeEditor ID Label\"\r\n\t , passThroughMapping);\r\n\t nac.setNodeLabelCalculator(nodeLabelCalculator);\r\n\t }", "public String getTitle(XsdNode node) {\n\t\tString out = \"\";\n\n\t\t/** TODO: new */\n\t\tgetMaxCount(node);\n\n\t\tif (!node.isUsed) {\n\t\t\treturn out;\n\t\t}\n\n\t\tif (selections.contains(node)) {\n\t\t\tif (firstElement)\n\t\t\t\tfirstElement = false;\n\t\t\telse\n\t\t\t\tout += separator;\n\t\t\tout += node.getName() + nextNumber(node);\n\t\t}\n\n\t\tEnumeration children = node.children();\n\t\twhile (children.hasMoreElements()) {\n\t\t\tXsdNode child = (XsdNode) children.nextElement();\n\n\t\t\tif (child.isUsed) {\n\t\t\t\tswitch (((Annotated) child.getUserObject()).getStructureType()) {\n\t\t\t\tcase Structure.ELEMENT:\n\t\t\t\t\tint cpt = 0;\n\t\t\t\t\t/* create a NodeList with all childs with tagname */\n\t\t\t\t\tint maxCount = getMaxCount(child);\n\t\t\t\t\twhile (cpt < maxCount) {\n\t\t\t\t\t\tout += getTitle(child);\n\t\t\t\t\t\tcpt++;\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase Structure.ATTRIBUTE:\n\t\t\t\t\tif (firstElement)\n\t\t\t\t\t\tfirstElement = false;\n\t\t\t\t\telse\n\t\t\t\t\t\tout += separator;\n\t\t\t\t\tout += child.getName() + nextNumber(child);\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\tSystem.out\n\t\t\t\t\t\t\t.println(\"[PSI makers: flattener] ERROR: the node is neither an attribute nor an element\");\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn out;\n\t}", "public String prefix()\n\t {\n\t \t// create an empty string builder // \n\t \tStringBuilder sb = new StringBuilder();\n\t \t\n\t \t// fill the string builder//\n\t \tprefix(root, sb);\n\t \t\n\t \treturn sb.toString().trim();\n\t }", "public String getPrefixString() {\n/* 105 */ return this.prefix;\n/* */ }", "@RDF(\"foaf:name\")\n\tString getName();", "public NsName getName () { return name; }", "public String getNamePrefix() {\n if ( group==null )\n return super.getNamePrefix();\n else\n return group.getNamePrefix();\n }", "@AutoEscape\n\tpublic String getNode_1();", "public String\n getNodeName() \n {\n return pNodeName;\n }", "private String getLabelNodeAvl(){\n return concatLabel(this.root);\n }", "public TreeName (String prefix, String name) throws InvalidArgumentException {\n checkPrefix (prefix);\n checkName (name);\n \n this.prefix = prefix;\n this.name = name;\n this.rawName = getQualifiedName (prefix, name);;\n }", "public static String getPrefix(final Node node) throws Exception {\r\n\r\n String prefix = node.getPrefix();\r\n if (prefix == null) {\r\n String nodeName = node.getNodeName();\r\n int index = nodeName.indexOf(\":\");\r\n if (index != -1) {\r\n prefix = nodeName.substring(0, index);\r\n }\r\n }\r\n return prefix;\r\n }", "String getIdNode2();", "String getName() ;", "String generatNodeName(JCRNodeWrapper parent, String defaultLanguage, ExtendedNodeType nodeType, String targetName);", "@Override\n public String visit(NameExpr n, Object arg) {\n return null;\n }", "@Override\n\tpublic String getPrefix() {\n\t\treturn getClass().getSimpleName()+\":\"+prefix;\n\t}", "@Override\r\n\t\tpublic String getNodeName()\r\n\t\t\t{\n\t\t\t\treturn null;\r\n\t\t\t}", "public String getName() {\n return \"nickel\";\n }", "@Override\n\tpublic void setNodeName(String name) {\n\n\t}", "String getSimpleName();", "String getSimpleName();", "@Override\r\n\t\tpublic String getPrefix()\r\n\t\t\t{\n\t\t\t\treturn null;\r\n\t\t\t}", "String getIdNode1();", "public String toString() {return name().charAt(0) + name().substring(1).toLowerCase();}", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();" ]
[ "0.69554275", "0.68156326", "0.670158", "0.65966755", "0.6508045", "0.6371361", "0.62639415", "0.6164813", "0.6164813", "0.6164813", "0.6164813", "0.6124598", "0.61235255", "0.61235255", "0.6110582", "0.60484326", "0.6044702", "0.6004497", "0.5913019", "0.58930415", "0.5884381", "0.5848517", "0.58401746", "0.5829397", "0.58254397", "0.5812346", "0.57855666", "0.578411", "0.5774065", "0.5774065", "0.5774065", "0.57537246", "0.5747189", "0.57447755", "0.5740667", "0.57405025", "0.5737385", "0.57243055", "0.5722764", "0.5716003", "0.5710186", "0.5707616", "0.5707102", "0.56916517", "0.5690042", "0.56843716", "0.5682182", "0.5652375", "0.5651386", "0.564243", "0.56384164", "0.56322086", "0.56322086", "0.5631759", "0.5630919", "0.562932", "0.56192786", "0.56192786", "0.56192786", "0.56192786", "0.56192786", "0.56192786", "0.56192786", "0.56192786", "0.56192786", "0.56192786", "0.56192786", "0.56192786", "0.56192786", "0.56192786", "0.56192786", "0.56192786", "0.56192786", "0.56192786", "0.56192786", "0.56192786", "0.56192786", "0.56192786", "0.56192786", "0.56192786", "0.56192786", "0.56192786", "0.56192786", "0.56192786", "0.56192786", "0.56192786", "0.56192786", "0.56192786", "0.56192786", "0.56192786", "0.56192786", "0.56192786", "0.56192786", "0.56192786", "0.56192786", "0.56192786", "0.56192786", "0.56192786", "0.56192786", "0.56192786", "0.56192786" ]
0.0
-1
prologue > Prologue() nodeList > ( "[" Rule() "]" )+
@Override public R visit(SparqlSpin n, A argu) { R _ret = null; n.prologue.accept(this, argu); n.nodeList.accept(this, argu); return _ret; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void explore(RuleContext ctx) {\n if (ctx.getChildCount() != 1) {\n String ruleName = Python3Parser.ruleNames[ctx.getRuleIndex()];\n astRepresenation.append(ruleName);\n astRepresenation.append(\": \");\n astRepresenation.append(ctx.getText());\n astRepresenation.append(\"\\n\");\n }\n for (int i = 0; i < ctx.getChildCount(); i++) {\n ParseTree element = ctx.getChild(i);\n if (element instanceof RuleContext) {\n explore((RuleContext) element);\n }\n }\n }", "@Override\n\tpublic void preVisit(ASTNode node) {\n\t\tnodeList.add(node);\n\t}", "public List<AST> getChildNodes ();", "public void visit (Object expr) {\n\t\t\t\n\t\t\toffset += 2;\n\t\t\t\n\t\t\tif (expr instanceof VariableReferenceExpr) {\n\t\t\t\tvisit ( (VariableReferenceExpr) expr);\n\t\t\t} else if (expr instanceof UnionExpr) {\n\t\t\t\tvisit ( (UnionExpr) expr);\n\t\t\t} else if ( expr instanceof UnaryExpr) {\n\t\t\t\tvisit ( (UnaryExpr) expr);\n\t\t\t} else if ( expr instanceof TextNodeStep ) {\n\t\t\t\tvisit ( (TextNodeStep) expr) ;\n\t\t\t} else if ( expr instanceof RelationalExpr) {\n\t\t\t\tvisit ( (RelationalExpr) expr);\n\t\t\t} else if ( expr instanceof ProcessingInstructionNodeStep) {\n\t\t\t\tvisit ( (ProcessingInstructionNodeStep) expr) ;\n\t\t\t} else if ( expr instanceof Predicate) {\n\t\t\t\tvisit ( (Predicate) expr );\n\t\t\t} else if ( expr instanceof PathExpr) {\n\t\t\t\tvisit ( (PathExpr) expr) ;\n\t\t\t} else if ( expr instanceof NumberExpr) {\n\t\t\t\tvisit ( (NumberExpr) expr);\n\t\t\t} else if ( expr instanceof NameStep) {\n\t\t\t\tvisit ( (NameStep) expr);\n\t\t\t} else if ( expr instanceof MultiplicativeExpr) {\n\t\t\t\tvisit ( (MultiplicativeExpr) expr);\n\t\t\t} else if ( expr instanceof LogicalExpr) {\n\t\t\t\tvisit ( (LogicalExpr) expr);\n\t\t\t} else if ( expr instanceof LocationPath) {\n\t\t\t\tvisit ( (LocationPath) expr);\n\t\t\t} else if ( expr instanceof LiteralExpr) {\n\t\t\t\tvisit ( (LiteralExpr) expr);\n\t\t\t} else if ( expr instanceof FunctionCallExpr) {\n\t\t\t\tvisit ( (FunctionCallExpr) expr);\n\t\t\t} else if ( expr instanceof FilterExpr) {\n\t\t\t\tvisit ( (FilterExpr) expr);\n\t\t\t} else if ( expr instanceof EqualityExpr) {\n\t\t\t\tvisit ( (EqualityExpr) expr);\n\t\t\t} else if ( expr instanceof CommentNodeStep) {\n\t\t\t\tvisit ( (CommentNodeStep)expr);\n\t\t\t} else if ( expr instanceof AllNodeStep) {\n\t\t\t\tvisit ( (AllNodeStep) expr);\n\t\t\t} else if ( expr instanceof AdditiveExpr) {\n\t\t\t\tvisit ( (AdditiveExpr) expr);\n\t\t\t} else if (expr instanceof List) {\n\t\t\t\tvisitList((List)expr);\n\t\t\t} else if (expr != null) {\n\t\t\t\tout(\"Panic: Unknown expression kind {0} \",expr.getClass().getName()); //$NON-NLS-1$\n\t\t\t} else {\n\t\t\t\tout(\"null - unset\");\n\t\t\t}\n\t\t\t\n\t\t\toffset -= 2;\n\t\t}", "private void visit(RuleContext ctx, List<String> list) {\n String ruleName = MiniJavaParser.ruleNames[ctx.getRuleIndex()];\n //System.out.println(ruleName);\n List<String> localvarlist = new ArrayList<String>();\n for (int i=0;i<ctx.getChildCount();i++) {\n ParseTree element = ctx.getChild(i);\n if (element instanceof MiniJavaParser.VarDeclarationContext) {\n //System.out.println(\"varname: \"+element.getChild(1).getText());\n localvarlist.add(element.getChild(1).getText());\n }\n if (element instanceof MiniJavaParser.ClassDeclarationContext) {\n //System.out.println(\"varname: \"+element.getChild(1).getText());\n localvarlist.add(element.getChild(1).getText());\n }\n if (element instanceof MiniJavaParser.MainClassContext) {\n //System.out.println(\"varname: \"+element.getChild(1).getText());\n localvarlist.add(element.getChild(1).getText());\n }\n if (element instanceof MiniJavaParser.FormalListContext) {\n //System.out.println(\"varname: \"+element.getChild(1).getText());\n localvarlist.add(element.getChild(1).getText());\n }\n if (element instanceof MiniJavaParser.MethodDeclarationContext) {\n //System.out.println(\"varname: \"+element.getChild(1).getText());\n localvarlist.add(element.getChild(2).getText());\n }\n list.addAll(localvarlist);\n System.out.println(\"Mylist: \"+list);\n if (element instanceof TerminalNode) {\n checkTerminal((TerminalNode) element, list);\n }\n if (element.getChildCount()>0) {\n visit((RuleContext) element, list);\n }\n }\n }", "@Override\n public void enterEveryRule(ParserRuleContext ctx) {\n\n }", "public static void lmd_parseTree(){\n\n e_stack.push(\"$\");\n e_stack.push(pc.first_rule);\n head_node=new node(pc.first_rule);\n\n // Evaluate\n // Building the tree as well\n\n node cur=head_node;\n\n for(int i=0;i<token_stream.length;i++){\n System.out.println(e_stack);\n if(!pc.isTerminal(e_stack.peek())){\n String rule_token =pc.parse_Table.get(e_stack.pop(),token_stream[i]).right;\n\n if(!rule_token.equals(\"empty\")) {\n String to_put[]=rule_token.split(\" \");\n for(int j=to_put.length-1;j>=0;j--)\n e_stack.push(to_put[j]);\n\n // add children\n for(int j=0;j<to_put.length;j++)\n addNode(cur,to_put[j]);\n // set cur\n cur=cur.next;\n }\n else {\n // if rule_token is empty\n addNode(cur,\"empty\");\n cur=cur.next.next; // as \"empty\" node will not have any children\n }\n i--;\n }\n else {\n // if(e_stack.peek().equals(token_stream[i]))\n e_stack.pop();\n if(cur.next!=null ) cur=cur.next;\n }\n }\n }", "@Override\n public void visit(FuncallExpression node) {\n Expression fct = node.getFunction();\n if (!(fct instanceof Identifier) || !((Identifier) fct).getName().equals(\"rule\")) {\n return;\n }\n\n boolean firstArg = true;\n for (Argument.Passed arg : node.getArguments()) {\n if (!\"implementation\".equals(arg.getName()) && (!firstArg || arg.isKeyword())) {\n firstArg = false;\n continue;\n }\n firstArg = false;\n Expression val = arg.getValue();\n if (val instanceof Identifier) {\n ruleImplSet.add(((Identifier) val).getName());\n }\n }\n }", "static void visit (Node node, int[] lev, Node[] list) {\n\t\t\n\t}", "private void parse(Node node) {\r\n if (tracing && ! skipTrace) System.out.println(node.trace());\r\n skipTrace = false;\r\n switch(node.op()) {\r\n case Error: case Temp: case List: case Empty: break;\r\n case Rule: parseRule(node); break;\r\n case Id: parseId(node); break;\r\n case Or: parseOr(node); break;\r\n case And: parseAnd(node); break;\r\n case Opt: parseOpt(node); break;\r\n case Any: parseAny(node); break;\r\n case Some: parseSome(node); break;\r\n case See: parseSee(node); break;\r\n case Has: parseHas(node); break;\r\n case Not: parseNot(node); break;\r\n case Tag: parseTag(node); break;\r\n case Success: parseSuccess(node); break;\r\n case Fail: parseFail(node); break;\r\n case Eot: parseEot(node); break;\r\n case Char: parseChar(node); break;\r\n case Text: parseText(node); break;\r\n case Set: parseSet(node); break;\r\n case Range: parseRange(node); break;\r\n case Split: parseSplit(node); break;\r\n case Point: parsePoint(node); break;\r\n case Cat: parseCat(node); break;\r\n case Mark: parseMark(node); break;\r\n case Drop: parseDrop(node); break;\r\n case Act: parseAct(node); break;\r\n default: assert false : \"Unexpected node type \" + node.op(); break;\r\n }\r\n }", "protected DebugRuleElementMatch() {/* intentionally empty block */}", "private void doRule11(DescartesToken token) {\n this.addChild(2, token.getLineNum());\n this.addChild(40, token.getLineNum());\n this.addChild(3, token.getLineNum());\n this.addChild(31, token.getLineNum());\n this.addChild(41, token.getLineNum());\n }", "@Override\r\n\tpublic void visit() {\n\r\n\t}", "@Override\n\tpublic void visit(Parenthesis arg0) {\n\t\t\n\t}", "public static void main(String[] args) {\n\t\t\n\t\tScan sc = new Scan();\n\t\twhile(!sc.getRule().isEmpty()) {\n\t\t\tAtom a = sc.scanThis(sc.getRule(),\"\");\n\t\t\tSystem.out.println(a.toString());\n\t\t}\n\n\t}", "@Override\n public Object visitInstructionList(LitmusX86Parser.InstructionListContext ctx) {\n return visitChildren(ctx);\n }", "public static void parse()\r\n {\r\n int initial;\r\n initial=expression();\r\n stateList.get(0).setNext1(initial);\r\n stateList.get(0).setNext2(initial);\r\n if(index<=expression.length()-1)\r\n {\r\n error();\r\n }\r\n else\r\n {\r\n state st=new state(state,\"END\",-1,-1);\r\n stateList.add(st);\r\n }\r\n }", "ExprListRule createExprListRule();", "@Override\n public void visit(Tree.AnnotationList al) {\n }", "@Override\n\tpublic void visit(Parenthesis arg0) {\n\n\t}", "public static void main(String[] args) {\n\t\t\n//\t\t//PA4 a\n//\t\tArrayList<ArrayList<String>> rhs1 = new ArrayList<>();\n//\t\tArrayList<String> rhs11 = new ArrayList<>();\n//\t\trhs11.add(\"S\");rhs11.add(\"a\");\n//\t\tArrayList<String> rhs12 = new ArrayList<>();\n//\t\trhs12.add(\"b\");\t\t\n//\t\trhs1.add(rhs11);\n//\t\trhs1.add(rhs12);\n//\n//\t\tRule r1 = new Rule(\"S\", rhs1); // S -> Aa | b\n//\t\tArrayList<Rule> rules = new ArrayList<>();\n//\t\trules.add(r1);\n//\t\tGrammar g = new Grammar(rules);\n//\t\tg.eliminateEpsilonRule();\n//\t\tg.eliminateLR();\n//\t\tSystem.out.println(g);\n//\t\tSystem.out.println(\"----------------------\");\n\t\t\n//\t\t//PA4 b\n//\t\tArrayList<ArrayList<String>> rhs1 = new ArrayList<>();\n//\t\tArrayList<String> rhs11 = new ArrayList<>();\n//\t\trhs11.add(\"S\");rhs11.add(\"a\");rhs11.add(\"b\");\n//\t\tArrayList<String> rhs12 = new ArrayList<>();\n//\t\trhs12.add(\"c\");rhs12.add(\"d\");\t\t\n//\t\trhs1.add(rhs11);\n//\t\trhs1.add(rhs12);\n//\n//\t\tRule r1 = new Rule(\"S\", rhs1); // S -> Aa | b\n//\t\tArrayList<Rule> rules = new ArrayList<>();\n//\t\trules.add(r1);\n//\t\tGrammar g = new Grammar(rules);\n//\t\tg.eliminateEpsilonRule();\n//\t\tg.eliminateLR();\n//\t\tSystem.out.println(g);\n//\t\tSystem.out.println(\"----------------------\");\n\t\t\n//\t\t//PA4 c\n//\t\tArrayList<ArrayList<String>> rhs1 = new ArrayList<>();\n//\t\tArrayList<String> rhs11 = new ArrayList<>();\n//\t\trhs11.add(\"S\");rhs11.add(\"U\");rhs11.add(\"S\");\n//\t\tArrayList<String> rhs12 = new ArrayList<>();\n//\t\trhs12.add(\"S\");rhs12.add(\"S\");\t\t\n//\t\tArrayList<String> rhs13 = new ArrayList<>();\n//\t\trhs13.add(\"S\");rhs13.add(\"*\");\n//\t\tArrayList<String> rhs14 = new ArrayList<>();\n//\t\trhs14.add(\"(\");rhs14.add(\"S\");rhs14.add(\")\");\n//\t\tArrayList<String> rhs15 = new ArrayList<>();\n//\t\trhs15.add(\"a\");\n//\t\trhs1.add(rhs11);\n//\t\trhs1.add(rhs12);\n//\t\trhs1.add(rhs13);\n//\t\trhs1.add(rhs14);\n//\t\trhs1.add(rhs15);\n//\n//\n//\t\tRule r1 = new Rule(\"S\", rhs1); // S -> Aa | b\n//\t\tArrayList<Rule> rules = new ArrayList<>();\n//\t\trules.add(r1);\n//\t\tGrammar g = new Grammar(rules);\n//\t\tg.eliminateEpsilonRule();\n//\t\tg.eliminateLR();\n//\t\tSystem.out.println(g);\n//\t\tSystem.out.println(\"----------------------\");\n\t\t\n\t\t\n//\t\t//PA-3 d\n//\t\t\n//\t\tArrayList<ArrayList<String>> rhs1 = new ArrayList<>();\n//\t\tArrayList<String> rhs11 = new ArrayList<>();\n//\t\trhs11.add(\"rexpr\");rhs11.add(\"U\");rhs11.add(\"rterm\");\t\n//\t\tArrayList<String> rhs12 = new ArrayList<>();\n//\t\trhs12.add(\"rterm\");\n//\t\trhs1.add(rhs11);\n//\t\trhs1.add(rhs12);\n//\t\tRule r1 = new Rule(\"rexpr\", rhs1);\n//\n//\t\tArrayList<ArrayList<String>> rhs2 = new ArrayList<>();\n//\t\tArrayList<String> rhs21 = new ArrayList<>();\n//\t\trhs21.add(\"rterm\");rhs21.add(\"r factor\");\n//\t\tArrayList<String> rhs22 = new ArrayList<>();\n//\t\trhs22.add(\"r factor\");\n//\t\trhs2.add(rhs21);\n//\t\trhs2.add(rhs22);\n//\t\tRule r2 = new Rule(\"rterm\", rhs2);\n//\n//\t\tArrayList<ArrayList<String>> rhs3 = new ArrayList<>();\n//\t\tArrayList<String> rhs31 = new ArrayList<>();\n//\t\trhs31.add(\"r factor\");rhs31.add(\"*\");\n//\t\tArrayList<String> rhs32 = new ArrayList<>();\n//\t\trhs32.add(\"rprimary\");\n//\t\trhs3.add(rhs31);\n//\t\trhs3.add(rhs32);\n//\t\tRule r3 = new Rule(\"r factor\", rhs3);\n//\t\t\n//\t\tArrayList<ArrayList<String>> rhs4 = new ArrayList<>();\n//\t\tArrayList<String> rhs41 = new ArrayList<>();\n//\t\trhs41.add(\"a\");\n//\t\tArrayList<String> rhs42 = new ArrayList<>();\n//\t\trhs42.add(\"b\");\n//\t\trhs4.add(rhs41);\n//\t\trhs4.add(rhs42);\n//\t\tRule r4 = new Rule(\"rprimary\", rhs4);\n//\n//\t\tArrayList<Rule> rules = new ArrayList<>();\n//\t\trules.add(r1);\n//\t\trules.add(r2);\n//\t\trules.add(r3);\n//\t\trules.add(r4);\n//\t\tGrammar g = new Grammar(rules);\n//\t\tg.eliminateEpsilonRule();\n//\t\tg.eliminateLR();\n//\n//\t\tSystem.out.println(g);\n//\t\tSystem.out.println(\"----------------------\");\t\n\t\t\t\n//\t\t//PA-3 e\t\n//\t\t\n//\t\tArrayList<ArrayList<String>> rhs1 = new ArrayList<>();\n//\t\tArrayList<String> rhs11 = new ArrayList<>();\n//\t\trhs11.add(\"0\");\n//\t\tArrayList<String> rhs12 = new ArrayList<>();\n//\t\trhs12.add(\"T\");rhs12.add(\"1\");\t\t\n//\t\trhs1.add(rhs11);\n//\t\trhs1.add(rhs12);\n//\t\t\n//\t\tArrayList<ArrayList<String>> rhs2 = new ArrayList<>();\n//\t\tArrayList<String> rhs21 = new ArrayList<>();\n//\t\trhs21.add(\"1\");\n//\t\tArrayList<String> rhs22 = new ArrayList<>();\n//\t\trhs22.add(\"A\");rhs22.add(\"0\");\t\t\n//\t\trhs2.add(rhs21);\n//\t\trhs2.add(rhs22);\n//\n//\t\tRule r1 = new Rule(\"A\", rhs1);\n//\t\tRule r2 = new Rule(\"T\", rhs2);\n//\n//\t\tArrayList<Rule> rules = new ArrayList<>();\n//\t\trules.add(r1);\n//\t\trules.add(r2);\n//\t\tGrammar g = new Grammar(rules);\n//\t\tg.eliminateEpsilonRule();\n//\t\tg.eliminateLR();\n//\t\tSystem.out.println(g);\n//\t\tSystem.out.println(\"----------------------\");\n\n\n\t\t\n//\t\t//PA-3 f\n//\t\t\n//\t\tArrayList<ArrayList<String>> rhs1 = new ArrayList<>();\n//\t\tArrayList<String> rhs11 = new ArrayList<>();\n//\t\trhs11.add(\"B\");rhs11.add(\"C\");\t\n//\t\trhs1.add(rhs11);\n//\t\tRule r1 = new Rule(\"A\", rhs1);\n//\n//\t\tArrayList<ArrayList<String>> rhs2 = new ArrayList<>();\n//\t\tArrayList<String> rhs21 = new ArrayList<>();\n//\t\trhs21.add(\"B\");rhs21.add(\"b\");\n//\t\tArrayList<String> rhs22 = new ArrayList<>();\n//\t\trhs22.add(\"e\");\n//\t\trhs2.add(rhs21);\n//\t\trhs2.add(rhs22);\n//\t\tRule r2 = new Rule(\"B\", rhs2);\n//\n//\t\tArrayList<ArrayList<String>> rhs3 = new ArrayList<>();\n//\t\tArrayList<String> rhs31 = new ArrayList<>();\n//\t\trhs31.add(\"A\");rhs31.add(\"C\");\n//\t\tArrayList<String> rhs32 = new ArrayList<>();\n//\t\trhs32.add(\"a\");\n//\t\trhs3.add(rhs31);\n//\t\trhs3.add(rhs32);\n//\t\tRule r3 = new Rule(\"C\", rhs3);\n//\n//\t\tArrayList<Rule> rules = new ArrayList<>();\n//\t\trules.add(r1);\n//\t\trules.add(r2);\n//\t\trules.add(r3);\n//\t\tGrammar g = new Grammar(rules);\n//\t\tSystem.out.println(g);\n//\t\tg.eliminateEpsilonRule();\n//\t\tSystem.out.println(g);\n//\n//\t\tg.eliminateLR();\n//\n//\t\tSystem.out.println(g);\n//\t\tSystem.out.println(\"----------------------\");\n\n\t}", "public void printAst(){\n explore(ctx);\n }", "IRuleset add(IRuleset...rules);", "@Override\n public R visit(Rule n, A argu) {\n R _ret = null;\n n.consequent.accept(this, argu);\n n.nodeToken.accept(this, argu);\n n.antecedent.accept(this, argu);\n return _ret;\n }", "@Override\n public boolean visit(CssEval x, Context ctx) {\n out.printOpt(\"/* CssEval */\");\n out.newlineOpt();\n return false;\n }", "final public Expression TriplesNode(Exp stack) throws ParseException {\n Expression expression1;\n switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n case ATLIST:\n case ATPATH:\n case LPAREN:\n case AT:\n expression1 = Collection(stack);\n break;\n case LBRACKET:\n expression1 = BlankNodePropertyList(stack);\n break;\n default:\n jj_la1[224] = jj_gen;\n jj_consume_token(-1);\n throw new ParseException();\n }\n {if (true) return expression1;}\n throw new Error(\"Missing return statement in function\");\n }", "@Override public Integer visitDeclaracionMultiple(lenguajesParser.DeclaracionMultipleContext ctx) {\n for(TerminalNode x:ctx.ID()){\n System.out.println(x.getText());\n memoria.put(x.getText(),0);\n\n }\n //System.out.println(ctx.ID().getText());\n return null;\n }", "public void visit(Literal literal) {}", "@Override\r\n\tpublic Node visitSequence(SequenceContext ctx) {\n\t\treturn super.visitSequence(ctx);\r\n\t}", "ForLoopRule createForLoopRule();", "@Override\n public void visit(NamedExpressionList NamedExpressionList) {\n\n }", "@Override\r\n\tpublic void visit(BlockExpression blockExpression) {\n\r\n\t}", "public static void main(String[] args) {\n\t\tJNodeList nodelist=new JNodeList(new Node(new Elem(1,222)));\n\t\t\n\t\tnodelist.addTail(new Node(new Elem(2, 333)));\n\t\tnodelist.display();\n\t\t\n\n\t}", "@Override\r\n\tpublic Node visitSequential(SequentialContext ctx) {\n\t\treturn super.visitSequential(ctx);\r\n\t}", "@Override\n public void visit(ArrayDeclaration node) {\n }", "@Override\r\n\tpublic void visit(UnaryExpression unaryExpression) {\n\r\n\t}", "public void mytreevisit(RuleContext ctx) {\n List<String> varlist = new ArrayList<String>();\n visit(ctx,varlist);\n }", "static void parse() {\r\n i = 0;\r\n j = 0;\r\n k = 0;\r\n varList.add(\"0\");\r\n\r\n // Find the first lexeme\r\n lex();\r\n\r\n // Check if the tokens form a statement\r\n if(checkStatement()) {\r\n System.out.println(\"\\nGRAMMAR IS CORRECT!\");\r\n //System.out.println(grammar);\r\n }\r\n else\r\n System.out.println(\"\\nERROR - UNEXPECTED LEXEME: \\\"\" + lexeme + \"\\\"\");\r\n\r\n i = 0;\r\n j = 0;\r\n k = 0;\r\n index = 0;\r\n lex();\r\n translate();\r\n }", "@Override\n public R visit(SparqlCollection n, A argu) {\n R _ret = null;\n n.nodeToken.accept(this, argu);\n n.nodeList.accept(this, argu);\n n.nodeToken1.accept(this, argu);\n return _ret;\n }", "private void yy() {\n\n\t}", "void visit(ProcessingInstruction node);", "@Override\n public void enterEveryRule(final ParserRuleContext ctx) {\n }", "private void outputParseFunction(PrintWriter out, String startRuleName) {\n\t\t\n\t\tString tokenname = prefix + \"Token\";\n\t\t\n\t\tout.println(\" public \" + node(startRuleName) + \" parse() throws \" + prefix + \"ParserException, \" + prefix + \"TokenizerException {\");\n\t\tout.println(\" \" + tokenname + \" curToken;\");\n\t\tout.println();\n\t\tout.println(\" GrammarState curState;\");\n\t\tout.println();\n\t\tout.println(\" Stack<GrammarState> stateStack = new Stack<GrammarState>();\");\n\t\tout.println();\n\t\tout.println(\" \" + node(startRuleName) + \" parseTree = null;\");\n\t\tout.println(\" \" + prefix + \"ASTNode curNode = null;\");\n\t\tout.println();\n\t\tout.println(\" stateStack.push(new GrammarState(startRuleName, GrammarState.RULE));\");\n\t\tout.println();\n\t\tout.println(\" curToken = tokenizer.nextToken();\");\n\t\tout.println();\n\t\tout.println(\" while ( true ) {\");\n\t\tout.println();\n\t\tout.println(\" curState = stateStack.pop();\");\n\t\tout.println();\n\t\tout.println(\" if (curState == null) {\");\n\t\tout.println();\n\t\tout.println(\" \" + prefix + \"ASTNode nextNode = curNode.getParent();\");\n\t\tout.println();\n\t\tout.println(\" if (curNode.isMultiChild() && curNode.numChildren() == 1) {\");\n\t\tout.println(\" \" + prefix + \"ASTNode parentNode = curNode.getParent();\");\n\t\tout.println(\" parentNode.removeChild(curNode);\");\n\t\tout.println();\n\t\tout.println(\" \" + prefix + \"ASTNode childNode = curNode.getChild(0);\");\n\t\tout.println(\" curNode.removeChild(childNode);\");\n\t\tout.println(\" parentNode.addChild(childNode);\");\n\t\tout.println(\" }\");\n\t\tout.println(\" else if (curNode.numChildren() == 0) {\");\n\t\tout.println(\" curNode.getParent().removeChild(curNode);\");\n\t\tout.println(\" }\");\n\t\tout.println();\n\t\tout.println(\" curNode = nextNode;\");\n\t\tout.println();\n\t\tout.println(\" }\"); \n\t\tout.println(\" else if (curState.type == GrammarState.TOKEN) {\");\n\t\tout.println();\n\t\tout.println(\" if (!curState.name.equals(curToken.name)) {\");\n\t\tout.println(\" throw new \" + prefix + \"ParserException(\\\"Invalid token \\\\\\\"\\\" + curToken.value + \\\"\\\\\\\" (\\\" + curToken.name + \\\"), expected token (\\\" + curState.name + \\\")\\\"\t, curToken.line, curToken.column);\");\n\t\tout.println(\" }\");\n\t\tout.println();\n\t\tout.println(\" if (curToken.name.equals(\\\"eof\\\")) break;\");\n\t\tout.println();\n\t\tout.println(\" curNode.addChild(new \" + prefix + \"ASTToken(curToken.name, curToken.value));\");\n\t\tout.println();\t\t\n\t\tout.println(\" curToken = tokenizer.nextToken();\");\n\t\tout.println();\n\t\tout.println(\" }\");\n\t\tout.println(\" else if (curState.type == GrammarState.RULE) {\");\n\t\tout.println();\n\t\tout.println(\" GrammarRule newrule = table.get(curState.name).get(curToken.name);\");\n\t\tout.println();\t\t\t\t\n\t\tout.println(\" if (newrule == null) {\");\n\t\tout.println(\" String expected = \\\"\\\";\");\n\t\tout.println(\" for (String t : table.get(curState.name).keySet()) if (t != null) expected += t + \\\", \\\";\");\n\t\tout.println(\" throw new \" + prefix + \"ParserException(\\\"Invalid token \\\\\\\"\\\" + curToken.value + \\\"\\\\\\\" (\\\" + curToken.name + \\\") for rule \\\\\\\"\\\" + curState.name.replaceAll(\\\"\\\\\\\\{.*\\\", \\\"\\\") + \\\"\\\\\\\", expected one of (\\\" + expected.substring(0, expected.length()-2) + \\\")\\\", curToken.line, curToken.column);\");\n\t\tout.println(\" }\");\n\t\tout.println();\n\t\tout.println(\" if (!newrule.subrule) {\");\n\t\tout.println(\" if (parseTree == null) {\");\n\t\tout.println(\" curNode = parseTree = new \" + node(startRuleName) + \"(newrule.name, null, newrule.multi_child);\");\n\t\tout.println(\" } else {\");\n\t\tout.println(\" \" + prefix + \"ASTNode newnode = makenode(newrule.name, null, newrule.multi_child);\");\n\t\tout.println(\" curNode.addChild(newnode);\");\n\t\tout.println(\" curNode = newnode;\");\n\t\tout.println(\" }\");\n\t\tout.println();\n\t\tout.println(\" stateStack.push(null);\");\n\t\tout.println(\" }\");\n\t\tout.println();\n\t\tout.println(\" for (int i = newrule.graph.length-1; i >= 0; i--) {\");\n\t\tout.println(\" stateStack.push(newrule.graph[i]);\");\n\t\tout.println(\" }\");\n\t\tout.println(\" }\");\n\t\tout.println(\" else if (curState.type == GrammarState.EPSILON) {\");\n\t\tout.println(\" continue; //do nothing\");\n\t\tout.println(\" }\");\n\t\tout.println();\t\t\t\t\n\t\tout.println(\" }\");\n\t\tout.println();\n\t\tout.println(\" return parseTree;\");\n\t\tout.println();\n\t\tout.println(\" }\");\n\t\t\n\t}", "public interface Rule {\r\n\r\n\tString getTargetedPropertyName();\r\n\tboolean hasFinished();\r\n\tObject nextValue();\r\n\tObject[] getValues();\r\n\tpublic void setValues(Object[] values);\r\n\t\r\n}", "void gobble() {\n while( level > 0 &&\n !is(TK.LPAREN) &&\n !is(TK.ID) &&\n !is(TK.NUM) &&\n !is(TK.EOF) ) {\n scan();\n }\n }", "public R visit(StmtList n) {\n R _ret=null;\n coming_from_stmt_list=1;\n String s = (String) n.f0.accept(this);\n // String new1 = (String) n.f0.elementAt(0).toString();\n// System.out.println(\"check\"+new1);\n \n return _ret;\n }", "public static void parseAST(Node astNode) {\n\n int childrenNum = astNode.getChildCount();\n for (int i = 0; i < childrenNum; i++) {\n Node child = astNode.getChild(i);\n String astNodeType = child.getClass().getName();\n\n if (astNodeType.contains(\"Text\")) {\n if (child.getValue().contains(\"\\n\")) {\n lineNum++;\n }\n }\n if (astNodeType.contains(\"Element\")) {\n String localName = ((Element) child).getLocalName();\n if (localName.equals(\"decl_stmt\")) {\n String type = ((Element) child).getChildElements().get(0).getChildElements(\"type\", \"http://www.sdml.info/srcML/src\").get(0).getValue();\n String name = ((Element) child).getChildElements().get(0).getChildElements(\"name\", \"http://www.sdml.info/srcML/src\").get(0).getValue();\n candidates.add(new CppNode(name, type, localName, lineNum));\n } else if (localName.equals(\"function_decl\")) {\n String type = ((Element) child).getChildElements().get(0).getValue();\n String name = ((Element) child).getChildElements().get(1).getValue();\n candidates.add(new CppNode(name, type, localName, lineNum));\n } else if (localName.equals(\"function\")) {\n String type = ((Element) child).getChildElements().get(0).getValue();\n String name = ((Element) child).getChildElements().get(1).getValue();\n candidates.add(new CppNode(name, type, localName, lineNum));\n parseAST(child);\n } else if (localName.equals(\"block\")) {\n parseAST(child);\n } else if (localName.equals(\"expr_stmt\")) {\n Element exprChild = ((Element) ((Element) child).getChildElements().get(0).getChild(0));\n String exprType = exprChild.getLocalName();\n if (exprType.equals(\"name\")) {\n String name = exprChild.getValue();\n String type = \"\";\n candidates.add(new CppNode(name, type, localName, lineNum));\n } else if (exprType.equals(\"call\")) {\n String name = exprChild.getChild(0).getValue();\n String type = \"call\";\n candidates.add(new CppNode(name, type, localName, lineNum));\n parseAST(exprChild);\n }\n } else if (localName.equals(\"call\")) {\n String name = child.getChild(0).getValue();\n String type = \"call\";\n candidates.add(new CppNode(name, type, localName, lineNum));\n parseAST(child);\n } else if (localName.equals(\"argument\")) {\n Element c = ((Element) ((Element) child).getChildElements().get(0).getChild(0));\n if (c.getLocalName().equals(\"name\")) {\n String name = c.getValue();\n String type = \"\";\n candidates.add(new CppNode(name, type, localName, lineNum));\n } else {\n parseAST(child);\n }\n\n\n } else if (!entity.getTerminal().contains(localName)) {\n parseAST(child);\n }\n\n }\n }\n\n }", "@Override\n public String visit(NodeList n, Object arg) {\n return null;\n }", "@FunctionalInterface\npublic interface StepExpr extends Expr {\n\n /**\n * {@inheritDoc}\n *\n * @return evaluated XML node views\n */\n @Override\n <N extends Node> IterableNodeView<N> resolve(Navigator<N> navigator, NodeView<N> view, boolean greedy)\n throws XmlBuilderException;\n\n}", "public static void main(){\r\n\t\t\r\n\t\tArrayList<tok> pHolder = new ArrayList<tok>();\r\n\r\n\t\t pHolder.add(new tok(\"@\", \"@\"));\r\n\t\t\r\n\t\treturn;\r\n\t}", "@Override\n\tpublic Object visit(ASTIn node, Object data) {\n\t\tnode.jjtGetChild(0).jjtAccept(this, 0);\n\t\tSystem.out.print(\" in \");\n\t\tnode.jjtGetChild(1).jjtAccept(this, 0);\n\t\treturn null;\n\t}", "@Test\n void testExample1() {\n List<Token> input = Arrays.asList(\n new Token(Token.Type.IDENTIFIER, \"LET\", -1),\n new Token(Token.Type.IDENTIFIER, \"first\", -1),\n new Token(Token.Type.OPERATOR, \":\", -1),\n new Token(Token.Type.IDENTIFIER, \"INTEGER\", -1),\n new Token(Token.Type.OPERATOR, \"=\", -1),\n new Token(Token.Type.INTEGER, \"1\", -1),\n new Token(Token.Type.OPERATOR, \";\", -1),\n\n new Token(Token.Type.IDENTIFIER, \"WHILE\", -1),\n new Token(Token.Type.IDENTIFIER, \"first\", -1),\n new Token(Token.Type.OPERATOR, \"!=\", -1),\n new Token(Token.Type.INTEGER, \"10\", -1),\n new Token(Token.Type.IDENTIFIER, \"DO\", -1),\n\n new Token(Token.Type.IDENTIFIER, \"PRINT\", -1),\n new Token(Token.Type.OPERATOR, \"(\", -1),\n new Token(Token.Type.IDENTIFIER, \"first\", -1),\n new Token(Token.Type.OPERATOR, \")\", -1),\n new Token(Token.Type.OPERATOR, \";\", -1),\n\n new Token(Token.Type.IDENTIFIER, \"first\", -1),\n new Token(Token.Type.OPERATOR, \"=\", -1),\n new Token(Token.Type.IDENTIFIER, \"first\", -1),\n new Token(Token.Type.OPERATOR, \"+\", -1),\n new Token(Token.Type.INTEGER, \"1\", -1),\n new Token(Token.Type.OPERATOR, \";\", -1),\n\n new Token(Token.Type.IDENTIFIER, \"END\", -1)\n );\n Ast.Source expected = new Ast.Source(Arrays.asList(\n new Ast.Statement.Declaration(\"first\", \"INTEGER\",\n Optional.of(new Ast.Expression.Literal(BigInteger.valueOf(1)))),\n new Ast.Statement.While(\n new Ast.Expression.Binary(\"!=\",\n new Ast.Expression.Variable(\"first\"),\n new Ast.Expression.Literal(BigInteger.valueOf(10))\n ),\n Arrays.asList(\n new Ast.Statement.Expression(\n new Ast.Expression.Function(\"PRINT\", Arrays.asList(\n new Ast.Expression.Variable(\"first\"))\n )\n ),\n new Ast.Statement.Assignment(\"first\",\n new Ast.Expression.Binary(\"+\",\n new Ast.Expression.Variable(\"first\"),\n new Ast.Expression.Literal(BigInteger.valueOf(1))\n )\n )\n )\n )\n ));\n test(input, expected, Parser::parseSource);\n }", "@Override\n\tpublic void visit(ValueListExpression arg0) {\n\t\t\n\t}", "IRuleset add(IRuleset rule);", "@Override\n\tpublic Void visit(Program program) {\n\t\tprintIndent(\"program\");\n indent++;\n for (var stmt : program.stmts) {\n \tstmt.accept(this);\n }\n indent--;\n\t\treturn null;\n\t}", "@Override\n public void visit(final OpList opList) {\n if (LOG.isDebugEnabled()) {\n LOG.debug(\"Starting visiting OpList\");\n }\n addOp(new OpList(rewriteOp1(opList)));\n }", "@Test(timeout = 4000)\n public void test022() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"[ (\");\n xPathLexer0.setPreviousToken((Token) null);\n assertEquals(\"[ (\", xPathLexer0.getXPath());\n }", "void visit(Text node);", "public void parseFunctions(){\n\t\t\n\t}", "E9Rule createE9Rule();", "public Object visit(ASTOr node, Object data) {\n for (int i = 0; i < node.jjtGetNumChildren(); i++) {\n List args = (List) node.jjtGetChild(i).jjtAccept(this, data);\n //((List) data).addAll(args);\n }\n return data;\n }", "final public Expression Collection(Exp stack) throws ParseException {\n ArrayList<Expression> list;\n Expression node, head;\n RDFList rlist;\n int arobase = ASTQuery.L_DEFAULT, save = ASTQuery.L_LIST;\n list = new ArrayList<Expression>();\n save = astq.getListType();\n switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n case ATLIST:\n case ATPATH:\n case AT:\n switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n case ATLIST:\n jj_consume_token(ATLIST);\n arobase = ASTQuery.L_LIST; astq.setListType(arobase);\n break;\n case ATPATH:\n case AT:\n switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n case AT:\n jj_consume_token(AT);\n break;\n case ATPATH:\n jj_consume_token(ATPATH);\n break;\n default:\n jj_la1[225] = jj_gen;\n jj_consume_token(-1);\n throw new ParseException();\n }\n arobase = ASTQuery.L_PATH; astq.setListType(arobase);\n break;\n default:\n jj_la1[226] = jj_gen;\n jj_consume_token(-1);\n throw new ParseException();\n }\n break;\n default:\n jj_la1[227] = jj_gen;\n ;\n }\n jj_consume_token(LPAREN);\n label_42:\n while (true) {\n node = GraphNode(stack);\n list.add(node);\n switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n case Q_IRIref:\n case QNAME_NS:\n case QNAME:\n case BLANK_NODE_LABEL:\n case VAR1:\n case VAR2:\n case ATLIST:\n case ATPATH:\n case TRUE:\n case FALSE:\n case INTEGER:\n case DECIMAL:\n case DOUBLE:\n case STRING_LITERAL1:\n case STRING_LITERAL2:\n case STRING_LITERAL_LONG1:\n case STRING_LITERAL_LONG2:\n case LPAREN:\n case LBRACKET:\n case ANON:\n case AT:\n ;\n break;\n default:\n jj_la1[228] = jj_gen;\n break label_42;\n }\n }\n jj_consume_token(RPAREN);\n head = list(stack, list, arobase);\n astq.setListType(save);\n {if (true) return head;}\n throw new Error(\"Missing return statement in function\");\n }", "public Node program() {\r\n\r\n this.CheckError(\"PROGRAM\");\r\n\r\n\r\n Node n_program = new Node(\"program\");\r\n n_program.setParent(null);\r\n System.out.println(\"read node from app: \"+n_program.getData());\r\n System.out.println(\" :parent: \"+n_program.getParent());\r\n\r\n Node n_declarations = n_program.setChildren(\"decl list\");\r\n System.out.println(\"read node from app :data: \"+n_declarations.getData());\r\n System.out.println(\" :parent: \"+n_declarations.getParent().getData());\r\n\r\n this.declaration(n_declarations);\r\n\r\n this.CheckError(\"BEGIN\");\r\n\r\n Node n_statementSequence = n_program.setChildren(\"stmt list\");\r\n this.statementSequence(n_statementSequence);\r\n\r\n this.CheckError(\"END\");\r\n\r\n System.out.println(\":::: Parsing Successful Hamid ::::\");\r\n\r\n return n_program;\r\n //////////////////////////////////////////// writeout PROGRAM treee -----------------\r\n //////////////////////////////////////////////////////////////////////////////////////\r\n ///////////////////////////////////////////////////////////////////////////////////\r\n ///////////output test generator\r\n /////////////////////////////////////////////////////////////////////////////////\r\n\r\n\r\n /*Node iteration = n_program;\r\n for (int i=0; i<iteration.childrenSize();i++){\r\n System.out.print(\"| \"+iteration.getChildren(i).getData()+\"|\");\r\n System.out.print(\" \");\r\n }\r\n System.out.println();\r\n iteration = n_program.getChildren(0);\r\n for (int i=0; i<iteration.childrenSize();i++){\r\n System.out.print(\"| \"+iteration.getChildren(i).getData()+\" |\");\r\n }\r\n System.out.print(\" \");\r\n iteration = n_program.getChildren(1);\r\n for (int i=0; i<iteration.childrenSize();i++){\r\n System.out.print(\"| \"+iteration.getChildren(i).getData()+\" |\");\r\n }\r\n System.out.println(\"\");\r\n System.out.print(\" \");\r\n Node iteration0= iteration.getChildren(0);\r\n for (int i=0; i<iteration0.childrenSize();i++){\r\n System.out.print(\"| \"+iteration0.getChildren(i).getData()+\" |\");\r\n }\r\n System.out.println();\r\n System.out.print(\" \");\r\n Node iteration1= iteration.getChildren(1);\r\n for (int i=0; i<iteration1.childrenSize();i++){\r\n System.out.print(\"| \"+iteration1.getChildren(i).getData()+\" |\");\r\n }\r\n System.out.println();\r\n System.out.print(\" \");\r\n Node iteration2= iteration.getChildren(2);\r\n for (int i=0; i<iteration2.childrenSize();i++){\r\n System.out.print(\"| \"+iteration2.getChildren(i).getData()+\" |\");\r\n }\r\n System.out.println();\r\n System.out.print(\" \");\r\n Node iteration3= iteration.getChildren(3);\r\n for (int i=0; i<iteration3.childrenSize();i++){\r\n System.out.print(\"| \"+iteration3.getChildren(i).getData()+\" |\");\r\n }\r\n System.out.println();\r\n System.out.print(\" \");\r\n Node iteration4= iteration.getChildren(4);\r\n for (int i=0; i<iteration4.childrenSize();i++){\r\n System.out.print(\"| \"+iteration4.getChildren(i).getData()+\" |\");\r\n }\r\n System.out.println();\r\n System.out.print(\" w\\n\");\r\n System.out.print(\" \");\r\n Node iteration0w= iteration2.getChildren(0);\r\n for (int i=0; i<iteration0w.childrenSize();i++){\r\n System.out.print(\"| \"+iteration0w.getChildren(i).getData()+\" |\");\r\n }\r\n System.out.print(\"\\n \");\r\n Node iteration1w= iteration2.getChildren(1);\r\n for (int i=0; i<iteration1w.childrenSize();i++){\r\n System.out.print(\"| \"+iteration1w.getChildren(i).getData()+\" |\");\r\n }\r\n System.out.print(\"\\n \");\r\n iteration= iteration0w.getChildren(0);\r\n for (int i=0; i<iteration.childrenSize();i++){\r\n System.out.print(\"| \"+iteration.getChildren(i).getData()+\" |\");\r\n }*/\r\n\r\n }", "public Rule itBlock()\n \t{\n \t\treturn sequence(BRACKET_L, zeroOrMore(stmt()), BRACKET_R);\n \t}", "NextDeclRule createNextDeclRule();", "public node cnf() { rule: anything can sit immediately below ands\n //\n System.out.println( \" should not call \" );\n System.exit( 1 );\n return null;\n }", "void genAst();", "@Test\n\tpublic void test6()\n\t{\n\t\tassertEquals(\n\t\t\t\"$1: {<web> page}\\n\" +\n\t\t\t\"$2: (webpage|$1)\\n\" +\n\t\t\t\"$webpage: {<spacex> $2}\",\n\t\t\texplodeRulesAndCreateString(\"webpage: spacex (webpage|(web page))\")\n\t\t);\n\t}", "@Override\r\n\tpublic Object visitProgram (Program program, Object arg) throws Exception {\r\n\t\tfor (ASTNode node: program.decOrStatement()) {\r\n\t\t\tnode.visit(this, arg);\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "@Test(timeout = 4000)\n public void test061() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\") (\");\n Token token0 = xPathLexer0.whitespace();\n assertEquals(\"\", token0.getTokenText());\n assertEquals((-2), token0.getTokenType());\n }", "public R visit(Goal n) {\n R _ret=null;\n n.f0.accept(this);\n System.out.println(\"MAIN \");\n String s1 = (String)n.f1.accept(this);\n System.out.println(\" \"+\"END\");\n n.f2.accept(this);\n String s3 = (String)n.f3.accept(this); //todo.\n n.f4.accept(this);\n return _ret;\n }", "public R visit(StmtList n) {\n R _ret=null;\n n.f0.accept(this);\n return _ret;\n }", "public abstract void visit();", "@org.junit.Test\n public void constrCompelemNodeid4() {\n final XQuery query = new XQuery(\n \"for $x in <?pi content?>, $y in element elem {$x} return exactly-one($y/processing-instruction()) is $x\",\n ctx);\n try {\n result = new QT3Result(query.value());\n } catch(final Throwable trw) {\n result = new QT3Result(trw);\n } finally {\n query.close();\n }\n test(\n assertBoolean(false)\n );\n }", "public IAstPreprocessorNode[] getPreprocessorNodes();", "void compileExpressionList() {\n tagBracketPrinter(EXPRESSION_LIST_TAG, OPEN_TAG_BRACKET);\n try {\n compileExpressionListHelper();\n } catch (IOException e) {\n e.printStackTrace();\n }\n tagBracketPrinter(EXPRESSION_LIST_TAG, CLOSE_TAG_BRACKET);\n\n }", "private LinkedList<Element> parseArray() {\r\n \r\n LinkedList<Element> array=new LinkedList<>();//create linked list\r\n \r\n char chr=next();//consume first character\r\n assert chr=='[';//assert first character is an open square bracket\r\n while (chr!=']') {//until closing bracket\r\n \r\n switch (peek()) {//switch on next character\r\n case ' ':\r\n case '\\t':\r\n case '\\n':\r\n case '\\r': chr=next(); //discard whitespace\r\n break;\r\n case '\"': array.add(new ScalarElement(Element.STRING,parseString()));//parse string \r\n break;\r\n case '-':\r\n case '0':\r\n case '1':\r\n case '2':\r\n case '3':\r\n case '4':\r\n case '5':\r\n case '6':\r\n case '7':\r\n case '8':\r\n case '9': array.add(new ScalarElement(Element.NUMBER,parseNumber()));//parse number\r\n break;\r\n case 'f':\r\n case 't': array.add(new ScalarElement(Element.BOOLEAN,parseBoolean()));//parse boolean token\r\n break;\r\n case 'n': array.add(new ScalarElement(Element.NULL,parseNull()));//parse null token\r\n break;\r\n\r\n case '{': array.add(new ObjectElement(parseObject()));//parse object\r\n break;\r\n case '[': array.add(new ArrayElement(parseArray()));//parse array\r\n break;\r\n case ',': chr=next(); //consume the comma character\r\n break;\r\n case ']': chr=next(); //consume the close bracket character\r\n break;\r\n default : throw new RuntimeException(\"Invalid syntax : \"+context());//holy syntax batman...\r\n\r\n }//switch on next character \r\n \r\n }//until closing bracket \r\n \r\n return array;//looking good Huston\r\n \r\n }", "void tag4() \n\t{\n\t\t/** javadoc_single_style_tag: This is a JavaDoc single style tag.\n\t}\n\t\n\t/** Test a JavaDoc multi style comment in souce code.\n\t * \n\t */\n\tvoid tag5() \n\t{\n\t\t/** \n\t\t * javadoc_multi_style_tag: This is a JavaDoc multi style tag.\n\t\t */\n\t}\n\t\n\t/** Test a tag not at the start of a line.\n\t * \n\t */\n\tvoid tag6() \n\t{\n\t\t/** \n\t\t * The tag \"not_start_of_line_tag\" should NOT be found.\n\t\t */\n\t}\n\t\n\t/** Test a tag variable in source code.\n\t * \n\t */\n\tvoid tag7() \n\t{\n\t\tint source_code_variable_tag;\n\t\t\n\t\tsource_code_variable_tag += 7;\n\t}\n\n}", "public Set<SWRLRule> translate() throws Exception {\n NodeList nodeList = doc.getElementsByTagName(\"rule\");\n if (nodeList == null) {\n throw new Exception(\"No rule tag in xml file\");\n }\n Set<SWRLRule> ruleSwrl = new HashSet<SWRLRule>();\n for (int i = 0; i < nodeList.getLength(); i++) {\n Set<SWRLAtom> antecedent = new HashSet<SWRLAtom>();\n Set<SWRLAtom> consequent = new HashSet<SWRLAtom>();\n Node node = nodeList.item(i);\n NodeList children = node.getChildNodes();\n for (int j = 0; j < children.getLength(); j++) {\n Node child = children.item(j);\n switch (child.getNodeName()) {\n case \"if\": {\n generateAntecedent((Element) child, antecedent);\n break;\n }\n case \"then\": {\n generateConsequent((Element) child, consequent);\n break;\n }\n }\n }\n SWRLRule rules = factory.getSWRLRule(antecedent, consequent);\n ruleSwrl.add(rules);\n }\n return ruleSwrl;\n }", "@Override\n\tpublic void visit(Addition arg0) {\n\t\t\n\t}", "List<? extends Rule> getRules();", "private void parseRule(Node node) {\r\n if (switchTest) return;\r\n parse(node.right());\r\n }", "public IdentifierListNode getTargets()throws ClassCastException;", "@Override\n public R visit(BlankNodePropertyList n, A argu) {\n R _ret = null;\n n.nodeToken.accept(this, argu);\n n.propertyListNotEmpty.accept(this, argu);\n n.nodeToken1.accept(this, argu);\n return _ret;\n }", "final public LogicalPlan Parse() throws ParseException {\n /*@bgen(jjtree) Parse */\n SimpleNode jjtn000 = new SimpleNode(JJTPARSE);\n boolean jjtc000 = true;\n jjtree.openNodeScope(jjtn000);LogicalOperator root = null;\n Token t1;\n Token t2;\n LogicalPlan lp = new LogicalPlan();\n log.trace(\"Entering Parse\");\n try {\n if (jj_2_1(3)) {\n t1 = jj_consume_token(IDENTIFIER);\n jj_consume_token(79);\n t2 = jj_consume_token(IDENTIFIER);\n switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n case AS:\n jj_consume_token(AS);\n jj_consume_token(80);\n TupleSchema();\n jj_consume_token(81);\n break;\n default:\n jj_la1[0] = jj_gen;\n ;\n }\n jj_consume_token(82);\n {if (true) throw new ParseException(\n \"Currently PIG does not support assigning an existing relation (\" + t1.image + \") to another alias (\" + t2.image + \")\");}\n } else if (jj_2_2(2)) {\n t1 = jj_consume_token(IDENTIFIER);\n jj_consume_token(79);\n root = Expr(lp);\n jj_consume_token(82);\n root.setAlias(t1.image);\n addAlias(t1.image, root);\n pigContext.setLastAlias(t1.image);\n } else {\n switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n case DEFINE:\n case LOAD:\n case FILTER:\n case FOREACH:\n case ORDER:\n case DISTINCT:\n case COGROUP:\n case JOIN:\n case CROSS:\n case UNION:\n case GROUP:\n case STREAM:\n case STORE:\n case LIMIT:\n case SAMPLE:\n case IDENTIFIER:\n case 80:\n root = Expr(lp);\n jj_consume_token(82);\n break;\n case SPLIT:\n jj_consume_token(SPLIT);\n root = SplitClause(lp);\n jj_consume_token(82);\n break;\n default:\n jj_la1[1] = jj_gen;\n jj_consume_token(-1);\n throw new ParseException();\n }\n }\n jjtree.closeNodeScope(jjtn000, true);\n jjtc000 = false;\n if(null != root) {\n log.debug(\"Adding \" + root.getAlias() + \" \" + root + \" to the lookup table \" + aliases);\n\n //Translate all the project(*) leaves in the plan to a sequence of projections\n ProjectStarTranslator translate = new ProjectStarTranslator(lp);\n translate.visit();\n\n addLogicalPlan(root, lp);\n\n try {\n log.debug(\"Root: \" + root.getClass().getName() + \" schema: \" + root.getSchema());\n } catch(FrontendException fee) {\n ParseException pe = new ParseException(fee.getMessage());\n pe.initCause(fee);\n {if (true) throw pe;}\n }\n }\n\n ArrayList<LogicalOperator> roots = new ArrayList<LogicalOperator>(lp.getRoots().size());\n for(LogicalOperator op: lp.getRoots()) {\n roots.add(op);\n }\n\n Map<LogicalOperator, Boolean> rootProcessed = new HashMap<LogicalOperator, Boolean>();\n for(LogicalOperator op: roots) {\n //At this point we have a logical plan for the pig statement\n //In order to construct the entire logical plan we need to traverse\n //each root and get the logical plan it belongs to. From each of those\n //plans we need the predecessors of the root of the current logical plan\n //and so on. This is a computationally intensive operatton but should\n //be fine as its restricted to the parser\n\n LogicalPlan rootPlan = aliases.get(op);\n if(null != rootPlan) {\n attachPlan(lp, op, rootPlan, rootProcessed);\n rootProcessed.put(op, true);\n }\n }\n\n log.trace(\"Exiting Parse\");\n {if (true) return lp;}\n } catch (Throwable jjte000) {\n if (jjtc000) {\n jjtree.clearNodeScope(jjtn000);\n jjtc000 = false;\n } else {\n jjtree.popNode();\n }\n if (jjte000 instanceof RuntimeException) {\n {if (true) throw (RuntimeException)jjte000;}\n }\n if (jjte000 instanceof ParseException) {\n {if (true) throw (ParseException)jjte000;}\n }\n {if (true) throw (Error)jjte000;}\n } finally {\n if (jjtc000) {\n jjtree.closeNodeScope(jjtn000, true);\n }\n }\n throw new Error(\"Missing return statement in function\");\n }", "@Override\n public R visit(Prologue n, A argu) {\n R _ret = null;\n n.nodeOptional.accept(this, argu);\n n.nodeListOptional.accept(this, argu);\n return _ret;\n }", "void startVisitingObject(Object node);", "private LispTree getRuleLispTree() {\n LispTree tree = LispTree.proto.newList();\n tree.addChild(\"rules\");\n getRuleLispTreeRecurs(tree);\n return tree;\n }", "@Override\n\tpublic Object visit(ASTStart node, Object data) {\n\t\tnode.childrenAccept(this, data);\n\t\tSystem.out.println();\n\t\treturn null;\n\t}", "public void parseSubs(){\n\t\t\n\t\t\n\t}", "@Override\r\n\tpublic void visit(PointerExpression pointerExpression) {\n\r\n\t}", "@Override\r\n\tpublic void visit(FunctionDeclaration functionDeclaration) {\n\r\n\t}", "@Override\r\n\tpublic void visit(FunctionCallExpression functionCallExpression) {\n\r\n\t}", "@Test(timeout = 4000)\n public void test069() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer();\n xPathLexer0.nextToken();\n xPathLexer0.setXPath(\"y]jad[mR3w=N\");\n xPathLexer0.leftParen();\n xPathLexer0.doubleColon();\n xPathLexer0.pipe();\n xPathLexer0.consume();\n xPathLexer0.minus();\n Token token0 = xPathLexer0.identifierOrOperatorName();\n assertNull(token0);\n }", "public void prog() {\r\n \t\r\n // First parse declarations\r\n decls();\r\n // Next parse expression\r\n ArrayList<Integer> values = new ArrayList<Integer>(); \r\n values = exprs(values);\r\n for(int i = 0; i < values.size(); i++) {\r\n \tSystem.out.print(values.get(i) + \" \");\r\n }\r\n System.out.println();\r\n \r\n \r\n //int value = expr();\r\n // Finally parse the end of file character\r\n match(TokenType.END_OF_FILE);\r\n //System.out.println(\"Value of expression is: \" + value);\r\n }", "public List<? extends Declarator> directlyDeclaredElements();", "@Test(timeout = 4000)\n public void test076() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"5!\");\n Token token0 = xPathLexer0.star();\n xPathLexer0.setPreviousToken(token0);\n assertEquals(20, token0.getTokenType());\n assertEquals(\"5\", token0.getTokenText());\n \n Token token1 = xPathLexer0.identifierOrOperatorName();\n assertEquals(15, token1.getTokenType());\n assertEquals(\"\", token1.getTokenText());\n }", "public static void main(String[] args)\n {\n /*\n * Create a new loader with default factory.\n * \n * A factory will create all rule components when loader requires them\n * Default engine is used that creates all the default constructs in:\n * org.achacha.rules.compare\n * org.achacha.rules.condition\n * org.achacha.rules.action\n * \n * RulesEngineFactoryExtension can be used to extend a default factory while keeping existing constructs\n * for basic rules the default factory provides a wide variety of comparators and action elements\n * \n * The loader uses the factory to resolve where the rule parts are loaded from\n * There are several load types (file system, in-memory string, in-memory XML)\n * Here we will configure a simple in-memory string based loader and add the\n * conditions and actions from constants\n */\n RulesEngineLoaderImplMappedString loader = new RulesEngineLoaderImplMappedString(new RulesEngineFactory());\n \n // Add a simple rule and call it 'alwaysTrue', we will execute this rule using this name\n loader.addRule(\"alwaysTrue\", SIMPLE_RULE);\n \n /*\n * Create a rules engine that uses the loader and factory we just created\n * Normally these 3 objects would be someone retained so we don't have to re-parse the rules every execution\n * However this is a tutorial example\n */\n RulesEngine engine = new RulesEngine(loader);\n \n /////////////////////////// Everything above is initialization ///////////////////////////////////////\n \n /////////////////////////// Everything below is rule execution ///////////////////////////////////////\n /*\n * Now we need to have some input for the rule to process but since were are using constants in comparison we can just pass\n * an empty input model\n * \n * We use dom4j XML Element for input\n * \n * <request>\n * <input />\n * </request>\n */\n Element request = DocumentHelper.createElement(\"request\");\n request.addElement(\"input\");\n \n /*\n * RuleContext is an object that holds the input, output, event log, etc for a given rule execution\n * The engine can create a new context for us if we specify the input for the rule\n */\n RuleContext ruleContext = engine.createContext(request);\n \n /*\n * Now that we have set up our context we can execute the rule\n * Since we used addRule above and called this rule 'alwaysTrue', this is how we invoke this rule\n * \n * NOTE:\n * you can run multiple rules sequentially against the same context\n * some actions can modify input context and some conditions can check output context\n * so rules can depend on other rules\n */\n engine.execute(ruleContext, \"alwaysTrue\");\n \n /*\n * Display the output model\n * \n * Since the action we used is:\n * \n * <Action Operator='OutputValueSet'>\"\n * <Path>/result</Path>\"\n * <Value Source='Constant'><Data>yes</Data></Value>\"\n * </Action>\"\n * \n * We get the following output model:\n * <output><result>yes</result></output>\n * \n * NOTE: The path on the output action is always relative to the output element\n */\n System.out.println(\"Output Model\\n------------\");\n System.out.println(ruleContext.getOutputModel().asXML());\n }", "public void run()\n {\n yyparse();\n }", "private void parse() {\r\n for (int length = sourceCode.length(); index < length; ++index) {\r\n char c = sourceCode.charAt(index);\r\n if (!Character.isWhitespace(c)) {\r\n ArrayList<String> tokens = tokenizeStatement(sourceCode);\r\n if (tokens != null) {\r\n parseStatementTokens(tokens);\r\n } else {\r\n break;\r\n }\r\n }\r\n }\r\n }" ]
[ "0.5813386", "0.5702719", "0.5466256", "0.5465004", "0.54257923", "0.5424313", "0.53438026", "0.53296894", "0.5325606", "0.53042644", "0.52811927", "0.5258028", "0.52292687", "0.521862", "0.51758856", "0.5173164", "0.5157507", "0.51414806", "0.5133692", "0.51289934", "0.5117281", "0.5106217", "0.5100918", "0.50974005", "0.5095177", "0.50827146", "0.5069672", "0.5043585", "0.49938363", "0.4983628", "0.49739188", "0.49718422", "0.49689764", "0.49587467", "0.49520665", "0.4949031", "0.49445057", "0.49412856", "0.49409166", "0.49391863", "0.49312788", "0.49235865", "0.4915012", "0.491127", "0.49097824", "0.4909212", "0.49087483", "0.49084446", "0.4907495", "0.48926815", "0.48919684", "0.48909235", "0.48852283", "0.48835155", "0.4868243", "0.4861457", "0.4849405", "0.48408556", "0.48391175", "0.48320013", "0.4830078", "0.48283276", "0.4824289", "0.48198518", "0.48136464", "0.4812146", "0.4808756", "0.4805472", "0.48046166", "0.48028955", "0.47971708", "0.4796498", "0.47962716", "0.47952318", "0.47945178", "0.47919077", "0.4782384", "0.47819588", "0.47762138", "0.47757626", "0.47757125", "0.47751057", "0.47728673", "0.477207", "0.47696972", "0.4764809", "0.47633144", "0.47625902", "0.47593263", "0.4756973", "0.47499785", "0.4747936", "0.4736696", "0.47360224", "0.47291642", "0.47262806", "0.47257462", "0.47257417", "0.47236362", "0.47202334" ]
0.4965141
33
consequent > Consequent() nodeToken > antecedent > Antecedent()
@Override public R visit(Rule n, A argu) { R _ret = null; n.consequent.accept(this, argu); n.nodeToken.accept(this, argu); n.antecedent.accept(this, argu); return _ret; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void generateAntecedent(Element element, Set<SWRLAtom> antecedent) throws Exception {\n String name = element.getAttribute(\"name\");\n name = TextUtil.formatName(name);\n String operator = element.getAttribute(\"operator\");\n String value = element.getAttribute(\"value\");\n constructAtom(name, antecedent, value, operator);\n //System.out.printf(\"%s %s %s\\n\", name, operator, value);\n }", "private void generateConsequent(Element element, Set<SWRLAtom> consequent) throws Exception {\n String cLass = element.getAttribute(\"class\");\n cLass = TextUtil.formatName(cLass);\n String operator = element.getAttribute(\"operator\");\n String score = element.getAttribute(\"score\");\n constructAtom(cLass, consequent, score, operator);\n //System.out.printf(\"%s %s %s\\n\", cLass, operator, score);\n }", "@Override\n public R visit(Consequent n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "public ImplicationCounterexample(String antecedent, Set<String> consequent) {\r\n\t\tthis.antecedent = antecedent;\r\n\t\tthis.consequent = consequent;\r\n\t}", "public final EObject ruleConsequentRule() throws RecognitionException {\n EObject current = null;\n\n Token otherlv_0=null;\n Token otherlv_1=null;\n Token otherlv_3=null;\n Token otherlv_5=null;\n EObject lv_atoms_2_0 = null;\n\n EObject lv_atoms_4_0 = null;\n\n\n enterRule(); \n \n try {\n // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:2674:28: ( (otherlv_0= 'Consequent' otherlv_1= '(' ( (lv_atoms_2_0= ruleRule ) ) (otherlv_3= ',' ( (lv_atoms_4_0= ruleRule ) ) )* otherlv_5= ')' ) )\n // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:2675:1: (otherlv_0= 'Consequent' otherlv_1= '(' ( (lv_atoms_2_0= ruleRule ) ) (otherlv_3= ',' ( (lv_atoms_4_0= ruleRule ) ) )* otherlv_5= ')' )\n {\n // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:2675:1: (otherlv_0= 'Consequent' otherlv_1= '(' ( (lv_atoms_2_0= ruleRule ) ) (otherlv_3= ',' ( (lv_atoms_4_0= ruleRule ) ) )* otherlv_5= ')' )\n // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:2675:3: otherlv_0= 'Consequent' otherlv_1= '(' ( (lv_atoms_2_0= ruleRule ) ) (otherlv_3= ',' ( (lv_atoms_4_0= ruleRule ) ) )* otherlv_5= ')'\n {\n otherlv_0=(Token)match(input,50,FOLLOW_50_in_ruleConsequentRule6019); \n\n \tnewLeafNode(otherlv_0, grammarAccess.getConsequentRuleAccess().getConsequentKeyword_0());\n \n otherlv_1=(Token)match(input,21,FOLLOW_21_in_ruleConsequentRule6031); \n\n \tnewLeafNode(otherlv_1, grammarAccess.getConsequentRuleAccess().getLeftParenthesisKeyword_1());\n \n // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:2683:1: ( (lv_atoms_2_0= ruleRule ) )\n // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:2684:1: (lv_atoms_2_0= ruleRule )\n {\n // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:2684:1: (lv_atoms_2_0= ruleRule )\n // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:2685:3: lv_atoms_2_0= ruleRule\n {\n \n \t newCompositeNode(grammarAccess.getConsequentRuleAccess().getAtomsRuleParserRuleCall_2_0()); \n \t \n pushFollow(FOLLOW_ruleRule_in_ruleConsequentRule6052);\n lv_atoms_2_0=ruleRule();\n\n state._fsp--;\n\n\n \t if (current==null) {\n \t current = createModelElementForParent(grammarAccess.getConsequentRuleRule());\n \t }\n \t\tadd(\n \t\t\tcurrent, \n \t\t\t\"atoms\",\n \t\tlv_atoms_2_0, \n \t\t\"Rule\");\n \t afterParserOrEnumRuleCall();\n \t \n\n }\n\n\n }\n\n // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:2701:2: (otherlv_3= ',' ( (lv_atoms_4_0= ruleRule ) ) )*\n loop27:\n do {\n int alt27=2;\n int LA27_0 = input.LA(1);\n\n if ( (LA27_0==16) ) {\n alt27=1;\n }\n\n\n switch (alt27) {\n \tcase 1 :\n \t // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:2701:4: otherlv_3= ',' ( (lv_atoms_4_0= ruleRule ) )\n \t {\n \t otherlv_3=(Token)match(input,16,FOLLOW_16_in_ruleConsequentRule6065); \n\n \t \tnewLeafNode(otherlv_3, grammarAccess.getConsequentRuleAccess().getCommaKeyword_3_0());\n \t \n \t // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:2705:1: ( (lv_atoms_4_0= ruleRule ) )\n \t // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:2706:1: (lv_atoms_4_0= ruleRule )\n \t {\n \t // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:2706:1: (lv_atoms_4_0= ruleRule )\n \t // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:2707:3: lv_atoms_4_0= ruleRule\n \t {\n \t \n \t \t newCompositeNode(grammarAccess.getConsequentRuleAccess().getAtomsRuleParserRuleCall_3_1_0()); \n \t \t \n \t pushFollow(FOLLOW_ruleRule_in_ruleConsequentRule6086);\n \t lv_atoms_4_0=ruleRule();\n\n \t state._fsp--;\n\n\n \t \t if (current==null) {\n \t \t current = createModelElementForParent(grammarAccess.getConsequentRuleRule());\n \t \t }\n \t \t\tadd(\n \t \t\t\tcurrent, \n \t \t\t\t\"atoms\",\n \t \t\tlv_atoms_4_0, \n \t \t\t\"Rule\");\n \t \t afterParserOrEnumRuleCall();\n \t \t \n\n \t }\n\n\n \t }\n\n\n \t }\n \t break;\n\n \tdefault :\n \t break loop27;\n }\n } while (true);\n\n otherlv_5=(Token)match(input,22,FOLLOW_22_in_ruleConsequentRule6100); \n\n \tnewLeafNode(otherlv_5, grammarAccess.getConsequentRuleAccess().getRightParenthesisKeyword_4());\n \n\n }\n\n\n }\n\n leaveRule(); \n }\n \n catch (RecognitionException re) { \n recover(input,re); \n appendSkippedTokens();\n } \n finally {\n }\n return current;\n }", "public final EObject ruleAntecedentRule() throws RecognitionException {\n EObject current = null;\n\n Token otherlv_0=null;\n Token otherlv_1=null;\n Token otherlv_3=null;\n Token otherlv_5=null;\n EObject lv_atoms_2_0 = null;\n\n EObject lv_atoms_4_0 = null;\n\n\n enterRule(); \n \n try {\n // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:2601:28: ( (otherlv_0= 'Antecedent' otherlv_1= '(' ( (lv_atoms_2_0= ruleRule ) ) (otherlv_3= ',' ( (lv_atoms_4_0= ruleRule ) ) )* otherlv_5= ')' ) )\n // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:2602:1: (otherlv_0= 'Antecedent' otherlv_1= '(' ( (lv_atoms_2_0= ruleRule ) ) (otherlv_3= ',' ( (lv_atoms_4_0= ruleRule ) ) )* otherlv_5= ')' )\n {\n // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:2602:1: (otherlv_0= 'Antecedent' otherlv_1= '(' ( (lv_atoms_2_0= ruleRule ) ) (otherlv_3= ',' ( (lv_atoms_4_0= ruleRule ) ) )* otherlv_5= ')' )\n // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:2602:3: otherlv_0= 'Antecedent' otherlv_1= '(' ( (lv_atoms_2_0= ruleRule ) ) (otherlv_3= ',' ( (lv_atoms_4_0= ruleRule ) ) )* otherlv_5= ')'\n {\n otherlv_0=(Token)match(input,49,FOLLOW_49_in_ruleAntecedentRule5855); \n\n \tnewLeafNode(otherlv_0, grammarAccess.getAntecedentRuleAccess().getAntecedentKeyword_0());\n \n otherlv_1=(Token)match(input,21,FOLLOW_21_in_ruleAntecedentRule5867); \n\n \tnewLeafNode(otherlv_1, grammarAccess.getAntecedentRuleAccess().getLeftParenthesisKeyword_1());\n \n // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:2610:1: ( (lv_atoms_2_0= ruleRule ) )\n // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:2611:1: (lv_atoms_2_0= ruleRule )\n {\n // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:2611:1: (lv_atoms_2_0= ruleRule )\n // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:2612:3: lv_atoms_2_0= ruleRule\n {\n \n \t newCompositeNode(grammarAccess.getAntecedentRuleAccess().getAtomsRuleParserRuleCall_2_0()); \n \t \n pushFollow(FOLLOW_ruleRule_in_ruleAntecedentRule5888);\n lv_atoms_2_0=ruleRule();\n\n state._fsp--;\n\n\n \t if (current==null) {\n \t current = createModelElementForParent(grammarAccess.getAntecedentRuleRule());\n \t }\n \t\tadd(\n \t\t\tcurrent, \n \t\t\t\"atoms\",\n \t\tlv_atoms_2_0, \n \t\t\"Rule\");\n \t afterParserOrEnumRuleCall();\n \t \n\n }\n\n\n }\n\n // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:2628:2: (otherlv_3= ',' ( (lv_atoms_4_0= ruleRule ) ) )*\n loop26:\n do {\n int alt26=2;\n int LA26_0 = input.LA(1);\n\n if ( (LA26_0==16) ) {\n alt26=1;\n }\n\n\n switch (alt26) {\n \tcase 1 :\n \t // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:2628:4: otherlv_3= ',' ( (lv_atoms_4_0= ruleRule ) )\n \t {\n \t otherlv_3=(Token)match(input,16,FOLLOW_16_in_ruleAntecedentRule5901); \n\n \t \tnewLeafNode(otherlv_3, grammarAccess.getAntecedentRuleAccess().getCommaKeyword_3_0());\n \t \n \t // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:2632:1: ( (lv_atoms_4_0= ruleRule ) )\n \t // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:2633:1: (lv_atoms_4_0= ruleRule )\n \t {\n \t // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:2633:1: (lv_atoms_4_0= ruleRule )\n \t // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:2634:3: lv_atoms_4_0= ruleRule\n \t {\n \t \n \t \t newCompositeNode(grammarAccess.getAntecedentRuleAccess().getAtomsRuleParserRuleCall_3_1_0()); \n \t \t \n \t pushFollow(FOLLOW_ruleRule_in_ruleAntecedentRule5922);\n \t lv_atoms_4_0=ruleRule();\n\n \t state._fsp--;\n\n\n \t \t if (current==null) {\n \t \t current = createModelElementForParent(grammarAccess.getAntecedentRuleRule());\n \t \t }\n \t \t\tadd(\n \t \t\t\tcurrent, \n \t \t\t\t\"atoms\",\n \t \t\tlv_atoms_4_0, \n \t \t\t\"Rule\");\n \t \t afterParserOrEnumRuleCall();\n \t \t \n\n \t }\n\n\n \t }\n\n\n \t }\n \t break;\n\n \tdefault :\n \t break loop26;\n }\n } while (true);\n\n otherlv_5=(Token)match(input,22,FOLLOW_22_in_ruleAntecedentRule5936); \n\n \tnewLeafNode(otherlv_5, grammarAccess.getAntecedentRuleAccess().getRightParenthesisKeyword_4());\n \n\n }\n\n\n }\n\n leaveRule(); \n }\n \n catch (RecognitionException re) { \n recover(input,re); \n appendSkippedTokens();\n } \n finally {\n }\n return current;\n }", "void token(TokenNode node);", "@Override\n public TreeNode make(Parser parser) {\n Token token = parser.peek();\n if(token.getTokenID() == Token.TIDEN){\n return nAlistNode.make(parser); //alist trans (dont consume token alist will need it)\n }\n return null; //eps trans\n }", "@Override\n\tpublic ATN createATN() {\n\t\tSet<String> modes = ((LexerGrammar) g).modes.keySet();\n\t\tfor (String modeName : modes) {\n\t\t\t// create s0, start state; implied Tokens rule node\n\t\t\tTokensStartState startState =\n\t\t\t\tnewState(TokensStartState.class, null);\n\t\t\tatn.modeNameToStartState.put(modeName, startState);\n\t\t\tatn.modeToStartState.add(startState);\n\t\t\tatn.defineDecisionState(startState);\n\t\t}\n\n\t\t// INIT ACTION, RULE->TOKEN_TYPE MAP\n\t\tatn.ruleToTokenType = new int[g.rules.size()];\n\t\tfor (Rule r : g.rules.values()) {\n\t\t\tatn.ruleToTokenType[r.index] = g.getTokenType(r.name);\n\t\t}\n\n\t\t// CREATE ATN FOR EACH RULE\n\t\t_createATN(g.rules.values());\n\n\t\tatn.lexerActions = new LexerAction[indexToActionMap.size()];\n\t\tfor (Map.Entry<Integer, LexerAction> entry : indexToActionMap.entrySet()) {\n\t\t\tatn.lexerActions[entry.getKey()] = entry.getValue();\n\t\t}\n\n\t\t// LINK MODE START STATE TO EACH TOKEN RULE\n\t\tfor (String modeName : modes) {\n\t\t\tList<Rule> rules = ((LexerGrammar)g).modes.get(modeName);\n\t\t\tTokensStartState startState = atn.modeNameToStartState.get(modeName);\n\t\t\tfor (Rule r : rules) {\n\t\t\t\tif ( !r.isFragment() ) {\n\t\t\t\t\tRuleStartState s = atn.ruleToStartState[r.index];\n\t\t\t\t\tepsilon(startState, s);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tATNOptimizer.optimize(g, atn);\n\t\tcheckEpsilonClosure();\n\t\treturn atn;\n\t}", "Node currentNode();", "Term getNodeTerm();", "private String node(String name) { return prefix + \"AST\" + name + \"Node\"; }", "public Antecedent(Literal pivot, Clause antecedent) {\n\t\t\tassert pivot != null;\n\t\t\tassert antecedent != null;\n\t\t\tassert antecedent.contains(pivot);\n\t\t\tmPivot = pivot;\n\t\t\tmAntecedent = antecedent;\n\t\t}", "@Override\n\tpublic void visit(Parenthesis arg0) {\n\t\t\n\t}", "public void setAntecedentInformation(IWInferenceStepOccur infStep)\n\t{\n\t\tList antecedents = null;\n\t\tIWNodeSet antecedentIWNodeSet = null;\n\n\n\t\tantecedents = infStep.getAntecedentNodeSetOccurrences();\n\n\t\tif (antecedents != null )//&& numAntes>0) \n\t\t{\n\t\t\tint numAntes = antecedents.size();\n\t\t\tif(numAntes>0)\n\t\t\t{\n\t\t\t\tSystem.out.println(\"Total: \"+numAntes);\n\t\t\t\tantecedentRawStrings = new String[numAntes];\n\t\t\t\tantecedentURIs = new String[numAntes];\n\t\t\t\tantecedentCachedThumbURL = new String[numAntes];\n\t\t\t\tantecedentConclusionURL = new String[numAntes];\n\n\t\t\t\tfor (int ai = 0; ai< numAntes; ai++)\n\t\t\t\t{\n\t\t\t\t\tantecedentIWNodeSet = (IWNodeSet)antecedents.get(ai);\n\n\t\t\t\t\tif (antecedentIWNodeSet != null)\n\t\t\t\t\t{\n\t\t\t\t\t\tsetMethodOfVisualizingConclusion(antecedentIWNodeSet, ai);\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tantecedentCachedThumbURL[ai] = null;\n\t\t\t\t\t\tantecedentRawStrings[ai] = \"No Antecedent Information\";\n\t\t\t\t\t\tantecedentURIs[ai] = \"No Antecedent Information\";\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "@Override\n public TreeNode parse() {\n TreeNode first = ArithmeticSubexpression.getAdditive(environment).parse();\n if (first == null) return null;\n\n // Try to parse something starting with an operator.\n List<Wrapper> wrappers = RightSideSubexpression.createKleene(\n environment, ArithmeticSubexpression.getAdditive(environment),\n BemTeVicTokenType.EQUAL, BemTeVicTokenType.DIFFERENT,\n BemTeVicTokenType.GREATER_OR_EQUALS, BemTeVicTokenType.GREATER_THAN,\n BemTeVicTokenType.LESS_OR_EQUALS, BemTeVicTokenType.LESS_THAN\n ).parse();\n\n // If did not found anything starting with an operator, return the first node.\n if (wrappers.isEmpty()) return first;\n\n // Constructs a binary operator node containing the expression.\n Iterator<Wrapper> it = wrappers.iterator();\n Wrapper secondWrapper = it.next();\n BinaryOperatorNode second = new BinaryOperatorNode(secondWrapper.getTokenType(), first, secondWrapper.getOutput());\n\n if (wrappers.size() == 1) return second;\n\n // If we reach this far, the expression has more than one operator. i.e. (x = y = z),\n // which is a shortcut for (x = y AND y = z).\n\n // Firstly, determine if the operators are compatible.\n RelationalOperatorSide side = RelationalOperatorSide.NONE;\n for (Wrapper w : wrappers) {\n side = side.next(w.getTokenType());\n }\n if (side.isMixed()) {\n environment.emitError(\"XXX\");\n }\n\n // Creates the other nodes. In the expression (a = b = c = d), The \"a = b\"\n // is in the \"second\" node. Creates \"b = c\", and \"c = d\" nodes.\n List<BinaryOperatorNode> nodes = new LinkedList<BinaryOperatorNode>();\n nodes.add(second);\n\n TreeNode prev = secondWrapper.getOutput();\n while (it.hasNext()) {\n Wrapper w = it.next();\n BinaryOperatorNode current = new BinaryOperatorNode(w.getTokenType(), prev, w.getOutput());\n prev = w.getOutput();\n nodes.add(current);\n }\n\n // Combines all of the nodes in a single one using AND.\n return new VariableArityOperatorNode(BemTeVicTokenType.AND, nodes);\n }", "@Override\r\n\tpublic Node visitSequential(SequentialContext ctx) {\n\t\treturn super.visitSequential(ctx);\r\n\t}", "public Token curr() throws SyntaxException {\n\t\tif (token==null)\n\t\t\tthrow new SyntaxException(pos,new Token(\"ANY\"),new Token(\"EMPTY\"));\n\t\treturn token;\n }", "private InfixExpression getNode()\n{\n return (InfixExpression) ast_node;\n}", "Token next();", "private void constructClassAtom(String name, Set<SWRLAtom> antecedent, String value, String operator) {\n SWRLVariable var = null;\n OWLClass c = ontologyOwlClassVocabulary.get(name);\n\n var = initalizeVariable(name, var);\n\n SWRLClassAtom classRule = factory.getSWRLClassAtom(c, var);\n antecedent.add(classRule);\n\n if (!TextUtils.isBlank(value) && !TextUtils.isBlank(operator)) {\n constructBuiltinAtom(name, operator, value, null, antecedent);\n }\n }", "private Object magicVisit(ParseTree ctx, Node<TokenAttributes> CST_node) {\n current_node = CST_node;\n Object result = visit(ctx);\n current_node = CST_node;\n return result;\n }", "public static void parseNatAsgn() {\n if (currToken.tokenType != Token.ID) {\n handleError(\"ID\");\n }\n else if( symbols.get(currToken.tokenString) != \"NAT\"){\n throw new Error(\"NAT type expected\");\n }\n else{\n sb.append(currToken.tokenString);\n getNextToken();\n if (currToken.tokenType != Token.ASSIGN) {\n handleError(\"ASSIGN\");\n }\n else{\n sb.append(\" = \");\n getNextToken();\n parseNatExp();\n }\n }\n }", "@Override\n\tpublic void visit(Parenthesis arg0) {\n\n\t}", "public Node(){\r\n primarySequence = null;\r\n dotBracketString = null;\r\n validity = false;\r\n prev = null;\r\n next = null;\r\n }", "public StatementNode getStatementNodeOnTrue();", "Token current();", "public void mutateNonterminalNode() {\n Node[] nodes = getRandomNonterminalNode(false);\n if (nodes != null)\n ((CriteriaNode) nodes[1]).randomizeIndicator();\n }", "private ParseTree parseStatement() {\n return parseSourceElement();\n }", "public AssassinNode(String name, AssassinNode next) {\n this.name = name;\n this.killer = null;\n this.next = next;\n }", "private static void treeApproach(String s) throws ParsingException {\n\t}", "LexicalUnit getNextLexicalUnit();", "@Override\n public R visit(BaseDecl n, A argu) {\n R _ret = null;\n n.nodeToken.accept(this, argu);\n n.nodeToken1.accept(this, argu);\n return _ret;\n }", "Optional<Node<UnderlyingData>> prevNode(Node<UnderlyingData> node);", "public final void elementSubsequent() throws RecognitionException {\n try {\n // css21.g:133:5: ( HASH | cssClass | attrib | pseudo )\n int alt18=4;\n switch ( input.LA(1) ) {\n case HASH:\n {\n alt18=1;\n }\n break;\n case DOT:\n {\n alt18=2;\n }\n break;\n case LBRACKET:\n {\n alt18=3;\n }\n break;\n case COLON:\n {\n alt18=4;\n }\n break;\n default:\n if (state.backtracking>0) {state.failed=true; return ;}\n NoViableAltException nvae =\n new NoViableAltException(\"\", 18, 0, input);\n\n throw nvae;\n\n }\n\n switch (alt18) {\n case 1 :\n // css21.g:133:7: HASH\n {\n match(input,HASH,FOLLOW_HASH_in_elementSubsequent720); if (state.failed) return ;\n\n }\n break;\n case 2 :\n // css21.g:134:7: cssClass\n {\n pushFollow(FOLLOW_cssClass_in_elementSubsequent728);\n cssClass();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n break;\n case 3 :\n // css21.g:135:7: attrib\n {\n pushFollow(FOLLOW_attrib_in_elementSubsequent736);\n attrib();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n break;\n case 4 :\n // css21.g:136:7: pseudo\n {\n pushFollow(FOLLOW_pseudo_in_elementSubsequent744);\n pseudo();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n break;\n\n }\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n\n finally {\n \t// do for sure before leaving\n }\n return ;\n }", "public static Mention hobbsCoreferent(Mention m){\n\t\tTree<String> sTree = m.sentence.parse;\n\t\t\n\t\t//System.out.printf(\"Searching for hobbs coreference for %s\\n\", m.gloss());\n\t\t//System.out.printf(\"Sentence %s\\n\", m.sentence.toString());\n\t\t//System.out.printf(\"Sentence Parse Tree:\\n\");\n\t\t//System.out.println(PennTreeRenderer.render(sTree));\n\t\t\n\t\t//Proposed node\n\t\tMention proposedMention;\n\n\t\t//Get m's index in sentence\n\t\tint mIndex = m.sentence.tokens.indexOf(m.headToken());\n\t\t//Get path to m\n\t\tLinkedList<Pair<String,Integer>> pathToM = sTree.pathToIndex(mIndex);\n\t\t//Get NP above M\n\t\tint npIndex = pathToM.size()-1;\n\t\twhile (npIndex>0 && !pathToM.get(npIndex).getFirst().equals(\"NP\")){\n\t\t\tnpIndex--;\n\t\t}\n\t\tif (npIndex==0)\n\t\t\treturn null;\n\t\t\n\t\t//System.out.printf(\"Mention Parse Tree:\\n\");\n\t\t//System.out.printf(\"Top label: %s\\n\",pathToM.get(npIndex).getFirst());\n\t\t//System.out.println(PennTreeRenderer.render(sTree.getSubTree(pathToM.subList(0, npIndex+1))));\n\t\t\n\n\t\t//Go up to first NP or s\n\t\tint xIndex = npIndex-1;\n\t\twhile (xIndex>0 && !pathToM.get(xIndex).getFirst().equals(\"NP\") && !isSLabel(pathToM.get(xIndex).getFirst())){\n\t\t\txIndex--;\n\t\t}\n\t\t\n\t\t//System.out.printf(\"First X \\n\");\n\t\t//System.out.printf(\"Top label: %s\\n\",pathToM.get(xIndex).getFirst());\n\t\t//System.out.println(PennTreeRenderer.render(sTree.getSubTree(pathToM.subList(0, xIndex+1))));\n\t\t\n\t\t//Search for antecedents below X to the left of p\n\t\tTree<String> X = sTree.getSubTree(pathToM.subList(0, xIndex+1));\n\t\tproposedMention = bfsNPLeft(X,sTree.getSubTree(pathToM.subList(0, xIndex+2)),m, false);\n\n\t\tif (proposedMention != null)\n\t\t\treturn proposedMention;\n\t\t//While not at the top S in the sentence\n\t\twhile (!X.getLabel().equals(\"ROOT\") && !pathToM.get(xIndex).getFirst().equals(\"ROOT\")){\n\t\t\t//Go up to next NP or s\n\t\t\tdo {\n\t\t\t\t//Move up an X\n\t\t\t\txIndex--;\n\t\t\t\tX = sTree.getSubTree(pathToM.subList(0, xIndex+1));\n\t\t\t}while (!(isSLabel(X.getLabel()) || X.getLabel().equals(\"NP\") || X.getLabel().equals(\"ROOT\")));\n\n\t\t\t//System.out.printf(\"Next X \\n\");\n\t\t\t//System.out.println(PennTreeRenderer.render(X));\n\t\t\t\n\t\t\t//If path to X came from non-head phrase of X.....\n\t\t\tif (X.getLabel().equals(\"NP\") && !m.parse.equals(X) && getMentionFromTree(X,m.sentence,m.doc)!=null){\n\t\t\t\tMention propM = getMentionFromTree(X,m.sentence,m.doc);\n\t\t\t\tif (validPronoun(propM, Pronoun.valueOrNull(m.gloss())))\n\t\t\t\t\t\treturn propM;\n\t\t\t}\n\t\t\t//Search for antecedents below X to the left of p\n\t\t\tproposedMention = bfsNPLeft(X,sTree.getSubTree(pathToM.subList(0, xIndex+2)),m,false);\n\t\t\tif (proposedMention != null)\n\t\t\t\treturn proposedMention;\n\t\t\t//If X is an S node go to the right of path, but dont' go below and NP or S\n\t\t\tif (isSLabel(X.getLabel()) ){\n\t\t\t\tproposedMention = bfsNPRight(X,sTree.getSubTree(pathToM.subList(0, xIndex+2)),m);\n\t\t\t\tif (proposedMention != null)\n\t\t\t\t\treturn proposedMention;\n\t\t\t}\n\t\t}\n\t\t//If X is highest S in sentence, traverse previous sentences doing BFS\n\t\t//Look at all previous sentences\n\t\tfor (int j=m.doc.indexOfSentence(m.sentence);j<0;j++){\n\t\t\tproposedMention = bfsNP(m.doc.sentences.get(j).parse,m,m.doc.sentences.get(j),true);\n\t\t\tif (proposedMention != null)\n\t\t\t\treturn proposedMention;\n\t\t}\n\t\treturn null;\n\t}", "public AssassinNode(String name, AssassinNode next)\r\n {\r\n this.name = name;\r\n this.killer = null;\r\n this.next = next;\r\n }", "private CalculatableNode nextNode() throws IOException {\n\t\tint ttype;\n\t\tttype = tokenizer.nextToken();\n\t\tif (ttype == StreamTokenizer.TT_NUMBER) {\n\t\t\treturn new NumericalNode((int) tokenizer.nval);\n\t\t}\n\t\tif (ttype >= 0) {\n\t\t\t// sign character such as +-*/()\n\t\t\tchar sign = (char) tokenizer.ttype;\n\t\t\tif (sign == '(') {\n\t\t\t\tCalculatableNode node = parseNode();\n\t\t\t\treturn node;\n\t\t\t}\n\t\t}\n\t\tthrow new IllegalFormulaException(\"数式が不正です\");\n\t}", "@Override\n public Expression asExpression(TokenValue<?> token, Deque<Value<Expression>> next) {\n Additive op = token.getValue(); // + | -\n // + is always followed by an argument\n Expression arg = next.pollFirst().getTarget(); // b argument\n Term<Additive> term = new Term<>(op, arg);\n return term;\n }", "public void actionconst(Node<TokenAttributes> node) {\n node.getNodeData().setText(\"final\");\n }", "public DNode(String e, DNode p, DNode n) { element = e; prev = p; next = n;}", "public interface QuotedL1Node {\n\n}", "public Void visit(NasmRet inst){\n if (nasm.listeInst.indexOf(inst) != nasm.listeInst.size() - 1)\n addEdgeWithInst(inst, getNextInst(inst));\n return null;\n }", "public TYPE SemantMe() throws SemantMeException{\n if(!this.st.IsVarNameNew(idName,true))\n\t\t\tthrow new SemantMeException(lineNumber,\"The name \"+idName+\" aleady exists in the symbol table!\\n\");\t\t\n\n \n /* [1] Make sure the class extends a previously defined class */\n TYPE parent = null;\n if (parentName != null) {\n parent = this.st.find(parentName);\n if (parent == null || !parent.isClass()) {\n String info = (parent == null) ? \"Parent name is not declared\" : \"Parent name is not a class\";\n throw new SemantMeException(lineNumber, info);\n }\n }\n TYPE_CLASS parentClass = (TYPE_CLASS) parent;\n \n /* [2] Begin Class Scope */\n this.st.beginScope();\n this.st.setCurrParentClass(parentClass);\n \n /* [3] Enter current class for recursive references. Will be removed when scope ends. */\n /* For example - when implemnting a comparator between two instances of the same class */\n TYPE_CLASS currClass = new TYPE_CLASS(parentClass, idName, null, null);\n this.st.enter(idName, currClass);\n \n /* [4] Semant data members */\n if (dataMembers != null) {\n currClass.AddDataMember((TYPE_CLASS_VAR_DEC) dataMembers.head.SemantBody());\n for (AST_C_FIELD_LIST list = dataMembers.tail; list != null; list = list.tail) {\n // Call semantMe on current C_FIELD and store its returned type in class's dataMembers list.\n currClass.AddDataMember((TYPE_CLASS_VAR_DEC) list.head.SemantBody());\n }\n }\n \n /* Semant Signature */\n if (methods != null) {\n currClass.AddMethod(methods.head.SemantSignature());\n for (AST_C_FIELD_LIST list = methods.tail; list != null; list = list.tail) {\n // Call semantMe on current C_FIELD and store its returned type in class's methods list.\n currClass.AddMethod(list.head.SemantSignature());\n }\n }\n // Semant Body\n if (methods != null) {\n methods.head.SemantBody();\n for (AST_C_FIELD_LIST list = methods.tail; list != null; list = list.tail) {\n // Call semantMe on current C_FIELD and store its returned type in class's methods list.\n list.head.SemantBody();\n }\n }\n \n /* [7] End Scope */\n this.st.setCurrParentClass(null);\n this.st.endScope();\n \n /* [8] Enter the Class Type to the Symbol Table */\n this.st.enter(idName, currClass);\n\n /* [9] Return value is irrelevant for class declarations */\n return null;\n \n \n }", "private void TokenAnythingElse(Token token,\r\n\t\t\tTreeConstructor treeConstructor, boolean reprocessToken) {\n\t\tnew StackUpdater().updateStack(\"html\", \"element\");\r\n\t\tParser.currentMode = InsertionMode.before_head;\r\n\t\tif (reprocessToken)\r\n\t\t\ttreeConstructor.processToken(token);\r\n\t}", "void visit(Text node);", "@Override\n\tpublic void visit(final Aunt person) {\n\t\t\n\t}", "public abstract Expression getInitialExpression();", "@Override\n public R visit(BrackettedExpression n, A argu) {\n R _ret = null;\n n.nodeToken.accept(this, argu);\n n.expression.accept(this, argu);\n n.nodeToken1.accept(this, argu);\n return _ret;\n }", "private static void traversals(Node root) {\n\t\tSystem.out.println(\"Node Pre \" + root.data);\n\t\tfor(Node child : root.children) {\n\t\t\tSystem.out.println(\"Edge Pre \" + root.data + \"--\" + child.data);\n\t\t\ttraversals(child);\n\t\t\tSystem.out.println(\"Edge Post \" + root.data + \"--\" + child.data);\n\t\t}\n\t\tSystem.out.println(\"Node Post \" + root.data);\n\t}", "abstract protected void parseNextToken();", "ReferenceTreatment createReferenceTreatment();", "private ParseTree parseContinueStatement() {\n SourcePosition start = getTreeStartLocation();\n eat(TokenType.CONTINUE);\n IdentifierToken name = null;\n if (!peekImplicitSemiColon()) {\n name = eatIdOpt();\n }\n eatPossiblyImplicitSemiColon();\n return new ContinueStatementTree(getTreeLocation(start), name);\n }", "ComponentAgent getNextSibling();", "private void constructAtom(String name, Set<SWRLAtom> antecedent, String value, String operator) throws Exception {\n if (searchOntology(name)) {\n if (ontologyOwlClassVocabulary.containsKey(name)) {\n constructClassAtom(name, antecedent, value, operator);\n } else if (ontologyOWLDataPropertyVocabulary.containsKey(name)) {\n constructOwlDataPropertyAtom(name, antecedent, value, operator);\n } else if (ontologyOWLObjectPropertylVocabulary.containsKey(name)) {\n constructObjectPropertyAtom(name, antecedent, value, operator);\n } else {\n //@todo add more necessary swrl atom types \n }\n } else {\n name = prepareTerm(name);\n constructAtom(name, antecedent, value, operator);\n }\n\n }", "@Override\r\n\tpublic Node visitSequence(SequenceContext ctx) {\n\t\treturn super.visitSequence(ctx);\r\n\t}", "protected void addToParent(RuleDirectedParser parser, IScriptToken token)\n {\n IScriptToken parent = (IScriptToken) parser.peek();\n \n parent.addToken(token);\n }", "private FiniteAutomaton parseE() {\n\n\t\tFiniteAutomaton t = parseT();\n\n\t\tint c = peek();\n\n\t\tif (c >= 0 && c != ')' && c != '|') {\n\t\t\t// concatenation\n\n\t\t\tFiniteAutomaton e = parseE();\n\n\t\t\t// create result automaton\n\t\t\tFiniteAutomaton result = new FiniteAutomaton();\n\t\t\tresult.addAll(t);\n\t\t\tresult.addAll(e);\n\n\t\t\t// create ε-transition connecting e's accepting state to r's start state\n\t\t\tresult.createTransition(t.getUniqueAcceptingState(), e.getStartState(), FiniteAutomaton.EPSILON);\n\t\t\tt.getUniqueAcceptingState().setAccepting(false);\n\t\t\te.getStartState().setStart(false);\n\n\t\t\t// done\n\t\t\treturn check(result);\n\t\t}\n\n\t\treturn t;\n\t}", "public RegexNode ReduceAlternation()\n\t{\n\t\t// Combine adjacent sets/chars\n\n\t\tboolean wasLastSet;\n\t\tboolean lastNodeCannotMerge;\n\t\tRegexOptions optionsLast;\n\t\tRegexOptions optionsAt;\n\t\tint i;\n\t\tint j;\n\t\tRegexNode at;\n\t\tRegexNode prev;\n\n\t\tif (_children == null)\n\t\t{\n\t\t\treturn new RegexNode(RegexNode.Nothing, _options);\n\t\t}\n\n\t\twasLastSet = false;\n\t\tlastNodeCannotMerge = false;\n\t\toptionsLast = RegexOptions.forValue(0);\n\n\t\tfor (i = 0, j = 0; i < _children.size(); i++, j++)\n\t\t{\n\t\t\tat = _children.get(i);\n\n\t\t\tif (j < i)\n\t\t\t{\n\t\t\t\t_children.set(j, at);\n\t\t\t}\n\n\t\t\tfor (;;)\n\t\t\t{\n\t\t\t\tif (at._type == Alternate)\n\t\t\t\t{\n\t\t\t\t\tfor (int k = 0; k < at._children.size(); k++)\n\t\t\t\t\t{\n\t\t\t\t\t\tat._children.get(k)._next = this;\n\t\t\t\t\t}\n\n\t\t\t\t\t//_children.InsertRange(i + 1, at._children);\n\t\t\t\t\t_children.addAll(i + 1, at._children);\n\t\t\t\t\tj--;\n\t\t\t\t}\n\t\t\t\telse if (at._type == Set || at._type == One)\n\t\t\t\t{\n\t\t\t\t\t// Cannot merge sets if L or I options differ, or if either are negated.\n\t\t\t\t\toptionsAt = RegexOptions.forValue(at._options.getValue() & (RegexOptions.RightToLeft.getValue() | RegexOptions.IgnoreCase.getValue()));\n\n\n\t\t\t\t\tif (at._type == Set)\n\t\t\t\t\t{\n\t\t\t\t\t\tif (!wasLastSet || optionsLast != optionsAt || lastNodeCannotMerge || !RegexCharClass.IsMergeable(at._str))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\twasLastSet = true;\n\t\t\t\t\t\t\tlastNodeCannotMerge = !RegexCharClass.IsMergeable(at._str);\n\t\t\t\t\t\t\toptionsLast = optionsAt;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\telse if (!wasLastSet || optionsLast != optionsAt || lastNodeCannotMerge)\n\t\t\t\t\t{\n\t\t\t\t\t\twasLastSet = true;\n\t\t\t\t\t\tlastNodeCannotMerge = false;\n\t\t\t\t\t\toptionsLast = optionsAt;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\n\n\t\t\t\t\t// The last node was a Set or a One, we're a Set or One and our options are the same.\n\t\t\t\t\t// Merge the two nodes.\n\t\t\t\t\tj--;\n\t\t\t\t\tprev = _children.get(j);\n\n\t\t\t\t\tRegexCharClass prevCharClass;\n\t\t\t\t\tif (prev._type == RegexNode.One)\n\t\t\t\t\t{\n\t\t\t\t\t\tprevCharClass = new RegexCharClass();\n\t\t\t\t\t\tprevCharClass.AddChar(prev._ch);\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tprevCharClass = RegexCharClass.Parse(prev._str);\n\t\t\t\t\t}\n\n\t\t\t\t\tif (at._type == RegexNode.One)\n\t\t\t\t\t{\n\t\t\t\t\t\tprevCharClass.AddChar(at._ch);\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tRegexCharClass atCharClass = RegexCharClass.Parse(at._str);\n\t\t\t\t\t\tprevCharClass.AddCharClass(atCharClass);\n\t\t\t\t\t}\n\n\t\t\t\t\tprev._type = RegexNode.Set;\n\t\t\t\t\tprev._str = prevCharClass.ToStringClass();\n\n\t\t\t\t}\n\t\t\t\telse if (at._type == RegexNode.Nothing)\n\t\t\t\t{\n\t\t\t\t\tj--;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\twasLastSet = false;\n\t\t\t\t\tlastNodeCannotMerge = false;\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\tif (j < i)\n\t\t{\n\t\t\t//_children.removeRange(j, i - j + j);\n\t\t\tArrayExt.removeRange(_children, j, i - j + j);\n\t\t}\n\n\t\treturn StripEnation(RegexNode.Nothing);\n\t}", "public Statement getThenStm();", "public Snippet visit(DotPrev n, Snippet argu) {\n\t Snippet _ret= new Snippet(\"\",\"\",null,false);\n\t _ret = n.identifier.accept(this, argu);\n\t n.nodeToken.accept(this, argu);\n\t n.nodeToken1.accept(this, argu);\n\t n.nodeToken2.accept(this, argu);\n\t n.nodeToken3.accept(this, argu);\n\t //return new Snippet(\"\", _ret.returnTemp+\".prev()\", new X10Place(), false);\n\t return new Snippet(\"\", \"0\", new X10Place(), false);\n\t }", "@Override\n public R visit(NamedGraphClause n, A argu) {\n R _ret = null;\n n.nodeToken.accept(this, argu);\n n.sourceSelector.accept(this, argu);\n return _ret;\n }", "OperationNode getNode();", "private String E() throws SyntaxException, ParserException {\n\t\tswitch (current) {\n\t\t\tcase 'a':\n\t\t\tcase 'b':\n\t\t\tcase 'c':\n\t\t\t\t// E -> L\n\t\t\t\treturn L();\n\t\t\tcase '(':\n\t\t\t\t// E -> (S)\n\t\t\t\teat('(');\n\t\t\t\tString pe = S();\n\t\t\t\teat(')');\n\t\t\t\treturn pe;\n\t\t\tdefault:\n\t\t\t\tthrow new SyntaxException(ErrorType.NO_RULE,current);\n\t\t}\n\t}", "public static void parse()\r\n {\r\n int initial;\r\n initial=expression();\r\n stateList.get(0).setNext1(initial);\r\n stateList.get(0).setNext2(initial);\r\n if(index<=expression.length()-1)\r\n {\r\n error();\r\n }\r\n else\r\n {\r\n state st=new state(state,\"END\",-1,-1);\r\n stateList.add(st);\r\n }\r\n }", "public Node setNextNode(Node node);", "@Test\r\n\tpublic void testProcessPass1Other()\r\n\t{\r\n\t\tToken t3 = new Token(TokenTypes.EXP5.name(), 1, null);\r\n\t\tt3.setType(\"INT\");\r\n\t\tArrayList<Token> tkns = new ArrayList<Token>();\t\t\t\r\n\t\ttkns.add(t3);\r\n\t\t\r\n\t\tToken t4 = new Token(TokenTypes.EXP4.name(), 1, tkns);\r\n\t\tClass c1 = new Class(\"ClassName\", null, null);\r\n\t\tPublicMethod pm = new PublicMethod(\"MethodName\", null, VariableType.BOOLEAN, null);\r\n\t\tt4.setParentMethod(pm);\r\n\t\tt4.setParentClass(c1);\r\n\r\n\t\tToken.pass1(t4);\r\n\t\t\r\n\t\tfor(int i = 0; i < t4.getChildren().size(); i++){\r\n\t\t\tToken child = t4.getChildren().get(i);\r\n\t\t\t\r\n\t\t\tassertEquals(child.getParentClass().getName(), t4.getParentClass().getName());\r\n\t\t\tassertEquals(child.getParentMethod(), t4.getParentMethod());\r\n\t\t}\r\n\t\t\r\n\t\tassertEquals(t4.getType(), \"INT\");\r\n\t}", "private ParseTree parseNewDotSomething() {\n SourcePosition start = getTreeStartLocation();\n eat(TokenType.NEW);\n eat(TokenType.PERIOD);\n eatPredefinedString(\"target\");\n return new NewTargetExpressionTree(getTreeLocation(start));\n }", "NodeIterable(Node firstChild) {\n next = firstChild;\n }", "public Tree<TokenAttributes> start(TranslationGrammarParser.ProgContext ctx, String firstRuleName) {\n ctx.rulee().forEach((t) -> {\n rules.put(t.NODE_NAME().getSymbol().getText(), t);\n });\n Tree<TokenAttributes> eCST = new Tree<>(new UniversalToken(\"root\", -1));\n ArrayList<Node<TokenAttributes>> result = (ArrayList<Node<TokenAttributes>>) magicVisit(getRuleContext(firstRuleName), current_node);\n if (result == null) {\n return null;\n }\n eCST.getRoot().addChildren(result);\n result.forEach((t) -> {\n t.setParent(eCST.getRoot());\n });\n return eCST;\n }", "private Token advance() {\n if(!isAtEnd()) current++;\n return previous();\n }", "SequenceOfStatements getSequenceOfStatements();", "public Void visit(NasmJne inst){\n addEdgeWithLabel(inst, (NasmLabel) inst.address);\n addEdgeWithInst(inst, getNextInst(inst));\n return null;\n }", "@Test(timeout = 4000)\n public void test37() throws Throwable {\n SimpleNode simpleNode0 = new SimpleNode(2836);\n JavaParser javaParser0 = new JavaParser(\"ConditionalAndExpression\");\n SimpleNode simpleNode1 = new SimpleNode(javaParser0, 2836);\n simpleNode0.jjtSetParent(simpleNode1);\n Node node0 = simpleNode0.jjtGetParent();\n simpleNode1.jjtSetParent(node0);\n assertSame(node0, simpleNode1);\n }", "@Override\n public void visitTerminal(TerminalNode node) {\n\n }", "Iterable<T> followNode(T start) throws NullPointerException;", "public void start(Node n) {}", "public Node getGoal(){\n return goal;\n }", "@Test(timeout = 4000)\n public void test012() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"hN!SM~8ux(wB\");\n Token token0 = xPathLexer0.getPreviousToken();\n assertNull(token0);\n }", "private String S() throws SyntaxException, ParserException {\n\t\tswitch (current) {\n\t\t\tcase 'a':\n\t\t\tcase 'b':\n\t\t\tcase 'c':\n\t\t\tcase '(':\n\t\t\t\t// S -> ERS\n\t\t\t\tString er = E();\n\t\t\t\tint r = R();\n\t\t\t\tString e=\"\";\n\t\t\t\tfor (int i=0; i<r; i++){\n\t\t\t\t\te += er;\n\t\t\t\t}\n\t\t\t\te+= S();\n\t\t\t\treturn (e);\n\t\t\tcase ')':\n\t\t\tcase END_MARKER:\n\t\t\t\t// S -> epsilon\n\t\t\t\treturn \"\";\n\t\t\tdefault:\n\t\t\t\tthrow new SyntaxException(ErrorType.NO_RULE,current);\n\t\t}\n\t}", "@Override\n\tpublic void visit(OWLNamedIndividual individual) {\n\t\taddFact(RewritingVocabulary.NOM, individual.getIRI());\n\t}", "public static void main(String[] args) {\r\n\r\n\tAlternation a = new Alternation();\r\n\t\r\n\ta.add(new Literal(\"steaming\"));\r\n\ta.add(new Literal(\"hot\"));\r\n\r\n\tRepetition adjectives = new Repetition(a);\r\n\r\n\tTokenAssembly ta = \r\n\t\tnew TokenAssembly(\"hot hot steaming hot coffee\");\r\n\t\r\n\tSystem.out.println(adjectives.bestMatch(ta));\r\n}", "@Override\n public NodoL next() {\n posicionActual = posicionActual.getSiguiente();\n return posicionActual;\n }", "void visit(Entity node);", "public T caseInitialNode(InitialNode object) {\n\t\treturn null;\n\t}", "public Void visit(NasmJle inst){\n addEdgeWithLabel(inst, (NasmLabel) inst.address);\n addEdgeWithInst(inst, getNextInst(inst));\n return null;\n }", "@Override\n public R visit(DatasetClause n, A argu) {\n R _ret = null;\n n.nodeToken.accept(this, argu);\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "private Proof atoAImpl(Expression a) {\n Proof where = axm2(a, arrow(a, a), a); //a->(a->a) -> (a->(a->a)->a) -> (a -> a)\n Proof one = axm1(a, a); //a->a->a\n Proof two = axm1(a, arrow(a, a)); //a->(a->a)->A\n return mpTwice(where, one, two);\n }", "Optional<Node<UnderlyingData>> nextNode(Node<UnderlyingData> node);", "public void processStatement(BaseStatement statement) {\n\n labels.addAll(statement.produceLabels());\n\n // Only produce Init if it is the first statement\n if(((BaseMutableTreeNode)statement.getParent()).getChildBefore(statement) == null) {\n init = statement.produceInit();\n }\n\n // Only produce Init if it is the first statement\n if(((BaseMutableTreeNode)statement.getParent()).getChildAfter(statement) == null) {\n finals = statement.produceFinals();\n }\n\n boolean isAssigningInitFlow = false;\n if(flow.edgeSet().size() == 0) {\n isAssigningInitFlow = true;\n }\n flow = statement.produceFlows(flow);\n if(isAssigningInitFlow) {\n Set<DefaultEdge> edgeSet = flow.edgeSet();\n initEdge = edgeSet.iterator().next();\n }\n\n statements.add(statement);\n }", "@Override\n public R visit(PrefixDecl n, A argu) {\n R _ret = null;\n n.nodeToken.accept(this, argu);\n n.nodeToken1.accept(this, argu);\n n.nodeToken2.accept(this, argu);\n return _ret;\n }", "public interface RecursiveDescentParser\n{\n\n /**\n * Parses a regular expression and returns an NFA that describes that regular expression.\n * @return an NFA describing the regular expression that was parsed\n * @throws ParseException\n */\n public NFA parse() throws ParseException;\n\n}", "String getCTE();", "String getCTE();", "String getCTE();", "String getCTE();", "public AssassinNode(String name) \r\n {\r\n this(name, null);\r\n }", "public static KittyNode commAns(KittyNode a, KittyNode b){\n KittyNode trava,travb;\n trava = a;\n travb = b;\n if(trava == null)\n return travb;\n else if(travb == null)\n return trava;\n while(trava.prev != null || travb.prev != null){\n if(trava.lvl == travb.lvl){\n if(trava.prev == travb.prev)\n return trava.prev;\n trava = trava.prev;\n travb = travb.prev;\n }\n else if(trava.lvl > travb.lvl){\n if(trava.prev == travb)\n return travb;\n trava = trava.prev;\n }else if(trava.lvl < travb.lvl){\n if(trava == travb.prev)\n return trava;\n travb = travb.prev;\n }\n }\n if(trava != null)\n return trava;\n else\n return travb;\n }", "@Override\n public R visit(OrderClause n, A argu) {\n R _ret = null;\n n.nodeToken.accept(this, argu);\n n.nodeToken1.accept(this, argu);\n n.nodeList.accept(this, argu);\n return _ret;\n }", "private void createEOG(Statement statement) {\n if (statement == null)\n return; // For null statements, and to avoid null checks in every ifelse branch\n this.intermediateNodes.add(statement);\n if (statement instanceof CallExpression) {\n CallExpression callExpression = (CallExpression) statement;\n\n // Todo add call as throwexpression to outer scope of call can throw (which is trivial to find\n // out for java, but impossible for c++)\n\n // evaluate base first, if there is one\n if (callExpression instanceof MemberCallExpression\n && ((MemberCallExpression) callExpression).getBase() instanceof Statement) {\n createEOG((Statement) ((MemberCallExpression) callExpression).getBase());\n }\n\n // first the arguments\n for (Expression arg : callExpression.getArguments()) {\n createEOG(arg);\n }\n\n // then the call itself\n pushToEOG(statement);\n\n // look, whether the function is known to us\n /*\n\n State state = State.getInstance();\n\n todo Reconsider if this is the right thing to do \"Do we want to expressionRefersToDeclaration to the call target?\n todo We might not resolve the appropriate function\". In addition the Return may better expressionRefersToDeclaration to the block\n todo root node instead of just leading to nowhere.\n functionDeclaration = state.findMethod(callExpression);\n if (functionDeclaration != null) {\n // expressionRefersToDeclaration call to function\n State.getInstance().addEOGEdge(callExpression, functionDeclaration);\n\n // expressionRefersToDeclaration all return statements of function to statement after call expression\n State.getInstance().setCurrentEOGs(functionDeclaration.getReturnStatements());\n }*/\n\n } else if (statement instanceof MemberExpression) {\n // analyze the base\n if (((MemberExpression) statement).getBase() instanceof Statement) {\n createEOG((Statement) ((MemberExpression) statement).getBase());\n }\n\n // analyze the member\n if (((MemberExpression) statement).getMember() instanceof Statement) {\n createEOG((Statement) ((MemberExpression) statement).getMember());\n }\n\n pushToEOG(statement);\n\n } else if (statement instanceof ArraySubscriptionExpression) {\n ArraySubscriptionExpression arraySubs = (ArraySubscriptionExpression) statement;\n\n // Connect according to evaluation order, first the array reference, then the contained index.\n createEOG(arraySubs.getArrayExpression());\n createEOG(arraySubs.getSubscriptExpression());\n\n pushToEOG(statement);\n\n } else if (statement instanceof ArrayCreationExpression) {\n ArrayCreationExpression arrayCreate = (ArrayCreationExpression) statement;\n\n for (Expression dimension : arrayCreate.getDimensions())\n if (dimension != null) createEOG(dimension);\n createEOG(arrayCreate.getInitializer());\n\n pushToEOG(statement);\n\n } else if (statement instanceof DeclarationStatement) {\n // loop through declarations\n for (Declaration declaration : ((DeclarationStatement) statement).getDeclarations()) {\n if (declaration instanceof VariableDeclaration) {\n // analyze the initializers if there is one\n handleDeclaration(declaration);\n }\n }\n\n // push statement itself\n pushToEOG(statement);\n } else if (statement instanceof ReturnStatement) {\n // analyze the return value\n createEOG(((ReturnStatement) statement).getReturnValue());\n\n // push the statement itself\n pushToEOG(statement);\n\n // reset the state afterwards, we're done with this function\n currentEOG.clear();\n\n } else if (statement instanceof BinaryOperator) {\n\n BinaryOperator binOp = (BinaryOperator) statement;\n createEOG(binOp.getLhs());\n createEOG(binOp.getRhs());\n\n // push the statement itself\n pushToEOG(statement);\n\n } else if (statement instanceof UnaryOperator) {\n\n Expression input = ((UnaryOperator) statement).getInput();\n createEOG(input);\n if (((UnaryOperator) statement).getOperatorCode().equals(\"throw\")) {\n Type throwType;\n Scope catchingScope =\n lang.getScopeManager()\n .getFirstScopeThat(\n scope -> scope instanceof TryScope || scope instanceof FunctionScope);\n\n if (input != null) {\n throwType = input.getType();\n } else {\n // do not check via instanceof, since we do not want to allow subclasses of\n // DeclarationScope here\n Scope decl =\n lang.getScopeManager()\n .getFirstScopeThat(scope -> scope.getClass().equals(DeclarationScope.class));\n if (decl != null\n && decl.getAstNode() instanceof CatchClause\n && ((CatchClause) decl.getAstNode()).getParameter() != null) {\n throwType = ((CatchClause) decl.getAstNode()).getParameter().getType();\n } else {\n LOGGER.info(\"Unknown throw type, potentially throw; in a method\");\n throwType = new Type(\"UKNOWN_THROW_TYPE\");\n }\n }\n\n pushToEOG(statement);\n if (catchingScope instanceof TryScope) {\n ((TryScope) catchingScope)\n .getCatchesOrRelays()\n .put(throwType, new ArrayList<>(this.currentEOG));\n } else if (catchingScope instanceof FunctionScope) {\n ((FunctionScope) catchingScope)\n .getCatchesOrRelays()\n .put(throwType, new ArrayList<>(this.currentEOG));\n }\n currentEOG.clear();\n } else {\n pushToEOG(statement);\n }\n } else if (statement instanceof CompoundStatement) {\n lang.getScopeManager().enterScope(statement);\n // analyze the contained statements\n for (Statement child : ((CompoundStatement) statement).getStatements()) {\n createEOG(child);\n }\n lang.getScopeManager().leaveScope(statement);\n pushToEOG(statement);\n } else if (statement instanceof CompoundStatementExpression) {\n createEOG(((CompoundStatementExpression) statement).getStatement());\n pushToEOG(statement);\n } else if (statement instanceof IfStatement) {\n IfStatement ifs = (IfStatement) statement;\n List<Node> openBranchNodes = new ArrayList<>();\n lang.getScopeManager().enterScope(statement);\n createEOG(ifs.getInitializerStatement());\n handleDeclaration(ifs.getConditionDeclaration());\n createEOG(ifs.getCondition());\n List<Node> openConditionEOGs = new ArrayList<>(currentEOG);\n createEOG(ifs.getThenStatement());\n openBranchNodes.addAll(currentEOG);\n\n if (ifs.getElseStatement() != null) {\n setCurrentEOGs(openConditionEOGs);\n createEOG(ifs.getElseStatement());\n openBranchNodes.addAll(currentEOG);\n } else openBranchNodes.addAll(openConditionEOGs);\n\n lang.getScopeManager().leaveScope(statement);\n\n setCurrentEOGs(openBranchNodes);\n pushToEOG(statement); // Todo Remove root, if not wanted\n } else if (statement instanceof AssertStatement) {\n AssertStatement ifs = (AssertStatement) statement;\n createEOG(ifs.getCondition());\n List<Node> openConditionEOGs = new ArrayList<>(currentEOG);\n createEOG(ifs.getMessage());\n setCurrentEOGs(openConditionEOGs);\n pushToEOG(statement);\n } else if (statement instanceof WhileStatement) {\n\n lang.getScopeManager().enterScope(statement);\n WhileStatement whs = (WhileStatement) statement;\n\n handleDeclaration(whs.getConditionDeclaration());\n\n createEOG(whs.getCondition());\n List<Node> tmpEOGNodes = new ArrayList<>(currentEOG);\n createEOG(whs.getStatement());\n connectCurrentToLoopStart();\n\n // Replace current EOG nodes without triggering post setEOG ... processing\n currentEOG.clear();\n exitLoop(statement, (LoopScope) lang.getScopeManager().leaveScope(statement));\n\n currentEOG.addAll(tmpEOGNodes);\n\n pushToEOG(statement); // Todo Remove root, if not wanted\n } else if (statement instanceof DoStatement) {\n lang.getScopeManager().enterScope(statement);\n DoStatement dos = (DoStatement) statement;\n\n createEOG(dos.getStatement());\n\n createEOG(dos.getCondition());\n connectCurrentToLoopStart();\n exitLoop(statement, (LoopScope) lang.getScopeManager().leaveScope(statement));\n\n pushToEOG(statement); // Todo Remove root, if not wanted\n } else if (statement instanceof ForStatement) {\n lang.getScopeManager().enterScope(statement);\n ForStatement forStmt = (ForStatement) statement;\n\n createEOG(forStmt.getInitializerStatement());\n handleDeclaration(forStmt.getConditionDeclaration());\n createEOG(forStmt.getCondition());\n\n List<Node> tmpEOGNodes = new ArrayList<>(currentEOG);\n\n createEOG(forStmt.getStatement());\n createEOG(forStmt.getIterationExpression());\n\n connectCurrentToLoopStart();\n currentEOG.clear();\n exitLoop(statement, (LoopScope) lang.getScopeManager().leaveScope(statement));\n\n currentEOG.addAll(tmpEOGNodes);\n\n pushToEOG(statement); // Todo Remove root, if not wanted\n } else if (statement instanceof ForEachStatement) {\n lang.getScopeManager().enterScope(statement);\n ForEachStatement forStmt = (ForEachStatement) statement;\n\n createEOG(forStmt.getIterable());\n handleDeclaration(forStmt.getVariable());\n\n List<Node> tmpEOGNodes = new ArrayList<>(currentEOG);\n\n createEOG(forStmt.getStatement());\n\n connectCurrentToLoopStart();\n currentEOG.clear();\n exitLoop(statement, (LoopScope) lang.getScopeManager().leaveScope(statement));\n\n currentEOG.addAll(tmpEOGNodes);\n\n pushToEOG(statement); // Todo Remove root, if not wanted\n } else if (statement instanceof TryStatement) {\n lang.getScopeManager().enterScope(statement);\n TryScope tryScope = (TryScope) lang.getScopeManager().getCurrentScope();\n TryStatement tryStmt = (TryStatement) statement;\n\n if (tryStmt.getResources() != null) tryStmt.getResources().forEach(this::createEOG);\n createEOG(tryStmt.getTryBlock());\n\n List<Node> tmpEOGNodes = new ArrayList<>(currentEOG);\n\n Map<Type, List<Node>> catchesOrRelays = tryScope.getCatchesOrRelays();\n\n for (CatchClause catchClause : tryStmt.getCatchClauses()) {\n currentEOG.clear();\n // Try to catch all internally thrown exceptions under the catching clause and remove caught\n // ones\n HashSet<Type> toRemove = new HashSet<>();\n for (Map.Entry entry : catchesOrRelays.entrySet()) {\n Type throwType = (Type) entry.getKey();\n List<Node> eogEdges = (List<Node>) entry.getValue();\n if (catchClause.getParameter() == null) { // e.g. catch (...)\n currentEOG.addAll(eogEdges);\n } else if (TypeManager.getInstance()\n .isSupertypeOf(catchClause.getParameter().getType(), throwType)) {\n currentEOG.addAll(eogEdges);\n toRemove.add(throwType);\n }\n }\n toRemove.forEach(catchesOrRelays::remove);\n\n createEOG(catchClause.getBody());\n tmpEOGNodes.addAll(currentEOG);\n }\n boolean canTerminateExceptionfree =\n tmpEOGNodes.stream().anyMatch(EvaluationOrderGraphPass::reachableFromValidEOGRoot);\n\n currentEOG.clear();\n currentEOG.addAll(tmpEOGNodes);\n // connect all try-block, catch-clause and uncought throws eog points to finally start if\n // finally exists\n if (tryStmt.getFinallyBlock() != null) {\n // extends current EOG by all value EOG from open throws\n currentEOG.addAll(\n catchesOrRelays.entrySet().stream()\n .flatMap(entry -> entry.getValue().stream())\n .collect(Collectors.toList()));\n createEOG(tryStmt.getFinallyBlock());\n\n // all current-eog edges , result of finally execution as value List of uncought\n // catchesOrRelaysThrows\n for (Map.Entry entry : catchesOrRelays.entrySet()) {\n ((List) entry.getValue()).clear();\n ((List) entry.getValue()).addAll(this.currentEOG);\n }\n }\n // Forwards all open and uncought throwing nodes to the outer scope that may handle them\n Scope outerScope =\n lang.getScopeManager()\n .getFirstScopeThat(\n lang.getScopeManager().getCurrentScope().getParent(),\n scope -> scope instanceof TryScope || scope instanceof FunctionScope);\n Map outerCatchesOrRelays =\n outerScope instanceof TryScope\n ? ((TryScope) outerScope).getCatchesOrRelays()\n : ((FunctionScope) outerScope).getCatchesOrRelays();\n for (Map.Entry entry : catchesOrRelays.entrySet()) {\n List<Node> catches =\n (List<Node>) outerCatchesOrRelays.getOrDefault(entry.getKey(), new ArrayList<Node>());\n catches.addAll((List<Node>) entry.getValue());\n outerCatchesOrRelays.put(entry.getKey(), catches);\n }\n\n lang.getScopeManager().leaveScope(statement);\n // To Avoid edges out of the finally block to the next regular statement.\n if (!canTerminateExceptionfree) {\n currentEOG.clear();\n }\n\n pushToEOG(statement);\n } else if (statement instanceof ContinueStatement) {\n pushToEOG(statement);\n\n lang.getScopeManager().addContinueStatment((ContinueStatement) statement);\n\n currentEOG.clear();\n\n } else if (statement instanceof DeleteExpression) {\n\n createEOG(((DeleteExpression) statement).getOperand());\n pushToEOG(statement);\n\n } else if (statement instanceof BreakStatement) {\n pushToEOG(statement);\n\n lang.getScopeManager().addBreakStatment((BreakStatement) statement);\n\n currentEOG.clear();\n\n } else if (statement instanceof SwitchStatement) {\n\n SwitchStatement switchStatement = (SwitchStatement) statement;\n\n lang.getScopeManager().enterScope(statement);\n\n createEOG(switchStatement.getInitializerStatement());\n\n handleDeclaration(switchStatement.getSelectorDeclaration());\n\n createEOG(switchStatement.selector);\n\n CompoundStatement compound;\n List<Node> tmp = new ArrayList<>(currentEOG);\n if (switchStatement.getStatement() instanceof DoStatement) {\n createEOG(switchStatement.getStatement());\n compound =\n (CompoundStatement) ((DoStatement) switchStatement.getStatement()).getStatement();\n } else {\n compound = (CompoundStatement) switchStatement.getStatement();\n }\n currentEOG = new ArrayList<>();\n\n for (Statement subStatement : compound.getStatements()) {\n if (subStatement instanceof CaseStatement || subStatement instanceof DefaultStatement)\n currentEOG.addAll(tmp);\n createEOG(subStatement);\n }\n pushToEOG(compound);\n\n SwitchScope switchScope = (SwitchScope) lang.getScopeManager().leaveScope(switchStatement);\n this.currentEOG.addAll(switchScope.getBreakStatements());\n\n pushToEOG(statement);\n } else if (statement instanceof LabelStatement) {\n lang.getScopeManager().addLabelStatement((LabelStatement) statement);\n createEOG(((LabelStatement) statement).getSubStatement());\n } else if (statement instanceof GotoStatement) {\n GotoStatement gotoStatement = (GotoStatement) statement;\n pushToEOG(gotoStatement);\n if (gotoStatement.getTargetLabel() != null)\n lang.registerObjectListener(\n gotoStatement.getTargetLabel(), (from, to) -> addEOGEdge(gotoStatement, (Node) to));\n currentEOG.clear();\n } else if (statement instanceof CaseStatement) {\n createEOG(((CaseStatement) statement).getCaseExpression());\n pushToEOG(statement);\n } else if (statement instanceof SynchronizedStatement) {\n createEOG(((SynchronizedStatement) statement).getExpression());\n createEOG(((SynchronizedStatement) statement).getBlockStatement());\n pushToEOG(statement);\n } else if (statement instanceof EmptyStatement) {\n pushToEOG(statement);\n } else if (statement instanceof Literal) {\n pushToEOG(statement);\n } else if (statement instanceof DefaultStatement) {\n pushToEOG(statement);\n } else if (statement instanceof TypeIdExpression) {\n pushToEOG(statement);\n } else if (statement instanceof NewExpression) {\n NewExpression newStmt = (NewExpression) statement;\n createEOG(newStmt.getInitializer());\n\n pushToEOG(statement);\n } else if (statement instanceof CastExpression) {\n CastExpression castExpr = (CastExpression) statement;\n createEOG(castExpr.getExpression());\n pushToEOG(castExpr);\n } else if (statement instanceof ExpressionList) {\n ExpressionList exprList = (ExpressionList) statement;\n for (Statement expr : exprList.getExpressions()) createEOG(expr);\n\n pushToEOG(statement);\n } else if (statement instanceof ConditionalExpression) {\n ConditionalExpression condExpr = (ConditionalExpression) statement;\n\n List<Node> openBranchNodes = new ArrayList<>();\n createEOG(condExpr.getCondition());\n List<Node> openConditionEOGs = new ArrayList<>(currentEOG);\n createEOG(condExpr.getThenExpr());\n openBranchNodes.addAll(currentEOG);\n\n setCurrentEOGs(openConditionEOGs);\n createEOG(condExpr.getElseExpr());\n openBranchNodes.addAll(currentEOG);\n\n setCurrentEOGs(openBranchNodes);\n pushToEOG(statement); // Todo Remove root, if not wanted\n } else if (statement instanceof InitializerListExpression) {\n InitializerListExpression initList = (InitializerListExpression) statement;\n\n // first the arguments\n for (Expression inits : initList.getInitializers()) {\n createEOG(inits);\n }\n\n pushToEOG(statement);\n } else if (statement instanceof ConstructExpression) {\n ConstructExpression constructExpr = (ConstructExpression) statement;\n\n // first the arguments\n for (Expression arg : constructExpr.getArguments()) {\n createEOG(arg);\n }\n\n pushToEOG(statement);\n } else if (statement instanceof DeclaredReferenceExpression) {\n pushToEOG(statement);\n } else {\n // In this case the ast -> cpg translation has to implement the cpg node creation\n pushToEOG(statement);\n }\n }" ]
[ "0.6020388", "0.5623062", "0.56167233", "0.56034166", "0.53453225", "0.52787834", "0.5261499", "0.5121528", "0.51037335", "0.5088288", "0.50713533", "0.5015555", "0.5002107", "0.49883723", "0.4981641", "0.4975128", "0.49512547", "0.49472323", "0.492188", "0.49176598", "0.4913537", "0.4909625", "0.4898268", "0.4858562", "0.48504186", "0.48168164", "0.48132914", "0.4806164", "0.4804576", "0.47859514", "0.4783293", "0.4772023", "0.47706228", "0.47705147", "0.47636762", "0.4761882", "0.47411877", "0.46983194", "0.4681191", "0.4677314", "0.46745035", "0.46559098", "0.46521747", "0.46459895", "0.46447328", "0.46446344", "0.46365434", "0.46350628", "0.4631043", "0.4628991", "0.46271977", "0.46178195", "0.46172968", "0.4616374", "0.46087763", "0.46073678", "0.46072477", "0.4604675", "0.45969197", "0.4596116", "0.458591", "0.45849416", "0.45797563", "0.45767784", "0.45614675", "0.45474142", "0.4540915", "0.45330048", "0.45283094", "0.45264977", "0.4524691", "0.4523915", "0.45219558", "0.45210934", "0.4520474", "0.45168966", "0.4512926", "0.45119238", "0.4511833", "0.45088127", "0.45021844", "0.45002884", "0.45002306", "0.4494574", "0.44934887", "0.4483199", "0.44802636", "0.44796047", "0.4474388", "0.4470509", "0.44634387", "0.44618285", "0.4460516", "0.4460516", "0.4460516", "0.4460516", "0.44588396", "0.44577444", "0.44551626", "0.44509435" ]
0.6479711
0
nodeChoice > RuleConstructClause() | RuleModifyClause()
@Override public R visit(Consequent n, A argu) { R _ret = null; n.nodeChoice.accept(this, argu); return _ret; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "StatementRule createStatementRule();", "GeneralClause createGeneralClause();", "AlgNode routeDml( LogicalModify node, Statement statement );", "@Test\n public void testAndOrRules() throws Exception {\n final PackageDescr pkg = ((PackageDescr) (parseResource(\"compilationUnit\", \"and_or_rule.drl\")));\n TestCase.assertNotNull(pkg);\n TestCase.assertEquals(1, pkg.getRules().size());\n final RuleDescr rule = ((RuleDescr) (pkg.getRules().get(0)));\n TestCase.assertEquals(\"simple_rule\", rule.getName());\n // we will have 3 children under the main And node\n final AndDescr and = rule.getLhs();\n TestCase.assertEquals(3, and.getDescrs().size());\n PatternDescr left = ((PatternDescr) (and.getDescrs().get(0)));\n PatternDescr right = ((PatternDescr) (and.getDescrs().get(1)));\n TestCase.assertEquals(\"Person\", left.getObjectType());\n TestCase.assertEquals(\"Cheese\", right.getObjectType());\n TestCase.assertEquals(1, getDescrs().size());\n ExprConstraintDescr fld = ((ExprConstraintDescr) (getDescrs().get(0)));\n TestCase.assertEquals(\"name == \\\"mark\\\"\", fld.getExpression());\n TestCase.assertEquals(1, getDescrs().size());\n fld = ((ExprConstraintDescr) (getDescrs().get(0)));\n TestCase.assertEquals(\"type == \\\"stilton\\\"\", fld.getExpression());\n // now the \"||\" part\n final OrDescr or = ((OrDescr) (and.getDescrs().get(2)));\n TestCase.assertEquals(2, or.getDescrs().size());\n left = ((PatternDescr) (or.getDescrs().get(0)));\n right = ((PatternDescr) (or.getDescrs().get(1)));\n TestCase.assertEquals(\"Person\", left.getObjectType());\n TestCase.assertEquals(\"Cheese\", right.getObjectType());\n TestCase.assertEquals(1, getDescrs().size());\n fld = ((ExprConstraintDescr) (getDescrs().get(0)));\n TestCase.assertEquals(\"name == \\\"mark\\\"\", fld.getExpression());\n TestCase.assertEquals(1, getDescrs().size());\n fld = ((ExprConstraintDescr) (getDescrs().get(0)));\n TestCase.assertEquals(\"type == \\\"stilton\\\"\", fld.getExpression());\n assertEqualsIgnoreWhitespace(\"System.out.println( \\\"Mark and Michael\\\" );\", ((String) (rule.getConsequence())));\n }", "CaseStmtRule createCaseStmtRule();", "public interface RuleConstruction extends SelectRule, DeleteRule, UpdateRule {\n\n /**\n * Check whether word is key-word\n *\n * @param word - word\n * @return false - word is not key-word\n * true - word is key-word\n */\n boolean isNotKeyWord(String word);\n\n /**\n * Check whether word is By-word\n *\n * @param currentIndex - word index\n * @param words - list of words\n * @return true - word is correct\n * false - word is not correct\n */\n boolean isByCorrect(int currentIndex, List<String> words);\n\n /**\n * Check whether word is And-word or Or-word\n *\n * @param currentIndex - word index\n * @param words - list of words\n * @return true - word is correct\n * false - word is not correct\n */\n boolean isAndOrCorrect(int currentIndex, List<String> words);\n\n /**\n * Check whether word is Between-word\n *\n * @param currentIndex - word index\n * @param words - list of words\n * @return true - word is correct\n * false - word is not correct\n */\n boolean isBetweenCorrect(int currentIndex, List<String> words);\n}", "ControlBlockRule createControlBlockRule();", "ExprRule createExprRule();", "CaseBlockRule createCaseBlockRule();", "@Override\n public R visit(RuleModifyClause n, A argu) {\n R _ret = null;\n n.nodeToken.accept(this, argu);\n n.deleteClause.accept(this, argu);\n n.nodeOptional.accept(this, argu);\n return _ret;\n }", "Rule createRule();", "Rule createRule();", "Rule createRule();", "CmdRule createCmdRule();", "private Formula (Clause c, ImList<Clause> r) {\n\t\t//System.out.println(\"Test1\"+r.toString());\n\t\t//System.out.println(\"Test1\"+c);\n\t\tclauses=r.add(c);\n\t\t//System.out.println(\"Test2\"+clauses.toString());\n\t\tcheckRep();\n\t}", "public Formula(Clause c) {\n\t\t// TODO: implement this.\n\t\t//throw new RuntimeException(\"not yet implemented.\");\n\t\tclauses=new NonEmptyImList<Clause>(c); \n\t}", "private void generateRules(TreeNode tn)\n{\n if (!tn.isLeaf()) {\n generateRules(tn.getPassTree());\n generateRules(tn.getFailTree());\n return;\n }\n RuleInstance ri = tn.getRules().get(0);\n if (ri.getBaseRule() != null) return;\t// rule already in set\n\n Condition c = tn.getCondition();\n List<UpodCondition> cset = new ArrayList<UpodCondition>();\n if (c != null) {\n UpodCondition cond = c.getConditionTest(for_program);\n if (cond != null) cset.add(cond);\n }\n for (TreeNode pn = tn.getParent(); pn != null; pn = pn.getParent()) {\n Condition pc = pn.getCondition();\n if (pc == null) continue;\n UpodCondition pcond = pc.getConditionTest(for_program);\n if (pcond != null) cset.add(pcond);\n }\n\n UpodCondition rcond = null;\n if (cset.isEmpty()) return;\n if (cset.size() == 1) rcond = cset.get(0);\n else {\n UpodCondition [] conds = new UpodCondition[cset.size()];\n conds = cset.toArray(conds);\n rcond = new BasisConditionLogical.And(conds);\n }\n List<UpodAction> racts = ri.getActions();\n if (rcond == null || racts == null) return;\n\n BasisRule rule = new BasisRule(rcond,racts,null,100);\n for_program.addRule(rule);\n}", "public Formula addClause(Clause c) {\n\n\t\tFormula f2;\n\t\tf2=new Formula(c,this.clauses);\n\t\treturn f2;\n\t}", "AssignmentRule createAssignmentRule();", "@Override\n public Void visitClause(GraafvisParser.ClauseContext ctx) {\n /* Arrived at a new clause, clear variables set */\n variables.clear();\n /* Visit antecedent and consequence */\n return visitChildren(ctx);\n }", "@Override\n\tArrayList<Prop> MakeClause() {\n\t\treturn null;\n\t}", "CaseStatement createCaseStatement();", "public Rule(String name, LinkedList<Context> premises, Context conclucion)\n {\n\tthis.name = name;\n\tthis.premises = premises;\n\tthis.conclucion = conclucion;\n }", "E1Rule createE1Rule();", "public T caseClause(Clause object)\n {\n return null;\n }", "ModelRule createModelRule();", "E3Rule createE3Rule();", "@Override\n\tpublic Void visit(ClauseModifier clause, Void ctx) {\n\t\treturn null;\n\t}", "public void test_ck_02() {\n OntModel vocabModel = ModelFactory.createOntologyModel();\n ObjectProperty p = vocabModel.createObjectProperty(\"p\");\n OntClass A = vocabModel.createClass(\"A\");\n \n OntModel workModel = ModelFactory.createOntologyModel();\n Individual sub = workModel.createIndividual(\"uri1\", A);\n Individual obj = workModel.createIndividual(\"uri2\", A);\n workModel.createStatement(sub, p, obj);\n }", "IRuleset add(IRuleset rule);", "ObjectSelectionRule createObjectSelectionRule();", "E9Rule createE9Rule();", "private void addConstraint(String tok) throws SyntaxError {\n assert(tok.startsWith(PREFIX_OP_STR));\n \n if (!tok.endsWith(\")\")) {\n throw new SyntaxError(String.format(\"Wrong format for the constraint '%s', expected format: %s\",\n tok, CONSTR_FMT));\n }\n int pos = tok.indexOf('(');\n if (pos == -1) {\n throw new SyntaxError(String.format(\"Missing '(' in the constraint '%s', expected format: %s\",\n tok, CONSTR_FMT)); \n }\n String op = tok.substring(1, pos);\n ConstraintType type = ConstraintType.CONSTRAINT_PARENT;\n if (op.equalsIgnoreCase(CONSTR_CONTAINS)) {\n type = ConstraintType.CONSTRAINT_CONTAINS;\n } else if (!op.equalsIgnoreCase(CONSTR_PARENT)) {\n throw new SyntaxError(String.format(\"Wrong constraint name '%s' in the element '%s'\", op, tok));\n }\n // Labels cannot contain commas\n String parts[] = tok.substring(pos + 1, tok.length() - 1).split(\",\");\n if (parts.length < 2) {\n throw new SyntaxError(String.format(\n \"There should be at least 2 elements between '(' and ')'\" + \n \" in the constraint '%s', expected format %s\",\n tok, CONSTR_FMT));\n }\n String headLabel = parts[0].trim();\n Integer headId = mLabel2Id.get(headLabel);\n if (null == headId) {\n throw new SyntaxError(String.format(\"Cannot find a lexical entry \" +\n \" for the label '%s', constraint '%s'\", headLabel, tok)); \n }\n\n ArrayList<ConstraintType> constr = mConstrType.get(headId);\n ArrayList<Integer> dependIds = mDependId.get(headId);\n \n if (ConstraintType.CONSTRAINT_PARENT == type) {\n if (mTypes.get(headId) != FieldType.FIELD_ANNOTATION) {\n throw new SyntaxError(String.format(\n \"The parent in the constraint '%s' should be an annotation\", tok));\n }\n }\n \n for (int i = 1; i < parts.length; ++i) {\n String depLabel = parts[i].trim();\n Integer depId = mLabel2Id.get(depLabel);\n if (null == depId) {\n throw new SyntaxError(String.format(\"Cannot find a lexical entry \" +\n \" for the label '%s', constraint '%s'\", depLabel, tok)); \n }\n \n if (ConstraintType.CONSTRAINT_PARENT == type) {\n if (mTypes.get(depId) != FieldType.FIELD_ANNOTATION) {\n throw new SyntaxError(String.format(\n \"A child (label '%s') in the constraint '%s' should be an annotation\", \n depLabel, tok));\n }\n } \n \n constr.add(type);\n dependIds.add(depId);\n\n /*\n * This is a potentially horrible linear-time complexity search\n * in an array. However, for a reasonable-size user query \n * these arrays are going to be tiny and, in practice, \n * such a linear search be as fast as or likely even faster than \n * a hash/tree map lookup.\n */\n if (!mEdges.get(depId).contains(headId))\n mEdges.get(depId).add(headId);\n if (!mEdges.get(headId).contains(depId))\n mEdges.get(headId).add(depId);\n\n }\n }", "RegExConstraint createRegExConstraint();", "public node cnf() { rule: anything can sit immediately below ands\n //\n System.out.println( \" should not call \" );\n System.exit( 1 );\n return null;\n }", "private Clause make(Literal... e) {\n Clause c = new Clause();\n for (int i = 0; i < e.length; ++i) {\n c = c.add(e[i]);\n }\n return c;\n }", "E13Rule createE13Rule();", "public interface Node {\n Oper oper();\n CNFOrdinal toCNF();\n}", "public interface CustomConstruct extends AgnosticStatement, QueryCondition {\n}", "RuleCatalog createRuleCatalog();", "@Override\r\npublic void initRules(){\r\n\t\r\n}", "E2Rule createE2Rule();", "DefaultCaseBlockRule createDefaultCaseBlockRule();", "@Test\n public void testRuleClass() throws Exception {\n\n HepProgramBuilder programBuilder = HepProgram.builder();\n programBuilder.addRuleClass( CoerceInputsRule.class );\n\n HepPlanner planner = new HepPlanner( programBuilder.build() );\n\n planner.addRule( new CoerceInputsRule( LogicalUnion.class, false, AlgFactories.LOGICAL_BUILDER ) );\n planner.addRule( new CoerceInputsRule( LogicalIntersect.class, false, AlgFactories.LOGICAL_BUILDER ) );\n\n checkPlanning( planner, \"(select name from dept union select ename from emp) intersect (select fname from customer.contact)\" );\n }", "public void mutateNonterminalNode() {\n Node[] nodes = getRandomNonterminalNode(false);\n if (nodes != null)\n ((CriteriaNode) nodes[1]).randomizeIndicator();\n }", "void setRule(Rule rule);", "public SCondition(Node node) {\n super(node);\n }", "public final AstValidator.define_clause_return define_clause() throws RecognitionException {\n AstValidator.define_clause_return retval = new AstValidator.define_clause_return();\n retval.start = input.LT(1);\n\n\n CommonTree root_0 = null;\n\n CommonTree _first_0 = null;\n CommonTree _last = null;\n\n CommonTree DEFINE47=null;\n AstValidator.alias_return alias48 =null;\n\n AstValidator.cmd_return cmd49 =null;\n\n AstValidator.func_clause_return func_clause50 =null;\n\n\n CommonTree DEFINE47_tree=null;\n\n try {\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:184:15: ( ^( DEFINE alias ( cmd | func_clause ) ) )\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:184:17: ^( DEFINE alias ( cmd | func_clause ) )\n {\n root_0 = (CommonTree)adaptor.nil();\n\n\n _last = (CommonTree)input.LT(1);\n {\n CommonTree _save_last_1 = _last;\n CommonTree _first_1 = null;\n CommonTree root_1 = (CommonTree)adaptor.nil();\n _last = (CommonTree)input.LT(1);\n DEFINE47=(CommonTree)match(input,DEFINE,FOLLOW_DEFINE_in_define_clause573); if (state.failed) return retval;\n if ( state.backtracking==0 ) {\n DEFINE47_tree = (CommonTree)adaptor.dupNode(DEFINE47);\n\n\n root_1 = (CommonTree)adaptor.becomeRoot(DEFINE47_tree, root_1);\n }\n\n\n match(input, Token.DOWN, null); if (state.failed) return retval;\n _last = (CommonTree)input.LT(1);\n pushFollow(FOLLOW_alias_in_define_clause575);\n alias48=alias();\n\n state._fsp--;\n if (state.failed) return retval;\n if ( state.backtracking==0 ) \n adaptor.addChild(root_1, alias48.getTree());\n\n\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:184:33: ( cmd | func_clause )\n int alt7=2;\n int LA7_0 = input.LA(1);\n\n if ( (LA7_0==EXECCOMMAND) ) {\n alt7=1;\n }\n else if ( (LA7_0==FUNC||LA7_0==FUNC_REF) ) {\n alt7=2;\n }\n else {\n if (state.backtracking>0) {state.failed=true; return retval;}\n NoViableAltException nvae =\n new NoViableAltException(\"\", 7, 0, input);\n\n throw nvae;\n\n }\n switch (alt7) {\n case 1 :\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:184:35: cmd\n {\n _last = (CommonTree)input.LT(1);\n pushFollow(FOLLOW_cmd_in_define_clause579);\n cmd49=cmd();\n\n state._fsp--;\n if (state.failed) return retval;\n if ( state.backtracking==0 ) \n adaptor.addChild(root_1, cmd49.getTree());\n\n\n if ( state.backtracking==0 ) {\n }\n }\n break;\n case 2 :\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:184:41: func_clause\n {\n _last = (CommonTree)input.LT(1);\n pushFollow(FOLLOW_func_clause_in_define_clause583);\n func_clause50=func_clause();\n\n state._fsp--;\n if (state.failed) return retval;\n if ( state.backtracking==0 ) \n adaptor.addChild(root_1, func_clause50.getTree());\n\n\n if ( state.backtracking==0 ) {\n }\n }\n break;\n\n }\n\n\n match(input, Token.UP, null); if (state.failed) return retval;\n adaptor.addChild(root_0, root_1);\n _last = _save_last_1;\n }\n\n\n if ( state.backtracking==0 ) {\n }\n }\n\n if ( state.backtracking==0 ) {\n\n retval.tree = (CommonTree)adaptor.rulePostProcessing(root_0);\n }\n\n }\n\n catch(RecognitionException re) {\n throw re;\n }\n\n finally {\n \t// do for sure before leaving\n }\n return retval;\n }", "E11Rule createE11Rule();", "public interface EntityOrAssetRule extends Rule {\n /**\n * Return the component id of the Entity or Asset that this rule should\n * belong to.\n * @return The component id.\n */\n public String getComponentId();\n \n /**\n * Given a mission objective and a system, find the corresponding component\n * to this rule, and add this rule to that component.\n * @param objective The mission objective.\n * @param system The system containing the component for this rule.\n */\n public void addToComponent(String objective, OpSystem system);\n}", "public void add_rule(Rule rule) throws Exception;", "@Test\n public void testRuleDescription() throws Exception {\n\n HepProgramBuilder programBuilder = HepProgram.builder();\n programBuilder.addRuleByDescription( \"FilterToCalcRule\" );\n\n HepPlanner planner = new HepPlanner( programBuilder.build() );\n\n planner.addRule( FilterToCalcRule.INSTANCE );\n\n checkPlanning( planner, \"select name from sales.dept where deptno=12\" );\n }", "public RuleBuilder endRule(double weight) {\n if( literals.size() > 0 ) {\n mlnText.rules.add(new MLNText.Rule(weight, literals));\n }\n return new RuleBuilder();\n }", "@Override\n public R visit(ConstructQuery n, A argu) {\n R _ret = null;\n n.nodeToken.accept(this, argu);\n n.constructTemplate.accept(this, argu);\n n.nodeListOptional.accept(this, argu);\n n.whereClause.accept(this, argu);\n n.solutionModifier.accept(this, argu);\n return _ret;\n }", "public Formula() {\t\n\t\t// TODO: implement this.\n\t\t// throw new RuntimeException(\"not yet implemented.\");\n\t\tclauses=new EmptyImList<Clause>();\n\t}", "public final AstValidator.op_clause_return op_clause() throws RecognitionException {\n AstValidator.op_clause_return retval = new AstValidator.op_clause_return();\n retval.start = input.LT(1);\n\n\n CommonTree root_0 = null;\n\n CommonTree _first_0 = null;\n CommonTree _last = null;\n\n AstValidator.define_clause_return define_clause28 =null;\n\n AstValidator.load_clause_return load_clause29 =null;\n\n AstValidator.group_clause_return group_clause30 =null;\n\n AstValidator.store_clause_return store_clause31 =null;\n\n AstValidator.filter_clause_return filter_clause32 =null;\n\n AstValidator.distinct_clause_return distinct_clause33 =null;\n\n AstValidator.limit_clause_return limit_clause34 =null;\n\n AstValidator.sample_clause_return sample_clause35 =null;\n\n AstValidator.order_clause_return order_clause36 =null;\n\n AstValidator.rank_clause_return rank_clause37 =null;\n\n AstValidator.cross_clause_return cross_clause38 =null;\n\n AstValidator.join_clause_return join_clause39 =null;\n\n AstValidator.union_clause_return union_clause40 =null;\n\n AstValidator.stream_clause_return stream_clause41 =null;\n\n AstValidator.mr_clause_return mr_clause42 =null;\n\n AstValidator.split_clause_return split_clause43 =null;\n\n AstValidator.foreach_clause_return foreach_clause44 =null;\n\n AstValidator.cube_clause_return cube_clause45 =null;\n\n AstValidator.assert_clause_return assert_clause46 =null;\n\n\n\n try {\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:163:11: ( define_clause | load_clause | group_clause | store_clause | filter_clause | distinct_clause | limit_clause | sample_clause | order_clause | rank_clause | cross_clause | join_clause | union_clause | stream_clause | mr_clause | split_clause | foreach_clause | cube_clause | assert_clause )\n int alt6=19;\n switch ( input.LA(1) ) {\n case DEFINE:\n {\n alt6=1;\n }\n break;\n case LOAD:\n {\n alt6=2;\n }\n break;\n case COGROUP:\n case GROUP:\n {\n alt6=3;\n }\n break;\n case STORE:\n {\n alt6=4;\n }\n break;\n case FILTER:\n {\n alt6=5;\n }\n break;\n case DISTINCT:\n {\n alt6=6;\n }\n break;\n case LIMIT:\n {\n alt6=7;\n }\n break;\n case SAMPLE:\n {\n alt6=8;\n }\n break;\n case ORDER:\n {\n alt6=9;\n }\n break;\n case RANK:\n {\n alt6=10;\n }\n break;\n case CROSS:\n {\n alt6=11;\n }\n break;\n case JOIN:\n {\n alt6=12;\n }\n break;\n case UNION:\n {\n alt6=13;\n }\n break;\n case STREAM:\n {\n alt6=14;\n }\n break;\n case MAPREDUCE:\n {\n alt6=15;\n }\n break;\n case SPLIT:\n {\n alt6=16;\n }\n break;\n case FOREACH:\n {\n alt6=17;\n }\n break;\n case CUBE:\n {\n alt6=18;\n }\n break;\n case ASSERT:\n {\n alt6=19;\n }\n break;\n default:\n if (state.backtracking>0) {state.failed=true; return retval;}\n NoViableAltException nvae =\n new NoViableAltException(\"\", 6, 0, input);\n\n throw nvae;\n\n }\n\n switch (alt6) {\n case 1 :\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:163:13: define_clause\n {\n root_0 = (CommonTree)adaptor.nil();\n\n\n _last = (CommonTree)input.LT(1);\n pushFollow(FOLLOW_define_clause_in_op_clause310);\n define_clause28=define_clause();\n\n state._fsp--;\n if (state.failed) return retval;\n if ( state.backtracking==0 ) \n adaptor.addChild(root_0, define_clause28.getTree());\n\n\n if ( state.backtracking==0 ) {\n }\n }\n break;\n case 2 :\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:164:13: load_clause\n {\n root_0 = (CommonTree)adaptor.nil();\n\n\n _last = (CommonTree)input.LT(1);\n pushFollow(FOLLOW_load_clause_in_op_clause324);\n load_clause29=load_clause();\n\n state._fsp--;\n if (state.failed) return retval;\n if ( state.backtracking==0 ) \n adaptor.addChild(root_0, load_clause29.getTree());\n\n\n if ( state.backtracking==0 ) {\n }\n }\n break;\n case 3 :\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:165:13: group_clause\n {\n root_0 = (CommonTree)adaptor.nil();\n\n\n _last = (CommonTree)input.LT(1);\n pushFollow(FOLLOW_group_clause_in_op_clause338);\n group_clause30=group_clause();\n\n state._fsp--;\n if (state.failed) return retval;\n if ( state.backtracking==0 ) \n adaptor.addChild(root_0, group_clause30.getTree());\n\n\n if ( state.backtracking==0 ) {\n }\n }\n break;\n case 4 :\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:166:13: store_clause\n {\n root_0 = (CommonTree)adaptor.nil();\n\n\n _last = (CommonTree)input.LT(1);\n pushFollow(FOLLOW_store_clause_in_op_clause352);\n store_clause31=store_clause();\n\n state._fsp--;\n if (state.failed) return retval;\n if ( state.backtracking==0 ) \n adaptor.addChild(root_0, store_clause31.getTree());\n\n\n if ( state.backtracking==0 ) {\n }\n }\n break;\n case 5 :\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:167:13: filter_clause\n {\n root_0 = (CommonTree)adaptor.nil();\n\n\n _last = (CommonTree)input.LT(1);\n pushFollow(FOLLOW_filter_clause_in_op_clause366);\n filter_clause32=filter_clause();\n\n state._fsp--;\n if (state.failed) return retval;\n if ( state.backtracking==0 ) \n adaptor.addChild(root_0, filter_clause32.getTree());\n\n\n if ( state.backtracking==0 ) {\n }\n }\n break;\n case 6 :\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:168:13: distinct_clause\n {\n root_0 = (CommonTree)adaptor.nil();\n\n\n _last = (CommonTree)input.LT(1);\n pushFollow(FOLLOW_distinct_clause_in_op_clause380);\n distinct_clause33=distinct_clause();\n\n state._fsp--;\n if (state.failed) return retval;\n if ( state.backtracking==0 ) \n adaptor.addChild(root_0, distinct_clause33.getTree());\n\n\n if ( state.backtracking==0 ) {\n }\n }\n break;\n case 7 :\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:169:13: limit_clause\n {\n root_0 = (CommonTree)adaptor.nil();\n\n\n _last = (CommonTree)input.LT(1);\n pushFollow(FOLLOW_limit_clause_in_op_clause394);\n limit_clause34=limit_clause();\n\n state._fsp--;\n if (state.failed) return retval;\n if ( state.backtracking==0 ) \n adaptor.addChild(root_0, limit_clause34.getTree());\n\n\n if ( state.backtracking==0 ) {\n }\n }\n break;\n case 8 :\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:170:13: sample_clause\n {\n root_0 = (CommonTree)adaptor.nil();\n\n\n _last = (CommonTree)input.LT(1);\n pushFollow(FOLLOW_sample_clause_in_op_clause408);\n sample_clause35=sample_clause();\n\n state._fsp--;\n if (state.failed) return retval;\n if ( state.backtracking==0 ) \n adaptor.addChild(root_0, sample_clause35.getTree());\n\n\n if ( state.backtracking==0 ) {\n }\n }\n break;\n case 9 :\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:171:13: order_clause\n {\n root_0 = (CommonTree)adaptor.nil();\n\n\n _last = (CommonTree)input.LT(1);\n pushFollow(FOLLOW_order_clause_in_op_clause422);\n order_clause36=order_clause();\n\n state._fsp--;\n if (state.failed) return retval;\n if ( state.backtracking==0 ) \n adaptor.addChild(root_0, order_clause36.getTree());\n\n\n if ( state.backtracking==0 ) {\n }\n }\n break;\n case 10 :\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:172:13: rank_clause\n {\n root_0 = (CommonTree)adaptor.nil();\n\n\n _last = (CommonTree)input.LT(1);\n pushFollow(FOLLOW_rank_clause_in_op_clause436);\n rank_clause37=rank_clause();\n\n state._fsp--;\n if (state.failed) return retval;\n if ( state.backtracking==0 ) \n adaptor.addChild(root_0, rank_clause37.getTree());\n\n\n if ( state.backtracking==0 ) {\n }\n }\n break;\n case 11 :\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:173:13: cross_clause\n {\n root_0 = (CommonTree)adaptor.nil();\n\n\n _last = (CommonTree)input.LT(1);\n pushFollow(FOLLOW_cross_clause_in_op_clause450);\n cross_clause38=cross_clause();\n\n state._fsp--;\n if (state.failed) return retval;\n if ( state.backtracking==0 ) \n adaptor.addChild(root_0, cross_clause38.getTree());\n\n\n if ( state.backtracking==0 ) {\n }\n }\n break;\n case 12 :\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:174:13: join_clause\n {\n root_0 = (CommonTree)adaptor.nil();\n\n\n _last = (CommonTree)input.LT(1);\n pushFollow(FOLLOW_join_clause_in_op_clause464);\n join_clause39=join_clause();\n\n state._fsp--;\n if (state.failed) return retval;\n if ( state.backtracking==0 ) \n adaptor.addChild(root_0, join_clause39.getTree());\n\n\n if ( state.backtracking==0 ) {\n }\n }\n break;\n case 13 :\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:175:13: union_clause\n {\n root_0 = (CommonTree)adaptor.nil();\n\n\n _last = (CommonTree)input.LT(1);\n pushFollow(FOLLOW_union_clause_in_op_clause478);\n union_clause40=union_clause();\n\n state._fsp--;\n if (state.failed) return retval;\n if ( state.backtracking==0 ) \n adaptor.addChild(root_0, union_clause40.getTree());\n\n\n if ( state.backtracking==0 ) {\n }\n }\n break;\n case 14 :\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:176:13: stream_clause\n {\n root_0 = (CommonTree)adaptor.nil();\n\n\n _last = (CommonTree)input.LT(1);\n pushFollow(FOLLOW_stream_clause_in_op_clause492);\n stream_clause41=stream_clause();\n\n state._fsp--;\n if (state.failed) return retval;\n if ( state.backtracking==0 ) \n adaptor.addChild(root_0, stream_clause41.getTree());\n\n\n if ( state.backtracking==0 ) {\n }\n }\n break;\n case 15 :\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:177:13: mr_clause\n {\n root_0 = (CommonTree)adaptor.nil();\n\n\n _last = (CommonTree)input.LT(1);\n pushFollow(FOLLOW_mr_clause_in_op_clause506);\n mr_clause42=mr_clause();\n\n state._fsp--;\n if (state.failed) return retval;\n if ( state.backtracking==0 ) \n adaptor.addChild(root_0, mr_clause42.getTree());\n\n\n if ( state.backtracking==0 ) {\n }\n }\n break;\n case 16 :\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:178:13: split_clause\n {\n root_0 = (CommonTree)adaptor.nil();\n\n\n _last = (CommonTree)input.LT(1);\n pushFollow(FOLLOW_split_clause_in_op_clause520);\n split_clause43=split_clause();\n\n state._fsp--;\n if (state.failed) return retval;\n if ( state.backtracking==0 ) \n adaptor.addChild(root_0, split_clause43.getTree());\n\n\n if ( state.backtracking==0 ) {\n }\n }\n break;\n case 17 :\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:179:13: foreach_clause\n {\n root_0 = (CommonTree)adaptor.nil();\n\n\n _last = (CommonTree)input.LT(1);\n pushFollow(FOLLOW_foreach_clause_in_op_clause534);\n foreach_clause44=foreach_clause();\n\n state._fsp--;\n if (state.failed) return retval;\n if ( state.backtracking==0 ) \n adaptor.addChild(root_0, foreach_clause44.getTree());\n\n\n if ( state.backtracking==0 ) {\n }\n }\n break;\n case 18 :\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:180:13: cube_clause\n {\n root_0 = (CommonTree)adaptor.nil();\n\n\n _last = (CommonTree)input.LT(1);\n pushFollow(FOLLOW_cube_clause_in_op_clause548);\n cube_clause45=cube_clause();\n\n state._fsp--;\n if (state.failed) return retval;\n if ( state.backtracking==0 ) \n adaptor.addChild(root_0, cube_clause45.getTree());\n\n\n if ( state.backtracking==0 ) {\n }\n }\n break;\n case 19 :\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:181:13: assert_clause\n {\n root_0 = (CommonTree)adaptor.nil();\n\n\n _last = (CommonTree)input.LT(1);\n pushFollow(FOLLOW_assert_clause_in_op_clause562);\n assert_clause46=assert_clause();\n\n state._fsp--;\n if (state.failed) return retval;\n if ( state.backtracking==0 ) \n adaptor.addChild(root_0, assert_clause46.getTree());\n\n\n if ( state.backtracking==0 ) {\n }\n }\n break;\n\n }\n if ( state.backtracking==0 ) {\n\n retval.tree = (CommonTree)adaptor.rulePostProcessing(root_0);\n }\n\n }\n\n catch(RecognitionException re) {\n throw re;\n }\n\n finally {\n \t// do for sure before leaving\n }\n return retval;\n }", "LogicCondition createLogicCondition();", "private void parseRule(Node node) {\r\n if (switchTest) return;\r\n parse(node.right());\r\n }", "public interface CatalogActionConstraint extends DataContract, HasProperties, HasSentence {\n\n // create,update,delete,evaluate\n //public String getName(); = Handler\n //void setName(String h);\n\n String getSeed();\n void setSeed(String s);\n\n String getDescription();\n\n\n}", "GeneralClauseContinuation createGeneralClauseContinuation();", "@Override\n\tpublic Object visit(ASTCondOr node, Object data) {\n\t\tnode.jjtGetChild(0).jjtAccept(this, data);\n\t\tSystem.out.print(\" or \");\n\t\tnode.jjtGetChild(1).jjtAccept(this, data);\n\t\treturn null;\n\t}", "public switch_analyzer(switch_construct the_switch_action) {\n super(the_switch_action);\n expression = make(the_switch_action.expression);\n\n clauses = new base_list<case_clause>();\n for (int i = 0; i < the_switch_action.clauses.size(); ++i) {\n case_clause_construct the_construct = the_switch_action.clauses.get(i);\n list<analyzable> case_values = new base_list<analyzable>();\n boolean is_default = false;\n for (int j = 0; j < the_construct.cases.size(); ++j) {\n construct the_case_construct = the_construct.cases.get(j);\n if (the_case_construct instanceof empty_construct) {\n is_default = true;\n } else {\n case_values.append(make(the_case_construct));\n }\n }\n analyzable body = new list_analyzer(make_list(the_construct.body), the_construct);\n clauses.append(new case_clause(case_values, is_default, body));\n }\n }", "@Test\n public void testRewriteCreate() throws Exception{\n try {\n ParseNode tree = TestQuery.prepareCreateStmtAnalysed();\n ParseNode ansTreeRewritten = TestQuery.prepareCreateStmtRewritten();\n testObj.rewrite(tree);\n System.out.println(tree.toSql());\n assertEquals(ansTreeRewritten.toSql(), tree.toSql());\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n }", "public interface Rule {\n \n /**\n * Determine if a rule meets all of its conditions.\n * @param OpSystem The overall system for this rule.\n * @return true if the rule meets its condition.\n */\n public boolean meetsCondition(OpSystem system);\n}", "public static void main(String[] args)\n {\n /*\n * Create a new loader with default factory.\n * \n * A factory will create all rule components when loader requires them\n * Default engine is used that creates all the default constructs in:\n * org.achacha.rules.compare\n * org.achacha.rules.condition\n * org.achacha.rules.action\n * \n * RulesEngineFactoryExtension can be used to extend a default factory while keeping existing constructs\n * for basic rules the default factory provides a wide variety of comparators and action elements\n * \n * The loader uses the factory to resolve where the rule parts are loaded from\n * There are several load types (file system, in-memory string, in-memory XML)\n * Here we will configure a simple in-memory string based loader and add the\n * conditions and actions from constants\n */\n RulesEngineLoaderImplMappedString loader = new RulesEngineLoaderImplMappedString(new RulesEngineFactory());\n \n // Add a simple rule and call it 'alwaysTrue', we will execute this rule using this name\n loader.addRule(\"alwaysTrue\", SIMPLE_RULE);\n \n /*\n * Create a rules engine that uses the loader and factory we just created\n * Normally these 3 objects would be someone retained so we don't have to re-parse the rules every execution\n * However this is a tutorial example\n */\n RulesEngine engine = new RulesEngine(loader);\n \n /////////////////////////// Everything above is initialization ///////////////////////////////////////\n \n /////////////////////////// Everything below is rule execution ///////////////////////////////////////\n /*\n * Now we need to have some input for the rule to process but since were are using constants in comparison we can just pass\n * an empty input model\n * \n * We use dom4j XML Element for input\n * \n * <request>\n * <input />\n * </request>\n */\n Element request = DocumentHelper.createElement(\"request\");\n request.addElement(\"input\");\n \n /*\n * RuleContext is an object that holds the input, output, event log, etc for a given rule execution\n * The engine can create a new context for us if we specify the input for the rule\n */\n RuleContext ruleContext = engine.createContext(request);\n \n /*\n * Now that we have set up our context we can execute the rule\n * Since we used addRule above and called this rule 'alwaysTrue', this is how we invoke this rule\n * \n * NOTE:\n * you can run multiple rules sequentially against the same context\n * some actions can modify input context and some conditions can check output context\n * so rules can depend on other rules\n */\n engine.execute(ruleContext, \"alwaysTrue\");\n \n /*\n * Display the output model\n * \n * Since the action we used is:\n * \n * <Action Operator='OutputValueSet'>\"\n * <Path>/result</Path>\"\n * <Value Source='Constant'><Data>yes</Data></Value>\"\n * </Action>\"\n * \n * We get the following output model:\n * <output><result>yes</result></output>\n * \n * NOTE: The path on the output action is always relative to the output element\n */\n System.out.println(\"Output Model\\n------------\");\n System.out.println(ruleContext.getOutputModel().asXML());\n }", "@Override\n public R visit(RuleConstructClause n, A argu) {\n R _ret = null;\n n.nodeToken.accept(this, argu);\n n.constructTemplate.accept(this, argu);\n n.nodeListOptional.accept(this, argu);\n return _ret;\n }", "@Override\r\n public void doEdit ()\r\n throws DoEditException\r\n {\n List<StringWithProperties> criteria = probNet.getDecisionCriteria ();\r\n StringWithProperties criterion = null;\r\n switch (stateAction)\r\n {\r\n case ADD :\r\n if (criteria == null)\r\n {\r\n // agents = new StringsWithProperties();\r\n criteria = new ArrayList<StringWithProperties> ();\r\n }\r\n criterion = new StringWithProperties (criterionName);\r\n // agents.put(agentName);\r\n criteria.add (criterion);\r\n probNet.setDecisionCriteria2 (criteria);\r\n break;\r\n case REMOVE :\r\n for (StringWithProperties criterio : criteria)\r\n {\r\n if (criterio.getString ().equals (criterionName))\r\n {\r\n criterion = criterio;\r\n }\r\n }\r\n criteria.remove (criterion);\r\n // TODO assign criteria to node\r\n // it is also necessary to delete this criteria from the node it\r\n // was assigned to\r\n /*\r\n * if (criteria != null) { for (ProbNode node :\r\n * probNet.getProbNodes()) { if\r\n * (node.getVariable().getDecisionCriteria\r\n * ().getString().equals(criteriaName)) {\r\n * node.getVariable().setDecisionCriteria(null); } } }\r\n */\r\n if (criteria.size () == 0)\r\n {\r\n criteria = null;\r\n }\r\n probNet.setDecisionCriteria2 (criteria);\r\n break;\r\n case DOWN :\r\n // StringsWithProperties newAgentsDown = new\r\n // StringsWithProperties();\r\n ArrayList<StringWithProperties> newCriteriasDown = new ArrayList<StringWithProperties> ();\r\n for (int i = 0; i < dataTable.length; i++)\r\n {\r\n // newAgentsDown.put((String)dataTable[i][0]);\r\n newCriteriasDown.add (new StringWithProperties ((String) dataTable[i][0]));\r\n }\r\n probNet.setDecisionCriteria2 (newCriteriasDown);\r\n break;\r\n case UP :\r\n // StringsWithProperties newAgentsUp = new\r\n // StringsWithProperties();\r\n ArrayList<StringWithProperties> newCriteriasUp = new ArrayList<StringWithProperties> ();\r\n for (int i = 0; i < dataTable.length; i++)\r\n {\r\n // newAgentsUp.put((String)dataTable[i][0]);\r\n newCriteriasUp.add (new StringWithProperties ((String) dataTable[i][0]));\r\n }\r\n probNet.setDecisionCriteria2 (newCriteriasUp);\r\n break;\r\n case RENAME :\r\n // agents.rename(agentName, newName);\r\n // StringsWithProperties newAgentsRename = new\r\n // StringsWithProperties();\r\n ArrayList<StringWithProperties> newCriteriasRename = new ArrayList<StringWithProperties> ();\r\n for (int i = 0; i < dataTable.length; i++)\r\n {\r\n // newAgentsRename.put((String)dataTable[i][0]);\r\n newCriteriasRename.add (new StringWithProperties ((String) dataTable[i][0]));\r\n }\r\n probNet.setDecisionCriteria2 (newCriteriasRename);\r\n break;\r\n }\r\n }", "@Override\n public R visit(Constraint n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "ConstRule createConstRule();", "public BNFrule()\n {\n lhs = \"\";\n rhsSymbols = new ArrayList<String>();\n }", "@Test\n public void testOrBindingComplex() throws Exception {\n final PackageDescr pkg = ((PackageDescr) (parseResource(\"compilationUnit\", \"or_binding_complex.drl\")));\n TestCase.assertEquals(1, pkg.getRules().size());\n final RuleDescr rule = ((RuleDescr) (pkg.getRules().get(0)));\n TestCase.assertEquals(1, getDescrs().size());\n TestCase.assertEquals(1, getDescrs().size());\n final OrDescr or = ((OrDescr) (getDescrs().get(0)));\n TestCase.assertEquals(2, or.getDescrs().size());\n // first fact\n final PatternDescr firstFact = ((PatternDescr) (or.getDescrs().get(0)));\n TestCase.assertEquals(\"Person\", firstFact.getObjectType());\n TestCase.assertEquals(\"foo\", firstFact.getIdentifier());\n // second \"option\"\n final PatternDescr secondFact = ((PatternDescr) (or.getDescrs().get(1)));\n TestCase.assertEquals(\"Person\", secondFact.getObjectType());\n TestCase.assertEquals(1, getDescrs().size());\n TestCase.assertEquals(\"foo\", secondFact.getIdentifier());\n assertEqualsIgnoreWhitespace(\"System.out.println( \\\"Mark and Michael\\\" + bar );\", ((String) (rule.getConsequence())));\n }", "ExprListRule createExprListRule();", "@Override\n public CNF transformCNF(CNF cnf) throws QueryContradictoryException {\n HashMap<TimeSelector, Long> lowerBounds = new HashMap<>();\n /*\n * stores the newly inferred upper bounds for time selectors\n */\n HashMap<TimeSelector, Long> upperBounds = new HashMap<>();\n // clauses (not) to consider\n List<CNFElement> relevantClauses = cnf.getPredicates().stream()\n .filter(this::isRelevantClause)\n .collect(Collectors.toList());\n List<CNFElement> otherClauses = cnf.getPredicates().stream()\n .filter(clause -> !isRelevantClause(clause))\n .collect(Collectors.toList());\n List<ComparisonExpression> relevantComparisons = relevantClauses.stream()\n .map(clause -> clause.getPredicates().get(0))\n .collect(Collectors.toList());\n\n // stores all tuples (a,b) with a=b in relevant comparisons\n HashMap<ComparableExpression, HashSet<ComparableExpression>> cEq = new HashMap<>();\n // stores all tuples (a,b) with a<=b in relevant comparisons\n HashMap<ComparableExpression, HashSet<ComparableExpression>> cLeq = new HashMap<>();\n // stores all tuples (a,b) with a<b in relevant comparisons\n HashMap<ComparableExpression, HashSet<ComparableExpression>> cLt = new HashMap<>();\n // stores all tuples (a,b) with a!=b in relevant comparisons\n HashMap<ComparableExpression, HashSet<ComparableExpression>> cNeq = new HashMap<>();\n\n\n // init bounds\n for (ComparisonExpression comp : relevantComparisons) {\n ComparableExpression lhs = comp.getLhs().getWrappedComparable();\n ComparableExpression rhs = comp.getRhs().getWrappedComparable();\n Comparator comparator = comp.getComparator();\n if (comp.getLhs() instanceof TimeSelectorComparable) {\n lowerBounds.put((TimeSelector) lhs, TemporalElement.DEFAULT_TIME_FROM);\n upperBounds.put((TimeSelector) lhs, TemporalElement.DEFAULT_TIME_TO);\n }\n if (comp.getRhs() instanceof TimeSelectorComparable) {\n lowerBounds.put((TimeSelector) rhs, TemporalElement.DEFAULT_TIME_FROM);\n upperBounds.put((TimeSelector) rhs, TemporalElement.DEFAULT_TIME_TO);\n }\n // init c-relations\n if (comparator.equals(EQ)) {\n cEq.putIfAbsent(lhs, new HashSet<>());\n cEq.putIfAbsent(rhs, new HashSet<>());\n cEq.get(lhs).add(rhs);\n cEq.get(rhs).add(lhs);\n } else if (comparator.equals(Comparator.LTE)) {\n cLeq.putIfAbsent(lhs, new HashSet<>());\n cLeq.get(lhs).add(rhs);\n } else if (comparator.equals(Comparator.LT)) {\n cLt.putIfAbsent(lhs, new HashSet<>());\n cLt.get(lhs).add(rhs);\n } else if (comparator.equals(Comparator.NEQ)) {\n cNeq.putIfAbsent(lhs, new HashSet<>());\n cNeq.get(lhs).add(rhs);\n }\n }\n\n // compute closures for =,<,<=\n List<HashMap<ComparableExpression, HashSet<ComparableExpression>>> closures =\n computeClosureRelations(cEq, cLeq, cLt);\n\n checkLtContradictions(closures.get(2));\n // infer new bounds\n List<HashMap<TimeSelector, Long>> newBounds = updateEq(closures.get(0), lowerBounds, upperBounds);\n newBounds = updateLeq(closures.get(1), newBounds.get(0), newBounds.get(1));\n newBounds = updateLt(closures.get(2), newBounds.get(0), newBounds.get(1));\n\n // check them for contradictions with NEQ clauses\n checkNeqContradictions(cNeq, newBounds.get(0), newBounds.get(1));\n // filter redundant clauses like a.tx_from <= a.tx_to and comparisons between selectors and literals\n List<ComparisonExpression> remainingOldComparisons = filterRedundantComparisons(relevantComparisons);\n // construct new clauses\n List<ComparisonExpression> newComparisons = comparisons(newBounds.get(0), newBounds.get(1));\n\n // construct the CNF\n List<CNFElement> remainingOldClauses = remainingOldComparisons.stream()\n .map(comparison -> new CNFElement(Collections.singletonList(comparison)))\n .collect(Collectors.toList());\n List<CNFElement> newClauses = newComparisons.stream()\n .map(comparison -> new CNFElement(Collections.singletonList(comparison)))\n .collect(Collectors.toList());\n\n List<CNFElement> allClauses = otherClauses;\n allClauses.addAll(remainingOldClauses);\n allClauses.addAll(newClauses);\n return new CNF(allClauses);\n }", "public abstract Node apply(Node node);", "DeclRule createDeclRule();", "@Test\n public void testPredicate2() throws Exception {\n final RuleDescr rule = ((RuleDescr) (parse(\"rule\", \"rule X when Foo(eval( $var.equals(\\\"xyz\\\") )) then end\")));\n final PatternDescr pattern = ((PatternDescr) (getDescrs().get(0)));\n final List<?> constraints = pattern.getConstraint().getDescrs();\n TestCase.assertEquals(1, constraints.size());\n final ExprConstraintDescr predicate = ((ExprConstraintDescr) (constraints.get(0)));\n TestCase.assertEquals(\"eval( $var.equals(\\\"xyz\\\") )\", predicate.getExpression());\n }", "Constraint createConstraint();", "Constraint createConstraint();", "ExchangePlanSelectionRule createExchangePlanSelectionRule();", "private void performRule(DataNormalizationRule rule, GraphModification modifications) throws DataNormalizationException, DatabaseException, SQLException {\n\t\tif (inputGraph.getGraphName().length() == 0) {\n\t\t\tthrow new DataNormalizationException(\"Empty Graph Name is not allowed.\");\n\t\t}\n\n\t\tif (modifications == null) {\n\t\t\t/**\n\t\t\t * In case there is no interest in what was changed just perform all the components in the correct order\n\t\t\t */\n\t\t\tperformComponents(rule, inputGraph.getGraphName());\n\t\t} else {\n\t\t\ttry {\n\t\t\t\tgetDirtyConnection().execute(markTemporaryGraph, original);\n\t\t\t\tgetDirtyConnection().execute(String.format(Locale.ROOT, backupQueryFormat, original, inputGraph.getGraphName()));\n\n\t\t\t\tperformComponents(rule, inputGraph.getGraphName());\n\n\t\t\t\tgetDirtyConnection().execute(markTemporaryGraph, modified);\n\t\t\t\tgetDirtyConnection().execute(String.format(Locale.ROOT, backupQueryFormat, modified, inputGraph.getGraphName()));\n\n\t\t\t\t/**\n\t\t\t\t * Unfortunatelly \"SELECT ?s ?p ?o WHERE {{GRAPH <%s> {?s ?p ?o}} MINUS {GRAPH <%s> {?s ?p ?o}}}\"\n\t\t\t\t * throws \"Internal error: 'output:valmode' declaration conflicts with 'output:format'\"\n\t\t\t\t *\n\t\t\t\t * Therefore it is necessary to first create graphs with differences.\n\t\t\t\t */\n\t\t\t\tgetDirtyConnection().execute(String.format(Locale.ROOT, diffQueryFormat, modified, original));\n\t\t\t\tgetDirtyConnection().execute(String.format(Locale.ROOT, diffQueryFormat, original, inputGraph.getGraphName()));\n\n\t\t\t\tWrappedResultSet inserted = getDirtyConnection().executeSelect(String.format(Locale.ROOT, selectQueryFormat, modified));\n\n\t\t\t\t/**\n\t\t\t\t * All that is new to the transformed graph are insertions done by this rule (one of its components)\n\t\t\t\t */\n\t\t\t\twhile (inserted.next()) {\n\t\t\t\t\tmodifications.addInsertion(rule,\n\t\t\t\t\t\t\tinserted.getString(\"s\"),\n\t\t\t\t\t\t\tinserted.getString(\"p\"),\n\t\t\t\t\t\t\tinserted.getString(\"o\"));\n\t\t\t\t}\n\n\t\t\t\tWrappedResultSet deleted = getDirtyConnection().executeSelect(String.format(Locale.ROOT, selectQueryFormat, original));\n\n\t\t\t\t/**\n\t\t\t\t * All that is missing from the transformed graph are deletions done by this rule (one of its components)\n\t\t\t\t */\n\t\t\t\twhile (deleted.next()) {\n\t\t\t\t\tmodifications.addDeletion(rule,\n\t\t\t\t\t\t\tdeleted.getString(\"s\"),\n\t\t\t\t\t\t\tdeleted.getString(\"p\"),\n\t\t\t\t\t\t\tdeleted.getString(\"o\"));\n\t\t\t\t}\n\t\t\t} finally {\n\t\t\t\ttry {\n\t\t\t\t\tgetDirtyConnection().execute(String.format(Locale.ROOT, dropBackupQueryFormat, original));\n\t\t\t\t} finally {}\n\t\t\t\ttry {\n\t\t\t\t\tgetDirtyConnection().execute(String.format(Locale.ROOT, dropBackupQueryFormat, modified));\n\t\t\t\t} finally {}\n\t\t\t\tgetDirtyConnection().execute(unmarkTemporaryGraph, original);\n\t\t\t\tgetDirtyConnection().execute(unmarkTemporaryGraph, modified);\n\t\t\t}\n\t\t}\n\t\tLOG.info(String.format(Locale.ROOT, \"Data Normalization rule %d applied: %s\", rule.getId(), rule.getLabel() != null ? rule.getLabel() : \"\"));\n\t}", "ASTNode rebuild() {\n ASTNode child = null;\n switch (this.type) {\n case \"else if statement\":\n child = children.get(0);\n break;\n\n default:\n }\n\n return this;\n }", "private void processCreateCheckConstraintCondition(Constraint c)\n throws HsqlException {\n\n tokenizer.getThis(Token.T_OPENBRACKET);\n\n Parser parser = new Parser(session, database, tokenizer);\n Expression condition = parser.parseExpression();\n\n tokenizer.getThis(Token.T_CLOSEBRACKET);\n\n c.core.check = condition;\n }", "private void testAclConstraints010() {\n DmtSession session = null;\n try {\n\t\t\tDefaultTestBundleControl.log(\"#testAclConstraints010\");\n tbc.cleanAcl(TestExecPluginActivator.INEXISTENT_NODE);\n \n session = tbc.getDmtAdmin().getSession(\".\",\n DmtSession.LOCK_TYPE_EXCLUSIVE);\n Acl aclParent = new Acl(new String[] { DmtConstants.PRINCIPAL },new int[] { Acl.REPLACE });\n session.setNodeAcl(TestExecPluginActivator.ROOT,\n aclParent);\n \n session.setNodeAcl(TestExecPluginActivator.INTERIOR_NODE,\n new Acl(new String[] { DmtConstants.PRINCIPAL },\n new int[] { Acl.EXEC }));\n TestExecPlugin.setAllUriIsExistent(false);\n session.copy(TestExecPluginActivator.INTERIOR_NODE,\n TestExecPluginActivator.INEXISTENT_NODE, true);\n TestExecPlugin.setAllUriIsExistent(true);\n TestCase.assertTrue(\"Asserts that the copied nodes inherit the access rights from the parent of the destination node.\",\n aclParent.equals(session.getEffectiveNodeAcl(TestExecPluginActivator.INEXISTENT_NODE)));\n \n } catch (Exception e) {\n \ttbc.failUnexpectedException(e);\n } finally {\n tbc.cleanUp(session, TestExecPluginActivator.INTERIOR_NODE);\n tbc.cleanAcl(TestExecPluginActivator.ROOT);\n TestExecPlugin.setAllUriIsExistent(false);\n }\n }", "E10Rule createE10Rule();", "public StatementParse addSubTransform(StatementParse node) {\n\n ArrayList<StatementParse> expanded = this.expandNode(node);\n expanded = this.nonConstantFirst(expanded);\n expanded = this.collapseExpression(expanded);\n expanded = this.positiveFirst(expanded);\n node = this.reconstructTree(expanded);\n return node;\n }", "public void create(Rule event);", "public static void main(String []args) {\n ConstantNode ten = new ConstantNode(10);\n ExprNode tree = ten.into(20).plus(30);\n// ExprNode exprNode = new AddOperator(\n// new MultiplyOperator(\n// new ConstantNode(10),\n// new ConstantNode(20)),\n// new ConstantNode(30));\n tree.genCode();\n }", "public interface Compound extends Clause {}", "private void enterRules()\n {\n String ruleString = ruleTextField.getText();\n transition.buildRulesFromString(ruleString);\n ruleString = transition.buildStringFromRules();\n ruleTextField.setText(ruleString);\n optionsPanel.getWorkspacePanel().requestFocusInWindow();\n optionsPanel.getWorkspacePanel().repaint();\n // Daniel didn't like this automatic switching any more.\n // optionsPanel.getWorkspacePanel().setTool(LMWorkspacePanel.SELECT_TOOL);\n }", "@Override\r\n public RuleDefinition build() {\r\n return new RuleDefinition(this);\r\n }", "@Override\n\tpublic void visit(WhenClause arg0) {\n\t\t\n\t}", "@Override \n\tpublic void caseAOpExpr(AOpExpr node){\n\t\tExpressionType expType = (ExpressionType) nodeTypes.get(node.getOp()); \n\t\tswitch (expType){\n\t\t\tcase AND :\n\t\t\tcreateShortCircuitAnd(node);\n\t\t\t\tbreak;\n\t\t\tcase OR :\n\t\t\tcreateShortCircuiteOR(node);\n\t\t\t\tbreak;\n\t\t\tcase ADD :\n\t\t\t\tType left = nodeTypes.get(node.getLeft()); \n\t\t\t\tif (left == Type.STRING_TYPE){\n\t\t\t\t\tthis.createStringConcat(node);\n\t\t\t\t\tbreak; \n\t\t\t\t}\n\t\t\tdefault : \n\t\t\t\tsuper.caseAOpExpr(node); \n\t\t}\n\t}", "RequireExprsRule createRequireExprsRule();", "public void processStatement(BaseStatement statement) {\n\n labels.addAll(statement.produceLabels());\n\n // Only produce Init if it is the first statement\n if(((BaseMutableTreeNode)statement.getParent()).getChildBefore(statement) == null) {\n init = statement.produceInit();\n }\n\n // Only produce Init if it is the first statement\n if(((BaseMutableTreeNode)statement.getParent()).getChildAfter(statement) == null) {\n finals = statement.produceFinals();\n }\n\n boolean isAssigningInitFlow = false;\n if(flow.edgeSet().size() == 0) {\n isAssigningInitFlow = true;\n }\n flow = statement.produceFlows(flow);\n if(isAssigningInitFlow) {\n Set<DefaultEdge> edgeSet = flow.edgeSet();\n initEdge = edgeSet.iterator().next();\n }\n\n statements.add(statement);\n }", "public void rulesOnEnter() {\n try {\n String ruleString = ruleInputField.getText().toUpperCase();\n gOL.setRuleString(ruleString);\n ruleLabel.setText(gOL.getRuleString().toUpperCase());\n ruleInputField.setText(\"\");\n\n //Checks if the input matches any predefined rules. Clears the selection if not.\n if(!chooseRulesList.contains(gOL.getRuleName())){\n chooseRulesBox.getSelectionModel().clearSelection();\n }else{\n chooseRulesBox.getSelectionModel().select(gOL.getRuleName());\n }\n\n //Produces a warning if a RulesFormatException is thrown\n } catch (RulesFormatException rfe) {\n PopUpAlerts.ruleAlert2();\n }\n }", "IRuleset add(IRuleset...rules);", "@Override\n public void enterEveryRule(ParserRuleContext ctx) {\n\n }", "@Test\n public void testFromWithTernaryFollowedByQuery() throws Exception {\n final String text = \"rule X when Cheese() from (isFull ? $cheesery : $market) ?person( \\\"Mark\\\", 42; ) then end\";\n RuleDescr rule = ((RuleDescr) (parse(\"rule\", text)));\n TestCase.assertFalse(parser.getErrors().toString(), parser.hasErrors());\n PatternDescr pattern = ((PatternDescr) (getDescrs().get(0)));\n TestCase.assertEquals(\"Cheese\", pattern.getObjectType());\n TestCase.assertEquals(\"from (isFull ? $cheesery : $market)\", pattern.getSource().getText());\n TestCase.assertFalse(pattern.isQuery());\n pattern = ((PatternDescr) (getDescrs().get(1)));\n TestCase.assertEquals(\"person\", pattern.getObjectType());\n TestCase.assertTrue(pattern.isQuery());\n }", "public void caseARegExp(ARegExp node)\n {\n Iterator<PConcat> iter = node.getConcats().iterator();\n iter.next().apply(this);\n\n // further PConcat nodes are unioned (| operator) together\n while (iter.hasNext()) {\n buffer.append('|');\n iter.next().apply(this);\n }\n }", "@Override\n\tpublic void visit(WhenClause arg0) {\n\n\t}", "@Override\n\tpublic Void visit(ClauseOperator clause, Void ctx) {\n\t\treturn null;\n\t}" ]
[ "0.61957157", "0.5812389", "0.5770992", "0.5706526", "0.5684158", "0.5639862", "0.5621451", "0.5606578", "0.5574794", "0.556243", "0.55023164", "0.55023164", "0.55023164", "0.5433376", "0.5300048", "0.52658767", "0.52586997", "0.5254068", "0.52268124", "0.51487464", "0.5126268", "0.5115738", "0.5101303", "0.51001906", "0.5091378", "0.5085256", "0.5072372", "0.50620425", "0.5055114", "0.5050802", "0.50259244", "0.5009695", "0.49655393", "0.49642465", "0.4961469", "0.49310797", "0.49193338", "0.49185753", "0.48920578", "0.48903295", "0.48836944", "0.48751", "0.48715124", "0.48629716", "0.4851445", "0.48334625", "0.483339", "0.48234922", "0.48226523", "0.48221982", "0.4818917", "0.4810378", "0.48038587", "0.48005277", "0.47966436", "0.47960413", "0.4785587", "0.47853526", "0.47738618", "0.47703508", "0.47646603", "0.476232", "0.47577995", "0.47576767", "0.47543734", "0.4745771", "0.47443104", "0.4728552", "0.47239915", "0.47202706", "0.47138578", "0.4712798", "0.47013438", "0.46972007", "0.468975", "0.46841642", "0.46770325", "0.46770325", "0.4676786", "0.46607462", "0.4655172", "0.46480727", "0.46458653", "0.46418723", "0.4637371", "0.46355423", "0.46352875", "0.4631656", "0.46314663", "0.46257782", "0.46240902", "0.46062064", "0.45919764", "0.45892122", "0.45865583", "0.4583879", "0.4579146", "0.45650816", "0.45643988", "0.4557453", "0.4545965" ]
0.0
-1
nodeToken > constructTemplate > ConstructTemplate() nodeListOptional > ( DatasetClause() )
@Override public R visit(RuleConstructClause n, A argu) { R _ret = null; n.nodeToken.accept(this, argu); n.constructTemplate.accept(this, argu); n.nodeListOptional.accept(this, argu); return _ret; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public R visit(DatasetClause n, A argu) {\n R _ret = null;\n n.nodeToken.accept(this, argu);\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "private ASTQuery() {\r\n dataset = Dataset.create();\r\n }", "DataParamNode DataParamNode(Token t, String text);", "DataElement createDataElement();", "public interface DataNode\r\n{\r\n /** @return type name of this data node */\r\n public String get_type_name();\r\n /** @return the bits of this data node */\r\n public String get_bitsequence_value() ;\r\n \r\n /** @return size of this data in bits*/\r\n public int get_bit_size(); \r\n \r\n /** @return size of this data as an integer (for expresion evaluation\r\n * purpose */\r\n public int get_int_value() throws Exception;\r\n \r\n /** @return the number of bits this type takes */ \r\n public int get_fieldsize();\r\n \r\n /** set the expression for number of bits this type takes*/\r\n public void set_fieldsize(AST fieldsize);\r\n \r\n /** set valid ok nok */\r\n public void set_verify_then_else(AST verify_ast,AST then_ast , AST else_ast) throws Exception;\r\n \r\n /** sets the contaxt for evaluation of expressions for this data node*/\r\n public void set_context(VariableSymbolTable context);\r\n \r\n /** print a human readable form of this node */\r\n public String print();\r\n \r\n /** print with formatting \r\n * 0 = print() [debug formatted]\r\n * 1 = as string [useful to write to a file]\r\n * 2 = debug with strings [similar to 0, but with strings instad of bytes]\r\n * @return Formatted output ready to be printed\r\n */\r\n public String print(int format);\r\n public void set_name(String name);\r\n public String get_name();\r\n \r\n /** returns the maximum size this object can accept (hold) or -1 for infinity */\r\n public int get_max_accept() throws Exception;\r\n public void assign(DataNodeAbstract rhs) throws Exception;\r\n public void populate(BdplFile rhs) throws Exception;\r\n \r\n}", "@Override\n public R visit(ConstructQuery n, A argu) {\n R _ret = null;\n n.nodeToken.accept(this, argu);\n n.constructTemplate.accept(this, argu);\n n.nodeListOptional.accept(this, argu);\n n.whereClause.accept(this, argu);\n n.solutionModifier.accept(this, argu);\n return _ret;\n }", "private Dataset parseDataset( Element datasetElement, Dataset parent, CoordinateSystem defaultCoordinateSystem,\n ElevationModel defaultElevationModel )\n throws XMLParsingException,\n InvalidParameterValueException,\n OGCWebServiceException {\n\n // attributes are all optional\n boolean queryable = XMLTools.getNodeAsBoolean( datasetElement, \"@queryable\", nsContext, false );\n boolean opaque = XMLTools.getNodeAsBoolean( datasetElement, \"@opaque\", nsContext, false );\n boolean noSubsets = XMLTools.getNodeAsBoolean( datasetElement, \"@noSubsets\", nsContext, false );\n int fixedWidth = XMLTools.getNodeAsInt( datasetElement, \"@fixedWidth\", nsContext, 0 );\n int fixedHeight = XMLTools.getNodeAsInt( datasetElement, \"@fixedHeight\", nsContext, 0 );\n\n // elements\n String name = XMLTools.getNodeAsString( datasetElement, PRE_WPVS + \"Name/text()\", nsContext, null );\n String title = XMLTools.getRequiredNodeAsString( datasetElement, PRE_WPVS + \"Title/text()\", nsContext );\n String abstract_ = XMLTools.getNodeAsString( datasetElement, PRE_WPVS + \"Abstract/text()\", nsContext, null );\n // keywords == optional\n Keywords[] keywords = getKeywords( XMLTools.getNodes( datasetElement, PRE_OWS + \"Keywords\", nsContext ) );\n // crsstrings == optional\n String[] crsStrings = XMLTools.getNodesAsStrings( datasetElement, PRE_WPVS + \"CRS/text()\", nsContext );\n List<CoordinateSystem> crsList = parseCoordinateSystems( crsStrings );\n ElevationModel elevationModel = parseElevationModel( datasetElement, defaultElevationModel );\n // create a default ElevationModel if not exists allready, a little HACK to circumvent the\n // optional deegree:dataset:ElevationModel mapping onto the mandatory\n // ogc:dataset:ElevationModel\n if ( defaultElevationModel == null && elevationModel != null ) {\n defaultElevationModel = elevationModel;\n // found an ElevationModel setting it to default\n // and update the parents of this dataset, until we have the root,\n\n if ( parent != null ) {\n // first find root parent\n Dataset tmpParent = parent;\n while ( tmpParent.getParent() != null ) {\n tmpParent = tmpParent.getParent();\n }\n // now iterate over all so far created children to set an default elevationmodel\n tmpParent.setElevationModel( defaultElevationModel );\n Queue<Dataset> children = new LinkedBlockingQueue<Dataset>( Arrays.asList( tmpParent.getDatasets() ) );\n while ( !children.isEmpty() ) {\n Dataset child = children.poll();\n if ( child != null ) {\n child.setElevationModel( defaultElevationModel );\n for ( Dataset dataset : child.getDatasets() ) {\n children.offer( dataset );\n }\n }\n }\n }\n }\n // now find a defaultcoordinatesystem to use if no crs is given in a child dataset\n if ( parent == null ) { // root dataset\n if ( crsList.size() == 0 || crsList.get( 0 ) == null ) {\n throw new InvalidCapabilitiesException( Messages.getMessage( \"WPVS_NO_TOPLEVEL_DATASET_CRS\", title ) );\n }\n defaultCoordinateSystem = crsList.get( 0 );\n }\n\n String[] format = XMLTools.getRequiredNodesAsStrings( datasetElement, PRE_WPVS + \"Format/text()\", nsContext );\n // wgs84 == mandatory\n Element boundingBoxElement = (Element) XMLTools.getRequiredNode( datasetElement,\n PRE_OWS + \"WGS84BoundingBox\",\n nsContext );\n Envelope wgs84BoundingBox = getWGS84BoundingBoxType( boundingBoxElement );\n\n // boundingboxes can be used to make a more precise specification of the useable area of\n // this dataset in it's native crs's, the wgs84 bbox can be inaccurate\n Envelope[] boundingBoxes = getBoundingBoxes( datasetElement, defaultCoordinateSystem );\n\n // optional\n Dimension[] dimensions = parseDimensions( datasetElement );\n\n // optional\n DataProvider dataProvider = parseDataProvider( datasetElement );\n\n // mandatory\n Identifier identifier = parseDatasetIdentifier( datasetElement, PRE_WPVS + \"Identifier\" );\n\n // optional\n MetaData[] metaData = parseMetaData( datasetElement );\n\n // optional\n DatasetReference[] datasetRefs = parseDatasetReferences( datasetElement );\n\n // optional\n FeatureListReference[] featureListRefs = parseFeatureListReferences( datasetElement );\n\n // optional\n Style[] style = parseStyles( datasetElement );\n\n // mandatory\n double minScaleDenom = XMLTools.getRequiredNodeAsDouble( datasetElement,\n PRE_WPVS + \"MinimumScaleDenominator/text()\",\n nsContext );\n // mandatory\n double maxScaleDenom = XMLTools.getRequiredNodeAsDouble( datasetElement,\n PRE_WPVS + \"MaximumScaleDenominator/text()\",\n nsContext );\n\n if ( minScaleDenom > maxScaleDenom ) {\n throw new InvalidCapabilitiesException( Messages.getMessage( \"WPVS_WRONG_SCALE_DENOMINATORS\" ) );\n }\n\n // create new root dataset\n Dataset dataset = new Dataset( queryable,\n opaque,\n noSubsets,\n fixedWidth,\n fixedHeight,\n name,\n title,\n abstract_,\n keywords,\n crsList,\n format,\n wgs84BoundingBox,\n boundingBoxes,\n dimensions,\n dataProvider,\n identifier,\n metaData,\n datasetRefs,\n featureListRefs,\n style,\n minScaleDenom,\n maxScaleDenom,\n null,\n elevationModel,\n null,\n parent );\n\n // get child datasets\n List<Node> nl = XMLTools.getNodes( datasetElement, PRE_WPVS + \"Dataset\", nsContext );\n Dataset[] childDatasets = new Dataset[nl.size()];\n for ( int i = 0; i < childDatasets.length; i++ ) {\n childDatasets[i] = parseDataset( (Element) nl.get( i ),\n dataset,\n defaultCoordinateSystem,\n defaultElevationModel );\n }\n\n // set child datasets\n dataset.setDatasets( childDatasets );\n\n return dataset;\n }", "Optional<Node<UnderlyingData>> nextNode(Node<UnderlyingData> node);", "@org.junit.Test\n public void constrCompelemData1() {\n final XQuery query = new XQuery(\n \"fn:data(element elem {'a', element a {}, 'b'})\",\n ctx);\n try {\n result = new QT3Result(query.value());\n } catch(final Throwable trw) {\n result = new QT3Result(trw);\n } finally {\n query.close();\n }\n test(\n assertStringValue(false, \"ab\")\n );\n }", "@Test\n \tpublic void whereClauseForNodeAnnotation() {\n \t\tnode23.addNodeAnnotation(new Annotation(\"namespace1\", \"name1\"));\n \t\tnode23.addNodeAnnotation(new Annotation(\"namespace2\", \"name2\", \"value2\", TextMatching.EXACT_EQUAL));\n \t\tnode23.addNodeAnnotation(new Annotation(\"namespace3\", \"name3\", \"value3\", TextMatching.REGEXP_EQUAL));\n \t\tcheckWhereCondition(\n \t\t\t\tjoin(\"=\", \"_annotation23_1.node_annotation_namespace\", \"'namespace1'\"),\n \t\t\t\tjoin(\"=\", \"_annotation23_1.node_annotation_name\", \"'name1'\"),\n \t\t\t\tjoin(\"=\", \"_annotation23_2.node_annotation_namespace\", \"'namespace2'\"),\n \t\t\t\tjoin(\"=\", \"_annotation23_2.node_annotation_name\", \"'name2'\"),\n \t\t\t\tjoin(\"=\", \"_annotation23_2.node_annotation_value\", \"'value2'\"),\n \t\t\t\tjoin(\"=\", \"_annotation23_3.node_annotation_namespace\", \"'namespace3'\"),\n \t\t\t\tjoin(\"=\", \"_annotation23_3.node_annotation_name\", \"'name3'\"),\n \t\t\t\tjoin(\"~\", \"_annotation23_3.node_annotation_value\", \"'^value3$'\")\n \t\t);\n \t}", "private Dataset createDataset1() {\n final RDF factory1 = createFactory();\n\n final IRI name = factory1.createIRI(\"http://xmlns.com/foaf/0.1/name\");\n final Dataset g1 = factory1.createDataset();\n final BlankNode b1 = createOwnBlankNode(\"b1\", \"0240eaaa-d33e-4fc0-a4f1-169d6ced3680\");\n g1.add(b1, b1, name, factory1.createLiteral(\"Alice\"));\n\n final BlankNode b2 = createOwnBlankNode(\"b2\", \"9de7db45-0ce7-4b0f-a1ce-c9680ffcfd9f\");\n g1.add(b2, b2, name, factory1.createLiteral(\"Bob\"));\n\n final IRI hasChild = factory1.createIRI(\"http://example.com/hasChild\");\n g1.add(null, b1, hasChild, b2);\n\n return g1;\n }", "@Test\n \tpublic void whereClauseForNodeIsToken() {\n \t\tnode23.setToken(true);\n \t\tcheckWhereCondition(\"_node23.is_token IS TRUE\");\n \t}", "@Test\n public void operator_empty_data_table() {\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 SpecialElement(VertexElement.ElementKind.EMPTY_DATA_TABLE, typeOf(DataTable.class)));\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!TABLE\"));\n }", "public DataSet() {\r\n \r\n }", "void visit(CDATA node);", "@SuppressWarnings(\"unchecked\")\n\tprivate void build(Node<VirtualDataSet> node) {\n\n\t\tif (node == null)\n\t\t\tthrow new NullPointerException(\"Cannot built a decision (sub)tree for a null node.\");\n\n\t\tVirtualDataSet set = node.data;\n\n\t\tif (set == null || set.getNumberOfDatapoints() == 0 || set.getNumberOfAttributes() == 0)\n\t\t\tthrow new IllegalStateException(\"The dataset is in an invalid state!\");\n\n\t\tif (set.getNumberOfAttributes() == 1) // We have only the class attribute left\n\t\t\treturn;\n\n\t\tif (set.getAttribute(set.getNumberOfAttributes() - 1).getValues().length == 1) // No uncertainty left\n\t\t\treturn;\n\n\t\tboolean needsSplit = false;\n\n\t\tfor (int i = 0; i < set.getNumberOfAttributes() - 1; i++) {\n\t\t\tif (set.getAttribute(i).getValues().length < 2) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tneedsSplit = true;\n\t\t}\n\n\t\tif (!needsSplit) // split would be futile for all remaining attributes\n\t\t\treturn;\n\n\t\tGainInfoItem[] gains = InformationGainCalculator.calculateAndSortInformationGains(set);\n\t\t\n\t\tif (gains[0].getGainValue() == 0.0) // No split when there is no gain\n\t\t\treturn; \n\n\t\tAttribute bestAttribute = set.getAttribute(gains[0].getAttributeName());\n\n\t\tif (bestAttribute.getType() == AttributeType.NOMINAL) {\n\t\t\tVirtualDataSet[] partitions = set\n\t\t\t\t\t.partitionByNominallAttribute(set.getAttributeIndex(bestAttribute.getName()));\n\t\t\tnode.children = (Node<VirtualDataSet>[]) new Node[partitions.length];\n\n\t\t\tfor (int i = 0; i < node.children.length; i++) {\n\t\t\t\tnode.children[i] = new Node<VirtualDataSet>(partitions[i]);\n\t\t\t}\n\n\t\t\tfor (int i = 0; i < node.children.length; i++) {\n\t\t\t\tbuild(node.children[i]);\n\t\t\t}\n\n\t\t} else {\n\t\t\tint attributeIndex = node.data.getAttributeIndex(bestAttribute.getName());\n\n\t\t\tString[] values = bestAttribute.getValues();\n\n\t\t\tint valueIndex = -1;\n\n\t\t\tfor (int i = 0; i < values.length; i++) {\n\t\t\t\tif (values[i].equals(gains[0].getSplitAt())) {\n\t\t\t\t\tvalueIndex = i;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (valueIndex == -1) {\n\t\t\t\tSystem.out.println(\"Houston, we have a problem!\");\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tVirtualDataSet[] partitions = set.partitionByNumericAttribute(attributeIndex, valueIndex);\n\n\t\t\tnode.children = (Node<VirtualDataSet>[]) new Node[partitions.length];\n\n\t\t\tfor (int i = 0; i < node.children.length; i++) {\n\t\t\t\tnode.children[i] = new Node<VirtualDataSet>(partitions[i]);\n\t\t\t}\n\n\t\t\tfor (int i = 0; i < node.children.length; i++) {\n\t\t\t\tbuild(node.children[i]);\n\t\t\t}\n\t\t}\n\t}", "@Override\n\tpublic Object visit(ASTCondEmpty node, Object data) {\n\t\tSystem.out.print(\"empty (\");\n\t\tnode.jjtGetChild(0).jjtAccept(this, data);\n\t\tSystem.out.print(\")\");\n\t\treturn null;\n\t}", "@Override\n\tpublic Instances dataset() {\n\t\treturn null;\n\t}", "public NestedClause getXQueryClause();", "@Override\n public R visit(NamedGraphClause n, A argu) {\n R _ret = null;\n n.nodeToken.accept(this, argu);\n n.sourceSelector.accept(this, argu);\n return _ret;\n }", "private Dataset getDataset()\n throws XMLParsingException, MissingParameterValueException,\n InvalidParameterValueException, OGCWebServiceException {\n\n Element datasetElement = (Element) XMLTools.getRequiredNode( getRootElement(), PRE_WPVS + \"Dataset\", nsContext );\n Dataset dataset = parseDataset( datasetElement, null, null, null );\n\n return dataset;\n }", "public void nodata();", "String getInsertDataLiteralQuery(String graph, String subject, String predicate, String object, String datatype);", "@Test\n \tpublic void whereClauseDirectDominanceNamedAndAnnotated() {\n \t\tnode23.addJoin(new Dominance(node42, NAME, 1));\n \t\tnode42.addNodeAnnotation(new Annotation(\"namespace3\", \"name3\", \"value3\", TextMatching.REGEXP_EQUAL));\n \t\tcheckWhereCondition(\n //\t\t\t\tjoin(\"=\", \"_rank23.component_ref\", \"_rank42.component_ref\"),\n \t\t\t\tjoin(\"=\", \"_component23.type\", \"'d'\"),\n \t\t\t\tjoin(\"=\", \"_component23.name\", \"'\" + NAME + \"'\"),\n \t\t\t\tjoin(\"=\", \"_rank23.pre\", \"_rank42.parent\")\n \t\t);\n \t\tcheckWhereCondition(node42,\n \t\t\t\tjoin(\"=\", \"_annotation42.node_annotation_namespace\", \"'namespace3'\"),\n \t\t\t\tjoin(\"=\", \"_annotation42.node_annotation_name\", \"'name3'\"),\n \t\t\t\tjoin(\"~\", \"_annotation42.node_annotation_value\", \"'^value3$'\")\n \t\t);\n \t}", "@Test\n public void addBlankNodesFromMultipleDatasets() throws Exception {\n try (final Dataset g1 = createDataset1();\n final Dataset g2 = createDataset2();\n final Dataset g3 = factory.createDataset()) {\n\n addAllQuads(g1, g3);\n addAllQuads(g2, g3);\n\n // Let's make a map to find all those blank nodes after insertion\n // (The Dataset implementation is not currently required to\n // keep supporting those BlankNodes with contains() - see\n // COMMONSRDF-15)\n\n final Map<String, BlankNodeOrIRI> whoIsWho = new ConcurrentHashMap<>();\n // ConcurrentHashMap as we will try parallel forEach below,\n // which should not give inconsistent results (it does with a\n // HashMap!)\n\n // look up BlankNodes by name\n final IRI name = factory.createIRI(\"http://xmlns.com/foaf/0.1/name\");\n try (Stream<? extends Quad> stream = g3.stream(null, null, name, null)) {\n stream.parallel().forEach(t -> whoIsWho.put(t.getObject().ntriplesString(), t.getSubject()));\n }\n\n assertEquals(4, whoIsWho.size());\n // and contains 4 unique values\n assertEquals(4, new HashSet<>(whoIsWho.values()).size());\n\n final BlankNodeOrIRI b1Alice = whoIsWho.get(\"\\\"Alice\\\"\");\n assertNotNull(b1Alice);\n final BlankNodeOrIRI b2Bob = whoIsWho.get(\"\\\"Bob\\\"\");\n assertNotNull(b2Bob);\n final BlankNodeOrIRI b1Charlie = whoIsWho.get(\"\\\"Charlie\\\"\");\n assertNotNull(b1Charlie);\n final BlankNodeOrIRI b2Dave = whoIsWho.get(\"\\\"Dave\\\"\");\n assertNotNull(b2Dave);\n\n // All blank nodes should differ\n notEquals(b1Alice, b2Bob);\n notEquals(b1Alice, b1Charlie);\n notEquals(b1Alice, b2Dave);\n notEquals(b2Bob, b1Charlie);\n notEquals(b2Bob, b2Dave);\n notEquals(b1Charlie, b2Dave);\n\n // And we should be able to query with them again\n // as we got them back from g3\n final IRI hasChild = factory.createIRI(\"http://example.com/hasChild\");\n // FIXME: Check graph2 BlankNode in these ..?\n assertTrue(g3.contains(null, b1Alice, hasChild, b2Bob));\n assertTrue(g3.contains(null, b2Dave, hasChild, b1Charlie));\n // But not\n assertFalse(g3.contains(null, b1Alice, hasChild, b1Alice));\n assertFalse(g3.contains(null, b1Alice, hasChild, b1Charlie));\n assertFalse(g3.contains(null, b1Alice, hasChild, b2Dave));\n // nor\n assertFalse(g3.contains(null, b2Dave, hasChild, b1Alice));\n assertFalse(g3.contains(null, b2Dave, hasChild, b1Alice));\n\n // and these don't have any children (as far as we know)\n assertFalse(g3.contains(null, b2Bob, hasChild, null));\n assertFalse(g3.contains(null, b1Charlie, hasChild, null));\n }\n }", "GeneralClause createGeneralClause();", "@Override\n public R visit(WhereClause n, A argu) {\n R _ret = null;\n n.nodeOptional.accept(this, argu);\n n.groupGraphPattern.accept(this, argu);\n return _ret;\n }", "@Override\n\tpublic Object visit(ASTCondSome node, Object data) {\n\t\treturn null;\n\t}", "Datastream asDatastream(Node node) throws ResourceTypeException;", "@Test\n public void example13 () throws Exception {\n Map<String, Stmt> inputs = example2setup();\n conn.setNamespace(\"ex\", \"http://example.org/people/\");\n conn.setNamespace(\"ont\", \"http://example.org/ontology/\");\n String prefix = \"PREFIX ont: \" + \"<http://example.org/ontology/>\\n\";\n \n String queryString = \"select ?s ?p ?o where { ?s ?p ?o} \";\n TupleQuery tupleQuery = conn.prepareTupleQuery(QueryLanguage.SPARQL, queryString);\n assertSetsEqual(\"SELECT result:\", inputs.values(),\n statementSet(tupleQuery.evaluate()));\n \n assertTrue(\"Boolean result\",\n conn.prepareBooleanQuery(QueryLanguage.SPARQL,\n prefix + \n \"ask { ?s ont:name \\\"Alice\\\" } \").evaluate());\n assertFalse(\"Boolean result\",\n conn.prepareBooleanQuery(QueryLanguage.SPARQL,\n prefix + \n \"ask { ?s ont:name \\\"NOT Alice\\\" } \").evaluate());\n \n queryString = \"construct {?s ?p ?o} where { ?s ?p ?o . filter (?o = \\\"Alice\\\") } \";\n GraphQuery constructQuery = conn.prepareGraphQuery(QueryLanguage.SPARQL, queryString);\n assertSetsEqual(\"Construct result\",\n mapKeep(new String[] {\"an\"}, inputs).values(),\n statementSet(constructQuery.evaluate()));\n \n queryString = \"describe ?s where { ?s ?p ?o . filter (?o = \\\"Alice\\\") } \";\n GraphQuery describeQuery = conn.prepareGraphQuery(QueryLanguage.SPARQL, queryString);\n assertSetsEqual(\"Describe result\",\n mapKeep(new String[] {\"an\", \"at\"}, inputs).values(),\n statementSet(describeQuery.evaluate()));\n }", "@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 R visit(SparqlCollection n, A argu) {\n R _ret = null;\n n.nodeToken.accept(this, argu);\n n.nodeList.accept(this, argu);\n n.nodeToken1.accept(this, argu);\n return _ret;\n }", "public SEDataThread(String storElement)\n {\n nodeChoice = storElement;\n }", "@org.junit.Test\n public void constrCompelemNodeid3() {\n final XQuery query = new XQuery(\n \"for $x in <!--comment-->, $y in element elem {$x} return exactly-one($y/comment()) is $x\",\n ctx);\n try {\n result = new QT3Result(query.value());\n } catch(final Throwable trw) {\n result = new QT3Result(trw);\n } finally {\n query.close();\n }\n test(\n assertBoolean(false)\n );\n }", "@Override\n\tpublic void visit(OWLDataPropertyAssertionAxiom axiom) {\n\n\t\tdatalog.add(new Clause(new Literal[] { new Literal( //\n\t\t\t\tRewritingVocabulary.SUP_EX, //\n\t\t\t\tCacheManager.getInstance().getConstant(\n\t\t\t\t\t\taxiom.getSubject().asOWLNamedIndividual().getIRI()),//\n\t\t\t\tCacheManager.getInstance().getConstant(\n\t\t\t\t\t\taxiom.getProperty().asOWLDataProperty().getIRI()),//\n\t\t\t\tCacheManager.getInstance().getConstant(\n\t\t\t\t\t\taxiom.getObject().getLiteral()),//\n\t\t\t\tCacheManager.getInstance().getConstant(\n\t\t\t\t\t\taxiom.getObject().getLiteral())//\n\t\t) }, //\n\t\t\t\tnew Literal[] {}));\n\n\t}", "List<TagData> selectByExample(TagDataExample example);", "@Override\n public R visit(AskQuery n, A argu) {\n R _ret = null;\n n.nodeToken.accept(this, argu);\n n.nodeListOptional.accept(this, argu);\n n.whereClause.accept(this, argu);\n return _ret;\n }", "public GraphNode(D data) {\n successors = new ArrayList<>();\n this.data = data;\n }", "@org.junit.Test\n public void constrCompelemNodeid4() {\n final XQuery query = new XQuery(\n \"for $x in <?pi content?>, $y in element elem {$x} return exactly-one($y/processing-instruction()) is $x\",\n ctx);\n try {\n result = new QT3Result(query.value());\n } catch(final Throwable trw) {\n result = new QT3Result(trw);\n } finally {\n query.close();\n }\n test(\n assertBoolean(false)\n );\n }", "@Override\n public R visit(DescribeQuery n, A argu) {\n R _ret = null;\n n.nodeToken.accept(this, argu);\n n.nodeChoice.accept(this, argu);\n n.nodeListOptional.accept(this, argu);\n n.nodeOptional.accept(this, argu);\n n.solutionModifier.accept(this, argu);\n return _ret;\n }", "@Override\n\tpublic Object visit(ASTLetClause node, Object data) {\n\t\tint indent = (Integer) data;\n\t\tprintIndent(indent);\n\t\tSystem.out.print(\"let \");\n\t\tint numOfChild = node.jjtGetNumChildren();\n\t\tboolean first = true;\n\t\tfor (int i = 0; i < numOfChild; i++) {\n\t\t\tif (first)\n\t\t\t\tfirst = false;\n\t\t\telse {\n\t\t\t\tSystem.out.println(\",\");\n\t\t\t\tprintIndent(indent + 2);\n\t\t\t}\n\t\t\tnode.jjtGetChild(i).jjtAccept(this, data);\n\t\t}\n\t\tSystem.out.println();\n\t\treturn null;\n\t}", "@Override\n\tpublic Object visit(ASTCondOr node, Object data) {\n\t\tnode.jjtGetChild(0).jjtAccept(this, data);\n\t\tSystem.out.print(\" or \");\n\t\tnode.jjtGetChild(1).jjtAccept(this, data);\n\t\treturn null;\n\t}", "@Override\n\tpublic Object visit(ASTForClause node, Object data) {\n\t\tint indent = (Integer) data;\n\t\tprintIndent(indent);\n\t\tSystem.out.print(\"for \");\n\t\tint numOfChild = node.jjtGetNumChildren();\n\t\tboolean first = true;\n\t\tfor (int i = 0; i < numOfChild; i++) {\n\t\t\tif (first)\n\t\t\t\tfirst = false;\n\t\t\telse {\n\t\t\t\tSystem.out.println(\",\");\n\t\t\t\tprintIndent(indent + 2);\n\t\t\t}\n\t\t\tnode.jjtGetChild(i).jjtAccept(this, data);\n\t\t}\n\t\tSystem.out.println();\n\t\treturn null;\n\t}", "protected abstract T create(ICalDataType dataType, SemiStructuredValueIterator it);", "@Override\n\tpublic Object visit(ASTCondIs node, Object data) {\n\t\tnode.jjtGetChild(0).jjtAccept(this, data);\n\t\tSystem.out.print(\" is \");\n\t\tnode.jjtGetChild(1).jjtAccept(this, data);\n\t\treturn null;\n\t}", "@Test\n \tpublic void whereClauseForNodeEdgeAnnotation() {\n \t\tnode23.addEdgeAnnotation(new Annotation(\"namespace1\", \"name1\"));\n \t\tnode23.addEdgeAnnotation(new Annotation(\"namespace2\", \"name2\", \"value2\", TextMatching.EXACT_EQUAL));\n \t\tnode23.addEdgeAnnotation(new Annotation(\"namespace3\", \"name3\", \"value3\", TextMatching.REGEXP_EQUAL));\n \t\tcheckWhereCondition(\n \t\t\t\tjoin(\"=\", \"_rank_annotation23_1.edge_annotation_namespace\", \"'namespace1'\"),\n \t\t\t\tjoin(\"=\", \"_rank_annotation23_1.edge_annotation_name\", \"'name1'\"),\n \t\t\t\tjoin(\"=\", \"_rank_annotation23_2.edge_annotation_namespace\", \"'namespace2'\"),\n \t\t\t\tjoin(\"=\", \"_rank_annotation23_2.edge_annotation_name\", \"'name2'\"),\n \t\t\t\tjoin(\"=\", \"_rank_annotation23_2.edge_annotation_value\", \"'value2'\"),\n \t\t\t\tjoin(\"=\", \"_rank_annotation23_3.edge_annotation_namespace\", \"'namespace3'\"),\n \t\t\t\tjoin(\"=\", \"_rank_annotation23_3.edge_annotation_name\", \"'name3'\"),\n \t\t\t\tjoin(\"~\", \"_rank_annotation23_3.edge_annotation_value\", \"'^value3$'\")\n \t\t);\n \t}", "@Override\n\tpublic Object visit(SimpleNode node, Object data) {\n\t\treturn null;\n\t}", "@Test\n \tpublic void whereClauseForNodeDirectDominance() {\n \t\tnode23.addJoin(new Dominance(node42, 1));\n \t\tcheckWhereCondition(\n //\t\t\t\tjoin(\"=\", \"_rank23.component_ref\", \"_rank42.component_ref\"),\n \t\t\t\tjoin(\"=\", \"_component23.type\", \"'d'\"),\n \t\t\t\t\"_component23.name IS NULL\",\n \t\t\t\tjoin(\"=\", \"_rank23.pre\", \"_rank42.parent\")\n \t\t);\n \t}", "public interface CustomConstruct extends AgnosticStatement, QueryCondition {\n}", "@Test\n public void test1() throws Exception {\n String query = \"A =LOAD 'file.txt' AS (a:bag{(u,v)}, b, c);\" +\n \"B = FOREACH A GENERATE $0, b;\" +\n \"C = FILTER B BY \" + COUNT.class.getName() +\"($0) > 5;\" +\n \"STORE C INTO 'empty';\"; \n LogicalPlan newLogicalPlan = buildPlan( query );\n\n Operator load = newLogicalPlan.getSources().get( 0 );\n Assert.assertTrue( load instanceof LOLoad );\n Operator fe1 = newLogicalPlan.getSuccessors( load ).get( 0 );\n Assert.assertTrue( fe1 instanceof LOForEach );\n Operator filter = newLogicalPlan.getSuccessors( fe1 ).get( 0 );\n Assert.assertTrue( filter instanceof LOFilter );\n Operator fe2 = newLogicalPlan.getSuccessors( filter ).get( 0 );\n Assert.assertTrue( fe2 instanceof LOForEach );\n }", "public interface INestedIfElseClauseContainer extends IEmbeddedNodeUser {\r\n\t\t/**\r\n\t\t * registers an if-clause (or else-clause) as an inner clause of this clause\r\n\t\t * @param nestedClause\r\n\t\t * @throws NullPointerException: if nestedClause is null\r\n\t\t */\r\n\t\tpublic void addNestedClause(TempTableHeaderCell nestedClause);\r\n\t\t\r\n\t\t/**\r\n\t\t * Looks for the first if/else clause (performing deep scan - searches every nested if/else clause\r\n\t\t * as well) which the bExpression returns true.\r\n\t\t * \r\n\t\t * @param valuesOnCPTColumn: a map which the key is a name of a parent node and\r\n\t\t * the value is its current possible values to be evaluated.\r\n\t\t * For example, if we want to evalueate an expression when for a node \"Node(!ST0)\" we\r\n\t\t * have parents Parent1(!ST0,!Z0), Parent1(!ST0,!Z1), Parent2(!ST0,!T0), and Parent2(!ST0,!T0)\r\n\t\t * with values True, False, Alpha, Beta respectively, the map should be:\r\n\t\t * \t\tentry0, (key:\"Parent1\", values: {True, False});\r\n\t\t * \t\tentry1, (key:\"Parent2\", values: {Alpha, Beta});\r\n\t\t * \r\n\t\t * @return: the first if/else clause which returned true.\r\n\t\t */\r\n\t\tpublic TempTableHeaderCell getFirstTrueClause(Map<String, List<EntityAndArguments>> valuesOnCPTColumn) ;\r\n\t\t\r\n\t\t\r\n\t\t/**\r\n\t\t * Tests if this container has no nested clauses.\r\n\t\t * @return true if this if/else clause container has 0 nested elements\r\n\t\t */\r\n\t\tpublic boolean isEmptyNestedClauses ();\r\n\t\t\r\n\t\t/**\r\n\t\t * @return the clauses\r\n\t\t */\r\n\t\tpublic List<TempTableHeaderCell> getNestedClauses();\r\n\t\t\r\n\t\t/**\r\n\t\t * \r\n\t\t * @return the clause this object is contained within\r\n\t\t */\r\n\t\tpublic INestedIfElseClauseContainer getUpperClause();\r\n\t\t\r\n\t\t\r\n\t\t/**\r\n\t\t * sets the clause this object is contained within\r\n\t\t * @param upper\r\n\t\t */\r\n\t\tpublic void setUpperClause(INestedIfElseClauseContainer upper);\r\n\t\t\r\n\t\t\r\n\t\t/**\r\n\t\t * Initializes the \"isKnownValue\" attributes of TempTableHeader objects\r\n\t\t * by recursively calling this method for all nested causes.\r\n\t\t * @param ssbnnode\r\n\t\t * @see TempTableHeader\r\n\t\t * @throws NullPointerException if ssbnnode is null\r\n\t\t */\r\n\t\tpublic void cleanUpKnownValues(SSBNNode ssbnnode);\r\n\t\t\r\n\r\n\t\t/**\r\n\t\t * Hierarchically searches for user-defined variables in scope.\r\n\t\t * @param key : name of variable to look for\r\n\t\t * @return : value of the variable\r\n\t\t * @see #addUserDefinedVariable(String, IExpressionValue)\r\n\t\t * @see #clearUserDefinedVariables()\r\n\t\t */\r\n\t\tpublic IExpressionValue getUserDefinedVariable(String key);\r\n\t\t\r\n\t\t/**\r\n\t\t * Adds a new user-defined variable retrievable from {@link #getUserDefinedVariable(String)}\r\n\t\t * @see #clearUserDefinedVariables()\r\n\t\t */\r\n\t\tpublic void addUserDefinedVariable(String key, IExpressionValue value);\r\n\t\t\r\n\t\t/**\r\n\t\t * Deletes all user variables that were included by {@link #addUserDefinedVariable(String, IExpressionValue)}.\r\n\t\t * @see #getUserDefinedVariable(String)\r\n\t\t */\r\n\t\tpublic void clearUserDefinedVariables();\r\n\t\t\r\n\t\t/**\r\n\t\t * @return {@link #getUserDefinedVariable(String)} for this clause and all {@link #getNestedClauses()} recursively\r\n\t\t * @param keepFirst : if true, then variables found first will be kept if\r\n\t\t * variables with same name are found. If false, then variables found later will be used\r\n\t\t * in case of duplicate names.\r\n\t\t */\r\n\t\tpublic Map<String, IExpressionValue> getUserDefinedVariablesRecursively(boolean keepFirst);\r\n\t\t\r\n\t\t/**\r\n\t\t * @return instance of resident node whose LPD script is being applied.\r\n\t\t * (this can be used if we are compiling a script before generating SSBN)\r\n\t\t * @see #getSSBNNode()\r\n\t\t */\r\n\t\tpublic IResidentNode getResidentNode();\r\n\t\t\r\n\t\t/**\r\n\t\t * @return : instance of SSBN node whose LPD script is being applied during SSBN generation.\r\n\t\t * May return null if compiler is called before SSBN generation. If so, {@link #getResidentNode()}\r\n\t\t * must be used.\r\n\t\t */\r\n\t\tpublic SSBNNode getSSBNNode();\r\n\t}", "public Node(T data) {this.data = data;}", "@Test\n \tpublic void whereClauseForNodeName() {\n \t\tnode23.setName(\"name\");\n \t\tcheckWhereCondition(join(\"=\", \"_node23.name\", \"'name'\"));\n \t}", "public interface MarkupTagExpression extends DataContainerExpression<MarkupTagItemExpression>, ExpressionCategory {\n}", "public Object visit(ASTOr node, Object data) {\n for (int i = 0; i < node.jjtGetNumChildren(); i++) {\n List args = (List) node.jjtGetChild(i).jjtAccept(this, data);\n //((List) data).addAll(args);\n }\n return data;\n }", "@Test\n \tpublic void whereClauseForNodeNamespace() {\n \t\tnode23.setNamespace(\"namespace\");\n \t\tcheckWhereCondition(join(\"=\", \"_node23.namespace\", \"'namespace'\"));\n \t}", "public Snippet visit(DistType n, Snippet argu) {\n\t\t Snippet _ret=new Snippet(\"\",\"\", null ,false);\n\t\t\t_ret.expType = new X10Distribution(1);\n\t n.nodeToken.accept(this, argu);\n\t n.nodeToken1.accept(this, argu);\n\t n.nodeToken2.accept(this, argu);\n\t Snippet f3 = n.rankEquation.accept(this, argu);\n\t _ret.returnTemp = \"int\";\n\t n.nodeToken3.accept(this, argu);\n\t return _ret;\n\t }", "public abstract Statement queryToRetrieveData();", "QDataSetTerm createDataSetTerm();", "void init(Dataset ds, Session sess);", "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 }", "ForStatement(AST ast) {\n super(ast); }", "public DataNode(Item item, ParentNode parent) {\n m_item = item;\n m_parent = parent;\n AnnotatedBase comp = item.getSchemaComponent();\n int comptype = comp.type();\n m_named = (comptype == SchemaBase.ATTRIBUTE_TYPE || comptype == SchemaBase.ELEMENT_TYPE) &&\n ((INamed)comp).getName() != null;\n Item topmost = item.getTopmost();\n boolean optional = topmost.isOptional();\n if (parent != null && ((GroupItem)parent.getItem()).isInline() && !parent.isNamed()) {\n optional = optional || parent.isOptional();\n }\n m_optional = optional;\n m_ignored = item.isIgnored();\n if (m_ignored) {\n m_type = null;\n m_collection = false;\n } else {\n boolean collection = topmost.isCollection();\n if (item instanceof ValueItem) {\n \n // value item will always be a primitive or wrapper value\n JavaType jtype = ((ValueItem)item).getType();\n m_type = jtype.getPrimitiveName();\n if (m_type == null || topmost.isOptional() || topmost.isCollection() || parent.isCollection()) {\n m_type = jtype.getClassName();\n }\n \n } else if (item instanceof ReferenceItem) {\n \n // reference item as value will always be a reference to the definition class\n m_type = ((ReferenceItem)item).getDefinition().getGenerateClass().getFullName();\n \n } else if (item instanceof AnyItem) {\n \n // xs:any handling determines value type\n switch (item.getComponentExtension().getAnyType()) {\n \n case NestingCustomBase.ANY_DISCARD:\n m_type = null;\n collection = false;\n break;\n \n case NestingCustomBase.ANY_DOM:\n m_type = \"org.w3c.dom.Element\";\n break;\n \n case NestingCustomBase.ANY_MAPPED:\n m_type = \"java.lang.Object\";\n break;\n \n default:\n throw new IllegalStateException(\"Internal error - unknown xs:any handling\");\n \n }\n \n } else if (!((GroupItem)item).isInline()) {\n \n // group item as value will always be a reference to the group class\n m_type = ((GroupItem)item).getGenerateClass().getFullName();\n \n }\n m_collection = collection;\n }\n if (parent != null) {\n parent.addChild(this);\n }\n }", "public Node() \r\n\t{\r\n\t\tincludedNode = new ArrayList<Node>();\r\n\t\tin = false; \r\n\t\tout = false;\r\n\t}", "DataList createDataList();", "@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 }", "@Override\n\tpublic Object visit(ASTWhereClause node, Object data) {\n\t\tint indent = (Integer) data;\n\t\tprintIndent(indent);\n\t\tSystem.out.print(\"where \");\n\t\tnode.childrenAccept(this, 0);\n\t\tSystem.out.println();\n\t\treturn null;\n\t}", "private Node generateSubTreeHQMFInFunctionalOp(Node firstChildNode, Element dataCriteriaSectionElem,\n\t\t\tString clauseName) throws XPathExpressionException {\n\t\tNode parentNode = firstChildNode.getParentNode();\n\n\t\t// temp node.\n\t\tString subTreeUUID = firstChildNode.getAttributes().getNamedItem(ID).getNodeValue();\n\t\tString xpath = \"/measure/subTreeLookUp/subTree[@uuid='\" + subTreeUUID + \"']\";\n\t\tNode subTreeNode = measureExport.getSimpleXMLProcessor()\n\t\t\t\t.findNode(measureExport.getSimpleXMLProcessor().getOriginalDoc(), xpath);\n\t\tString firstChildNameOfSubTree = subTreeNode.getFirstChild().getNodeName();\n\t\tif (FUNCTIONAL_OP.equals(firstChildNameOfSubTree)) {\n\t\t\tString firstChildNodeName = parentNode.getAttributes().getNamedItem(TYPE).getNodeValue();\n\t\t\tif (!SATISFIES_ALL.equalsIgnoreCase(firstChildNodeName)\n\t\t\t\t\t|| !SATISFIES_ANY.equalsIgnoreCase(firstChildNodeName) || !AGE_AT.equals(firstChildNodeName)) {\n\t\t\t\treturn null;\n\t\t\t}\n\t\t}\n\t\tElement root = measureExport.getHQMFXmlProcessor().getOriginalDoc().createElement(\"temp\");\n\t\tgenerateSubTreeHQMF(firstChildNode, root, clauseName);\n\t\tElement entryElement = (Element) root.getFirstChild();\n\t\tNode firstChild = entryElement.getFirstChild();\n\t\tif (\"localVariableName\".equals(firstChild.getNodeName())) {\n\t\t\tfirstChild = firstChild.getNextSibling();\n\t\t}\n\t\tElement excerpt = generateExcerptEntryForFunctionalNode(parentNode, null, measureExport.getHQMFXmlProcessor(),\n\t\t\t\tentryElement);\n\t\tif (excerpt != null) {\n\t\t\tfirstChild.appendChild(excerpt);\n\t\t}\n\t\tdataCriteriaSectionElem.appendChild(entryElement);\n\t\treturn entryElement;\n\t}", "public boolean isEmptyNestedClauses ();", "@org.junit.Test\n public void constrCompelemNodeid1() {\n final XQuery query = new XQuery(\n \"for $x in <a/>, $y in element elem {$x} return exactly-one($y/a) is $x\",\n ctx);\n try {\n result = new QT3Result(query.value());\n } catch(final Throwable trw) {\n result = new QT3Result(trw);\n } finally {\n query.close();\n }\n test(\n assertBoolean(false)\n );\n }", "public ExpressionNodes(String data)\n\t {\n\t this.data = data;\n\t this.left = null;\n\t this.right = null;\n\t }", "@Override\r\n\tpublic boolean visit(VariableDeclarationFragment node) {\r\n//\t\toperator(node);\r\n\t\treturn true;\r\n\t}", "@SuppressWarnings({ \"unchecked\", \"rawtypes\" })\r\n\tpublic Data(String table) throws EmptyDatasetException, SQLException, EmptySetException, NoValueException{\r\n\t\tTableData tableData = new TableData(new DbAccess());\r\n\t\tdata = tableData.getDistinctTransazioni(table);\r\n\t\t\r\n\t\tTableSchema tableSchema = new TableSchema(new DbAccess(),table);\r\n\t\tnumberOfExamples=data.size();\r\n\t\t\r\n\t\tQUERY_TYPE min,max;\r\n\t\tmin = QUERY_TYPE.MIN;\r\n\t\tmax = QUERY_TYPE.MAX;\r\n\t\t\r\n\t\tfor (int i=0;i<tableSchema.getNumberOfAttributes();i++) {\r\n\t\t\tif(!tableSchema.getColumn(i).isNumber()) {\r\n\t\t\t\texplanatorySet.add((T) new DiscreteAttribute(tableSchema.getColumn(i).getColumnName(),i,(TreeSet)tableData.getDistinctColumnValues(table, tableSchema.getColumn(i))));\r\n\t\t\t}else {\r\n\t\t\t\texplanatorySet.add((T) new ContinuousAttribute(tableSchema.getColumn(i).getColumnName(),i,(float)tableData.getAggregateColumnValue(table,tableSchema.getColumn(i),min),(float)tableData.getAggregateColumnValue(table,tableSchema.getColumn(i),max)));\r\n\t\t\t}\r\n\t\t\t\t\r\n\t\t}\r\n\t}", "@Test\n public void test3() throws Exception {\n String query = \"A =LOAD 'file.txt' AS (a:(u,v), b, c);\" +\n \"B = FOREACH A GENERATE $0, b;\" +\n \"C = FILTER B BY 8 > 5;\" +\n \"STORE C INTO 'empty';\"; \n LogicalPlan newLogicalPlan = buildPlan( query );\n\n Operator load = newLogicalPlan.getSources().get( 0 );\n Assert.assertTrue( load instanceof LOLoad );\n Operator filter = newLogicalPlan.getSuccessors( load ).get( 0 );\n Assert.assertTrue( filter instanceof LOFilter );\n Operator fe1 = newLogicalPlan.getSuccessors( filter ).get( 0 );\n Assert.assertTrue( fe1 instanceof LOForEach );\n Operator fe2 = newLogicalPlan.getSuccessors( fe1 ).get( 0 );\n Assert.assertTrue( fe2 instanceof LOForEach );\n }", "public CassandraNode() {\r\n\t\tthis(null, 0);\r\n\t}", "@Test\n public void containsLanguageTagsCaseInsensitive() {\n final Literal lower = factory.createLiteral(\"Hello there\", \"en-gb\");\n final Literal upper = factory.createLiteral(\"Hello there\", \"EN-GB\");\n final Literal mixed = factory.createLiteral(\"Hello there\", \"en-GB\");\n\n final IRI example1 = factory.createIRI(\"http://example.com/s1\");\n final IRI greeting = factory.createIRI(\"http://example.com/greeting\");\n\n\n dataset.add(null, example1, greeting, upper);\n\n // any kind of Triple should match\n assertTrue(dataset.contains(factory.createQuad(null, example1, greeting, upper)));\n assertTrue(dataset.contains(factory.createQuad(null, example1, greeting, lower)));\n assertTrue(dataset.contains(factory.createQuad(null, example1, greeting, mixed)));\n\n // or as patterns\n assertTrue(dataset.contains(null, null, null, upper));\n assertTrue(dataset.contains(null, null, null, lower));\n assertTrue(dataset.contains(null, null, null, mixed));\n }", "@Override\r\n\tpublic Node visitDataParallelPattern(DataParallelPatternContext ctx) {\n\t\treturn super.visitDataParallelPattern(ctx);\r\n\t}", "@Override\n public R visit(OptionalGraphPattern n, A argu) {\n R _ret = null;\n n.nodeToken.accept(this, argu);\n n.groupGraphPattern.accept(this, argu);\n return _ret;\n }", "Node(String d) {\n data = d;\n }", "public interface IData {\n public Node getDate();\n}", "public XMLData () {\r\n\r\n //code description\r\n\r\n try {\r\n DocumentBuilder builder = DocumentBuilderFactory.newInstance().newDocumentBuilder();\r\n this.document = builder.newDocument(); \r\n }\r\n catch (ParserConfigurationException err) {}\r\n\r\n }", "DOMType() {\n // Constructs an empty type node\n }", "public Snippet visit(DotIsFirst n, Snippet argu) {\n\t Snippet _ret= new Snippet(\"\",\"\",null,false);\n\t _ret = n.identifier.accept(this, argu);\n\t n.nodeToken.accept(this, argu);\n\t n.nodeToken1.accept(this, argu);\n\t n.nodeToken2.accept(this, argu);\n\t n.nodeToken3.accept(this, argu);\n\t //return new Snippet(\"\", _ret.returnTemp+\".isFirst()\", new X10Boolean(), false);\n\t return new Snippet(\"\", \"true\", new X10Boolean(), false);\n\t \n\t }", "public VariableNode(String attr)\n {\n this.name = attr;\n }", "public SNode(T data) {\n this(data, null);\n }", "interface PseudoNodeSchema<S> {\n\tClass<S> getEntityClass();\n\tAccessorSupplierFactory<S> getAccessorSupplierFactory(); \t\t\n\tPredicateMappingRegistry getPredicateMappings();\n}", "@Test\n public void example10 () throws Exception {\n ValueFactory f = repo.getValueFactory();\n String exns = \"http://example.org/people/\";\n URI alice = f.createURI(exns, \"alice\");\n URI bob = f.createURI(exns, \"bob\");\n URI ted = f.createURI(exns, \"ted\"); \n URI person = f.createURI(\"http://example.org/ontology/Person\");\n URI name = f.createURI(\"http://example.org/ontology/name\");\n Literal alicesName = f.createLiteral(\"Alice\");\n Literal bobsName = f.createLiteral(\"Bob\");\n Literal tedsName = f.createLiteral(\"Ted\"); \n URI context1 = f.createURI(exns, \"cxt1\"); \n URI context2 = f.createURI(exns, \"cxt2\"); \n conn.add(alice, RDF.TYPE, person, context1);\n conn.add(alice, name, alicesName, context1);\n conn.add(bob, RDF.TYPE, person, context2);\n conn.add(bob, name, bobsName, context2);\n conn.add(ted, RDF.TYPE, person);\n conn.add(ted, name, tedsName);\n \n assertSetsEqual(\n stmts(new Stmt[] {\n new Stmt(alice, RDF.TYPE, person, context1),\n new Stmt(alice, name, alicesName, context1),\n new Stmt(bob, RDF.TYPE, person, context2),\n new Stmt(bob, name, bobsName, context2),\n new Stmt(ted, RDF.TYPE, person),\n new Stmt(ted, name, tedsName)\n }),\n statementSet(conn.getStatements(null, null, null, false)));\n assertSetsEqual(\n stmts(new Stmt[] {\n new Stmt(alice, RDF.TYPE, person, context1),\n new Stmt(alice, name, alicesName, context1),\n new Stmt(bob, RDF.TYPE, person, context2),\n new Stmt(bob, name, bobsName, context2)\n }),\n statementSet(conn.getStatements(null, null, null, false, context1, context2)));\n assertSetsEqual(\n stmts(new Stmt[] {\n new Stmt(bob, RDF.TYPE, person, context2),\n new Stmt(bob, name, bobsName, context2),\n new Stmt(ted, RDF.TYPE, person),\n new Stmt(ted, name, tedsName)\n }),\n statementSet(conn.getStatements(null, null, null, false, null, context2)));\n \n // testing named graph query\n DatasetImpl ds = new DatasetImpl();\n ds.addNamedGraph(context1);\n ds.addNamedGraph(context2);\n TupleQuery tupleQuery = conn.prepareTupleQuery(\n QueryLanguage.SPARQL, \"SELECT ?s ?p ?o ?g WHERE { GRAPH ?g {?s ?p ?o . } }\");\n tupleQuery.setDataset(ds);\n assertSetsEqual(\n stmts(new Stmt[] {\n new Stmt(alice, RDF.TYPE, person, context1),\n new Stmt(alice, name, alicesName, context1),\n new Stmt(bob, RDF.TYPE, person, context2),\n new Stmt(bob, name, bobsName, context2)\n }),\n statementSet(tupleQuery.evaluate()));\n \n ds = new DatasetImpl();\n ds.addDefaultGraph(null);\n tupleQuery = conn.prepareTupleQuery(QueryLanguage.SPARQL, \"SELECT ?s ?p ?o WHERE {?s ?p ?o . }\");\n tupleQuery.setDataset(ds);\n assertSetsEqual(\n stmts(new Stmt[] {\n new Stmt(ted, RDF.TYPE, person),\n new Stmt(ted, name, tedsName)\n }),\n statementSet(tupleQuery.evaluate()));\n }", "public ListADTImpl() {\r\n head = new GenericEmptyNode();\r\n }", "@Test\n public void test2() throws Exception {\n String query = \"A =LOAD 'file.txt' AS (a:(u,v), b, c);\" +\n \"B = FOREACH A GENERATE $0, b;\" +\n \"C = FILTER B BY \" + SIZE.class.getName() +\"(TOTUPLE(*)) > 5;\" +\n \"STORE C INTO 'empty';\"; \n LogicalPlan newLogicalPlan = buildPlan( query );\n\n Operator load = newLogicalPlan.getSources().get( 0 );\n Assert.assertTrue( load instanceof LOLoad );\n Operator fe1 = newLogicalPlan.getSuccessors( load ).get( 0 );\n Assert.assertTrue( fe1 instanceof LOForEach );\n Operator filter = newLogicalPlan.getSuccessors( fe1 ).get( 0 );\n Assert.assertTrue( filter instanceof LOFilter );\n Operator fe2 = newLogicalPlan.getSuccessors( filter ).get( 0 );\n Assert.assertTrue( fe2 instanceof LOForEach );\n }", "@Test\n public void test4() throws Exception {\n String query = \"A =LOAD 'file.txt' AS (a:(u,v), b, c);\" +\n \"B = FOREACH A GENERATE $0, b, flatten(1);\" +\n \"C = FILTER B BY \" + SIZE.class.getName() +\"(TOTUPLE(*)) > 5;\" +\n \"STORE C INTO 'empty';\"; \n LogicalPlan newLogicalPlan = buildPlan( query );\n\n Operator load = newLogicalPlan.getSources().get( 0 );\n Assert.assertTrue( load instanceof LOLoad );\n Operator fe1 = newLogicalPlan.getSuccessors( load ).get( 0 );\n Assert.assertTrue( fe1 instanceof LOForEach );\n Operator fe2 = newLogicalPlan.getSuccessors( fe1 ).get( 0 );\n Assert.assertTrue( fe2 instanceof LOForEach );\n Operator filter = newLogicalPlan.getSuccessors( fe2 ).get( 0 );\n Assert.assertTrue( filter instanceof LOFilter );\n }", "@Override\n public DataAtom getDataAtom(AtomPredicate predicate, ImmutableList<? extends VariableOrGroundTerm> arguments) {\n if(areVariablesDistinct(arguments)) {\n return getDistinctVariableDataAtom(predicate, arguments);\n }\n else if (isVariableOnly(arguments)) {\n return new VariableOnlyDataAtomImpl(predicate, (ImmutableList<Variable>)(ImmutableList<?>)arguments);\n }\n else {\n return new DataAtomImpl(predicate, arguments);\n }\n }", "public abstract T queryRootNode();", "@Test\n \tpublic void whereClauseForNodeExactDominance() {\n \t\tnode23.addJoin(new Dominance(node42, 10));\n \t\tcheckWhereCondition(\n //\t\t\t\tjoin(\"=\", \"_rank23.component_ref\", \"_rank42.component_ref\"),\n \t\t\t\tjoin(\"=\", \"_component23.type\", \"'d'\"),\n \t\t\t\t\"_component23.name IS NULL\",\n \t\t\t\tjoin(\"<\", \"_rank23.pre\", \"_rank42.pre\"),\n \t\t\t\tjoin(\"<\", \"_rank42.pre\", \"_rank23.post\"),\n \t\t\t\tjoin(\"=\", \"_rank23.level\", \"_rank42.level\", -10)\n \t\t);\n \t}", "@Override\n\tpublic void sampleNode() {\n\n\t}", "public List<AST> getChildNodes ();", "@org.junit.Test\n public void constrCompelemNodeid2() {\n final XQuery query = new XQuery(\n \"for $x in <a b=\\\"b\\\"/>, $y in element elem {$x/@b} return $y/@b is $x/@b\",\n ctx);\n try {\n result = new QT3Result(query.value());\n } catch(final Throwable trw) {\n result = new QT3Result(trw);\n } finally {\n query.close();\n }\n test(\n assertBoolean(false)\n );\n }", "public Node(T data) {\n\n this.data = data;\n\n\n }", "Node(){\r\n\t\tdata = null;\r\n\t\tnext = null;\r\n\t}", "@Override\n public void visit(NoOpNode noOpNode) {\n }", "public Node() {}" ]
[ "0.61144876", "0.5616347", "0.5593895", "0.5336267", "0.526116", "0.514501", "0.5141245", "0.51362693", "0.5071993", "0.5058724", "0.5037888", "0.50035614", "0.49435714", "0.49386525", "0.49151355", "0.49051154", "0.48746613", "0.48633805", "0.48627394", "0.48624533", "0.48517928", "0.48408663", "0.48326948", "0.48162526", "0.480841", "0.48044407", "0.47853172", "0.47696877", "0.47588682", "0.4754682", "0.47431207", "0.4741891", "0.47316998", "0.472383", "0.47127727", "0.46927777", "0.4687037", "0.46776035", "0.46710387", "0.46513078", "0.46496898", "0.4625562", "0.46069402", "0.45989633", "0.45977184", "0.45890546", "0.4585808", "0.45770687", "0.45585886", "0.4556092", "0.45347658", "0.4526885", "0.45264897", "0.4526173", "0.4524697", "0.4522177", "0.45206705", "0.4507619", "0.45074457", "0.44994807", "0.44906527", "0.4489623", "0.44882044", "0.4488199", "0.44756913", "0.4471634", "0.44690293", "0.4467754", "0.44633842", "0.44622838", "0.446092", "0.44556224", "0.445446", "0.4453651", "0.44441167", "0.4438784", "0.4438429", "0.44245985", "0.4422559", "0.442178", "0.44143417", "0.44109344", "0.44063768", "0.44045416", "0.44012696", "0.44004318", "0.43976054", "0.4394867", "0.43943575", "0.43910423", "0.43863812", "0.43856215", "0.4380697", "0.43778798", "0.43765914", "0.43757993", "0.4374584", "0.43736482", "0.43699163", "0.4358394" ]
0.46350345
41
nodeToken > deleteClause > DeleteClause() nodeOptional > ( InsertClause() )?
@Override public R visit(RuleModifyClause n, A argu) { R _ret = null; n.nodeToken.accept(this, argu); n.deleteClause.accept(this, argu); n.nodeOptional.accept(this, argu); return _ret; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void parseDelete(StatementTree sTree) {\r\n\r\n\t}", "int insertSelective(Ttoken record);", "final public void DeleteInsertWhere() throws ParseException {\n Exp exp; Composite upd, ope; Constant uri; Values values;\n upd = Composite.create(Update.COMPOSITE);\n switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n case WITH:\n jj_consume_token(WITH);\n uri = IRIrefConst();\n upd.setWith(uri);\n break;\n default:\n jj_la1[35] = jj_gen;\n ;\n }\n switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n case DELETE:\n jj_consume_token(DELETE);\n exp = QuadPattern();\n ope = Composite.create(Update.DELETE); ope.setPattern(exp); upd.add(ope);\n switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n case INSERT:\n jj_consume_token(INSERT);\n exp = QuadPattern();\n ope = Composite.create(Update.INSERT); ope.setPattern(exp); upd.add(ope);\n break;\n default:\n jj_la1[36] = jj_gen;\n ;\n }\n break;\n case INSERT:\n jj_consume_token(INSERT);\n exp = QuadPattern();\n ope = Composite.create(Update.INSERT); ope.setPattern(exp); upd.add(ope);\n break;\n default:\n jj_la1[37] = jj_gen;\n jj_consume_token(-1);\n throw new ParseException();\n }\n label_4:\n while (true) {\n switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n case USING:\n ;\n break;\n default:\n jj_la1[38] = jj_gen;\n break label_4;\n }\n jj_consume_token(USING);\n switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n case Q_IRIref:\n case QNAME_NS:\n case QNAME:\n uri = IRIrefConst();\n upd.addUsing(uri);\n break;\n case NAMED:\n jj_consume_token(NAMED);\n uri = IRIrefConst();\n upd.addNamed(uri);\n break;\n default:\n jj_la1[39] = jj_gen;\n jj_consume_token(-1);\n throw new ParseException();\n }\n }\n jj_consume_token(WHERE);\n exp = GroupGraphPattern();\n switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n case VALUES:\n values = Values();\n upd.setValues(values);\n break;\n default:\n jj_la1[40] = jj_gen;\n ;\n }\n upd.setBody(exp); astu.add(upd);\n }", "int insertSelective(Comment record);", "public void insert(Node n);", "void visit(final Insert insert);", "int insert(Ttoken record);", "int insertSelective(CommentLike record);", "@Override\n\tpublic String insertStatement() throws Exception {\n\t\treturn null;\n\t}", "private Node insert(Order ord2) {\n\t\treturn null;\n\t}", "public void insert()\n\t{\n\t}", "public void insertnode ()\n\t// insert an empty node\n\t{\n\t\tif (Pos.haschildren() && !GF.askInsert()) return;\n\t\tNode n = new Node(Pos.node().number());\n\t\tPos.insertchild(new TreeNode(n));\n\t\tn.main(Pos);\n\t\tgetinformation();\n\t\tPos = Pos.lastChild();\n\t\tsetlast();\n\t\tshowinformation();\n\t\tcopy();\n\t}", "@Override\n public R visit(InsertTriples n, A argu) {\n R _ret = null;\n n.triplesSameSubject.accept(this, argu);\n n.nodeOptional.accept(this, argu);\n return _ret;\n }", "@Override\n\tprotected String deleteStatement() {\n\t\treturn null;\n\t}", "int insertSelective(Goodexistsingle record);", "public Node insertAfter(Node node);", "boolean hasInsert();", "@Override\n\tpublic void insert() {\n\t\t\n\t}", "int insertSelective(MessageRelation record);", "int insertSelective(Transaction record);", "int insertSelective(WayShopCateRoot record);", "@Override\r\n\tpublic String insert() {\n\t\treturn \"insert\";\r\n\t}", "int insertSelective(TbJobProcessNodeRelationEntity record);", "@Override\n public R visit(DeleteTriples n, A argu) {\n R _ret = null;\n n.triplesSameSubject.accept(this, argu);\n n.nodeOptional.accept(this, argu);\n return _ret;\n }", "int insertSelective(FeiWenComment record);", "public void insert(Conge conge) ;", "int insertSelective(SPerms record);", "int insertSelective(Body record);", "@Override\n\tpublic void preInsert() {\n\n\t}", "int insertSelective(R_order record);", "private void delete(Node next) {\n\t\t\n\t}", "int insertSelective(Thing record);", "void missingTokenInserted(Term token);", "int insertSelective(Question record);", "int insertSelective(Question record);", "int insertSelective(Question record);", "int insertSelective(Question record);", "@Override\n\tpublic String deleteStatement() throws Exception {\n\t\treturn null;\n\t}", "public void insertToken(Token tok) {\r\n\t}", "int insertSelective(ArticleDo record);", "@Override\n public String deleteStatement() throws Exception {\n return null;\n }", "int insertSelective(Enfermedad record);", "int insertSelective(TLinkman record);", "private Node delete(Order ord2) {\n\t\treturn null;\n\t}", "int insertSelective(CommentUser record);", "int insertSelective(TagData record);", "@Override\n\tpublic boolean insert(String sql) {\n\t\treturn false;\n\t}", "int insertSelective(AuthorDO record);", "public void onInsert(Statement insert, Connection cx, SimpleFeatureType featureType) throws SQLException {\r\n }", "public Node insertBefore(Node node);", "int insertSelective(ClOrderInfo record);", "int insertSelective(Terms record);", "int insert(Comment record);", "String getInsertDataLiteralQuery(String graph, String subject, String predicate, String object, String datatype);", "int insertSelective(Yqbd record);", "void visit(final Delete delete);", "public boolean insert(A x){ \n return false; \n }", "int insertSelective(Orderall record);", "int insertSelective(TerminalInfo record);", "int insertSelective(NjProductTaticsRelation record);", "int insertSelective(TNavigation record);", "int insert(CommentLike record);", "int insertSelective(AccountBankStatementImportJournalCreationEntity record);", "int insertSelective(Admin record);", "int insertSelective(Admin record);", "int insertSelective(ArticleTag record);", "int insertSelective(Order record);", "int insertSelective(DictDoseUnit record);", "public Key insert(Transaction tx,Tuple t) throws RelationException;", "int insertSelective(TbExpressTrace record);", "int insert(KnowledgeComment record);", "int insertSelective(Journal record);", "@Override\n public boolean handleDeleteBeforeNode(ContentElement element, EditorEvent event) {\n return true;\n }", "int insertSelective(CustomerTag record);", "boolean insert(E e);", "int insertSelective(FunctionInfo record);", "int InsertParseTree(int state, String token) \n {\n try\n {\n switch(state)\n {\n case 0:\n //parsetree.InsertNode(\"\", \"DDL\", state); // DDL type statment\n break;\n case 1:\n parsetree.InsertNode(\"\", \"II\", state); // Create table command\n parsetree.InsertNode(\"II\", \"<TableName>\", state); \n parsetree.InsertNode(\"II\", \"<FieldList>\", state); \n parsetree.InsertNode(\"II\", \"<ValueList>\", state); \n break;\n case 2:\n parsetree.InsertNode(\"<TableName>\", \"<Atribute>\", state); \n parsetree.InsertNode(\"<Atribute>\", token, state); \n break;\n case 4:\n if(parsetree.SearchNodeLevel(parsetree.root, token, state))\n return 301; // Semantic error - fields duplicated\n field_id++;\n parsetree.InsertNode(\"<FieldList>\", \"<Field>\" + field_id, state); \n parsetree.InsertNode(\"<Field>\" + field_id , \"<Field>\" + field_id + \"<Atribute>\", state); \n parsetree.InsertNode(\"<Field>\" + field_id + \"<Atribute>\", token, state); \n break;\n case 9:\n value_id++;\n parsetree.InsertNode(\"<ValueList>\", \"<Value>\" + value_id, state); \n parsetree.InsertNode(\"<Value>\" + value_id, \"<Value>\" + value_id + \"<Atribute>\", state); \n parsetree.InsertNode(\"<Value>\" + value_id + \"<Atribute>\", token, state); \n break;\n case -1:\n if(field_id != value_id)\n return 302; // Semantinc error - Number fields differ number values\n field_id = 0;\n value_id = 0;\n break;\n }\n } catch(Exception e)\n { \n return 300; // semantic error\n }\n return 0;\n }", "int insertSelective(Commet record);", "int insertSelective(Dress record);", "int insert(WayShopCateRoot record);", "public void testInsert2() throws Exception {\n\n DAS das = DAS.FACTORY.createDAS(getConnection());\n Command insert = das.createCommand(\"insert into COMPANY (NAME) values (?)\");\n insert.setParameter(1, \"AAA Rental\");\n insert.execute();\n\n // insert another using same command\n insert.setParameter(1, \"BBB Rental\");\n insert.execute();\n\n // Verify insert\n // Verify\n Command select = das.createCommand(\"Select ID, NAME from COMPANY\");\n DataObject root = select.executeQuery();\n\n assertEquals(5, root.getList(\"COMPANY\").size());\n\n }", "protected JPADeleteClause createDeleteClause() {\n\t\treturn new JPADeleteClause(getEntityManager(), getDslRoot());\n\t}", "int insertSelective(QuestionOne record);", "protected abstract SyntaxNode derivative(SyntaxNode doperand);", "int insertSelective(Destinations record);", "int insertSelective(Engine record);", "int insertSelective(CommonQuestionStrategyType record);", "int insertSelective(Depart record);", "public static InsertStatementBuilder insert() {\r\n return new InsertStatementBuilder();\r\n }", "int insert(Comments record);", "int insertSelective(Trueorfalse record);", "int insertSelective(Dish record);", "int insertSelective(Forumpost record);", "int insertSelective(Ad record);", "int insertSelective(DebtsRecordEntity record);", "int insertSelective(PrhFree record);", "@Override\n\tpublic void insertar() {\n\t\t\n\t}", "@SuppressWarnings({ \"rawtypes\", \"unchecked\" })\n \tprivate CriteriaDeleteImpl constructDeleteQuery(CriteriaBuilderImpl cb, CommonTree tree) {\n \t\tfinal CriteriaDeleteImpl q = new CriteriaDeleteImpl(this.metamodel);\n \n \t\tfinal Tree deleteDef = tree.getChild(0);\n \n \t\tfinal Tree aliasedDef = deleteDef.getChild(0);\n \t\tfinal Aliased aliased = new Aliased(aliasedDef);\n \n \t\tfinal EntityTypeImpl entity = this.getEntity(aliased.getQualified().toString());\n \t\tfinal RootImpl<?> r = (RootImpl<?>) q.from(entity);\n \t\tthis.putAlias(q, aliasedDef, aliased, r);\n \n \t\tif (tree.getChildCount() == 2) {\n \t\t\tq.where(this.constructJunction(cb, q, deleteDef.getChild(1)));\n \t\t}\n \n \t\treturn q;\n \t}", "public void insert(HuffmanTree node);", "int insertSelective(TestEntity record);" ]
[ "0.64252985", "0.60370827", "0.59013873", "0.57570636", "0.5706544", "0.566646", "0.561048", "0.5588244", "0.5546958", "0.55218494", "0.55182576", "0.54805183", "0.5475787", "0.5473062", "0.54380447", "0.5434788", "0.54258615", "0.54238343", "0.5396336", "0.53880805", "0.5383295", "0.53824294", "0.53672", "0.5343095", "0.52768636", "0.52719283", "0.52385217", "0.522241", "0.5209777", "0.52068585", "0.5183544", "0.5180824", "0.5179356", "0.51703435", "0.51703435", "0.51703435", "0.51703435", "0.5156037", "0.51531327", "0.5146581", "0.5142401", "0.5131177", "0.51222306", "0.51197696", "0.51196814", "0.51137435", "0.5112638", "0.5104254", "0.5100553", "0.50927484", "0.50907373", "0.5090147", "0.5082189", "0.5080808", "0.50791353", "0.5072843", "0.5070985", "0.5068544", "0.5067968", "0.50661623", "0.50593376", "0.5059137", "0.50588864", "0.5056861", "0.5056861", "0.5055878", "0.5055625", "0.50489247", "0.50441396", "0.50402945", "0.5035363", "0.50338906", "0.5029042", "0.50248325", "0.5018396", "0.50167197", "0.50164396", "0.5011468", "0.4995083", "0.4989725", "0.49894747", "0.49793774", "0.4976952", "0.4969511", "0.4968362", "0.49667764", "0.4964722", "0.49623674", "0.49613863", "0.494887", "0.4948352", "0.49483067", "0.4941185", "0.49369186", "0.49340597", "0.49293914", "0.49230134", "0.49223483", "0.49200913", "0.49159032" ]
0.58009696
3
triplesSameSubject > TriplesSameSubject() nodeOptional > ( "." ( DeleteTriples() )? )?
@Override public R visit(DeleteTriples n, A argu) { R _ret = null; n.triplesSameSubject.accept(this, argu); n.nodeOptional.accept(this, argu); return _ret; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "final public void TriplesSameSubject(Exp stack) throws ParseException {\n Expression expression1;\n if (jj_2_12(2)) {\n expression1 = VarOrTerm(stack);\n stack = PropertyListNotEmpty(expression1, stack);\n } else {\n switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n case ATLIST:\n case ATPATH:\n case LPAREN:\n case LBRACKET:\n case AT:\n expression1 = TriplesNode(stack);\n stack = PropertyList(expression1, stack);\n break;\n case TUPLE:\n stack = tuple(stack);\n break;\n default:\n jj_la1[187] = jj_gen;\n jj_consume_token(-1);\n throw new ParseException();\n }\n }\n }", "public void deleteByAll(int idSubject, int idRelation, int idComplement, TripletType typeSubject, TripletType typeComplement) throws DAOException;", "public void test_ck_03() {\n // part A - surprising reification\n OntModel model1 = ModelFactory.createOntologyModel(OntModelSpec.DAML_MEM, null);\n OntModel model2 = ModelFactory.createOntologyModel(OntModelSpec.DAML_MEM_RULE_INF, null);\n \n Individual sub = model1.createIndividual(\"http://mytest#i1\", model1.getProfile().CLASS());\n OntProperty pred = model1.createOntProperty(\"http://mytest#\");\n Individual obj = model1.createIndividual(\"http://mytest#i2\", model1.getProfile().CLASS());\n OntProperty probabilityP = model1.createOntProperty(\"http://mytest#prob\");\n \n Statement st = model1.createStatement(sub, pred, obj);\n model1.add(st);\n st.createReifiedStatement().addProperty(probabilityP, 0.9);\n assertTrue(\"st should be reified\", st.isReified());\n \n Statement st2 = model2.createStatement(sub, pred, obj);\n model2.add(st2);\n st2.createReifiedStatement().addProperty(probabilityP, 0.3);\n assertTrue(\"st2 should be reified\", st2.isReified());\n \n sub.addProperty(probabilityP, 0.3);\n sub.removeAll(probabilityP).addProperty(probabilityP, 0.3); //!!!\n // exception\n \n // Part B - exception in remove All\n Individual sub2 = model2.createIndividual(\"http://mytest#i1\", model1.getProfile().CLASS());\n \n sub.addProperty(probabilityP, 0.3);\n sub.removeAll(probabilityP); //!!! exception\n \n sub2.addProperty(probabilityP, 0.3);\n sub2.removeAll(probabilityP); //!!! exception\n \n }", "int deleteByExample(TSubjectInfoExample example);", "int deleteByExample(TLinkmanExample example);", "int deleteByExample(NjProductTaticsRelationExample example);", "int deleteByExample(RepStuLearningExample example);", "int deleteByExample(TempletLinkExample example);", "void deleteMulti(String[] pids);", "public static long removeQuads(NodeCentricOperationContext context, String tableName, boolean revisioned, Long timestamp, Resource[] subject, URI[] predicate, Value[] object, URI[] namedGraphUri) throws AnzoException {\n try {\n ArrayList<Long> subjectIds = null;\n ArrayList<Long> predicateIds = null;\n ArrayList<Long> objectIds = null;\n ArrayList<Long> namedGraphIds = null;\n try {\n if (subject != null && subject.length > 0) {\n if (subject.length > 1 || subject[0] != null) {\n subjectIds = new ArrayList<Long>();\n for (Resource subj : subject) {\n Long id = context.getNodeLayout().fetchId(subj, context.getConnection());\n if (id == null && subject.length == 1) {\n return 0; // required node is not even in db\n } else {\n subjectIds.add(id);\n }\n }\n if (subjectIds.size() == 0) {\n return 0; // required node is not even in db\n }\n if (subjectIds.size() >= 100) {\n insertIdsToTempTable(context, SUBJECT_TEMP, subjectIds);\n }\n }\n }\n if (predicate != null && predicate.length > 0) {\n if (predicate.length > 1 || predicate[0] != null) {\n predicateIds = new ArrayList<Long>();\n for (URI pred : predicate) {\n Long id = context.getNodeLayout().fetchId(pred, context.getConnection());\n if (id == null && predicate.length == 1) {\n return 0; // required node is not even in db\n } else {\n predicateIds.add(id);\n }\n }\n if (predicateIds.size() == 0) {\n return 0; // required node is not even in db\n }\n if (predicateIds.size() >= 100) {\n insertIdsToTempTable(context, PREDICATE_TEMP, predicateIds);\n }\n }\n }\n if (object != null && object.length > 0) {\n if (object.length > 1 || object[0] != null) {\n objectIds = new ArrayList<Long>();\n for (Value obj : object) {\n Long id = context.getNodeLayout().fetchId(obj, context.getConnection());\n if (id == null && object.length == 1) {\n return 0; // required node is not even in db\n } else {\n objectIds.add(id);\n }\n }\n if (objectIds.size() == 0) {\n return 0; // required node is not even in db\n }\n if (objectIds.size() >= 100) {\n insertIdsToTempTable(context, OBJECT_TEMP, objectIds);\n }\n }\n }\n if (namedGraphUri != null && namedGraphUri.length > 0) {\n if (namedGraphUri.length > 1 || namedGraphUri[0] != null) {\n namedGraphIds = new ArrayList<Long>();\n for (URI ngURI : namedGraphUri) {\n Long id = context.getNodeLayout().fetchId(ngURI, context.getConnection());\n if (id == null && namedGraphUri.length == 1) {\n return 0; // required node is not even in db\n } else {\n namedGraphIds.add(id);\n }\n }\n if (namedGraphIds.size() == 0) {\n return 0; // required node is not even in db\n }\n if (namedGraphIds.size() >= 100) {\n insertIdsToTempTable(context, NAMEDGRAPH_TEMP, namedGraphIds);\n }\n }\n }\n String sql = generateSQLStatement(context, tableName, revisioned, timestamp, subjectIds, predicateIds, objectIds, namedGraphIds);\n Statement stmt = context.getConnection().createStatement();\n try {\n return stmt.executeUpdate(sql);\n } finally {\n stmt.close();\n }\n } finally {\n try {\n if (subjectIds != null && subjectIds.size() >= 100) {\n BaseSQL.clearTableWithSessionPrefix(context.getStatementProvider(), context.getConnection(), context.getConfiguration().getSessionPrefix(), SUBJECT_TEMP);\n }\n if (predicateIds != null && predicateIds.size() >= 100) {\n BaseSQL.clearTableWithSessionPrefix(context.getStatementProvider(), context.getConnection(), context.getConfiguration().getSessionPrefix(), PREDICATE_TEMP);\n }\n if (objectIds != null && objectIds.size() >= 100) {\n BaseSQL.clearTableWithSessionPrefix(context.getStatementProvider(), context.getConnection(), context.getConfiguration().getSessionPrefix(), OBJECT_TEMP);\n }\n if (namedGraphIds != null && namedGraphIds.size() >= 100) {\n BaseSQL.clearTableWithSessionPrefix(context.getStatementProvider(), context.getConnection(), context.getConfiguration().getSessionPrefix(), NAMEDGRAPH_TEMP);\n }\n } catch (RdbException e) {\n logger.error(LogUtils.RDB_MARKER, \"Error clearing temporary tables\", e);\n }\n }\n } catch (SQLException e) {\n throw new AnzoException(ExceptionConstants.RDB.FAILED_EXECUTING_SQL, e);\n }\n }", "public void delRelations();", "public boolean deletePalvelupisteet();", "public void delIncomingRelations();", "int deleteByExample(SPermsExample example);", "int deleteByExample(TbJobProcessNodeRelationEntityExample example);", "int deleteByExample(GoodexistsingleExample example);", "public void deleteBySubject(int id, TripletType type) throws DAOException;", "int deleteByExample(TCpySpouseExample example);", "void supprimerTopo(String user, Integer topoId);", "@Test\n public void testRemoveSameEdgeTwice() throws Exception {\n\n final ExecutionEnvironment env = ExecutionEnvironment.getExecutionEnvironment();\n\n Graph<Long, Long, Long> graph =\n Graph.fromDataSet(\n TestGraphUtils.getLongLongVertexData(env),\n TestGraphUtils.getLongLongEdgeData(env),\n env);\n List<Edge<Long, Long>> edgesToBeRemoved = new ArrayList<>();\n edgesToBeRemoved.add(new Edge<>(5L, 1L, 51L));\n edgesToBeRemoved.add(new Edge<>(5L, 1L, 51L));\n\n graph = graph.removeEdges(edgesToBeRemoved);\n\n DataSet<Edge<Long, Long>> data = graph.getEdges();\n List<Edge<Long, Long>> result = data.collect();\n\n expectedResult =\n \"1,2,12\\n\" + \"1,3,13\\n\" + \"2,3,23\\n\" + \"3,4,34\\n\" + \"3,5,35\\n\" + \"4,5,45\\n\";\n\n compareResultAsTuples(result, expectedResult);\n }", "public static void main(String[] args) {\n\t\tListNode head = new ListNode(1);\n\t\tListNode nodeA = new ListNode(2);\n\t\tListNode nodeB = new ListNode(2);\n\t\tListNode nodeC = new ListNode(3);\n\t\t\n\t\thead.next = nodeA;\n\t\tnodeA.next = nodeB;\n\t\tnodeB.next = nodeC;\n\t\t\n\t\tDeleteDuplicates instance = new DeleteDuplicates();\n\t\thead = instance.solution(head);\n\t\twhile(head != null)\n\t\t{\n\t\t\tSystem.out.println(head.val);\n\t\t\thead = head.next;\n\t\t}\n\t}", "int deleteByExample(XdSpxxExample example);", "@Test\r\n void test_remove_same_edge_twice() {\r\n // Add two vertices with one edge\r\n graph.addEdge(\"A\", \"B\");\r\n graph.addEdge(\"A\", \"C\");\r\n graph.removeEdge(\"A\", \"B\");\r\n graph.removeEdge(\"A\", \"B\");\r\n if (graph.size() != 1) {\r\n fail();\r\n }\r\n if (graph.getAdjacentVerticesOf(\"A\").contains(\"B\")) {\r\n fail();\r\n } \r\n }", "void compareDeletion();", "int deleteByExample(DestinationsExample example);", "private void generateRDFTriplesFromPredicateObjectMap(\n \t\t\tSesameDataSet sesameDataSet, TriplesMap triplesMap,\n \t\t\tResource subject, Set<URI> subjectGraphs,\n \t\t\tPredicateObjectMap predicateObjectMap) throws SQLException,\n \t\t\tR2RMLDataError, UnsupportedEncodingException {\n \t\tSet<URI> predicates = new HashSet<URI>();\n \t\tfor (PredicateMap pm : predicateObjectMap.getPredicateMaps()) {\n \t\t\tMap<ColumnIdentifier, byte[]> pmFromRow = applyValueToRow(pm);\n \t\t\tboolean nullFound = false;\n \t\t\tfor (ColumnIdentifier value : pmFromRow.keySet())\n \t\t\t\tif (pmFromRow.get(value) == null) {\n \t\t\t\t\tlog.debug(\"[R2RMLEngine:genereateRDFTriplesFromRow] NULL found, this object will be ignored.\");\n \t\t\t\t\tnullFound = true;\n \t\t\t\t\tbreak;\n \t\t\t\t}\n \t\t\tif (nullFound)\n \t\t\t\tcontinue;\n \t\t\tURI predicate = (URI) extractValueFromTermMap(pm, pmFromRow,\n \t\t\t\t\ttriplesMap);\n \t\t\tlog.debug(\"[R2RMLEngine:genereateRDFTriplesFromRow] Generate predicate : \"\n \t\t\t\t\t+ predicate);\n \t\t\tpredicates.add(predicate);\n \t\t}\n \t\t// 2. Let objects be the set of generated RDF terms that result from\n \t\t// applying each of\n \t\t// the predicate-object map's object maps (but not referencing object\n \t\t// maps) to row\n \t\tSet<Value> objects = new HashSet<Value>();\n \t\tfor (ObjectMap om : predicateObjectMap.getObjectMaps()) {\n \t\t\tMap<ColumnIdentifier, byte[]> omFromRow = applyValueToRow(om);\n \t\t\tboolean nullFound = false;\n \t\t\tfor (ColumnIdentifier value : omFromRow.keySet())\n \t\t\t\tif (omFromRow.get(value) == null) {\n \t\t\t\t\tlog.debug(\"[R2RMLEngine:genereateRDFTriplesFromRow] NULL found, this object will be ignored.\");\n \t\t\t\t\tnullFound = true;\n \t\t\t\t\tbreak;\n \t\t\t\t}\n \t\t\tif (nullFound)\n \t\t\t\tcontinue;\n \t\t\tValue object = extractValueFromTermMap(om, omFromRow, triplesMap);\n \t\t\tlog.debug(\"[R2RMLEngine:genereateRDFTriplesFromRow] Generate object : \"\n \t\t\t\t\t+ object);\n \t\t\tobjects.add(object);\n \t\t}\n \t\t// 3. Let pogm be the set of graph maps of the predicate-object map\n \t\tSet<GraphMap> pogm = predicateObjectMap.getGraphMaps();\n \t\t// 4. Let predicate-object_graphs be the set of generated RDF\n \t\t// terms that result from applying each graph map in pogm to row\n \t\tSet<URI> predicate_object_graphs = new HashSet<URI>();\n \t\t// 4+. Add graph of subject graphs set\n \t\tif (subjectGraphs != null)\n \t\t\tpredicate_object_graphs.addAll(subjectGraphs);\n \t\tfor (GraphMap graphMap : pogm) {\n \t\t\tMap<ColumnIdentifier, byte[]> pogmFromRow = applyValueToRow(graphMap);\n \t\t\tURI predicate_object_graph = (URI) extractValueFromTermMap(\n \t\t\t\t\tgraphMap, pogmFromRow, triplesMap);\n \t\t\tlog.debug(\"[R2RMLEngine:genereateRDFTriplesFromRow] Generate predicate object graph : \"\n \t\t\t\t\t+ predicate_object_graph);\n \t\t\tpredicate_object_graphs.add(predicate_object_graph);\n \t\t}\n \t\t// 5. For each possible combination <predicate, object> where predicate\n \t\t// is a member\n \t\t// of predicates and object is a member of objects,\n \t\t// add triples to the output dataset\n \t\tfor (URI predicate : predicates) {\n \t\t\tfor (Value object : objects) {\n \t\t\t\taddTriplesToTheOutputDataset(sesameDataSet, subject, predicate,\n \t\t\t\t\t\tobject, predicate_object_graphs);\n \t\t\t}\n \t\t}\n \t}", "ArrayMap<Integer,DefinedProperty> nodeDelete( long nodeId );", "public void borrarTodosTripulantes();", "void unsetFurtherRelations();", "int deleteByExample(TourstExample example);", "int deleteByExample(TycCompanyCheckCrawlerExample example);", "int deleteByExample(LtsprojectpoExample example);", "int deleteByExample(TResearchTeachExample example);", "int deleteByExample(CollectExample example);", "@Override\n \t\t\t\tpublic void deleteGraph() throws TransformedGraphException {\n \n \t\t\t\t}", "int deleteByExample(TCarExample example);", "public void eliminarTripulante(Long id);", "public static void main(String[] args) {\n\n ListNode head = new ListNode(1);\n ListNode node2 = new ListNode(1);\n ListNode node3 = new ListNode(1);\n ListNode node4 = new ListNode(1);\n ListNode node5 = new ListNode(1);\n ListNode node6 = new ListNode(2);\n\n node5.next = node6;\n node4.next = node5;\n node3.next = node4;\n node2.next = node3;\n head.next = node2;\n\n removeDuplicateNodes(head);\n\n return;\n }", "public static void removeDuplicateSample() {\n Node ll1 = new Node(1, new Node(2, new Node(3, new Node(4, new Node(5, null)))));\n Node ll2 = new Node(1, new Node(2, new Node(3, new Node(4, new Node(4, null)))));\n Node ll3 = new Node(1, new Node(1, new Node(3, new Node(4, new Node(5, null)))));\n Node ll4 = new Node(1, new Node(1, new Node(1, new Node(4, new Node(5, null)))));\n\n System.out.println(\"1===\");\n ll1.printList();\n ll1 = ll1.removeDuplicate();\n ll1.printList();\n\n System.out.println(\"2===\");\n ll2.printList();\n ll2 = ll2.removeDuplicate();\n ll2.printList();\n\n System.out.println(\"3===\");\n ll3.printList();\n ll3 = ll3.removeDuplicate();\n ll3.printList();\n\n System.out.println(\"4===\");\n ll4.printList();\n ll4 = ll4.removeDuplicate();\n ll4.printList();\n\n }", "public abstract boolean deleteOrphans();", "public void deleteSubject(String login) {\n subjectRepository.findOneWithEagerBySubjectLogin(login).ifPresent(subject -> {\n unassignAllSources(subject);\n subjectRepository.delete(subject);\n log.debug(\"Deleted Subject: {}\", subject);\n });\n }", "@Override\n\tpublic void delete(Iterable<? extends Pessoa> arg0) {\n\t\t\n\t}", "void removeSameAs(Object oldSameAs);", "int deleteByExample(CptDataStoreExample example);", "int deleteByExample(DressExample example);", "public static Task<Void> deleteTripper(String tripId, String tripperId) {\n return FirebaseFirestore.getInstance()\n .collection(Const.TRIPS_COLLECTION)\n .document(tripId)\n .collection(Const.TRIP_TRIPPERS_COLLECTION)\n .document(tripperId)\n .delete();\n }", "@Test\n void test02_removeVertex() {\n graph.addVertex(\"a\");\n graph.addVertex(\"b\"); // adds two\n graph.removeVertex(\"a\"); // remove\n\n Set<String> vertices = new LinkedHashSet<>();\n vertices.add(\"a\");\n vertices.add(\"b\");\n vertices.remove(\"a\"); // creates a mock up vertex list\n\n if (!graph.getAllVertices().equals(vertices)) {\n fail(\"Graph didn't remove the vertices correctly\");\n }\n }", "public void deleteAllArticles();", "int deleteByExample(NjOrderWork2Example example);", "void deleteAll();", "void deleteAll();", "void deleteAll();", "int deleteByExample(DictDoseUnitExample example);", "@Test\n public void testRemoveDuplicates() {\n System.out.println(\"removeDuplicates\");\n ArrayList<String> array = new ArrayList<>(Arrays.asList(\n \"A.example.COM,1.1.1.1,NO,11,Faulty fans\",\n \"b.example.com,1.1.1.2,no,13,Behind the other routers so no one sees it\",\n \"C.EXAMPLE.COM,1.1.1.3,no,12.1,\",\n \"d.example.com,1.1.1.4,yes,14,\",\n \"c.example.com,1.1.1.5,no,12,Case a bit loose\",\n \"e.example.com,1.1.1.6,no,12.3,\",\n \"f.example.com,1.1.1.7,No,12.200,\",\n \"g.example.com,1.1.1.6,no,15.0,Guarded by sharks with lasers on their heads\"\n ));\n ArrayList<String> expResult = new ArrayList<>(Arrays.asList(\n \"A.example.COM,1.1.1.1,NO,11,Faulty fans\",\n \"b.example.com,1.1.1.2,no,13,Behind the other routers so no one sees it\",\n \"d.example.com,1.1.1.4,yes,14,\",\n \"f.example.com,1.1.1.7,No,12.200,\"\n ));\n ArrayList<String> result = BTRouterPatch.removeDuplicates(array);\n assertEquals(expResult, result);\n }", "int deleteByExample(Lbt72TesuryoSumDPkeyExample example);", "public static void main(String[] args) {\n\t\t\r\n\t\tRemoveDuplicates r=new RemoveDuplicates();\r\n\t\tNode4 n1=new Node4(3);\r\n\t\tn1.next=null;\r\n\t\t//n1.next.next=new Node4(7);\r\n\t//\tn1.next.next.next=new Node4(6);\r\n\t\t//n1.next.next.next.next=new Node4(7);\r\n\t n1=r.removingDuplicates(n1);\r\n\twhile(n1!=null)\r\n\t\t{\tSystem.out.print(n1.val+\"->\");\r\n\t\t\tn1=n1.next;}\r\n\t\r\n\t\t\r\n\t}", "@Test\n public void testRemoveAll() {\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>();\n instance.add(3);\n instance.add(2);\n instance.add(3);\n instance.add(2);\n instance.add(3);\n instance.add(2);\n\n Collection c = Arrays.asList(2, 3);\n boolean expectedResult = true;\n boolean result = instance.removeAll(c);\n\n assertEquals(expectedResult, result);\n\n }", "public void deleteAll();", "private void step4(Node node) {\n\t\tHashMap<String, ArrayList<String>> svn = node.svN;\r\n\t\tHashMap<String, ArrayList<String>> cn = node.cN;\r\n\t\tArrayList<String> keys = node.keysN;\r\n\t\tString c = checksubset(cn);\r\n\r\n\t\tif (c != null) {\r\n\t\t\tfor (int i = 0; i < keys.size(); i++) {\r\n\t\t\t\tif (svn.get(keys.get(i)).contains(c)) {\r\n\t\t\t\t\tsvn.get(keys.get(i)).remove(c);\r\n\t\t\t\t\tif (svn.get(keys.get(i)).size() <= 1) {\r\n\t\t\t\t\t\tsvn.remove(keys.get(i));\r\n\t\t\t\t\t\tkeys.remove(i);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tcn.remove(c);\r\n\t\t}\r\n\t}", "private void clean() {\n // TODO: Your code here.\n for (Long id : vertices()) {\n if (adj.get(id).size() == 1) {\n adj.remove(id);\n }\n }\n }", "private void generateRDFTriplesFromRow(SesameDataSet sesameDataSet,\n \t\t\tTriplesMap triplesMap, SubjectMap sm, Set<URI> classes,\n \t\t\tSet<GraphMap> sgm) throws SQLException, R2RMLDataError,\n \t\t\tUnsupportedEncodingException {\n \t\tMap<ColumnIdentifier, byte[]> smFromRow = applyValueToRow(sm);\n \t\tResource subject = (Resource) extractValueFromTermMap(sm, smFromRow,\n \t\t\t\ttriplesMap);\n \t\tif (subject == null) {\n \t\t\tlog.debug(\"[R2RMLEngine:genereateRDFTriplesFromRow] NULL found, this subject will be ignored.\");\n \t\t\treturn;\n \t\t} else\n \t\t\tlog.debug(\"[R2RMLEngine:genereateRDFTriplesFromRow] Generate subject : \"\n \t\t\t\t\t+ subject.stringValue());\n \n \t\t// 2. Let subject_graphs be the set of the generated RDF terms\n \t\t// that result from applying each term map in sgm to row\n \t\tSet<URI> subject_graphs = new HashSet<URI>();\n \t\tfor (GraphMap graphMap : sgm) {\n \t\t\tMap<ColumnIdentifier, byte[]> sgmFromRow = applyValueToRow(graphMap);\n \t\t\tURI subject_graph = (URI) extractValueFromTermMap(graphMap,\n \t\t\t\t\tsgmFromRow, triplesMap);\n \t\t\tlog.debug(\"[R2RMLEngine:genereateRDFTriplesFromRow] Generate subject graph : \"\n \t\t\t\t\t+ subject_graph);\n \t\t\tsubject_graphs.add(subject_graph);\n \t\t}\n \t\t// 3. For each classIRI in classes, add triples to the output dataset\n \t\tfor (URI classIRI : sm.getClassIRIs()) {\n \t\t\tURI predicate = vf.createURI(R2RMLVocabulary.RDF_NAMESPACE\n \t\t\t\t\t+ R2RMLTerm.TYPE);\n \t\t\taddTriplesToTheOutputDataset(sesameDataSet, subject, predicate,\n \t\t\t\t\tclassIRI, subject_graphs);\n \t\t}\n \t\t// 4. For each predicate-object map of the triples map, apply the\n \t\t// following method\n \t\tfor (PredicateObjectMap predicateObjectMap : triplesMap\n \t\t\t\t.getPredicateObjectMaps())\n \t\t\tgenerateRDFTriplesFromPredicateObjectMap(sesameDataSet, triplesMap,\n \t\t\t\t\tsubject, subject_graphs, predicateObjectMap);\n \n \t}", "@Test\n public void deleteSubjectGroupTest() throws Exception {\n createSubjectGroupTest();\n \n IPSubject ip = new IPSubject();\n Map<Long, SubjectGroup> result = ip.getSubjectGroupInfoByName(\"network\");\n Long groupId = result.keySet().toArray(new Long[1])[0];\n assertNotNull(groupId);\n \n ip.deleteSubjectGroup(groupId);\n\n EntityManagerContext.open(factory);\n try {\n org.ebayopensource.turmeric.policyservice.model.SubjectGroup savedSubjectGroup =\n EntityManagerContext.get().find(\n org.ebayopensource.turmeric.policyservice.model.SubjectGroup.class, \n groupId);\n assertNull(savedSubjectGroup);\n } finally {\n EntityManagerContext.close();\n }\n }", "public void delete(Long[] ids) throws ProcessingException;", "public void deleteAll();", "public void deleteAll();", "public void deleteAll();", "int deleteByExample(TycCompanyExecutiveCrawlerExample example);", "int deleteByExample(TourExample example);", "void deleteNodes(ZVNode[] nodes);", "public void deleteGoal(Goal goal_1);", "private void removeNoMoreExistingOriginalNodes() {\n for (Node mirrorNode : mirrorGraph.nodes()) {\n if (!isPartOfMirrorEdge(mirrorNode) && !originalGraph.has(mirrorNode)) {\n mirrorGraph.remove(mirrorNode);\n }\n }\n }", "void removeNodes(List<CyNode> nodes);", "private boolean noNodeDeletingRules(final List<Rule> sequence) {\r\n\t\tboolean result = true;\r\n\t\tfor (int i=0; i<sequence.size(); i++) {\r\n\t\t\tRule r = sequence.get(i);\r\n//\t\t\tSystem.out.println(r.getName());\r\n\t\t\tfinal Pair<Boolean, List<String>> \r\n\t\t\truleRes = this.ruleSequence.getRuleResult(i, r.getName(), ApplicabilityConstants.NO_NODE_DELETING);\r\n\t\t\tif (ruleRes != null) {\r\n\t\t\t\tif (!ruleRes.first.booleanValue())\r\n\t\t\t\t\tresult = false;\r\n\t\t\t} \r\n\t\t\telse {\r\n\t\t\t\tif (//r.isNodeDeleting() \r\n\t\t\t\t\t\t//&& \r\n\t\t\t\t\t\tr.mayCauseDanglingEdge()\r\n\t\t\t\t) {\r\n\t\t\t\t\tresult = false;\t\t\r\n\t\t\t\t\tsetRuleResult(i, r.getName(), false, ApplicabilityConstants.NO_NODE_DELETING, \"\");\t\r\n\t\t\t\t\tSystem.out.println(\"=== >>> ApplicabilityChecker.noNodeDeletingRules:: FAILED! rule: \"+r.getName()+\" may cause dangling edge.\");\r\n\t\t\t\t} else {\r\n\t\t\t\t\tsetRuleResult(i, r.getName(), true, ApplicabilityConstants.NO_NODE_DELETING, \"\");\t\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\t\r\n\t\tif (!result && !this.ruleSequence.getIgnoreDanglingEdgeOfDelNode()) {\r\n\t\t\tsetApplicabilityResult(false, ApplicabilityConstants.NO_NODE_DELETING);\r\n\t\t}\r\n\t\treturn result;\r\n\t}", "@Override\r\n\tpublic void deleteTea(Teacher teacher) {\n\r\n\t}", "public XMessage deleteAssignments(OpProjectSession session, XMessage request) {\r\n List superLocators = (List) (request.getArgument(SUPER_SUBJECT_IDS));\r\n List subLocators = (List) (request.getArgument(SUB_SUBJECT_IDS));\r\n // assuming that both lists are of same size!\r\n\r\n Iterator super_iter = superLocators.iterator();\r\n Iterator sub_iter = subLocators.iterator();\r\n if (super_iter.hasNext()) {\r\n OpBroker broker = session.newBroker();\r\n OpTransaction t = broker.newTransaction();\r\n try {\r\n while (super_iter.hasNext() && sub_iter.hasNext()) {\r\n OpLocator superLocator = OpLocator.parseLocator((String) (super_iter.next()));\r\n OpLocator subLocator = OpLocator.parseLocator((String) (sub_iter.next()));\r\n OpGroup super_group = serviceIfcImpl.getGroupById(session, broker, superLocator.getID());\r\n if (subLocator.getPrototype().getInstanceClass() == OpUser.class) {\r\n // user to group\r\n OpUser user = serviceIfcImpl.getUserById(session, broker, subLocator.getID());\r\n serviceIfcImpl.removeUserFromGroup(session, broker, user, super_group);\r\n }\r\n else {\r\n // group to group\r\n OpGroup group = serviceIfcImpl.getGroupById(session, broker, subLocator.getID());\r\n serviceIfcImpl.removeGroupFromGroup(session, broker, group, super_group);\r\n }\r\n }\r\n t.commit();\r\n }\r\n catch (XServiceException exc) {\r\n t.rollback();\r\n XMessage reply = new XMessage();\r\n reply.setError(exc.getError());\r\n return (reply);\r\n }\r\n finally {\r\n broker.close();\r\n }\r\n }\r\n return null;\r\n }", "@FixFor( \"MODE-788\" )\n @Test\n public void shouldCreateSubgraphAndDeleteSubgraphInSameOperation() {\n graph.batch()\n .create(\"/a\")\n .with(JcrLexicon.PRIMARY_TYPE, JcrNtLexicon.FOLDER)\n .orReplace()\n .and()\n .create(\"/a/b\")\n .with(JcrLexicon.PRIMARY_TYPE, JcrNtLexicon.FOLDER)\n .orReplace()\n .and()\n .create(\"/a/b/c\")\n .with(JcrLexicon.PRIMARY_TYPE, JcrNtLexicon.FOLDER)\n .orReplace()\n .and()\n .delete(\"/a\")\n .and()\n .execute();\n\n // Now look up node A ...\n assertTrue(testWorkspaceRoot.list().length == 0);\n assertFalse(new File(testWorkspaceRoot, \"a\").exists());\n }", "void deleteTransmission(Transmission transmission, SiteUser siteUser);", "@Test\n public void deleteRecipeDirections_Deletes(){\n int returnedRecipe = testDatabase.addRecipe(testRecipe);\n int returnedDirection1 = testDatabase.addRecipeDirection(recipeDirection1);\n int returnedDirection2 = testDatabase.addRecipeDirection(recipeDirection2);\n testDatabase.deleteRecipeDirections(returnedRecipe);\n ArrayList<RecipeDirection> allDirections = testDatabase.getAllRecipeDirections(returnedRecipe);\n boolean deleted1 = true;\n boolean deleted2 = true;\n if(allDirections != null){\n for(int i = 0; i < allDirections.size(); i++){\n if(allDirections.get(i).getKeyID() == returnedDirection1){\n deleted1 = false;\n }\n if(allDirections.get(i).getKeyID() == returnedDirection2){\n deleted2 = false;\n }\n }\n }\n assertEquals(\"deleteRecipeDirections - Deleted Direction1\", true, deleted1);\n assertEquals(\"deleteRecipeDirections - Deleted Direction2\", true, deleted2);\n }", "void removeIsVertexOf(Subdomain_group oldIsVertexOf);", "@Test\r\n public void testDelete() throws PAException {\r\n Ii spIi = IiConverter.convertToStudyProtocolIi(TestSchema.studyProtocolIds.get(0));\r\n List<StudyDiseaseDTO> dtoList = bean.getByStudyProtocol(spIi);\r\n int oldSize = dtoList.size();\r\n Ii ii = dtoList.get(0).getIdentifier();\r\n bean.delete(ii);\r\n dtoList = bean.getByStudyProtocol(spIi);\r\n assertEquals(oldSize - 1, dtoList.size());\r\n }", "public void delRelations(XDI3Segment arcXri);", "int deleteByExample(SeGroupExample example);", "public void deleteAll(){\r\n\t\thead = null;\r\n\t}", "int deleteByExample(TdxNoticeCertificateExample example);", "@Test\n public void removeEqualWordsTest(){\n BotController botController = new BotController(clueService);\n List<Synonym> synonymsOfDiamond = botController.getSimilarWords(\"diamond\");\n //assume diamonds get return as synonym of diamond\n Synonym diamondsSynonym = new Synonym();\n diamondsSynonym.setWord(\"diamonds\");\n diamondsSynonym.setScore(1000);\n synonymsOfDiamond.add(diamondsSynonym);\n\n List<String> synonymsBeforeRemoving = new ArrayList<>();\n for(Synonym synonym: synonymsOfDiamond){\n synonymsBeforeRemoving.add(synonym.getWord());\n }\n synonymsOfDiamond = botController.removeEqualWords(synonymsOfDiamond,\"diamond\");\n List<String> synonymsAfterRemoving = new ArrayList<>();\n for(Synonym synonym: synonymsOfDiamond){\n synonymsAfterRemoving.add(synonym.getWord());\n }\n\n assertTrue(synonymsBeforeRemoving.contains(\"diamonds\"));\n assertFalse(synonymsAfterRemoving.contains(\"diamonds\"));\n\n\n }", "int deleteByExample(TdxCompanyTaxArrearsExample example);", "int deleteByExample(DepartExample example);", "public static void main(String[] args) {\n\t\tListNode node1 = new ListNode(1);\n\t\tListNode node2 = new ListNode(2);\n\t\tListNode node3 = new ListNode(3);\n\t\tListNode node4 = new ListNode(4);\n\t\tListNode node5 = new ListNode(5);\n\t\tListNode node6 = new ListNode(6);\n\t\t\n\t\tnode1.next = node2;\n\t\tnode2.next = node3;\n\t\tnode3.next = node4;\n\t\tnode4.next = node5;\n\t\tnode5.next = node6;\n\t\tListNode newHead = deleteNode(node1);\n\t\twhile(newHead != null){\n\t\t\tSystem.out.println(newHead.val);\n\t\t\tnewHead = newHead.next;\n\t\t}\n\t}", "int deleteByExample(TerminalInfoExample example);", "int deleteByExample(AddressesExample example);", "@Override\n\tpublic boolean eliminar(Connection connection, Object DetalleSolicitud) {\n\t\tString query = \"DELETE FROM detallesolicitudes WHERE sysPK = ?\";\n\t\ttry {\t\n\t\t\tDetalleSolicitud detalleSolicitud = (DetalleSolicitud)DetalleSolicitud;\n\t\t\tPreparedStatement preparedStatement = (PreparedStatement) connection.prepareStatement(query);\n\t\t\tpreparedStatement.setInt(1, detalleSolicitud.getSysPk());\n\t\t\tpreparedStatement.execute();\n\t\t\treturn true;\n\t\t} catch (SQLException e) {\n\t\t\tNotificacion.dialogoException(e);\n\t\t\treturn false;\n\t\t}//FIN TRY/CATCH\t\n\t}", "@Override\n\tpublic void delete(Iterable<? extends Basket> arg0) {\n\t\t\n\t}", "public void removeDuplicates(ArrayList<Edge> edges) {\n\t\tfor (int i = 0; i < edges.size(); i++) {\r\n\t\t\tfor (int j = i + 1; j < edges.size(); j++) {\r\n\t\t\t\tString v11 = edges.get(i).vertex1;\r\n\t\t\t\tString v12 = edges.get(i).vertex2;\r\n\t\t\t\tString v21 = edges.get(j).vertex1;\r\n\t\t\t\tString v22 = edges.get(j).vertex2;\r\n\t\t\t\tif ((v11.equals(v21) && v12.equals(v22)) || (v11.equals(v22) && v12.equals(v21))) {\r\n\t\t\t\t\tedges.remove(j);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "@Override\n public int delete( J34SiscomexPaises j34SiscomexPaises ) {\n return super.doDelete(j34SiscomexPaises);\n }", "public abstract void deletedConcepts(long ms, int n);", "int deleteByExample(GrpTagExample example);", "@Test\r\n\tpublic void deleteTeamTeamplayerses() {\r\n\t\t// TODO: JUnit - Populate test inputs for operation: deleteTeamTeamplayerses \r\n\t\tInteger team_teamId_5 = 0;\r\n\t\tInteger related_teamplayerses_teamPlayersId = 0;\r\n\t\tTeam response = null;\r\n\t\tresponse = service.deleteTeamTeamplayerses(team_teamId_5, related_teamplayerses_teamPlayersId);\r\n\t\t// TODO: JUnit - Add assertions to test outputs of operation: deleteTeamTeamplayerses\r\n\t}", "public int delete(String lfn, ReplicaCatalogEntry tuple) {\n int result = 0;\n for( Iterator it = this.rcIterator(); it.hasNext() ; ){\n ReplicaCatalog catalog = (ReplicaCatalog) it.next();\n result += catalog.delete( lfn, tuple );\n }\n return result;\n\n }", "public abstract void borrarEstadosPropuestas();", "@Test\n public void testRemoveAll_Not_Empty() {\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>();\n instance.add(3);\n instance.add(2);\n instance.add(3);\n instance.add(2);\n instance.add(3);\n instance.add(1);\n instance.add(2);\n\n Collection c = Arrays.asList(2, 3);\n instance.removeAll(c);\n\n int expectedResult = 1;\n assertEquals(expectedResult, instance.size());\n\n }" ]
[ "0.5870331", "0.5851736", "0.56046706", "0.5548366", "0.5440706", "0.5421932", "0.5415297", "0.5411564", "0.5408086", "0.54054284", "0.5385963", "0.5371851", "0.5370458", "0.5358094", "0.5286938", "0.52818346", "0.52721864", "0.5260496", "0.51597625", "0.51587886", "0.51511973", "0.51399547", "0.51236445", "0.5101622", "0.5088361", "0.5077117", "0.5067958", "0.50546527", "0.5043137", "0.50397843", "0.5029404", "0.5016401", "0.5014021", "0.5013911", "0.5013838", "0.50085557", "0.5004121", "0.50020117", "0.5000424", "0.4988238", "0.49826968", "0.49825555", "0.49765345", "0.49717915", "0.49705172", "0.49595958", "0.4956321", "0.49452183", "0.49233153", "0.49221244", "0.49221244", "0.49221244", "0.4919768", "0.49168113", "0.4912825", "0.49112803", "0.4904396", "0.49006638", "0.48941284", "0.48803395", "0.48760253", "0.48739418", "0.48708764", "0.48622012", "0.48622012", "0.48622012", "0.48614204", "0.4860555", "0.48522177", "0.48481682", "0.48434708", "0.48414242", "0.48407754", "0.48375905", "0.4835591", "0.48286846", "0.48282313", "0.4827512", "0.48251343", "0.48234135", "0.48200953", "0.48075622", "0.4804834", "0.48012936", "0.4800034", "0.47994906", "0.47977984", "0.47932592", "0.47917885", "0.47906697", "0.47825423", "0.4778236", "0.47751474", "0.4768358", "0.47655788", "0.47636983", "0.47626367", "0.47620487", "0.47609553", "0.47598332" ]
0.6365664
0
triplesSameSubject > TriplesSameSubject() nodeOptional > ( "." ( InsertTriples() )? )?
@Override public R visit(InsertTriples n, A argu) { R _ret = null; n.triplesSameSubject.accept(this, argu); n.nodeOptional.accept(this, argu); return _ret; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "final public void TriplesSameSubject(Exp stack) throws ParseException {\n Expression expression1;\n if (jj_2_12(2)) {\n expression1 = VarOrTerm(stack);\n stack = PropertyListNotEmpty(expression1, stack);\n } else {\n switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n case ATLIST:\n case ATPATH:\n case LPAREN:\n case LBRACKET:\n case AT:\n expression1 = TriplesNode(stack);\n stack = PropertyList(expression1, stack);\n break;\n case TUPLE:\n stack = tuple(stack);\n break;\n default:\n jj_la1[187] = jj_gen;\n jj_consume_token(-1);\n throw new ParseException();\n }\n }\n }", "@Override\r\n public void insertTripleDistributedBySubject(Triple triple) {\n\r\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 }", "@Override\n public R visit(TriplesSameSubject n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "public void insertTripleDistributedByObject(Triple triple) {\n\r\n }", "@Override\n public R visit(TriplesBlock n, A argu) {\n R _ret = null;\n n.triplesSameSubject.accept(this, argu);\n n.nodeOptional.accept(this, argu);\n return _ret;\n }", "private void generateRDFTriplesFromRow(SesameDataSet sesameDataSet,\n \t\t\tTriplesMap triplesMap, SubjectMap sm, Set<URI> classes,\n \t\t\tSet<GraphMap> sgm) throws SQLException, R2RMLDataError,\n \t\t\tUnsupportedEncodingException {\n \t\tMap<ColumnIdentifier, byte[]> smFromRow = applyValueToRow(sm);\n \t\tResource subject = (Resource) extractValueFromTermMap(sm, smFromRow,\n \t\t\t\ttriplesMap);\n \t\tif (subject == null) {\n \t\t\tlog.debug(\"[R2RMLEngine:genereateRDFTriplesFromRow] NULL found, this subject will be ignored.\");\n \t\t\treturn;\n \t\t} else\n \t\t\tlog.debug(\"[R2RMLEngine:genereateRDFTriplesFromRow] Generate subject : \"\n \t\t\t\t\t+ subject.stringValue());\n \n \t\t// 2. Let subject_graphs be the set of the generated RDF terms\n \t\t// that result from applying each term map in sgm to row\n \t\tSet<URI> subject_graphs = new HashSet<URI>();\n \t\tfor (GraphMap graphMap : sgm) {\n \t\t\tMap<ColumnIdentifier, byte[]> sgmFromRow = applyValueToRow(graphMap);\n \t\t\tURI subject_graph = (URI) extractValueFromTermMap(graphMap,\n \t\t\t\t\tsgmFromRow, triplesMap);\n \t\t\tlog.debug(\"[R2RMLEngine:genereateRDFTriplesFromRow] Generate subject graph : \"\n \t\t\t\t\t+ subject_graph);\n \t\t\tsubject_graphs.add(subject_graph);\n \t\t}\n \t\t// 3. For each classIRI in classes, add triples to the output dataset\n \t\tfor (URI classIRI : sm.getClassIRIs()) {\n \t\t\tURI predicate = vf.createURI(R2RMLVocabulary.RDF_NAMESPACE\n \t\t\t\t\t+ R2RMLTerm.TYPE);\n \t\t\taddTriplesToTheOutputDataset(sesameDataSet, subject, predicate,\n \t\t\t\t\tclassIRI, subject_graphs);\n \t\t}\n \t\t// 4. For each predicate-object map of the triples map, apply the\n \t\t// following method\n \t\tfor (PredicateObjectMap predicateObjectMap : triplesMap\n \t\t\t\t.getPredicateObjectMaps())\n \t\t\tgenerateRDFTriplesFromPredicateObjectMap(sesameDataSet, triplesMap,\n \t\t\t\t\tsubject, subject_graphs, predicateObjectMap);\n \n \t}", "private void generateRDFTriplesFromPredicateObjectMap(\n \t\t\tSesameDataSet sesameDataSet, TriplesMap triplesMap,\n \t\t\tResource subject, Set<URI> subjectGraphs,\n \t\t\tPredicateObjectMap predicateObjectMap) throws SQLException,\n \t\t\tR2RMLDataError, UnsupportedEncodingException {\n \t\tSet<URI> predicates = new HashSet<URI>();\n \t\tfor (PredicateMap pm : predicateObjectMap.getPredicateMaps()) {\n \t\t\tMap<ColumnIdentifier, byte[]> pmFromRow = applyValueToRow(pm);\n \t\t\tboolean nullFound = false;\n \t\t\tfor (ColumnIdentifier value : pmFromRow.keySet())\n \t\t\t\tif (pmFromRow.get(value) == null) {\n \t\t\t\t\tlog.debug(\"[R2RMLEngine:genereateRDFTriplesFromRow] NULL found, this object will be ignored.\");\n \t\t\t\t\tnullFound = true;\n \t\t\t\t\tbreak;\n \t\t\t\t}\n \t\t\tif (nullFound)\n \t\t\t\tcontinue;\n \t\t\tURI predicate = (URI) extractValueFromTermMap(pm, pmFromRow,\n \t\t\t\t\ttriplesMap);\n \t\t\tlog.debug(\"[R2RMLEngine:genereateRDFTriplesFromRow] Generate predicate : \"\n \t\t\t\t\t+ predicate);\n \t\t\tpredicates.add(predicate);\n \t\t}\n \t\t// 2. Let objects be the set of generated RDF terms that result from\n \t\t// applying each of\n \t\t// the predicate-object map's object maps (but not referencing object\n \t\t// maps) to row\n \t\tSet<Value> objects = new HashSet<Value>();\n \t\tfor (ObjectMap om : predicateObjectMap.getObjectMaps()) {\n \t\t\tMap<ColumnIdentifier, byte[]> omFromRow = applyValueToRow(om);\n \t\t\tboolean nullFound = false;\n \t\t\tfor (ColumnIdentifier value : omFromRow.keySet())\n \t\t\t\tif (omFromRow.get(value) == null) {\n \t\t\t\t\tlog.debug(\"[R2RMLEngine:genereateRDFTriplesFromRow] NULL found, this object will be ignored.\");\n \t\t\t\t\tnullFound = true;\n \t\t\t\t\tbreak;\n \t\t\t\t}\n \t\t\tif (nullFound)\n \t\t\t\tcontinue;\n \t\t\tValue object = extractValueFromTermMap(om, omFromRow, triplesMap);\n \t\t\tlog.debug(\"[R2RMLEngine:genereateRDFTriplesFromRow] Generate object : \"\n \t\t\t\t\t+ object);\n \t\t\tobjects.add(object);\n \t\t}\n \t\t// 3. Let pogm be the set of graph maps of the predicate-object map\n \t\tSet<GraphMap> pogm = predicateObjectMap.getGraphMaps();\n \t\t// 4. Let predicate-object_graphs be the set of generated RDF\n \t\t// terms that result from applying each graph map in pogm to row\n \t\tSet<URI> predicate_object_graphs = new HashSet<URI>();\n \t\t// 4+. Add graph of subject graphs set\n \t\tif (subjectGraphs != null)\n \t\t\tpredicate_object_graphs.addAll(subjectGraphs);\n \t\tfor (GraphMap graphMap : pogm) {\n \t\t\tMap<ColumnIdentifier, byte[]> pogmFromRow = applyValueToRow(graphMap);\n \t\t\tURI predicate_object_graph = (URI) extractValueFromTermMap(\n \t\t\t\t\tgraphMap, pogmFromRow, triplesMap);\n \t\t\tlog.debug(\"[R2RMLEngine:genereateRDFTriplesFromRow] Generate predicate object graph : \"\n \t\t\t\t\t+ predicate_object_graph);\n \t\t\tpredicate_object_graphs.add(predicate_object_graph);\n \t\t}\n \t\t// 5. For each possible combination <predicate, object> where predicate\n \t\t// is a member\n \t\t// of predicates and object is a member of objects,\n \t\t// add triples to the output dataset\n \t\tfor (URI predicate : predicates) {\n \t\t\tfor (Value object : objects) {\n \t\t\t\taddTriplesToTheOutputDataset(sesameDataSet, subject, predicate,\n \t\t\t\t\t\tobject, predicate_object_graphs);\n \t\t\t}\n \t\t}\n \t}", "@Test\r\n void test_insert_same_vertex_twice() {\r\n graph.addVertex(\"1\");\r\n graph.addVertex(\"1\"); \r\n graph.addVertex(\"1\"); \r\n vertices = graph.getAllVertices();\r\n if(vertices.size() != 1 ||graph.order() != 1) {\r\n fail();\r\n }\r\n }", "public ArrayList<Triple> createTenCommonAnnotationTriples(Node subject ,TenLearningObjectAnnotationsBean tenLearningObjectAnnotationsBean){\r\n\t\t\r\n\t\tString LOG_METHOD_NAME = \"ArrayList createTenCommonAnnotationTriples(Node, TenLearningObjectAnnotationsBean)\";\r\n\t\tlog.debug(this.getClass() + TripleStoreConstants.LOG_BEGIN + LOG_METHOD_NAME);\r\n\t\t\r\n\t\tArrayList<Triple> tripleList = new ArrayList<>();\r\n\t\tNode predicate = null, predicate_value=null;\r\n\t\t\r\n\t\ttry{\r\n\t\t\t//modified\r\n\t\t\tif(!Utils.isEmptyOrNull(tenLearningObjectAnnotationsBean.getModified())){\r\n\t\t\t\tpredicate = Node.createURI(TripleStoreConstants.URI_PREDICATE_TEN_COMMON_MODIFIED);\r\n\t\t\t\tpredicate_value = Node.createLiteral(tenLearningObjectAnnotationsBean.getModified());\r\n\t\t\t\ttripleList.add(new Triple(subject, predicate, predicate_value));\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//rightsHolder\t\r\n\t\t\tif(!Utils.isEmptyOrNull(tenLearningObjectAnnotationsBean.getRightsHolder())){\r\n\t\t\t\tpredicate = Node.createURI(TripleStoreConstants.URI_PREDICATE_TEN_COMMON_RIGHTS_HOLDER);\r\n\t\t\t\tpredicate_value = Node.createLiteral(tenLearningObjectAnnotationsBean.getRightsHolder());\r\n\t\t\t\ttripleList.add(new Triple(subject, predicate, predicate_value));\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//isPartOf\t\r\n\t\t\tif(!Utils.isEmptyOrNull(tenLearningObjectAnnotationsBean.getIsPartOf())){\r\n\t\t\t\tpredicate = Node.createURI(TripleStoreConstants.URI_PREDICATE_TEN_COMMON_ISPARTOF);\r\n\t\t\t\tpredicate_value = Node.createURI(tenLearningObjectAnnotationsBean.getIsPartOf());\r\n\t\t\t\ttripleList.add(new Triple(subject, predicate, predicate_value));\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//hasPart\t\r\n\t\t\tif(!Utils.isEmptyOrNull(tenLearningObjectAnnotationsBean.getHasPart())){\r\n\t\t\t\tpredicate = Node.createURI(TripleStoreConstants.URI_PREDICATE_TEN_COMMON_HASPART);\r\n\t\t\t\tpredicate_value = Node.createURI(tenLearningObjectAnnotationsBean.getHasPart());\r\n\t\t\t\ttripleList.add(new Triple(subject, predicate, predicate_value));\r\n\t\t\t}\t\t\t\r\n\t\t}catch(Exception ex)\r\n\t\t{\r\n\t\t\tlog.error(ex);\r\n\t\t\tthrow ex;\r\n\t\t}finally{\r\n\t\t\tlog.debug(this.getClass() + TripleStoreConstants.LOG_END + LOG_METHOD_NAME);\r\n\t\t}\r\n\t\t\r\n\t\treturn tripleList;\r\n\t}", "public ArrayList<Triple> createCourseAnnotationTriples(Node subject ,CourseAnnotationsBean courseAnnotationBean){\r\n\t\t\r\n\t\tString LOG_METHOD_NAME = \"ArrayList<Triple> createCourseAnnotationTriples(Node subject ,CourseAnnotationsBean courseAnnotationBean)\";\r\n\t\tlog.debug(this.getClass() + TripleStoreConstants.LOG_BEGIN + LOG_METHOD_NAME);\r\n\t\t\r\n\t\tArrayList<Triple> tripleList = new ArrayList<>();\r\n\t\tNode predicate = null, predicate_value=null;\r\n\t\t\r\n\t\ttry{\r\n\t\t\t\r\n\t\t\t//modified\r\n\t\t\tif(!Utils.isEmptyOrNull(courseAnnotationBean.getModified())){\r\n\t\t\t\tpredicate = Node.createURI(TripleStoreConstants.URI_PREDICATE_TEN_COMMON_MODIFIED);\r\n\t\t\t\tpredicate_value = Node.createLiteral(courseAnnotationBean.getModified());\r\n\t\t\t\ttripleList.add(new Triple(subject, predicate, predicate_value));\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//rightsHolder\t\r\n\t\t\tif(!Utils.isEmptyOrNull(courseAnnotationBean.getRightsHolder())){\r\n\t\t\t\tpredicate = Node.createURI(TripleStoreConstants.URI_PREDICATE_TEN_COMMON_RIGHTS_HOLDER);\r\n\t\t\t\tpredicate_value = Node.createLiteral(courseAnnotationBean.getRightsHolder());\r\n\t\t\t\ttripleList.add(new Triple(subject, predicate, predicate_value));\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//hasPart\t\r\n\t\t\tif(!Utils.isEmptyOrNull(courseAnnotationBean.getHasPart())){\r\n\t\t\t\tpredicate = Node.createURI(TripleStoreConstants.URI_PREDICATE_TEN_COMMON_HASPART);\r\n\t\t\t\tpredicate_value = Node.createLiteral(courseAnnotationBean.getHasPart());\r\n\t\t\t\ttripleList.add(new Triple(subject, predicate, predicate_value));\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\t//creator\r\n\t\t\tif(!Utils.isEmptyOrNull(courseAnnotationBean.getCreator())){\r\n\t\t\t\tpredicate = Node.createURI(TripleStoreConstants.URI_PREDICATE_DC_CREATOR);\r\n\t\t\t\tpredicate_value = Node.createLiteral(courseAnnotationBean.getCreator());\r\n\t\t\t\ttripleList.add(new Triple(subject, predicate, predicate_value));\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//description \r\n\t\t\tif(!Utils.isEmptyOrNull(courseAnnotationBean.getDescription())){\r\n\t\t\t\tpredicate = Node.createURI(TripleStoreConstants.URI_PREDICATE_DC_DESCRIPTION);\r\n\t\t\t\tpredicate_value = Node.createLiteral(courseAnnotationBean.getDescription());\r\n\t\t\t\ttripleList.add(new Triple(subject, predicate, predicate_value));\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//keywords\r\n\t\t\tif(!Utils.isEmptyOrNull(courseAnnotationBean.getKeywords())){\r\n\t\t\t\tpredicate = Node.createURI(TripleStoreConstants.URI_PREDICATE_TEN_KEYWORDS);\r\n\t\t\t\tpredicate_value = Node.createLiteral(courseAnnotationBean.getKeywords());\r\n\t\t\t\ttripleList.add(new Triple(subject, predicate, predicate_value));\r\n\t\t\t}\r\n\t\t}catch(Exception ex)\r\n\t\t{\r\n\t\t\tlog.error(ex);\r\n\t\t\tthrow ex;\r\n\t\t}finally{\r\n\t\t\tlog.debug(this.getClass() + TripleStoreConstants.LOG_END + LOG_METHOD_NAME);\r\n\t\t}\r\n\t\t\r\n\t\treturn tripleList;\r\n\t}", "@Test\n public void shouldNotAddDuplicateDependents() {\n String currentPipeline = \"p5\";\n ValueStreamMap graph = new ValueStreamMap(currentPipeline, null);\n Node p4 = graph.addUpstreamNode(new PipelineDependencyNode(\"p4\", \"p4\"), null, currentPipeline);\n graph.addUpstreamNode(new PipelineDependencyNode(\"p4\", \"p4\"), null, currentPipeline);\n\n assertThat(p4.getChildren().size(), is(1));\n VSMTestHelper.assertThatNodeHasChildren(graph, \"p4\", 0, \"p5\");\n }", "public ArrayList<Triple> addPublisherAnnotationTriples(Node subject ,DigitalRightsManagementBean digitalRightsManagementBean){\r\n\t\t\r\n\t\tString LOG_METHOD_NAME = \" ArrayList<Triple> addPublisherAnnotationTriples(Node, DigitalRightsManagementBean)\";\r\n\t\tlog.debug(this.getClass() + TripleStoreConstants.LOG_BEGIN + LOG_METHOD_NAME);\r\n\t\t\r\n\t\tArrayList<Triple> tripleList = new ArrayList<>();\r\n\t\tNode predicate = null, predicate_value=null;\r\n\t\ttry{\t\t\t\t\t\t\r\n\t\t\t//PUBLISHER information\r\n\t\t\tpredicate = Node.createURI(TripleStoreConstants.URI_PREDICATE_TEN_PUBLISHER);\r\n\t\t\tStringBuffer publisherAttributes = new StringBuffer();\r\n\t\t\t\r\n\t\t\t//id\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getPublisher())){\r\n\t\t\t\tpublisherAttributes.append(TripleStoreConstants.ATTRIBUTE_ID);\r\n\t\t\t\tpublisherAttributes.append(\"=\");\r\n\t\t\t\tpublisherAttributes.append(digitalRightsManagementBean.getPublisher());\r\n\t\t\t\tpublisherAttributes.append(\";\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//email\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getPublisherEmail())){\r\n\t\t\t\tpublisherAttributes.append(TripleStoreConstants.ATTRIBUTE_EMAIL);\r\n\t\t\t\tpublisherAttributes.append(\"=\");\r\n\t\t\t\tpublisherAttributes.append(digitalRightsManagementBean.getPublisherEmail());\r\n\t\t\t\tpublisherAttributes.append(\";\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//approved\r\n\t\t\tboolean approved = (!Utils.isEmptyOrNull(digitalRightsManagementBean.getPublisherApproved()) \r\n\t\t\t\t\t&& \"true\".equals(digitalRightsManagementBean.getPublisherApproved()))?true:false;\r\n\t\t\tpublisherAttributes.append(TripleStoreConstants.ATTRIBUTE_APPROVED);\r\n\t\t\tpublisherAttributes.append(\"=\");\r\n\t\t\tpublisherAttributes.append(approved);\r\n\t\t\tpublisherAttributes.append(\";\");\r\n\t\t\t\t\t\t\r\n\t\t\t//cell phone\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getPublisherCellPhone())){\r\n\t\t\t\tpublisherAttributes.append(TripleStoreConstants.ATTRIBUTE_CELL_PHONE);\r\n\t\t\t\tpublisherAttributes.append(\"=\");\r\n\t\t\t\tpublisherAttributes.append(digitalRightsManagementBean.getPublisherCellPhone());\r\n\t\t\t\tpublisherAttributes.append(\";\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//office phone\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getPublisherOfficePhone())){\r\n\t\t\t\tpublisherAttributes.append(TripleStoreConstants.ATTRIBUTE_OFFICE_PHONE);\r\n\t\t\t\tpublisherAttributes.append(\"=\");\r\n\t\t\t\tpublisherAttributes.append(digitalRightsManagementBean.getPublisherOfficePhone());\r\n\t\t\t\tpublisherAttributes.append(\";\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//FAX\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getPublisherFax())){\r\n\t\t\t\tpublisherAttributes.append(TripleStoreConstants.ATTRIBUTE_FAX);\r\n\t\t\t\tpublisherAttributes.append(\"=\");\r\n\t\t\t\tpublisherAttributes.append(digitalRightsManagementBean.getPublisherFax());\r\n\t\t\t\tpublisherAttributes.append(\";\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//street address\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getPublisherStreetAddress())){\r\n\t\t\t\tpublisherAttributes.append(TripleStoreConstants.ATTRIBUTE_STREET_ADDRESS);\r\n\t\t\t\tpublisherAttributes.append(\"=\");\r\n\t\t\t\tpublisherAttributes.append(digitalRightsManagementBean.getPublisherStreetAddress());\r\n\t\t\t\tpublisherAttributes.append(\";\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//other address\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getPublisherOtherAddress())){\r\n\t\t\t\tpublisherAttributes.append(TripleStoreConstants.ATTRIBUTE_OTHER_ADDRESS);\r\n\t\t\t\tpublisherAttributes.append(\"=\");\r\n\t\t\t\tpublisherAttributes.append(digitalRightsManagementBean.getPublisherOtherAddress());\r\n\t\t\t\tpublisherAttributes.append(\";\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//city\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getPublisherCity())){\r\n\t\t\t\tpublisherAttributes.append(TripleStoreConstants.ATTRIBUTE_CITY);\r\n\t\t\t\tpublisherAttributes.append(\"=\");\r\n\t\t\t\tpublisherAttributes.append(digitalRightsManagementBean.getPublisherCity());\r\n\t\t\t\tpublisherAttributes.append(\";\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//state\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getPublisherState())){\r\n\t\t\t\tpublisherAttributes.append(TripleStoreConstants.ATTRIBUTE_STATE);\r\n\t\t\t\tpublisherAttributes.append(\"=\");\r\n\t\t\t\tpublisherAttributes.append(digitalRightsManagementBean.getPublisherState());\r\n\t\t\t\tpublisherAttributes.append(\";\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//state\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getPublisherZipCode())){\r\n\t\t\t\tpublisherAttributes.append(TripleStoreConstants.ATTRIBUTE_ZIP_CODE);\r\n\t\t\t\tpublisherAttributes.append(\"=\");\r\n\t\t\t\tpublisherAttributes.append(digitalRightsManagementBean.getPublisherZipCode());\r\n\t\t\t\tpublisherAttributes.append(\";\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tpredicate_value = Node.createLiteral(publisherAttributes.toString());\r\n\t\t\ttripleList.add(new Triple(subject, predicate, predicate_value));\r\n\t\t}catch(Exception ex)\r\n\t\t{\r\n\t\t\tlog.error(ex);\r\n\t\t\tthrow ex;\r\n\t\t}finally{\r\n\t\t\tlog.debug(this.getClass() + TripleStoreConstants.LOG_END + LOG_METHOD_NAME);\r\n\t\t}\r\n\t\t\r\n\t\treturn tripleList;\r\n\t}", "@Test\n\tpublic void testMultipleAddConsistency() {\n\n\t\tcontroller.addNewNodes(2);\n\t\tSignalNode first = controller.getNodesToTest().getFirst();\n\t\tSignalNode last = controller.getNodesToTest().getLast();\n\n\t\tcontroller.addSignalsToNode(first, 10000);\n\n\t\ttry {\n\t\t\tSignal sig = src.next();\n\t\t\tResult r1 = first.findSimilarTo(sig);\n\t\t\tResult r2 = last.findSimilarTo(sig);\n\t\t\tAssert.assertEquals(r1, r2);\n\t\t} catch (RemoteException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}", "private void generateRDFTriplesFromReferencingRow(\n \t\t\tSesameDataSet sesameDataSet, TriplesMap triplesMap, SubjectMap sm,\n \t\t\tSubjectMap psm, Set<GraphMap> pogm, Set<GraphMap> sgm,\n \t\t\tPredicateObjectMap predicateObjectMap, int n) throws SQLException,\n \t\t\tR2RMLDataError, UnsupportedEncodingException {\n \t\tMap<ColumnIdentifier, byte[]> smFromRow = applyValueToChildRow(sm, n);\n \t\tboolean nullFound = false;\n \t\tfor (ColumnIdentifier value : smFromRow.keySet())\n \t\t\tif (smFromRow.get(value) == null) {\n \t\t\t\tlog.debug(\"[R2RMLEngine:genereateRDFTriplesFromRow] NULL found, this object will be ignored.\");\n \t\t\t\tnullFound = true;\n \t\t\t\tbreak;\n \t\t\t}\n \t\tif (nullFound)\n \t\t\treturn;\n \t\tResource subject = (Resource) extractValueFromTermMap(sm, smFromRow,\n \t\t\t\ttriplesMap);\n \t\tlog.debug(\"[R2RMLEngine:generateRDFTriplesFromReferencingRow] Generate subject : \"\n \t\t\t\t+ subject.stringValue());\n \t\t// 4. Let predicates be the set of generated RDF terms that result from\n \t\t// applying each of the predicate-object map's predicate maps to\n \t\t// child_row\n \t\tSet<URI> predicates = new HashSet<URI>();\n \t\tfor (PredicateMap pm : predicateObjectMap.getPredicateMaps()) {\n \t\t\tMap<ColumnIdentifier, byte[]> pmFromRow = applyValueToChildRow(pm, n);\n \t\t\tURI predicate = (URI) extractValueFromTermMap(pm, pmFromRow,\n \t\t\t\t\ttriplesMap);\n \t\t\tlog.debug(\"[R2RMLEngine:generateRDFTriplesFromReferencingRow] Generate predicate : \"\n \t\t\t\t\t+ predicate);\n \t\t\tpredicates.add(predicate);\n \t\t}\n \t\t// 5. Let object be the generated RDF term that results from applying\n \t\t// psm to parent_row\n \t\tMap<ColumnIdentifier, byte[]> omFromRow = applyValueToParentRow(psm, n);\n \t\tResource object = (Resource) extractValueFromTermMap(psm, omFromRow,\n \t\t\t\tpsm.getOwnTriplesMap());\n \t\tlog.debug(\"[R2RMLEngine:generateRDFTriplesFromReferencingRow] Generate object : \"\n \t\t\t\t+ object);\n \t\t// 6. Let subject_graphs be the set of generated RDF terms that result\n \t\t// from applying each graph map of sgm to child_row\n \t\tSet<URI> subject_graphs = new HashSet<URI>();\n \t\tfor (GraphMap graphMap : sgm) {\n \t\t\tMap<ColumnIdentifier, byte[]> sgmFromRow = applyValueToChildRow(graphMap, n);\n \t\t\tURI subject_graph = (URI) extractValueFromTermMap(graphMap,\n \t\t\t\t\tsgmFromRow, triplesMap);\n \t\t\tlog.debug(\"[R2RMLEngine:generateRDFTriplesFromReferencingRow] Generate subject graph : \"\n \t\t\t\t\t+ subject_graph);\n \t\t\tsubject_graphs.add(subject_graph);\n \t\t}\n \t\t// 7. Let predicate-object_graphs be the set of generated RDF terms\n \t\t// that result from applying each graph map in pogm to child_row\n \t\tSet<URI> predicate_object_graphs = new HashSet<URI>();\n \t\tfor (GraphMap graphMap : pogm) {\n \t\t\tMap<ColumnIdentifier, byte[]> pogmFromRow = applyValueToChildRow(graphMap, n);\n \t\t\tURI predicate_object_graph = (URI) extractValueFromTermMap(\n \t\t\t\t\tgraphMap, pogmFromRow, triplesMap);\n \t\t\tlog.debug(\"[R2RMLEngine:generateRDFTriplesFromReferencingRow] Generate predicate object graph : \"\n \t\t\t\t\t+ predicate_object_graph);\n \t\t\tpredicate_object_graphs.add(predicate_object_graph);\n \t\t}\n \t\t// 8. For each predicate in predicates, add triples to the output\n \t\t// dataset\n \t\tfor (URI predicate : predicates) {\n \t\t\t// If neither sgm nor pogm has any graph maps: rr:defaultGraph;\n \t\t\t// otherwise: union of subject_graphs and predicate-object_graphs\n \t\t\tSet<URI> targetGraphs = new HashSet<URI>();\n \t\t\ttargetGraphs.addAll(subject_graphs);\n \t\t\ttargetGraphs.addAll(predicate_object_graphs);\n \t\t\taddTriplesToTheOutputDataset(sesameDataSet, subject, predicate,\n \t\t\t\t\tobject, targetGraphs);\n \t\t}\n \t}", "@Test\n public void performKTails1Test() throws InternalSynopticException,\n ParseException {\n PartitionGraph pGraph = KTails.performKTails(makeSimpleGraph(), 2);\n // Only the two b nodes should be merged.\n assertTrue(pGraph.getNodes().size() == 6);\n }", "@Test\r\n void test_insert_same_edge_twice() {\r\n // Add two vertices with one edge\r\n graph.addEdge(\"A\", \"B\");\r\n graph.addEdge(\"A\", \"B\");\r\n if (graph.size() != 1) {\r\n fail();\r\n }\r\n if (!graph.getAdjacentVerticesOf(\"A\").contains(\"B\")) {\r\n fail();\r\n }\r\n\r\n }", "@Override\n public R visit(DeleteTriples n, A argu) {\n R _ret = null;\n n.triplesSameSubject.accept(this, argu);\n n.nodeOptional.accept(this, argu);\n return _ret;\n }", "public Triplet add(Triplet t) throws DAOException;", "public void testConvertTopo (Topology tp)\n {\n Node root = tp.getNodes().get(0);\n //root.setColor(Color.green);\n parcours(root, visitedlist, compo1);\n set.addAll(composante);\n ArrayList distinctList = new ArrayList(set);\n System.out.println(distinctList.size());\n for ( int i = 0; i < distinctList.size(); i++ )\n System.out.println(distinctList.get(i));\n ArrayList<Link> liste = connectedL(tp);\n /*for (int i = 0; i < liste.size(); i++)\n System.out.println(liste.get(i));*/\n Convert(liste);\n /*for ( int i = 0; i < listConvert.size(); i++ )\n System.out.println(listConvert.get(i));*/\n ConvertMinimiz(listConvert);\n minimisationConvCompo(distinctList);\n minimisationAllNeighbor(listConvert,tp);\n //minimisation4(listConvert,tp);\n }", "private void phaseTwo(){\r\n\r\n\t\tCollections.shuffle(allNodes, random);\r\n\t\tList<Pair<Node, Node>> pairs = new ArrayList<Pair<Node, Node>>();\r\n\t\t\r\n\t\t//For each node in allNode, get all relationshpis and iterate through each relationship.\r\n\t\tfor (Node n1 : allNodes){\r\n\r\n\t\t\ttry (Transaction tx = graphDb.beginTx()){\r\n\t\t\t\t//If a node n1 is related to any other node in allNodes, add those relationships to rels.\r\n\t\t\t\t//Avoid duplication, and self loops.\r\n\t\t\t\tIterable<Relationship> ite = n1.getRelationships(Direction.BOTH);\t\t\t\t\r\n\r\n\t\t\t\tfor (Relationship rel : ite){\r\n\t\t\t\t\tNode n2 = rel.getOtherNode(n1);\t//Get the other node\r\n\t\t\t\t\tif (allNodes.contains(n2) && !n1.equals(n2)){\t\t\t\t\t//If n2 is part of allNodes and n1 != n2\r\n\t\t\t\t\t\tif (!rels.contains(rel)){\t\t\t\t\t\t\t\t\t//If the relationship is not already part of rels\r\n\t\t\t\t\t\t\tPair<Node, Node> pA = new Pair<Node, Node>(n1, n2);\r\n\t\t\t\t\t\t\tPair<Node, Node> pB = new Pair<Node, Node>(n2, n1);\r\n\r\n\t\t\t\t\t\t\tif (!pairs.contains(pA)){\r\n\t\t\t\t\t\t\t\trels.add(rel);\t\t\t\t\t\t\t\t\t\t\t//Add the relationship to the lists.\r\n\t\t\t\t\t\t\t\tpairs.add(pA);\r\n\t\t\t\t\t\t\t\tpairs.add(pB);\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\t\t\ttx.success();\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn;\r\n\t}", "TripleGraph createTripleGraph();", "public ArrayList<Triple> addCopyRightHolderAnnotationTriples(Node subject ,DigitalRightsManagementBean digitalRightsManagementBean){\r\n\t\t\r\n\t\tString LOG_METHOD_NAME = \" ArrayList<Triple> addCopyRightHolderTriples(Node, DigitalRightsManagementBean)\";\r\n\t\tlog.debug(this.getClass() + TripleStoreConstants.LOG_BEGIN + LOG_METHOD_NAME);\r\n\t\t\r\n\t\tArrayList<Triple> tripleList = new ArrayList<>();\r\n\t\tNode predicate = null, predicate_value=null;\r\n\t\ttry{\t\t\t\t\t\t\r\n\t\t\t//copy right holder\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getCopyRightHolderNotAvailable()) && (\"true\".equals(digitalRightsManagementBean.getCopyRightHolderNotAvailable()))){\r\n\t\t\t\t//copy right holder not available\r\n\t\t\t\tpredicate = Node.createURI(TripleStoreConstants.URI_PREDICATE_TEN_COPY_RIGHT_HOLDER_NOT_AVAILABLE);\r\n\t\t\t\tpredicate_value = Node.createLiteral(digitalRightsManagementBean.getCopyRightHolderNotAvailable());\r\n\t\t\t\ttripleList.add(new Triple(subject, predicate, predicate_value));\r\n\t\t\t\t\r\n\t\t\t\t//copy right holder finder info\r\n\t\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getCopyRightHolderFinderInfo())){\r\n\t\t\t\t\tpredicate = Node.createURI(TripleStoreConstants.URI_PREDICATE_TEN_COPY_RIGHT_HOLDER_FINDER_INFO);\r\n\t\t\t\t\tpredicate_value = Node.createLiteral(digitalRightsManagementBean.getCopyRightHolderFinderInfo());\r\n\t\t\t\t\ttripleList.add(new Triple(subject, predicate, predicate_value));\r\n\t\t\t\t}\r\n\t\t\t}else{\r\n\t\t\t\t//copy right holder not available\r\n\t\t\t\tpredicate = Node.createURI(TripleStoreConstants.URI_PREDICATE_TEN_COPY_RIGHT_HOLDER_NOT_AVAILABLE);\r\n\t\t\t\tpredicate_value = Node.createLiteral(\"false\");\r\n\t\t\t\ttripleList.add(new Triple(subject, predicate, predicate_value));\r\n\t\t\t\t\r\n\t\t\t\t//copy right holder information\r\n\t\t\t\tpredicate = Node.createURI(TripleStoreConstants.URI_PREDICATE_TEN_COPY_RIGHT_HOLDER);\r\n\t\t\t\tStringBuffer copyRightHolderAttributes = new StringBuffer();\r\n\t\t\t\t\r\n\t\t\t\t//id\r\n\t\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getCopyRightHolderId())){\r\n\t\t\t\t\tcopyRightHolderAttributes.append(TripleStoreConstants.ATTRIBUTE_ID);\r\n\t\t\t\t\tcopyRightHolderAttributes.append(\"=\");\r\n\t\t\t\t\tcopyRightHolderAttributes.append(digitalRightsManagementBean.getCopyRightHolderId());\r\n\t\t\t\t\tcopyRightHolderAttributes.append(\";\");\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t//email\r\n\t\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getCopyRightHolderEmail())){\r\n\t\t\t\t\tcopyRightHolderAttributes.append(TripleStoreConstants.ATTRIBUTE_EMAIL);\r\n\t\t\t\t\tcopyRightHolderAttributes.append(\"=\");\r\n\t\t\t\t\tcopyRightHolderAttributes.append(digitalRightsManagementBean.getCopyRightHolderEmail());\r\n\t\t\t\t\tcopyRightHolderAttributes.append(\";\");\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t//copy right holder approved\r\n\t\t\t\tboolean approved = (!Utils.isEmptyOrNull(digitalRightsManagementBean.getCopyRightHolderApproved()) \r\n\t\t\t\t\t\t\t\t\t&& \"true\".equals(digitalRightsManagementBean.getCopyRightHolderApproved()))?true:false;\r\n\t\t\t\tcopyRightHolderAttributes.append(TripleStoreConstants.ATTRIBUTE_APPROVED);\r\n\t\t\t\tcopyRightHolderAttributes.append(\"=\");\r\n\t\t\t\tcopyRightHolderAttributes.append(approved);\r\n\t\t\t\tcopyRightHolderAttributes.append(\";\");\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t//cell phone\r\n\t\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getCopyRightHolderCellPhone())){\r\n\t\t\t\t\tcopyRightHolderAttributes.append(TripleStoreConstants.ATTRIBUTE_CELL_PHONE);\r\n\t\t\t\t\tcopyRightHolderAttributes.append(\"=\");\r\n\t\t\t\t\tcopyRightHolderAttributes.append(digitalRightsManagementBean.getCopyRightHolderCellPhone());\r\n\t\t\t\t\tcopyRightHolderAttributes.append(\";\");\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t//office phone\r\n\t\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getCopyRightHolderOfficePhone())){\r\n\t\t\t\t\tcopyRightHolderAttributes.append(TripleStoreConstants.ATTRIBUTE_OFFICE_PHONE);\r\n\t\t\t\t\tcopyRightHolderAttributes.append(\"=\");\r\n\t\t\t\t\tcopyRightHolderAttributes.append(digitalRightsManagementBean.getCopyRightHolderOfficePhone());\r\n\t\t\t\t\tcopyRightHolderAttributes.append(\";\");\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t//FAX\r\n\t\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getCopyRightHolderFax())){\r\n\t\t\t\t\tcopyRightHolderAttributes.append(TripleStoreConstants.ATTRIBUTE_FAX);\r\n\t\t\t\t\tcopyRightHolderAttributes.append(\"=\");\r\n\t\t\t\t\tcopyRightHolderAttributes.append(digitalRightsManagementBean.getCopyRightHolderFax());\r\n\t\t\t\t\tcopyRightHolderAttributes.append(\";\");\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t//street address\r\n\t\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getCopyRightHolderStreetAddress())){\r\n\t\t\t\t\tcopyRightHolderAttributes.append(TripleStoreConstants.ATTRIBUTE_STREET_ADDRESS);\r\n\t\t\t\t\tcopyRightHolderAttributes.append(\"=\");\r\n\t\t\t\t\tcopyRightHolderAttributes.append(digitalRightsManagementBean.getCopyRightHolderStreetAddress());\r\n\t\t\t\t\tcopyRightHolderAttributes.append(\";\");\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t//other address\r\n\t\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getCopyRightHolderOtherAddress())){\r\n\t\t\t\t\tcopyRightHolderAttributes.append(TripleStoreConstants.ATTRIBUTE_OTHER_ADDRESS);\r\n\t\t\t\t\tcopyRightHolderAttributes.append(\"=\");\r\n\t\t\t\t\tcopyRightHolderAttributes.append(digitalRightsManagementBean.getCopyRightHolderOtherAddress());\r\n\t\t\t\t\tcopyRightHolderAttributes.append(\";\");\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t//city\r\n\t\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getCopyRightHolderCity())){\r\n\t\t\t\t\tcopyRightHolderAttributes.append(TripleStoreConstants.ATTRIBUTE_CITY);\r\n\t\t\t\t\tcopyRightHolderAttributes.append(\"=\");\r\n\t\t\t\t\tcopyRightHolderAttributes.append(digitalRightsManagementBean.getCopyRightHolderCity());\r\n\t\t\t\t\tcopyRightHolderAttributes.append(\";\");\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t//state\r\n\t\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getCopyRightHolderState())){\r\n\t\t\t\t\tcopyRightHolderAttributes.append(TripleStoreConstants.ATTRIBUTE_STATE);\r\n\t\t\t\t\tcopyRightHolderAttributes.append(\"=\");\r\n\t\t\t\t\tcopyRightHolderAttributes.append(digitalRightsManagementBean.getCopyRightHolderState());\r\n\t\t\t\t\tcopyRightHolderAttributes.append(\";\");\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t//state\r\n\t\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getCopyRightHolderZipCode())){\r\n\t\t\t\t\tcopyRightHolderAttributes.append(TripleStoreConstants.ATTRIBUTE_ZIP_CODE);\r\n\t\t\t\t\tcopyRightHolderAttributes.append(\"=\");\r\n\t\t\t\t\tcopyRightHolderAttributes.append(digitalRightsManagementBean.getCopyRightHolderZipCode());\r\n\t\t\t\t\tcopyRightHolderAttributes.append(\";\");\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tpredicate_value = Node.createLiteral(copyRightHolderAttributes.toString());\r\n\t\t\t\ttripleList.add(new Triple(subject, predicate, predicate_value));\r\n\t\t\t}\r\n\t\t}catch(Exception ex)\r\n\t\t{\r\n\t\t\tlog.error(ex);\r\n\t\t\tthrow ex;\r\n\t\t}finally{\r\n\t\t\tlog.debug(this.getClass() + TripleStoreConstants.LOG_END + LOG_METHOD_NAME);\r\n\t\t}\r\n\t\t\r\n\t\treturn tripleList;\r\n\t}", "private static String constructClassInstanceTriples(Class subjectClass, Property uniqueIdentifierProperty,\n\t\t\tArrayList<InsertionPropertyValue> instancePropertyValueList) {\n\n\t\t/*\n\t\t * triplesBuilder is used to build instance triples\n\t\t */\n\t\tStringBuilder triplesBuilder = new StringBuilder();\n\n\t\t/*\n\t\t * tempBuilder is a tempBuilder to hold triples.\n\t\t * \n\t\t * I used this String builder because the subjectUniqueIdentifier is the\n\t\t * value of uniqueIdentifierPrefixedPropertyName and to construct right\n\t\t * triples it must begin with the subjectUniqueIdentifier so tempBuilder\n\t\t * will hold all the triples then at the end I will append it to\n\t\t * triplesBuilder that will have the subjectUniqueIdentifier\n\t\t */\n\t\tStringBuilder tempBuilder = new StringBuilder();\n\n\t\tString subjectUniqueIdentifier = \"\";\n\n\t\t/*\n\t\t * check if the last propertyValue is the uniqueIdentifierPropertyValue\n\t\t */\n\t\tint size = instancePropertyValueList.size();\n\n\t\t/*\n\t\t * iterate over instancePropertyValueList to construct triples\n\t\t */\n\t\tint count = 0;\n\t\tString uniqueIdentifierPrefixedPropertyName = uniqueIdentifierProperty.getPrefix().getPrefix()\n\t\t\t\t+ uniqueIdentifierProperty.getName();\n\n\t\tfor (InsertionPropertyValue propertyValue : instancePropertyValueList) {\n\n\t\t\t/*\n\t\t\t * finding subjectUniqueIdentifier\n\t\t\t */\n\t\t\tif (propertyValue.getPropertyName().equals(uniqueIdentifierPrefixedPropertyName)) {\n\t\t\t\tsubjectUniqueIdentifier = propertyValue.getValue().toString().toLowerCase().replace(\" \", \"\");\n\t\t\t\tpropertyValue.setValue(getValue(uniqueIdentifierProperty, propertyValue.getValue()));\n\t\t\t}\n\n\t\t\t/*\n\t\t\t * checking if the propertyValue is the last one to end the\n\t\t\t * statement with .\n\t\t\t */\n\t\t\tif (count == size - 1) {\n\t\t\t\ttempBuilder.append(\n\t\t\t\t\t\tpropertyValue.getPropertyName() + \" \" + propertyValue.getValue().toString() + \" . \\n\");\n\t\t\t} else {\n\t\t\t\ttempBuilder.append(\n\t\t\t\t\t\tpropertyValue.getPropertyName() + \" \" + propertyValue.getValue().toString() + \" ; \\n\");\n\t\t\t}\n\n\t\t\tcount++;\n\t\t}\n\n\t\t/*\n\t\t * add subjectUniqueIdentifier and add triple that tells that\n\t\t * subjectUniqueIdentifier is of type subjectClass\n\t\t */\n\t\ttriplesBuilder.append(Prefix.IOT_PLATFORM.getPrefix() + subjectUniqueIdentifier + \" a \"\n\t\t\t\t+ subjectClass.getPrefix().getPrefix() + subjectClass.getName() + \" ; \\n\");\n\n\t\t/*\n\t\t * get all superClasses of subjectClass to identify that the new\n\t\t * instance is also an instance of all superClasses of subjectClass\n\t\t */\n\n\t\tfor (Class superClass : subjectClass.getSuperClassesList()) {\n\t\t\ttriplesBuilder.append(\" a \" + superClass.getPrefix().getPrefix() + superClass.getName() + \" ; \\n\");\n\n\t\t}\n\n\t\t/*\n\t\t * add rest of triples by appending tempBuilder\n\t\t */\n\n\t\ttriplesBuilder.append(tempBuilder.toString());\n\n\t\treturn triplesBuilder.toString();\n\n\t}", "@Test\n public void testPackagesTriples() {\n int expected = 12 + 50; // parashot + perakim, sefer is not added\n assertEquals(expected, packagesJson[1].subjects.size()); // note that element in position 0 is null\n\n // test the number of packages objects in sefer Devarim\n expected = 11 + 34; // sefer + parashot + perakim\n assertEquals(expected, packagesJson[5].subjects.size());\n\n // test the number of packages objects in sefer Divrey Hayamim B\n expected = 0 + 36; // sefer + parashot + perakim\n assertEquals(expected, packagesJson[39].subjects.size());\n }", "public ArrayList<Triple> addAdministrativeAnnotationTriples(Node subject ,DigitalRightsManagementBean digitalRightsManagementBean){\r\n\t\t\r\n\t\tString LOG_METHOD_NAME = \" ArrayList<Triple> addAdministrativeAnnotationTriples(Node, DigitalRightsManagementBean)\";\r\n\t\tlog.debug(this.getClass() + TripleStoreConstants.LOG_BEGIN + LOG_METHOD_NAME);\r\n\t\t\r\n\t\tArrayList<Triple> tripleList = new ArrayList<>();\r\n\t\tNode predicate = null, predicate_value=null;\r\n\t\ttry{\t\t\t\t\t\t\r\n\t\t\t//physicalDescription\t\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getPhysicalDescription())){\r\n\t\t\t\tpredicate = Node.createURI(TripleStoreConstants.URI_PREDICATE_TEN_PHYSICAL_DESCRIPTION);\r\n\t\t\t\tpredicate_value = Node.createLiteral(digitalRightsManagementBean.getPhysicalDescription());\r\n\t\t\t\ttripleList.add(new Triple(subject, predicate, predicate_value));\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//loan period\t\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getLoanPeriod())){\r\n\t\t\t\tpredicate = Node.createURI(TripleStoreConstants.URI_PREDICATE_TEN_LOAN_PERIOD);\r\n\t\t\t\tpredicate_value = Node.createLiteral(digitalRightsManagementBean.getLoanPeriod());\r\n\t\t\t\ttripleList.add(new Triple(subject, predicate, predicate_value));\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//identifier\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getIdentifier())){\r\n\t\t\t\tpredicate = Node.createURI(TripleStoreConstants.URI_PREDICATE_TEN_SOURCE_IDENTIFIER);\r\n\t\t\t\tpredicate_value = Node.createLiteral(digitalRightsManagementBean.getIdentifier());\r\n\t\t\t\ttripleList.add(new Triple(subject, predicate, predicate_value));\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//identifier description\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getIdentifierDescription())){\r\n\t\t\t\tpredicate = Node.createURI(TripleStoreConstants.URI_PREDICATE_TEN_SOURCE_IDENTIFIER_DESCRIPTION);\r\n\t\t\t\tpredicate_value = Node.createLiteral(digitalRightsManagementBean.getIdentifierDescription());\r\n\t\t\t\ttripleList.add(new Triple(subject, predicate, predicate_value));\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//handling instructions\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getHandlingInstructions())){\r\n\t\t\t\tpredicate = Node.createURI(TripleStoreConstants.URI_PREDICATE_TEN_HANDLING_INSTRUCTIONS);\r\n\t\t\t\tpredicate_value = Node.createLiteral(digitalRightsManagementBean.getHandlingInstructions());\r\n\t\t\t\ttripleList.add(new Triple(subject, predicate, predicate_value));\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//rights\t\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getRights())){\r\n\t\t\t\tpredicate = Node.createURI(TripleStoreConstants.URI_PREDICATE_DC_RIGHTS);\r\n\t\t\t\tpredicate_value = Node.createLiteral(digitalRightsManagementBean.getRights());\r\n\t\t\t\ttripleList.add(new Triple(subject, predicate, predicate_value));\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//intaker\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getIntaker())){\r\n\t\t\t\tpredicate = Node.createURI(TripleStoreConstants.URI_PREDICATE_TEN_INTAKER);\r\n\t\t\t\tpredicate_value = Node.createLiteral(digitalRightsManagementBean.getIntaker());\r\n\t\t\t\ttripleList.add(new Triple(subject, predicate, predicate_value));\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//date of learning object creation\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getDateOfUpload())){\r\n\t\t\t\tpredicate = Node.createURI(TripleStoreConstants.URI_PREDICATE_TEN_DATE_UPLOAD);\r\n\t\t\t\tpredicate_value = Node.createLiteral(digitalRightsManagementBean.getDateOfUpload());\r\n\t\t\t\ttripleList.add(new Triple(subject, predicate, predicate_value));\r\n\t\t\t}\t\t\t\r\n\t\t\t\r\n\t\t\t//Story provided\r\n\t\t\tboolean storyProvided = (!Utils.isEmptyOrNull(digitalRightsManagementBean.getStoryProvided()) \r\n\t\t\t\t\t&& \"true\".equals(digitalRightsManagementBean.getStoryProvided()))?true:false;\r\n\t\t\tpredicate = Node.createURI(TripleStoreConstants.URI_PREDICATE_TEN_STORY_PROVIDED);\r\n\t\t\tpredicate_value = Node.createLiteral(String.valueOf(storyProvided));\r\n\t\t\ttripleList.add(new Triple(subject, predicate, predicate_value));\r\n\t\t\t\r\n\t\t\t//story\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getStory())){\r\n\t\t\t\tpredicate = Node.createURI(TripleStoreConstants.URI_PREDICATE_TEN_STORY);\r\n\t\t\t\tpredicate_value = Node.createLiteral(digitalRightsManagementBean.getStory());\r\n\t\t\t\ttripleList.add(new Triple(subject, predicate, predicate_value));\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\t//story context\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getStoryContext())){\r\n\t\t\t\tpredicate = Node.createURI(TripleStoreConstants.URI_PREDICATE_TEN_STORY_CONTEXT);\r\n\t\t\t\tpredicate_value = Node.createLiteral(digitalRightsManagementBean.getStoryContext());\r\n\t\t\t\ttripleList.add(new Triple(subject, predicate, predicate_value));\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(storyProvided){\r\n\t\t\t\ttripleList.addAll(addStoryProviderAnnotationTriples(subject, digitalRightsManagementBean));\r\n\t\t\t}\r\n\t\t\t\t\t\r\n\t\t}catch(Exception ex)\r\n\t\t{\r\n\t\t\tlog.error(ex);\r\n\t\t\tthrow ex;\r\n\t\t}finally{\r\n\t\t\tlog.debug(this.getClass() + TripleStoreConstants.LOG_END + LOG_METHOD_NAME);\r\n\t\t}\r\n\t\t\r\n\t\treturn tripleList;\r\n\t}", "@Test\n public void performKTails0Test() throws InternalSynopticException,\n ParseException {\n PartitionGraph pGraph = KTails.performKTails(makeSimpleGraph(), 1);\n // All a's and b's should be merged + initial + terminal.\n assertTrue(pGraph.getNodes().size() == 4);\n }", "@Test\n public void addBlankNodesFromMultipleDatasets() throws Exception {\n try (final Dataset g1 = createDataset1();\n final Dataset g2 = createDataset2();\n final Dataset g3 = factory.createDataset()) {\n\n addAllQuads(g1, g3);\n addAllQuads(g2, g3);\n\n // Let's make a map to find all those blank nodes after insertion\n // (The Dataset implementation is not currently required to\n // keep supporting those BlankNodes with contains() - see\n // COMMONSRDF-15)\n\n final Map<String, BlankNodeOrIRI> whoIsWho = new ConcurrentHashMap<>();\n // ConcurrentHashMap as we will try parallel forEach below,\n // which should not give inconsistent results (it does with a\n // HashMap!)\n\n // look up BlankNodes by name\n final IRI name = factory.createIRI(\"http://xmlns.com/foaf/0.1/name\");\n try (Stream<? extends Quad> stream = g3.stream(null, null, name, null)) {\n stream.parallel().forEach(t -> whoIsWho.put(t.getObject().ntriplesString(), t.getSubject()));\n }\n\n assertEquals(4, whoIsWho.size());\n // and contains 4 unique values\n assertEquals(4, new HashSet<>(whoIsWho.values()).size());\n\n final BlankNodeOrIRI b1Alice = whoIsWho.get(\"\\\"Alice\\\"\");\n assertNotNull(b1Alice);\n final BlankNodeOrIRI b2Bob = whoIsWho.get(\"\\\"Bob\\\"\");\n assertNotNull(b2Bob);\n final BlankNodeOrIRI b1Charlie = whoIsWho.get(\"\\\"Charlie\\\"\");\n assertNotNull(b1Charlie);\n final BlankNodeOrIRI b2Dave = whoIsWho.get(\"\\\"Dave\\\"\");\n assertNotNull(b2Dave);\n\n // All blank nodes should differ\n notEquals(b1Alice, b2Bob);\n notEquals(b1Alice, b1Charlie);\n notEquals(b1Alice, b2Dave);\n notEquals(b2Bob, b1Charlie);\n notEquals(b2Bob, b2Dave);\n notEquals(b1Charlie, b2Dave);\n\n // And we should be able to query with them again\n // as we got them back from g3\n final IRI hasChild = factory.createIRI(\"http://example.com/hasChild\");\n // FIXME: Check graph2 BlankNode in these ..?\n assertTrue(g3.contains(null, b1Alice, hasChild, b2Bob));\n assertTrue(g3.contains(null, b2Dave, hasChild, b1Charlie));\n // But not\n assertFalse(g3.contains(null, b1Alice, hasChild, b1Alice));\n assertFalse(g3.contains(null, b1Alice, hasChild, b1Charlie));\n assertFalse(g3.contains(null, b1Alice, hasChild, b2Dave));\n // nor\n assertFalse(g3.contains(null, b2Dave, hasChild, b1Alice));\n assertFalse(g3.contains(null, b2Dave, hasChild, b1Alice));\n\n // and these don't have any children (as far as we know)\n assertFalse(g3.contains(null, b2Bob, hasChild, null));\n assertFalse(g3.contains(null, b1Charlie, hasChild, null));\n }\n }", "private void duplicateTags(Topology topology) {\n // This one pass implementation is dependent on Edges being\n // topologically sorted - ancestor Edges appear before their descendants.\n for (Edge e : topology.graph().getEdges()) {\n Object o = e.getTarget().getInstance();\n if (o instanceof Peek || o instanceof FanOut) {\n duplicateTags(e);\n }\n }\n }", "public boolean checkEGJoin(List<String> queryTriplets) {\n\n boolean flagEG = false;\n boolean foundEG = false;\n List<List<String>> newEGpair = null;\n List<List<String>> newEGpair2 = null;\n List<String> innerDTP = null;\n List<String> outerDTP = null;\n List<String> currEG = null;\n\n if (queryTriplets.size() >= 6) {\n\n for (int key : mapTmpEGtoAllTPs.keySet()) {\n\n currEG = mapTmpEGtoAllTPs.get(key);\n int commElems = myBasUtils.candidateTPcomElems(currEG, queryTriplets);\n\n if (currEG.size() == queryTriplets.size()) {\n\n // the second condition, is used to capture Nested Loop with EG operator, made by FedX\n if (commElems == currEG.size() || commElems == currEG.size() - 1) {\n\n if (commElems == currEG.size() - 1) {\n\n mapEGtoCancel.put(key, 1);\n mapEGtoOccurs.put(currEG, 2);\n }\n\n foundEG = true;\n break;\n }\n\n }\n\n }\n\n //If it's the first time we see this EG or NLEG, we save each pairWise join as EG\n if (!foundEG) {\n\n int indEG = mapTmpEGtoAllTPs.size();\n mapTmpEGtoAllTPs.put(indEG, queryTriplets);\n mapEGtoOccurs.put(currEG, 1);\n\n for (int i = 0; i < queryTriplets.size(); i += 3) {\n\n outerDTP = myDedUtils.getCleanTP(new LinkedList<>(queryTriplets.subList(i, i + 3)));\n for (int f = i + 3; f < queryTriplets.size(); f += 3) {\n\n flagEG = true;\n innerDTP = myDedUtils.getCleanTP(new LinkedList<>(queryTriplets.subList(f, f + 3)));\n newEGpair = Arrays.asList(innerDTP, outerDTP);\n newEGpair2 = Arrays.asList(outerDTP, innerDTP);\n myDedUtils.setNewEGInfo(outerDTP, innerDTP, newEGpair, newEGpair2, indEG);\n }\n\n }\n }\n\n }\n\n return flagEG;\n }", "public void test_ck_03() {\n // part A - surprising reification\n OntModel model1 = ModelFactory.createOntologyModel(OntModelSpec.DAML_MEM, null);\n OntModel model2 = ModelFactory.createOntologyModel(OntModelSpec.DAML_MEM_RULE_INF, null);\n \n Individual sub = model1.createIndividual(\"http://mytest#i1\", model1.getProfile().CLASS());\n OntProperty pred = model1.createOntProperty(\"http://mytest#\");\n Individual obj = model1.createIndividual(\"http://mytest#i2\", model1.getProfile().CLASS());\n OntProperty probabilityP = model1.createOntProperty(\"http://mytest#prob\");\n \n Statement st = model1.createStatement(sub, pred, obj);\n model1.add(st);\n st.createReifiedStatement().addProperty(probabilityP, 0.9);\n assertTrue(\"st should be reified\", st.isReified());\n \n Statement st2 = model2.createStatement(sub, pred, obj);\n model2.add(st2);\n st2.createReifiedStatement().addProperty(probabilityP, 0.3);\n assertTrue(\"st2 should be reified\", st2.isReified());\n \n sub.addProperty(probabilityP, 0.3);\n sub.removeAll(probabilityP).addProperty(probabilityP, 0.3); //!!!\n // exception\n \n // Part B - exception in remove All\n Individual sub2 = model2.createIndividual(\"http://mytest#i1\", model1.getProfile().CLASS());\n \n sub.addProperty(probabilityP, 0.3);\n sub.removeAll(probabilityP); //!!! exception\n \n sub2.addProperty(probabilityP, 0.3);\n sub2.removeAll(probabilityP); //!!! exception\n \n }", "public void getCTPfromQuery(List<String> queryTriplets, int dedGraphId, int indxLogCleanQuery) {\n\n int indxValue = -1;\n int indxLogQueryDedGraph = mapLogClQueryToDedGraph.get(indxLogCleanQuery);\n int indxNewTPDedGraph = -1;\n List<String> tmpTripletClean = null;\n List<Integer> allIdPats = null;\n List<Integer> deducedTPnotCoveredTimestamp = new LinkedList<>();\n String strDedQueryId = Integer.toString(dedGraphId);\n boolean flagTriplePatternOutOfTimeRange = false;\n\n //For all triple patterns\n for (int f = 0; f < queryTriplets.size(); f += 3) {\n\n tmpTripletClean = myDedUtils.getCleanTP(new LinkedList<>(queryTriplets.subList(f, f + 3)));\n\n //Check if query is an Exclusive Group\n checkTPinEG(queryTriplets, tmpTripletClean, indxLogCleanQuery);\n\n //Check if query is a Bound Join implementation or it's a single TP query\n checkSingleTPorBoundJ(queryTriplets, tmpTripletClean, indxLogCleanQuery);\n\n //[CASE A] When both subjects and objects are variables, or inverseMapping is disabled\n if (tmpTripletClean.get(0).contains(\"?\") && tmpTripletClean.get(2).contains(\"?\") || !inverseMapping) {\n\n //A_(i) It's the frist time we see this CTP\n allIdPats = myDedUtils.getIdemCTPs(DTPCandidates, tmpTripletClean.get(0), tmpTripletClean.get(1), tmpTripletClean.get(2));\n\n if (allIdPats.isEmpty()) {\n\n myDedUtils.setNewCTPInfo(tmpTripletClean, \"\", indxLogCleanQuery, indxLogQueryDedGraph, strDedQueryId, \"\");\n myDedUtils.setTPtoSrcAns(tmpTripletClean, indxLogCleanQuery, \"\", DTPCandidates.size() - 1);\n } //A_(ii) It's not the first time we identify it\n else {\n\n //Then, we must be sure that it's not an existing CTP\n for (int l = allIdPats.size() - 1; l >= 0; l--) {\n\n indxNewTPDedGraph = mapCTPtoDedGraph.get(allIdPats.get(l));\n\n //First we check it belongs to the same graph with previous identified CTP\n if (indxNewTPDedGraph != indxLogQueryDedGraph) {\n\n flagTriplePatternOutOfTimeRange = true;\n myDedUtils.setNewCTPInfo(tmpTripletClean, tmpTripletClean.get(0), indxLogCleanQuery, indxLogQueryDedGraph, strDedQueryId, \"_\" + allIdPats.size());\n myDedUtils.setTPtoSrcAns(tmpTripletClean, indxLogCleanQuery, \"\", DTPCandidates.size() - 1);\n deducedTPnotCoveredTimestamp.add(DTPCandidates.size() - 1);\n break;\n } //if not, it's a new CTP (we distinguish them with \"_#number\")\n //This happens when Tjoin is not big enough to merge some subqueries\n //with same characteristics\n else {\n\n myDedUtils.updateCTPInfo(tmpTripletClean, \"\", indxLogCleanQuery, indxLogQueryDedGraph, allIdPats.get(l));\n myDedUtils.setTPtoSrcAns(tmpTripletClean, indxLogCleanQuery, \"\", allIdPats.get(l));\n\n if ((DTPCandidates.get(allIdPats.get(l)).get(0).contains(\"?\") && DTPCandidates.get(allIdPats.get(l)).get(0).contains(\"_\"))\n || (DTPCandidates.get(allIdPats.get(l)).get(2).contains(\"?\") && DTPCandidates.get(allIdPats.get(l)).get(2).contains(\"_\"))) {\n\n deducedTPnotCoveredTimestamp.add(allIdPats.get(l));\n }\n\n break;\n }\n\n }\n\n }\n\n } //If subject or object is a constant, we repeat the procedure depending \n //on if it is a Single TP or part of BoundJoin\n else {\n\n if (inverseMapping) {\n\n indxValue = myDedUtils.getIndxConstant(tmpTripletClean);\n }\n\n setOrUpdateCTPList(tmpTripletClean, indxValue, strDedQueryId, indxLogCleanQuery);\n }\n\n }\n\n //check for an exclusive group relation between CTP\n //It could be a EG or NLEG\n if (queryTriplets.size() >= 6 && !flagTriplePatternOutOfTimeRange && !queries.get(indxLogCleanQuery).contains(\"UNION\")) {\n\n if (checkEGJoin(queryTriplets)) {\n for (int i = 0; i < deducedTPnotCoveredTimestamp.size(); i++) {\n if (mapDTPToAnyJoin.get(deducedTPnotCoveredTimestamp.get(i)) == null) {\n\n mapDTPToDeducedID.put(DTPCandidates.get(deducedTPnotCoveredTimestamp.get(i)), deducedTPnotCoveredTimestamp.get(i));\n mapDTPToAnyJoin.put(deducedTPnotCoveredTimestamp.get(i), -1);\n }\n }\n }\n }\n\n }", "private void phaseOne(){\r\n\r\n\t\twhile (allNodes.size() < endSize){\r\n\r\n\t\t\ttry (Transaction tx = graphDb.beginTx()){\r\n\t\t\t\t//Pick a random node from allNodes\r\n\t\t\t\tint idx = random.nextInt(allNodes.size());\r\n\t\t\t\tNode node = allNodes.get(idx);\r\n\r\n\t\t\t\t//Get all relationships of node\t\t\t\t\r\n\t\t\t\tIterable<Relationship> ite = node.getRelationships(Direction.BOTH);\r\n\t\t\t\tList<Relationship> tempRels = new ArrayList<Relationship>();\r\n\r\n\t\t\t\t//Pick one of the relationships uniformly at random.\r\n\t\t\t\tfor (Relationship rel : ite){\r\n\t\t\t\t\ttempRels.add(rel);\r\n\t\t\t\t}\r\n\r\n\t\t\t\tidx = random.nextInt(tempRels.size());\r\n\t\t\t\tRelationship rel = tempRels.get(idx);\r\n\t\t\t\tNode neighbour = rel.getOtherNode(node);\r\n\r\n\t\t\t\t//Add the neighbour to allNodes\r\n\t\t\t\tif (!allNodes.contains(neighbour)){\r\n\t\t\t\t\tallNodes.add(neighbour);\r\n\t\t\t\t}\r\n\r\n\t\t\t\ttx.success();\r\n\r\n\t\t\t}\r\n\t\t}\r\n\t\t//If reached here, then phase one completed successfully.\r\n\t\treturn;\r\n\t}", "public MinimumTrialsSourceToDestWord()\n {\n nodeList = new HashMap<T, GraphNode>();\n }", "@Test\n public void performKTails2Test() throws InternalSynopticException,\n ParseException {\n PartitionGraph pGraph = KTails.performKTails(makeSimpleGraph(), 3);\n // Only the b nodes should be merged.\n assertTrue(pGraph.getNodes().size() == 6);\n }", "@Override\n\tpublic boolean insertOneEdge(NodeRelation nodeRelation) {\n\t\treturn false;\n\t}", "public static void main(String[] args) {\n\t\t\n//\t\t//PA4 a\n//\t\tArrayList<ArrayList<String>> rhs1 = new ArrayList<>();\n//\t\tArrayList<String> rhs11 = new ArrayList<>();\n//\t\trhs11.add(\"S\");rhs11.add(\"a\");\n//\t\tArrayList<String> rhs12 = new ArrayList<>();\n//\t\trhs12.add(\"b\");\t\t\n//\t\trhs1.add(rhs11);\n//\t\trhs1.add(rhs12);\n//\n//\t\tRule r1 = new Rule(\"S\", rhs1); // S -> Aa | b\n//\t\tArrayList<Rule> rules = new ArrayList<>();\n//\t\trules.add(r1);\n//\t\tGrammar g = new Grammar(rules);\n//\t\tg.eliminateEpsilonRule();\n//\t\tg.eliminateLR();\n//\t\tSystem.out.println(g);\n//\t\tSystem.out.println(\"----------------------\");\n\t\t\n//\t\t//PA4 b\n//\t\tArrayList<ArrayList<String>> rhs1 = new ArrayList<>();\n//\t\tArrayList<String> rhs11 = new ArrayList<>();\n//\t\trhs11.add(\"S\");rhs11.add(\"a\");rhs11.add(\"b\");\n//\t\tArrayList<String> rhs12 = new ArrayList<>();\n//\t\trhs12.add(\"c\");rhs12.add(\"d\");\t\t\n//\t\trhs1.add(rhs11);\n//\t\trhs1.add(rhs12);\n//\n//\t\tRule r1 = new Rule(\"S\", rhs1); // S -> Aa | b\n//\t\tArrayList<Rule> rules = new ArrayList<>();\n//\t\trules.add(r1);\n//\t\tGrammar g = new Grammar(rules);\n//\t\tg.eliminateEpsilonRule();\n//\t\tg.eliminateLR();\n//\t\tSystem.out.println(g);\n//\t\tSystem.out.println(\"----------------------\");\n\t\t\n//\t\t//PA4 c\n//\t\tArrayList<ArrayList<String>> rhs1 = new ArrayList<>();\n//\t\tArrayList<String> rhs11 = new ArrayList<>();\n//\t\trhs11.add(\"S\");rhs11.add(\"U\");rhs11.add(\"S\");\n//\t\tArrayList<String> rhs12 = new ArrayList<>();\n//\t\trhs12.add(\"S\");rhs12.add(\"S\");\t\t\n//\t\tArrayList<String> rhs13 = new ArrayList<>();\n//\t\trhs13.add(\"S\");rhs13.add(\"*\");\n//\t\tArrayList<String> rhs14 = new ArrayList<>();\n//\t\trhs14.add(\"(\");rhs14.add(\"S\");rhs14.add(\")\");\n//\t\tArrayList<String> rhs15 = new ArrayList<>();\n//\t\trhs15.add(\"a\");\n//\t\trhs1.add(rhs11);\n//\t\trhs1.add(rhs12);\n//\t\trhs1.add(rhs13);\n//\t\trhs1.add(rhs14);\n//\t\trhs1.add(rhs15);\n//\n//\n//\t\tRule r1 = new Rule(\"S\", rhs1); // S -> Aa | b\n//\t\tArrayList<Rule> rules = new ArrayList<>();\n//\t\trules.add(r1);\n//\t\tGrammar g = new Grammar(rules);\n//\t\tg.eliminateEpsilonRule();\n//\t\tg.eliminateLR();\n//\t\tSystem.out.println(g);\n//\t\tSystem.out.println(\"----------------------\");\n\t\t\n\t\t\n//\t\t//PA-3 d\n//\t\t\n//\t\tArrayList<ArrayList<String>> rhs1 = new ArrayList<>();\n//\t\tArrayList<String> rhs11 = new ArrayList<>();\n//\t\trhs11.add(\"rexpr\");rhs11.add(\"U\");rhs11.add(\"rterm\");\t\n//\t\tArrayList<String> rhs12 = new ArrayList<>();\n//\t\trhs12.add(\"rterm\");\n//\t\trhs1.add(rhs11);\n//\t\trhs1.add(rhs12);\n//\t\tRule r1 = new Rule(\"rexpr\", rhs1);\n//\n//\t\tArrayList<ArrayList<String>> rhs2 = new ArrayList<>();\n//\t\tArrayList<String> rhs21 = new ArrayList<>();\n//\t\trhs21.add(\"rterm\");rhs21.add(\"r factor\");\n//\t\tArrayList<String> rhs22 = new ArrayList<>();\n//\t\trhs22.add(\"r factor\");\n//\t\trhs2.add(rhs21);\n//\t\trhs2.add(rhs22);\n//\t\tRule r2 = new Rule(\"rterm\", rhs2);\n//\n//\t\tArrayList<ArrayList<String>> rhs3 = new ArrayList<>();\n//\t\tArrayList<String> rhs31 = new ArrayList<>();\n//\t\trhs31.add(\"r factor\");rhs31.add(\"*\");\n//\t\tArrayList<String> rhs32 = new ArrayList<>();\n//\t\trhs32.add(\"rprimary\");\n//\t\trhs3.add(rhs31);\n//\t\trhs3.add(rhs32);\n//\t\tRule r3 = new Rule(\"r factor\", rhs3);\n//\t\t\n//\t\tArrayList<ArrayList<String>> rhs4 = new ArrayList<>();\n//\t\tArrayList<String> rhs41 = new ArrayList<>();\n//\t\trhs41.add(\"a\");\n//\t\tArrayList<String> rhs42 = new ArrayList<>();\n//\t\trhs42.add(\"b\");\n//\t\trhs4.add(rhs41);\n//\t\trhs4.add(rhs42);\n//\t\tRule r4 = new Rule(\"rprimary\", rhs4);\n//\n//\t\tArrayList<Rule> rules = new ArrayList<>();\n//\t\trules.add(r1);\n//\t\trules.add(r2);\n//\t\trules.add(r3);\n//\t\trules.add(r4);\n//\t\tGrammar g = new Grammar(rules);\n//\t\tg.eliminateEpsilonRule();\n//\t\tg.eliminateLR();\n//\n//\t\tSystem.out.println(g);\n//\t\tSystem.out.println(\"----------------------\");\t\n\t\t\t\n//\t\t//PA-3 e\t\n//\t\t\n//\t\tArrayList<ArrayList<String>> rhs1 = new ArrayList<>();\n//\t\tArrayList<String> rhs11 = new ArrayList<>();\n//\t\trhs11.add(\"0\");\n//\t\tArrayList<String> rhs12 = new ArrayList<>();\n//\t\trhs12.add(\"T\");rhs12.add(\"1\");\t\t\n//\t\trhs1.add(rhs11);\n//\t\trhs1.add(rhs12);\n//\t\t\n//\t\tArrayList<ArrayList<String>> rhs2 = new ArrayList<>();\n//\t\tArrayList<String> rhs21 = new ArrayList<>();\n//\t\trhs21.add(\"1\");\n//\t\tArrayList<String> rhs22 = new ArrayList<>();\n//\t\trhs22.add(\"A\");rhs22.add(\"0\");\t\t\n//\t\trhs2.add(rhs21);\n//\t\trhs2.add(rhs22);\n//\n//\t\tRule r1 = new Rule(\"A\", rhs1);\n//\t\tRule r2 = new Rule(\"T\", rhs2);\n//\n//\t\tArrayList<Rule> rules = new ArrayList<>();\n//\t\trules.add(r1);\n//\t\trules.add(r2);\n//\t\tGrammar g = new Grammar(rules);\n//\t\tg.eliminateEpsilonRule();\n//\t\tg.eliminateLR();\n//\t\tSystem.out.println(g);\n//\t\tSystem.out.println(\"----------------------\");\n\n\n\t\t\n//\t\t//PA-3 f\n//\t\t\n//\t\tArrayList<ArrayList<String>> rhs1 = new ArrayList<>();\n//\t\tArrayList<String> rhs11 = new ArrayList<>();\n//\t\trhs11.add(\"B\");rhs11.add(\"C\");\t\n//\t\trhs1.add(rhs11);\n//\t\tRule r1 = new Rule(\"A\", rhs1);\n//\n//\t\tArrayList<ArrayList<String>> rhs2 = new ArrayList<>();\n//\t\tArrayList<String> rhs21 = new ArrayList<>();\n//\t\trhs21.add(\"B\");rhs21.add(\"b\");\n//\t\tArrayList<String> rhs22 = new ArrayList<>();\n//\t\trhs22.add(\"e\");\n//\t\trhs2.add(rhs21);\n//\t\trhs2.add(rhs22);\n//\t\tRule r2 = new Rule(\"B\", rhs2);\n//\n//\t\tArrayList<ArrayList<String>> rhs3 = new ArrayList<>();\n//\t\tArrayList<String> rhs31 = new ArrayList<>();\n//\t\trhs31.add(\"A\");rhs31.add(\"C\");\n//\t\tArrayList<String> rhs32 = new ArrayList<>();\n//\t\trhs32.add(\"a\");\n//\t\trhs3.add(rhs31);\n//\t\trhs3.add(rhs32);\n//\t\tRule r3 = new Rule(\"C\", rhs3);\n//\n//\t\tArrayList<Rule> rules = new ArrayList<>();\n//\t\trules.add(r1);\n//\t\trules.add(r2);\n//\t\trules.add(r3);\n//\t\tGrammar g = new Grammar(rules);\n//\t\tSystem.out.println(g);\n//\t\tg.eliminateEpsilonRule();\n//\t\tSystem.out.println(g);\n//\n//\t\tg.eliminateLR();\n//\n//\t\tSystem.out.println(g);\n//\t\tSystem.out.println(\"----------------------\");\n\n\t}", "public void testSubgraphsDontPolluteDefaultPrefix() \n {\n String imported = \"http://imported#\", local = \"http://local#\";\n g1.getPrefixMapping().setNsPrefix( \"\", imported );\n poly.getPrefixMapping().setNsPrefix( \"\", local );\n assertEquals( null, poly.getPrefixMapping().getNsURIPrefix( imported ) );\n }", "protected String[] getTriples() {\n\t\tString[] contents = new String[3];\n\t\tString message = \"\";\n\t\tint rowcount = tripleTable.getRowCount();\n\t\tlogger.log(Level.SEVERE, tripleTable.getText(0, 0));\n\t\twhile (rowcount > 1) {\n\t\t\tlogger.log(Level.SEVERE, \"Rowcount is: \" + rowcount);\n\n\t\t\tcontents[0] = (tripleTable.getText(rowcount - 1, 0));\n\t\t\tcontents[1] = (tripleTable.getText(rowcount - 1, 1));\n\t\t\tcontents[2] = (tripleTable.getText(rowcount - 1, 2));\n\t\t\tmessage += \"\\nSubject: \" + contents[0] + \"\\nPredicate: \" + contents[1] + \"\\nObject: \" + contents[2];\n\t\t\tlogger.log(Level.SEVERE, contents[1]);\n\t\t\ttripleTable.removeRow(rowcount - 1);\n\n\t\t\tfinal AsyncCallback<String[]> sendToTripleStore = new AsyncCallback<String[]>() {\n\n\t\t\t\t@Override\n\t\t\t\tpublic void onFailure(Throwable caught) {\n\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\tWindow.alert(\"FAILED TO UPLOAD\");\n\t\t\t\t}\n\n\t\t\t\t@Override\n\t\t\t\tpublic void onSuccess(String[] result) {\n\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\tWindow.alert(\"UPLOADED\");\n\t\t\t\t}\n\n\t\t\t};\n\t\t\tgreetingService.sendToTripleStore(contents, sendToTripleStore);\n\t\t\tlogger.log(Level.SEVERE, \"Uploaded a triple\");\n\t\t\trowcount = tripleTable.getRowCount();\n\t\t\t// logger.log(Level.SEVERE, \"rowcount= \" + rowcount);\n\t\t}\n\n\t\t// StringEscapeUtils seu = new StringEscapeUtils();\n\t\tHTML triples_sent = new HTML(message);\n\t\tdialogBoxContents.add(triples_sent);\n\t\tdialogBoxContents.add(close);\n\t\tdBox.setWidget(dialogBoxContents);\n\t\tdBox.center();\n\t\t// return new_triple_list;\n\t\treturn contents;\n\t}", "final public Expression TriplesNode(Exp stack) throws ParseException {\n Expression expression1;\n switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n case ATLIST:\n case ATPATH:\n case LPAREN:\n case AT:\n expression1 = Collection(stack);\n break;\n case LBRACKET:\n expression1 = BlankNodePropertyList(stack);\n break;\n default:\n jj_la1[224] = jj_gen;\n jj_consume_token(-1);\n throw new ParseException();\n }\n {if (true) return expression1;}\n throw new Error(\"Missing return statement in function\");\n }", "private ScheduleGrph initializeIdenticalTaskEdges(ScheduleGrph input) {\n\n\t\tScheduleGrph correctedInput = (ScheduleGrph) SerializationUtils.clone(input);\n\t\t// FORKS AND TODO JOINS\n\t\t/*\n\t\t * for (int vert : input.getVertices()) { TreeMap<Integer, List<Integer>> sorted\n\t\t * = new TreeMap<Integer, List<Integer>>(); for (int depend :\n\t\t * input.getOutNeighbors(vert)) { int edge = input.getSomeEdgeConnecting(vert,\n\t\t * depend); int weight = input.getEdgeWeightProperty().getValueAsInt(edge); if\n\t\t * (sorted.get(weight) != null) { sorted.get(weight).add(depend); } else {\n\t\t * ArrayList<Integer> a = new ArrayList(); a.add(depend); sorted.put(weight, a);\n\t\t * }\n\t\t * \n\t\t * } int curr = -1; for (List<Integer> l : sorted.values()) { for (int head : l)\n\t\t * {\n\t\t * \n\t\t * if (curr != -1) { correctedInput.addDirectedSimpleEdge(curr, head); } curr =\n\t\t * head; }\n\t\t * \n\t\t * } }\n\t\t */\n\n\t\tfor (int vert : input.getVertices()) {\n\t\t\tfor (int vert2 : input.getVertices()) {\n\t\t\t\tint vertWeight = input.getVertexWeightProperty().getValueAsInt(vert);\n\t\t\t\tint vert2Weight = input.getVertexWeightProperty().getValueAsInt(vert2);\n\n\t\t\t\tIntSet vertParents = input.getInNeighbors(vert);\n\t\t\t\tIntSet vert2Parents = input.getInNeighbors(vert2);\n\n\t\t\t\tIntSet vertChildren = input.getOutNeighbors(vert);\n\t\t\t\tIntSet vert2Children = input.getOutNeighbors(vert2);\n\n\t\t\t\tboolean childrenEqual = vertChildren.containsAll(vert2Children)\n\t\t\t\t\t\t&& vert2Children.containsAll(vertChildren);\n\n\t\t\t\tboolean parentEqual = vertParents.containsAll(vert2Parents) && vert2Parents.containsAll(vertParents);\n\n\t\t\t\tboolean inWeightsSame = true;\n\t\t\t\tfor (int parent : vertParents) {\n\t\t\t\t\tfor (int parent2 : vert2Parents) {\n\t\t\t\t\t\tif (parent == parent2 && input.getEdgeWeightProperty()\n\t\t\t\t\t\t\t\t.getValue(input.getSomeEdgeConnecting(parent, vert)) == input.getEdgeWeightProperty()\n\t\t\t\t\t\t\t\t.getValue(input.getSomeEdgeConnecting(parent2, vert2))) {\n\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tinWeightsSame = false;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif (!inWeightsSame) {\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tboolean outWeightsSame = true;\n\t\t\t\tfor (int child : vertChildren) {\n\t\t\t\t\tfor (int child2 : vert2Children) {\n\t\t\t\t\t\tif (child == child2 && input.getEdgeWeightProperty()\n\t\t\t\t\t\t\t\t.getValue(input.getSomeEdgeConnecting(vert, child)) == input.getEdgeWeightProperty()\n\t\t\t\t\t\t\t\t.getValue(input.getSomeEdgeConnecting(vert2, child2))) {\n\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\toutWeightsSame = false;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif (!outWeightsSame) {\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tboolean alreadyEdge = correctedInput.areVerticesAdjacent(vert, vert2)\n\t\t\t\t\t\t|| correctedInput.areVerticesAdjacent(vert2, vert);\n\n\t\t\t\tif (vert != vert2 && vertWeight == vert2Weight && parentEqual && childrenEqual && inWeightsSame\n\t\t\t\t\t\t&& outWeightsSame && !alreadyEdge) {\n\t\t\t\t\tint edge = correctedInput.addDirectedSimpleEdge(vert, vert2);\n\t\t\t\t\tcorrectedInput.getEdgeWeightProperty().setValue(edge, 0);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn correctedInput;\n\t}", "public void testValidateSubjectPrimaryAssociationsDuplicate() throws Exception {\n positionWrapperBean.addNewSubjectPrimaryAssociation();\n positionWrapperBean.addNewSubjectPrimaryAssociation();\n List subjectPrimaryAssociations = positionWrapperBean.getSubjectPrimaryAssociations();\n for (int i = 0; i < subjectPrimaryAssociations.size(); i++) {\n ArtefactAssociationWrapperBean artefactAssociationWrapperBean = (ArtefactAssociationWrapperBean) subjectPrimaryAssociations.get(i);\n artefactAssociationWrapperBean.setSourceId(new Long(12));\n artefactAssociationWrapperBean.setQualifierId(new Long(399));\n }\n // should produce a duplicate assocition error\n DataBinder binder = new DataBinder(positionWrapperBean, ZynapDefaultFormController.DEFAULT_COMMAND_NAME);\n Errors errors = binder.getBindingResult();\n positionValidator.validateSubjectPrimaryAssociations(positionWrapperBean, errors);\n assertEquals(1, errors.getErrorCount());\n FieldError error = errors.getFieldError(FIRST_PRIMARY_ASSOCIATION_SOURCE_FIELD);\n assertEquals(\"error.association.target.unique.required\", error.getCode());\n }", "@Test\r\n public void testCreateTourWithoutDuplicates_MultipleDups() {\r\n Tour tour = new Tour(new int[][]{{1, 1}, {2, 2}, {1, 1}, {3, 3}, {1, 1}, {1, 1}});\r\n Tour result = tour.createTourWithoutDuplicates();\r\n Tour expected = new Tour(new int[][]{{1, 1}, {2, 2}, {3, 3}});\r\n assertTrue(result.toString(), expected.isEqual(result));\r\n }", "int insertSelective(TSubjectInfo record);", "public static void main(String[] args) {\n\n ListNode head = new ListNode(1);\n ListNode node2 = new ListNode(1);\n ListNode node3 = new ListNode(1);\n ListNode node4 = new ListNode(1);\n ListNode node5 = new ListNode(1);\n ListNode node6 = new ListNode(2);\n\n node5.next = node6;\n node4.next = node5;\n node3.next = node4;\n node2.next = node3;\n head.next = node2;\n\n removeDuplicateNodes(head);\n\n return;\n }", "void addIsVertexOf(Subdomain_group newIsVertexOf);", "@Test\n public void tr2()\n {\n Graph graph = new Graph(2);\n Set<Integer> sources = new TreeSet<Integer>();\n Set<Integer> targets = new TreeSet<Integer>();\n sources.add(0);\n targets.add(1);\n graph.addEdge(0,1);\n assertTrue(graph.reachable(sources, targets));\n\n\n }", "Boolean same(MultiSet<X> s);", "public static void main(String[] args) {\n\r\n TreeSet<point> ts1 = new TreeSet<>();\r\n ts1.add(new point(1,1));\r\n ts1.add(new point(5, 5));\r\n ts1.add(new point(5, 2));\r\n\r\n System.out.println(ts1);\r\n }", "public static void main(String[] args) {\n\t\t\r\n\t\t TreeSet<String> treeset = new TreeSet<String>();\r\n\t\t treeset.add(\"Good\");\r\n\t\t treeset.add(\"For\");\r\n\t\t treeset.add(\"Health\");\r\n\t\t //Add Duplicate Element\r\n\t\t treeset.add(\"Good\");\r\n\t\t System.out.println(\"TreeSet : \");\r\n\t\t for (String temp : treeset) {\r\n\t\t System.out.println(temp);\r\n\t\t }\r\n\t\t }", "public void containsNoDuplicates() {\n List<Entry<T>> duplicates = Lists.newArrayList();\n for (Multiset.Entry<T> entry : LinkedHashMultiset.create(getSubject()).entrySet()) {\n if (entry.getCount() > 1) {\n duplicates.add(entry);\n }\n }\n if (!duplicates.isEmpty()) {\n failWithRawMessage(\"%s has the following duplicates: <%s>\", getDisplaySubject(), duplicates);\n }\n }", "private void writeSuccessors(INode prev, Collection<Node> succs) {\n Label prevKey = trapwriter.localID(prev);\n for (Node succ : succs) writeSuccessor(prevKey, succ);\n }", "public static void main(String[] args) {\n Trip diving = new Trip(\"ScubaDiving\", new Money(2000.00, Currency.GBP),\n new HashSet<Gear>(Arrays.asList(Gear.BCD, Gear.DIVING_SUITS)),\n LocalDate.of(2021, 5, 3),\n new HashSet<Qualification>(Arrays.asList(Qualification.PADI_ADVANCED_OPEN_WATER)));\n\n // trip 2 - freediving trip\n // price per person\n Trip freeDiving = new Trip(\"FreeDiving\",\n new Money(500.00, Currency.GBP),\n new HashSet<Gear>(Arrays.asList(Gear.FREEDIVING_FINS, Gear.FREEDIVING_WET_SUITS, Gear.FREEDIVING_MASK)),\n LocalDate.of(2021, 8, 18),\n new HashSet<Qualification>(Arrays.asList(Qualification.AIDA_2)));\n\n // Lynn person detail\n Person lynn = new Person(\"Lynn\",\n new HashSet<Gear>(Arrays.asList(Gear.BCD, Gear.DIVING_SUITS)),\n new Money(2000.00, Currency.GBP),\n new HashSet<LocalDate>(Arrays.asList(LocalDate.of(2021, 5, 1), LocalDate.of(2021, 5, 2),\n LocalDate.of(2021, 5, 3))),\n new HashSet<Qualification>(Arrays.asList(Qualification.PADI_ADVANCED_OPEN_WATER, Qualification.PADI_OPEN_WATER)));\n\n // Tao person detail\n Person tao = new Person(\"TAO\",\n new HashSet<Gear>(Arrays.asList(Gear.BCD, Gear.DIVING_SUITS, Gear.FREEDIVING_MASK, Gear.FREEDIVING_WET_SUITS, Gear.FREEDIVING_FINS)),\n new Money(10000.00, Currency.GBP),\n new HashSet<LocalDate>(Arrays.asList(LocalDate.of(2021, 8, 18), LocalDate.of(2021, 5, 2),\n LocalDate.of(2021, 5, 3))),\n new HashSet<Qualification>(Arrays.asList(Qualification.PADI_ADVANCED_OPEN_WATER, Qualification.PADI_OPEN_WATER, Qualification.AIDA_2, Qualification.AIDA_3)));\n\n HashSet<Person> persons = new HashSet<>();\n HashSet<Trip> trips = new HashSet<>();\n\n persons.add(lynn);\n persons.add(tao);\n trips.add(diving);\n trips.add(freeDiving);\n\n// findTrip(persons, trips);\n\n Trip tripToGo = tripWithMaxPersons(persons, trips);\n\n System.out.println(\"Trip to go: \" + tripToGo.getName());\n System.out.println(\"=================================\");\n\n\n HashMap<Trip, HashSet<Person>> tripsAndPersons = findWhoReady(persons, trips);\n for(Trip trip: tripsAndPersons.keySet()){\n System.out.println(\"Trip \" + trip.getName() + \" ready: \" );\n HashSet<Person> personPerTrip = tripsAndPersons.get(trip);\n for(Person person: personPerTrip) {\n System.out.println(person.getName());\n }\n System.out.println(\"-------------------------------\");\n\n }\n\n\n // currency EURO\n // exchange rate?\n\n\n\n }", "@Test\n public void tr1()\n {\n Graph graph = new Graph(2);\n Set<Integer> sources = new TreeSet<Integer>();\n Set<Integer> targets = new TreeSet<Integer>();\n sources.add(0);\n targets.add(1);\n assertFalse(graph.reachable(sources, targets));\n }", "int insertSelective(Subject record);", "@Test\n\tpublic void testAddLinkOkMultNtoNLinkedHashSet() {\n\t\t// configure collection properties of Location and ClosingPeriod\n\t\t// to use TreeSet as collection implementing class\n\t\t((TypePropertyCollection) (new Location()).getProperty(\"closedons\").getType())\n\t\t\t\t.setCollectionClass(LinkedHashSet.class);\n\t\t((TypePropertyCollection) (new ClosingPeriod()).getProperty(\"locations\").getType())\n\t\t\t\t.setCollectionClass(LinkedHashSet.class);\n\t\ttstNMAssociationInverse();\n\t}", "public boolean addTopology(Topology top);", "@Override\n\tpublic void linkInstances(Tuple<String,String> queries){\n\t\toutputFile = \"\";\n\n\t\tinstancesLinkedSet = new CopyOnWriteArraySet<Tuple<String,String>>();\n\t\tif(nonEmptyQueries(queries) && !sampleInstances.isEmpty()){\n\t\t\tsampleInstances.stream().parallel().forEach(pair-> linkPairOfInstances(pair,queries));\n\t\t}\n\t}", "@Test\n public void tr3()\n {\n Graph graph = new Graph(2);\n Set<Integer> sources = new TreeSet<Integer>();\n Set<Integer> targets = new TreeSet<Integer>();\n sources.add(0);\n targets.add(1);\n graph.addEdge(1,0);\n assertFalse(graph.reachable(sources, targets));\n }", "public static void main(String[] args) {\n\t\tNode n = new Node(0);\r\n\t\tNode dummy = n;\r\n\t\tn.next = new Node(1);\r\n\t\tn = n.next;\r\n\t\tn.next = new Node(1);\r\n\t\tn = n.next;\r\n\t\tfor (int i = 1; i < 10; i ++) {\r\n\t\t\tn.next = new Node(i);\r\n\t\t\tn = n.next;\r\n\t\t}\r\n\t\tremoveDuplicate(dummy);\r\n\t\twhile(dummy != null) {\r\n\t\t\tSystem.out.println(dummy.val);\r\n\t\t\tdummy = dummy.next;\r\n\t\t}\r\n\t\t\r\n\t}", "private static void tetherCopiedElements(ArrayList<DiagramElement> elements) throws IOException\r\n {\n Iterator<DiagramElement> elIt = elements.iterator();\r\n ArrayList<Relationship> relationships = new ArrayList<>();\r\n while(elIt.hasNext())\r\n {\r\n DiagramElement e = elIt.next();\r\n if(e.isRelationship())\r\n relationships.add((Relationship)e);\r\n }\r\n \r\n // Tether relationships if needed\r\n Iterator<Relationship> relIt = relationships.iterator();\r\n while(relIt.hasNext())\r\n {\r\n Relationship r = relIt.next();\r\n int srcUid = r.getSourceClassUid();\r\n int destUid = r.getDestinationClassUid();\r\n if((srcUid > 0) || (destUid > 0))\r\n {\r\n elIt = elements.iterator();\r\n while(elIt.hasNext())\r\n {\r\n DiagramElement e = elIt.next();\r\n if((e.getElementType().equals(\"Class\")) && \r\n (e.getUniqueId() == srcUid))\r\n {\r\n r.tetherSourceToClass((ClassElement)e);\r\n }\r\n if((e.getElementType().equals(\"Class\")) && \r\n (e.getUniqueId() == destUid))\r\n {\r\n r.tetherDestinationToClass((ClassElement)e);\r\n }\r\n }\r\n }\r\n }\r\n }", "public ArrayList<Triple> addContributorAnnotationTriples(Node subject ,DigitalRightsManagementBean digitalRightsManagementBean){\r\n\t\t\r\n\t\tString LOG_METHOD_NAME = \" ArrayList<Triple> addContributorAnnotationTriples(Node, DigitalRightsManagementBean)\";\r\n\t\tlog.debug(this.getClass() + TripleStoreConstants.LOG_BEGIN + LOG_METHOD_NAME);\r\n\t\t\r\n\t\tArrayList<Triple> tripleList = new ArrayList<>();\r\n\t\tNode predicate = null, predicate_value=null;\r\n\t\ttry{\t\t\t\t\t\t\r\n\t\t\t//copy right holder information\r\n\t\t\tpredicate = Node.createURI(TripleStoreConstants.URI_PREDICATE_TEN_CONTRIBUTOR);\r\n\t\t\tStringBuffer contributorAttributes = new StringBuffer();\r\n\t\t\t\r\n\t\t\t//id\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getContributor())){\r\n\t\t\t\tcontributorAttributes.append(TripleStoreConstants.ATTRIBUTE_ID);\r\n\t\t\t\tcontributorAttributes.append(\"=\");\r\n\t\t\t\tcontributorAttributes.append(digitalRightsManagementBean.getContributor());\r\n\t\t\t\tcontributorAttributes.append(\";\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//email\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getContributorEmail())){\r\n\t\t\t\tcontributorAttributes.append(TripleStoreConstants.ATTRIBUTE_EMAIL);\r\n\t\t\t\tcontributorAttributes.append(\"=\");\r\n\t\t\t\tcontributorAttributes.append(digitalRightsManagementBean.getContributorEmail());\r\n\t\t\t\tcontributorAttributes.append(\";\");\r\n\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t//approved\t\t\t\r\n\t\t\tboolean approved = (!Utils.isEmptyOrNull(digitalRightsManagementBean.getContributorApproved()) \r\n\t\t\t\t\t&& \"true\".equals(digitalRightsManagementBean.getContributorApproved()))?true:false;\r\n\t\t\tcontributorAttributes.append(TripleStoreConstants.ATTRIBUTE_APPROVED);\r\n\t\t\tcontributorAttributes.append(\"=\");\r\n\t\t\tcontributorAttributes.append(approved);\r\n\t\t\tcontributorAttributes.append(\";\");\r\n\t\t\t\t\t\t\r\n\t\t\t//cell phone\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getContributorCellPhone())){\r\n\t\t\t\tcontributorAttributes.append(TripleStoreConstants.ATTRIBUTE_CELL_PHONE);\r\n\t\t\t\tcontributorAttributes.append(\"=\");\r\n\t\t\t\tcontributorAttributes.append(digitalRightsManagementBean.getContributorCellPhone());\r\n\t\t\t\tcontributorAttributes.append(\";\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//office phone\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getContributorOfficePhone())){\r\n\t\t\t\tcontributorAttributes.append(TripleStoreConstants.ATTRIBUTE_OFFICE_PHONE);\r\n\t\t\t\tcontributorAttributes.append(\"=\");\r\n\t\t\t\tcontributorAttributes.append(digitalRightsManagementBean.getContributorOfficePhone());\r\n\t\t\t\tcontributorAttributes.append(\";\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//FAX\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getContributorFax())){\r\n\t\t\t\tcontributorAttributes.append(TripleStoreConstants.ATTRIBUTE_FAX);\r\n\t\t\t\tcontributorAttributes.append(\"=\");\r\n\t\t\t\tcontributorAttributes.append(digitalRightsManagementBean.getContributorFax());\r\n\t\t\t\tcontributorAttributes.append(\";\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//street address\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getContributorStreetAddress())){\r\n\t\t\t\tcontributorAttributes.append(TripleStoreConstants.ATTRIBUTE_STREET_ADDRESS);\r\n\t\t\t\tcontributorAttributes.append(\"=\");\r\n\t\t\t\tcontributorAttributes.append(digitalRightsManagementBean.getContributorStreetAddress());\r\n\t\t\t\tcontributorAttributes.append(\";\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//other address\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getContributorOtherAddress())){\r\n\t\t\t\tcontributorAttributes.append(TripleStoreConstants.ATTRIBUTE_OTHER_ADDRESS);\r\n\t\t\t\tcontributorAttributes.append(\"=\");\r\n\t\t\t\tcontributorAttributes.append(digitalRightsManagementBean.getContributorOtherAddress());\r\n\t\t\t\tcontributorAttributes.append(\";\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//city\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getContributorCity())){\r\n\t\t\t\tcontributorAttributes.append(TripleStoreConstants.ATTRIBUTE_CITY);\r\n\t\t\t\tcontributorAttributes.append(\"=\");\r\n\t\t\t\tcontributorAttributes.append(digitalRightsManagementBean.getContributorCity());\r\n\t\t\t\tcontributorAttributes.append(\";\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//state\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getContributorState())){\r\n\t\t\t\tcontributorAttributes.append(TripleStoreConstants.ATTRIBUTE_STATE);\r\n\t\t\t\tcontributorAttributes.append(\"=\");\r\n\t\t\t\tcontributorAttributes.append(digitalRightsManagementBean.getContributorState());\r\n\t\t\t\tcontributorAttributes.append(\";\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//state\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getContributorZipCode())){\r\n\t\t\t\tcontributorAttributes.append(TripleStoreConstants.ATTRIBUTE_ZIP_CODE);\r\n\t\t\t\tcontributorAttributes.append(\"=\");\r\n\t\t\t\tcontributorAttributes.append(digitalRightsManagementBean.getContributorZipCode());\r\n\t\t\t\tcontributorAttributes.append(\";\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//tribal affiliation\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getContributorTribalAffiliation())){\r\n\t\t\t\tcontributorAttributes.append(TripleStoreConstants.ATTRIBUTE_TRIBAL_AFFILIATION);\r\n\t\t\t\tcontributorAttributes.append(\"=\");\r\n\t\t\t\tcontributorAttributes.append(digitalRightsManagementBean.getContributorTribalAffiliation());\r\n\t\t\t\tcontributorAttributes.append(\";\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tpredicate_value = Node.createLiteral(contributorAttributes.toString());\r\n\t\t\ttripleList.add(new Triple(subject, predicate, predicate_value));\r\n\t\t}catch(Exception ex)\r\n\t\t{\r\n\t\t\tlog.error(ex);\r\n\t\t\tthrow ex;\r\n\t\t}finally{\r\n\t\t\tlog.debug(this.getClass() + TripleStoreConstants.LOG_END + LOG_METHOD_NAME);\r\n\t\t}\r\n\t\t\r\n\t\treturn tripleList;\r\n\t}", "public static void main(String[] args) {\n\t\t\r\n\t\tRemoveDuplicates r=new RemoveDuplicates();\r\n\t\tNode4 n1=new Node4(3);\r\n\t\tn1.next=null;\r\n\t\t//n1.next.next=new Node4(7);\r\n\t//\tn1.next.next.next=new Node4(6);\r\n\t\t//n1.next.next.next.next=new Node4(7);\r\n\t n1=r.removingDuplicates(n1);\r\n\twhile(n1!=null)\r\n\t\t{\tSystem.out.print(n1.val+\"->\");\r\n\t\t\tn1=n1.next;}\r\n\t\r\n\t\t\r\n\t}", "public void makePreferredOTTOLRelationshipsConflicts(){\n \t\tTransaction tx;\n \t\tString name = \"life\";\n \t\tIndexHits<Node> foundNodes = findTaxNodeByName(name);\n Node firstNode = null;\n if (foundNodes.size() < 1){\n System.out.println(\"name '\" + name + \"' not found. quitting.\");\n return;\n } else if (foundNodes.size() > 1) {\n System.out.println(\"more than one node found for name '\" + name + \"'not sure how to deal with this. quitting\");\n } else {\n for (Node n : foundNodes)\n firstNode = n;\n }\n \t\tTraversalDescription CHILDOF_TRAVERSAL = Traversal.description()\n \t\t\t\t.relationships( RelTypes.TAXCHILDOF,Direction.INCOMING );\n \t\tSystem.out.println(firstNode.getProperty(\"name\"));\n \t\tint count = 0;\n \t\ttx = graphDb.beginTx();\n \t\ttry{\n \t\t\tfor(Node friendnode : CHILDOF_TRAVERSAL.traverse(firstNode).nodes()){\n \t\t\t\tboolean conflict = false;\n \t\t\t\tString endNode = \"\";\n \t\t\t\tRelationship ncbirel = null;\n \t\t\t\tRelationship ottolrel = null;\n \t\t\t\tfor(Relationship rel : friendnode.getRelationships(Direction.OUTGOING)){\n \t\t\t\t\tif (rel.getEndNode() == rel.getStartNode()){\n \t\t\t\t\t\tcontinue;\n \t\t\t\t\t}else{\n \t\t\t\t\t\tif (endNode == \"\")\n \t\t\t\t\t\t\tendNode = (String) rel.getEndNode().getProperty(\"name\");\n \t\t\t\t\t\tif ((String)rel.getEndNode().getProperty(\"name\") != endNode){\n \t\t\t\t\t\t\tconflict = true;\n \t\t\t\t\t\t}\n \t\t\t\t\t\tif(((String)rel.getProperty(\"source\")).compareTo(\"ncbi\")==0)\n \t\t\t\t\t\t\tncbirel = rel;\n \t\t\t\t\t}\n \t\t\t\t}\n \t\t\t\tif (conflict && ncbirel != null){\n \t\t\t\t\tcount += 1;\n //\t\t\t\t\tSystem.out.println(\"would make one from \"+ncbirel.getStartNode().getProperty(\"name\")+\" \"+ncbirel.getEndNode().getProperty(\"name\"));\n \t\t\t\t\tif(ncbirel.getStartNode()!=ncbirel.getEndNode()){\n \t\t\t\t\t\tncbirel.getStartNode().createRelationshipTo(ncbirel.getEndNode(), RelTypes.PREFTAXCHILDOF);\n \t\t\t\t\t\tRelationship newrel2 = ncbirel.getStartNode().createRelationshipTo(ncbirel.getEndNode(), RelTypes.TAXCHILDOF);\n \t\t\t\t\t\tnewrel2.setProperty(\"source\", \"ottol\");\n \t\t\t\t\t}else{\n \t\t\t\t\t\tSystem.out.println(\"would make cycle from \"+ncbirel.getEndNode().getProperty(\"name\"));\n \t\t\t\t\t}\n \t\t\t\t\t\n \t\t\t\t}\n \t\t\t\tif(count % transaction_iter == 0)\n \t\t\t\t\tSystem.out.println(count);\n \t\t\t}\n \t\t\ttx.success();\n \t\t}finally{\n \t\t\ttx.finish();\n \t\t}\n \t}", "public static void main(String[] args)\r\n\t{\r\n\t\r\n\t\tSet<String> lhs = new LinkedHashSet<>();\r\n\t\tlhs.add(\"Srividhya\");\r\n\t\tlhs.add(\"Srinath\");\r\n\t\tlhs.add(\"Shringesh\");\r\n\t\tlhs.add(\"Srividhya\");\r\n\t\tlhs.add(null);\r\n\t\t\r\n\t\tfor (String lhselement : lhs)\r\n\t\t{\r\n\t\t\tSystem.out.println(\"print the linked hasset elemenet :\"+lhselement);\r\n\t\t}\r\n\t\t\r\n\r\n\t}", "public ArrayList<Triple> addStoryProviderAnnotationTriples(Node subject ,DigitalRightsManagementBean digitalRightsManagementBean){\r\n\t\t\r\n\t\tString LOG_METHOD_NAME = \" ArrayList<Triple> addStoryProviderAnnotationTriples(Node, DigitalRightsManagementBean)\";\r\n\t\tlog.debug(this.getClass() + TripleStoreConstants.LOG_BEGIN + LOG_METHOD_NAME);\r\n\t\t\r\n\t\tArrayList<Triple> tripleList = new ArrayList<>();\r\n\t\tNode predicate = null, predicate_value=null;\r\n\t\ttry{\t\t\t\t\t\t\r\n\t\t\t//copy right holder information\r\n\t\t\tpredicate = Node.createURI(TripleStoreConstants.URI_PREDICATE_TEN_STORY_PROVIDER);\r\n\t\t\tStringBuffer storyProviderAttributes = new StringBuffer();\r\n\t\t\t\r\n\t\t\t//id\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getStoryProvider())){\r\n\t\t\t\tstoryProviderAttributes.append(TripleStoreConstants.ATTRIBUTE_ID);\r\n\t\t\t\tstoryProviderAttributes.append(\"=\");\r\n\t\t\t\tstoryProviderAttributes.append(digitalRightsManagementBean.getStoryProvider());\r\n\t\t\t\tstoryProviderAttributes.append(\";\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//email\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getStoryProviderEmail())){\r\n\t\t\t\tstoryProviderAttributes.append(TripleStoreConstants.ATTRIBUTE_EMAIL);\r\n\t\t\t\tstoryProviderAttributes.append(\"=\");\r\n\t\t\t\tstoryProviderAttributes.append(digitalRightsManagementBean.getStoryProviderEmail());\r\n\t\t\t\tstoryProviderAttributes.append(\";\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//cell phone\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getStoryProviderCellPhone())){\r\n\t\t\t\tstoryProviderAttributes.append(TripleStoreConstants.ATTRIBUTE_CELL_PHONE);\r\n\t\t\t\tstoryProviderAttributes.append(\"=\");\r\n\t\t\t\tstoryProviderAttributes.append(digitalRightsManagementBean.getStoryProviderCellPhone());\r\n\t\t\t\tstoryProviderAttributes.append(\";\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//office phone\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getStoryProviderOfficePhone())){\r\n\t\t\t\tstoryProviderAttributes.append(TripleStoreConstants.ATTRIBUTE_OFFICE_PHONE);\r\n\t\t\t\tstoryProviderAttributes.append(\"=\");\r\n\t\t\t\tstoryProviderAttributes.append(digitalRightsManagementBean.getStoryProviderOfficePhone());\r\n\t\t\t\tstoryProviderAttributes.append(\";\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//FAX\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getStoryProviderFax())){\r\n\t\t\t\tstoryProviderAttributes.append(TripleStoreConstants.ATTRIBUTE_FAX);\r\n\t\t\t\tstoryProviderAttributes.append(\"=\");\r\n\t\t\t\tstoryProviderAttributes.append(digitalRightsManagementBean.getStoryProviderFax());\r\n\t\t\t\tstoryProviderAttributes.append(\";\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//street address\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getStoryProviderStreetAddress())){\r\n\t\t\t\tstoryProviderAttributes.append(TripleStoreConstants.ATTRIBUTE_STREET_ADDRESS);\r\n\t\t\t\tstoryProviderAttributes.append(\"=\");\r\n\t\t\t\tstoryProviderAttributes.append(digitalRightsManagementBean.getStoryProviderStreetAddress());\r\n\t\t\t\tstoryProviderAttributes.append(\";\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//other address\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getStoryProviderOtherAddress())){\r\n\t\t\t\tstoryProviderAttributes.append(TripleStoreConstants.ATTRIBUTE_OTHER_ADDRESS);\r\n\t\t\t\tstoryProviderAttributes.append(\"=\");\r\n\t\t\t\tstoryProviderAttributes.append(digitalRightsManagementBean.getStoryProviderOtherAddress());\r\n\t\t\t\tstoryProviderAttributes.append(\";\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//city\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getStoryProviderCity())){\r\n\t\t\t\tstoryProviderAttributes.append(TripleStoreConstants.ATTRIBUTE_CITY);\r\n\t\t\t\tstoryProviderAttributes.append(\"=\");\r\n\t\t\t\tstoryProviderAttributes.append(digitalRightsManagementBean.getStoryProviderCity());\r\n\t\t\t\tstoryProviderAttributes.append(\";\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//state\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getStoryProviderState())){\r\n\t\t\t\tstoryProviderAttributes.append(TripleStoreConstants.ATTRIBUTE_STATE);\r\n\t\t\t\tstoryProviderAttributes.append(\"=\");\r\n\t\t\t\tstoryProviderAttributes.append(digitalRightsManagementBean.getStoryProviderState());\r\n\t\t\t\tstoryProviderAttributes.append(\";\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//state\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getStoryProviderZipCode())){\r\n\t\t\t\tstoryProviderAttributes.append(TripleStoreConstants.ATTRIBUTE_ZIP_CODE);\r\n\t\t\t\tstoryProviderAttributes.append(\"=\");\r\n\t\t\t\tstoryProviderAttributes.append(digitalRightsManagementBean.getStoryProviderZipCode());\r\n\t\t\t\tstoryProviderAttributes.append(\";\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tpredicate_value = Node.createLiteral(storyProviderAttributes.toString());\r\n\t\t\ttripleList.add(new Triple(subject, predicate, predicate_value));\r\n\t\t}catch(Exception ex)\r\n\t\t{\r\n\t\t\tlog.error(ex);\r\n\t\t\tthrow ex;\r\n\t\t}finally{\r\n\t\t\tlog.debug(this.getClass() + TripleStoreConstants.LOG_END + LOG_METHOD_NAME);\r\n\t\t}\r\n\t\t\r\n\t\treturn tripleList;\r\n\t}", "public void test_ck_02() {\n OntModel vocabModel = ModelFactory.createOntologyModel();\n ObjectProperty p = vocabModel.createObjectProperty(\"p\");\n OntClass A = vocabModel.createClass(\"A\");\n \n OntModel workModel = ModelFactory.createOntologyModel();\n Individual sub = workModel.createIndividual(\"uri1\", A);\n Individual obj = workModel.createIndividual(\"uri2\", A);\n workModel.createStatement(sub, p, obj);\n }", "void addIsNodeOf(Subdomain newIsNodeOf);", "public static void createGraph(MinimumTrialsSourceToDestWord graph, String[] dictionary)\n {\n // creates nodes: one for each string in the list\n for (int i = 0; i < dictionary.length; i++)\n {\n graph.addNode(dictionary[i]);\n }\n \n // add edges only between the nodes which have distance of 1 between them\n for (int i = 0; i < dictionary.length; i++)\n {\n for (int j = 0; j < dictionary.length; j++)\n {\n if (editDistance(dictionary[i], dictionary[j]) == 1)\n {\n graph.addEdge(dictionary[i], dictionary[j], 1);\n }\n }\n }\n }", "public static void Pubmed() throws IOException \n\t{\n\t\t\n\t\tMap<String,Map<String,List<String>>> trainset = null ; \n\t\t//Map<String, List<String>> titles = ReadXMLFile.ReadCDR_TestSet_BioC() ;\n\t File fFile = new File(\"F:\\\\TempDB\\\\PMCxxxx\\\\articals.txt\");\n\t List<String> sents = readfiles.readLinesbylines(fFile.toURL()); \n\t\t\n\t\tSentinfo sentInfo = new Sentinfo() ; \n\t\t\n\t\ttrainset = ReadXMLFile.DeserializeT(\"F:\\\\eclipse64\\\\eclipse\\\\TrainsetTest\") ;\n\t\tLinkedHashMap<String, Integer> TripleDict = new LinkedHashMap<String, Integer>();\n\t\tMap<String,List<Integer>> Labeling= new HashMap<String,List<Integer>>() ;\n\t\t\n\t\tMetaMapApi api = new MetaMapApiImpl();\n\t\tList<String> theOptions = new ArrayList<String>();\n\t theOptions.add(\"-y\"); // turn on Word Sense Disambiguation\n\t theOptions.add(\"-u\"); // unique abrevation \n\t theOptions.add(\"--negex\"); \n\t theOptions.add(\"-v\");\n\t theOptions.add(\"-c\"); // use relaxed model that containing internal syntactic structure, such as conjunction.\n\t if (theOptions.size() > 0) {\n\t api.setOptions(theOptions);\n\t }\n\t \n\t\t\n\t\tif (trainset == null )\n\t\t{\n\t\t\ttrainset = new HashMap<String, Map<String,List<String>>>();\n\t\t}\n\t\t\n\t\t\n\t\t/************************************************************************************************/\n\t\t//Map<String, Integer> bagofwords = semantic.getbagofwords(titles) ; \n\t\t//trainxmllabeling(trainset,bagofwords); \n\t\t/************************************************************************************************/\n\t\t\n\t\t\n\t\tint count = 0 ;\n\t\tint count1 = 0 ;\n\t\tModel candidategraph = ModelFactory.createDefaultModel(); \n\t\tMap<String,List<String>> TripleCandidates = new HashMap<String, List<String>>();\n\t\tfor(String title : sents)\n\t\t{\n\t\t\t\n\t\t\tModel Sentgraph = sentInfo.graph;\n\t\t\tif (trainset.containsKey(title))\n\t\t\t\tcontinue ; \n\t\t\t//8538\n\t\t\tcount++ ; \n\n\t\t\tMap<String, List<String>> triples = null ;\n\t\t\t// get the goldstandard concepts for current title \n\t\t\tList<String> GoldSndconcepts = new ArrayList<String> () ;\n\t\t\tMap<String, Integer> allconcepts = null ; \n\t\t\t\n\t\t\t// this is optional and not needed here , it used to measure the concepts recall \n\t\t\tMap<String, List<String>> temptitles = new HashMap<String, List<String>>(); \n\t\t\ttemptitles.put(title,GoldSndconcepts) ;\n\t\t\t\t\t\t\n\t\t\t// get the concepts \n\t\t\tallconcepts = ConceptsDiscovery.getconcepts(temptitles,api);\n\t\t\t\n\t\t\tArrayList<String> RelInstances1 = SyntaticPattern.getSyntaticPattern(title,allconcepts,FILE_NAME_Patterns) ;\n\t\t\t//Methylated-CpG island recovery assay: a new technique for the rapid detection of methylated-CpG islands in cancer\n\t\t\tif (RelInstances1 != null && RelInstances1.size() > 0 )\n\t\t\t{\n\t\t\t\tcount1++ ;\n\t\t\t\tTripleCandidates.put(title, RelInstances1) ;\n\t\t\t\t\n\t\t\t\tif (count1 == 30)\n\t\t\t\t{\n\t\t\t\t\tReadXMLFile.Serialized(TripleCandidates,\"F:\\\\eclipse64\\\\eclipse\\\\Relationdisc1\") ;\n\t\t\t\t\tcount1 = 0 ;\n\t\t\t\t}\n\t\t\t}\n \n\t\t}\n\t\t\n\t\tint i = 0 ;\n\t\ti++ ; \n\t}", "public Trips(Trip[] trips) {\n filters = new HashMap<>();\n comparator = Comparator.comparing(Trip::getTravelTime);\n this.trips = new ArrayList<>(Arrays.asList(trips));\n modifiedSinceLastResult = true;\n }", "@Override\n\tpublic String addSubjects(Subject[] subject) throws myException {\n\t\tString str = null;\n\t\tConnection con = GetConnection.getConnection();\n\t\tPreparedStatement st = null;\n\t\tString query2 = \"insert into subject values(?,?,?)\";\n\t\ttry {\n\n\t\t\tfor (int i = 0; i < subject.length; i++) {\n\t\t\t\tst = con.prepareStatement(query2);\n\t\t\t\tst.setShort(1, subject[i].getSubjectId());\n\t\t\t\tst.setString(2, subject[i].getSubjectName());\n\t\t\t\tst.setString(3, subject[i].getTeacherName());\n\t\t\t\tst.execute();\n\t\t\t}\n\t\t\tstr = \"subjects added successfully\";\n\t\t} catch (Exception e) {\n\t\t\tthrow new myException(e.getMessage());\n\t\t}\n\n\t\treturn str;\n\t}", "private static void addTripToGraph(Trip newTrip, Graph<Node, WeightEdge> graph, List<Node> depots, List<Node> trips, Problem problem){\n Node tripStart = new Node(newTrip, 0, false);\n Node tripEnd = new Node(newTrip, 0, true);\n\n graph.addVertex(tripStart);\n graph.addVertex(tripEnd);\n\n // Add weightEdgeWithBounders from trip startPoint to trip endPoint\n // lowerBound and upperBound for this edges is 1, because we are looking for solution that saturates all trips\n WeightEdge tripInternalWeightEdge = new BoundedWeightEdge(1,1);\n graph.addEdge(tripStart, tripEnd, tripInternalWeightEdge);\n graph.setEdgeWeight(tripInternalWeightEdge, 0);\n\n for(Node depot : depots){\n if(depot.isExitNode()){ // is source\n // add weightEdgeWithBounders from depot source to trip startPoint\n WeightEdge depotToTripWeightEdge = new BoundedWeightEdge(0, 1);\n graph.addEdge(depot, tripStart, depotToTripWeightEdge);\n graph.setEdgeWeight(depotToTripWeightEdge, problem.getCost(depot.getLocation(), tripStart.getLocation()).toMinutes());\n }else{ // is depot sink\n // add weightEdgeWithBounders from trip endPoint to depot sink\n WeightEdge tripToDepotWeightEdge = new BoundedWeightEdge(0, 1);\n graph.addEdge(tripEnd, depot, tripToDepotWeightEdge);\n graph.setEdgeWeight(tripToDepotWeightEdge, problem.getCost(tripEnd.getLocation(), depot.getLocation()).toMinutes());\n }\n }\n\n for(Node otherTrip : trips){\n if(otherTrip.isExitNode()){\n // add feasible edges from all trips endPoints to this trip startPoint\n if(isFeasibleEdge(otherTrip, tripStart, problem)){\n WeightEdge otherTripToThisTrip = new BoundedWeightEdge(0, 1);\n graph.addEdge(otherTrip, tripStart, otherTripToThisTrip);\n graph.setEdgeWeight(otherTripToThisTrip, problem.getCost(otherTrip.getLocation(), tripStart.getLocation()).toMinutes());\n }\n }else{\n // add feasible edges from this trip endPoint to all trips startPoints\n if(isFeasibleEdge(tripEnd, otherTrip, problem)){\n WeightEdge thisTripToOtherTrip = new BoundedWeightEdge(0, 1);\n graph.addEdge(tripEnd, otherTrip, thisTripToOtherTrip);\n graph.setEdgeWeight(thisTripToOtherTrip, problem.getCost(tripEnd.getLocation(), otherTrip.getLocation()).toMinutes());\n }\n }\n }\n\n // add this nodes in our trips list;\n trips.add(tripStart);\n trips.add(tripEnd);\n }", "@Test\n\tpublic void testEquivalentSequences(){\n\t\tchord = new Chord(1, Tonality.maj, 4);\n\t\tChord chord2 = new Chord(1, Tonality.maj, 4);\n\t\tassertTrue(chord.equals(chord2));\n\t\tassertTrue(chord2.equals(chord));\n\n\t\tLinkedList<Chord> sequence = new LinkedList<Chord>();\n\t\tLinkedList<Chord> sequence2 = new LinkedList<Chord>();\n\n\t\tsequence.add(chord);\n\t\tsequence.add(chord2);\n\t\tsequence2.add(chord);\n\t\tsequence2.add(chord2);\n\t\tassertEquals(sequence, sequence2);\n\n\t\tsequence2.clear();\n\t\tsequence2.addAll(sequence);\n\t\tassertEquals(sequence, sequence2);\n\t}", "private MetaSparqlRequest createInsertMT1() {\n\t\tString sparqlStr = \"\"+\n\t\t\t\t\"PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>\\r\\n\" + \n\t\t\t\t\"PREFIX ub: \"+_ontology+\"\\r\\n\" + \n\t\t\t\t\"INSERT DATA { GRAPH \"+_graph+\" { \"+\n\t\t\t\tbuilderBindInsert\n\t\t\t\t+\" } }\";\n\t\t\n\t\tSparqlObj sparql= new SparqlObj(sparqlStr) ;\n\t\tEndPoint endPointHost= new EndPoint(_protocol,_host,_port,\"/update\");\n\t\tMetaSparqlRequest msr = new MetaSparqlRequest(new SparqlRequest(sparql,endPointHost));\n\t\tmsr.setTripleInsert(createTripleBaseMT1());\n\t\treturn msr;\n\t}", "int insert(TSubjectInfo record);", "@Test\n\tpublic void testAddLinkOkMultNtoNArrayList() {\n\t\t// configure collection properties of Location and ClosingPeriod\n\t\t// to use TreeSet as collection implementing class\n\t\t((TypePropertyCollection) (new Location()).getProperty(\"closedons\").getType())\n\t\t\t\t.setCollectionClass(ArrayList.class);\n\t\t((TypePropertyCollection) (new ClosingPeriod()).getProperty(\"locations\").getType())\n\t\t\t\t.setCollectionClass(ArrayList.class);\n\t\ttstNMAssociationInverse();\n\t}", "public void minimisation4( ArrayList<Node>convrt1, Topology tp)\n {\n for ( int i=0; i<tp.getNodes().size(); i++ )\n {\n Node n= tp.getNodes().get(i);\n List<Link>allLinks = n.getLinks();\n boolean allLinksConnected= true;\n for ( int j=0; j<allLinks.size();j++ )\n {\n Link l= allLinks.get(j);\n if ( l.getColor()!=Color.orange)\n allLinksConnected=false;\n }\n List<Node> neighbors= n.getNeighbors();\n boolean allNeighborsConvert=true;\n for ( int j=0; j<neighbors.size();j++ )\n {\n Node n1= neighbors.get(j);\n if ( (convrt1.contains(n1))== false )\n {\n allNeighborsConvert=false;\n }\n }\n if ( allLinksConnected==true && allNeighborsConvert==true )\n {\n if ( n instanceof Ipv6)\n {\n ((Ipv6) n).setType(\"Conv\");\n n.setIcon(\"./src/img/Conv.png\");\n convrt1.add(n);\n }\n else if ( n instanceof Ipv4)\n {\n ((Ipv4) n).setType(\"Conv\");\n n.setIcon(\"./src/img/Conv.png\");\n convrt1.add(n);\n }\n\n for ( int m=0; m< n.getNeighbors().size(); m++ )\n {\n Node n2= n.getNeighbors().get(m);\n if ( n2 instanceof Ipv6)\n {\n ((Ipv6) n2).setType(\"IPV6\");\n n2.setIcon(\"./src/img/ipv6.png\");\n convrt1.remove(n2);\n }\n else if ( n2 instanceof Ipv4)\n {\n ((Ipv4) n2).setType(\"IPV4\");\n n2.setIcon(\"./src/img/ipv4.png\");\n convrt1.remove(n2);\n }\n }\n }\n }\n }", "void reorganizeTriples(ProgressListener listener);", "public static HashMap<String, List<SpanNode>> persistCdaResult(Set<Span> cpaResult, String path) {\n\n\t\tDate timestamp = new Date();\n\t\tSimpleDateFormat simpleDateFormat = new SimpleDateFormat(\"yyyy.MM.dd-HHmmss\");\n\t\tString timestampFolder = simpleDateFormat.format(timestamp);\n\n\t\tString pathWithDateStamp = path + File.separator + timestampFolder;\n\n\t\tHashMap<String, List<SpanNode>> persistedNodes = new HashMap<>();\n\t\tif (cpaResult != null)\n\t\t\tfor (Span span : cpaResult)\n\t\t\t\tif (span != null) {\n\t\t\t\t\t// naming of each single conflict\n\t\t\t\t\tString folderName = span.getRule1().getName() + \", \" + span.getRule2().getName();\n\n\t\t\t\t\tint numberForRulePair = 1;\n\n\t\t\t\t\tif (persistedNodes.containsKey(folderName)) {\n\t\t\t\t\t\tnumberForRulePair = persistedNodes.get(folderName).size() + 1;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tpersistedNodes.put(folderName, new ArrayList<SpanNode>());\n\t\t\t\t\t}\n\n\t\t\t\t\tString spanKind = span.getClass().getSimpleName();\n//\t\t\tReplace(str, @\"([a-z])([A-Z])\", \"$1 $2\")\n\t\t\t\t\tspanKind = spanKind.replaceAll(\"([a-z])([A-Z])\", \"$1 $2\");\n\n\t\t\t\t\tString formatedNumberForRulePair = new DecimalFormat(\"00\").format(numberForRulePair);\n\n\t\t\t\t\tString numberedNameOfCPKind = \"(\" + formatedNumberForRulePair + \") \" + spanKind;\n\n//\t\t\t// persist a single critical pair.\n//\t\t\tSpanNode newCriticalPairNode = persistSingleCriticalPair(span, numberedNameOfCPKind,\n//\t\t\t\t\tpathWithDateStamp);\n\n\t\t\t\t\tString pathForCurrentCriticalPair = pathWithDateStamp + File.separator + span.getRule1().getName()\n\t\t\t\t\t\t\t+ \"_AND_\" + span.getRule2().getName() + File.separator + numberedNameOfCPKind\n\t\t\t\t\t\t\t+ File.separator;\n\n\t\t\t\t\tResourceSet commonResourceSet = new ResourceSetImpl();\n\t\t\t\t\t// save the first rule in the file system\n\t\t\t\t\tString fileNameRule1 = \"(1)\" + span.getRule1().getName() + \".henshin\";\n\t\t\t\t\tString fullPathRule1 = pathForCurrentCriticalPair + fileNameRule1;\n\t\t\t\t\tURI firstRuleURI = saveRuleInFileSystem(commonResourceSet, span.getRule1(), fullPathRule1);\n\n//\t\t\t// save the minimal model in the file system\n//\t\t\tString fileNameMinimalModel = \"minimal-model\" + \".ecore\";\n//\t\t\tString fullPathMinimalModel = pathForCurrentCriticalPair + fileNameMinimalModel;\n\n//\t\t\tURI overlapURI = saveMinimalModelInFileSystem(commonResourceSet, minimalModel, fullPathMinimalModel);\n\n\t\t\t\t\t// save the second rule in the file system\n\t\t\t\t\tString fileNameRule2 = \"(2)\" + span.getRule2().getName() + \".henshin\";\n\t\t\t\t\tString fullPathRule2 = pathForCurrentCriticalPair + fileNameRule2;\n\t\t\t\t\tURI secondRuleURI = saveRuleInFileSystem(commonResourceSet, span.getRule2(), fullPathRule2);\n\n\t\t\t\t\t// save a dummy for the HenshinCPEditor\n\t\t\t\t\tString fileName = \"dummy.henshinCp\";\n\t\t\t\t\tString fullPath = pathForCurrentCriticalPair + fileName;\n\t\t\t\t\tURI criticalPairURI = saveRuleInFileSystem(commonResourceSet, span.graph, fullPath);\n\n\t\t\t\t\t// save the minimal model in the file system\n\t\t\t\t\tString fileNameMinimalModel = \"minimal-model\" + \".ecore\";\n\t\t\t\t\tString fullPathMinimalModel = pathForCurrentCriticalPair + fileNameMinimalModel;\n\t\t\t\t\tEPackage spanModel = span.graphToEPackage();\n\n\t\t\t\t\tURI overlapURI = saveMinimalModelInFileSystem(commonResourceSet, spanModel, fullPathMinimalModel);\n\n\t\t\t\t\tpersistedNodes.get(folderName).add(new SpanNode(numberedNameOfCPKind, firstRuleURI, secondRuleURI,\n\t\t\t\t\t\t\toverlapURI, criticalPairURI));\n\t\t\t\t}\n\n\t\treturn persistedNodes;\n\t}", "int insertSelective(TempletLink record);", "@Test\n public void addRoads() {\n assertTrue(country1.getNetwork().get(cityA).size()==3);\n assertTrue(country2.getNetwork().get(cityG).size()==2);\n country1.addRoads(cityA,cityG,5);\n assertTrue(country1.getNetwork().get(cityA).size()==4);\n assertTrue(country2.getNetwork().get(cityG).size()==2);\n country2.addRoads(cityA,cityG,5);\n assertTrue(country1.getNetwork().get(cityA).size()==4);\n assertTrue(country2.getNetwork().get(cityG).size()==3);\n //Two roads created if both cities are in the country.\n assertTrue(country1.getNetwork().get(cityB).size()==2);\n assertTrue(country1.getNetwork().get(cityC).size()==3);\n country1.addRoads(cityB,cityC,5);\n assertTrue(country1.getNetwork().get(cityB).size()==3);\n assertTrue(country1.getNetwork().get(cityC).size()==4);\n //No roads created if the cities are not in the country.\n assertTrue(country2.getNetwork().get(cityE).size()==3);\n assertTrue(country2.getNetwork().get(cityF).size()==3);\n country1.addRoads(cityE,cityF,6);\n assertTrue(country2.getNetwork().get(cityE).size()==3);\n assertTrue(country2.getNetwork().get(cityF).size()==3);\n \n //Null\n assertTrue(country2.getNetwork().get(cityF).size()==3);\n country2.addRoads(null,cityF,6);\n assertTrue(country2.getNetwork().get(cityF).size()==4);\n //Null\n assertTrue(country2.getNetwork().get(cityE).size()==3);\n country2.addRoads(cityE,null,6);\n assertTrue(country2.getNetwork().get(cityE).size()==4);\n }", "@Test\n void test01_addVertex() {\n graph.addVertex(\"a\");\n graph.addVertex(\"b\"); // adds two vertices\n\n Set<String> vertices = new LinkedHashSet<>();\n vertices.add(\"a\");\n vertices.add(\"b\"); // creates a check list to compare with\n\n if (!graph.getAllVertices().equals(vertices)) {\n fail(\"Graph didn't add the vertices correctly\");\n }\n }", "T addGraphs(Graph... graphs);", "public ArrayList<Triple> createTenLearningObjectAnnotationTriples(Node subject ,TenLearningObjectAnnotationsBean tenLearningObjectAnnotationsBean){\r\n\t\t\r\n\t\tString LOG_METHOD_NAME = \"ArrayList createTenLearningObjectAnnotationTriples(Node, TenLearningObjectAnnotationsBean)\";\r\n\t\tlog.debug(this.getClass() + TripleStoreConstants.LOG_BEGIN + LOG_METHOD_NAME);\r\n\t\t\r\n\t\tArrayList<Triple> tripleList = new ArrayList<>();\r\n\t\tNode predicate = null, predicate_value=null;\r\n\t\ttry{\r\n\t\t\t//annotator name\r\n\t\t\tif(!Utils.isEmptyOrNull(tenLearningObjectAnnotationsBean.getAnnotator())){\r\n\t\t\t\tpredicate = Node.createURI(TripleStoreConstants.URI_PREDICATE_TEN_ANNOTATOR);\r\n\t\t\t\tpredicate_value = Node.createLiteral(tenLearningObjectAnnotationsBean.getAnnotator());\r\n\t\t\t\ttripleList.add(new Triple(subject, predicate, predicate_value));\r\n\t\t\t}\r\n\t\t\ttripleList.add(new Triple(subject, predicate, predicate_value));\r\n\t\t\t\r\n\t\t\ttripleList.addAll(addDescriptiveAnnotationTriples(subject, tenLearningObjectAnnotationsBean));\r\n\t\t\t\r\n\t\t\ttripleList.addAll(addStructuralAnnotationTriples(subject, tenLearningObjectAnnotationsBean));\t\t\t\t\t\t\r\n\t\t}catch(Exception ex)\r\n\t\t{\r\n\t\t\tlog.error(ex);\r\n\t\t\tthrow ex;\r\n\t\t}finally{\r\n\t\t\tlog.debug(this.getClass() + TripleStoreConstants.LOG_END + LOG_METHOD_NAME);\r\n\t\t}\r\n\t\t\r\n\t\treturn tripleList;\r\n\t}", "void add_to_network(Town town, List<Town> connectedTowns);", "public void makePreferredOTTOLRelationshipsNOConflicts() {\n \n // TraversalDescription CHILDOF_TRAVERSAL = Traversal.description()\n // .relationships(RelType.TAXCHILDOF, Direction.INCOMING);\n \n // get the start point\n Node life = getLifeNode();\n System.out.println(life.getProperty(\"name\"));\n \n Transaction tx = beginTx();\n addToPreferredIndexes(life, ALLTAXA);\n HashSet<Long> traveled = new HashSet<Long>();\n int nNewRels = 0;\n try {\n // walk out to the tips from the base of the tree\n for (Node n : TAXCHILDOF_TRAVERSAL.traverse(life).nodes()) {\n if (n.hasRelationship(Direction.INCOMING, RelType.TAXCHILDOF) == false) {\n \n // when we hit a tip, start walking back\n Node curNode = n;\n while (curNode.hasRelationship(Direction.OUTGOING, RelType.TAXCHILDOF)) {\n Node startNode = curNode;\n if (traveled.contains((Long)startNode.getId())){\n \tbreak;\n }else{\n \ttraveled.add((Long)startNode.getId());\n }\n Node endNode = null;\n \n // if the current node already has a preferred relationship, we will just follow it\n if (startNode.hasRelationship(Direction.OUTGOING, RelType.PREFTAXCHILDOF)) {\n Relationship prefRel = startNode.getSingleRelationship(RelType.PREFTAXCHILDOF, Direction.OUTGOING);\n \n // make sure we don't get stuck in an infinite loop (should not happen, could do weird things to the graph)\n if (prefRel.getStartNode().getId() == prefRel.getEndNode().getId()) {\n System.out.println(\"pointing to itself \" + prefRel + \" \" + prefRel.getStartNode().getId() + \" \" + prefRel.getEndNode().getId());\n break;\n }\n \n // prepare to move on\n endNode = prefRel.getEndNode();\n \n } else {\n \n // if there is no preferred rel then they all point to the same end node; just follow the first non-looping relationship\n for (Relationship rel : curNode.getRelationships(RelType.TAXCHILDOF, Direction.OUTGOING)) {\n if (rel.getStartNode().getId() == rel.getEndNode().getId()) {\n System.out.println(\"pointing to itself \" + rel + \" \" + rel.getStartNode().getId() + \" \" + rel.getEndNode().getId());\n break;\n } else {\n endNode = rel.getEndNode();\n break;\n }\n }\n \n // if we found a dead-end, die\n if (endNode == null) {\n System.out.println(curNode.getProperty(\"name\"));\n System.out.println(\"Strange, this relationship seems to be pointing at a nonexistent node. Quitting.\");\n System.exit(0);\n }\n \n // create preferred relationships\n curNode.createRelationshipTo(endNode, RelType.PREFTAXCHILDOF);\n curNode.createRelationshipTo(endNode, RelType.TAXCHILDOF).setProperty(\"source\", \"ottol\");\n nNewRels += 1;\n }\n \n if (startNode == endNode) {\n System.out.println(startNode);\n System.out.println(\"The node seems to be pointing at itself. This is a problem. Quitting.\");\n System.exit(0);\n \n // prepare for next iteration\n } else {\n curNode = endNode;\n addToPreferredIndexes(startNode, ALLTAXA);\n }\n }\n }\n \n if (nNewRels % transaction_iter == 0) {\n System.out.println(nNewRels);\n // tx.success();\n // tx.finish();\n // tx = beginTx();\n }\n }\n tx.success();\n } finally {\n tx.finish();\n }\n }", "@Override\n protected DataSet<GraphHead> computeNewGraphHeads() {\n return firstCollection.getGraphHeads()\n .union(secondCollection.getGraphHeads())\n .groupBy(new Id<GraphHead>())\n .reduceGroup(new GroupCountEquals<GraphHead>(2));\n }", "public boolean addAll(Link<T> link);", "@Test\r\n public void testCreateTourWithoutDuplicates_DupAtEnd() {\r\n Tour tour = new Tour(new int[][]{{1, 1}, {2, 2}, {1, 1}});\r\n Tour result = tour.createTourWithoutDuplicates();\r\n Tour expected = new Tour(new int[][]{{1, 1}, {2, 2}});\r\n assertTrue(result.toString(), expected.isEqual(result));\r\n }", "@Test\n\tpublic void equalGraphsWhichMatchTerms(){\n\t\tTerm term = new Term();\n\t\tterm.setName(\"tutorials\");\n\t\tterm.setNodeid(\"24\");\n\t\ttermRepository.save(term);\n\t\tList<Term> termList = termRepository.findTerms();\n\t\tAssert.assertEquals(\"tutorials\", term.getName());\n\t\tAssert.assertEquals(\"24\", term.getNodeid());\n\t}", "org.hl7.fhir.ResourceReference addNewSubject();", "@Test\n public void testRemoveDuplicates() {\n System.out.println(\"removeDuplicates\");\n ArrayList<String> array = new ArrayList<>(Arrays.asList(\n \"A.example.COM,1.1.1.1,NO,11,Faulty fans\",\n \"b.example.com,1.1.1.2,no,13,Behind the other routers so no one sees it\",\n \"C.EXAMPLE.COM,1.1.1.3,no,12.1,\",\n \"d.example.com,1.1.1.4,yes,14,\",\n \"c.example.com,1.1.1.5,no,12,Case a bit loose\",\n \"e.example.com,1.1.1.6,no,12.3,\",\n \"f.example.com,1.1.1.7,No,12.200,\",\n \"g.example.com,1.1.1.6,no,15.0,Guarded by sharks with lasers on their heads\"\n ));\n ArrayList<String> expResult = new ArrayList<>(Arrays.asList(\n \"A.example.COM,1.1.1.1,NO,11,Faulty fans\",\n \"b.example.com,1.1.1.2,no,13,Behind the other routers so no one sees it\",\n \"d.example.com,1.1.1.4,yes,14,\",\n \"f.example.com,1.1.1.7,No,12.200,\"\n ));\n ArrayList<String> result = BTRouterPatch.removeDuplicates(array);\n assertEquals(expResult, result);\n }", "boolean AddImpliedNode( TaxoNode implied ) {\r\n\t\tif( impliedNodes == null )\r\n\t\t\timpliedNodes = new ArrayList<TaxoNode>();\r\n\t\t// Check to see if there already, and if so, return false\r\n\t\telse if( impliedNodes.contains( implied ))\r\n\t\t\treturn false;\r\n\t\timpliedNodes.add( implied );\r\n\t\treturn true;\r\n\t}", "@Test\n public void tr0()\n {\n Graph g = new Graph(1);\n Set<Integer> nodes = new TreeSet<Integer>();\n nodes.add(0);\n assertTrue(g.reachable(nodes, nodes));\n }", "@Test\n public void getGraphNull() throws Exception {\n try (final Graph defaultGraph = dataset.getGraph(null).get()) {\n // TODO: Can we assume the default graph was empty before our new triples?\n assertEquals(2, defaultGraph.size());\n assertTrue(defaultGraph.contains(alice, isPrimaryTopicOf, graph1));\n // NOTE: wildcard as graph2 is a (potentially mapped) BlankNode\n assertTrue(defaultGraph.contains(bob, isPrimaryTopicOf, null));\n }\n }", "public static void relprecision() throws IOException \n\t{\n\t \n\t\t\n\t\tMap<String,Map<String,List<String>>> trainset = null ; \n\t\t//Map<String, List<String>> titles = ReadXMLFile.ReadCDR_TestSet_BioC() ;\n\t File fFile = new File(\"F:\\\\eclipse64\\\\data\\\\labeled_titles.txt\");\n\t // File fFile = new File(\"F:\\\\eclipse64\\\\eclipse\\\\TreatRelation\");\n\t List<String> sents = readfiles.readLinesbylines(fFile.toURL());\n\t\t\n\t\tSentinfo sentInfo = new Sentinfo() ; \n\t\t\n\t\t//trainset = ReadXMLFile.DeserializeT(\"F:\\\\eclipse64\\\\eclipse\\\\TrainsetTest\") ;\n\t\tLinkedHashMap<String, Integer> TripleDict = new LinkedHashMap<String, Integer>();\n\t\tMap<String,List<Integer>> Labeling= new HashMap<String,List<Integer>>() ;\n\t\t\n\t\tMetaMapApi api = new MetaMapApiImpl();\n\t\tList<String> theOptions = new ArrayList<String>();\n\t theOptions.add(\"-y\"); // turn on Word Sense Disambiguation\n\t theOptions.add(\"-u\"); // unique abrevation \n\t theOptions.add(\"--negex\"); \n\t theOptions.add(\"-v\");\n\t theOptions.add(\"-c\"); // use relaxed model that containing internal syntactic structure, such as conjunction.\n\t if (theOptions.size() > 0) {\n\t api.setOptions(theOptions);\n\t }\n\t \n\t\t\n\t\t\n\t\t\n\t\tint count = 0 ;\n\t\tint count1 = 0 ;\n\t\tModel candidategraph = ModelFactory.createDefaultModel(); \n\t\tMap<String,List<String>> TripleCandidates = new HashMap<String, List<String>>();\n\t\tList<String> statements= new ArrayList<String>() ;\n\t\tList<String> notstatements= new ArrayList<String>() ;\n\t\tDouble TPcount = 0.0 ; \n\t\tDouble FPcount = 0.0 ;\n\t\tDouble NonTPcount = 0.0 ;\n\t\tDouble TPcountTot = 0.0 ; \n\t\tDouble NonTPcountTot = 0.0 ;\n\t\tfor(String title : sents)\n\t\t{\n\t\t\t\n\t\t\tif (title.contains(\"<YES>\") || title.contains(\"<TREAT>\") || title.contains(\"<DIS>\") || title.contains(\"</\"))\n\t\t\t{\n\t\t\t\n\t\t\t\tBoolean TP = false ; \n\t\t\t\tBoolean NonTP = false ;\n\t if (title.contains(\"<YES>\") && title.contains(\"</YES>\"))\n\t {\n\t \t TP = true ; \n\t \t TPcountTot++ ; \n\t \t \n\t }\n\t else\n\t {\n\t \t NonTP = true ; \n\t \t NonTPcountTot++ ; \n\t }\n\t\t\t\t\t\t\n\t\t\t\t\n\t\t\t\ttitle = title.replaceAll(\"<YES>\", \" \") ;\n\t\t\t\ttitle = title.replaceAll(\"</YES>\", \" \") ;\n\t\t\t\ttitle = title.replaceAll(\"<TREAT>\", \" \") ;\n\t\t\t\ttitle = title.replaceAll(\"</TREAT>\", \" \") ;\n\t\t\t\ttitle = title.replaceAll(\"<DIS>\", \" \") ;\n\t\t\t\ttitle = title.replaceAll(\"</DIS>\", \" \") ;\n\t\t\t\ttitle = title.toLowerCase() ;\n\t\n\t\t\t\tcount++ ; \n\t\n\t\t\t\t// get the goldstandard concepts for current title \n\t\t\t\tList<String> GoldSndconcepts = new ArrayList<String> () ;\n\t\t\t\tMap<String, Integer> allconcepts = null ; \n\t\t\t\t\n\t\t\t\t// this is optional and not needed here , it used to measure the concepts recall \n\t\t\t\tMap<String, List<String>> temptitles = new HashMap<String, List<String>>(); \n\t\t\t\ttemptitles.put(title,GoldSndconcepts) ;\n\t\t\t\t\t\t\t\n\t\t\t\t// get the concepts \n\t\t\t\tallconcepts = ConceptsDiscovery.getconcepts(temptitles,api);\n\t\t\t\t\n\t\t\t\tArrayList<String> RelInstances1 = SyntaticPattern.getSyntaticPattern(title,allconcepts,dataset.FILE_NAME_Patterns) ;\n\t\t\t\t//Methylated-CpG island recovery assay: a new technique for the rapid detection of methylated-CpG islands in cancer\n\t\t\t\tif (RelInstances1 != null && RelInstances1.size() > 0 )\n\t\t\t\t{\n\t\t\t\t\tTripleCandidates.put(title, RelInstances1) ;\n\t\t\t\t\tReadXMLFile.Serialized(TripleCandidates,\"F:\\\\eclipse64\\\\eclipse\\\\TreatRelationdisc\") ;\n\t\t\t\t\t\n\t\t\t if (TP )\n\t\t\t {\n\t\t\t \t TPcount++ ; \n\t\t\t \t \n\t\t\t }\n\t\t\t else\n\t\t\t {\n\t\t\t \t FPcount++ ; \n\t\t\t }\n\t\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\t notstatements.add(title) ;\n\t\t\t\t}\n\t\t\t}\n \n\t\t}\n\t\tint i = 0 ;\n\t\ti++ ; \n\t}", "public static void main(String[] args) throws CantAdd, CoronaWarn {\n\t\tTravelAgency TravelAgency = new TravelAgency();\r\n\r\n\t\tPlane p=new Plane(200,2,\"first plane max travelers\");\r\n\t\tPlane p1=new Plane(100,1,\"second plan min traelers\");\r\n\r\n\t\tTrip i=new Trip(p,Country.Australia,Country.Canada);\r\n\t\tTrip io=new Trip(p1,Country.Australia,Country.Canada);\r\n\t\t \r\n\t\tDate date=new Date(1,2,5);\r\n\t\tPassport passprt1=new Passport(\"anton\",44,date);\r\n\t\tPassport passprt2=new Passport(\"abdo\",44,date);\r\n\t\tPassport passprt3=new Passport(\"julie\",44,date);\r\n\t\tPassport passprt4=new Passport(\"juliana\",44,date);\r\n\t\tPassport passprt5=new Passport(\"bella\",44,date);\r\n\t\tPassport passprt6=new Passport(\"geris\",44,date);\r\n\t\tTraveler t1=new Traveler(passprt1,true,true);\r\n\t\tTraveler t2=new Traveler(passprt2,true,true);\r\n\t\tTraveler t3=new Traveler(passprt3,true,true);\r\n\t\tTraveler t4=new Traveler(passprt4,true,true);\r\n\t\tTraveler t5=new Traveler(passprt5,true,true);\r\n\t\tTraveler t6=new Traveler(passprt6,true,true);\r\n\t\t\r\n\t\t\r\n\t\tio.addTraveler(t1);\r\n\t\tio.addTraveler(t2);\r\n\t\tio.addTraveler(t3);\r\n\t\tio.addTraveler(t6);\r\n\t\tio.addTraveler(t5);\r\n\t\tio.addTraveler(t4);\r\n\t\tio.addTraveler(t6);\r\n \r\n\t\ti.addTraveler(t1);\r\n\t\ti.addTraveler(t2);\r\n\t\ti.addTraveler(t3);\r\n\t\ti.addTraveler(t4);\r\n\t\r\n\t\ti.addTraveler(t6);\r\n\t\t\r\n\t\tTravelAgency.addTrip(i);\t\r\n\t\tTravelAgency.addTrip(io);\r\n\t\tSystem.out.print(TravelAgency.findUnsafeTrips());\r\n\r\n\t\t\r\n\t\tTravelAgency.AddTraveler(t1);\r\n\t\tTravelAgency.AddTraveler(t2);\r\n\t\tTravelAgency.AddTraveler(t3);\r\n\t\tTravelAgency.AddTraveler(t4);\r\n\t\tTravelAgency.AddTraveler(t5);\r\n\t\tTravelAgency.AddTraveler(t6);\r\n\t\t\r\n\t}", "int insertSelective(TLinkman record);", "Neq createNeq();" ]
[ "0.66566336", "0.62623626", "0.5634799", "0.5561885", "0.5546721", "0.54128236", "0.5392418", "0.53646433", "0.5310201", "0.51689875", "0.5114945", "0.5072681", "0.5007982", "0.500671", "0.50061846", "0.49972934", "0.49677965", "0.49344185", "0.49315575", "0.49236938", "0.49173456", "0.4878254", "0.48003504", "0.47976086", "0.47863132", "0.4770417", "0.47677886", "0.47647533", "0.4758991", "0.4723016", "0.47194475", "0.47105563", "0.47032538", "0.4696247", "0.46938998", "0.4679875", "0.46614143", "0.46563593", "0.46256122", "0.46121582", "0.46114755", "0.46067655", "0.4595002", "0.4576943", "0.45760745", "0.45724633", "0.4563735", "0.45565447", "0.45449534", "0.45437258", "0.45436212", "0.45380497", "0.45323542", "0.45285875", "0.45222643", "0.45219183", "0.45175594", "0.45116472", "0.4509388", "0.45021373", "0.44904032", "0.44840243", "0.447643", "0.4475016", "0.4475", "0.4471187", "0.44634315", "0.44465196", "0.44453824", "0.44437173", "0.44359714", "0.4433415", "0.44332075", "0.44328615", "0.44224218", "0.44213548", "0.44210827", "0.44181433", "0.44175428", "0.4414562", "0.44037014", "0.44028175", "0.43959078", "0.43956414", "0.43956384", "0.4391997", "0.43875048", "0.4381243", "0.43756664", "0.4374199", "0.43699828", "0.43660495", "0.43596062", "0.4358351", "0.43548024", "0.4353963", "0.4349581", "0.4349002", "0.4346968", "0.43395534" ]
0.58502287
2
whereClause > WhereClause() solutionModifier > SolutionModifier()
@Override public R visit(Antecedent n, A argu) { R _ret = null; n.whereClause.accept(this, argu); n.solutionModifier.accept(this, argu); return _ret; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public QbWhere where();", "String getWhereClause();", "GeneralClause createGeneralClause();", "protected void applyWhere(SQL sql, MaterialTypeExample example, boolean includeExamplePhrase) {\r\n if (example == null) {\r\n return;\r\n }\r\n \r\n String parmPhrase1;\r\n String parmPhrase1_th;\r\n String parmPhrase2;\r\n String parmPhrase2_th;\r\n String parmPhrase3;\r\n String parmPhrase3_th;\r\n if (includeExamplePhrase) {\r\n parmPhrase1 = \"%s #{example.oredCriteria[%d].allCriteria[%d].value}\";\r\n parmPhrase1_th = \"%s #{example.oredCriteria[%d].allCriteria[%d].value,typeHandler=%s}\";\r\n parmPhrase2 = \"%s #{example.oredCriteria[%d].allCriteria[%d].value} and #{example.oredCriteria[%d].criteria[%d].secondValue}\";\r\n parmPhrase2_th = \"%s #{example.oredCriteria[%d].allCriteria[%d].value,typeHandler=%s} and #{example.oredCriteria[%d].criteria[%d].secondValue,typeHandler=%s}\";\r\n parmPhrase3 = \"#{example.oredCriteria[%d].allCriteria[%d].value[%d]}\";\r\n parmPhrase3_th = \"#{example.oredCriteria[%d].allCriteria[%d].value[%d],typeHandler=%s}\";\r\n } else {\r\n parmPhrase1 = \"%s #{oredCriteria[%d].allCriteria[%d].value}\";\r\n parmPhrase1_th = \"%s #{oredCriteria[%d].allCriteria[%d].value,typeHandler=%s}\";\r\n parmPhrase2 = \"%s #{oredCriteria[%d].allCriteria[%d].value} and #{oredCriteria[%d].criteria[%d].secondValue}\";\r\n parmPhrase2_th = \"%s #{oredCriteria[%d].allCriteria[%d].value,typeHandler=%s} and #{oredCriteria[%d].criteria[%d].secondValue,typeHandler=%s}\";\r\n parmPhrase3 = \"#{oredCriteria[%d].allCriteria[%d].value[%d]}\";\r\n parmPhrase3_th = \"#{oredCriteria[%d].allCriteria[%d].value[%d],typeHandler=%s}\";\r\n }\r\n \r\n StringBuilder sb = new StringBuilder();\r\n List<Criteria> oredCriteria = example.getOredCriteria();\r\n boolean firstCriteria = true;\r\n for (int i = 0; i < oredCriteria.size(); i++) {\r\n Criteria criteria = oredCriteria.get(i);\r\n if (criteria.isValid()) {\r\n if (firstCriteria) {\r\n firstCriteria = false;\r\n } else {\r\n sb.append(\" or \");\r\n }\r\n \r\n sb.append('(');\r\n List<Criterion> criterions = criteria.getAllCriteria();\r\n boolean firstCriterion = true;\r\n for (int j = 0; j < criterions.size(); j++) {\r\n Criterion criterion = criterions.get(j);\r\n if (firstCriterion) {\r\n firstCriterion = false;\r\n } else {\r\n sb.append(\" and \");\r\n }\r\n \r\n if (criterion.isNoValue()) {\r\n sb.append(criterion.getCondition());\r\n } else if (criterion.isSingleValue()) {\r\n if (criterion.getTypeHandler() == null) {\r\n sb.append(String.format(parmPhrase1, criterion.getCondition(), i, j));\r\n } else {\r\n sb.append(String.format(parmPhrase1_th, criterion.getCondition(), i, j,criterion.getTypeHandler()));\r\n }\r\n } else if (criterion.isBetweenValue()) {\r\n if (criterion.getTypeHandler() == null) {\r\n sb.append(String.format(parmPhrase2, criterion.getCondition(), i, j, i, j));\r\n } else {\r\n sb.append(String.format(parmPhrase2_th, criterion.getCondition(), i, j, criterion.getTypeHandler(), i, j, criterion.getTypeHandler()));\r\n }\r\n } else if (criterion.isListValue()) {\r\n sb.append(criterion.getCondition());\r\n sb.append(\" (\");\r\n List<?> listItems = (List<?>) criterion.getValue();\r\n boolean comma = false;\r\n for (int k = 0; k < listItems.size(); k++) {\r\n if (comma) {\r\n sb.append(\", \");\r\n } else {\r\n comma = true;\r\n }\r\n if (criterion.getTypeHandler() == null) {\r\n sb.append(String.format(parmPhrase3, i, j, k));\r\n } else {\r\n sb.append(String.format(parmPhrase3_th, i, j, k, criterion.getTypeHandler()));\r\n }\r\n }\r\n sb.append(')');\r\n }\r\n }\r\n sb.append(')');\r\n }\r\n }\r\n \r\n if (sb.length() > 0) {\r\n sql.WHERE(sb.toString());\r\n }\r\n }", "public interface Equality extends Clause {}", "protected void applyWhere(SQL sql, CarExample example, boolean includeExamplePhrase) {\n if (example == null) {\n return;\n }\n \n String parmPhrase1;\n String parmPhrase1_th;\n String parmPhrase2;\n String parmPhrase2_th;\n String parmPhrase3;\n String parmPhrase3_th;\n if (includeExamplePhrase) {\n parmPhrase1 = \"%s #{example.oredCriteria[%d].allCriteria[%d].value}\";\n parmPhrase1_th = \"%s #{example.oredCriteria[%d].allCriteria[%d].value,typeHandler=%s}\";\n parmPhrase2 = \"%s #{example.oredCriteria[%d].allCriteria[%d].value} and #{example.oredCriteria[%d].criteria[%d].secondValue}\";\n parmPhrase2_th = \"%s #{example.oredCriteria[%d].allCriteria[%d].value,typeHandler=%s} and #{example.oredCriteria[%d].criteria[%d].secondValue,typeHandler=%s}\";\n parmPhrase3 = \"#{example.oredCriteria[%d].allCriteria[%d].value[%d]}\";\n parmPhrase3_th = \"#{example.oredCriteria[%d].allCriteria[%d].value[%d],typeHandler=%s}\";\n } else {\n parmPhrase1 = \"%s #{oredCriteria[%d].allCriteria[%d].value}\";\n parmPhrase1_th = \"%s #{oredCriteria[%d].allCriteria[%d].value,typeHandler=%s}\";\n parmPhrase2 = \"%s #{oredCriteria[%d].allCriteria[%d].value} and #{oredCriteria[%d].criteria[%d].secondValue}\";\n parmPhrase2_th = \"%s #{oredCriteria[%d].allCriteria[%d].value,typeHandler=%s} and #{oredCriteria[%d].criteria[%d].secondValue,typeHandler=%s}\";\n parmPhrase3 = \"#{oredCriteria[%d].allCriteria[%d].value[%d]}\";\n parmPhrase3_th = \"#{oredCriteria[%d].allCriteria[%d].value[%d],typeHandler=%s}\";\n }\n \n StringBuilder sb = new StringBuilder();\n List<Criteria> oredCriteria = example.getOredCriteria();\n boolean firstCriteria = true;\n for (int i = 0; i < oredCriteria.size(); i++) {\n Criteria criteria = oredCriteria.get(i);\n if (criteria.isValid()) {\n if (firstCriteria) {\n firstCriteria = false;\n } else {\n sb.append(\" or \");\n }\n \n sb.append('(');\n List<Criterion> criterions = criteria.getAllCriteria();\n boolean firstCriterion = true;\n for (int j = 0; j < criterions.size(); j++) {\n Criterion criterion = criterions.get(j);\n if (firstCriterion) {\n firstCriterion = false;\n } else {\n sb.append(\" and \");\n }\n \n if (criterion.isNoValue()) {\n sb.append(criterion.getCondition());\n } else if (criterion.isSingleValue()) {\n if (criterion.getTypeHandler() == null) {\n sb.append(String.format(parmPhrase1, criterion.getCondition(), i, j));\n } else {\n sb.append(String.format(parmPhrase1_th, criterion.getCondition(), i, j,criterion.getTypeHandler()));\n }\n } else if (criterion.isBetweenValue()) {\n if (criterion.getTypeHandler() == null) {\n sb.append(String.format(parmPhrase2, criterion.getCondition(), i, j, i, j));\n } else {\n sb.append(String.format(parmPhrase2_th, criterion.getCondition(), i, j, criterion.getTypeHandler(), i, j, criterion.getTypeHandler()));\n }\n } else if (criterion.isListValue()) {\n sb.append(criterion.getCondition());\n sb.append(\" (\");\n List<?> listItems = (List<?>) criterion.getValue();\n boolean comma = false;\n for (int k = 0; k < listItems.size(); k++) {\n if (comma) {\n sb.append(\", \");\n } else {\n comma = true;\n }\n if (criterion.getTypeHandler() == null) {\n sb.append(String.format(parmPhrase3, i, j, k));\n } else {\n sb.append(String.format(parmPhrase3_th, i, j, k, criterion.getTypeHandler()));\n }\n }\n sb.append(')');\n }\n }\n sb.append(')');\n }\n }\n \n if (sb.length() > 0) {\n sql.WHERE(sb.toString());\n }\n }", "@Test\n \tpublic void whereClauseIndirectPointingRelation() {\n \t\tnode23.addJoin(new PointingRelation(node42, NAME));\n \t\tcheckWhereCondition(\n //\t\t\t\tjoin(\"=\", \"_rank23.component_ref\", \"_rank42.component_ref\"),\n \t\t\t\tjoin(\"=\", \"_component23.type\", \"'p'\"),\n \t\t\t\tjoin(\"=\", \"_component23.name\", \"'\" + NAME + \"'\"),\n \t\t\t\tjoin(\"<\", \"_rank23.pre\", \"_rank42.pre\"),\n \t\t\t\tjoin(\"<\", \"_rank42.pre\", \"_rank23.post\")\n \t\t);\n \t}", "@Test\n \tpublic void whereClauseDirectPointingRelation() {\n \t\tnode23.addJoin(new PointingRelation(node42, NAME, 1));\n \t\tcheckWhereCondition(\n //\t\t\t\tjoin(\"=\", \"_rank23.component_ref\", \"_rank42.component_ref\"),\n \t\t\t\tjoin(\"=\", \"_component23.type\", \"'p'\"),\n \t\t\t\tjoin(\"=\", \"_component23.name\", \"'\" + NAME + \"'\"),\n \t\t\t\tjoin(\"=\", \"_rank23.pre\", \"_rank42.parent\")\n \n \t\t);\n \t}", "@Test\n public void whereStoreSucceed()\n {\n // arrange\n final String whereClause = \"validWhere\";\n // act\n QuerySpecificationBuilder querySpecificationBuilder = new QuerySpecificationBuilder(\"*\", QuerySpecificationBuilder.FromType.ENROLLMENTS).where(whereClause);\n\n // assert\n assertEquals(whereClause, Deencapsulation.getField(querySpecificationBuilder, \"where\"));\n }", "@Test\n \tpublic void whereClauseForNodeDirectPrecedence() {\n \t\tnode23.addJoin(new Precedence(node42, 1));\n \t\tcheckWhereCondition(\n \t\t\t\tjoin(\"=\", \"_node23.text_ref\", \"_node42.text_ref\"),\n \t\t\t\tjoin(\"=\", \"_node23.right_token\", \"_node42.left_token\", -1)\n \t\t);\n \t}", "public final void where() throws RecognitionException {\r\n try {\r\n // D:\\\\entornotrabajo\\\\workspace-sgo\\\\persistance\\\\src\\\\main\\\\java\\\\es\\\\caser\\\\persistance\\\\sql\\\\antlr\\\\SQLGrammar.g:112:1: ( WHERE logicExpresions )\r\n // D:\\\\entornotrabajo\\\\workspace-sgo\\\\persistance\\\\src\\\\main\\\\java\\\\es\\\\caser\\\\persistance\\\\sql\\\\antlr\\\\SQLGrammar.g:112:3: WHERE logicExpresions\r\n {\r\n out(\" where \"); \r\n match(input,WHERE,FOLLOW_WHERE_in_where396); \r\n pushFollow(FOLLOW_logicExpresions_in_where398);\r\n logicExpresions();\r\n\r\n state._fsp--;\r\n\r\n\r\n }\r\n\r\n }\r\n finally {\r\n }\r\n return ;\r\n }", "public void buildQuery() {\n\t\tif (constraints.propertyNodes.isEmpty()) {\n\t\t\tconstraints.propertyNodes.add(new AssertStmt(new IntLiteral(1)));\n\t\t}\n\t\t\n\t\tStringBuilder query = new StringBuilder();\n\t\tquery.append(\"(set-logic QF_BV)\\n\");\n\t\t\n\t\tquery.append(\"(define-fun tobv32 ((p Bool)) (_ BitVec 32) (ite p (_ bv1 32) (_ bv0 32)))\\n\");\n\t\tquery.append(\"(define-fun tobool ((p (_ BitVec 32))) Bool (not (= p (_ bv0 32))))\\n\");\n\t\t// Defined more functions above (for convenience), as needed.\n\t\t\n\t\tfor (String varName : constraints.variableNames) {\n\t\t\tquery.append(\"(declare-fun \" + varName + \" () (_ BitVec 32))\\n\");\n\t\t}\n\t\tfor (int i = 0; i < constraints.propertyNodes.size(); ++i) {\n\t\t\tquery.append(\"(declare-fun \" + propName(i) + \" () Bool)\\n\");\n\t\t}\n\t\tfor (AssignStmt stmt : constraints.transitionNodes) {\n\t\t\tquery.append(\"(assert (= \" + stmt.getLhs().getName() + \" \" +\n\t\t\t\t\texprConverter.visit(stmt.getRhs()) + \"))\\n\");\n\t\t}\n\t\tfor (int i = 0; i < constraints.propertyNodes.size(); ++i) {\n\t\t\tAssertStmt stmt = constraints.propertyNodes.get(i);\n\t\t\tif (stmt.isHoudini())\n\t\t\t\thoudiniConditions.add(i);\n\t\t\tif (stmt.isUnwinding())\n\t\t\t\tunwindingConditions.add(propName(i));\n\t\t\t\n \t\t\tString assertionQuery = \"(not (tobool \" + exprConverter.visit(stmt.getCondition()) + \"))\";\n\t\t\tquery.append(\"(assert (= \" + propName(i) + \" \" + assertionQuery + \"))\\n\");\n\t\t}\n\t\tquery.append(\"(assert (or\" + getAllProps() + \"))\\n\");\n\t\t\n\t\tquery.append(\"\\n(check-sat)\\n\");\n\t\t// append all unwinding conditions\n\t\tquery.append(\"(get-value (\" + getAllProps() + \" ))\\n\");\n\t\t\n\t\tqueryString = query.toString();\n\t}", "@Test\n \tpublic void whereClauseForNodeExactPrecedence() {\n \t\tnode23.addJoin(new Precedence(node42, 10));\n \t\tcheckWhereCondition(\n \t\t\t\tjoin(\"=\", \"_node23.text_ref\", \"_node42.text_ref\"),\n \t\t\t\tjoin(\"=\", \"_node23.right_token\", \"_node42.left_token\", -10));\n \t}", "public ZExpression getWhereExpression()\r\n\t{\r\n\t\treturn where;\r\n\t}", "@Test\n \tpublic void whereClauseForNodeIndirectPrecedence() {\n \t\tnode23.addJoin(new Precedence(node42));\n \t\tcheckWhereCondition(\n \t\t\t\tjoin(\"=\", \"_node23.text_ref\", \"_node42.text_ref\"),\n \t\t\t\tjoin(\"<\", \"_node23.right_token\", \"_node42.left_token\")\n \t\t);\n \t}", "public interface I_PFR_WhereClause \n{\n\n /** TableName=PFR_WhereClause */\n public static final String Table_Name = \"PFR_WhereClause\";\n\n /** AD_Table_ID=1000309 */\n public static final int Table_ID = MTable.getTable_ID(Table_Name);\n\n KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name);\n\n /** AccessLevel = 3 - Client - Org \n */\n BigDecimal accessLevel = BigDecimal.valueOf(3);\n\n /** Load Meta Data */\n\n /** Column name AD_Client_ID */\n public static final String COLUMNNAME_AD_Client_ID = \"AD_Client_ID\";\n\n\t/** Get Client.\n\t * Client/Tenant for this installation.\n\t */\n\tpublic int getAD_Client_ID();\n\n /** Column name AD_Column_ID */\n public static final String COLUMNNAME_AD_Column_ID = \"AD_Column_ID\";\n\n\t/** Set Column.\n\t * Column in the table\n\t */\n\tpublic void setAD_Column_ID (int AD_Column_ID);\n\n\t/** Get Column.\n\t * Column in the table\n\t */\n\tpublic int getAD_Column_ID();\n\n\tpublic org.compiere.model.I_AD_Column getAD_Column() throws RuntimeException;\n\n /** Column name AD_Org_ID */\n public static final String COLUMNNAME_AD_Org_ID = \"AD_Org_ID\";\n\n\t/** Set Organization.\n\t * Organizational entity within client\n\t */\n\tpublic void setAD_Org_ID (int AD_Org_ID);\n\n\t/** Get Organization.\n\t * Organizational entity within client\n\t */\n\tpublic int getAD_Org_ID();\n\n /** Column name AndOr */\n public static final String COLUMNNAME_AndOr = \"AndOr\";\n\n\t/** Set And/Or.\n\t * Logical operation: AND or OR\n\t */\n\tpublic void setAndOr (String AndOr);\n\n\t/** Get And/Or.\n\t * Logical operation: AND or OR\n\t */\n\tpublic String getAndOr();\n\n /** Column name CloseBracket */\n public static final String COLUMNNAME_CloseBracket = \"CloseBracket\";\n\n\t/** Set CloseBracket.\n\t * Закрывающая скобка\n\t */\n\tpublic void setCloseBracket (String CloseBracket);\n\n\t/** Get CloseBracket.\n\t * Закрывающая скобка\n\t */\n\tpublic String getCloseBracket();\n\n /** Column name ColumnName */\n public static final String COLUMNNAME_ColumnName = \"ColumnName\";\n\n\t/** Set DB Column Name.\n\t * Name of the column in the database\n\t */\n\tpublic void setColumnName (String ColumnName);\n\n\t/** Get DB Column Name.\n\t * Name of the column in the database\n\t */\n\tpublic String getColumnName();\n\n /** Column name Created */\n public static final String COLUMNNAME_Created = \"Created\";\n\n\t/** Get Created.\n\t * Date this record was created\n\t */\n\tpublic Timestamp getCreated();\n\n /** Column name CreatedBy */\n public static final String COLUMNNAME_CreatedBy = \"CreatedBy\";\n\n\t/** Get Created By.\n\t * User who created this records\n\t */\n\tpublic int getCreatedBy();\n\n /** Column name IsActive */\n public static final String COLUMNNAME_IsActive = \"IsActive\";\n\n\t/** Set Active.\n\t * The record is active in the system\n\t */\n\tpublic void setIsActive (boolean IsActive);\n\n\t/** Get Active.\n\t * The record is active in the system\n\t */\n\tpublic boolean isActive();\n\n /** Column name isStatic */\n public static final String COLUMNNAME_isStatic = \"isStatic\";\n\n\t/** Set isStatic\t */\n\tpublic void setisStatic (boolean isStatic);\n\n\t/** Get isStatic\t */\n\tpublic boolean isStatic();\n\n /** Column name Line */\n public static final String COLUMNNAME_Line = \"Line\";\n\n\t/** Set Line No.\n\t * Unique line for this document\n\t */\n\tpublic void setLine (int Line);\n\n\t/** Get Line No.\n\t * Unique line for this document\n\t */\n\tpublic int getLine();\n\n /** Column name OpenBracket */\n public static final String COLUMNNAME_OpenBracket = \"OpenBracket\";\n\n\t/** Set OpenBracket.\n\t * Открывающая скобка\n\t */\n\tpublic void setOpenBracket (String OpenBracket);\n\n\t/** Get OpenBracket.\n\t * Открывающая скобка\n\t */\n\tpublic String getOpenBracket();\n\n /** Column name Operation */\n public static final String COLUMNNAME_Operation = \"Operation\";\n\n\t/** Set Operation.\n\t * Compare Operation\n\t */\n\tpublic void setOperation (String Operation);\n\n\t/** Get Operation.\n\t * Compare Operation\n\t */\n\tpublic String getOperation();\n\n /** Column name PFR_Calculation_ID */\n public static final String COLUMNNAME_PFR_Calculation_ID = \"PFR_Calculation_ID\";\n\n\t/** Set PFR_Calculation ID\t */\n\tpublic void setPFR_Calculation_ID (int PFR_Calculation_ID);\n\n\t/** Get PFR_Calculation ID\t */\n\tpublic int getPFR_Calculation_ID();\n\n\tpublic I_PFR_Calculation getPFR_Calculation() throws RuntimeException;\n\n /** Column name PFR_WhereClause_ID */\n public static final String COLUMNNAME_PFR_WhereClause_ID = \"PFR_WhereClause_ID\";\n\n\t/** Set PFR_WhereClause ID\t */\n\tpublic void setPFR_WhereClause_ID (int PFR_WhereClause_ID);\n\n\t/** Get PFR_WhereClause ID\t */\n\tpublic int getPFR_WhereClause_ID();\n\n /** Column name Updated */\n public static final String COLUMNNAME_Updated = \"Updated\";\n\n\t/** Get Updated.\n\t * Date this record was updated\n\t */\n\tpublic Timestamp getUpdated();\n\n /** Column name UpdatedBy */\n public static final String COLUMNNAME_UpdatedBy = \"UpdatedBy\";\n\n\t/** Get Updated By.\n\t * User who updated this records\n\t */\n\tpublic int getUpdatedBy();\n\n /** Column name Value1 */\n public static final String COLUMNNAME_Value1 = \"Value1\";\n\n\t/** Set Value1\t */\n\tpublic void setValue1 (String Value1);\n\n\t/** Get Value1\t */\n\tpublic String getValue1();\n\n /** Column name Value2 */\n public static final String COLUMNNAME_Value2 = \"Value2\";\n\n\t/** Set Value To.\n\t * Value To\n\t */\n\tpublic void setValue2 (String Value2);\n\n\t/** Get Value To.\n\t * Value To\n\t */\n\tpublic String getValue2();\n}", "final public LogicalOperator SampleClause(LogicalPlan lp) throws ParseException {\n /*@bgen(jjtree) SampleClause */\n SimpleNode jjtn000 = new SimpleNode(JJTSAMPLECLAUSE);\n boolean jjtc000 = true;\n jjtree.openNodeScope(jjtn000);ExpressionOperator cond;\n LogicalOperator input;\n Token t;\n LogicalPlan conditionPlan = new LogicalPlan();\n log.trace(\"Entering SampleClause\");\n try {\n input = NestedExpr(lp);\n log.debug(\"Filter input: \" + input);\n t = jj_consume_token(DOUBLENUMBER);\n jjtree.closeNodeScope(jjtn000, true);\n jjtc000 = false;\n LOUserFunc rand = new LOUserFunc(conditionPlan, new OperatorKey(scope, getNextId()), new FuncSpec(RANDOM.class.getName()), DataType.DOUBLE);\n conditionPlan.add(rand);\n\n double l = Double.parseDouble(t.image);\n LOConst prob = new LOConst(conditionPlan, new OperatorKey(scope, getNextId()), l);\n conditionPlan.add(prob);\n\n cond = new LOLesserThanEqual(conditionPlan, new OperatorKey(scope, getNextId()));\n conditionPlan.add(cond);\n conditionPlan.connect(rand, cond);\n conditionPlan.connect(prob, cond);\n\n LogicalOperator filter = new LOFilter(lp, new OperatorKey(scope, getNextId()), conditionPlan);\n addAlias(input.getAlias(), input);\n lp.add(filter);\n log.debug(\"Added operator \" + filter.getClass().getName() + \" to the logical plan\");\n\n lp.connect(input, filter);\n log.debug(\"Connected alias \" + input.getAlias() + \" operator \" + input.getClass().getName() + \" to operator \" + filter.getClass().getName() +\" in the logical plan\");\n\n log.trace(\"Exiting SampleClause\");\n {if (true) return filter;}\n } catch (Throwable jjte000) {\n if (jjtc000) {\n jjtree.clearNodeScope(jjtn000);\n jjtc000 = false;\n } else {\n jjtree.popNode();\n }\n if (jjte000 instanceof RuntimeException) {\n {if (true) throw (RuntimeException)jjte000;}\n }\n if (jjte000 instanceof ParseException) {\n {if (true) throw (ParseException)jjte000;}\n }\n {if (true) throw (Error)jjte000;}\n } finally {\n if (jjtc000) {\n jjtree.closeNodeScope(jjtn000, true);\n }\n }\n throw new Error(\"Missing return statement in function\");\n }", "public T caseWhereClause(WhereClause object)\n {\n return null;\n }", "public HashMap<String,LinkedList<String>> splitWhere() {\n\n LinkedList<String> where = new LinkedList<>(whereClause);\n LinkedList<String> referencingRelations;\n LinkedList<MyRelation> relations;\n String temp;\n optimizedWhere = new HashMap<>();\n\n String whereString = new String(myHelper.getWhereFields(where));\n String[] whereParts = whereString.split(\"(?i)and\");\n\n //Iterates through all the parts divided by \"AND\"\n for (int i=0; i<whereParts.length; i++) {\n\n referencingRelations = new LinkedList<>();\n String symbol = myHelper.getSymbol(whereParts[i]);\n\n if(symbol != null) {\n String[] equationParts = whereParts[i].split(symbol);\n String condition = null;\n\n //For every side of the \"=\" sing.\n for(int j=0; j<equationParts.length; j++) {\n //Removes white spaces if any.\n equationParts[j] = equationParts[j].replaceAll(\"\\\\s\",\"\");\n\n //if there is a referencing table stores the table and and the field used is temporarily stored.\n if(equationParts[j].contains(\".\")) {\n referencingRelations.addLast(equationParts[j].substring(0, equationParts[j].indexOf(\".\")));\n temp = equationParts[j].substring(equationParts[j].indexOf(\".\")+1);\n\n }else {\n //if no \".\" p simeni en ksero se pio relation kamni reference enna to psaxo p to schema !!\n relations = schema.getRelations();\n String name = myHelper.getRelationNameOnField(equationParts[j],relations,newTablesFromCanonical);\n\n //if name is a field name add the table name to the referencing\n if(name != null) {\n referencingRelations.addLast(name);\n temp = equationParts[j];\n }\n else\n temp = equationParts[j].substring(equationParts[j].indexOf(\".\")+1);\n }\n if(j!= equationParts.length-1)\n condition = temp + symbol;\n else condition = condition + temp;\n }\n optimizedWhere.put(condition,referencingRelations);\n }\n }\n return optimizedWhere;\n }", "public SATSolver get2Solver() {\n\t\tSATSolver solver = new SAT4JSolver();\n final int A = 1, B = 2, C = 3;\n int[][] clauses = {{-1,3},{-2,-3},{2,3},{-3,2,-1},{-2,3},{1,3}}; // TODO - Insert your clauses here.\n for (int[] clause : clauses)\n \tsolver.addClause(clause);\n return solver;\n\t}", "public void testVariableBindingFromQueryPropagatesAccrossConjunction() throws Exception\n {\n resolveAndAssertSolutions(\"[[g(x), h(x), (f(X) :- g(X), h(X))], (?- f(x)), [[]]]\");\n }", "protected void applyWhere(BsNewsExample example, boolean includeExamplePhrase) {\n if (example == null) {\n return;\n }\n \n String parmPhrase1;\n String parmPhrase1_th;\n String parmPhrase2;\n String parmPhrase2_th;\n String parmPhrase3;\n String parmPhrase3_th;\n if (includeExamplePhrase) {\n parmPhrase1 = \"%s #{example.oredCriteria[%d].allCriteria[%d].value}\";\n parmPhrase1_th = \"%s #{example.oredCriteria[%d].allCriteria[%d].value,typeHandler=%s}\";\n parmPhrase2 = \"%s #{example.oredCriteria[%d].allCriteria[%d].value} and #{example.oredCriteria[%d].criteria[%d].secondValue}\";\n parmPhrase2_th = \"%s #{example.oredCriteria[%d].allCriteria[%d].value,typeHandler=%s} and #{example.oredCriteria[%d].criteria[%d].secondValue,typeHandler=%s}\";\n parmPhrase3 = \"#{example.oredCriteria[%d].allCriteria[%d].value[%d]}\";\n parmPhrase3_th = \"#{example.oredCriteria[%d].allCriteria[%d].value[%d],typeHandler=%s}\";\n } else {\n parmPhrase1 = \"%s #{oredCriteria[%d].allCriteria[%d].value}\";\n parmPhrase1_th = \"%s #{oredCriteria[%d].allCriteria[%d].value,typeHandler=%s}\";\n parmPhrase2 = \"%s #{oredCriteria[%d].allCriteria[%d].value} and #{oredCriteria[%d].criteria[%d].secondValue}\";\n parmPhrase2_th = \"%s #{oredCriteria[%d].allCriteria[%d].value,typeHandler=%s} and #{oredCriteria[%d].criteria[%d].secondValue,typeHandler=%s}\";\n parmPhrase3 = \"#{oredCriteria[%d].allCriteria[%d].value[%d]}\";\n parmPhrase3_th = \"#{oredCriteria[%d].allCriteria[%d].value[%d],typeHandler=%s}\";\n }\n \n StringBuilder sb = new StringBuilder();\n List<Criteria> oredCriteria = example.getOredCriteria();\n boolean firstCriteria = true;\n for (int i = 0; i < oredCriteria.size(); i++) {\n Criteria criteria = oredCriteria.get(i);\n if (criteria.isValid()) {\n if (firstCriteria) {\n firstCriteria = false;\n } else {\n sb.append(\" or \");\n }\n \n sb.append('(');\n List<Criterion> criterions = criteria.getAllCriteria();\n boolean firstCriterion = true;\n for (int j = 0; j < criterions.size(); j++) {\n Criterion criterion = criterions.get(j);\n if (firstCriterion) {\n firstCriterion = false;\n } else {\n sb.append(\" and \");\n }\n \n if (criterion.isNoValue()) {\n sb.append(criterion.getCondition());\n } else if (criterion.isSingleValue()) {\n if (criterion.getTypeHandler() == null) {\n sb.append(String.format(parmPhrase1, criterion.getCondition(), i, j));\n } else {\n sb.append(String.format(parmPhrase1_th, criterion.getCondition(), i, j,criterion.getTypeHandler()));\n }\n } else if (criterion.isBetweenValue()) {\n if (criterion.getTypeHandler() == null) {\n sb.append(String.format(parmPhrase2, criterion.getCondition(), i, j, i, j));\n } else {\n sb.append(String.format(parmPhrase2_th, criterion.getCondition(), i, j, criterion.getTypeHandler(), i, j, criterion.getTypeHandler()));\n }\n } else if (criterion.isListValue()) {\n sb.append(criterion.getCondition());\n sb.append(\" (\");\n List<?> listItems = (List<?>) criterion.getValue();\n boolean comma = false;\n for (int k = 0; k < listItems.size(); k++) {\n if (comma) {\n sb.append(\", \");\n } else {\n comma = true;\n }\n if (criterion.getTypeHandler() == null) {\n sb.append(String.format(parmPhrase3, i, j, k));\n } else {\n sb.append(String.format(parmPhrase3_th, i, j, k, criterion.getTypeHandler()));\n }\n }\n sb.append(')');\n }\n }\n sb.append(')');\n }\n }\n \n if (sb.length() > 0) {\n WHERE(sb.toString());\n }\n }", "@Override\n\tpublic void accept(WhereNodeVisitor visitor) {\n\t\tvisitor.visit(this);\n\t}", "public void findSolution() {\n\n\t\t// TODO\n\t}", "public void solution() {\n\t\t\n\t}", "public void testConjunctionInQueryVarResolvesWhenBindingsMatch() throws Exception\n {\n resolveAndAssertSolutions(\"[[g(x), f(x)], (?- f(X), g(X)), [[X <-- x]]]\");\n }", "@Override\n\tpublic Object visit(ASTWhereClause node, Object data) {\n\t\tint indent = (Integer) data;\n\t\tprintIndent(indent);\n\t\tSystem.out.print(\"where \");\n\t\tnode.childrenAccept(this, 0);\n\t\tSystem.out.println();\n\t\treturn null;\n\t}", "com.google.protobuf.ByteString\n getWhereClauseBytes();", "protected void generateWhereClause( WrqInfo wrqInfo, SQLStatementWithParams sqlStatement ) throws Exception\n {\n StringBuilder sql = new StringBuilder();\n List<Element> boundVariables = new LinkedList<Element>();\n\n // Can be a meta-data request\n if( (rowEnd > 0 && rowStart > rowEnd) || rowEnd == 0 ) {\n sql.append(\" WHERE 1=0 \");\n sqlStatement.append(sql.toString());\n return;\n }\n\n WrqFilter2Sql wrqFilter2Sql = new WrqFilter2Sql(wrqInfo, wrqInfo.getFilterNode(), false);\n String filterClause = wrqFilter2Sql.getAsSql( boundVariables );\n\n // Take care for row level security\n String subjectSettingsClause = \"\";\n Subject subject = null;\n try { subject = SecurityUtils.getSubject(); } catch (Exception e) {/* no shiro at all */}\n if (subject != null) {\n if (WebUtils.isHttp(SecurityUtils.getSubject())) {\n SQLStatementWithParams subjectSettingsStmt = wrqInfo.getResultingBindingSet().getSubjectFilterExpression(wrqInfo);\n subjectSettingsClause = subjectSettingsStmt.getStatement();\n boundVariables.addAll(subjectSettingsStmt.getFilterItems());\n }\n else {\n Iterator<StandardBindingSet> bsIterator = wrqInfo.getResultingBindingSet().getResolvedBindingSets().iterator();\n while(bsIterator.hasNext()) {\n StandardBindingSet bs = bsIterator.next();\n if (! bs.isBackendCanBypassSubjectFilter())\n throw new BindingException(\"The BindingSet \" + bs.getName() +\" can't bypass SubjectFilters. Consider using bnd:BindingSet/sec:SubjectSettings/sec:SubjectFilters/@backendCanBypassSubjectFilter\");\n }\n }\n }\n\n // Now combine the two restrictions (Filter and SubjectSettings) into one WHERE clause\n if( ! filterClause.isEmpty() || ! subjectSettingsClause.isEmpty() )\n sql.append(\" WHERE \");\n if( ! filterClause.isEmpty() )\n sql.append(\"( \"+filterClause+\" )\");\n if( ! filterClause.isEmpty() && ! subjectSettingsClause.isEmpty() )\n sql.append(\" AND \");\n if( ! subjectSettingsClause.isEmpty() )\n sql.append(\" ( \"+subjectSettingsClause+\" )\");\n\n sqlStatement.append(sql.toString(), boundVariables, wrqInfo.getResultingBindingSet());\n }", "String getMetadataWhereClause();", "public StatementBuilder setWhere(SqlPart where) {\n this.where = where;\n return this;\n }", "public StatementBuilder where(SqlPart where) {\n if (this.where == null) {\n setWhere(where);\n } else {\n setWhere(Where.and(this.where, where));\n }\n return this;\n }", "public String asWhereClause() {\r\n LinkedList<String> whereClause = new LinkedList<>();\r\n \r\n if (noInduk != null && !noInduk.isEmpty())\r\n whereClause.add(noIndukColName + \" LIKE '%\" + noInduk + \"%'\");\r\n \r\n if (currentLevel != null)\r\n whereClause.add(currentLevelColName + \" LIKE '%\" + currentLevel.asWhereClause() + \"%'\");\r\n \r\n if (biodata != null){\r\n String wc = biodata.asWhereClause();\r\n if(wc != null && !wc.isEmpty())\r\n whereClause.add(wc);\r\n }\r\n \r\n if (tanggalMasuk != null)\r\n whereClause.add(tanggalMasukColName + \" LIKE '%\" + tanggalMasuk.asWhereClause(true) + \"%'\");\r\n \r\n if (tanggalLulus != null)\r\n whereClause.add(tanggalLulusColName + \" LIKE '%\" + tanggalLulus.asWhereClause(true) + \"%'\");\r\n if (gelombang != null)\r\n whereClause.add(gelombangColName + \" = '\" + gelombang + \"'\");\r\n if (statusPendaftaran != null)\r\n whereClause.add(statusPendaftaranColName + \" = '\" + statusPendaftaran + \"'\");\r\n if (lastUpdateDate != null)\r\n whereClause.add(lastUpdateDateColName + \" LIKE '%\" + lastUpdateDate.asWhereClause(true) + \"%'\");\r\n return whereClause.isEmpty()? \"\" : StringUtils.join(whereClause, \" AND \");\r\n }", "String WHERE() { return yyline+\"/\"+yycolumn+\"(\"+yychar+\")\" ;}", "public StringBuffer getSparqlSolutionModifier(StringBuffer sb) {\r\n String SPACE = KeywordPP.SPACE;\r\n List<Expression> sort = getSort();\r\n List<Boolean> reverse = getReverse();\r\n \r\n if (getGroupBy().size()>0){\r\n \tsb.append(KeywordPP.GROUPBY + SPACE);\r\n \tfor (Expression exp : getGroupBy()){\r\n \t\tsb.append(exp.toString() + SPACE);\r\n \t}\r\n \tsb.append(NL);\r\n }\r\n \r\n if (sort.size() > 0 ) {\r\n \tint i = 0;\r\n \tsb.append(KeywordPP.ORDERBY + SPACE);\r\n \t\r\n \tfor (Expression exp : getOrderBy()) {\r\n \t\t\r\n \t\tboolean breverse = reverse.get(i++);\r\n \t\tif (breverse) {\r\n \t\t\tsb.append(KeywordPP.DESC + \"(\");\r\n \t\t}\r\n \t\tsb.append(exp.toString());\r\n \t\tif (breverse) \r\n \t\t\tsb.append(\")\") ;\r\n \t\tsb.append(SPACE);\r\n \t}\r\n \tsb.append(NL);\r\n }\r\n \r\n if (getOffset() > 0)\r\n \tsb.append(KeywordPP.OFFSET + SPACE + getOffset() + SPACE);\r\n \r\n if (getMaxResult() != getDefaultMaxResult())\r\n \tsb.append(KeywordPP.LIMIT + SPACE + getMaxResult() + KeywordPP.SPACE);\r\n \r\n if (getHaving()!=null){\r\n \tsb.append(KeywordPP.HAVING);\r\n \tsb.append(KeywordPP.OPEN_PAREN);\r\n \tgetHaving().toString(sb);\r\n \tsb.append(KeywordPP.CLOSE_PAREN);\r\n }\r\n \r\n if (sb.length()>0)\r\n \tsb.append(NL);\r\n \r\n return sb;\r\n }", "@Override\n\tpublic String getSqlWhere() {\n\t\treturn null;\n\t}", "@Test\n public void createSqlQueryWithWhereSucceed()\n {\n // arrange\n // act\n QuerySpecification querySpecification = new QuerySpecificationBuilder(\"*\", QuerySpecificationBuilder.FromType.ENROLLMENTS).where(\"validWhere\").createSqlQuery();\n\n // assert\n Helpers.assertJson(querySpecification.toJson(), \"{\\\"query\\\":\\\"select * from enrollments where validWhere\\\"}\");\n }", "AnalyticClause createAnalyticClause();", "public interface ICondition\n{\n\n /**\n * called when we are sure we are done with this condition\n */\n public void dispose();\n\n /**\n * attempt to clone this condition before it will be bound in the\n * instantiation phase. We pass the current bindings so that the condition can\n * do an early rejection if possible.\n * \n * @param model\n * @param variableBindings\n * @return a writable copy of the condition that will be bound\n * @throws CannotMatchException\n * if there is no way this condition can be matched\n */\n public ICondition clone(IModel model, Map<String, Object> variableBindings)\n throws CannotMatchException;\n\n /**\n * Iteratively perform the resolution and binding for this condition. If this\n * condition defines any variables, they are placed into the bindings map for\n * other conditions to exploit. Similarly, it will resolve any bindings that\n * it needs in order to be matched. If at any point the condition determines\n * that it cannot be matched, the exception is to be thrown. Similarly, if\n * isIterative is false, and there are unresolved bindings, the exception\n * should be thrown. <br>\n * Otherwise, the number of unresolved bindings is returned which allows the\n * instantiation calculation determine if another resolution round is\n * required.\n * \n * @return number of unresolved variables\n */\n public int bind(IModel model, Map<String, Object> variableBindings,\n boolean isIterative) throws CannotMatchException;\n}", "@Override\n public PaymentP2007_03 where(Collection<? extends Condition> conditions) {\n return where(DSL.and(conditions));\n }", "public NestedClause getXQueryClause();", "@Override\r\n\tpublic void satisfy() {\n\t\t\r\n\t}", "@Nullable\n public TupleExpr getWhereExpr() {\n return this.whereExpr;\n }", "public Solution solve(ISearchable s) {\n return null;\n }", "@Override\n\tpublic Solution localSearch() {\n\t\treturn this;\n\t}", "private String createWhere() {\n String where = \"\";\n if (getLatitude() != FLOATNULL) {\n if (!where.equals(\"\")) {\n where = where + \" and \";\n } // if where\n where = where + LATITUDE + \"=\" + getLatitude(\"\");\n } // if getLatitude\n if (getLongitude() != FLOATNULL) {\n if (!where.equals(\"\")) {\n where = where + \" and \";\n } // if where\n where = where + LONGITUDE + \"=\" + getLongitude(\"\");\n } // if getLongitude\n if (getDepth() != FLOATNULL) {\n if (!where.equals(\"\")) {\n where = where + \" and \";\n } // if where\n where = where + DEPTH + \"=\" + getDepth(\"\");\n } // if getDepth\n if (getTemperatureMin() != FLOATNULL) {\n if (!where.equals(\"\")) {\n where = where + \" and \";\n } // if where\n where = where + TEMPERATURE_MIN + \"=\" + getTemperatureMin(\"\");\n } // if getTemperatureMin\n if (getTemperatureMax() != FLOATNULL) {\n if (!where.equals(\"\")) {\n where = where + \" and \";\n } // if where\n where = where + TEMPERATURE_MAX + \"=\" + getTemperatureMax(\"\");\n } // if getTemperatureMax\n if (getSalinityMin() != FLOATNULL) {\n if (!where.equals(\"\")) {\n where = where + \" and \";\n } // if where\n where = where + SALINITY_MIN + \"=\" + getSalinityMin(\"\");\n } // if getSalinityMin\n if (getSalinityMax() != FLOATNULL) {\n if (!where.equals(\"\")) {\n where = where + \" and \";\n } // if where\n where = where + SALINITY_MAX + \"=\" + getSalinityMax(\"\");\n } // if getSalinityMax\n if (getOxygenMin() != FLOATNULL) {\n if (!where.equals(\"\")) {\n where = where + \" and \";\n } // if where\n where = where + OXYGEN_MIN + \"=\" + getOxygenMin(\"\");\n } // if getOxygenMin\n if (getOxygenMax() != FLOATNULL) {\n if (!where.equals(\"\")) {\n where = where + \" and \";\n } // if where\n where = where + OXYGEN_MAX + \"=\" + getOxygenMax(\"\");\n } // if getOxygenMax\n if (getNitrateMin() != FLOATNULL) {\n if (!where.equals(\"\")) {\n where = where + \" and \";\n } // if where\n where = where + NITRATE_MIN + \"=\" + getNitrateMin(\"\");\n } // if getNitrateMin\n if (getNitrateMax() != FLOATNULL) {\n if (!where.equals(\"\")) {\n where = where + \" and \";\n } // if where\n where = where + NITRATE_MAX + \"=\" + getNitrateMax(\"\");\n } // if getNitrateMax\n if (getPhosphateMin() != FLOATNULL) {\n if (!where.equals(\"\")) {\n where = where + \" and \";\n } // if where\n where = where + PHOSPHATE_MIN + \"=\" + getPhosphateMin(\"\");\n } // if getPhosphateMin\n if (getPhosphateMax() != FLOATNULL) {\n if (!where.equals(\"\")) {\n where = where + \" and \";\n } // if where\n where = where + PHOSPHATE_MAX + \"=\" + getPhosphateMax(\"\");\n } // if getPhosphateMax\n if (getSilicateMin() != FLOATNULL) {\n if (!where.equals(\"\")) {\n where = where + \" and \";\n } // if where\n where = where + SILICATE_MIN + \"=\" + getSilicateMin(\"\");\n } // if getSilicateMin\n if (getSilicateMax() != FLOATNULL) {\n if (!where.equals(\"\")) {\n where = where + \" and \";\n } // if where\n where = where + SILICATE_MAX + \"=\" + getSilicateMax(\"\");\n } // if getSilicateMax\n if (getChlorophyllMin() != FLOATNULL) {\n if (!where.equals(\"\")) {\n where = where + \" and \";\n } // if where\n where = where + CHLOROPHYLL_MIN + \"=\" + getChlorophyllMin(\"\");\n } // if getChlorophyllMin\n if (getChlorophyllMax() != FLOATNULL) {\n if (!where.equals(\"\")) {\n where = where + \" and \";\n } // if where\n where = where + CHLOROPHYLL_MAX + \"=\" + getChlorophyllMax(\"\");\n } // if getChlorophyllMax\n if (dbg) System.out.println (\"<br>where = \" + where); // debug\n return (!where.equals(\"\") ? where : null);\n }", "@Test\n \tpublic void whereClauseForNodeExactDominance() {\n \t\tnode23.addJoin(new Dominance(node42, 10));\n \t\tcheckWhereCondition(\n //\t\t\t\tjoin(\"=\", \"_rank23.component_ref\", \"_rank42.component_ref\"),\n \t\t\t\tjoin(\"=\", \"_component23.type\", \"'d'\"),\n \t\t\t\t\"_component23.name IS NULL\",\n \t\t\t\tjoin(\"<\", \"_rank23.pre\", \"_rank42.pre\"),\n \t\t\t\tjoin(\"<\", \"_rank42.pre\", \"_rank23.post\"),\n \t\t\t\tjoin(\"=\", \"_rank23.level\", \"_rank42.level\", -10)\n \t\t);\n \t}", "@Override\n public PaymentP2007_03 where(Condition... conditions) {\n return where(DSL.and(conditions));\n }", "@Override\n\tpublic Void visit(ClauseModifier clause, Void ctx) {\n\t\treturn null;\n\t}", "void generateWriteParam2WhereCondition(Builder methodBuilder, SQLiteModelMethod method, String paramName, TypeName paramTypeName);", "@Override\n public PaymentP2007_03 where(Field<Boolean> condition) {\n return where(DSL.condition(condition));\n }", "@Override\n @PlainSQL\n public PaymentP2007_03 where(@Stringly.SQL String condition, Object... binds) {\n return where(DSL.condition(condition, binds));\n }", "@Test\n public void testDAM31201001() {\n // In this test case the where clause is specified in a common sql shared in multiple queries.\n testDAM30505001();\n }", "public abstract OptimisationSolution getBestSolution();", "private void concatWhere(StringBuilder sb, Criteria root) {\n root.args.clear();\r\n if (root.rootRestrictions != null) {\r\n root.where = root.rootRestrictions.getWhere(root.args);\r\n if (root.where.length() > 0) {\r\n sb.append(\" WHERE \");\r\n sb.append(root.where);\r\n }\r\n }\r\n // Criteria current = root;\r\n // for (Restrictions restriction : current.propRestrictionList) {\r\n // if (!appendWhere) {\r\n // sb.append(\" WHERE\");\r\n // appendWhere = true;\r\n // }\r\n // sb.append(\" \");\r\n // sb.append(property2Column(restriction.property));\r\n // sb.append(restriction.op);\r\n // sb.append(property2Column((String) restriction.value));\r\n // }\r\n // while (current != null) {\r\n // if (!current.restrictionList.isEmpty()) {\r\n // if (!appendWhere) {\r\n // sb.append(\" WHERE\");\r\n // appendWhere = true;\r\n // }\r\n // for (Restrictions restriction : current.restrictionList) {\r\n // sb.append(\" \");\r\n // sb.append(property2Column(restriction.property));\r\n // sb.append(restriction.op);\r\n // sb.append('?');\r\n // root.args.add(restriction.value);\r\n // }\r\n // }\r\n // current = current.child;\r\n // }\r\n \r\n }", "@Test\n \tpublic void whereClauseForNodeIndirectDominance() {\n \t\tnode23.addJoin(new Dominance(node42));\n \t\tcheckWhereCondition(\n //\t\t\t\tjoin(\"=\", \"_rank23.component_ref\", \"_rank42.component_ref\"),\n \t\t\t\tjoin(\"=\", \"_component23.type\", \"'d'\"),\n \t\t\t\t\"_component23.name IS NULL\",\n \t\t\t\tjoin(\"<\", \"_rank23.pre\", \"_rank42.pre\"),\n \t\t\t\tjoin(\"<\", \"_rank42.pre\", \"_rank23.post\")\n \t\t);\n \t}", "@Override\n public R visit(WhereClause n, A argu) {\n R _ret = null;\n n.nodeOptional.accept(this, argu);\n n.groupGraphPattern.accept(this, argu);\n return _ret;\n }", "public IAverage whereClause(String whereClause);", "private String _buildWhereCondition(Vector conditions){\n String strConditions = \"\";\n if(conditions != null){\n strConditions = clsPopulateFunctions.joinVector(conditions, \" AND \");\n }\n return strConditions;\n }", "@Override\n public String getWhereClause() {\n Object ref = whereClause_;\n if (ref instanceof String) {\n return (String) ref;\n } else {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n whereClause_ = s;\n return s;\n }\n }", "IRequirement or(IRequirement constraint);", "@Test\n \tpublic void whereClauseForNodeSameSpan() {\n \t\tnode23.addJoin(new SameSpan(node42));\n \t\tcheckWhereCondition(\n \t\t\t\tjoin(\"=\", \"_node23.text_ref\", \"_node42.text_ref\"),\n \t\t\t\tjoin(\"=\", \"_node23.left\", \"_node42.left\"),\n \t\t\t\tjoin(\"=\", \"_node23.right\", \"_node42.right\")\n \t\t);\n \t}", "protected String getSQLWhere()\n \t{\n \t\tStringBuffer sql = new StringBuffer();\n \t\tif (fDocumentNo.getText().length() > 0)\n \t\t\tsql.append(\" AND UPPER(p.DocumentNo) LIKE ?\");\n if (fRoutingNo.getText().length() > 0)\n sql.append(\" AND UPPER(p.RoutingNo) LIKE ?\"); // Marcos Zúñiga\n if (fCheckNo.getText().length() > 0)\n sql.append(\" AND UPPER(p.CheckNo) LIKE ?\"); // Marcos Zúñiga\n if (fA_Name.getText().length() > 0)\n sql.append(\" AND UPPER(p.A_Name) LIKE ?\"); // Marcos Zúñiga\n \t\tif (fDateFrom.getValue() != null || fDateTo.getValue() != null)\n \t\t{\n \t\t\tTimestamp from = (Timestamp)fDateFrom.getValue();\n \t\t\tTimestamp to = (Timestamp)fDateTo.getValue();\n \t\t\tif (from == null && to != null)\n \t\t\t\tsql.append(\" AND TRUNC(p.DateTrx) <= ?\");\n \t\t\telse if (from != null && to == null)\n \t\t\t\tsql.append(\" AND TRUNC(p.DateTrx) >= ?\");\n \t\t\telse if (from != null && to != null)\n \t\t\t\tsql.append(\" AND TRUNC(p.DateTrx) BETWEEN ? AND ?\");\n \t\t}\n \t\t//\n \t\tif (fAmtFrom.getValue() != null || fAmtTo.getValue() != null)\n \t\t{\n \t\t\tBigDecimal from = (BigDecimal)fAmtFrom.getValue();\n \t\t\tBigDecimal to = (BigDecimal)fAmtTo.getValue();\n \t\t\tif (from == null && to != null)\n \t\t\t\tsql.append(\" AND p.PayAmt <= ?\");\n \t\t\telse if (from != null && to == null)\n \t\t\t\tsql.append(\" AND p.PayAmt >= ?\");\n \t\t\telse if (from != null && to != null)\n \t\t\t\tsql.append(\" AND p.PayAmt BETWEEN ? AND ?\");\n \t\t}\n \t\tsql.append(\" AND p.IsReceipt=?\");\n \n \t\t// sql.append(\" AND p.IsReconciled='N'\");\n \n \t\tlog.fine(sql.toString());\n \t\treturn sql.toString();\n \t}", "BoundQuery<?,Ttuple> solve(Query q,Focus<?> context)\n throws DataException;", "@Override\n public Expression translateSyntacticSugar() {\n return new Condition(this.e1, BooleanConstant.TRUE, this.e2);\n }", "public T caseWhere(Where object) {\n\t\treturn null;\n\t}", "public ArrayList<Predicate> expandInConjunctiveFormula(){\n\t\tArrayList<Predicate> formula = new ArrayList<Predicate>();\n\t\t\n\t\t// (x, (0,2)) (y,1) \n\t\t//holds positions of the vars\n\t\tHashtable<String,ArrayList<String>> pos = new Hashtable<String,ArrayList<String>>();\n\t\t//(const3, \"10\")\n\t\t//holds vars that have constants assigned\n\t\tHashtable<String,String> constants = new Hashtable<String,String>();\n\t\t\n\t\tRelationPredicate p = this.clone();\n\t\t//rename each term to a unique name\n\t\tfor(int i=0; i<p.terms.size(); i++){\n\t\t\tTerm t = p.terms.get(i);\n\t\t\tt.changeVarName(i);\n\n\t\t}\n\t\tformula.add(p);\n\n\t\tArrayList<String> attrsOld = getVarsAndConst();\n\t\tArrayList<String> attrsNew = p.getVarsAndConst();\n\n\t\t\n\t\tfor(int i=0; i<attrsOld.size(); i++){\n\t\t\tTerm t = terms.get(i);\n\t\t\tif(t instanceof ConstTerm){\n\t\t\t\t//get the constant value\n\t\t\t\tconstants.put(attrsNew.get(i),t.getVal());\n\t\t\t}\n\t\t\t\n\t\t\tArrayList<String> posVals = pos.get(attrsOld.get(i));\n\t\t\tif(posVals==null){\n\t\t\t\tposVals=new ArrayList<String>();\n\t\t\t\tpos.put(attrsOld.get(i),posVals);\n\t\t\t}\n\t\t\tposVals.add(String.valueOf(i));\n\n\t\t}\n\t\t\n\t\t//System.out.println(\"Position of attrs=\" + pos + \" Constants= \" + constants);\n\t\n\t\t//deal with var equality x0=x2\n\t\tIterator<String> it = pos.keySet().iterator();\n\t\twhile(it.hasNext()){\n\t\t\tString key = (String)it.next();\n\t\t\tArrayList<String> vals = pos.get(key);\n\t\t\tif(vals.size()>1){\n\t\t\t\t//add x0=x2 & x2=x9, etc\n\t\t\t\tfor(int i=1; i<vals.size(); i++){\n\t\t\t\t\tBuiltInPredicate p1 = new BuiltInPredicate(MediatorConstants.EQUALS);\n\t\t\t\t\t//p1.addTerm(new VarTerm(key+vals.get(i)));\n\t\t\t\t\t//p1.addTerm(new VarTerm(key+vals.get(i+1)));\n\t\t\t\t\tVarTerm v1 = new VarTerm(key);\n\t\t\t\t\tv1.changeVarName(Integer.valueOf(vals.get(i-1)).intValue());\n\t\t\t\t\tp1.addTerm(v1);\n\t\t\t\t\tVarTerm v2 = new VarTerm(key);\n\t\t\t\t\tv2.changeVarName(Integer.valueOf(vals.get(i)).intValue());\n\t\t\t\t\tp1.addTerm(v2);\n\t\t\t\t\tformula.add(p1);\n\t\t\t\t\t//i=i+1;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t//deal with constants\n\t\tit = constants.keySet().iterator();\n\t\twhile(it.hasNext()){\n\t\t\tString key = (String)it.next();\n\t\t\tString val = constants.get(key);\n\t\t\t//it's a constant\n\t\t\t//add const3=\"10\"\n\t\t\tBuiltInPredicate p1 = new BuiltInPredicate(MediatorConstants.EQUALS);\n\t\t\tp1.addTerm(new VarTerm(key));\n\t\t\tp1.addTerm(new ConstTerm(val));\n\t\t\tformula.add(p1);\n\t\t}\n\t\treturn formula;\n\t}", "void build(ISqlClauseBuilder builder);", "public WhereClause where(final AbstractCondition condition)\n\t{\n\t\treturn new WhereClause(this, condition);\n\t}", "@Override\n @PlainSQL\n public PaymentP2007_03 where(@Stringly.SQL String condition) {\n return where(DSL.condition(condition));\n }", "public void where(String s, String p, String o) {\n\twheres.append(\" \").append(s != null ? s : \"?s\").append(\" \")\n\t\t.append(p != null ? p : \"?p\").append(\" \")\n\t\t.append(o != null ? o : \"?o\").append(\" . \");\n }", "@Override\n @PlainSQL\n public PaymentP2007_03 where(@Stringly.SQL String condition, QueryPart... parts) {\n return where(DSL.condition(condition, parts));\n }", "cn.infinivision.dataforce.busybee.pb.meta.Expr getCondition();", "@Test\n public void t1()\n {\n \tFormula f1;\n \tEnvironment retenv;\n \tClause clause1,clause2,clause3;\n \tclause1 = make (na);\n\n \tf1=new Formula(clause1);\n \tSystem.out.println(\"---\");\n \tSystem.out.println(f1);\n \tretenv=SATSolver.solve(f1);\n \tSystem.out.println(\"Solution: \"+retenv);\n \t\n \tassertTrue(Boolean.TRUE);\n }", "@Override\n @PlainSQL\n public PaymentP2007_03 where(SQL condition) {\n return where(DSL.condition(condition));\n }", "@Test\n public void testWhere_withValidQuery() {\n String column0 = \"user_id\";\n String column1 = \"age\";\n int idValue0 = 0;\n int ageValue0 = 23;\n int idValue1 = 1;\n int ageValue1 = 22;\n int idValue2 = 2;\n int ageValue2 = 18;\n\n try {\n String sql = \"CREATE TABLE ModelExtension (\" +\n column0 + \" int, \" +\n column1 + \" int)\";\n PreparedStatement pstmt = Setup.getConnection().prepareStatement(sql);\n pstmt.execute();\n sql = \"INSERT INTO ModelExtension (\" +\n column0 + \", \" +\n column1 + \") VALUES (\" +\n idValue0 + \", \" +\n ageValue0 + \"), (\" +\n idValue1 + \", \" +\n ageValue1 + \"), (\" +\n idValue2 + \", \" +\n ageValue2 + \")\";\n pstmt = Setup.getConnection().prepareStatement(sql);\n pstmt.executeUpdate();\n } catch (SQLException e) {\n e.printStackTrace();\n assertTrue(false);\n }\n\n List<ModelExtension> models = child.findAll().where(column1 + \">20\").execute(ModelExtension.class);\n\n assertEquals(2, models.size());\n assertEquals(idValue0, models.get(0).get(column0));\n assertEquals(ageValue0, models.get(0).get(column1));\n assertEquals(idValue1, models.get(1).get(column0));\n assertEquals(ageValue1, models.get(1).get(column1));\n }", "@Override\r\n public StringBuilder getWhereStatement(BuildingContext context, StringBuilder targetAlias, List<Object> params) {\n AbstractMsSQLDatabaseDialect dialect = (AbstractMsSQLDatabaseDialect)context.getDialect(); \r\n String schemaName;\r\n try{\r\n schemaName = dialect.getSchemaName();\r\n }catch(Exception e){\r\n throw new RuntimeException(\"Failed to get schema name from MSSQL Dialect\", e);\r\n }\r\n \r\n StringBuilder statement = new StringBuilder((schemaName.length() != 0 ? schemaName+\".\" : \"\"))\r\n .append(\"PREAD\")\r\n .append(\"(\")\r\n .append(QueryUtils.asPrefix(targetAlias)).append(dialect.convertColumnName(Constants.FIELD_ID))\r\n .append(\",\")\r\n .append(QueryUtils.asPrefix(targetAlias)).append(dialect.convertColumnName(Constants.TABLE_NODE__SECURITY_ID))\r\n .append(\",?,?,?,?)>0\");\r\n\r\n \r\n Collection<String> groups = context.getSession().getGroupIDs();\r\n Collection<String> contexts = context.getSession().getContextIDs();\r\n StringBuffer groupNames = new StringBuffer();\r\n int i = 0;\r\n for(String group:groups){\r\n if(i++>0) {\r\n groupNames.append(',');\r\n }\r\n \r\n groupNames.append(dialect.convertStringToSQL(group));\r\n }\r\n \r\n StringBuffer contextNames = new StringBuffer();\r\n i = 0;\r\n for(String c:contexts){\r\n if(i++>0)\r\n contextNames.append(',');\r\n \r\n contextNames.append(dialect.convertStringToSQL(c));\r\n }\r\n \r\n \r\n params.add(dialect.convertStringToSQL(context.getSession().getUserID()));\r\n params.add(groupNames.toString());\r\n params.add(contextNames.toString());\r\n params.add(context.isAllowBrowse());\r\n \r\n return statement;\r\n }", "@Override\n\tArrayList<Prop> MakeClause() {\n\t\treturn null;\n\t}", "protected Disjunction clause(Argument a) {\n\t\tDisjunction result = new Disjunction(\"clause_\" + a.getName());\n\t\tSet<Argument> attackers = this.CAF.getArgumentAttackers(this.instance, a);\n\t\tFormula accepted = this.isAccepted(a, attackers);\n\t\tFormula notAccepted = this.isNotAccepted(a, attackers);\n\t\tresult.addSubformula(accepted);\n\t\tif(notAccepted != null) {\n\t\t\tresult.addSubformula(notAccepted);\n\t\t}\n\t\treturn result;\n\t}", "@Test\n \tpublic void whereClauseForNodeAnnotation() {\n \t\tnode23.addNodeAnnotation(new Annotation(\"namespace1\", \"name1\"));\n \t\tnode23.addNodeAnnotation(new Annotation(\"namespace2\", \"name2\", \"value2\", TextMatching.EXACT_EQUAL));\n \t\tnode23.addNodeAnnotation(new Annotation(\"namespace3\", \"name3\", \"value3\", TextMatching.REGEXP_EQUAL));\n \t\tcheckWhereCondition(\n \t\t\t\tjoin(\"=\", \"_annotation23_1.node_annotation_namespace\", \"'namespace1'\"),\n \t\t\t\tjoin(\"=\", \"_annotation23_1.node_annotation_name\", \"'name1'\"),\n \t\t\t\tjoin(\"=\", \"_annotation23_2.node_annotation_namespace\", \"'namespace2'\"),\n \t\t\t\tjoin(\"=\", \"_annotation23_2.node_annotation_name\", \"'name2'\"),\n \t\t\t\tjoin(\"=\", \"_annotation23_2.node_annotation_value\", \"'value2'\"),\n \t\t\t\tjoin(\"=\", \"_annotation23_3.node_annotation_namespace\", \"'namespace3'\"),\n \t\t\t\tjoin(\"=\", \"_annotation23_3.node_annotation_name\", \"'name3'\"),\n \t\t\t\tjoin(\"~\", \"_annotation23_3.node_annotation_value\", \"'^value3$'\")\n \t\t);\n \t}", "public String buildWhereSQL() throws Exception {\r\n if (!inputData.hasFilter()) {\r\n return null;\r\n }\r\n\r\n List<BasicFilter> filters = null;\r\n try {\r\n String filterString = inputData.getFilterString();\r\n Object filterObj = getFilterObject(filterString);\r\n\r\n filters = convertBasicFilterList(filterObj, filters);\r\n\r\n StringBuffer sb = new StringBuffer();\r\n String andDivisor = \"\";\r\n for (Object obj : filters) {\r\n BasicFilter filter = (BasicFilter) obj;\r\n\r\n sb.append(andDivisor);\r\n andDivisor = \" AND \";\r\n\r\n ColumnDescriptor column = inputData.getColumn(filter.getColumn().index());\r\n //the column name of filter\r\n sb.append(column.columnName());\r\n\r\n //the operation of filter\r\n FilterParser.Operation op = filter.getOperation();\r\n switch (op) {\r\n case HDOP_LT:\r\n sb.append(\"<\");\r\n break;\r\n case HDOP_GT:\r\n sb.append(\">\");\r\n break;\r\n case HDOP_LE:\r\n sb.append(\"<=\");\r\n break;\r\n case HDOP_GE:\r\n sb.append(\">=\");\r\n break;\r\n case HDOP_EQ:\r\n sb.append(\"=\");\r\n break;\r\n default:\r\n throw new UnsupportedFilterException(\"unsupported Filter operation : \" + op);\r\n }\r\n\r\n Object val = filter.getConstant().constant();\r\n switch (DataType.get(column.columnTypeCode())) {\r\n case SMALLINT:\r\n case INTEGER:\r\n case BIGINT:\r\n case FLOAT8:\r\n case REAL:\r\n case BOOLEAN:\r\n sb.append(val.toString());\r\n break;\r\n case TEXT:\r\n sb.append(\"'\").append(val.toString()).append(\"'\");\r\n break;\r\n case DATE:\r\n sb.append(\"'\" + val.toString() + \"'\");\r\n break;\r\n default:\r\n throw new UnsupportedFilterException(\"unsupported column type for filtering : \" + column.columnTypeCode());\r\n }\r\n\r\n }\r\n return sb.toString();\r\n } catch (UnsupportedFilterException ex) {\r\n // Do not throw exception, impose no constraints instead\r\n return null;\r\n }\r\n }", "public String getWhereClause() {\n Object ref = whereClause_;\n if (!(ref instanceof String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n whereClause_ = s;\n return s;\n } else {\n return (String) ref;\n }\n }", "public final AstValidator.filter_clause_return filter_clause() throws RecognitionException {\n AstValidator.filter_clause_return retval = new AstValidator.filter_clause_return();\n retval.start = input.LT(1);\n\n\n CommonTree root_0 = null;\n\n CommonTree _first_0 = null;\n CommonTree _last = null;\n\n CommonTree FILTER177=null;\n AstValidator.rel_return rel178 =null;\n\n AstValidator.cond_return cond179 =null;\n\n\n CommonTree FILTER177_tree=null;\n\n try {\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:389:15: ( ^( FILTER rel cond ) )\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:389:17: ^( FILTER rel cond )\n {\n root_0 = (CommonTree)adaptor.nil();\n\n\n _last = (CommonTree)input.LT(1);\n {\n CommonTree _save_last_1 = _last;\n CommonTree _first_1 = null;\n CommonTree root_1 = (CommonTree)adaptor.nil();\n _last = (CommonTree)input.LT(1);\n FILTER177=(CommonTree)match(input,FILTER,FOLLOW_FILTER_in_filter_clause1716); if (state.failed) return retval;\n if ( state.backtracking==0 ) {\n FILTER177_tree = (CommonTree)adaptor.dupNode(FILTER177);\n\n\n root_1 = (CommonTree)adaptor.becomeRoot(FILTER177_tree, root_1);\n }\n\n\n match(input, Token.DOWN, null); if (state.failed) return retval;\n _last = (CommonTree)input.LT(1);\n pushFollow(FOLLOW_rel_in_filter_clause1718);\n rel178=rel();\n\n state._fsp--;\n if (state.failed) return retval;\n if ( state.backtracking==0 ) \n adaptor.addChild(root_1, rel178.getTree());\n\n\n _last = (CommonTree)input.LT(1);\n pushFollow(FOLLOW_cond_in_filter_clause1720);\n cond179=cond();\n\n state._fsp--;\n if (state.failed) return retval;\n if ( state.backtracking==0 ) \n adaptor.addChild(root_1, cond179.getTree());\n\n\n match(input, Token.UP, null); if (state.failed) return retval;\n adaptor.addChild(root_0, root_1);\n _last = _save_last_1;\n }\n\n\n if ( state.backtracking==0 ) {\n }\n }\n\n if ( state.backtracking==0 ) {\n\n retval.tree = (CommonTree)adaptor.rulePostProcessing(root_0);\n }\n\n }\n\n catch(RecognitionException re) {\n throw re;\n }\n\n finally {\n \t// do for sure before leaving\n }\n return retval;\n }", "public Builder clearWhereClause() {\n\n whereClause_ = getDefaultInstance().getWhereClause();\n onChanged();\n return this;\n }", "@Test\n \tpublic void whereClauseForNodeEdgeAnnotation() {\n \t\tnode23.addEdgeAnnotation(new Annotation(\"namespace1\", \"name1\"));\n \t\tnode23.addEdgeAnnotation(new Annotation(\"namespace2\", \"name2\", \"value2\", TextMatching.EXACT_EQUAL));\n \t\tnode23.addEdgeAnnotation(new Annotation(\"namespace3\", \"name3\", \"value3\", TextMatching.REGEXP_EQUAL));\n \t\tcheckWhereCondition(\n \t\t\t\tjoin(\"=\", \"_rank_annotation23_1.edge_annotation_namespace\", \"'namespace1'\"),\n \t\t\t\tjoin(\"=\", \"_rank_annotation23_1.edge_annotation_name\", \"'name1'\"),\n \t\t\t\tjoin(\"=\", \"_rank_annotation23_2.edge_annotation_namespace\", \"'namespace2'\"),\n \t\t\t\tjoin(\"=\", \"_rank_annotation23_2.edge_annotation_name\", \"'name2'\"),\n \t\t\t\tjoin(\"=\", \"_rank_annotation23_2.edge_annotation_value\", \"'value2'\"),\n \t\t\t\tjoin(\"=\", \"_rank_annotation23_3.edge_annotation_namespace\", \"'namespace3'\"),\n \t\t\t\tjoin(\"=\", \"_rank_annotation23_3.edge_annotation_name\", \"'name3'\"),\n \t\t\t\tjoin(\"~\", \"_rank_annotation23_3.edge_annotation_value\", \"'^value3$'\")\n \t\t);\n \t}", "public interface SolutionQuery {\n\n Optional<String> getUser();\n\n Optional<String> getTask();\n\n Optional<SolutionStatus> getStatus();\n\n boolean isTest();\n}", "@Test\n \tpublic void whereClauseForNodeRoot() {\n \t\tnode23.setRoot(true);\n \t\tcheckWhereCondition(\"_rank23.root IS TRUE\");\n \t}", "@Test\n \tpublic void whereClauseForNodeOverlap() {\n \t\tnode23.addJoin(new Overlap(node42));\n \t\tcheckWhereCondition(\n \t\t\t\tjoin(\"=\", \"_node23.text_ref\", \"_node42.text_ref\"),\n \t\t\t\tjoin(\"<=\", \"_node23.left\", \"_node42.right\"),\n \t\t\t\tjoin(\"<=\", \"_node42.left\", \"_node23.right\")\n \t\t);\n \t}", "boolean isNewSolution();", "@Override\n public CNF transformCNF(CNF cnf) throws QueryContradictoryException {\n HashMap<TimeSelector, Long> lowerBounds = new HashMap<>();\n /*\n * stores the newly inferred upper bounds for time selectors\n */\n HashMap<TimeSelector, Long> upperBounds = new HashMap<>();\n // clauses (not) to consider\n List<CNFElement> relevantClauses = cnf.getPredicates().stream()\n .filter(this::isRelevantClause)\n .collect(Collectors.toList());\n List<CNFElement> otherClauses = cnf.getPredicates().stream()\n .filter(clause -> !isRelevantClause(clause))\n .collect(Collectors.toList());\n List<ComparisonExpression> relevantComparisons = relevantClauses.stream()\n .map(clause -> clause.getPredicates().get(0))\n .collect(Collectors.toList());\n\n // stores all tuples (a,b) with a=b in relevant comparisons\n HashMap<ComparableExpression, HashSet<ComparableExpression>> cEq = new HashMap<>();\n // stores all tuples (a,b) with a<=b in relevant comparisons\n HashMap<ComparableExpression, HashSet<ComparableExpression>> cLeq = new HashMap<>();\n // stores all tuples (a,b) with a<b in relevant comparisons\n HashMap<ComparableExpression, HashSet<ComparableExpression>> cLt = new HashMap<>();\n // stores all tuples (a,b) with a!=b in relevant comparisons\n HashMap<ComparableExpression, HashSet<ComparableExpression>> cNeq = new HashMap<>();\n\n\n // init bounds\n for (ComparisonExpression comp : relevantComparisons) {\n ComparableExpression lhs = comp.getLhs().getWrappedComparable();\n ComparableExpression rhs = comp.getRhs().getWrappedComparable();\n Comparator comparator = comp.getComparator();\n if (comp.getLhs() instanceof TimeSelectorComparable) {\n lowerBounds.put((TimeSelector) lhs, TemporalElement.DEFAULT_TIME_FROM);\n upperBounds.put((TimeSelector) lhs, TemporalElement.DEFAULT_TIME_TO);\n }\n if (comp.getRhs() instanceof TimeSelectorComparable) {\n lowerBounds.put((TimeSelector) rhs, TemporalElement.DEFAULT_TIME_FROM);\n upperBounds.put((TimeSelector) rhs, TemporalElement.DEFAULT_TIME_TO);\n }\n // init c-relations\n if (comparator.equals(EQ)) {\n cEq.putIfAbsent(lhs, new HashSet<>());\n cEq.putIfAbsent(rhs, new HashSet<>());\n cEq.get(lhs).add(rhs);\n cEq.get(rhs).add(lhs);\n } else if (comparator.equals(Comparator.LTE)) {\n cLeq.putIfAbsent(lhs, new HashSet<>());\n cLeq.get(lhs).add(rhs);\n } else if (comparator.equals(Comparator.LT)) {\n cLt.putIfAbsent(lhs, new HashSet<>());\n cLt.get(lhs).add(rhs);\n } else if (comparator.equals(Comparator.NEQ)) {\n cNeq.putIfAbsent(lhs, new HashSet<>());\n cNeq.get(lhs).add(rhs);\n }\n }\n\n // compute closures for =,<,<=\n List<HashMap<ComparableExpression, HashSet<ComparableExpression>>> closures =\n computeClosureRelations(cEq, cLeq, cLt);\n\n checkLtContradictions(closures.get(2));\n // infer new bounds\n List<HashMap<TimeSelector, Long>> newBounds = updateEq(closures.get(0), lowerBounds, upperBounds);\n newBounds = updateLeq(closures.get(1), newBounds.get(0), newBounds.get(1));\n newBounds = updateLt(closures.get(2), newBounds.get(0), newBounds.get(1));\n\n // check them for contradictions with NEQ clauses\n checkNeqContradictions(cNeq, newBounds.get(0), newBounds.get(1));\n // filter redundant clauses like a.tx_from <= a.tx_to and comparisons between selectors and literals\n List<ComparisonExpression> remainingOldComparisons = filterRedundantComparisons(relevantComparisons);\n // construct new clauses\n List<ComparisonExpression> newComparisons = comparisons(newBounds.get(0), newBounds.get(1));\n\n // construct the CNF\n List<CNFElement> remainingOldClauses = remainingOldComparisons.stream()\n .map(comparison -> new CNFElement(Collections.singletonList(comparison)))\n .collect(Collectors.toList());\n List<CNFElement> newClauses = newComparisons.stream()\n .map(comparison -> new CNFElement(Collections.singletonList(comparison)))\n .collect(Collectors.toList());\n\n List<CNFElement> allClauses = otherClauses;\n allClauses.addAll(remainingOldClauses);\n allClauses.addAll(newClauses);\n return new CNF(allClauses);\n }", "private boolean isRelevantClause(CNFElement clause) {\n return clause.size() == 1 && !isMinMax(clause.getPredicates().get(0)) &&\n !isDuration(clause.getPredicates().get(0));\n }", "public SolutionType getBestSolution();", "public Query QueryCompiler(Logger logger, BooleanJunction<BooleanJunction> booleanQuery) {\n logger.info(\"Compiling queries into super query.\");\n Query builtQuery = booleanQuery.createQuery();\n\n return builtQuery;\n }", "public List<Literal> query(Literal q) {\n\r\n\t\t\r\n\t\tList<Literal> result = datalogReasoner.query(compiledClauses, q);\r\n\t\t\r\n\t\tLDLPProgramQueryResultDecompiler decompiler = new LDLPProgramQueryResultDecompiler();\r\n\t\t\r\n\t\tresult = decompiler.decompileLiterals(result);\r\n\t\t\t\t\r\n\t\treturn result;\r\n\r\n\r\n\t}", "CampusSearchQuery generateQuery();", "public SATSolver get5Solver() {\n final int A = 1, B = 2, C = 3, D = 4, E = 5, F = 6;\n SATSolver solver = new SAT4JSolver();\n// int[][] clauses = {\n// \t{-1,2},{-1,3},{-1,4},{-1,5},{-1,6},{-2,-3},{-2,-4},{-2,-5},{-2,-6},\n// \t{-3,1},{-3,2},{-4,1,2,3},{-5,-1},{-5,-2},{-5,-3},{-5,-4},{-6,-1},{-6,-2},\n// \t{-6,-3},{-6,-4},{-6,-5},\n// \t{-2,-3,-4,-5,-6,1},{3,4,5,6,2},{-1,-2,3},{-1,4},{-2,4},{-3,4},{1,2,3,4,5},{1,2,3,4,5,6}};\n \n int[][] clauses = {\n \t\t// From statement (1)\n \t\t{A, -B, -C, -D, -E, -F},\n \t\t{-A, B},\n \t\t{-A, C},\n \t\t{-A, D},\n \t\t{-A, E},\n \t\t{-A, F},\n \t\t\n \t\t// From statement (2)\n \t\t{B, C, D, E, F},\n \t\t{-B, -C},\n \t\t{-B, -D},\n \t\t{-B, -E},\n \t\t{-B, -F},\n \t\t\n \t\t// From statement (3)\n \t\t{C, -A, -B},\n \t\t{-C, A},\n \t\t{-C, B},\n \t\t\n \t\t// From statement (4)\n \t\t{D, -A},\n \t\t{D, -B},\n \t\t{D, -C},\n \t\t{A, B, C, -D},\n \t\t\n \t\t// From statement (5)\n \t\t{A, B, C, D, E},\n \t\t{-E, -A},\n \t\t{-E, -B},\n \t\t{-E, -C},\n \t\t{-E, -D},\n \t\t\n \t\t// From statement (6)\n \t\t{A, B, C, D, E, F},\n \t\t{-F, -A},\n \t\t{-F, -B},\n \t\t{-F, -C},\n \t\t{-F, -D},\n \t\t{-F, -E},\n \t\t\n }; // TODO - Insert your clauses here.\n for (int[] clause : clauses)\n solver.addClause(clause);\n return solver;\n\t}", "public Filter condition();", "private Clause make(Literal... e) {\n Clause c = new Clause();\n for (int i = 0; i < e.length; ++i) {\n c = c.add(e[i]);\n }\n return c;\n }", "public void setWhere(ZExpression whereExpression)\r\n\t{\r\n\t\twhere = whereExpression;\r\n\t}", "@Test\n \tpublic void whereClauseForNodeDirectDominance() {\n \t\tnode23.addJoin(new Dominance(node42, 1));\n \t\tcheckWhereCondition(\n //\t\t\t\tjoin(\"=\", \"_rank23.component_ref\", \"_rank42.component_ref\"),\n \t\t\t\tjoin(\"=\", \"_component23.type\", \"'d'\"),\n \t\t\t\t\"_component23.name IS NULL\",\n \t\t\t\tjoin(\"=\", \"_rank23.pre\", \"_rank42.parent\")\n \t\t);\n \t}" ]
[ "0.63097155", "0.6147727", "0.5807044", "0.56697", "0.5639103", "0.5596217", "0.55839896", "0.55307895", "0.551278", "0.5498659", "0.5486953", "0.5474359", "0.5473774", "0.5472899", "0.5457598", "0.5436036", "0.54284215", "0.5427362", "0.54259205", "0.53648025", "0.5355079", "0.53472495", "0.53245157", "0.5305128", "0.5303227", "0.52830344", "0.5255603", "0.52394736", "0.52242696", "0.5222058", "0.5218331", "0.52102745", "0.5188806", "0.5184506", "0.5179244", "0.51675564", "0.5167283", "0.5162929", "0.5157809", "0.5131012", "0.5130345", "0.5120394", "0.5115239", "0.5111795", "0.5110306", "0.5103814", "0.50900394", "0.5078095", "0.50640404", "0.5051772", "0.50514483", "0.503577", "0.5014893", "0.50057274", "0.5004282", "0.5001432", "0.49970105", "0.49913195", "0.49851105", "0.49827057", "0.4975425", "0.49733505", "0.49704957", "0.4965135", "0.49622902", "0.49609017", "0.49463555", "0.49346557", "0.49319768", "0.4931081", "0.49295652", "0.49285403", "0.49284023", "0.49205667", "0.4912758", "0.49078718", "0.49075788", "0.49051133", "0.4899417", "0.48905885", "0.48853704", "0.48822457", "0.4873141", "0.48695755", "0.48663333", "0.48615983", "0.48612973", "0.48571855", "0.48565158", "0.48559237", "0.48514426", "0.4847011", "0.48419535", "0.48407567", "0.4831962", "0.4822142", "0.4817105", "0.48061928", "0.4804939", "0.4800773" ]
0.6802641
0
nodeToken > nodeToken1 > "(" expression > Expression() nodeToken2 > var > Var() nodeToken3 > ")"
@Override public R visit(Bind n, A argu) { R _ret = null; n.nodeToken.accept(this, argu); n.nodeToken1.accept(this, argu); n.expression.accept(this, argu); n.nodeToken2.accept(this, argu); n.var.accept(this, argu); n.nodeToken3.accept(this, argu); return _ret; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void visit(Parenthesis arg0) {\n\t\t\n\t}", "@Override\r\n\tpublic boolean visit(VariableDeclarationFragment node) {\r\n//\t\toperator(node);\r\n\t\treturn true;\r\n\t}", "@Test(timeout = 4000)\n public void test135() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"d>%NV0\");\n Token token0 = xPathLexer0.leftParen();\n assertEquals(\"d\", token0.getTokenText());\n assertEquals(1, token0.getTokenType());\n \n Token token1 = xPathLexer0.nextToken();\n assertEquals(\">\", token1.getTokenText());\n assertEquals(9, token1.getTokenType());\n \n Token token2 = xPathLexer0.identifierOrOperatorName();\n assertEquals(15, token2.getTokenType());\n assertEquals(\"\", token2.getTokenText());\n }", "Node getVariable();", "public static void parse()\r\n {\r\n int initial;\r\n initial=expression();\r\n stateList.get(0).setNext1(initial);\r\n stateList.get(0).setNext2(initial);\r\n if(index<=expression.length()-1)\r\n {\r\n error();\r\n }\r\n else\r\n {\r\n state st=new state(state,\"END\",-1,-1);\r\n stateList.add(st);\r\n }\r\n }", "@Test(timeout = 4000)\n public void test153() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\") (\");\n Token token0 = xPathLexer0.nextToken();\n assertEquals(\")\", token0.getTokenText());\n assertEquals(2, token0.getTokenType());\n }", "@Override\n\tpublic void visit(Parenthesis arg0) {\n\n\t}", "@Test(timeout = 4000)\n public void test075() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\") (\");\n Token token0 = xPathLexer0.equals();\n xPathLexer0.setPreviousToken(token0);\n assertEquals(21, token0.getTokenType());\n assertEquals(\")\", token0.getTokenText());\n \n Token token1 = xPathLexer0.identifierOrOperatorName();\n assertEquals(15, token1.getTokenType());\n assertEquals(\"\", token1.getTokenText());\n }", "@Test\r\n public void test1(){\r\n Exp one = new NumericLiteral(1);\r\n Exp three = new NumericLiteral(3);\r\n Exp exp = new PlusExp(one, three);\r\n Stmt decl = new DeclStmt(\"x\");\r\n Stmt assign = new Assignment(\"x\", exp);\r\n Stmt seq = new Sequence(decl, assign);\r\n assertEquals(seq.text(), \"var x; x = 1 + 3\");\r\n }", "@Test\n void testExample1() {\n List<Token> input = Arrays.asList(\n new Token(Token.Type.IDENTIFIER, \"LET\", -1),\n new Token(Token.Type.IDENTIFIER, \"first\", -1),\n new Token(Token.Type.OPERATOR, \":\", -1),\n new Token(Token.Type.IDENTIFIER, \"INTEGER\", -1),\n new Token(Token.Type.OPERATOR, \"=\", -1),\n new Token(Token.Type.INTEGER, \"1\", -1),\n new Token(Token.Type.OPERATOR, \";\", -1),\n\n new Token(Token.Type.IDENTIFIER, \"WHILE\", -1),\n new Token(Token.Type.IDENTIFIER, \"first\", -1),\n new Token(Token.Type.OPERATOR, \"!=\", -1),\n new Token(Token.Type.INTEGER, \"10\", -1),\n new Token(Token.Type.IDENTIFIER, \"DO\", -1),\n\n new Token(Token.Type.IDENTIFIER, \"PRINT\", -1),\n new Token(Token.Type.OPERATOR, \"(\", -1),\n new Token(Token.Type.IDENTIFIER, \"first\", -1),\n new Token(Token.Type.OPERATOR, \")\", -1),\n new Token(Token.Type.OPERATOR, \";\", -1),\n\n new Token(Token.Type.IDENTIFIER, \"first\", -1),\n new Token(Token.Type.OPERATOR, \"=\", -1),\n new Token(Token.Type.IDENTIFIER, \"first\", -1),\n new Token(Token.Type.OPERATOR, \"+\", -1),\n new Token(Token.Type.INTEGER, \"1\", -1),\n new Token(Token.Type.OPERATOR, \";\", -1),\n\n new Token(Token.Type.IDENTIFIER, \"END\", -1)\n );\n Ast.Source expected = new Ast.Source(Arrays.asList(\n new Ast.Statement.Declaration(\"first\", \"INTEGER\",\n Optional.of(new Ast.Expression.Literal(BigInteger.valueOf(1)))),\n new Ast.Statement.While(\n new Ast.Expression.Binary(\"!=\",\n new Ast.Expression.Variable(\"first\"),\n new Ast.Expression.Literal(BigInteger.valueOf(10))\n ),\n Arrays.asList(\n new Ast.Statement.Expression(\n new Ast.Expression.Function(\"PRINT\", Arrays.asList(\n new Ast.Expression.Variable(\"first\"))\n )\n ),\n new Ast.Statement.Assignment(\"first\",\n new Ast.Expression.Binary(\"+\",\n new Ast.Expression.Variable(\"first\"),\n new Ast.Expression.Literal(BigInteger.valueOf(1))\n )\n )\n )\n )\n ));\n test(input, expected, Parser::parseSource);\n }", "@Test(timeout = 4000)\n public void test079() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\") (\");\n Token token0 = xPathLexer0.at();\n xPathLexer0.setPreviousToken(token0);\n assertEquals(\")\", token0.getTokenText());\n assertEquals(16, token0.getTokenType());\n \n Token token1 = xPathLexer0.identifierOrOperatorName();\n assertEquals(15, token1.getTokenType());\n assertEquals(\"\", token1.getTokenText());\n }", "@Test(timeout = 4000)\n public void test074() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\") (\");\n Token token0 = xPathLexer0.notEquals();\n xPathLexer0.setPreviousToken(token0);\n assertEquals(\") \", token0.getTokenText());\n assertEquals(22, token0.getTokenType());\n \n Token token1 = xPathLexer0.identifierOrOperatorName();\n assertEquals(15, token1.getTokenType());\n assertEquals(\"\", token1.getTokenText());\n }", "@Test(timeout = 4000)\n public void test146() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"(2><\");\n Token token0 = xPathLexer0.leftParen();\n assertEquals(\"(\", token0.getTokenText());\n assertEquals(1, token0.getTokenType());\n \n Token token1 = xPathLexer0.nextToken();\n assertEquals(\"2\", token1.getTokenText());\n assertEquals(30, token1.getTokenType());\n }", "private ELOperandToken readVarToken() {\r\n \t\tfState = STATE_VAR;\r\n \t\tint endOfToken = index;\r\n \t\tint ch;\r\n \t\tint type = ELOperandToken.EL_PROPERTY_NAME_TOKEN;\r\n \t\twhile((ch = readCharBackward()) != -1) {\r\n \t\t\tif (!Character.isJavaIdentifierPart(ch)) {\r\n \t\t\t\treleaseChar();\r\n \t\t\t\treturn (endOfToken - index > 0 ? new ELOperandToken(index, endOfToken - index, getCharSequence(index, endOfToken - index), type) : ELOperandToken.EOF);\r\n \t\t\t}\r\n \t\t}\r\n \t\treleaseChar();\r\n \t\treturn (endOfToken - index > 0 ? new ELOperandToken(index, endOfToken - index, getCharSequence(index, endOfToken - index), type) : ELOperandToken.EOF);\r\n \t}", "private Object parseExpr() throws IOException, FSException{\n\n ETreeNode curNode=null;\n boolean end=false;\n Object val;\n boolean negate=false; //flag for unary minus\n boolean not=false;//flag for unary not.\n boolean prevOp=true;//flag - true if previous value was an operator\n\n while (!end){\n\n switch (tok.ttype) {\n\n\n //the various possible 'values'\n case LexAnn.TT_INTEGER:\n case LexAnn.TT_DOUBLE:\n case LexAnn.TT_STRING:\n case LexAnn.TT_WORD:\n case LexAnn.TT_FUNC:\n case LexAnn.TT_NULL:\n case LexAnn.TT_ARRAY:{\n\n if (!prevOp){\n parseError(\"Expected Operator\");\n } else {\n\n val=null;\n ETreeNode node=new ETreeNode();\n node.type=ETreeNode.E_VAL;\n\n switch (tok.ttype){\n //numbers - just get them\n case LexAnn.TT_INTEGER:{\n val=tok.value;\n break;\n }\n case LexAnn.TT_DOUBLE:{\n val=tok.value;\n break;\n }\n //functions - evaluate them\n case LexAnn.TT_FUNC:{\n String name=(String)tok.value;\n getNextToken();\n val=parseCallFunc(name);\n break;\n }\n //arrays - evaluate them\n case LexAnn.TT_ARRAY:{\n String name=(String)tok.value;\n getNextToken(); //should be a '['\n getNextToken(); //should be the index\n Object index=parseExpr();\n try {\n val=host.getVarEntry(name,index);\n } catch (Exception e) {\n parseError(e.getMessage());\n }\n break;\n }\n //variables - resolve them\n case LexAnn.TT_WORD:{\n if (hasVar((String)tok.value)) {\n val=getVar((String)tok.value);\n } else {\n try {\n val=host.getVarEntry((String)tok.value,null);\n } catch (Exception e) {\n parseError(e.getMessage());\n }\n }\n break;\n }\n //strings - just get again\n case LexAnn.TT_STRING:{\n val=tok.value;\n break;\n }\n //null\n case LexAnn.TT_NULL:{\n val=new FSObject(null);\n break;\n }\n }\n\n //unary not\n if (not){\n if (val instanceof Integer){\n if (((Integer)val).intValue()==0){\n val=FS_TRUE;\n } else {\n val=FS_FALSE;\n }\n not=false;\n } else if (val instanceof FSObject && ((FSObject)val).getObject() instanceof Boolean) {\n if (((FSObject)val).getObject().equals(Boolean.FALSE)) {\n val=FS_TRUE;\n } else {\n val=FS_FALSE;\n }\n } else if (val instanceof FSObject && ((FSObject)val).getObject() instanceof Integer) {\n if (((Integer)((FSObject)val).getObject()).intValue()==0) {\n val=FS_TRUE;\n } else {\n val=FS_FALSE;\n }\n } else {\n String msg=val.getClass().getName();\n if (val instanceof FSObject) msg=\"FSObject with \"+((FSObject)val).getNullClass().getName();\n parseError(\"Type mismatch for ! \"+msg);\n }\n }\n\n //unary minus\n if (negate) {\n if (val instanceof Integer){\n val=new Integer(-((Integer)val).intValue());\n } else if (val instanceof Double){\n val=new Double(-((Double)val).doubleValue());\n } else {\n parseError(\"Type mistmatch for unary -\");\n }\n }\n\n node.value=val;\n\n if (curNode!=null){\n if (curNode.left==null){\n curNode.left=node;\n node.parent=curNode;\n curNode=node;\n\n } else if (curNode.right==null){\n curNode.right=node;\n node.parent=curNode;\n curNode=node;\n\n }\n } else {\n curNode=node;\n }\n\n prevOp=false;\n }\n break;\n }\n /*operators - have to be more carefull with these.\n We build an expression tree - inserting the nodes at the right\n points to get a reasonable approximation to correct operator\n precidence*/\n case LexAnn.TT_LEQ:\n case LexAnn.TT_LNEQ:\n case LexAnn.TT_MULT:\n case LexAnn.TT_DIV:\n case LexAnn.TT_MOD:\n case LexAnn.TT_PLUS:\n case LexAnn.TT_MINUS:\n case LexAnn.TT_LGR:\n case LexAnn.TT_LGRE:\n case LexAnn.TT_LLSE:\n case LexAnn.TT_LLS:\n case LexAnn.TT_NOT:\n case LexAnn.TT_LAND:\n case LexAnn.TT_LOR: {\n if (prevOp){\n if (tok.ttype==LexAnn.TT_MINUS){\n negate=true;\n } else if (tok.ttype==LexAnn.TT_NOT){\n not=true;\n } else {\n parseError(\"Expected Expression\");\n }\n } else {\n\n ETreeNode node=new ETreeNode();\n\n node.type=ETreeNode.E_OP;\n node.value=new Integer(tok.ttype);\n\n if (curNode.parent!=null){\n\n int curPrio=getPrio(tok.ttype);\n int parPrio=\n getPrio(((Integer)curNode.parent.value).intValue());\n\n if (curPrio<=parPrio){\n //this nodes parent is the current nodes grandparent\n node.parent=curNode.parent.parent;\n //our nodes left leg is now linked into the current nodes\n //parent\n node.left=curNode.parent;\n //hook into grandparent\n if (curNode.parent.parent!=null){\n curNode.parent.parent.right=node;\n }\n\n //the current nodes parent is now us (because of above)\n curNode.parent=node;\n //set the current node.\n curNode=node;\n } else {\n //current node's parent's right is now us.\n curNode.parent.right=node;\n //our nodes left is the current node.\n node.left=curNode;\n //our nodes parent is the current node's parent.\n node.parent=curNode.parent;\n //curent nodes parent is now us.\n curNode.parent=node;\n //set the current node.\n curNode=node;\n }\n } else {\n //our node's left is the current node\n node.left=curNode;\n //current node's parent is us now\n //we don't have to set our parent, as it is null.\n curNode.parent=node;\n //set current node\n curNode=node;\n }\n prevOp=true;\n }\n break;\n }\n case '(':\n //start of an bracketed expression, recursively call ourself\n //to get a value\n {\n getNextToken();\n val=parseExpr();\n\n if (negate) {\n if (val instanceof Integer){\n val=new Integer(-((Integer)val).intValue());\n } else if (val instanceof Double){\n val=new Double(-((Double)val).doubleValue());\n } else {\n parseError(\"Type mistmatch for unary -\");\n }\n }\n\n ETreeNode node=new ETreeNode();\n node.value=val;\n node.type=ETreeNode.E_VAL;\n\n if (curNode!=null){\n if (curNode.left==null){\n curNode.left=node;\n node.parent=curNode;\n curNode=node;\n\n } else if (curNode.right==null){\n curNode.right=node;\n node.parent=curNode;\n curNode=node;\n\n }\n } else {\n curNode=node;\n }\n prevOp=false;\n break;\n }\n\n default: {\n end=true;\n }\n\n }\n if (!end){\n tok.nextToken();\n }\n }\n\n //find the top of the tree we just built.\n if (curNode==null) parseError(\"Missing Expression\");\n while(curNode.parent!=null){\n curNode=curNode.parent;\n }\n\n\n return evalETree(curNode);\n\n }", "Expr expr();", "@Override\n public TreeNode parse() {\n TreeNode first = ArithmeticSubexpression.getAdditive(environment).parse();\n if (first == null) return null;\n\n // Try to parse something starting with an operator.\n List<Wrapper> wrappers = RightSideSubexpression.createKleene(\n environment, ArithmeticSubexpression.getAdditive(environment),\n BemTeVicTokenType.EQUAL, BemTeVicTokenType.DIFFERENT,\n BemTeVicTokenType.GREATER_OR_EQUALS, BemTeVicTokenType.GREATER_THAN,\n BemTeVicTokenType.LESS_OR_EQUALS, BemTeVicTokenType.LESS_THAN\n ).parse();\n\n // If did not found anything starting with an operator, return the first node.\n if (wrappers.isEmpty()) return first;\n\n // Constructs a binary operator node containing the expression.\n Iterator<Wrapper> it = wrappers.iterator();\n Wrapper secondWrapper = it.next();\n BinaryOperatorNode second = new BinaryOperatorNode(secondWrapper.getTokenType(), first, secondWrapper.getOutput());\n\n if (wrappers.size() == 1) return second;\n\n // If we reach this far, the expression has more than one operator. i.e. (x = y = z),\n // which is a shortcut for (x = y AND y = z).\n\n // Firstly, determine if the operators are compatible.\n RelationalOperatorSide side = RelationalOperatorSide.NONE;\n for (Wrapper w : wrappers) {\n side = side.next(w.getTokenType());\n }\n if (side.isMixed()) {\n environment.emitError(\"XXX\");\n }\n\n // Creates the other nodes. In the expression (a = b = c = d), The \"a = b\"\n // is in the \"second\" node. Creates \"b = c\", and \"c = d\" nodes.\n List<BinaryOperatorNode> nodes = new LinkedList<BinaryOperatorNode>();\n nodes.add(second);\n\n TreeNode prev = secondWrapper.getOutput();\n while (it.hasNext()) {\n Wrapper w = it.next();\n BinaryOperatorNode current = new BinaryOperatorNode(w.getTokenType(), prev, w.getOutput());\n prev = w.getOutput();\n nodes.add(current);\n }\n\n // Combines all of the nodes in a single one using AND.\n return new VariableArityOperatorNode(BemTeVicTokenType.AND, nodes);\n }", "@Test(timeout = 4000)\n public void test105() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\";b_z(sF5\");\n Token token0 = xPathLexer0.leftParen();\n assertEquals(\";\", token0.getTokenText());\n assertEquals(1, token0.getTokenType());\n \n Token token1 = xPathLexer0.nextToken();\n assertEquals(\"b_z\", token1.getTokenText());\n assertEquals(15, token1.getTokenType());\n }", "@Test(timeout = 4000)\n public void test132() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"3APV;W&5C\\\"!eSgJk*X\");\n Token token0 = xPathLexer0.leftParen();\n assertEquals(1, token0.getTokenType());\n assertEquals(\"3\", token0.getTokenText());\n \n Token token1 = xPathLexer0.nextToken();\n assertEquals(\"APV\", token1.getTokenText());\n assertEquals(15, token1.getTokenType());\n }", "int parseExpression() {\r\n\t\t\t\tint x = parseTerm();\r\n\t\t\t\tfor (;;) {\r\n\t\t\t\t\tif (eat('+'))\r\n\t\t\t\t\t\tx += parseTerm(); // addition\r\n\t\t\t\t\telse if (eat('-'))\r\n\t\t\t\t\t\tx -= parseTerm(); // subtraction\r\n\t\t\t\t\telse\r\n\t\t\t\t\t\treturn x;\r\n\t\t\t\t}\r\n\t\t\t}", "@Test(timeout = 4000)\n public void test084() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"(xA>7o;9b=;e*Y(m\");\n Token token0 = xPathLexer0.rightParen();\n xPathLexer0.setPreviousToken(token0);\n Token token1 = xPathLexer0.identifierOrOperatorName();\n assertNull(token1);\n }", "@Test(timeout = 4000)\n public void test112() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"ji{:[5xw96\");\n Token token0 = xPathLexer0.rightParen();\n assertEquals(2, token0.getTokenType());\n assertEquals(\"j\", token0.getTokenText());\n \n Token token1 = xPathLexer0.dollar();\n assertEquals(26, token1.getTokenType());\n assertEquals(\"i\", token1.getTokenText());\n \n Token token2 = xPathLexer0.notEquals();\n assertEquals(\"{:\", token2.getTokenText());\n assertEquals(22, token2.getTokenType());\n \n Token token3 = xPathLexer0.nextToken();\n assertEquals(3, token3.getTokenType());\n assertEquals(\"[\", token3.getTokenText());\n \n Token token4 = xPathLexer0.identifierOrOperatorName();\n assertEquals(15, token4.getTokenType());\n assertEquals(\"5xw96\", token4.getTokenText());\n }", "public R visit(StmtExp n) {\n R _ret=null;\n n.f0.accept(this);\n // System.out.println(\"BEGIN\");\n n.f1.accept(this);\n n.f2.accept(this);\n \t\n String s = (String) n.f3.accept(this);\n current_temp =s;\n n.f4.accept(this);\n //System.out.println(\"END\");\n return (R)s;\n }", "@Test(timeout = 4000)\n public void test117() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"_V)2V93#c=~\\\")I\");\n Token token0 = xPathLexer0.leftParen();\n assertEquals(1, token0.getTokenType());\n assertEquals(\"_\", token0.getTokenText());\n \n Token token1 = xPathLexer0.nextToken();\n assertEquals(\"V\", token1.getTokenText());\n assertEquals(15, token1.getTokenType());\n }", "@Test(timeout = 4000)\n public void test133() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"P@,DtvglU*(KV:16h\");\n Token token0 = xPathLexer0.leftParen();\n assertEquals(1, token0.getTokenType());\n assertEquals(\"P\", token0.getTokenText());\n \n Token token1 = xPathLexer0.nextToken();\n assertEquals(\"@\", token1.getTokenText());\n assertEquals(16, token1.getTokenType());\n }", "@Test(timeout = 4000)\n public void test157() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"($mYG)Udli\");\n Token token0 = xPathLexer0.leftParen();\n assertEquals(1, token0.getTokenType());\n assertEquals(\"(\", token0.getTokenText());\n \n Token token1 = xPathLexer0.nextToken();\n assertEquals(\"$\", token1.getTokenText());\n assertEquals(26, token1.getTokenType());\n }", "public interface Expression {\n \n enum ExpressivoGrammar {ROOT, SUM, PRODUCT, TOKEN, PRIMITIVE_1, PRIMITIVE_2, \n NUMBER, INT, DECIMAL, WHITESPACE, VARIABLE};\n \n public static Expression buildAST(ParseTree<ExpressivoGrammar> concreteSymbolTree) {\n \n if (concreteSymbolTree.getName() == ExpressivoGrammar.DECIMAL) {\n /* reached a double terminal */\n return new Num(Double.parseDouble(concreteSymbolTree.getContents())); \n }\n\n else if (concreteSymbolTree.getName() == ExpressivoGrammar.INT) {\n /* reached an int terminal */\n return new Num(Integer.parseInt(concreteSymbolTree.getContents()));\n }\n \n else if (concreteSymbolTree.getName() == ExpressivoGrammar.VARIABLE) {\n /* reached a terminal */\n return new Var(concreteSymbolTree.getContents());\n }\n \n else if (concreteSymbolTree.getName() == ExpressivoGrammar.ROOT || \n concreteSymbolTree.getName() == ExpressivoGrammar.TOKEN || \n concreteSymbolTree.getName() == ExpressivoGrammar.PRIMITIVE_1 || \n concreteSymbolTree.getName() == ExpressivoGrammar.PRIMITIVE_2 || \n concreteSymbolTree.getName() == ExpressivoGrammar.NUMBER) {\n \n /* non-terminals with only one child */\n for (ParseTree<ExpressivoGrammar> child: concreteSymbolTree.children()) {\n if (child.getName() != ExpressivoGrammar.WHITESPACE) \n return buildAST(child);\n }\n \n // should never reach here\n throw new IllegalArgumentException(\"error in parsing\");\n }\n \n else if (concreteSymbolTree.getName() == ExpressivoGrammar.SUM || concreteSymbolTree.getName() == ExpressivoGrammar.PRODUCT) {\n /* a sum or product node can have one or more children that need to be accumulated together */\n return accumulator(concreteSymbolTree, concreteSymbolTree.getName()); \n }\n \n else {\n throw new IllegalArgumentException(\"error in input: should never reach here\");\n }\n \n }\n \n /**\n * (1) Create parser using lib6005.parser from grammar file\n * (2) Parse string input into CST\n * (3) Build AST from this CST using buildAST()\n * @param input\n * @return Expression (AST)\n */\n public static Expression parse(String input) {\n \n try {\n Parser<ExpressivoGrammar> parser = GrammarCompiler.compile(\n new File(\"src/expressivo/Expression.g\"), ExpressivoGrammar.ROOT);\n ParseTree<ExpressivoGrammar> concreteSymbolTree = parser.parse(input);\n \n// tree.display();\n \n return buildAST(concreteSymbolTree);\n \n }\n \n catch (UnableToParseException e) {\n throw new IllegalArgumentException(\"Can't parse the expression...\");\n }\n catch (IOException e) {\n System.out.println(\"Cannot open file Expression.g\");\n throw new RuntimeException(\"Can't open the file with grammar...\");\n }\n }\n \n // helper methods\n public static Expression accumulator(ParseTree<ExpressivoGrammar> tree, ExpressivoGrammar grammarObj) {\n Expression expr = null;\n boolean first = true;\n List<ParseTree<ExpressivoGrammar>> children = tree.children();\n int len = children.size();\n for (int i = len-1; i >= 0; i--) {\n /* the first child */\n ParseTree<ExpressivoGrammar> child = children.get(i);\n if (first) {\n expr = buildAST(child);\n first = false;\n }\n \n /* accumulate this by creating a new binaryOp object with\n * expr as the leftOp and the result as rightOp\n **/\n \n else if (child.getName() == ExpressivoGrammar.WHITESPACE) continue;\n else {\n if (grammarObj == ExpressivoGrammar.SUM)\n expr = new Sum(buildAST(child), expr);\n else\n expr = new Product(buildAST(child), expr);\n }\n }\n \n return expr;\n \n }\n \n // ----------------- problems 3-4 -----------------\n \n public static Expression create(Expression leftExpr, Expression rightExpr, char op) {\n if (op == '+')\n return Sum.createSum(leftExpr, rightExpr);\n else\n return Product.createProduct(leftExpr, rightExpr);\n }\n\n public Expression differentiate(Var x);\n \n public Expression simplify(Map<String, Double> env);\n\n}", "@Test(timeout = 4000)\n public void test161() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\") T/\");\n Token token0 = xPathLexer0.leftParen();\n assertEquals(1, token0.getTokenType());\n assertEquals(\")\", token0.getTokenText());\n \n Token token1 = xPathLexer0.nextToken();\n assertEquals(15, token1.getTokenType());\n assertEquals(\"T\", token1.getTokenText());\n }", "@Override\r\n\tpublic void visit(VariableExpression variableExpression) {\n\r\n\t}", "@Test(timeout = 4000)\n public void test076() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"5!\");\n Token token0 = xPathLexer0.star();\n xPathLexer0.setPreviousToken(token0);\n assertEquals(20, token0.getTokenType());\n assertEquals(\"5\", token0.getTokenText());\n \n Token token1 = xPathLexer0.identifierOrOperatorName();\n assertEquals(15, token1.getTokenType());\n assertEquals(\"\", token1.getTokenText());\n }", "VariableExp createVariableExp();", "void token(TokenNode node);", "private String syntax(ArrayList<String> tokens){\r\n String tkn=\"Done\";\r\n boolean VarDeclFlag = true;\r\n boolean exitFlag = false;\r\n ArrayList<String> temp = new ArrayList<>();\r\n //TODO return error\r\n //TODO return error method\r\n for(int i=0; i<tokens.size(); i++){\r\n if(VarDeclFlag){ \r\n if(isId(tokens.get(i))){\r\n tokensDef.add(\"Var\");\r\n i++;\r\n if(isLeftParen(tokens.get(i))){\r\n VarDeclFlag=false;\r\n tokensDef.add(\"LeftParen\");\r\n i++;\r\n while(!isRightParen(tokens.get(i)) && exitFlag){\r\n if(exitFlag && !isRightParen(tokens.get(i))){\r\n return \"error\";\r\n }\r\n if(tokens.get(i).endsWith(\",\")){\r\n\t\t\t\t\t\t\t\t\t\r\n if(isId(removeLast(tokens.get(i)))){\r\n tokensDef.add(\"Var\");\r\n i++;\r\n }\r\n }\r\n else{\r\n if(isId(tokens.get(i))){\r\n exitFlag = true;\r\n tokensDef.add(\"Var\");\r\n i++; \r\n }\r\n }\r\n }\r\n }\r\n }\r\n }\r\n else {\r\n\t\tif(isId(tokens.get(i))){\r\n tokensDef.add(\"Var\");\r\n i++;\r\n if(isLeftParen(tokens.get(i))){\r\n VarDeclFlag=false;\r\n\t\t\ttokensDef.add(\"LeftParen\");\r\n i++;\r\n if(!isRightParen(tokens.get(i))){\r\n while(!isRightParen(tokens.get(i))){\r\n if(exitFlag && !isRightParen(tokens.get(i))){\r\n return \"error\";\r\n }\r\n if(tokens.get(i).endsWith(\",\")){\r\n if(isId(removeLast(tokens.get(i)))){\r\n tokensDef.add(\"Var\");\r\n i++;\r\n if(isRightParen(tokens.get(i))){\r\n return \"error\";\r\n }\r\n }\r\n else \r\n return \"error\";\r\n }\r\n else{\r\n if(isId(tokens.get(i))){\r\n tokensDef.add(\"Var\");\r\n i++;\r\n if(isRightParen(tokens.get(i))){\r\n tokensDef.add(\"RightParen\");\r\n i++;\r\n }\r\n else\r\n return \"error\";\r\n }\r\n }\r\n \r\n }\r\n }\r\n else{\r\n tokensDef.add(\"RightParen\");\r\n i++;\r\n } \r\n }\r\n }\r\n }\r\n }\r\n\t\t\r\n return tkn;\r\n \r\n }", "public void visit (Object expr) {\n\t\t\t\n\t\t\toffset += 2;\n\t\t\t\n\t\t\tif (expr instanceof VariableReferenceExpr) {\n\t\t\t\tvisit ( (VariableReferenceExpr) expr);\n\t\t\t} else if (expr instanceof UnionExpr) {\n\t\t\t\tvisit ( (UnionExpr) expr);\n\t\t\t} else if ( expr instanceof UnaryExpr) {\n\t\t\t\tvisit ( (UnaryExpr) expr);\n\t\t\t} else if ( expr instanceof TextNodeStep ) {\n\t\t\t\tvisit ( (TextNodeStep) expr) ;\n\t\t\t} else if ( expr instanceof RelationalExpr) {\n\t\t\t\tvisit ( (RelationalExpr) expr);\n\t\t\t} else if ( expr instanceof ProcessingInstructionNodeStep) {\n\t\t\t\tvisit ( (ProcessingInstructionNodeStep) expr) ;\n\t\t\t} else if ( expr instanceof Predicate) {\n\t\t\t\tvisit ( (Predicate) expr );\n\t\t\t} else if ( expr instanceof PathExpr) {\n\t\t\t\tvisit ( (PathExpr) expr) ;\n\t\t\t} else if ( expr instanceof NumberExpr) {\n\t\t\t\tvisit ( (NumberExpr) expr);\n\t\t\t} else if ( expr instanceof NameStep) {\n\t\t\t\tvisit ( (NameStep) expr);\n\t\t\t} else if ( expr instanceof MultiplicativeExpr) {\n\t\t\t\tvisit ( (MultiplicativeExpr) expr);\n\t\t\t} else if ( expr instanceof LogicalExpr) {\n\t\t\t\tvisit ( (LogicalExpr) expr);\n\t\t\t} else if ( expr instanceof LocationPath) {\n\t\t\t\tvisit ( (LocationPath) expr);\n\t\t\t} else if ( expr instanceof LiteralExpr) {\n\t\t\t\tvisit ( (LiteralExpr) expr);\n\t\t\t} else if ( expr instanceof FunctionCallExpr) {\n\t\t\t\tvisit ( (FunctionCallExpr) expr);\n\t\t\t} else if ( expr instanceof FilterExpr) {\n\t\t\t\tvisit ( (FilterExpr) expr);\n\t\t\t} else if ( expr instanceof EqualityExpr) {\n\t\t\t\tvisit ( (EqualityExpr) expr);\n\t\t\t} else if ( expr instanceof CommentNodeStep) {\n\t\t\t\tvisit ( (CommentNodeStep)expr);\n\t\t\t} else if ( expr instanceof AllNodeStep) {\n\t\t\t\tvisit ( (AllNodeStep) expr);\n\t\t\t} else if ( expr instanceof AdditiveExpr) {\n\t\t\t\tvisit ( (AdditiveExpr) expr);\n\t\t\t} else if (expr instanceof List) {\n\t\t\t\tvisitList((List)expr);\n\t\t\t} else if (expr != null) {\n\t\t\t\tout(\"Panic: Unknown expression kind {0} \",expr.getClass().getName()); //$NON-NLS-1$\n\t\t\t} else {\n\t\t\t\tout(\"null - unset\");\n\t\t\t}\n\t\t\t\n\t\t\toffset -= 2;\n\t\t}", "@Test\r\n\tpublic void test3() throws IOException, LexerException, ParserException {\r\n\t\tStringReader ex = new StringReader(\"(lam^s f.\\n\\t(lam^s x.x) (f 1))\\n(lam^c y.\\n\\t(lam^s z.z) y)\");\r\n\r\n\t\tParser parser = new Parser();\r\n\t\tTerm result = parser.Parsing(ex);\r\n\t}", "@Test(timeout = 4000)\n public void test101() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"qgS3&9T,:6UK}hF\");\n Token token0 = xPathLexer0.leftParen();\n assertEquals(\"q\", token0.getTokenText());\n assertEquals(1, token0.getTokenType());\n \n Token token1 = xPathLexer0.nextToken();\n assertEquals(\"gS3\", token1.getTokenText());\n assertEquals(15, token1.getTokenType());\n }", "@Override\n public void visit(VariableEvalNode variableEvalNode) {\n }", "public VariableToken(String text) {\n super(text);\n }", "Syntax.Node ParseActualParameters(Token t) throws Exception{\n if (t.token.equals(\"(\")){\n var expList = ParseExpList();\n t = lexer.next();\n if (t.token.equals(\")\")){\n return new Syntax.NodeActualParameters( expList);\n }\n }\n throw new Exception(\"Error in ParseActualParameters !!! \");\n }", "@Test(timeout = 4000)\n public void test116() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"LW>$p??\");\n Token token0 = xPathLexer0.leftParen();\n assertEquals(\"L\", token0.getTokenText());\n assertEquals(1, token0.getTokenType());\n \n Token token1 = xPathLexer0.nextToken();\n assertEquals(\"W\", token1.getTokenText());\n assertEquals(15, token1.getTokenType());\n }", "@Override\n public R visit(BrackettedExpression n, A argu) {\n R _ret = null;\n n.nodeToken.accept(this, argu);\n n.expression.accept(this, argu);\n n.nodeToken1.accept(this, argu);\n return _ret;\n }", "@Test(timeout = 4000)\n public void test068() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"Y44o{5$K\");\n xPathLexer0.leftParen();\n xPathLexer0.nextToken();\n Token token0 = xPathLexer0.operatorName();\n assertNull(token0);\n }", "ParenthesisExpr createParenthesisExpr();", "@Test(timeout = 4000)\n public void test137() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\":E<;\");\n Token token0 = xPathLexer0.rightParen();\n assertEquals(\":\", token0.getTokenText());\n assertEquals(2, token0.getTokenType());\n \n Token token1 = xPathLexer0.identifier();\n assertEquals(\"E\", token1.getTokenText());\n assertEquals(15, token1.getTokenType());\n \n Token token2 = xPathLexer0.nextToken();\n assertEquals(7, token2.getTokenType());\n assertEquals(\"<\", token2.getTokenText());\n }", "@Test(timeout = 4000)\n public void test003() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"hN!SM~8ux(wB\");\n xPathLexer0.dollar();\n Token token0 = xPathLexer0.and();\n assertNull(token0);\n }", "@Test(timeout = 4000)\n public void test150() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"4,\");\n Token token0 = xPathLexer0.leftParen();\n assertEquals(\"4\", token0.getTokenText());\n assertEquals(1, token0.getTokenType());\n \n Token token1 = xPathLexer0.nextToken();\n assertEquals(32, token1.getTokenType());\n assertEquals(\",\", token1.getTokenText());\n }", "@Test(timeout = 4000)\n public void test001() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"hN!SM~8ux(wB\");\n xPathLexer0.dollar();\n xPathLexer0.not();\n xPathLexer0.nextToken();\n xPathLexer0.leftParen();\n xPathLexer0.whitespace();\n xPathLexer0.plus();\n Token token0 = xPathLexer0.or();\n assertNull(token0);\n }", "@Test(timeout = 4000)\n public void test004() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"d>%NV0\");\n Token token0 = xPathLexer0.operatorName();\n assertNull(token0);\n }", "private InfixExpression getNode()\n{\n return (InfixExpression) ast_node;\n}", "public VariableNode(String attr)\n {\n this.name = attr;\n }", "public void visit(Literal literal) {}", "@Test\n\tpublic void expression1() throws SyntaxException, LexicalException {\n\t\tString input = \"2\";\n\t\tshow(input);\n\t\tScanner scanner = new Scanner(input).scan();\n\t\tshow(scanner);\n\t\tSimpleParser parser = new SimpleParser(scanner);\n\t\tparser.expression(); // Call expression directly.\n\t}", "@Test(timeout = 4000)\n public void test118() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\">Uuu/X==mpx'Q N+\");\n Token token0 = xPathLexer0.leftParen();\n assertEquals(1, token0.getTokenType());\n assertEquals(\">\", token0.getTokenText());\n \n Token token1 = xPathLexer0.nextToken();\n assertEquals(15, token1.getTokenType());\n assertEquals(\"Uuu\", token1.getTokenText());\n }", "private Expression parseParen(Tokenizer in) {\n\t\tExpression expr = parseExpr(in,OperatorLevel.lowest);\n\t\tToken expectParen = in.next();\n\t\tif (expectParen.type != Token.TokenType.CLOSE_PARENTHESIS)\n\t\t\tthrow new SyntaxError(\"Expected ) got: '\" + expectParen + \"'\" + expectParen.generateLineChar());\n\t\treturn expr;\n\t}", "public interface ExpressionVisitor{\n\n void handel(BracketExpression bracketExpression);\n\n void handel(NaturalNumber naturalNumber);\n\n\n void handel(Sum sum);\n void handel(Difference difference);\n void handel(Product product);\n void handel(Quotient quotient);\n\n void handel(VariableExpression variableExpression);\n}", "protected Evaluable parseExpression() throws ParsingException {\n Evaluable sub = parseSubExpression();\n\n while (_token != null &&\n _token.type == TokenType.Operator &&\n \">=<==!=\".indexOf(_token.text) >= 0) {\n\n String op = _token.text;\n\n next(true);\n\n Evaluable sub2 = parseSubExpression();\n\n sub = new OperatorCallExpr(new Evaluable[] { sub, sub2 }, op);\n }\n\n return sub;\n }", "@Test(timeout = 4000)\n public void test159() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"g\\\"K@1\");\n Token token0 = xPathLexer0.leftParen();\n assertEquals(\"g\", token0.getTokenText());\n assertEquals(1, token0.getTokenType());\n \n Token token1 = xPathLexer0.nextToken();\n assertEquals((-1), token1.getTokenType());\n }", "@Test(timeout = 4000)\n public void test130() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"pDt&YchL\");\n Token token0 = xPathLexer0.leftParen();\n assertEquals(1, token0.getTokenType());\n assertEquals(\"p\", token0.getTokenText());\n \n Token token1 = xPathLexer0.nextToken();\n assertEquals(15, token1.getTokenType());\n assertEquals(\"Dt\", token1.getTokenText());\n }", "@Test(timeout = 4000)\n public void test162() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"com.werken.saxpath.XPathLexer\");\n xPathLexer0.rightParen();\n xPathLexer0.notEquals();\n xPathLexer0.nextToken();\n Token token0 = xPathLexer0.identifierOrOperatorName();\n assertNull(token0);\n }", "@Test(timeout = 4000)\n public void test127() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"#Hl\\\"URCdTMz/SP7f,\");\n Token token0 = xPathLexer0.leftParen();\n assertEquals(\"#\", token0.getTokenText());\n assertEquals(1, token0.getTokenType());\n \n Token token1 = xPathLexer0.nextToken();\n assertEquals(\"Hl\", token1.getTokenText());\n assertEquals(15, token1.getTokenType());\n }", "@Test(timeout = 4000)\n public void test082() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\") (\");\n Token token0 = xPathLexer0.minus();\n xPathLexer0.setPreviousToken(token0);\n assertEquals(6, token0.getTokenType());\n assertEquals(\")\", token0.getTokenText());\n \n Token token1 = xPathLexer0.identifierOrOperatorName();\n assertEquals(\"\", token1.getTokenText());\n assertEquals(15, token1.getTokenType());\n }", "@Test(timeout = 4000)\n public void test114() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\":Y[~gy\");\n Token token0 = xPathLexer0.leftParen();\n assertEquals(1, token0.getTokenType());\n assertEquals(\":\", token0.getTokenText());\n \n Token token1 = xPathLexer0.nextToken();\n assertEquals(15, token1.getTokenType());\n assertEquals(\"Y\", token1.getTokenText());\n }", "@Test(timeout = 4000)\n public void test141() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"z8I-qq3BBV%.C. *\");\n Token token0 = xPathLexer0.leftParen();\n assertEquals(1, token0.getTokenType());\n assertEquals(\"z\", token0.getTokenText());\n \n Token token1 = xPathLexer0.nextToken();\n assertEquals(30, token1.getTokenType());\n assertEquals(\"8\", token1.getTokenText());\n }", "@Test(timeout = 4000)\n public void test088() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"<y\");\n Token token0 = xPathLexer0.leftParen();\n assertEquals(\"<\", token0.getTokenText());\n assertEquals(1, token0.getTokenType());\n \n Token token1 = xPathLexer0.nextToken();\n assertEquals(\"y\", token1.getTokenText());\n assertEquals(15, token1.getTokenType());\n }", "public R visit(Operator n) {\n R _ret=null;\n int which = n.f0.which;\n String s = \" \";\n switch (which)\n {\n case 0 : {s=\"LT\"; break;}\n case 1 : {s= \"PLUS\"; break;}\n case 2 : {s= \"MINUS\";break;}\n case 3 : {s= \"TIMES\"; break;}\n }\n \t return (R)s;\n }", "@Test(timeout = 4000)\n public void test096() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"ml'}{GbV%Y&X\");\n Token token0 = xPathLexer0.leftParen();\n assertEquals(1, token0.getTokenType());\n assertEquals(\"m\", token0.getTokenText());\n \n Token token1 = xPathLexer0.nextToken();\n assertEquals(\"l\", token1.getTokenText());\n assertEquals(15, token1.getTokenType());\n }", "@Test(timeout = 4000)\n public void test149() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"m6l-dKX`qghFq8(,{\");\n Token token0 = xPathLexer0.rightParen();\n assertEquals(2, token0.getTokenType());\n assertEquals(\"m\", token0.getTokenText());\n \n Token token1 = xPathLexer0.notEquals();\n assertEquals(\"6l\", token1.getTokenText());\n assertEquals(22, token1.getTokenType());\n \n Token token2 = xPathLexer0.nextToken();\n assertEquals(\"-\", token2.getTokenText());\n assertEquals(6, token2.getTokenType());\n }", "@Override\n\tpublic Object visit(ASTParen node, Object data) {\n\t\tSystem.out.print(\"(\");\n\t\tnode.childrenAccept(this, data);\n\t\tSystem.out.print(\")\");\n\t\treturn null;\n\t}", "@Test(timeout = 4000)\n public void test119() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"gQFm^#}*F\");\n Token token0 = xPathLexer0.leftParen();\n assertEquals(\"g\", token0.getTokenText());\n assertEquals(1, token0.getTokenType());\n \n Token token1 = xPathLexer0.nextToken();\n assertEquals(\"QFm\", token1.getTokenText());\n assertEquals(15, token1.getTokenType());\n }", "public Object parseValue(String expr);", "private TreeNode exprTreeHelper(String expr) {\n if (expr.charAt(0) != '(') {\n \n \treturn new TreeNode(expr); // you fill this in\n } else{\n // expr is a parenthesized expression.\n // Strip off the beginning and ending parentheses,\n // find the main operator (an occurrence of + or * not nested\n // in parentheses, and construct the two subtrees.\n int nesting = 0;\n int opPos = 0;\n char myChar='\\0';\n \n for (int k = 1; k < expr.length() - 1; k++) {\n myChar = expr.charAt(k);\n \tif(myChar == '('){\n \tnesting++;\n }\n if(myChar==')'){\n \tnesting--;\n }\n if(nesting == 0){\n \tif(myChar == '+' || myChar == '*'){\n \t\topPos = k;\n \t break;\t\n \t}\n }\n }\n \n String opnd1 = expr.substring(1, opPos);\n String opnd2 = expr.substring(opPos + 1, expr.length() - 1);\n String op = expr.substring(opPos, opPos + 1);\n System.out.println(\"expression = \" + expr);\n System.out.println(\"operand 1 = \" + opnd1);\n System.out.println(\"operator = \" + op);\n System.out.println(\"operand 2 = \" + opnd2);\n System.out.println();\n return new TreeNode(op,exprTreeHelper(opnd1),exprTreeHelper(opnd2));\n \n }\n }", "@Test(timeout = 4000)\n public void test122() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"yN}H8h\");\n Token token0 = xPathLexer0.leftParen();\n assertEquals(\"y\", token0.getTokenText());\n assertEquals(1, token0.getTokenType());\n \n Token token1 = xPathLexer0.nextToken();\n assertEquals(\"N\", token1.getTokenText());\n assertEquals(15, token1.getTokenType());\n }", "double parseExpression() {\n double x = parseTerm();\n for (;;) {\n if (eat('+')) x += parseTerm(); // addition\n else if (eat('-')) x -= parseTerm(); // subtraction\n else return x;\n }\n }", "double parseExpression() {\n double x = parseTerm();\n for (;;) {\n if (eat('+')) x += parseTerm(); // addition\n else if (eat('-')) x -= parseTerm(); // subtraction\n else return x;\n }\n }", "ExpOperand createExpOperand();", "@Override\n public R visit(RegexExpression n, A argu) {\n R _ret = null;\n n.nodeToken.accept(this, argu);\n n.nodeToken1.accept(this, argu);\n n.expression.accept(this, argu);\n n.nodeToken2.accept(this, argu);\n n.expression1.accept(this, argu);\n n.nodeOptional.accept(this, argu);\n n.nodeToken3.accept(this, argu);\n return _ret;\n }", "public interface ParseNodeVisitor {\r\n // non-leaf nodes: visitEnter and visitLeave\r\n\r\n ///////////////////////////////////////////////////////////\r\n // Constructs larger than statements\r\n void visitEnter(ParseNode node);\r\n\r\n void visitLeave(ParseNode node);\r\n\r\n void visitEnter(ProgramNode node);\r\n\r\n void visitLeave(ProgramNode node);\r\n\r\n ///////////////////////////////////////////////////////////\r\n // Function Node\r\n void visitEnter(GlobalDefinitionNode node);\r\n\r\n void visitLeave(GlobalDefinitionNode node);\r\n\r\n void visitEnter(FunctionDefinitionNode node);\r\n\r\n void visitLeave(FunctionDefinitionNode node);\r\n\r\n void visitEnter(LambdaNode node);\r\n\r\n void visitLeave(LambdaNode node);\r\n\r\n void visitEnter(LambdaParamTypeNode node);\r\n\r\n void visitLeave(LambdaParamTypeNode node);\r\n\r\n void visitEnter(ParameterListNode node);\r\n\r\n void visitLeave(ParameterListNode node);\r\n\r\n void visitEnter(ParameterSpecificationNode node);\r\n\r\n void visitLeave(ParameterSpecificationNode node);\r\n\r\n void visitEnter(FunctionInvocationNode node);\r\n\r\n void visitLeave(FunctionInvocationNode node);\r\n\r\n ///////////////////////////////////////////////////////////\r\n // Statement Node\r\n void visitEnter(BlockStatementNode node);\r\n\r\n void visitLeave(BlockStatementNode node);\r\n\r\n void visitEnter(PrintStatementNode node);\r\n\r\n void visitLeave(PrintStatementNode node);\r\n\r\n void visitEnter(DeclarationNode node);\r\n\r\n void visitLeave(DeclarationNode node);\r\n\r\n void visitEnter(AssignmentStatementNode node);\r\n\r\n void visitLeave(AssignmentStatementNode node);\r\n\r\n void visitEnter(IfStatementNode node);\r\n\r\n void visitLeave(IfStatementNode node);\r\n\r\n void visitEnter(WhileStatementNode node);\r\n\r\n void visitLeave(WhileStatementNode node);\r\n\r\n void visitEnter(ReleaseStatementNode node);\r\n\r\n void visitLeave(ReleaseStatementNode node);\r\n\r\n void visitEnter(ReturnStatementNode node);\r\n\r\n void visitLeave(ReturnStatementNode node);\r\n\r\n void visitEnter(CallStatementNode node);\r\n\r\n void visitLeave(CallStatementNode node);\r\n\r\n void visitEnter(BreakStatementNode node);\r\n\r\n void visitLeave(BreakStatementNode node);\r\n\r\n void visitEnter(ContinueStatementNode node);\r\n\r\n void visitLeave(ContinueStatementNode node);\r\n \r\n void visitEnter(ForStatementNode node);\r\n\r\n void visitLeave(ForStatementNode node);\r\n\r\n ///////////////////////////////////////////////////////////\r\n // Expression Node\r\n void visitEnter(BinaryOperatorNode node);\r\n\r\n void visitLeave(BinaryOperatorNode node);\r\n\r\n void visitEnter(UnaryOperatorNode node);\r\n\r\n void visitLeave(UnaryOperatorNode node);\r\n\r\n void visitEnter(TypeCastingNode node);\r\n\r\n void visitLeave(TypeCastingNode node);\r\n\r\n void visitEnter(ExpressionListNode node);\r\n\r\n void visitLeave(ExpressionListNode node);\r\n\r\n void visitEnter(NewArrayTypeLengthNode node);\r\n\r\n void visitLeave(NewArrayTypeLengthNode node);\r\n\r\n void visitEnter(TypeNode node);\r\n\r\n void visitLeave(TypeNode node);\r\n\r\n void visitEnter(TypeListNode node);\r\n\r\n void visitLeave(TypeListNode node);\r\n \r\n void visitEnter(LambdaTypeNode node);\r\n\r\n void visitLeave(LambdaTypeNode node);\r\n \r\n void visitEnter(ArrayIndexingNode node);\r\n\r\n void visitLeave(ArrayIndexingNode node);\r\n\r\n // leaf nodes: visitLeaf only\r\n void visit(BooleanConstantNode node);\r\n\r\n void visit(TypeCastedToNode node);\r\n\r\n void visit(ErrorNode node);\r\n\r\n void visit(IdentifierNode node);\r\n\r\n void visit(IntegerConstantNode node);\r\n\r\n void visit(FloatingConstantNode node);\r\n\r\n void visit(CharConstantNode node);\r\n\r\n void visit(StringConstantNode node);\r\n\r\n void visit(NewlineNode node);\r\n\r\n void visit(TabNode node);\r\n\r\n void visit(SpaceNode node);\r\n\r\n public static class Default implements ParseNodeVisitor {\r\n ///////////////////////////////////////////////////////////////////////////\r\n // Constructs larger than statements\r\n\r\n public void defaultVisit(ParseNode node) {}\r\n\r\n public void defaultVisitEnter(ParseNode node) {\r\n defaultVisit(node);\r\n }\r\n\r\n public void defaultVisitLeave(ParseNode node) {\r\n defaultVisit(node);\r\n }\r\n\r\n public void defaultVisitForLeaf(ParseNode node) {\r\n defaultVisit(node);\r\n }\r\n\r\n public void visitEnter(ParseNode node) {\r\n defaultVisitEnter(node);\r\n }\r\n\r\n public void visitLeave(ParseNode node) {\r\n defaultVisitLeave(node);\r\n }\r\n\r\n public void visitEnter(ProgramNode node) {\r\n defaultVisitEnter(node);\r\n }\r\n\r\n public void visitLeave(ProgramNode node) {\r\n defaultVisitLeave(node);\r\n }\r\n\r\n ///////////////////////////////////////////////////////////\r\n // Function Node\r\n public void visitEnter(GlobalDefinitionNode node) {\r\n defaultVisitEnter(node);\r\n }\r\n\r\n public void visitLeave(GlobalDefinitionNode node) {\r\n defaultVisitLeave(node);\r\n }\r\n\r\n public void visitEnter(FunctionDefinitionNode node) {\r\n defaultVisitEnter(node);\r\n }\r\n\r\n public void visitLeave(FunctionDefinitionNode node) {\r\n defaultVisitLeave(node);\r\n }\r\n\r\n public void visitEnter(LambdaNode node) {\r\n defaultVisitEnter(node);\r\n }\r\n\r\n public void visitLeave(LambdaNode node) {\r\n defaultVisitLeave(node);\r\n }\r\n\r\n public void visitEnter(LambdaParamTypeNode node) {\r\n defaultVisitEnter(node);\r\n }\r\n\r\n public void visitLeave(LambdaParamTypeNode node) {\r\n defaultVisitLeave(node);\r\n }\r\n\r\n public void visitEnter(ParameterListNode node) {\r\n defaultVisitEnter(node);\r\n }\r\n\r\n public void visitLeave(ParameterListNode node) {\r\n defaultVisitLeave(node);\r\n }\r\n\r\n public void visitEnter(ParameterSpecificationNode node) {\r\n defaultVisitEnter(node);\r\n }\r\n\r\n public void visitLeave(ParameterSpecificationNode node) {\r\n defaultVisitLeave(node);\r\n }\r\n\r\n public void visitEnter(FunctionInvocationNode node) {\r\n defaultVisitEnter(node);\r\n }\r\n\r\n public void visitLeave(FunctionInvocationNode node) {\r\n defaultVisitLeave(node);\r\n }\r\n\r\n ///////////////////////////////////////////////////////////////////////////\r\n // Statements\r\n\r\n /*\r\n * Statements -> BlockStatement PrintStatement Declaration AssignmentStatement IfStatement\r\n * WhileStatement ReleaseStatement ReturnStatement CallStatement BreakStatement\r\n * ContinueStatement\r\n */\r\n\r\n ///////////////////////////////////////////////////////////\r\n // BlockStatement\r\n public void visitEnter(BlockStatementNode node) {\r\n defaultVisitEnter(node);\r\n }\r\n\r\n public void visitLeave(BlockStatementNode node) {\r\n defaultVisitLeave(node);\r\n }\r\n\r\n ///////////////////////////////////////////////////////////\r\n // PrintStatement\r\n public void visitEnter(PrintStatementNode node) {\r\n defaultVisitEnter(node);\r\n }\r\n\r\n public void visitLeave(PrintStatementNode node) {\r\n defaultVisitLeave(node);\r\n }\r\n\r\n ///////////////////////////////////////////////////////////\r\n // DeclarationStatement\r\n public void visitEnter(DeclarationNode node) {\r\n defaultVisitEnter(node);\r\n }\r\n\r\n public void visitLeave(DeclarationNode node) {\r\n defaultVisitLeave(node);\r\n }\r\n\r\n ///////////////////////////////////////////////////////////\r\n // AssignmentStatement\r\n public void visitEnter(AssignmentStatementNode node) {\r\n defaultVisitEnter(node);\r\n }\r\n\r\n public void visitLeave(AssignmentStatementNode node) {\r\n defaultVisitLeave(node);\r\n }\r\n\r\n ///////////////////////////////////////////////////////////\r\n // IfStatement\r\n public void visitEnter(IfStatementNode node) {\r\n defaultVisitEnter(node);\r\n }\r\n\r\n public void visitLeave(IfStatementNode node) {\r\n defaultVisitLeave(node);\r\n }\r\n\r\n ///////////////////////////////////////////////////////////\r\n // WhileStatement\r\n public void visitEnter(WhileStatementNode node) {\r\n defaultVisitEnter(node);\r\n }\r\n\r\n public void visitLeave(WhileStatementNode node) {\r\n defaultVisitLeave(node);\r\n }\r\n\r\n ///////////////////////////////////////////////////////////\r\n // ReleaseStatement\r\n public void visitEnter(ReleaseStatementNode node) {\r\n defaultVisitEnter(node);\r\n }\r\n\r\n public void visitLeave(ReleaseStatementNode node) {\r\n defaultVisitLeave(node);\r\n }\r\n\r\n ///////////////////////////////////////////////////////////\r\n // ReturnStatement\r\n public void visitEnter(ReturnStatementNode node) {\r\n defaultVisitEnter(node);\r\n }\r\n\r\n public void visitLeave(ReturnStatementNode node) {\r\n defaultVisitLeave(node);\r\n }\r\n\r\n ///////////////////////////////////////////////////////////\r\n // CallStatement\r\n public void visitEnter(CallStatementNode node) {\r\n defaultVisitEnter(node);\r\n }\r\n\r\n public void visitLeave(CallStatementNode node) {\r\n defaultVisitLeave(node);\r\n }\r\n\r\n ///////////////////////////////////////////////////////////\r\n // BreakStatement\r\n public void visitEnter(BreakStatementNode node) {\r\n defaultVisitEnter(node);\r\n }\r\n\r\n public void visitLeave(BreakStatementNode node) {\r\n defaultVisitLeave(node);\r\n }\r\n\r\n ///////////////////////////////////////////////////////////\r\n // ContinueStatement\r\n public void visitEnter(ContinueStatementNode node) {\r\n defaultVisitEnter(node);\r\n }\r\n\r\n public void visitLeave(ContinueStatementNode node) {\r\n defaultVisitLeave(node);\r\n }\r\n \r\n ///////////////////////////////////////////////////////////\r\n // ForStatement\r\n public void visitEnter(ForStatementNode node) {\r\n defaultVisitEnter(node);\r\n }\r\n\r\n public void visitLeave(ForStatementNode node) {\r\n defaultVisitLeave(node);\r\n }\r\n\r\n ///////////////////////////////////////////////////////////////////////////\r\n // ExpressionNode\r\n\r\n public void visitEnter(BinaryOperatorNode node) {\r\n defaultVisitEnter(node);\r\n }\r\n\r\n public void visitLeave(BinaryOperatorNode node) {\r\n defaultVisitLeave(node);\r\n }\r\n\r\n public void visitEnter(UnaryOperatorNode node) {\r\n defaultVisitEnter(node);\r\n }\r\n\r\n public void visitLeave(UnaryOperatorNode node) {\r\n defaultVisitLeave(node);\r\n }\r\n\r\n public void visitEnter(TypeCastingNode node) {\r\n defaultVisitEnter(node);\r\n }\r\n\r\n public void visitLeave(TypeCastingNode node) {\r\n defaultVisitLeave(node);\r\n }\r\n\r\n public void visitEnter(ExpressionListNode node) {\r\n defaultVisitEnter(node);\r\n }\r\n\r\n public void visitLeave(ExpressionListNode node) {\r\n defaultVisitLeave(node);\r\n }\r\n\r\n public void visitEnter(NewArrayTypeLengthNode node) {\r\n defaultVisitEnter(node);\r\n }\r\n\r\n public void visitLeave(NewArrayTypeLengthNode node) {\r\n defaultVisitLeave(node);\r\n }\r\n\r\n public void visitLeave(ArrayIndexingNode node) {\r\n defaultVisitLeave(node);\r\n }\r\n\r\n public void visitEnter(ArrayIndexingNode node) {\r\n defaultVisitEnter(node);\r\n }\r\n\r\n public void visitEnter(TypeNode node) {\r\n defaultVisitEnter(node);\r\n }\r\n\r\n public void visitLeave(TypeNode node) {\r\n defaultVisitLeave(node);\r\n }\r\n \r\n public void visitEnter(LambdaTypeNode node) {\r\n defaultVisitEnter(node);\r\n }\r\n\r\n public void visitLeave(LambdaTypeNode node) {\r\n defaultVisitLeave(node);\r\n }\r\n \r\n public void visitEnter(TypeListNode node) {\r\n defaultVisitEnter(node);\r\n }\r\n\r\n public void visitLeave(TypeListNode node) {\r\n defaultVisitLeave(node);\r\n }\r\n\r\n ///////////////////////////////////////////////////////////////////////////\r\n // Leaf nodes\r\n public void visit(IdentifierNode node) {\r\n defaultVisitForLeaf(node);\r\n }\r\n\r\n public void visit(TypeCastedToNode node) {\r\n defaultVisitForLeaf(node);\r\n }\r\n\r\n public void visit(BooleanConstantNode node) {\r\n defaultVisitForLeaf(node);\r\n }\r\n\r\n public void visit(ErrorNode node) {\r\n defaultVisitForLeaf(node);\r\n }\r\n\r\n public void visit(IntegerConstantNode node) {\r\n defaultVisitForLeaf(node);\r\n }\r\n\r\n public void visit(FloatingConstantNode node) {\r\n defaultVisitForLeaf(node);\r\n }\r\n\r\n public void visit(CharConstantNode node) {\r\n defaultVisitForLeaf(node);\r\n }\r\n\r\n public void visit(StringConstantNode node) {\r\n defaultVisitForLeaf(node);\r\n }\r\n\r\n public void visit(NewlineNode node) {\r\n defaultVisitForLeaf(node);\r\n }\r\n\r\n public void visit(TabNode node) {\r\n defaultVisitForLeaf(node);\r\n }\r\n\r\n public void visit(SpaceNode node) {\r\n defaultVisitForLeaf(node);\r\n }\r\n }\r\n}", "@Override\n\tpublic String visitExpr(MicroParser.ExprContext ctx) {\n\t\tString prefix = visit(ctx.expr_prefix());\n\t\tString expr = prefix + visit(ctx.term());\n\t\t\n\t\t//System.out.println(\"in visit expr: \"+expr);\n\t\t//System.out.println(\"in visit expr: prefix is: \"+prefix);\n\t\tif((prefix.contentEquals(\"\"))) return expr;\n\t\tString op1, op2, result;\n\t\tString type = currentType;\n\t\tString[] ids = expr.split(\"\\\\-|\\\\+\");\n\t List<String> operands = new ArrayList<String>();\n\t List<Character> addops = new ArrayList<Character>();\n\t \n\t for(int i=0;i<expr.length();i++) {\n\t \tif(expr.charAt(i)=='+' || expr.charAt(i)=='-')\n\t \t\taddops.add(expr.charAt(i));\n\t }\n\t //create a list of addops\n\t \n\t //create a list of operands \n\t for(String i:ids) \n\t \t operands.add(i);\n\t \n\t op1 = operands.get(0);\n\t op2 = operands.get(1);\n\t temp = new Temporary(type);\n\t result = temp.fullName;\n\t tempList.addT(temp);\n\t //System.out.println(\"in visit expr, ops are: \"+op1+\" \"+ op2);\n\t //System.out.println(\"in visit expr, result is: \"+ result);\n\t if(addops.get(0)=='+') {\n\t \tglobalIR.addStmt(IRStatement.generateArithmetic(type, \"ADD\", op1, op2, result));\n\t \toperands.remove(0); operands.remove(0); addops.remove(0);\n\t }\n\t \t\n\t else {\n\t \tglobalIR.addStmt(IRStatement.generateArithmetic(type, \"SUB\", op1, op2, result));\n\t \toperands.remove(0); operands.remove(0); addops.remove(0);\n\t }\n\t \n\t \t\n\t if(operands.size()==0) return result;\n\t \n\t for(int i=0; i<operands.size();i++) {\n\t \top1 = result;\n\t \top2 = operands.get(i);\n\t \ttemp = new Temporary(type);\n\t \tresult = temp.fullName;\n\t \ttempList.addT(temp);\n\t \tif(addops.get(0)=='+') {\n\t\t \tglobalIR.addStmt(IRStatement.generateArithmetic(type, \"ADD\", op1, op2, result));\n\t\t \taddops.remove(0);\n\t \t}\n\t\t \t\n\t\t else {\n\t\t \tglobalIR.addStmt(IRStatement.generateArithmetic(type, \"SUB\", op1, op2, result));\n\t\t \taddops.remove(0);\n\t\t }\n\t\t \t\n\t }\n\t return result; \n\t\t\n\t}", "@Test(timeout = 4000)\n public void test124() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"Z uKBSX,^\");\n Token token0 = xPathLexer0.rightParen();\n assertEquals(\"Z\", token0.getTokenText());\n assertEquals(2, token0.getTokenType());\n \n Token token1 = xPathLexer0.notEquals();\n assertEquals(22, token1.getTokenType());\n assertEquals(\" u\", token1.getTokenText());\n \n Token token2 = xPathLexer0.nextToken();\n assertEquals(\"KBSX\", token2.getTokenText());\n assertEquals(15, token2.getTokenType());\n }", "public VariableNode(String name) {\n\t\tthis.name = name;\n\t}", "private double parseExpression() {\n\t\tdouble value = parseTerm();\n\t\twhile (true) {\n\t\t\tif (token.getType().equals(Token.Type.PLUS)) { // addition\n\t\t\t\ttoken=lexer.getNextToken();\n\t\t\t\tvalue += parseTerm();\n\t\t\t} else if (token.getType().equals(Token.Type.MINUS)) { // subtraction\n\t\t\t\ttoken = lexer.getNextToken();\n\t\t\t\tvalue -= parseTerm();\n\t\t\t} else {\n\t\t\t\treturn value;\n\t\t\t}\n\t\t}\n\t}", "@Test(timeout = 4000)\n public void test019() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\">6_XdrPl\");\n Token token0 = xPathLexer0.relationalOperator();\n assertNotNull(token0);\n assertEquals(\">\", token0.getTokenText());\n assertEquals(9, token0.getTokenType());\n \n Token token1 = xPathLexer0.rightParen();\n assertEquals(2, token1.getTokenType());\n assertEquals(\"6\", token1.getTokenText());\n \n char char0 = xPathLexer0.LA(0);\n assertEquals('6', char0);\n }", "public Snippet visit(DotNext n, Snippet argu) {\n\t Snippet _ret= new Snippet(\"\",\"\",null,false);\n\t _ret = n.identifier.accept(this, argu);\n\t n.nodeToken.accept(this, argu);\n\t n.nodeToken1.accept(this, argu);\n\t n.nodeToken2.accept(this, argu);\n\t n.nodeToken3.accept(this, argu);\n\t // return new Snippet(\"\", _ret.returnTemp+\".next()\", new X10Place(), false);\n\t return new Snippet(\"\", \"0\", new X10Place(), false);\n\t }", "public void accept(ExpressionNodeVisitor visitor);", "public static void main(String[] args) {\n\n System.out.println(\"119.1+(28.2+37.3*(46.4-55.5)-4.6+(3/2)+1) = \" + evaluateExpression(\"119.1 + ( 28.2 + 37.3 * ( 46.4 - 55.5 ) - 4.6 + ( 3 / 2 ) + 1 )\"));\n\n}", "private double evaluarExp6() throws Excepciones{\n double resultado;\n if(token.equals(\"(\")) {\n obtieneToken();\n resultado = evaluarExp2();\n if(!token.equals(\")\")){\n obtieneError(PARENTESIS);\n }\n obtieneToken();\n }else{\n resultado = valor();\n }\n return resultado;\n}", "private TreeNode exprTreeHelper(String expr) {\n if (expr.charAt(0) != '(') {\n return new TreeNode(expr); // you fill this in\n } else {\n // expr is a parenthesized expression.\n // Strip off the beginning and ending parentheses,\n // find the main operator (an occurrence of + or * not nested\n // in parentheses, and construct the two subtrees.\n int nesting = 0;\n int opPos = 0;\n for (int k = 1; k < expr.length() - 1; k++) {\n // you supply the missing code\n \tif (nesting == 0) {\n \t\tif (expr.charAt(k) == '+' || expr.charAt(k) == '*') {\n \t\t\topPos = k;\n \t\t}\n \t}\n \tif (expr.charAt(k) == '(') {\n \t\tnesting++;\n \t} else if (expr.charAt(k) == ')') {\n \t\tnesting--;\n \t}\n }\n String opnd1 = expr.substring(1, opPos);\n String opnd2 = expr.substring(opPos + 1, expr.length() - 1);\n String op = expr.substring(opPos, opPos + 1);\n System.out.println(\"expression = \" + expr);\n System.out.println(\"operand 1 = \" + opnd1);\n System.out.println(\"operator = \" + op);\n System.out.println(\"operand 2 = \" + opnd2);\n System.out.println();\n return new TreeNode(op, exprTreeHelper(opnd1), exprTreeHelper(opnd2)); // you fill this in\n }\n }", "@Test(timeout = 4000)\n public void test151() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"9M4i+yR.T\");\n Token token0 = xPathLexer0.number();\n assertEquals(\"9\", token0.getTokenText());\n assertEquals(30, token0.getTokenType());\n \n Token token1 = xPathLexer0.dollar();\n assertEquals(26, token1.getTokenType());\n assertEquals(\"M\", token1.getTokenText());\n \n Token token2 = xPathLexer0.at();\n assertEquals(16, token2.getTokenType());\n assertEquals(\"4\", token2.getTokenText());\n \n Token token3 = xPathLexer0.not();\n assertEquals(\"i\", token3.getTokenText());\n assertEquals(23, token3.getTokenType());\n \n Token token4 = xPathLexer0.nextToken();\n assertEquals(\"+\", token4.getTokenText());\n assertEquals(5, token4.getTokenType());\n \n Token token5 = xPathLexer0.nextToken();\n assertEquals(\"yR.T\", token5.getTokenText());\n assertEquals(15, token5.getTokenType());\n }", "public static String evaluate( String expr )\n {\n\n\tString[] arr = expr.split(\"//s+\");\n\tString ret = \"\";\n\tALStack<String> stack = new ALStack<String>();\n\tfor( String s: arr)\n\t stack.push(s);\n\n\tif( stack.peek().equals(\"(\")){\n\t stack.pop();\n\t int operator = findOp(stack.pop());\n\t ret = unload(operator, stack);\n\t return ret;\n\t}\n\treturn \"\";\n }", "final public IASTLiteralTextNode Argument() throws ParseException {\r\n IASTLiteralTextNode node = null;\r\n Token lastToken = null;\r\n Token equalToken = null;\r\n Token firstToken = null;\r\n switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\r\n case INT:\r\n firstToken = jj_consume_token(INT);\r\n if (jj_2_3(2147483647)) {\r\n equalToken = jj_consume_token(EQUAL);\r\n switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\r\n case MINUS:\r\n jj_consume_token(MINUS);\r\n break;\r\n default:\r\n jj_la1[16] = jj_gen;\r\n ;\r\n }\r\n lastToken = jj_consume_token(INT);\r\n } else {\r\n ;\r\n }\r\n if (equalToken == null) {\r\n lastToken = firstToken;\r\n }\r\n break;\r\n case ASTERISK:\r\n case WORD:\r\n case STRING:\r\n case PACKAGE_OPTION:\r\n switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\r\n case ASTERISK:\r\n firstToken = jj_consume_token(ASTERISK);\r\n break;\r\n case PACKAGE_OPTION:\r\n firstToken = jj_consume_token(PACKAGE_OPTION);\r\n break;\r\n case WORD:\r\n firstToken = jj_consume_token(WORD);\r\n break;\r\n case STRING:\r\n firstToken = jj_consume_token(STRING);\r\n break;\r\n default:\r\n jj_la1[17] = jj_gen;\r\n jj_consume_token(-1);\r\n throw new ParseException();\r\n }\r\n lastToken = firstToken;\r\n break;\r\n default:\r\n jj_la1[18] = jj_gen;\r\n jj_consume_token(-1);\r\n throw new ParseException();\r\n }\r\n node = getRawLiteralTextNodeSpanning(firstToken, lastToken);\r\n {if (true) return node;}\r\n throw new Error(\"Missing return statement in function\");\r\n }", "public Node function()\r\n\t{\r\n\t\tint index = lexer.getPosition();\r\n\t\tif(lexer.getToken()==Lexer.Token.IDENTIFIER)\r\n\t\t{\r\n\t\t\tString name = lexer.getString();\r\n\t\t\tif(lexer.getToken()==Lexer.Token.LEFT_BRACKETS)\r\n\t\t\t{\r\n\t\t\t\tNode exp = expression();\r\n\t\t\t\tif(exp!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tif(lexer.getToken()==Lexer.Token.RIGHT_BRACKETS)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif(name.equals(\"sin\")) return new Sin(exp);\r\n\t\t\t\t\t\tif(name.equals(\"cos\")) return new Cos(exp);\r\n\t\t\t\t\t\tif(name.equals(\"tan\")) return new Tan(exp);\r\n\t\t\t\t\t\tif(name.equals(\"log\")) return new Log(exp);\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\tlexer.setPosition(index);\r\n\t\treturn null;\r\n\t}", "@Test(timeout = 4000)\n public void test061() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\") (\");\n Token token0 = xPathLexer0.whitespace();\n assertEquals(\"\", token0.getTokenText());\n assertEquals((-2), token0.getTokenType());\n }", "public void visit(VariableDeclarator n) {\n n.f0.accept(this);\n n.f1.accept(this);\n }", "java_cup.runtime.Symbol TOKEN(int code) { return TOKEN(code, yytext()); }", "@Test\n\tpublic void testExpression() throws ParseException {\n\t\tExpression expression = langParser(\"a\").expression();\n\t\tassertEquals(expression.getClass(), Identifier.class);\n\t\texpression = langParser(\"a()\").expression();\n\t\tassertEquals(expression.getClass(), FunctionCall.class);\n\t\texpression = langParser(\"a.b\").expression();\n\t\tassertEquals(expression.getClass(), MemberAccess.class);\n\t\texpression = langParser(\"1\").expression();\n\t\tassertEquals(expression.getClass(), LongLiteral.class);\n\t\texpression = langParser(\"1.1\").expression();\n\t\tassertEquals(expression.getClass(), DoubleLiteral.class);\n\t\texpression = langParser(\"if(a,b,c)\").expression();\n\t\tassertEquals(expression.getClass(), TernaryIf.class);\n\t}", "@Test(timeout = 4000)\n public void test069() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer();\n xPathLexer0.nextToken();\n xPathLexer0.setXPath(\"y]jad[mR3w=N\");\n xPathLexer0.leftParen();\n xPathLexer0.doubleColon();\n xPathLexer0.pipe();\n xPathLexer0.consume();\n xPathLexer0.minus();\n Token token0 = xPathLexer0.identifierOrOperatorName();\n assertNull(token0);\n }", "public static void assignCompoundTokens(ArrayList<String>scan){\n\nfor(int i=0;i<scan.size();i++){\n if( isUnaryPostOperator( scan.get(i) ) ){\n \n if(isNumber(scan.get(i-1))||isVariableString(scan.get(i-1))){ \n int index=i-1;\n int j=i;\n while(isUnaryPostOperator(scan.get(j))){\n ++j;\n }\n scan.add(j, \")\");\n scan.add(index,\"(\");\ni=j+1;\n }//end if\n\n else if(isClosingBracket(scan.get(i-1))){\n int index=MBracket.getComplementIndex(false, i-1, scan);\n int j=i;\n while(isUnaryPostOperator(scan.get(j))){\n ++j;\n }\n scan.add(j, \")\");\n scan.add(index,\"(\");\n i=j+1;\n }\n \n \n \n }\n \n \n \n}\n\n\n\n}", "Token readToken() throws SyntaxException;", "public Node expression()\r\n\t{\r\n\t\tNode lhs = term();\r\n\t\tif(lhs!=null)\r\n\t\t{\r\n\t\t\tint index = lexer.getPosition();\r\n\t\t\tLexer.Token token = lexer.getToken();\r\n\t\t\twhile(token == Lexer.Token.PLUS\r\n\t\t\t\t||token == Lexer.Token.MINUS)\r\n\t\t\t{\r\n\t\t\t\tNode rhs = term(); \r\n\t\t\t\tif(rhs!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tif(token == Lexer.Token.PLUS)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tlhs = new Add(lhs,rhs);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(token == Lexer.Token.MINUS)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tlhs = new Sub(lhs,rhs);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tindex = lexer.getPosition();\r\n\t\t\t\t\ttoken = lexer.getToken();\r\n\t\t\t\t}\r\n\t\t\t\telse break;\r\n\t\t\t}\r\n\t\t\tlexer.setPosition(index);\r\n\t\t}\r\n\t\treturn lhs;\r\n\t}", "public static String evaluate( String expr ) \n {\n\tString[] arr = expr.split(\"\\\\s+\");\n\tLLStack<String> nums = new LLStack<String>();\n\tLLStack<String> noClose = new LLStack<String>();\n\tint op = 0;\n\n\tfor(String i : arr){ \n\t if(i.equals(\")\")){ //when you reach the closing parenthesis\n\t\tString top = noClose.pop(); //start going through this part of the expression\n\t\tnums.push(i); //add ( to stack for unload\n\t\t\n\t\twhile(!top.equals(\"(\")){ //until you reach the (, where the expression ends\n\t\t\t \n\t\t if(top.equals(\"+\")) op = 1;\n\t\t else if(top.equals(\"-\")) op = 2;\n\t\t else if(top.equals(\"*\")) op = 3;\n\n\t\t else nums.push(top); //if it's not an operand\n\n\t\t top = noClose.pop();\n\t\t}\n\n\t\tnoClose.push(unload(op, nums));\n\t }\n\t \n\t else noClose.push(i); //pushed into a stack of what's in this ()\n \n\t}//end of for loop \n \n\treturn noClose.peek();\n }" ]
[ "0.6203774", "0.61496", "0.61413896", "0.61411417", "0.61392367", "0.6138627", "0.61036795", "0.6098537", "0.6055641", "0.60496694", "0.59900326", "0.5987944", "0.5981362", "0.59678173", "0.596039", "0.59592193", "0.5954958", "0.59241855", "0.58619595", "0.5825888", "0.58210534", "0.58194643", "0.5818672", "0.57932943", "0.57813525", "0.5772461", "0.57713664", "0.5767585", "0.5736549", "0.57219905", "0.571288", "0.5710381", "0.5687774", "0.5687419", "0.5663414", "0.56613004", "0.5660096", "0.5653361", "0.5648432", "0.5641587", "0.56292075", "0.56217265", "0.5617835", "0.55661565", "0.55598044", "0.5555396", "0.554892", "0.554279", "0.55422324", "0.55387515", "0.55286986", "0.55273515", "0.5521911", "0.5521637", "0.5512645", "0.5511285", "0.55099756", "0.55081904", "0.5504167", "0.5501372", "0.54898", "0.5489464", "0.54864764", "0.5479567", "0.54793435", "0.5479164", "0.54728377", "0.5470307", "0.54680085", "0.5467439", "0.5453854", "0.54485124", "0.54442364", "0.54442364", "0.5434114", "0.54228485", "0.54198503", "0.5419688", "0.5415046", "0.54107726", "0.5409672", "0.54084414", "0.54078877", "0.5406698", "0.54033524", "0.53989863", "0.5398928", "0.5394572", "0.53902906", "0.539007", "0.53849137", "0.5379382", "0.53644073", "0.5354107", "0.53536177", "0.53506595", "0.534049", "0.5333998", "0.5333752", "0.5332859" ]
0.6037544
10
Created by Pooholah on 2017/5/14.
public interface IDownListener extends IHttpListener { /** * 这里和{@link IHttpService#setHttpListener(IHttpListener)}方法相对, * 因为只需网络请求json的时候,只需IHttpService持有引用IHttpListener引用, * 而现在下载模块中, * IHttpListener也需要持有IHttpService引用,因为后期需要控制暂停下载 * * @param httpService */ void setHttpService(IHttpService httpService); void setCancelCallable(/*参数待定*/); void setPauseCallable(/*参数待定*/); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "private stendhal() {\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@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}", "private void poetries() {\n\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\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public final void mo51373a() {\n }", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\n\tpublic void jugar() {\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 }", "@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 void init() {\n }", "@Override\n public int describeContents() { return 0; }", "@Override\n public void init() {\n }", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n protected void getExras() {\n }", "@Override\n protected void initialize() \n {\n \n }", "@Override\n public void memoria() {\n \n }", "private void strin() {\n\n\t}", "public void mo38117a() {\n }", "private void init() {\n\n\t}", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "private Rekenhulp()\n\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\tpublic void init() {\n\t\t\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "public void gored() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\n public void init() {}", "@Override\n public void init() {\n\n }", "@Override\n public void init() {\n\n }", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "Petunia() {\r\n\t\t}", "@Override\n public void initialize() { \n }", "private void m50366E() {\n }", "private void kk12() {\n\n\t}", "@Override\n protected void init() {\n }", "@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\tprotected void initialize() {\n\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\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 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\r\n\tpublic void init() {}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "Consumable() {\n\t}", "@Override\r\n\tprotected void doF4() {\n\t\t\r\n\t}", "protected boolean func_70814_o() { return true; }", "@Override\n public void initialize() {}", "@Override\n public void initialize() {}", "@Override\n public void initialize() {}", "@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\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "private UsineJoueur() {}", "@Override\n\tpublic void init() {\n\t}", "public void mo6081a() {\n }", "@Override\n public void initialize() {\n \n }", "@Override\n\tpublic void init()\n\t{\n\n\t}", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "private TMCourse() {\n\t}" ]
[ "0.60464865", "0.5889273", "0.5725004", "0.5702868", "0.56368476", "0.56368476", "0.56270003", "0.5591439", "0.55788213", "0.552071", "0.55146825", "0.551236", "0.55112445", "0.5483477", "0.54674256", "0.54664505", "0.5463652", "0.5460591", "0.5455268", "0.54537624", "0.54490346", "0.5428782", "0.54035205", "0.5399", "0.5388786", "0.5388786", "0.5388786", "0.5388786", "0.5388786", "0.5388786", "0.5375394", "0.5375394", "0.53723514", "0.5364222", "0.5360887", "0.5355248", "0.5348702", "0.53471833", "0.533568", "0.5320016", "0.5316285", "0.530399", "0.5301611", "0.5299038", "0.5296665", "0.5296665", "0.5296665", "0.5296665", "0.5296665", "0.5281016", "0.5265549", "0.52592367", "0.52592367", "0.52557176", "0.5245859", "0.52451086", "0.5244019", "0.5244019", "0.52431995", "0.52408844", "0.52282155", "0.5225686", "0.5224069", "0.522344", "0.52088267", "0.5208289", "0.5208289", "0.5208289", "0.5205426", "0.51882696", "0.5187336", "0.5184316", "0.5184316", "0.5184316", "0.51820284", "0.51820284", "0.51820284", "0.51820284", "0.51820284", "0.51820284", "0.51820284", "0.51774454", "0.51716685", "0.5171128", "0.5168803", "0.51672935", "0.51586103", "0.515631", "0.515631", "0.515631", "0.51528937", "0.51528937", "0.51528937", "0.5136895", "0.512575", "0.51221013", "0.5113649", "0.51085323", "0.51017344", "0.51003236", "0.50970894" ]
0.0
-1
Argument GET_URL added for test purpose.
static String sendGET(String GET_URL) throws IOException, JSONException { // Check URL is valid or not. if (isValidURL(GET_URL)) { try { URL obj = new URL(GET_URL); HttpURLConnection con = (HttpURLConnection) obj.openConnection(); con.setRequestMethod("GET"); con.setRequestProperty("User-Agent", USER_AGENT); int responseCode = con.getResponseCode(); System.out.println("GET Response Code :: " + responseCode); if (responseCode == HttpURLConnection.HTTP_OK) { // success BufferedReader in = new BufferedReader(new InputStreamReader(con.getInputStream())); String inputLine; StringBuffer response = new StringBuffer(); while ((inputLine = in.readLine()) != null) { response.append(inputLine); } in.close(); // Convert to json object and get specified data from it. Then you can print if the response is json type. String list = getList(response.toString()); System.out.println(list); // print result System.out.println(response.toString()); return "GET request worked"; // Added for testing. } else { System.out.println("GET request not worked"); return "GET request not worked"; } } catch (MalformedURLException e) { return "URL is valid but connection could not be established."; } catch (IOException e) { return "URL is valid but connection could not be established."; } } else { return "URL is not valid."; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void urlTest() {\n // TODO: test url\n }", "public abstract RestURL getURL();", "String getRequestURL();", "@Override\npublic void get(String url) {\n\t\n}", "public abstract String getURL();", "private String getURL() {\n\t\t// TODO : Generate URL\n\t\treturn null;\n\t}", "@Override\r\n public String getURL() {\n return url;\r\n }", "public HTTPGetUtility(String requestURL) {\n super(requestURL, \"GET\");\n }", "public String getURL();", "@Test\n void setUrl() {\n g.setUrl(url);\n assertEquals(url, g.getUrl(), \"URL mismatch\");\n }", "@Given(\"^the url of the application under test$\")\r\n\tpublic void getUrl() throws Exception {\n\t\tdriver.get(url);\r\n\t}", "@Override\n protected String getTestURL(String... parameters) {\n return super.getTestURL(parameters).replace(\"?\", \"\");\n }", "@Test(groups = { \"tree\" })\n\t\tpublic void testLoadViaGetURL() throws Exception {\n\t\t\t\tstartupTest(\"treeLoadViaGetURL.html\",null);\n\n\t\t\t\t//Verify the url\n\t\t\t\tString url = getBrowserUrl();\n\t\t\t\tlog(\"URL##########\"+ url);\n\n\t\t\t\t// Verify if the title of the page is correct\n\t\t\t\tverifyTitle(\"Incorrect page title;\", TITLE_GETURL);\n\t\t\t\tcheckPageContent(TITLE_GETURL);\n\n\t\t\t\tcommonLoadTestForJson();\n\n\n }", "private String initUrlParameter() {\n StringBuffer url = new StringBuffer();\n url.append(URL).append(initPathParameter());\n return url.toString();\n }", "@Test\r\n public void testGetURL() \r\n {\r\n System.out.println(\"getURL\");\r\n String symbol = \"\";\r\n CPTAYahooEODMessage instance = new CPTAYahooEODMessage();\r\n String expResult = \"\";\r\n String result = instance.getURL(symbol);\r\n // assertEquals(expResult, result);\r\n // TODO review the generated test code and remove the default call to fail.\r\n // fail(\"The test case is a prototype.\");\r\n }", "String getQueryRequestUrl();", "URL getUrl();", "protected abstract String getUrl();", "public String getURL() { return url; }", "@Step(\"<url> sayfasına git\")\n public void geturl(String url) {\n Driver.webDriver.get(url + \"/\");\n }", "@Override\r\n\tpublic void getUrl() {\n\r\n\t}", "String getSpecUrl();", "java.lang.String getUrl();", "java.lang.String getUrl();", "java.lang.String getUrl();", "java.lang.String getUrl();", "java.lang.String getUrl();", "java.lang.String getUrl();", "String getUrl();", "String getUrl();", "String getUrl();", "String getUrl();", "String getUrl();", "public void testGetURI() {\n }", "@Override\n\tpublic String getUrl()\n\t{\n\t\treturn url;\n\t}", "@Test\n\tpublic void testGetUrl_1()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\n\t\tString result = fixture.getUrl();\n\n\t\t// add additional test code here\n\t\tassertNotNull(result);\n\t}", "public abstract String getUrl();", "public String getURL()\n {\n return getURL(\"http\");\n }", "String getRequestedUrl();", "public String getURL(){\r\n\t\t \r\n\t\t\r\n\t\treturn rb.getProperty(\"url\");\r\n\t}", "@Test(priority=2)\r\n\tpublic void getUrl() {\r\n\tObject url=driver.getCurrentUrl();\r\n\t// driver.getCurrentUrl(); method is a string method\r\n\t// we are increasing the scope.\r\n\tObject urlString=url.toString().toUpperCase();\r\n\tSystem.out.println(urlString);\r\n\t}", "public void setURL(String _url) { url = _url; }", "public static String UrlToHit(){\n\t\treturn BaseURL;\n\t}", "String url();", "public String getUrl() { return url; }", "Uri getUrl();", "public Get(String url){\n\t\tthis.setUrl(url);\n\t}", "public void addUrlArg(String key, String value);", "private URLHelper() {\n\n }", "public void testRemoteFileDescGetUrl() {\n\t\tSet urns = new HashSet();\n\t\turns.add(HugeTestUtils.URNS[0]);\n\t\tRemoteFileDesc rfd =\n\t\t\tnew RemoteFileDesc(\"www.test.org\", 3000, 10, \"test\", 10, TEST_GUID,\n\t\t\t\t\t\t\t 10, true, 3, true, null, urns, \n false, false,\"\",0, null, -1);\n\t\tURL rfdUrl = rfd.getUrl();\n\t\tString urlString = rfdUrl.toString();\n\t\tString host = rfd.getHost();\n\t\tString colonPort = \":\"+rfd.getPort();\n\t\tassertTrue(\"unexpected beginning of url\", \n\t\t\t\t urlString.startsWith(\"http://\"+host+colonPort));\n\t\tassertEquals(\"unexpected double slash\",\n\t\t urlString.indexOf(colonPort+\"//\"), -1);\n\t\tassertNotEquals(\"unexpected double slash\",\n\t\t -1, urlString.indexOf(\":3000/\"));\n\t}", "@Override\n\tpublic String getURL() {\n\t\treturn null;\n\t}", "@Override\n public StringBuffer getRequestURL() {\n //StringBuffer requestURL = super.getRequestURL();\n //System.out.println(\"URL: \" + requestURL.toString());\n return this.requestURL;\n }", "@Test\n public void getUrl() {\n Locale locale = new Locale(\"en\", \"US\");\n FinancialMarketsBalanceOfPaymentsClient client = new FinancialMarketsBalanceOfPaymentsClient(locale);\n\n assertEquals(URLEndpoint.getRootUrl(locale).append(\"FM/FM0001/\"), client.getUrl());\n }", "@java.lang.Override\n public java.lang.String getUrl() {\n return url_;\n }", "@java.lang.Override\n public java.lang.String getUrl() {\n return url_;\n }", "@OfMethod({\"getURL(java.lang.String)\", \"getURL(int)\"})\n public void testGetURL() throws Exception {\n CallableStatement instance = newClosedCall();\n\n try {\n instance.getURL(getParameterName());\n fail(\"Allowed get url by parameter name after close.\");\n } catch (SQLException ex) {\n checkException(ex);\n }\n\n try {\n instance.getURL(getParameterIndex());\n fail(\"Allowed get url by parameter index after close.\");\n } catch (SQLException ex) {\n checkException(ex);\n }\n }", "@Test\n\tpublic void testRequest() throws Exception {\n\t\tURI uri=new URIBuilder().setScheme(\"http\")\n\t\t\t\t.setHost(\"www.google.com\")\n\t\t\t\t//.setPort(8080)\n\t\t\t\t.setPath(\"/search\")\n\t\t\t\t.setParameter(\"q\", \"httpclient\")\n\t\t\t\t.setParameter(\"btnG\", \"Google Search\")\n\t\t\t\t.setParameter(\"aq\", \"f\")\n\t\t\t\t.setParameter(\"oq\", \"\")\n\t\t\t\t.build();\n\t\tHttpGet httpGet = new HttpGet(uri);\n\t\tSystem.out.println(httpGet.getURI());\n\t\t\n\t}", "public String getUrl(){\n \treturn url;\n }", "public String testGet(String arg1) {\n HttpClient client = new DefaultHttpClient();\n HttpGet get = new HttpGet(URL);\n\n try {\n HttpResponse response = client.execute(get);\n HttpEntity resEntity = response.getEntity();\n return EntityUtils.toString(resEntity);\n } catch (Exception e) { }\n\n return null;\n }", "public String getURL() {\r\n return url;\r\n }", "public String getUrl();", "public String getUrl();", "public String getUrl();", "public String getUrl();", "String getRequest(String url);", "java.net.URL getUrl();", "public String getURL() {\r\n\t\treturn url;\r\n\t}", "public static String requestURL(String url) {\n return \"\";\n }", "@Test\n public void readUrl() throws IOException {\n\n }", "java.lang.String getClickURL();", "public void setURL(String url);", "@Nullable\n public abstract String url();", "java.lang.String getBookingURL();", "String getServiceUrl();", "@Override\r\n public String getUrl()\r\n {\n return null;\r\n }", "@Override\n\t\tpublic StringBuffer getRequestURL() {\n\t\t\treturn null;\n\t\t}", "public AnnotateClueRunWithURLs() {\r\n\t}", "public String getURL() {\n\t\treturn URL;\n\t}", "@Api(1.2)\n @NonNull\n public String url() {\n return mRequest.buildOkRequest().url().toString();\n }", "public java.lang.String getUrl () {\r\n\t\treturn url;\r\n\t}", "String getQueryResultsUrl();", "public StringBuffer getRequestURL() {\n return new StringBuffer(url);\n }", "@Test\n void sendGetRequest() {\n try {\n String response = HttpUtils.sendGet();\n assertFalse(response.contains(\"404\"));\n } catch (IOException e) {\n e.printStackTrace();\n fail();\n }\n }", "public String getURL() {\n\t\treturn url;\n\t}", "public void setURL(java.lang.String URL) {\n this.URL = URL;\n }", "@org.junit.Ignore\n\t@Test\n\tpublic void simpleGET() {\n\t\tString url = \"http://www.google.com/search?hl=pl\";\n\t\tHttpRequestFactory requestFactory = new HttpRequestFactoryImpl();\n\t\tHttpRequest request = requestFactory.createRequest(url);\n\t\tString response = request.doGet();\n\t\tassertTrue(\"Unexpected HTTP response.\", isGooglePage(response));\n\t}", "public String setUrl() throws JSONException {\n url = baseUrl + searchName;\n for(int i = 0; i < typesCheckList.size(); i++) {\n if(typesObj.has(typesCheckList.get(i))){\n url += typesObj.getString(typesCheckList.get(i));\n }\n }\n if(V)System.out.println(url);\n return url;\n }", "public String getURL() {\n return url;\n }", "public char[] uri_GET()\n {return uri_GET(new char[120], 0);}", "@BusMethod(replySignature=\"s\")\n public String GetUrl() throws BusException;", "public void testSetURI() {\n }", "public java.lang.CharSequence getURL() {\n return URL;\n }", "@Given(\"^we have valid url \\\"([^\\\"]*)\\\"$\")\n\tpublic void we_have_valid_url(String arg1) {\n\t\t\n\t apiClient.setBasePath(arg1);\n\t}", "@java.lang.Override\n public java.lang.String getUrl() {\n java.lang.Object ref = url_;\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 url_ = s;\n return s;\n }\n }", "public String getCorrectURL() {\n\t\treturn defineCorrectURL(); \t\r\n\t}", "public test_SDURL(String n) {\n super(n);\n }", "@Test\n void getTest() {\n URI uri = URI.create(endBody + \"/get\");\n\n // get the response\n HttpResponse<String> response = HttpMethods.get(uri);\n\n // check if it received OK\n assertEquals(200, response.statusCode());\n }", "@Test\n public void testRegularOpen() {\n openUrl();\n }", "public String getURL() {\n\t\treturn prop.getProperty(\"URL\");\n\t}", "private static String sendGET(String getURL) throws IOException {\n\t\tURL obj = new URL(getURL);\n\t\tHttpURLConnection con = (HttpURLConnection) obj.openConnection();\n\t\tcon.setRequestMethod(\"GET\");\n\t\tString finalResponse = \"\";\n\n\t\t//This way we know if the request was processed successfully or there was any HTTP error message thrown.\n\t\tint responseCode = con.getResponseCode();\n\t\tSystem.out.println(\"GET Response Code : \" + responseCode);\n\t\tif (responseCode == HttpURLConnection.HTTP_OK) { // success\n\t\t\tBufferedReader in = new BufferedReader(new InputStreamReader(con.getInputStream()));\n\t\t\tString inputLine;\n\t\t\tStringBuffer buffer = new StringBuffer();\n\n\t\t\twhile ((inputLine = in.readLine()) != null) {\n\t\t\t\tbuffer.append(inputLine);\n\t\t\t}\n\t\t\tin.close();\n\n\t\t\t// print result\n\t\t\tfinalResponse = buffer.toString();\n\t\t} else {\n\t\t\tSystem.out.println(\"GET request not worked\");\n\t\t}\n\t\treturn finalResponse;\n\t}" ]
[ "0.68145573", "0.6750552", "0.6742725", "0.66809046", "0.65587795", "0.6500504", "0.64970905", "0.64477724", "0.6413562", "0.6399203", "0.6361063", "0.6359137", "0.6336229", "0.63357604", "0.62822825", "0.62796897", "0.6274809", "0.62664545", "0.6235636", "0.6231466", "0.62263143", "0.6219073", "0.6209971", "0.6209971", "0.6209971", "0.6209971", "0.6209971", "0.6209971", "0.62024635", "0.62024635", "0.62024635", "0.62024635", "0.62024635", "0.6197097", "0.6195263", "0.61601865", "0.61546826", "0.6126474", "0.6119111", "0.61152697", "0.610747", "0.6098545", "0.60883904", "0.607085", "0.60630643", "0.6024042", "0.60063446", "0.6002368", "0.5990887", "0.5986022", "0.5980595", "0.59719676", "0.5950666", "0.59503603", "0.59503603", "0.5924512", "0.59210765", "0.59157485", "0.5908462", "0.5891982", "0.58805686", "0.58805686", "0.58805686", "0.58805686", "0.5878301", "0.58629996", "0.58438605", "0.5843337", "0.5839235", "0.58288133", "0.582688", "0.5822316", "0.5793827", "0.5792797", "0.57903", "0.5784605", "0.57832235", "0.57795596", "0.5775333", "0.5761293", "0.57584614", "0.57472414", "0.5742655", "0.5736698", "0.5731575", "0.5727819", "0.57274926", "0.57245195", "0.5721521", "0.57209873", "0.5718356", "0.5704701", "0.5698752", "0.5697439", "0.5691469", "0.5689742", "0.56882995", "0.5686261", "0.5684294", "0.56828356" ]
0.58296144
69
Get specific field from response string.
private static String getList(String responseString) throws JSONException { JSONObject array = new JSONObject(responseString); return array.getString("url"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "java.lang.String getField1123();", "public String getField(String field) throws RemoteException;", "public java.lang.Object get(int field$) {\n switch (field$) {\n case 0: return allowedByRobotsTXT;\n case 1: return Operation;\n case 2: return URL;\n case 3: return Exception;\n case 4: return ResponseType;\n case 5: return ResponseCode;\n case 6: return ResponseServer;\n case 7: return ResponseLink;\n case 8: return Content;\n case 9: return SPARQLDESCpreds;\n case 10: return voiDpreds;\n default: throw new org.apache.avro.AvroRuntimeException(\"Bad index\");\n }\n }", "java.lang.String getField1212();", "String getField();", "java.lang.String getField1337();", "java.lang.String getField1202();", "java.lang.String getField1334();", "java.lang.String getField1201();", "java.lang.String getField1301();", "java.lang.String getField1582();", "public java.lang.Object get(int field$) {\n switch (field$) {\n case 0: return req_custid;\n case 1: return req_message;\n case 2: return req_json;\n case 3: return req_remote_addr;\n case 4: return req_uri;\n case 5: return req_headers;\n case 6: return req_method;\n case 7: return result_json;\n case 8: return result_post;\n default: throw new org.apache.avro.AvroRuntimeException(\"Bad index\");\n }\n }", "java.lang.String getField1015();", "java.lang.String getField1335();", "java.lang.String getField1342();", "java.lang.String getField1579();", "java.lang.String getField1534();", "java.lang.String getField1012();", "public java.lang.Object get(int field$) {\n switch (field$) {\n case 0: return uid;\n case 1: return originh;\n case 2: return originp;\n case 3: return resph;\n case 4: return respp;\n case 5: return proto;\n case 6: return port;\n case 7: return ts;\n case 8: return query;\n case 9: return qclass;\n case 10: return qclassname;\n case 11: return qtype;\n case 12: return qtypename;\n case 13: return rcode;\n case 14: return rcodename;\n case 15: return Z;\n case 16: return OR;\n case 17: return AA;\n case 18: return TC;\n case 19: return rejected;\n case 20: return Answers;\n case 21: return TLLs;\n default: throw new IndexOutOfBoundsException(\"Invalid index: \" + field$);\n }\n }", "java.lang.String getField1293();", "java.lang.String getField1702();", "java.lang.String getField1279();", "java.lang.String getField1587();", "java.lang.String getField1124();", "java.lang.String getField1018();", "java.lang.String getField1576();", "java.lang.String getField1588();", "java.lang.String getField1546();", "java.lang.String getField1017();", "public java.lang.Object get(int field$) {\n switch (field$) {\n case 0: return id;\n case 1: return username;\n case 2: return email_address;\n case 3: return phone_number;\n case 4: return first_name;\n case 5: return last_name;\n default: throw new org.apache.avro.AvroRuntimeException(\"Bad index\");\n }\n }", "java.lang.String getField1578();", "java.lang.String getField1346();", "java.lang.String getField1623();", "java.lang.String getField1223();", "java.lang.String getField1243();", "java.lang.String getField1339();", "java.lang.String getField1589();", "java.lang.String getField1013();", "java.lang.String getField1134();", "java.lang.String getField1034();", "java.lang.String getField1572();", "java.lang.String getField1593();", "java.lang.String getField1393();", "java.lang.String getField1294();", "java.lang.String getField1523();", "java.lang.String getField1591();", "java.lang.String getField1246();", "java.lang.String getField1336();", "java.lang.String getField1308();", "java.lang.String getField1389();", "java.lang.String getField1376();", "java.lang.String getField1583();", "java.lang.String getField1543();", "java.lang.String getField1333();", "java.lang.String getField1594();", "java.lang.String getField1345();", "java.lang.String getField1527();", "java.lang.String getField1507();", "java.lang.String getField1542();", "java.lang.String getField1504();", "java.lang.String getField1269();", "java.lang.String getField1291();", "java.lang.String getField1338();", "java.lang.String getField1391();", "java.lang.String getField1434();", "java.lang.String getField1679();", "java.lang.String getField1689();", "java.lang.String getField1544();", "java.lang.String getField1531();", "java.lang.String getField1610();", "java.lang.String getField1244();", "java.lang.String getField1282();", "java.lang.String getField1567();", "java.lang.String getField1379();", "java.lang.String getField1616();", "java.lang.String getField1502();", "java.lang.String getField1592();", "java.lang.String getField1278();", "java.lang.String getField1378();", "java.lang.String getField1538();", "java.lang.String getField1312();", "java.lang.String getField1388();", "java.lang.String getField1382();", "java.lang.String getField1669();", "java.lang.String getField1545();", "java.lang.String getField1574();", "java.lang.String getField1508();", "java.lang.String getField1276();", "java.lang.String getField1019();", "java.lang.String getField1288();", "java.lang.String getField1008();", "java.lang.String getField1372();", "java.lang.String getField1001();", "java.lang.String getField1274();", "java.lang.String getField1682();", "java.lang.String getField1423();", "java.lang.String getField1568();", "java.lang.String getField1091();", "java.lang.String getField1216();", "java.lang.String getField1573();", "java.lang.String getField1571();" ]
[ "0.6428528", "0.6392302", "0.62486666", "0.62076616", "0.6136424", "0.610276", "0.60872513", "0.60762763", "0.606973", "0.6055856", "0.6008272", "0.60058093", "0.59982455", "0.5983788", "0.5974753", "0.5971868", "0.5970622", "0.5970044", "0.5955176", "0.5955016", "0.595266", "0.5950004", "0.59492546", "0.59455174", "0.59433866", "0.5943108", "0.5942614", "0.59424573", "0.59404504", "0.5940069", "0.5937688", "0.5937523", "0.59370846", "0.5936792", "0.5936345", "0.593197", "0.5930757", "0.593051", "0.5920891", "0.5919422", "0.5918814", "0.5913308", "0.59132165", "0.5911319", "0.5911251", "0.59083843", "0.59045017", "0.59042776", "0.59036785", "0.59022313", "0.5901944", "0.5901016", "0.5893563", "0.589351", "0.589299", "0.58927435", "0.5891341", "0.5891331", "0.5891042", "0.5890974", "0.58908445", "0.5889381", "0.58888465", "0.58886683", "0.5888196", "0.58858985", "0.58857", "0.5885196", "0.5885112", "0.5882655", "0.58810455", "0.58810234", "0.5880906", "0.58805", "0.58788216", "0.58783007", "0.58781", "0.5877489", "0.5876735", "0.58744574", "0.5873032", "0.5872318", "0.587104", "0.58703256", "0.58697337", "0.58656424", "0.58640486", "0.5864002", "0.58634716", "0.586", "0.5859796", "0.5858098", "0.58564484", "0.585626", "0.5855281", "0.5853412", "0.5851551", "0.5850453", "0.5850307", "0.5849897", "0.5848669" ]
0.0
-1
Argument POST_URL added for test purpose.
static String sendPOST(String POST_URL) throws IOException { // Check URL is valid or not. if (isValidURL(POST_URL)) { try { //Initial connection URL obj = new URL(POST_URL); HttpURLConnection con = (HttpURLConnection) obj.openConnection(); con.setRequestMethod("POST"); con.setRequestProperty("User-Agent", USER_AGENT); // For POST only - START con.setDoOutput(true); OutputStream os = con.getOutputStream(); JSONArray array = new JSONArray(); //Get Mac Adress. InetAddress ip = InetAddress.getLocalHost(); NetworkInterface network = NetworkInterface.getByInetAddress(ip); byte[] mac = network.getHardwareAddress(); StringBuilder macString = new StringBuilder(); for (int i = 0; i < mac.length; i++) { macString.append(String.format("%02X%s", mac[i], (i < mac.length - 1) ? "-" : "")); } //Send mac address as parameter. CLIENT_PARAMS = macString.toString(); //Send Params. array.put(USER_PARAMS); array.put(SCORE_PARAMS); array.put(CLIENT_PARAMS); os.write(array.toString().getBytes()); os.flush(); os.close(); // For POST only - END int responseCode = con.getResponseCode(); System.out.println("POST Response Code :: " + responseCode); if (responseCode == HttpURLConnection.HTTP_OK) { // success BufferedReader in = new BufferedReader(new InputStreamReader(con.getInputStream())); String inputLine; StringBuffer response = new StringBuffer(); while ((inputLine = in.readLine()) != null) { response.append(inputLine); } in.close(); // print result System.out.println(response.toString()); return "POST request worked"; // Added for testing. } else { System.out.println("POST request not worked"); return "POST request not worked"; } } catch (MalformedURLException e) { return "URL is valid but connection could not be established."; } catch (IOException e) { return "URL is valid but connection could not be established."; } } else { return "URL is not valid."; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setPostUrl(String postUrl) {\r\n\t\tthis.postUrl = postUrl;\r\n\t}", "String postRequest(String url);", "public String getPostUrl() {\r\n\t\treturn postUrl;\r\n\t}", "public void setPostURL(String postURL) throws IllegalArgumentException {\n\t\tif (postURL == null) {\n\t\t\tthrow new IllegalArgumentException(\"The postURL must not be null.\");\n\t\t}\n\n\t\tthis.postURL = postURL;\n\t}", "public MockHttpServletRequest newPost(String url) {\n return new MockHttpServletRequest(\"POST\", url);\n }", "@External\r\n\t@SharedFunc\r\n\tpublic MetaVar Post(MetaVarString urlVar,MetaVarTable parametersVar,MetaVarFunction onSuccessVar,MetaVarFunction onFailureVar){throw new RuntimeException(\"Should never be executed directly, there is probably an error in the Aspect-coding.\");}", "public HttpPoster(final URL url, final String requestData) {\n\t\tsuper(url, HttpMethod.POST, requestData);\n\t}", "public String getPostURI() {\n return host + postResource;\n }", "public void postPage(final String url, final String arg) throws Exception {\r\n super.postPage(url, arg);\r\n }", "@Test\n void postTest() {\n URI uri = URI.create(endBody + \"/post\");\n\n // create a dummy body for easy JSON conversion\n QuestionText newQuestion = new QuestionText(\"Test\");\n\n // convert to json and send / store the response\n HttpResponse<String> response = HttpMethods.post(uri, gson.toJson(newQuestion));\n\n assertEquals(200, response.statusCode());\n }", "public HttpPoster(final String url, final String requestData) {\n\t\tsuper(url, HttpMethod.POST, requestData);\n\t}", "public void postAny(String postUrl, StringEntity postingString) {\r\n try {\r\n HttpPost post = new HttpPost(postUrl);\r\n TrustStrategy acceptingTrustStrategy = new TrustSelfSignedStrategy();\r\n SSLContext sslContext = org.apache.http.ssl.SSLContexts.custom().loadTrustMaterial(null, acceptingTrustStrategy)\r\n .build();\r\n SSLConnectionSocketFactory scsf = new SSLConnectionSocketFactory(sslContext, NoopHostnameVerifier.INSTANCE);\r\n HttpClient httpClient = HttpClients.custom().setSSLSocketFactory(scsf).build();\r\n post.addHeader(\"accept\", \"application/json\");\r\n post.setHeader(\"Content-type\", \"application/json\");\r\n post.setEntity(postingString);\r\n HttpResponse response = httpClient.execute(post);\r\n\r\n System.out.println(\"Response is \" + response.toString());\r\n } catch (Exception e) {\r\n System.out.println(\"Exception \" + e);\r\n }\r\n }", "@When(\"^User sends a POST Request to \\\"([^\\\"]*)\\\"$\")\n public void userSendsAPOSTRequestTo(String URL) {\n String requestBody = addNewWishlistJsonObj.toString();\n myResponse = myRequest.when().body(requestBody).post(URL);\n System.out.println(\"Response: \" + myResponse.asString());\n }", "@When(\"user calls {string} with Post http request\")\npublic void user_calls_with_post_http_request(String string) {\n\tresponse = res.when().post(\"/maps/api/place/add/json\")\n\t\t\t.then().spec(responspec).extract().response();\n \n}", "public PostRequest(String urlParameters) {\n this.urlParameters = urlParameters;\n }", "public RequestDataBuilder post(String urlPattern) {\n\t\tRequest request = new Request(urlPattern, RequestMethod.POST);\n\t\tmap.put(request, clazz);\n\t\treturn this;\n\t}", "@Test\n public void postRequest() {\n str = METHOD_POST + URI_SAMPLE + \" \" + HTTP_VERSION + ENDL +\n HOST_HEADER + \": www.site.ru\" + ENDL +\n \"Referer: \"+ URI_SAMPLE + ENDL +\n \"Cookie: income=1\" + ENDL +\n \"Content-Type: application/x-www-form-urlencoded\" + ENDL +\n \"Content-Length: 35\" + ENDL +\n \"login=Petya%20Vasechkin&password=qq\";\n\n request = new HttpRequest(str, IP_ADDRESS, HOST);\n assertEquals(request.getMethod(), HttpMethod.POST);\n assertEquals(request.getUrn(), \"www.site.ru/news.html\");\n assertEquals(request.getHeader(HOST_HEADER), \"www.site.ru\");\n assertEquals(request.getHeader(\"Referer\"), URI_SAMPLE);\n assertEquals(request.getHeader(\"Cookie\"), \"income=1\");\n assertEquals(request.getHeader(\"Content-Type\"), \"application/x-www-form-urlencoded\");\n assertEquals(request.getHeader(\"Content-Length\"), \"35\");\n assertEquals(request.getHeader(NONEXISTENT_VAR), \"\");\n\n assertEquals(request.getParameter(\"login\"), \"Petya Vasechkin\");\n assertEquals(request.getParameter(\"password\"), \"qq\");\n assertEquals(request.getParameter(NONEXISTENT_VAR), \"\");\n }", "public void postData() {\n\n\t}", "public PostUploadRequest(String url) {\n mRequestUrl = url;\n }", "public void addPostArg(String key, String value);", "public String post();", "@Test\n\t@Override\n\tpublic void testSaveURLJson() throws Exception {\n\t}", "private void postRequest(RequestBody requestBody, String url) throws JSONException {\n System.out.println(url);\n OkHttpClient okHttpClient = new OkHttpClient();\n Request request = new Request\n .Builder()\n .post(requestBody)\n .url(url)\n .build();\n\n okHttpClient.newCall(request).enqueue(new Callback() {\n @Override\n public void onResponse(@NotNull Call call, @NotNull Response response) throws IOException {\n\n }\n\n @Override\n public void onFailure(final Call call, final IOException e) {\n }\n });\n }", "@Test\n void incorrectPostPathTest() {\n URI uri = URI.create(endBody + \"/dummy\");\n\n // create a dummy body for easy JSON conversion\n QuestionText newQuestion = new QuestionText(\"Test\");\n\n // convert to json and send / store the response\n HttpResponse<String> response = HttpMethods.post(uri, gson.toJson(newQuestion));\n\n // it should receive 404\n assertNotEquals(200, response.statusCode());\n assertEquals(404, response.statusCode());\n }", "public static URL getUrlForPostSetCheckout()\r\n {\r\n String strUrl = getBaseURL() +\"account_services/api/1.0/payment/paypal/set-checkout\";\r\n return str2url( strUrl );\r\n }", "public void postTest(LabTest labTest) {\n URL url = null;\n try {\n url = new URL(apiAddress+\"postTest\");\n\n Gson gson = new GsonBuilder().setPrettyPrinting().create();\n String json = gson.toJson(labTest);\n String encodedString = Base64.getEncoder().encodeToString(json.getBytes());\n\n HttpURLConnection con = (HttpURLConnection) url.openConnection();\n con.setDoOutput(true);\n con.setInstanceFollowRedirects( false );\n con.setRequestMethod( \"GET\" );\n con.setRequestProperty( \"Content-Type\", \"application/json\");\n con.setRequestProperty( \"charset\", \"utf-8\");\n con.setRequestProperty( \"Content-Length\", Integer.toString( encodedString.getBytes().length ));\n con.setRequestProperty(\"Data\", encodedString);\n con.setUseCaches( false );\n BufferedReader in = null;\n try {\n in = new BufferedReader(new InputStreamReader(con.getInputStream()));\n } catch (IOException e) {\n e.printStackTrace();\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "HttpResponse httpPost(URI uri);", "@Override\n public String getMethod() {\n return \"POST\";\n }", "public RequestDataBuilder post() {\n\t\tRequest request = new Request(urlPattern, RequestMethod.POST);\n\t\tmap.put(request, clazz);\n\t\treturn this;\n\t}", "@Override\n public String getMethod() {\n return \"POST\";\n }", "private String postRequest(String requestUrl, String postData) throws IOException {\n URL url = new URL(requestUrl);\n \n Log.i(TAG, \"Opening Token URL \" + url.toString());\n HttpURLConnection urlConnection = (HttpURLConnection) url.openConnection();\n urlConnection.setRequestMethod(\"POST\");\n urlConnection.setDoInput(true);\n urlConnection.setDoOutput(true);\n OutputStreamWriter writer = new OutputStreamWriter(urlConnection.getOutputStream());\n writer.write(postData);\n writer.flush();\n String response = streamToString(urlConnection.getInputStream());\n \n return response;\n }", "@Before\n public void newHTTPTest() throws IOException {\n code = callHandlerResponse(\"\", \"POST\");\n }", "@Test\n public void postTest(){\n Post post = new Post(\"Title 1\",\"Body 1\");\n\n given().accept(ContentType.JSON)\n .and().contentType(ContentType.JSON)\n .body(post)\n .when().post(\"/posts\")\n .then().statusCode(201)\n .body(\"title\",is(\"Title 1\"),\n \"body\",is(\"Body 1\"),\n \"id\",is(101));\n }", "@Test\n public void urlTest() {\n // TODO: test url\n }", "void shouldParseTheJsonPostData() {\n }", "@Test\n void sendPostRequest() {\n try {\n LoginPacket packet = new LoginPacket(\"testUser\", \"testPassword\");\n String response = HttpUtils.sendPost(\"\", WriteJSON.writePacket(packet));\n } catch (IOException e) {\n e.printStackTrace();\n fail();\n }\n }", "@Override\n\tpublic void doPost(Request request, Response response) {\n\n\t}", "public static HttpURLConnection post (Uri url) throws IOException{\n\n //Create the connection to the url\n HttpURLConnection con = (HttpURLConnection) (new URL(url.getPath())).openConnection();\n\n // Add the http header to the request\n con.setDoOutput(true); // Triggers POST.\n con.setRequestProperty(\"User-Agent\", urlCharset);\n con.setRequestProperty(\"Content-Type\", \"application/x-www-form-urlencoded;charset=\" + urlCharset);\n\n // Write the parameters to the query string and send the post request to the url\n DataOutputStream wr = new DataOutputStream(con.getOutputStream());\n wr.writeBytes(url.getQuery());\n wr.flush();\n wr.close();\n\n return con;\n }", "@Test\n\tpublic void test_1_post(){\n\t\tJSONObject request = new JSONObject();\n\t\trequest.put(\"name\", \"Rahul\");\n\t\trequest.put(\"job\", \"Engineer\");\n\t\tSystem.out.println(request.toJSONString());\n\t\t\n\t\tgiven().\n\t\t header(\"Content-Type\",\"application/json\").\n\t\t accept(ContentType.JSON).\n\t\t body(request.toJSONString()).\n\t\t when().\n\t\t \tpost(\"https://reqres.in/api/users/2\").\n\t\t then().\n\t\t statusCode(201);\n\t\t \n\t\t\n\t}", "public static boolean isPost(String argRequestMethod) {\r\n\t\treturn HttpConstants.POST.equalsIgnoreCase(argRequestMethod);\r\n\t}", "public interface PostRequest {}", "private static InputStream postQuery(String url) throws IOException {\n\t\tURL u = new URL(SERVICE_LOCATION);\n\n\t\tString encodedUrl = URLEncoder.encode(url, \"UTF-8\");\n\n\t\tInputStream input = doPOST(u, encodedUrl);\n\n\t\treturn input;\n\t}", "public static void main(String[] args) throws Exception {\n testPost();\n }", "T setUrlTarget(String urlTarget);", "public void doPost( )\n {\n \n }", "@Test(enabled=false)\n\tpublic void basicPost() {\t\n\t\tResponse res = \n\t\tgiven().\n\t\tbody(\" { \\\"id\\\": \\\"2\\\",\"\n\t\t\t\t+ \"\\\"title\\\": \\\"Cleveland\\\", \"\n\t\t\t\t+ \"\\\"author\\\": \\\"Kyrie\\\" }\").\n\t\twhen().\n\t\tcontentType(ContentType.JSON).\n\t\tpost(\"http://localhost:3000/posts/\");\n\t\n\t\tSystem.out.println(res.asString());\n\t}", "@Test\n\tpublic void testCreatePostLive() throws Exception\n\t{\n\t}", "@Override\n protected String getTestURL(String... parameters) {\n return super.getTestURL(parameters).replace(\"?\", \"\");\n }", "public boolean isPost();", "public boolean isPost();", "@Override\n\tvoid post() {\n\t\t\n\t}", "public void POST(String line) {\r\n\t\tanalisisURL(line);\r\n\t}", "@FormUrlEncoded\n @POST(\"posts/\")\n Call<Post> createPostUrlFormatted(\n @Field(\"userId\") Integer id,\n @Field(\"title\") String title,\n @Field(\"body\") String body\n );", "public HttpResponse postData(String url) {\n\t HttpClient httpclient = new DefaultHttpClient();\n\t HttpPost httppost = new HttpPost(url);\n\n\t try {\n\t // Add your data\n\t \n\n\t // Execute HTTP Post Request\n\t HttpResponse response = httpclient.execute(httppost);\n\t return response;\n\t \n\t } catch (ClientProtocolException e) {\n\t \t\n\t // TODO Auto-generated catch block\n\t } catch (IOException e) {\n\t // TODO Auto-generated catch block\n\t }\n\t return null;\n\t }", "protected String getSecondoPost() {\n// String testoPost;\n// String testo = this.getTestoNew();\n// String summary = this.getSummary();\n//// String edittoken = this.getToken();\n//\n// if (testo != null && !testo.equals(\"\")) {\n// try { // prova ad eseguire il codice\n// testo = URLEncoder.encode(testo, \"UTF-8\");\n//\n// } catch (Exception unErrore) { // intercetta l'errore\n// }// fine del blocco try-catch\n// }// fine del blocco if\n// if (summary != null && !summary.equals(\"\")) {\n// try { // prova ad eseguire il codice\n// summary = URLEncoder.encode(summary, \"UTF-8\");\n// } catch (Exception unErrore) { // intercetta l'errore\n// }// fine del blocco try-catch\n// }// fine del blocco if\n//\n// testoPost = \"text=\" + testo;\n// testoPost += \"&bot=true\";\n// testoPost += \"&minor=true\";\n// testoPost += \"&summary=\" + summary;\n//// testoPost += \"&token=\" + edittoken;\n//\n return \"\";\n }", "public RestUtils setMethodPost()\n\t{\n\t\trestMethodDef.setHttpMethodPost(true);\n\t\treturn this;\n\t}", "@Test\n public void createPost() throws IOException {\n PostData postData = new PostData()\n .withId(101)\n .withUserId(1)\n .withTitle(\"New Post\")\n .withBody(\"This is the body of the post.\");\n\n // Create an HTTP Post Request\n HttpPost post = new HttpPost(POSTS);\n\n // Set the \"Content-type\" header of the\n // HTTP Post Request to \"Application/json; charset=UTF-8\"\n post.setHeader(\n CONTENT_TYPE,\n \"Application/json; charset=UTF-8\"\n );\n\n // Create a String Entity out of the JSON data and add it\n // to the HTTP Post Request.\n //\n // This will serialize the JSON data into a String\n post.setEntity(\n new StringEntity(\n this.gson.toJson(postData)\n )\n );\n\n // Execute the HTTP Post with the client\n HttpResponse response = this.httpClient.execute(post);\n\n // Get a PostData class instance from the response\n PostData responsePostData = getPostData(response);\n\n // Make assertions about the response\n assertThat(response.getStatusLine().getStatusCode())\n .isEqualTo(201);\n\n // Make assertions about the data returned\n assertThat(responsePostData.getId()).isEqualTo(101);\n assertThat(responsePostData.getUserId()).isEqualTo(1);\n assertThat(responsePostData.getTitle())\n .isEqualTo(postData.getTitle());\n assertThat(responsePostData.getBody())\n .isEqualTo(postData.getBody());\n }", "HttpPost postRequest(HttpServletRequest request, String address) throws IOException;", "@Override\n\tprotected HttpMethod requestMethod() {\n\t\treturn HttpMethod.POST;\n\t}", "@Override\n\tpublic ClientResponse post(LocationCourtTerme t) {\n\t\tWebResource webResource = addQueryParam (t);\n\t\twebResource = this.webResource.path(\"/location\");\n\t\tBuilder builder = getBuilder (webResource);\n\t\t\n\t\t// Invocation de la méthode POST HTTP\n\t\tClientResponse clientResponse = builder.post(ClientResponse.class);\n\t\t\t\t\n\t\treturn clientResponse;\n\t}", "private static String postItem(String url, String payload) {\n\t\ttry {\n\t\t\tURL urlResource = new URL(url);\n\t\t\tURLConnection conn = urlResource.openConnection();\n\t\t\tconn.setDoOutput(true);\n\t\t\tconn.setRequestProperty( \"Content-Type\", \"application/json\");\n\t\t\tconn.setRequestProperty( \"charset\", \"utf-8\");\n\t\t\tconn.setUseCaches( false );\n\t\t\ttry(DataOutputStream wr = new DataOutputStream( conn.getOutputStream())) {\n\t\t\t\twr.write(payload.getBytes());\n\t\t\t}\n\n\t\t\treturn getResponseString(conn);\n\t\t} catch (Exception e) {\n\t\t\treturn null;\n\t\t}\n\t}", "private void requestPost(String endpoint, Map<String, String> params, RequestListener listener) throws Exception {\n String requestUri = Constant.API_BASE_URL + ((endpoint.indexOf(\"/\") == 0) ? endpoint : \"/\" + endpoint);\n\n post(requestUri, params, listener);\n }", "@Override\n protected Map<String,String> getParams(){\n return postParameters;\n }", "@GET\n Call<Post> getByDirectUrlRequest(@Url String url);", "private static String facebookPostMethod(String host, String urlPostfix, List <NameValuePair> nvps){\r\n System.out.println(\"@executing facebookPostMethod():\" + host + urlPostfix);\r\n String responseStr = null;\r\n try {\r\n HttpPost httpost = new HttpPost(host + urlPostfix);\r\n httpost.setEntity(new UrlEncodedFormEntity(nvps, HTTP.UTF_8));\r\n\r\n // execute postMethod\r\n HttpResponse postResponse = httpClient.execute(httpost);\r\n HttpEntity entity = postResponse.getEntity();\r\n\r\n System.out.println(\"facebookPostMethod: \" + postResponse.getStatusLine());\r\n if (entity != null) {\r\n responseStr = EntityUtils.toString(entity);\r\n //System.out.println(responseStr);\r\n entity.consumeContent();\r\n }\r\n System.out.println(\"Post Method done(\" + postResponse.getStatusLine().getStatusCode()+\"), response string length: \" + (responseStr==null? 0:responseStr.length()));\r\n } catch (IOException e) {\r\n System.out.println(e.getMessage());\r\n }\r\n //TODO process the respons string\r\n //if statusCode == 200: no error;(responsStr contains \"errorDescription\":\"No error.\")\r\n //else retry?\r\n return responseStr;\r\n }", "private static HttpUriRequest doPostMethod(String url, Map<String, String> param) throws UnsupportedEncodingException {\n HttpPost httpPost = new HttpPost(url);\n httpPost.setConfig(requestConfig);\n // 创建参数列表\n if (param != null) {\n List<NameValuePair> paramList = new ArrayList<>();\n for (String key : param.keySet()) {\n paramList.add(new BasicNameValuePair(key, param.get(key)));\n }\n // 模拟表单\n UrlEncodedFormEntity entity = new UrlEncodedFormEntity(paramList, \"utf-8\");\n httpPost.setEntity(entity);\n }\n return httpPost;\n }", "public void addUrlArg(String key, String value);", "public JSONPostUtility(String requestURL)\n throws IOException {\n //call super constructor\n super(requestURL, \"POST\");\n //set the content type\n super.addHeader(\"Content-Type\", \"application/json;charset=\" + super.charset);\n super.addHeader(\"Accept\", \"application/json\");\n }", "public <T> T POST(String relativeURL, Type returnType, HashMap<String, String> data) {\n\t\treturn null;\n\t}", "public static String executePostBytes(String targetURL, byte[] urlParameters) {\n\t\t\t HttpURLConnection connection = null; \n\t\t\t try {\n\t\t\t //Create connection\n\t\t\t URL url = new URL(targetURL);\n\t\t\t connection = (HttpURLConnection)url.openConnection();\n\t\t\t connection.setRequestMethod(\"POST\");\n\t\t\t connection.setRequestProperty(\"Content-Type\", \"application/json\");\n\n\t\t\t connection.setRequestProperty(\"Content-Length\", \n\t\t\t Integer.toString(urlParameters.length));\n\t\t\t connection.setRequestProperty(\"Content-Language\", \"en-US\"); \n\n\t\t\t connection.setUseCaches(false);\n\t\t\t connection.setDoOutput(true);\n\n\t\t\t //Send request\n\t\t\t DataOutputStream wr = new DataOutputStream (\n\t\t\t connection.getOutputStream());\n\t\t\t wr.write(urlParameters);;\n\t\t\t wr.close();\n\n\t\t\t //Get Response \n\t\t\t InputStream is = connection.getInputStream();\n\t\t\t BufferedReader rd = new BufferedReader(new InputStreamReader(is));\n\t\t\t StringBuilder response = new StringBuilder(); // or StringBuffer if not Java 5+ \n\t\t\t String line;\n\t\t\t while((line = rd.readLine()) != null) {\n\t\t\t response.append(line);\n\t\t\t response.append('\\r');\n\t\t\t }\n\t\t\t rd.close();\n\t\t\t \n\t\t\t if (response.length() == 0 ){\n\t\t\t \t// if nothing is coming back, at least send the response code.\n\t\t\t \t// a correct commit only returns 200-ok\n\t\t\t \tresponse.append(connection.getResponseCode());\n\t\t\t }\n\t\t\t return response.toString();\n\t\t\t } catch (Exception e) {\n\t\t\t e.printStackTrace();\n\t\t\t return null;\n\t\t\t } finally {\n\t\t\t if(connection != null) {\n\t\t\t connection.disconnect(); \n\t\t\t }\n\t\t\t }\n\t\t\t}", "public static String getCreateTestRunURL() {\n\n\t\treturn baseURL + login_required_string + \"/rest/domains/\" + domain + \"/projects/\" + project + \"/runs\";\n\t}", "@Override\n protected void doPost(HttpServletRequest req, HttpServletResponse resp) {\n }", "String getRequestURL();", "public void postRequest() {\n apiUtil = new APIUtil();\n // As this is an API call , we are not setting up any base url but defining the individual calls\n apiUtil.setBaseURI(configurationReader.get(\"BaseURL\"));\n //This is used to validate the get call protected with basic authentication mechanism\n basicAuthValidation();\n scenario.write(\"Request body parameters are :-\");\n SamplePOJO samplePOJO = new SamplePOJO();\n samplePOJO.setFirstName(scenarioContext.getContext(\"firstName\"));\n samplePOJO.setLastName(scenarioContext.getContext(\"lastName\"));\n\n ObjectMapper objectMapper = new ObjectMapper();\n try {\n apiUtil.setRequestBody(objectMapper.writeValueAsString(samplePOJO));\n } catch (JsonProcessingException e) {\n e.printStackTrace();\n }\n }", "@Override\n\tpublic HttpResponse post(final String endpoint, final String body) {\n\t\treturn httpRequest(HTTP_POST, endpoint, body);\n\t}", "protected Uri getPostUri() {\n //@formatter:off\n return Uri.parse(getAdapter().getPost(mPager.getCurrentItem())\n .getFullPermalink(SharedPreferencesHelper.getUseMobileInterface(this)));\n //@formatter:on\n }", "@Override\n protected Double doInBackground(String... params) {\n if (MainActivity.LOCAL_LOGV) Log.v(MainActivity.REFACTOR_LOG_TAG, \"Poster url: \" + params[0]);\n postData(params[0]);\n return null;\n }", "@Test\n public void testClientPostsNoParameters() throws Exception {\n sendParameterPostRequest(3, null, null, 10, false);\n\n // Headers\n parser.readFrame();\n output.clearTrace();\n\n parser.readFrame();\n\n Assert.assertEquals(\"3-RST-[11]\\n\", output.getTrace());\n }", "public HTTPpost(String requestURL, String charset, boolean requireCSRF)\n throws IOException {\n this.charset = charset;\n httpConn = null;\n exception = null;\n\n // creates a unique boundary based on time stamp\n boundary = \"===\" + System.currentTimeMillis() + \"===\";\n url = new URL(requestURL);\n fields = new ArrayList<>();\n files = new ArrayList<>();\n\n if (requireCSRF) {\n getCSRF();\n }\n }", "public void submitLink(String url, String description) {\n PostDTO post = new PostDTO(url, description, currentUser, 0, new ArrayList<>());\n ctrl.addPost(post, currentUser);\n refreshState();\n }", "@Override\n public void addPostCommand(String postCommand) {\n }", "private int doPost(String url) {\n if (!url.toLowerCase().startsWith(\"http\")) {\n url = \"http://\" + url;\n }\n HttpResponse response = null;\n try {\n HttpPost httpPost = new HttpPost(url);\n response = httpClient.execute(httpPost);\n return response.getStatusLine().getStatusCode();\n } catch (IllegalStateException | IOException e) {\n LOGGER.error(String.format(\"Error processing webhook %s\", url), e);\n } finally {\n if (response != null && response.getEntity() != null) {\n try {\n EntityUtils.consume(response.getEntity());\n } catch (IOException e) {\n LOGGER.error(String.format(\"Unable to release connection for webhook %s\", url), e);\n }\n }\n }\n return 0;\n }", "private void postRequest() {\n\t\tSystem.out.println(\"post request, iam playing money\");\n\t}", "private String parsePostRequest(StringTokenizer parse) {\n\t\tString fileRequested = parse.nextToken();\r\n\r\n\t\treturn null;\r\n\t}", "public PostBuilder() {\n httpClient = HttpClients.createDefault();\n httpPost = new HttpPost(localTesting ? \"http://localhost:8080\" : \"https://netflixstatistixserver.herokuapp.com\");\n attributes = new ArrayList<>();\n }", "public interface HttpPoster {\n\n /**\n * Post data to the provided URL.\n *\n * @param url http url to be reached\n * @param headers headers to be sent\n * @param body body to be sent\n * @param mediaType media type definition\n * @return http response from the POST request\n * @throws IOException in case of http request error\n */\n HttpResponse post(URL url, Map<String, String> headers, byte[] body, String mediaType)\n throws IOException;\n}", "@Test\n void setUrl() {\n g.setUrl(url);\n assertEquals(url, g.getUrl(), \"URL mismatch\");\n }", "@Test\n public void shouldCreateAPaymentViaPost() throws Exception {\n ResponseEntity<String> response = postTestPaymentAndGetResponse();\n\n //then: the status should be 'created'\n assertEquals(HttpStatus.CREATED, response.getStatusCode());\n\n //and: the location header should contain a link to the newly created resource that includes its id:\n String locationHeader = getLocationHeader(response);\n assertTrue(locationHeader.contains(\"/payments/\"));\n }", "public static boolean isPost(HttpServletRequest argRequest) {\r\n\t\treturn HttpConstants.POST.equalsIgnoreCase(argRequest.getMethod());\r\n\t}", "@Test\n \tpublic void testToPostData() throws UnsupportedEncodingException{\n \t\t\n \t\tUserInfo user = DummyFactory.createDummyUserInfo();\n \t\tString postStr = String.format(\"type=%s&time=%s&member[0][uid]=%s&member[0][status]=%s\", \n \t\t\t\tURLEncoder.encode(\"PRIVATE\",\"utf-8\"),\n\t\t\t\tURLEncoder.encode(\"1970-01-01T09:00\",\"utf-8\"),\n \t\t\t\tURLEncoder.encode(\"xxxx\",\"utf-8\"),\n \t\t\t\tURLEncoder.encode(\"ON\",\"utf-8\")\n \t\t\t\t);\n \n \t\tAlarmInfo alarm = new AlarmInfo(user, 1000);\n \t\tassertEquals( postStr, alarm.toPostData() );\n \t}", "public Request<E, T> buildHttpPost ()\n\t{\n\t\treturn new HttpPostRequest<E, T>(this);\n\t}", "private void sendPost() {\n Map<String,Object> values = new HashMap<>();\n values.put(Constants.MANAGEMENT,management);\n values.put(Constants.GENERAL_INFORMATION,generalnformation);\n values.put(Constants.SYMPTOMS,symptoms);\n\n FireBaseUtils.mDatabaseDiseases.child(caseStudyUrl).child(url).updateChildren(values);\n Toast.makeText(DiseaseEditActivity.this, \"Item Posted\",LENGTH_LONG).show();\n finish();\n }", "@Test (groups = \"create_post\")\n public void DTest_Show_Post_success(){\n\n System.out.println(\"Show PostID# \"+ createdPost);\n System.out.println(\"Generated Post Title: \"+ createdTitle);\n System.out.println(\"Generated Post Content: \"+ createdContent);\n System.out.println(\"Request to: \" + resourcePath + \"/\" + createdPost);\n\n given()\n .spec(RequestSpecs.generateToken())\n .get(String.format(\"%s/%s\",resourcePath,createdPost.toString()))\n .then()\n .body(\"data.id\", equalTo(createdPost))\n .and()\n .body(\"data.title\", equalTo(createdTitle))\n .and()\n .body(\"data.content\", equalTo(createdContent))\n .and()\n .statusCode(200)\n .spec(ResponseSpecs.defaultSpec());\n }", "@Test\n\t@When(\"posted with future date information\")\n\tpublic void posted_with_future_date_information() {\n\t\tRestAssured.baseURI = BASE_URL;\n\t\t RequestSpecification request = RestAssured.given();\n\t}", "@Test\n public void uploadBadUrlVideo() {\n Video video = new Video(\"Cool video\", \"www.y.com\", 212);\n Response response = target.request(MediaType.APPLICATION_JSON)\n .post(Entity.entity(video, MediaType.APPLICATION_JSON));\n\n assertThat(response.getStatus(), is(Status.BAD_REQUEST.getStatusCode()));\n\n }", "public void post(String url, RequestParams params, AsyncHttpResponseHandler responseHandler) {\n post(null, url, params, responseHandler);\n }", "@Returns(\"targetId\")\n String createTarget(@ParamName(\"url\") String url);", "@Test\r\n\tpublic void testHttpURLBuilderParsing() {\r\n\t\tHttpURLBuilder parser = new HttpURLBuilder();\r\n\t\tparser.setUrl(\"http://somedomain.int/somepath?someparam=somevalue\");\r\n\t\tAssert.assertEquals(\"somedomain.int\", parser.getHost());\r\n\t\tAssert.assertEquals(\"/somepath\", parser.getPath());\r\n\t\tfor (String param : parser.getParameters().keySet()) {\r\n\t\t\tSystem.err.println(param);\r\n\t\t}\r\n\t\tAssert.assertTrue(parser.getParameters().containsKey(\"someparam\"));\r\n\t\tSystem.err.println(parser.getParameters().get(\"someparam\").get(0));\r\n\t\tAssert.assertEquals(\"somevalue\", parser.getParameters().get(\"someparam\").get(0));\r\n\t\tAssert.assertFalse(parser.isSecure());\r\n\t\tAssert.assertNotNull(parser.toString());\r\n\t\tAssert.assertNotNull(parser.toURL());\r\n\t\tAssert.assertEquals(\"http://somedomain.int/somepath?someparam=somevalue\", parser.toString());\r\n\t}", "public UrlValidatorTest(String testName) {\n super(testName);\n }", "public UrlValidatorTest(String testName) {\n super(testName);\n }" ]
[ "0.6439835", "0.63851166", "0.6285272", "0.6275892", "0.6211784", "0.6053665", "0.60156846", "0.5997759", "0.59902054", "0.5971027", "0.5962683", "0.5952749", "0.5921427", "0.5898376", "0.58724356", "0.58671755", "0.58593726", "0.58435625", "0.5768631", "0.57517946", "0.57495344", "0.57474476", "0.572418", "0.57202286", "0.5678877", "0.5656796", "0.5650003", "0.56353986", "0.56311125", "0.5623809", "0.56045145", "0.5568517", "0.5549889", "0.5527706", "0.5497171", "0.5483768", "0.54796803", "0.5479623", "0.5477161", "0.54571795", "0.54435074", "0.541804", "0.54132164", "0.54088575", "0.5401888", "0.5385056", "0.53663325", "0.53520536", "0.5331385", "0.5331385", "0.53313404", "0.5316887", "0.531435", "0.5313714", "0.53105867", "0.52992344", "0.527976", "0.52681655", "0.5267912", "0.52602917", "0.5257079", "0.5252786", "0.5251716", "0.52486575", "0.52473384", "0.5245121", "0.5237924", "0.52203095", "0.52034605", "0.519605", "0.5193541", "0.5185872", "0.51851225", "0.51702064", "0.5162533", "0.5162118", "0.51510143", "0.51470846", "0.5141889", "0.51416117", "0.51325494", "0.51276207", "0.51146746", "0.51110744", "0.51107144", "0.50988716", "0.5098651", "0.50937593", "0.50907356", "0.5087365", "0.50826854", "0.5081877", "0.507534", "0.5066704", "0.5057075", "0.5056299", "0.50554585", "0.505352", "0.503473", "0.503473" ]
0.5524939
34
deptSetPids(department); String a = getCurrentUserId(request);
@RequestMapping("/add") @ResponseBody public JSONObject addDepart(HttpServletRequest request , HttpServletResponse response, Map<String,Object>map){ JSONObject jo = new JSONObject(); try { // department.setSort(departmentService.max()); boolean index = departmentService.add(map); Operationlog operationlog = new Operationlog(); operationlogService.addLog("添加用户","2",request); } catch (Exception e) { e.printStackTrace(); jo.put("status","1"); jo.put("code",0); jo.put("msg","ok"); return jo; } jo.put("status",1); jo.put("code",0); jo.put("msg","ok"); return (JSONObject) JSONObject.toJSON(jo); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void assign (int departmentId, AssignEmployeeRequest empList);", "public int getDepartmentId() {\n return departmentId;\n }", "public Integer getDepartmentid() {\n return departmentid;\n }", "public Integer getDepartmentid() {\n return departmentid;\n }", "public String getDepartmentid() {\n return departmentid;\n }", "public void setUser1_ID (int User1_ID);", "public void setUser1_ID (int User1_ID);", "public DepartmentModel findUserByDeptId( Long userId);", "public void setDepartmentid(Integer departmentid) {\n this.departmentid = departmentid;\n }", "public void setDepartmentid(Integer departmentid) {\n this.departmentid = departmentid;\n }", "public void assignDepartment(String departmentName);", "public int getUser1_ID();", "public int getUser1_ID();", "private List<Long> aDeptIds(List<Department> pamDepts) {\n allDeptIds = new ArrayList<Long>();\n // add primary dept (always first in the collection)\n allDeptIds.add(pamDepts.get(0).getid()); \n // add any and all mutual aid depts - note: i=1 (not zero) to pass over primary dept\n for (int i = 1; i < pamDepts.size(); i++) {\n allDeptIds.add(pamDepts.get(i).getid());\n } \n System.out.println(\"Exit: aDeptIds\");\n return allDeptIds;\n }", "public int getUserId()\n {\n return userId;\n }", "public int getUser1Y_ID();", "public int getAD_User_ID();", "public void setSpid(int param){\n localSpidTracker = true;\n \n this.localSpid=param;\n \n\n }", "public Integer getDepartmentId() {\n return departmentId;\n }", "public Integer getDepartmentId() {\n return departmentId;\n }", "public Integer getDepartmentId() {\n return departmentId;\n }", "public void setUser1X_ID (int User1X_ID);", "int getDoctorId();", "int getDoctorId();", "public Long getDepartmentId() {\n return departmentId;\n }", "public Long getDepartmentId() {\n return departmentId;\n }", "public Long getDepartmentId() {\n return departmentId;\n }", "String getUserId();", "String getUserId();", "public void setUserId(){\n AdGyde.setClientUserId(\"ADG1045984\");\n Toast.makeText(this, \"UserId = ADG1045984\", Toast.LENGTH_SHORT).show();\n }", "int getUserID();", "int getUserID();", "int getUserID();", "int getUserID();", "int getUserID();", "int getUserID();", "int getUserID();", "int getUserID();", "int getUserID();", "int getUserID();", "int getUserID();", "int getUserID();", "int getUserID();", "int getUserID();", "int getUserID();", "int getUserID();", "int getUserID();", "public String getUserId(){return userID;}", "public String getUserID();", "public void setDepartmentId(int value) {\n this.departmentId = value;\n }", "public int getUser1X_ID();", "long getUserId();", "long getUserId();", "public void setPatientID(java.lang.String param){\n \n this.localPatientID=param;\n \n\n }", "public void setPatientID(java.lang.String param){\n \n this.localPatientID=param;\n \n\n }", "public void setDepartment(Department d) {\r\n department = d;\r\n }", "public String GetDept()\r\n {\r\n return Department;\r\n }", "public void setUser1Y_ID (int User1Y_ID);", "public int getIduser() {\n return iduser;\n }", "public String getId()\r\n {\r\n return departmentBean.getId();\r\n }", "public int getSpid(){\n return localSpid;\n }", "public Long getUserId()\n/* */ {\n/* 73 */ return this.userId;\n/* */ }", "@Override\n public long getUserId() {\n return _partido.getUserId();\n }", "public long getUserId();", "public long getUserId();", "public long getUserId();", "public long getUserId();", "public ResultSet getDepartmentByID(int dept_no);", "public String getEmployeeDepartment(){\n return profile.getDepartment();\n }", "public int getUserId() {\n return userId;\n }", "public int getUserId() {\n return userId;\n }", "public int getUserId() {\n return userId;\n }", "public int getUserId() {\n return userId;\n }", "public int getUserId() {\n return userId;\n }", "public Integer getDeptId() {\r\n return deptId;\r\n }", "java.lang.String getUserId();", "java.lang.String getUserId();", "java.lang.String getUserId();", "private void setUserId(int value) {\n \n userId_ = value;\n }", "Integer getUserId();", "public java.lang.String getSpId(){\r\n return localSpId;\r\n }", "public Long getUserid() {\r\n return userid;\r\n }", "public int getUserId() {\n return userId_;\n }", "String getUserID();", "public Long getDeptId() {\n return deptId;\n }", "public int getAD_Org_ID();", "public int getAD_Org_ID();", "public int getAD_Org_ID();", "public int getAD_Org_ID();", "public int getAD_Org_ID();", "public int getAD_Org_ID();", "public int getAD_Org_ID();", "public int getAD_Org_ID();", "public int getAD_Org_ID();", "public int getAD_Org_ID();", "public int getAD_Org_ID();", "public int getAD_Org_ID();", "public int getAD_Org_ID();", "public String getUserId()\n {\n return userId;\n }", "public String getUserId()\n {\n return userId;\n }", "private String getCurrentUserId() {\n\t\tUser currentUser = UserDirectoryService.getCurrentUser();\n \tString currentUserId = currentUser.getId();\n\t\treturn currentUserId;\n\t}" ]
[ "0.6249148", "0.62472117", "0.6219292", "0.6219292", "0.6175886", "0.6036689", "0.6036689", "0.5996165", "0.5991897", "0.5991897", "0.5984512", "0.59798235", "0.59798235", "0.59773004", "0.59656924", "0.5964449", "0.59336287", "0.59208846", "0.59205407", "0.59205407", "0.59205407", "0.59102315", "0.5902461", "0.5902461", "0.58771944", "0.58771944", "0.58771944", "0.5868242", "0.5868242", "0.58547395", "0.58360875", "0.58360875", "0.58360875", "0.58360875", "0.58360875", "0.58360875", "0.58360875", "0.58360875", "0.58360875", "0.58360875", "0.58360875", "0.58360875", "0.58360875", "0.58360875", "0.58360875", "0.58360875", "0.58360875", "0.5820387", "0.58194566", "0.58103335", "0.5807482", "0.5798991", "0.5798991", "0.5783077", "0.5783077", "0.576964", "0.57686865", "0.5753189", "0.57460076", "0.5734289", "0.5714333", "0.5713901", "0.5708491", "0.56938076", "0.56938076", "0.56938076", "0.56938076", "0.56930137", "0.5684692", "0.5678128", "0.5678128", "0.5678128", "0.5678128", "0.5678128", "0.5669723", "0.5653732", "0.5653732", "0.5653732", "0.56449133", "0.5644562", "0.5641319", "0.5639366", "0.5638641", "0.5637284", "0.56311333", "0.5620601", "0.5620601", "0.5620601", "0.5620601", "0.5620601", "0.5620601", "0.5620601", "0.5620601", "0.5620601", "0.5620601", "0.5620601", "0.5620601", "0.5620601", "0.5614168", "0.5614168", "0.5612826" ]
0.0
-1
TODO Autogenerated method stub
private long getUnsigned(byte b) { if(b>=0) return b; return 256+b; }
{ "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
jhipsterneedleentityaddfield JHipster will add fields here
public Long getId() { return id; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void addField(\n JavaSymbolName propertyName,\n JavaType propertyType,\n String columnName,\n String columnType,\n JavaType className,\n boolean id,\n boolean oneToOne, boolean oneToMany, boolean manyToOne, boolean manyToMany, String mappedBy);", "Builder addMainEntity(String value);", "@Override\n\tpublic void save(Field entity) {\n\t\t\n\t}", "Builder addMainEntity(Thing value);", "public void setupFields()\n {\n FieldInfo field = null;\n field = new FieldInfo(this, \"ID\", Constants.DEFAULT_FIELD_LENGTH, null, null);\n field.setDataClass(Integer.class);\n field.setHidden(true);\n field = new FieldInfo(this, \"LastChanged\", Constants.DEFAULT_FIELD_LENGTH, null, null);\n field.setDataClass(Date.class);\n field.setHidden(true);\n field = new FieldInfo(this, \"Deleted\", 10, null, new Boolean(false));\n field.setDataClass(Boolean.class);\n field.setHidden(true);\n field = new FieldInfo(this, \"Description\", 25, null, null);\n field = new FieldInfo(this, \"CurrencyCode\", 3, null, null);\n field = new FieldInfo(this, \"LastRate\", 10, null, null);\n field.setDataClass(Double.class);\n field.setScale(-1);\n field = new FieldInfo(this, \"RateChangedDate\", 12, null, null);\n field.setDataClass(Date.class);\n field.setScale(Constants.DATE_ONLY);\n field = new FieldInfo(this, \"RateChangedBy\", 16, null, null);\n field.setDataClass(Integer.class);\n field = new FieldInfo(this, \"CostingRate\", 10, null, null);\n field.setDataClass(Double.class);\n field.setScale(-1);\n field = new FieldInfo(this, \"CostingChangedDate\", 12, null, null);\n field.setDataClass(Date.class);\n field.setScale(Constants.DATE_ONLY);\n field = new FieldInfo(this, \"CostingChangedBy\", 16, null, null);\n field.setDataClass(Integer.class);\n field = new FieldInfo(this, \"RoundAt\", 1, null, null);\n field.setDataClass(Short.class);\n field = new FieldInfo(this, \"IntegerDesc\", 20, null, \"Dollar\");\n field = new FieldInfo(this, \"FractionDesc\", 20, null, null);\n field = new FieldInfo(this, \"FractionAmount\", 10, null, new Integer(100));\n field.setDataClass(Integer.class);\n field = new FieldInfo(this, \"Sign\", 3, null, \"$\");\n field = new FieldInfo(this, \"LanguageID\", Constants.DEFAULT_FIELD_LENGTH, null, null);\n field.setDataClass(Integer.class);\n field = new FieldInfo(this, \"NaturalInteger\", 20, null, null);\n field = new FieldInfo(this, \"NaturalFraction\", 20, null, null);\n }", "public void addField(TemplateField field)\r\n{\r\n\tfields.addElement(field);\r\n}", "public PimsSysReqFieldDaoHibernate() {\n super(PimsSysReqField.class);\n }", "@Override\r\n public void createNewEntity(String entityName) {\n\r\n }", "@Override\r\n protected void createDbContentCreateEdit() {\n DbContentCreateEdit dbContentCreateEdit = new DbContentCreateEdit();\r\n dbContentCreateEdit.init(null);\r\n form.getModelObject().setDbContentCreateEdit(dbContentCreateEdit);\r\n dbContentCreateEdit.setParent(form.getModelObject());\r\n ruServiceHelper.updateDbEntity(form.getModelObject()); \r\n }", "public void updateNonDynamicFields() {\n\n\t}", "Builder addMainEntity(Thing.Builder value);", "public void setEntityAddDate(String entityAddDate);", "private void addFieldToBook(String config_id, GOlrField field) {\n if (!unique_fields.containsKey(field.id)) {\n unique_fields.put(field.id, field);\n } else {\n // check if defined fields are equivalent\n if (!unique_fields.get(field.id).equals(field)) {\n throw new IllegalStateException(field.id + \" is defined twice with different properties.\\n\"\n + unique_fields.get(field.id) + \"\\n\" + field);\n }\n }\n // Ensure presence of comments (description) list.\n if (!collected_comments.containsKey(field.id)) {\n collected_comments.put(field.id, new ArrayList<String>());\n }\n // And add to it if there is an available description.\n if (field.description != null) {\n ArrayList<String> comments = collected_comments.get(field.id);\n comments.add(\" \" + config_id + \": \" + field.description + \" \");\n collected_comments.put(field.id, comments);\n }\n }", "void SaveBudgetKeyAdditional(BudgetKeyAdditionalEntity budgetKeyAdditionalEntity);", "public ChangeFieldEf() {\r\n\t\tthis(null, null);\r\n\t}", "protected void addField(InstanceContainer container, Form form, MetaProperty metaProperty, boolean isReadonly) {\n MetaClass metaClass = container.getEntityMetaClass();\n Range range = metaProperty.getRange();\n\n boolean isRequired = isRequired(metaProperty);\n\n UiEntityAttributeContext attributeContext = new UiEntityAttributeContext(metaClass, metaProperty.getName());\n accessManager.applyRegisteredConstraints(attributeContext);\n\n if (!attributeContext.canView())\n return;\n\n if (range.isClass()) {\n UiEntityContext entityContext = new UiEntityContext(range.asClass());\n accessManager.applyRegisteredConstraints(entityContext);\n if (!entityContext.isViewPermitted()) {\n return;\n }\n }\n\n ValueSource valueSource = new ContainerValueSource<>(container, metaProperty.getName());\n\n ComponentGenerationContext componentContext =\n new ComponentGenerationContext(metaClass, metaProperty.getName());\n componentContext.setValueSource(valueSource);\n\n Field field = (Field) uiComponentsGenerator.generate(componentContext);\n\n if (requireTextArea(metaProperty, getItem(), MAX_TEXTFIELD_STRING_LENGTH)) {\n field = uiComponents.create(TextArea.NAME);\n }\n\n if (isBoolean(metaProperty)) {\n field = createBooleanField();\n }\n\n if (range.isClass()) {\n EntityPicker pickerField = uiComponents.create(EntityPicker.class);\n\n EntityLookupAction lookupAction = actions.create(EntityLookupAction.class);\n lookupAction.setScreenClass(EntityInspectorBrowser.class);\n lookupAction.setScreenOptionsSupplier(() -> new MapScreenOptions(\n ParamsMap.of(\"entity\", metaProperty.getRange().asClass().getName())));\n lookupAction.setOpenMode(OpenMode.THIS_TAB);\n\n pickerField.addAction(lookupAction);\n pickerField.addAction(actions.create(EntityClearAction.class));\n\n field = pickerField;\n }\n\n field.setValueSource(valueSource);\n field.setCaption(getPropertyCaption(metaClass, metaProperty));\n field.setRequired(isRequired);\n\n isReadonly = isReadonly || (disabledProperties != null && disabledProperties.contains(metaProperty.getName()));\n if (range.isClass() && !metadataTools.isEmbedded(metaProperty)) {\n field.setEditable(metadataTools.isOwningSide(metaProperty) && !isReadonly);\n } else {\n field.setEditable(!isReadonly);\n }\n\n field.setWidth(fieldWidth);\n\n if (isRequired) {\n field.setRequiredMessage(messageTools.getDefaultRequiredMessage(metaClass, metaProperty.getName()));\n }\n form.add(field);\n }", "public interface ExtendedFieldGroupFieldFactory extends FieldGroupFieldFactory\r\n{\r\n\t<T> CRUDTable<T> createTableField(Class<T> genericType, boolean manyToMany);\r\n}", "public void createField(Field field) {\n Span span = this.tracer.buildSpan(\"Client.CreateField\").start();\n try {\n String path = String.format(\"/index/%s/field/%s\", field.getIndex().getName(), field.getName());\n String body = field.getOptions().toString();\n ByteArrayEntity data = new ByteArrayEntity(body.getBytes(StandardCharsets.UTF_8));\n clientExecute(\"POST\", path, data, null, \"Error while creating field\");\n } finally {\n span.finish();\n }\n }", "public interface FieldPopulator\n{\n List<String> getCoreFields();\n\n List<String> getSupportedFields();\n\n String getUriTemplate();\n}", "FieldDefinition createFieldDefinition();", "@attribute(value = \"\", required = true)\t\r\n\tpublic void addField(Field f) {\r\n\t\tfields.put(\"\" + fieldCount++, f);\r\n\t}", "@Label(\"Organization存储\")\npublic interface OrganizationRepository extends ModelQueryAndBatchUpdateRepository<Organization, EOrganization, Integer> {\n\n}", "void addFieldBinding( FieldBinding binding );", "public void init() {\n entityPropertyBuilders.add(new DefaultEntityComponentBuilder(environment));\n entityPropertyBuilders.add(new FilterTransientFieldComponentBuilder(environment));\n entityPropertyBuilders.add(new MakeAccessibleComponentBuilder(environment));\n entityPropertyBuilders.add(new PrimaryKeyComponentBuilder(environment));\n\n // Field meta property builders\n fieldPropertyBuilders.add(new FilterPrimaryKeyComponentBuilder(environment));\n fieldPropertyBuilders.add(new FilterTransientFieldComponentBuilder(environment));\n fieldPropertyBuilders.add(new MakeAccessibleComponentBuilder(environment));\n fieldPropertyBuilders.add(new TtlFieldComponentBuilder(environment));\n fieldPropertyBuilders.add(new CompositeParentComponentBuilder(environment));\n fieldPropertyBuilders.add(new CollectionFieldComponentBuilder(environment));\n fieldPropertyBuilders.add(new MapFieldComponentBuilder(environment));\n fieldPropertyBuilders.add(new SimpleFieldComponentBuilder(environment));\n }", "public interface GradeMapper {\n @Select(\"select * from grade\")\n public List<Grade> getByGradeNm();\n\n @Insert(\"insert into grade(grade_nm,teacher_id) values(#{gradeNm},#{teacherId})\")\n @Options(useGeneratedKeys=true,keyColumn=\"id\",keyProperty=\"id\")//设置id自增长\n public void save(Grade grade);\n}", "@Mapper(uses ={DateComponent.class}, componentModel = \"spring\")\npublic interface CreateCodeMapper extends EntityMapper<CreateCodeDto , Code> {\n}", "@Test\n public void createCustomFieldTest() throws ApiException {\n CustomFieldDefinitionJsonBean body = null;\n FieldDetails response = api.createCustomField(body);\n\n // TODO: test validations\n }", "void addField(\n JavaSymbolName propertyName,\n JavaType propertyType,\n String columnName,\n String columnType,\n JavaType className\n );", "public void setUWCompany(entity.UWCompany value);", "@Mapper(componentModel = \"spring\", uses = {HopDongMapper.class})\npublic interface GhiNoMapper extends EntityMapper<GhiNoDTO, GhiNo> {\n\n @Mapping(source = \"hopDong.id\", target = \"hopDongId\")\n GhiNoDTO toDto(GhiNo ghiNo);\n\n @Mapping(source = \"hopDongId\", target = \"hopDong\")\n GhiNo toEntity(GhiNoDTO ghiNoDTO);\n\n default GhiNo fromId(Long id) {\n if (id == null) {\n return null;\n }\n GhiNo ghiNo = new GhiNo();\n ghiNo.setId(id);\n return ghiNo;\n }\n}", "@Override\n public Field<?> createField(Container container, Object itemId,\n Object propertyId, Component uiContext) {\n Field<?> field = super.createField(container, itemId,\n propertyId, uiContext);\n\n // ...and just set them as immediate\n ((AbstractField<?>) field).setImmediate(true);\n\n // Also modify the width of TextFields\n if (field instanceof TextField)\n field.setWidth(\"100%\");\n field.setRequired(true);\n ((TextField) field).setInputPrompt(\"Введите назначение\");\n field.addStyleName(ValoTheme.LAYOUT_HORIZONTAL_WRAPPING);\n field.focus();\n\n return field;\n }", "public interface JdlFieldView extends JdlField, JdlCommentView {\n //TODO This validation should be handled in JdlService\n default String getTypeName() {\n JdlFieldEnum type = getType();\n return switch (type) {\n case ENUM -> getEnumEntityName()\n .orElseThrow(() -> new IllegalStateException(\"An enum field must have its enum entity name set\"));\n default -> ((\"UUID\".equals(type.name())) ? type.name() : type.toCamelUpper());\n };\n }\n\n default String constraints() {\n List<String> constraints = new ArrayList<>();\n if (renderRequired()) constraints.add(requiredConstraint());\n if (isUnique()) constraints.add(uniqueConstraint());\n getMin().ifPresent(min -> constraints.add(minConstraint(min)));\n getMax().ifPresent(max -> constraints.add(maxConstraint(max)));\n getPattern().ifPresent(pattern -> constraints.add(patternConstraint(pattern)));\n return (!constraints.isEmpty()) ? \" \".concat(Joiner.on(\" \").join(constraints)) : null;\n }\n\n // TODO do not write required when field is primary key\n default boolean renderRequired() {\n // if (!isPrimaryKey() && isRequired() && ) constraints.add(JdlUtils.validationRequired());\n return isRequired() && !(getName().equals(\"id\") && getType().equals(JdlFieldEnum.UUID));\n }\n\n @NotNull\n default String requiredConstraint() {\n return \"required\";\n }\n\n @NotNull\n default String uniqueConstraint() {\n return \"unique\";\n }\n\n default String minConstraint(int min) {\n return switch (getType()) {\n case STRING -> validationMinLength(min);\n default -> validationMin(min);\n };\n }\n\n default String maxConstraint(int max) {\n return switch (getType()) {\n case STRING -> validationMaxLength(max);\n default -> validationMax(max);\n };\n }\n\n //TODO This validation should be handled in JdlService\n default String patternConstraint(String pattern) {\n return switch (getType()) {\n case STRING -> validationPattern(pattern);\n default -> throw new RuntimeException(\"Only String can have a pattern\");\n };\n }\n\n @NotNull\n default String validationMax(final int max) {\n return \"max(\" + max + \")\";\n }\n\n @NotNull\n default String validationMin(final int min) {\n return \"min(\" + min + \")\";\n }\n\n default String validationMaxLength(final int max) {\n return \"maxlength(\" + max + \")\";\n }\n\n @NotNull\n default String validationMinLength(final int min) {\n return \"minlength(\" + min + \")\";\n }\n\n @NotNull\n default String validationPattern(final String pattern) {\n return \"pattern(/\" + pattern + \"/)\";\n }\n}", "HxField createField(final String fieldType,\n final String fieldName);", "@Mapper(componentModel = \"spring\", uses = {})\npublic interface Record25HerfinancieeringMapper extends EntityMapper<Record25HerfinancieeringDTO, Record25Herfinancieering> {\n\n\n\n default Record25Herfinancieering fromId(Long id) {\n if (id == null) {\n return null;\n }\n Record25Herfinancieering record25Herfinancieering = new Record25Herfinancieering();\n record25Herfinancieering.setId(id);\n return record25Herfinancieering;\n }\n}", "@PrePersist()\r\n\tpublic void initEntity(){\r\n\t\tthis.name = WordUtils.capitalizeFully(this.name);\r\n\t}", "public void addField()\n {\n DefaultMutableTreeNode node = (DefaultMutableTreeNode) availableFieldsComp.getTree().getLastSelectedPathComponent();\n if (node == null || !node.isLeaf() || !(node.getUserObject() instanceof DataObjDataFieldWrapper) )\n {\n return; // not really a field that can be added, just empty or a string\n }\n\n Object obj = node.getUserObject();\n if (obj instanceof DataObjDataFieldWrapper)\n {\n DataObjDataFieldWrapper wrapper = (DataObjDataFieldWrapper) obj;\n String sep = sepText.getText();\n if (StringUtils.isNotEmpty(sep))\n {\n try\n {\n DefaultStyledDocument doc = (DefaultStyledDocument) formatEditor.getStyledDocument();\n if (doc.getLength() > 0)\n {\n doc.insertString(doc.getLength(), sep, null);\n }\n }\n catch (BadLocationException ble) {}\n \n }\n insertFieldIntoTextEditor(wrapper);\n setHasChanged(true);\n }\n }", "public interface FieldDAO extends CrudRepository<Field, Integer> {\n\n}", "@Override\n\tprotected void initializeFields() {\n\n\t}", "void add(E entity) throws ValidationException, RepositoryException;", "@Override\r\n\tpublic void addField(Field field) \r\n\t{\r\n\t\tif(this.fields == null)\r\n\t\t{\r\n\t\t\tthis.fields = new ArrayList<>();\r\n\t\t}\r\n\t\tthis.fields.add(field);\r\n\t}", "private void addSetter(JavaObject object, JavaModelBeanField field) {\n\t\tIJavaCodeLines arguments = getArguments(field, object.getImports());\n\t\tSetterMethod method = new SetterMethod(field.getName(), field.getType(), arguments, objectType);\n\t\tobject.addBlock(method);\n\t}", "@Override\n\tpublic void save(List<Field> entity) {\n\t\t\n\t}", "protected void createFields()\n {\n createEffectiveLocalDtField();\n createDiscontinueLocalDtField();\n createScanTypeField();\n createContractNumberField();\n createContractTypeField();\n createProductTypeField();\n createStatusIndicatorField();\n createCivilMilitaryIndicatorField();\n createEntryUserIdField();\n createLastUpdateUserIdField();\n createLastUpdateTsField();\n }", "void addEntity(IViewEntity entity);", "private void handleIdFields(JFieldVar field, JsonNode propertyNode) {\n if (propertyNode.has(JpaConstants.IS_ID_COLUMN) && propertyNode.get(JpaConstants.IS_ID_COLUMN).asBoolean(true)) {\n field.annotate(Id.class);\n }\n\n if (propertyNode.has(JpaConstants.GENERATED_VALUE)) {\n JsonNode generatedValueNode = propertyNode.get(JpaConstants.GENERATED_VALUE);\n JAnnotationUse jAnnotationUse = field.annotate(GeneratedValue.class);\n if (generatedValueNode.has(JpaConstants.STRATEGY)) {\n jAnnotationUse.param(JpaConstants.STRATEGY, GenerationType.valueOf(generatedValueNode.get(JpaConstants.STRATEGY).asText()));\n }\n }\n }", "Builder addMainEntityOfPage(String value);", "public void addEntityMetadata() throws Exception {\n\n\t\tEntityMetadata entity = new EntityMetadata(entityType, false);\n\t\tentity.setRepositoryInstance(\"OperationalDB\");\n\t\tentity.setProviderType(\"RDBMSDataProvider\");\n\n\t\tMap<String, List<String>> providerParams = new HashMap<String, List<String>>();\n\t\tproviderParams.put(\"table\",\n\t\t\t\tArrays.asList(new String[] { \"APPLICATION_OBJECT\" }));\n\t\tproviderParams.put(\"id_column\", Arrays.asList(new String[] { \"ID\" }));\n\t\tproviderParams.put(\"id_type\", Arrays.asList(new String[] { \"guid\" }));\n\t\tproviderParams.put(\"optimistic_locking\",\n\t\t\t\tArrays.asList(new String[] { \"false\" }));\n\t\tproviderParams.put(\"flex_searchable_string_prefix\",\n\t\t\t\tArrays.asList(new String[] { \"I_VC\" }));\n\t\tproviderParams.put(\"flex_non_searchable_string_prefix\",\n\t\t\t\tArrays.asList(new String[] { \"U_VC\" }));\n\t\tproviderParams.put(\"flex_searchable_date_prefix\",\n\t\t\t\tArrays.asList(new String[] { \"I_DT\" }));\n\t\tproviderParams.put(\"flex_non_searchable_date_prefix\",\n\t\t\t\tArrays.asList(new String[] { \"U_DT\" }));\n\t\tproviderParams.put(\"flex_searchable_number_prefix\",\n\t\t\t\tArrays.asList(new String[] { \"I_NUM\" }));\n\t\tproviderParams.put(\"flex_non_searchable_number_prefix\",\n\t\t\t\tArrays.asList(new String[] { \"U_NUM\" }));\n\t\tproviderParams.put(\"flex_blob_prefix\",\n\t\t\t\tArrays.asList(new String[] { \"U_BLOB\" }));\n\n\t\tentity.setProviderParameters(providerParams);\n\t\tentity.setContainer(false);\n\n\t\tHashMap<String, Map<String, String>> metadataAttachments = new HashMap<String, Map<String, String>>();\n\t\tMap<String, String> prop = new HashMap<String, String>();\n\t\tprop.put(\"isEncrypted\", \"false\");\n\t\tmetadataAttachments.put(\"properties\", prop);\n\t\tAttributeDefinition attrDef = null;\n\t\tFieldDefinition fieldDef = null;\n\n\t\t// parameters: name, type, description, isRequired, isSearchable, isMLS,\n\t\t// defaultValue, groupName, metadataAttachments\n\n\t\tattrDef = new AttributeDefinition(\"givenName\", \"string\", null, true,\n\t\t\t\ttrue, false, null, \"Basic\", metadataAttachments);\n\t\tentity.addAttribute(attrDef);\n\t\t\n\t\tattrDef = new AttributeDefinition(\"lastName\", \"string\", null, true,\n\t\t\t\ttrue, false, null, \"Basic\", metadataAttachments);\n\t\tentity.addAttribute(attrDef);\n\t\t\n\t\tattrDef = new AttributeDefinition(\"email\", \"string\", null, true,\n\t\t\t\ttrue, false, null, \"Basic\", metadataAttachments);\n\t\tentity.addAttribute(attrDef);\n\t\t\n\t\tattrDef = new AttributeDefinition(\"startDate\", \"date\", null, false,\n\t\t\t\ttrue, false, null, \"Basic\", metadataAttachments);\n\t\tentity.addAttribute(attrDef);\n\t\t\n\t\tattrDef = new AttributeDefinition(\"endDate\", \"date\", null, false,\n\t\t\t\ttrue, false, null, \"Basic\", metadataAttachments);\n\t\tentity.addAttribute(attrDef);\n\t\t\n\t\tattrDef = new AttributeDefinition(\"employeeNo\", \"number\", null, true,\n\t\t\t\ttrue, false, null, \"Basic\", metadataAttachments);\n\t\tentity.addAttribute(attrDef);\n\n\n\t\tattrDef = new AttributeDefinition(\"__UID__\", \"string\", null, true,\n\t\t\t\ttrue, false, null, \"Basic\", metadataAttachments);\n\t\tentity.addAttribute(attrDef);\n\t\tfieldDef = new FieldDefinition(\"AO_UID\", \"string\",true);\n\t\tentity.addField(fieldDef);\n\t\tentity.addAttributeMapping(\"__UID__\", \"AO_UID\");\n\t\t\n\t\tattrDef = new AttributeDefinition(\"__NAME__\", \"string\", null, true,\n\t\t\t\ttrue, false, null, \"Basic\", metadataAttachments);\n\t\tentity.addAttribute(attrDef);\n\t\tfieldDef = new FieldDefinition(\"AO_NAME\", \"string\",true);\n\t\tentity.addField(fieldDef);\n\t\tentity.addAttributeMapping(\"__NAME__\", \"AO_NAME\");\n\n\t\t/*\n\t\t * attrDef = new AttributeDefinition(childEntityType, childEntityType,\n\t\t * null, false, true, false, null, \"Basic\", metadataAttachments);\n\t\t * entity.addChildEntityAttribute(attrDef);\n\t\t */\n\n\t\tString xmlString = getStringfromDoc(entity);\n\n\t\ttry {\n\t\t\tmgrConfig.createEntityMetadata(entity);\n\t\t\tSystem.out.println(\"Created entity type: \" + entityType);\n\n\t\t} catch (Exception e) {\n\t\t\t//fail(\"Unexpected exception: \" + getStackTrace(e));\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "@ProviderType\npublic interface EmployeeModel extends BaseModel<Employee> {\n\n\t/*\n\t * NOTE FOR DEVELOPERS:\n\t *\n\t * Never modify or reference this interface directly. All methods that expect a employee model instance should use the {@link Employee} interface instead.\n\t */\n\n\t/**\n\t * Returns the primary key of this employee.\n\t *\n\t * @return the primary key of this employee\n\t */\n\tpublic long getPrimaryKey();\n\n\t/**\n\t * Sets the primary key of this employee.\n\t *\n\t * @param primaryKey the primary key of this employee\n\t */\n\tpublic void setPrimaryKey(long primaryKey);\n\n\t/**\n\t * Returns the uuid of this employee.\n\t *\n\t * @return the uuid of this employee\n\t */\n\t@AutoEscape\n\tpublic String getUuid();\n\n\t/**\n\t * Sets the uuid of this employee.\n\t *\n\t * @param uuid the uuid of this employee\n\t */\n\tpublic void setUuid(String uuid);\n\n\t/**\n\t * Returns the employee ID of this employee.\n\t *\n\t * @return the employee ID of this employee\n\t */\n\tpublic long getEmployeeId();\n\n\t/**\n\t * Sets the employee ID of this employee.\n\t *\n\t * @param employeeId the employee ID of this employee\n\t */\n\tpublic void setEmployeeId(long employeeId);\n\n\t/**\n\t * Returns the first name of this employee.\n\t *\n\t * @return the first name of this employee\n\t */\n\t@AutoEscape\n\tpublic String getFirstName();\n\n\t/**\n\t * Sets the first name of this employee.\n\t *\n\t * @param firstName the first name of this employee\n\t */\n\tpublic void setFirstName(String firstName);\n\n\t/**\n\t * Returns the last name of this employee.\n\t *\n\t * @return the last name of this employee\n\t */\n\t@AutoEscape\n\tpublic String getLastName();\n\n\t/**\n\t * Sets the last name of this employee.\n\t *\n\t * @param lastName the last name of this employee\n\t */\n\tpublic void setLastName(String lastName);\n\n\t/**\n\t * Returns the middle name of this employee.\n\t *\n\t * @return the middle name of this employee\n\t */\n\t@AutoEscape\n\tpublic String getMiddleName();\n\n\t/**\n\t * Sets the middle name of this employee.\n\t *\n\t * @param middleName the middle name of this employee\n\t */\n\tpublic void setMiddleName(String middleName);\n\n\t/**\n\t * Returns the birth date of this employee.\n\t *\n\t * @return the birth date of this employee\n\t */\n\tpublic Date getBirthDate();\n\n\t/**\n\t * Sets the birth date of this employee.\n\t *\n\t * @param birthDate the birth date of this employee\n\t */\n\tpublic void setBirthDate(Date birthDate);\n\n\t/**\n\t * Returns the post ID of this employee.\n\t *\n\t * @return the post ID of this employee\n\t */\n\tpublic long getPostId();\n\n\t/**\n\t * Sets the post ID of this employee.\n\t *\n\t * @param postId the post ID of this employee\n\t */\n\tpublic void setPostId(long postId);\n\n\t/**\n\t * Returns the sex of this employee.\n\t *\n\t * @return the sex of this employee\n\t */\n\tpublic Boolean getSex();\n\n\t/**\n\t * Sets the sex of this employee.\n\t *\n\t * @param sex the sex of this employee\n\t */\n\tpublic void setSex(Boolean sex);\n\n}", "private void init() {\n FieldWrapper id = new FieldWrapper();\n id.fieldDescription = new HashMap<String, Object>();\n id.fieldDescription.put(\"fullName\", \"Id\");\n id.fieldDescription.put(\"type\", \"Text\");\n\n FieldWrapper name = new FieldWrapper();\n name.fieldDescription = new HashMap<String, Object>();\n name.fieldDescription.put(\"fullName\", \"Name\");\n\n FieldWrapper createdBy = new FieldWrapper();\n createdBy.fieldDescription = new HashMap<String, Object>();\n createdBy.fieldDescription.put(\"fullName\", \"CreatedBy\");\n createdBy.fieldDescription.put(\"type\", \"Lookup\");\n\n FieldWrapper lastModifiedBy = new FieldWrapper();\n lastModifiedBy.fieldDescription = new HashMap<String, Object>();\n lastModifiedBy.fieldDescription.put(\"fullName\", \"LastModifiedBy\");\n lastModifiedBy.fieldDescription.put(\"type\", \"Lookup\");\n\n FieldWrapper owner = new FieldWrapper();\n owner.fieldDescription = new HashMap<String, Object>();\n owner.fieldDescription.put(\"fullName\", \"Owner\");\n owner.fieldDescription.put(\"type\", \"Lookup\");\n\n fieldDescribe = new HashMap<String, FieldWrapper>();\n\n fieldDescribe.put((String) id.fieldDescription.get(\"fullName\"), id);\n fieldDescribe.put((String) name.fieldDescription.get(\"fullName\"), name);\n fieldDescribe.put((String) createdBy.fieldDescription.get(\"fullName\"), createdBy);\n fieldDescribe.put((String) lastModifiedBy.fieldDescription.get(\"fullName\"), lastModifiedBy);\n fieldDescribe.put((String) owner.fieldDescription.get(\"fullName\"), owner);\n }", "@Component\npublic interface AdFieldRepository extends CrudRepository<AdField, Integer> {\n\n AdField findById(int id);\n\n}", "@Mapper(componentModel = \"spring\", uses = {})\npublic interface ProgrammePropMapper extends EntityMapper<ProgrammePropDTO, ProgrammeProp> {\n\n\n\n default ProgrammeProp fromId(Long id) {\n if (id == null) {\n return null;\n }\n ProgrammeProp programmeProp = new ProgrammeProp();\n programmeProp.setId(id);\n return programmeProp;\n }\n}", "public interface RegistryFieldSearchRepository extends ElasticsearchRepository<RegistryField, Long> {\n}", "@Override\n\tpublic void entityAdded(Entity entity)\n\t{\n\t\t\n\t}", "private void setNewField(String fieldName) {\n setNewField(fieldName, DBCreator.STRING_TYPE, null);\n }", "Ack editProperty(ProjectEntity entity, String propertyTypeName, JsonNode data);", "@Test\n\tpublic void testFieldCRUDConfig() {\n\t\tfinal IntrospectionResult introspection = getIntrospection();\n\t\tfinal String entityInputTypeName = Entity6.class.getSimpleName() + schemaConfig.getInputTypeNameSuffix();\n\t\tfinal IntrospectionFullType entityInputType = getFullType(introspection, entityInputTypeName);\n\t\tfinal String entity6TypeName = Entity6.class.getSimpleName();\n\t\tfinal IntrospectionFullType entityType = getFullType(introspection, entity6TypeName);\n\t\t// Check field attr1 is not readable\n\t\tfinal Optional<IntrospectionTypeField> attr1Field = getOptionalField(entityType, \"attr1\");\n\t\tAssert.assertFalse(\n\t\t\t\tMessage.format(\"There shouldn't be a readable field [{}] in [{}].\", \"typeField\", entity6TypeName),\n\t\t\t\tattr1Field.isPresent());\n\t\t// Check field attr2 is not saveable\n\t\tfinal Optional<IntrospectionInputValue> attr2InputField = getOptionalInputField(entityInputType, \"attr2\");\n\t\tAssert.assertFalse(\n\t\t\t\tMessage.format(\"There shouldn't be a not saveable field [{}] in [{}].\", \"attr2\", entityInputTypeName),\n\t\t\t\tattr2InputField.isPresent());\n\t\t// Check field attr3 is not nullable\n\t\tassertInputField(entityInputType, \"attr3\", IntrospectionTypeKindEnum.SCALAR, Scalars.GraphQLString.getName());\n\t\t// Check field attr4 is not nullableForCreate\n\t\tassertInputField(entityInputType, \"attr4\", IntrospectionTypeKindEnum.SCALAR, Scalars.GraphQLString.getName());\n\t\t// Check field attr5 is not nullableForUpdate\n\t\tassertInputField(entityInputType, \"attr5\", IntrospectionTypeKindEnum.SCALAR, Scalars.GraphQLString.getName());\n\t\t// Check field attr6 is not filterable\n\t\tfinal String entityFilterTypeName = Entity6.class.getSimpleName()\n\t\t\t\t+ schemaConfig.getQueryGetListFilterEntityTypeNameSuffix();\n\t\tfinal IntrospectionFullType entityFilterInputType = getFullType(introspection, entityFilterTypeName);\n\t\tfinal Optional<IntrospectionInputValue> attr4IinputField = getOptionalInputField(entityFilterInputType,\n\t\t\t\t\"attr6\");\n\t\tAssert.assertFalse(\n\t\t\t\tMessage.format(\"There shouldn't be a filterable field [{}] in [{}].\", \"attr6\", entityFilterTypeName),\n\t\t\t\tattr4IinputField.isPresent());\n\t\t// Check field attr7 is mandatory\n\t\t// Check field attr8 is mandatory for update\n\t\t// Check field attr9 is mandatory for create\n\n\t\t// Check field attr10 is not readable for ROLE1\n\t\t// Check field attr10 is not readable for ROLE1\n\n\t\t// Check field attr11 is not saveable for ROLE1\n\n\t\t// Check field attr12 is not nullable for ROLE1\n\n\t\t// Check field attr13 is not nullable for update for ROLE1\n\n\t\t// Check field attr14 is not nullable for create for ROLE1\n\n\t\t// Check field attr15 is mandatory for ROLE1\n\n\t\t// Check field attr16 is mandatory for update for ROLE1\n\n\t\t// Check field attr17 is mandatory for create for ROLE1\n\n\t\t// Check field attr18 is not readable for ROLE1 and ROLE2\n\n\t\t// Check field attr19 is not readable for ROLE1 and ROLE2\n\n\t\t// Check field attr20 is not readable for ROLE1 and not saveable ROLE2\n\n\t\t// Check field attr21 is not readable and not nullable for ROLE1 and\n\t\t// ROLE2\n\n\t\t// Check field attr21 is readable and nullable for other roles than ROLE\n\t\t// 1 and ROLE2\n\n\t\t// Check field attr22 is readable for ROLE1\n\n\t\t// Check field attr22 is not readable for everybody except ROLE1\n\t}", "public AttributeField(Field field){\n this.field = field;\n }", "public void createFieldEditors()\n\t{\n\t}", "public EsIndexPropertyBuilder addField(String fieldName, AllowableFieldEntry field) {\n this.fieldMap.put(fieldName, field);\n return this;\n }", "@Test(enabled = false) //ExSkip\n public void insertMergeField(final DocumentBuilder builder, final String fieldName, final String textBefore, final String textAfter) throws Exception {\n FieldMergeField field = (FieldMergeField) builder.insertField(FieldType.FIELD_MERGE_FIELD, true);\n field.setFieldName(fieldName);\n field.setTextBefore(textBefore);\n field.setTextAfter(textAfter);\n }", "@Override\n\tpublic void addTmly(Tmly tmly) {\n\t\tString sql = \"insert into tmly(id_,title,content) values(?,?,?)\";\n\t\tthis.jdbcTemplate\n\t\t\t\t.update(sql,\n\t\t\t\t\t\tnew Object[] { tmly.getId(), tmly.getTitle(),\n\t\t\t\t\t\t\t\ttmly.getContent() });\n\t}", "protected synchronized void addFieldEntity(int fld_i, String entity) {\r\n // System.err.println(\"addFieldEntity(\" + fld_i + \",\\\"\" + entity + \"\\\")\");\r\n //\r\n // fld_i is used to indicate if this is a second iteration of addFieldEntity() to prevent\r\n // infinite recursion... not sure if it's correct... for example, what happens when\r\n // a post-processor transform converts a domain to an ip address - shouldn't that IP\r\n // address then be further decomposed?\r\n //\r\n if (fld_i != -1 && entity.equals(BundlesDT.NOTSET)) {\r\n ent_2_i.put(BundlesDT.NOTSET, -1); \r\n fld_dts.get(fld_i).add(BundlesDT.DT.NOTSET);\r\n\r\n //\r\n // Decompose a tag into it's basic elements\r\n //\r\n } else if (fld_i != -1 && fieldHeader(fld_i).equals(BundlesDT.TAGS)) {\r\n addFieldEntity(-1,entity); // Add the tag itself\r\n Iterator<String> it = Utils.tokenizeTags(entity).iterator();\r\n while (it.hasNext()) {\r\n String tag = it.next(); addFieldEntity(-1, tag);\r\n\tif (Utils.tagIsHierarchical(tag)) {\r\n String sep[] = Utils.tagDecomposeHierarchical(tag);\r\n\t for (int i=0;i<sep.length;i++) addFieldEntity(-1, sep[i]);\r\n\t} else if (Utils.tagIsTypeValue(tag)) {\r\n String sep[] = Utils.separateTypeValueTag(tag);\r\n\t tag_types.add(sep[0]);\r\n\t addFieldEntity(-1,sep[1]);\r\n\t}\r\n }\r\n\r\n //\r\n // Otherwise, keep track of the datatype to field correlation and run post\r\n // processors on the item to have those lookups handy.\r\n //\r\n } else {\r\n // System.err.println(\"determining datatype for \\\"\" + entity + \"\\\"\"); // DEBUG\r\n BundlesDT.DT datatype = BundlesDT.getEntityDataType(entity); if (dt_count_lu.containsKey(datatype) == false) dt_count_lu.put(datatype,0);\r\n // System.err.println(\"datatype for \\\"\" + entity + \"\\\" ==> \" + datatype); // DEBUG\r\n if (datatype != null) {\r\n// System.err.println(\"390:fld_i = \" + fld_i + \" (\" + fld_dts.containsKey(fld_i) + \")\"); // abc DEBUG\r\n// try { System.err.println(\" \" + fieldHeader(fld_i)); } catch (Throwable t) { } // abc DEBUG\r\n if (fld_i != -1) fld_dts.get(fld_i).add(datatype);\r\n if (ent_2_i.containsKey(entity) == false) {\r\n\t // Use special rules to set integer correspondance\r\n\t switch (datatype) {\r\n\t case IPv4: ent_2_i.put(entity, Utils.ipAddrToInt(entity)); break;\r\n\t case IPv4CIDR: ent_2_i.put(entity, Utils.ipAddrToInt((new StringTokenizer(entity, \"/\")).nextToken())); break;\r\n\t case INTEGER: ent_2_i.put(entity, Integer.parseInt(entity)); \r\n\t if (warn_on_float_conflict) checkForFloatConflict(fld_i);\r\n\t break;\r\n case FLOAT: ent_2_i.put(entity, Float.floatToIntBits(Float.parseFloat(entity))); \r\n\t if (warn_on_float_conflict) checkForFloatConflict(fld_i);\r\n break;\r\n\t case DOMAIN: ent_2_i.put(entity, Utils.ipAddrToInt(\"127.0.0.2\") + dt_count_lu.get(datatype)); // Put Domains In Unused IPv4 Space\r\n\t dt_count_lu.put(datatype, dt_count_lu.get(datatype) + 1);\r\n\t\t\t break;\r\n\r\n\t // Pray that these don't collide - otherwise x/y scatters will be off...\r\n\t default: ent_2_i.put(entity, dt_count_lu.get(datatype));\r\n\t dt_count_lu.put(datatype, dt_count_lu.get(datatype) + 1);\r\n\t\t\t break;\r\n }\r\n\t}\r\n\t// Map out the derivatives so that they will have values int the lookups\r\n\t// - Create the post processors\r\n\tif (post_processors == null) {\r\n\t String post_proc_strs[] = BundlesDT.listEnabledPostProcessors();\r\n\t post_processors = new PostProc[post_proc_strs.length];\r\n\t for (int i=0;i<post_processors.length;i++) post_processors[i] = BundlesDT.createPostProcessor(post_proc_strs[i], this);\r\n\t}\r\n\t// - Run all of the post procs against their correct types\r\n if (fld_i != -1) for (int i=0;i<post_processors.length;i++) {\r\n if (post_processors[i].type() == datatype) {\r\n\t String strs[] = post_processors[i].postProcess(entity);\r\n\t for (int j=0;j<strs.length;j++) {\r\n if (entity.equals(strs[j]) == false) addFieldEntity(-1, strs[j]);\r\n\t }\r\n }\r\n\t}\r\n } else if (ent_2_i.containsKey(entity) == false) {\r\n ent_2_i.put(entity, not_assoc.size());\r\n\tnot_assoc.add(entity);\r\n }\r\n }\r\n }", "public static CommonTableField createUpdatedEntity() {\n CommonTableField commonTableField = new CommonTableField()\n .title(UPDATED_TITLE)\n .entityFieldName(UPDATED_ENTITY_FIELD_NAME)\n .type(UPDATED_TYPE)\n .tableColumnName(UPDATED_TABLE_COLUMN_NAME)\n .columnWidth(UPDATED_COLUMN_WIDTH)\n .order(UPDATED_ORDER)\n .editInList(UPDATED_EDIT_IN_LIST)\n .hideInList(UPDATED_HIDE_IN_LIST)\n .hideInForm(UPDATED_HIDE_IN_FORM)\n .enableFilter(UPDATED_ENABLE_FILTER)\n .validateRules(UPDATED_VALIDATE_RULES)\n .showInFilterTree(UPDATED_SHOW_IN_FILTER_TREE)\n .fixed(UPDATED_FIXED)\n .sortable(UPDATED_SORTABLE)\n .treeIndicator(UPDATED_TREE_INDICATOR)\n .clientReadOnly(UPDATED_CLIENT_READ_ONLY)\n .fieldValues(UPDATED_FIELD_VALUES)\n .notNull(UPDATED_NOT_NULL)\n .system(UPDATED_SYSTEM)\n .help(UPDATED_HELP)\n .fontColor(UPDATED_FONT_COLOR)\n .backgroundColor(UPDATED_BACKGROUND_COLOR)\n .nullHideInForm(UPDATED_NULL_HIDE_IN_FORM)\n .endUsed(UPDATED_END_USED)\n .options(UPDATED_OPTIONS);\n return commonTableField;\n }", "@Test\n @Transactional\n void createCommonTableFieldWithExistingId() throws Exception {\n commonTableField.setId(1L);\n CommonTableFieldDTO commonTableFieldDTO = commonTableFieldMapper.toDto(commonTableField);\n\n int databaseSizeBeforeCreate = commonTableFieldRepository.findAll().size();\n\n // An entity with an existing ID cannot be created, so this API call must fail\n restCommonTableFieldMockMvc\n .perform(\n post(ENTITY_API_URL).contentType(MediaType.APPLICATION_JSON).content(TestUtil.convertObjectToJsonBytes(commonTableFieldDTO))\n )\n .andExpect(status().isBadRequest());\n\n // Validate the CommonTableField in the database\n List<CommonTableField> commonTableFieldList = commonTableFieldRepository.findAll();\n assertThat(commonTableFieldList).hasSize(databaseSizeBeforeCreate);\n }", "public void add() {\n preAdd();\n EntitySelect<T> entitySelect = getEntitySelect();\n entitySelect.setMultiSelect(true);\n getEntitySelect().open();\n }", "@ModelAttribute(\"student\")\n public Student_gra_84 setupAddForm() {\n return new Student_gra_84();\n }", "private JSONObject addMetadataField(String field, String value, JSONObject metadataFields) throws JSONException{\n\t\tif (value != null && value != \"\"){\n\t\t\tmetadataFields.put(field, value);\n\t\t} return metadataFields;\n\t}", "public void buildMetaFields() {\n for (AtreusMetaEntity metaEntity : environment.getMetaManager().getEntities()) {\n Class<?> entityType = metaEntity.getEntityType();\n\n // Build the fields\n for (Field field : entityType.getDeclaredFields()) {\n\n // Execute the meta property builder rule bindValue\n for (BaseEntityMetaComponentBuilder propertyBuilder : fieldPropertyBuilders) {\n if (!propertyBuilder.acceptsField((MetaEntityImpl) metaEntity, field)) {\n continue;\n }\n propertyBuilder.validateField((MetaEntityImpl) metaEntity, field);\n if (propertyBuilder.handleField((MetaEntityImpl) metaEntity, field)) {\n break;\n }\n }\n\n }\n }\n }", "@Data\npublic class <XXX>ModelInfo extends AbstractModelInfo {\n private <Field1DataType> <Field1>;\n /**\n * @return an corresponding {@link <XXX>Transformer} for this model info\n */\n @Override\n public Transformer getTransformer() {\n return new <XXX>Transformer(this);\n }", "public <T>void addFieldValue(Field<T> field, T value)\n\t{\n\t\t this.addKeyValue(field.getAPIName(), value);\n\n\t}", "@Override\r\n protected void addAdditionalFormFields(AssayDomainIdForm domainIdForm, DataRegion rgn)\r\n {\n rgn.addHiddenFormField(\"providerName\", domainIdForm.getProviderName());\r\n }", "public static void insertField(Field field) {\n\t\t\n\t\ttry{\n Connection connection = getConnection();\n\n\n try {\n PreparedStatement statement = connection.prepareStatement(\"INSERT INTO template_fields (field_id, form_name, field_name, field_value, field_type, field_mandatory)\"\n \t\t\t\t\t\t\t\t\t\t\t\t\t\t+ \" VALUES ('\"+field.getTheId()+\"', '\"+field.getTheFormName()+\"', '\"+field.getTheName()+\"', 'Here is text 424', '\"+field.getTheType()+\"', '\"+field.getTheMandatory()+\"')\"); \n statement.executeUpdate();\n\n statement.close();\n connection.close();\n } catch (SQLException ex) {\n \t//23 stands for duplicate / unique entries in db, so listen for that error and update db if so\n \tif (ex.getSQLState().startsWith(\"23\")) {\n System.out.println(\"Duplicate\");\n PreparedStatement statement = connection.prepareStatement(\"UPDATE template_fields SET \"\n \t\t+ \"field_id = '\"+field.getTheId()+\"', field_name = '\"+field.getTheName()+\"',\"\n \t\t+ \" field_value = 'here text', field_type = '\"+field.getTheType()+\"'\"\n \t\t\t\t+ \"WHERE field_id = '\"+field.getTheId()+\"' \"); \n\t\t\t\t\tstatement.executeUpdate();\n\t\t\t\t\t\n\t\t\t\t\tstatement.close();\n\t\t\t\t\tconnection.close();\n \t}\n }\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n\t}", "@Mapper(componentModel = \"spring\", uses = {})\npublic interface EmploymentTypeMapper extends EntityMapper<EmploymentTypeDTO, EmploymentType> {\n\n\n @Mapping(target = \"people\", ignore = true)\n EmploymentType toEntity(EmploymentTypeDTO employmentTypeDTO);\n\n default EmploymentType fromId(Long id) {\n if (id == null) {\n return null;\n }\n EmploymentType employmentType = new EmploymentType();\n employmentType.setId(id);\n return employmentType;\n }\n}", "@PostConstruct\n protected void initNewEntity() {\n setNewEntity(getService().create());\n }", "public BaseField setupField(int iFieldSeq)\n {\n BaseField field = null;\n if (iFieldSeq == 0)\n field = new HotelField(this, PRODUCT_ID, Constants.DEFAULT_FIELD_LENGTH, null, null);\n //if (iFieldSeq == 1)\n // field = new DateField(this, START_DATE, Constants.DEFAULT_FIELD_LENGTH, null, null);\n //if (iFieldSeq == 2)\n // field = new DateField(this, END_DATE, Constants.DEFAULT_FIELD_LENGTH, null, null);\n //if (iFieldSeq == 3)\n // field = new StringField(this, DESCRIPTION, 10, null, null);\n //if (iFieldSeq == 4)\n // field = new CityField(this, CITY_ID, Constants.DEFAULT_FIELD_LENGTH, null, null);\n //if (iFieldSeq == 5)\n // field = new CityField(this, TO_CITY_ID, Constants.DEFAULT_FIELD_LENGTH, null, null);\n //if (iFieldSeq == 6)\n // field = new ContinentField(this, CONTINENT_ID, Constants.DEFAULT_FIELD_LENGTH, null, null);\n //if (iFieldSeq == 7)\n // field = new RegionField(this, REGION_ID, Constants.DEFAULT_FIELD_LENGTH, null, null);\n //if (iFieldSeq == 8)\n // field = new CountryField(this, COUNTRY_ID, Constants.DEFAULT_FIELD_LENGTH, null, null);\n //if (iFieldSeq == 9)\n // field = new StateField(this, STATE_ID, Constants.DEFAULT_FIELD_LENGTH, null, null);\n //if (iFieldSeq == 10)\n // field = new VendorField(this, VENDOR_ID, Constants.DEFAULT_FIELD_LENGTH, null, null);\n if (iFieldSeq == 11)\n field = new HotelRateField(this, RATE_ID, Constants.DEFAULT_FIELD_LENGTH, null, null);\n if (iFieldSeq == 12)\n field = new HotelClassField(this, CLASS_ID, Constants.DEFAULT_FIELD_LENGTH, null, null);\n //if (iFieldSeq == 13)\n // field = new DateField(this, DETAIL_DATE, Constants.DEFAULT_FIELD_LENGTH, null, null);\n //if (iFieldSeq == 14)\n // field = new ShortField(this, PAX, Constants.DEFAULT_FIELD_LENGTH, null, new Short((short)2));\n //if (iFieldSeq == 15)\n // field = new HotelScreenRecord_LastChanged(this, LAST_CHANGED, Constants.DEFAULT_FIELD_LENGTH, null, null);\n //if (iFieldSeq == 16)\n // field = new BooleanField(this, REMOTE_QUERY_ENABLED, Constants.DEFAULT_FIELD_LENGTH, null, null);\n //if (iFieldSeq == 17)\n // field = new ShortField(this, BLOCKED, Constants.DEFAULT_FIELD_LENGTH, null, null);\n //if (iFieldSeq == 18)\n // field = new ShortField(this, OVERSELL, Constants.DEFAULT_FIELD_LENGTH, null, null);\n //if (iFieldSeq == 19)\n // field = new BooleanField(this, CLOSED, Constants.DEFAULT_FIELD_LENGTH, null, null);\n //if (iFieldSeq == 20)\n // field = new BooleanField(this, DELETE, Constants.DEFAULT_FIELD_LENGTH, null, null);\n //if (iFieldSeq == 21)\n // field = new BooleanField(this, READ_ONLY, Constants.DEFAULT_FIELD_LENGTH, null, null);\n //if (iFieldSeq == 22)\n // field = new ProductSearchTypeField(this, PRODUCT_SEARCH_TYPE_ID, Constants.DEFAULT_FIELD_LENGTH, null, null);\n //if (iFieldSeq == 23)\n // field = new ProductTypeField(this, PRODUCT_TYPE_ID, Constants.DEFAULT_FIELD_LENGTH, null, null);\n if (iFieldSeq == 24)\n field = new PaxCategorySelect(this, PAX_CATEGORY_ID, Constants.DEFAULT_FIELD_LENGTH, null, null);\n if (field == null)\n field = super.setupField(iFieldSeq);\n return field;\n }", "@Override\n\tpublic int addBookshelfinfo(BookshelfinfoEntity bookshelfinfoEntity) {\n\t\treturn this.sqlSessionTemplate.insert(\"bookshelfinfo.add\", bookshelfinfoEntity);\n\t}", "public interface CommonEntityMethod extends ToJson,GetFieldValue,SetFieldValue{\n}", "Builder addMainEntityOfPage(CreativeWork.Builder value);", "public JsonField() {\n }", "@Mapper(componentModel = \"spring\", uses = {})\npublic interface OrganisationTypeMapper extends EntityMapper<OrganisationTypeDTO, OrganisationType> {\n\n\n @Mapping(target = \"organisations\", ignore = true)\n OrganisationType toEntity(OrganisationTypeDTO organisationTypeDTO);\n\n default OrganisationType fromId(Long id) {\n if (id == null) {\n return null;\n }\n OrganisationType organisationType = new OrganisationType();\n organisationType.setId(id);\n return organisationType;\n }\n}", "protected abstract void createFieldEditors();", "@Repository\npublic interface SignInSendMessageDao {\n\n /**\n * 存入消息推送信息\n * @param message\n */\n @Insert({\n \"INSERT INTO sign_in_send_message(code,sponsor_id) values(#{message.code},#{message.sponsor_id})\",\n })\n void saveSendMessage(@Param(\"message\")SignInSendMessage message);\n\n}", "EntityBeanDescriptor createEntityBeanDescriptor();", "public ChangeFieldEf( EAdField<?> field,\r\n\t\t\tEAdOperation operation) {\r\n\t\tsuper();\r\n\t\tsetId(\"changeField\");\r\n\t\tthis.fields = new EAdListImpl<EAdField<?>>(EAdField.class);\r\n\t\tif (field != null)\r\n\t\t\tfields.add(field);\r\n\t\tthis.operation = operation;\r\n\t}", "private void addField(JField jfield) {\n\n // Check for storage ID conflict; note we can get this legitimately when a field is declared only\n // in supertypes, where two of the supertypes are mutually unassignable from each other. In that\n // case, verify that the generated field is the same.\n JField other = this.jfields.get(jfield.storageId);\n if (other != null) {\n\n // If the descriptions differ, no need to give any more details\n if (!other.toString().equals(jfield.toString())) {\n throw new IllegalArgumentException(\"illegal duplicate use of storage ID \"\n + jfield.storageId + \" for both \" + other + \" and \" + jfield);\n }\n\n // Check whether the fields are exactly the same; if not, there is a conflict\n if (!other.isSameAs(jfield)) {\n throw new IllegalArgumentException(\"two or more methods defining \" + jfield + \" conflict: \"\n + other.getter + \" and \" + jfield.getter);\n }\n\n // OK - they are the same thing\n return;\n }\n this.jfields.put(jfield.storageId, jfield);\n\n // Check for name conflict\n if ((other = this.jfieldsByName.get(jfield.name)) != null)\n throw new IllegalArgumentException(\"illegal duplicate use of field name `\" + jfield.name + \"' in \" + this);\n this.jfieldsByName.put(jfield.name, jfield);\n jfield.parent = this;\n\n // Logging\n if (this.log.isTraceEnabled())\n this.log.trace(\"added {} to object type `{}'\", jfield, this.name);\n }", "@Generated(\"Speedment\")\npublic interface Employee extends Entity<Employee> {\n \n /**\n * This Field corresponds to the {@link Employee} field that can be obtained\n * using the {@link Employee#getId()} method.\n */\n public final static ComparableField<Employee, Short> ID = new ComparableFieldImpl<>(\"id\", Employee::getId, Employee::setId);\n /**\n * This Field corresponds to the {@link Employee} field that can be obtained\n * using the {@link Employee#getFirstname()} method.\n */\n public final static StringField<Employee> FIRSTNAME = new StringFieldImpl<>(\"firstname\", o -> o.getFirstname().orElse(null), Employee::setFirstname);\n /**\n * This Field corresponds to the {@link Employee} field that can be obtained\n * using the {@link Employee#getLastname()} method.\n */\n public final static StringField<Employee> LASTNAME = new StringFieldImpl<>(\"lastname\", o -> o.getLastname().orElse(null), Employee::setLastname);\n /**\n * This Field corresponds to the {@link Employee} field that can be obtained\n * using the {@link Employee#getBirthdate()} method.\n */\n public final static ComparableField<Employee, Date> BIRTHDATE = new ComparableFieldImpl<>(\"birthdate\", o -> o.getBirthdate().orElse(null), Employee::setBirthdate);\n \n /**\n * Returns the id of this Employee. The id field corresponds to the database\n * column db0.sql696688.employee.id.\n * \n * @return the id of this Employee\n */\n Short getId();\n \n /**\n * Returns the firstname of this Employee. The firstname field corresponds to\n * the database column db0.sql696688.employee.firstname.\n * \n * @return the firstname of this Employee\n */\n Optional<String> getFirstname();\n \n /**\n * Returns the lastname of this Employee. The lastname field corresponds to\n * the database column db0.sql696688.employee.lastname.\n * \n * @return the lastname of this Employee\n */\n Optional<String> getLastname();\n \n /**\n * Returns the birthdate of this Employee. The birthdate field corresponds to\n * the database column db0.sql696688.employee.birthdate.\n * \n * @return the birthdate of this Employee\n */\n Optional<Date> getBirthdate();\n \n /**\n * Sets the id of this Employee. The id field corresponds to the database\n * column db0.sql696688.employee.id.\n * \n * @param id to set of this Employee\n * @return this Employee instance\n */\n Employee setId(Short id);\n \n /**\n * Sets the firstname of this Employee. The firstname field corresponds to\n * the database column db0.sql696688.employee.firstname.\n * \n * @param firstname to set of this Employee\n * @return this Employee instance\n */\n Employee setFirstname(String firstname);\n \n /**\n * Sets the lastname of this Employee. The lastname field corresponds to the\n * database column db0.sql696688.employee.lastname.\n * \n * @param lastname to set of this Employee\n * @return this Employee instance\n */\n Employee setLastname(String lastname);\n \n /**\n * Sets the birthdate of this Employee. The birthdate field corresponds to\n * the database column db0.sql696688.employee.birthdate.\n * \n * @param birthdate to set of this Employee\n * @return this Employee instance\n */\n Employee setBirthdate(Date birthdate);\n \n /**\n * Creates and returns a {@link Stream} of all {@link Borrowed} Entities that\n * references this Entity by the foreign key field that can be obtained using\n * {@link Borrowed#getEmployeeid()}. The order of the Entities are undefined\n * and may change from time to time.\n * <p>\n * Using this method, you may \"walk the graph\" and jump directly between\n * referencing Entities without using {@code JOIN}s.<p> N.B. The current\n * implementation supports lazy-loading of the referencing Entities.\n * \n * @return a {@link Stream} of all {@link Borrowed} Entities that references\n * this Entity by the foreign key field that can be obtained using {@link\n * Borrowed#getEmployeeid()}\n */\n Stream<Borrowed> findBorrowedsByEmployeeid();\n \n /**\n * Creates and returns a <em>distinct</em> {@link Stream} of all {@link\n * Borrowed} Entities that references this Entity by a foreign key. The order\n * of the Entities are undefined and may change from time to time.\n * <p>\n * Note that the Stream is <em>distinct</em>, meaning that referencing\n * Entities will only appear once in the Stream, even though they may\n * reference this Entity by several columns.\n * <p>\n * Using this method, you may \"walk the graph\" and jump directly between\n * referencing Entities without using {@code JOIN}s.<p> N.B. The current\n * implementation supports lazy-loading of the referencing Entities.\n * \n * @return a <em>distinct</em> {@link Stream} of all {@link Borrowed}\n * Entities that references this Entity by a foreign key\n */\n Stream<Borrowed> findBorroweds();\n}", "@Mapper(componentModel = \"spring\", uses = {})\npublic interface TemplateFormulaireMapper extends EntityMapper<TemplateFormulaireDTO, TemplateFormulaire> {\n\n\n @Mapping(target = \"questions\", ignore = true)\n TemplateFormulaire toEntity(TemplateFormulaireDTO templateFormulaireDTO);\n\n default TemplateFormulaire fromId(Long id) {\n if (id == null) {\n return null;\n }\n TemplateFormulaire templateFormulaire = new TemplateFormulaire();\n templateFormulaire.setId(id);\n return templateFormulaire;\n }\n}", "@Override\n protected void createEntity() {\n ProjectStatus status = createProjectStatus(5);\n setEntity(status);\n }", "ObjectField createObjectField();", "@Repository\npublic interface UserMapper {\n /**\n * 添加用户\n * @param user\n * @return\n */\n Integer addUser(User user);\n}", "public void templateMetadataInsert(Long idTemplate,Long idFieldLib)\n\t{\t\n\t\tFieldsTemplateLibrary lib = new FieldsTemplateLibrary();\n\t\tlib.setId(idFieldLib);\n\t\t\t\t\n\t\tFieldsMappingMeta metadata = new FieldsMappingMeta();\n\t\tmetadata.setTemplateId(idTemplate);\n\t\tmetadata.setFieldsTemplateLibrary(lib);\n\t\t\n\t\tFieldsMappingMetaDAO metaDao = new FieldsMappingMetaDAO();\n\t\tmetaDao.saveNew(metadata);\n\t}", "public EntityPropertyBean() {}", "public interface UnitTypeProperties extends PropertyAccess<UnitTypeDTO> {\n @Editor.Path(\"id\")\n ModelKeyProvider<UnitTypeDTO> key();\n ValueProvider<UnitTypeDTO, String> id();\n ValueProvider<UnitTypeDTO, String> name();\n @Editor.Path(\"name\")\n LabelProvider<UnitTypeDTO> nameLabel();\n}", "public void addEmployee(Employee employee) {\n employeeRepository.save(employee);\n }", "public interface RoleMapper {\n\n @Insert(\"insert into role values (role,desc) values (#{model.role},#{model.desc})\")\n @Options(useGeneratedKeys = true,keyProperty = \"model.id\")\n int insertRole(@Param(\"model\") RoleModel model);\n\n\n /**\n * 获取所有角色信息\n * @return\n */\n @Select(\"select id,role,desc,data_added,last_modified from role\")\n List<RoleModel> getAllRoles();\n\n\n /**\n * 获取角色Id\n * @param role\n * @return\n */\n @Select(\"select id from role where role=#{role}\")\n int getRoleId(String role);\n}", "@Override\n protected final Map<String, String> createFieldToPropertyMapping() {\n // get super class mapping\n final Map<String, String> mapping = super.createFieldToPropertyMapping();\n \n mapping.put(this.tableName + \".rmres_id\", \"id\");\n mapping.put(this.tableName + \".cost_rmres\", \"cost\");\n mapping.put(this.tableName + \".config_id\", \"configId\");\n mapping.put(this.tableName + \".rm_arrange_type_id\", \"arrangeTypeId\");\n mapping.put(this.tableName + \".guests_external\", \"externalGuests\");\n mapping.put(this.tableName + \".guests_internal\", \"internalGuests\");\n \n return mapping;\n }", "@attribute(value = \"\", required = true)\t\r\n\tpublic void addCharField(CharField f) {\r\n\t\tfields.put(\"\" + fieldCount++, f);\r\n\t}", "public void addEntity(AnnexDetail entity) throws Exception {\n\t\t\n\t}", "@Mapper(componentModel = \"spring\", uses = {})\npublic interface ClientHeartbeatInfoMapper extends EntityMapper<ClientHeartbeatInfoDTO, ClientHeartbeatInfo> {\n\n\n\n default ClientHeartbeatInfo fromId(Long id) {\n if (id == null) {\n return null;\n }\n ClientHeartbeatInfo clientHeartbeatInfo = new ClientHeartbeatInfo();\n clientHeartbeatInfo.setId(id);\n return clientHeartbeatInfo;\n }\n}", "@PrePersist\r\n void createdAt() {\r\n setDateRecordAdded();\r\n setDateRecordUpdated();\r\n }", "public void addField(String fieldName, Object fieldValue, boolean forceAdd) {\n if (forceAdd\n || (this.beanMap.containsKey(fieldName)\n && this.beanMap.get(fieldName) == null && !this.deferredDescriptions\n .containsKey(fieldName))) {\n this.beanMap.put(fieldName, fieldValue);\n }\n }" ]
[ "0.6276061", "0.6148875", "0.5844675", "0.5741845", "0.5558612", "0.5473992", "0.546377", "0.5459497", "0.5440748", "0.5436863", "0.5422006", "0.539207", "0.539035", "0.5388527", "0.5387396", "0.53417933", "0.53314424", "0.5328257", "0.5311626", "0.53010166", "0.52939516", "0.5291078", "0.52842385", "0.5281211", "0.52556723", "0.5249646", "0.5249047", "0.52370346", "0.5236304", "0.52151906", "0.51896834", "0.518686", "0.5184879", "0.5183957", "0.51799476", "0.5178224", "0.5154359", "0.5153171", "0.51468056", "0.5145044", "0.51305836", "0.51291317", "0.5116433", "0.51103544", "0.51029074", "0.5097088", "0.50762784", "0.50737536", "0.5070481", "0.50673914", "0.5063312", "0.5057017", "0.5053969", "0.50515157", "0.50488853", "0.50463563", "0.50432354", "0.50400186", "0.5031978", "0.5025654", "0.5023346", "0.5017244", "0.5015682", "0.5011232", "0.50104", "0.50071764", "0.500233", "0.49879628", "0.49764356", "0.4972927", "0.49709457", "0.49652284", "0.49614608", "0.4954704", "0.49502987", "0.49423048", "0.49359906", "0.4935031", "0.49349874", "0.49324873", "0.49287605", "0.4927076", "0.4921599", "0.49196428", "0.491654", "0.4916283", "0.49120298", "0.49111733", "0.49109492", "0.49101797", "0.4908221", "0.48914534", "0.4889393", "0.48888776", "0.48835072", "0.488277", "0.488008", "0.4876453", "0.48703966", "0.48655835", "0.4862334" ]
0.0
-1
jhipsterneedleentityaddgetterssetters JHipster will add getters and setters here
@Override public boolean equals(Object o) { if (this == o) { return true; } if (!(o instanceof RisqueResiduel)) { return false; } return id != null && id.equals(((RisqueResiduel) o).id); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface CommonEntityMethod extends ToJson,GetFieldValue,SetFieldValue{\n}", "static void setPropertiesFromGetters(TableEntity entity, ClientLogger logger) {\n Class<?> myClass = entity.getClass();\n\n // Do nothing if the entity is actually a `TableEntity` rather than a subclass\n if (myClass == TableEntity.class) {\n return;\n }\n\n for (Method m : myClass.getMethods()) {\n // Skip any non-getter methods\n if (m.getName().length() < 3\n || TABLE_ENTITY_METHODS.contains(m.getName())\n || (!m.getName().startsWith(\"get\") && !m.getName().startsWith(\"is\"))\n || m.getParameterTypes().length != 0\n || void.class.equals(m.getReturnType())) {\n continue;\n }\n\n // A method starting with `is` is only a getter if it returns a boolean\n if (m.getName().startsWith(\"is\") && m.getReturnType() != Boolean.class\n && m.getReturnType() != boolean.class) {\n continue;\n }\n\n // Remove the `get` or `is` prefix to get the name of the property\n int prefixLength = m.getName().startsWith(\"is\") ? 2 : 3;\n String propName = m.getName().substring(prefixLength);\n\n try {\n // Invoke the getter and store the value in the properties map\n entity.getProperties().put(propName, m.invoke(entity));\n } catch (ReflectiveOperationException | IllegalArgumentException e) {\n logger.logThrowableAsWarning(new ReflectiveOperationException(String.format(\n \"Failed to get property '%s' on type '%s'\", propName, myClass.getName()), e));\n }\n }\n }", "public interface UnitTypeProperties extends PropertyAccess<UnitTypeDTO> {\n @Editor.Path(\"id\")\n ModelKeyProvider<UnitTypeDTO> key();\n ValueProvider<UnitTypeDTO, String> id();\n ValueProvider<UnitTypeDTO, String> name();\n @Editor.Path(\"name\")\n LabelProvider<UnitTypeDTO> nameLabel();\n}", "@ProviderType\npublic interface EmployeeModel extends BaseModel<Employee> {\n\n\t/*\n\t * NOTE FOR DEVELOPERS:\n\t *\n\t * Never modify or reference this interface directly. All methods that expect a employee model instance should use the {@link Employee} interface instead.\n\t */\n\n\t/**\n\t * Returns the primary key of this employee.\n\t *\n\t * @return the primary key of this employee\n\t */\n\tpublic long getPrimaryKey();\n\n\t/**\n\t * Sets the primary key of this employee.\n\t *\n\t * @param primaryKey the primary key of this employee\n\t */\n\tpublic void setPrimaryKey(long primaryKey);\n\n\t/**\n\t * Returns the uuid of this employee.\n\t *\n\t * @return the uuid of this employee\n\t */\n\t@AutoEscape\n\tpublic String getUuid();\n\n\t/**\n\t * Sets the uuid of this employee.\n\t *\n\t * @param uuid the uuid of this employee\n\t */\n\tpublic void setUuid(String uuid);\n\n\t/**\n\t * Returns the employee ID of this employee.\n\t *\n\t * @return the employee ID of this employee\n\t */\n\tpublic long getEmployeeId();\n\n\t/**\n\t * Sets the employee ID of this employee.\n\t *\n\t * @param employeeId the employee ID of this employee\n\t */\n\tpublic void setEmployeeId(long employeeId);\n\n\t/**\n\t * Returns the first name of this employee.\n\t *\n\t * @return the first name of this employee\n\t */\n\t@AutoEscape\n\tpublic String getFirstName();\n\n\t/**\n\t * Sets the first name of this employee.\n\t *\n\t * @param firstName the first name of this employee\n\t */\n\tpublic void setFirstName(String firstName);\n\n\t/**\n\t * Returns the last name of this employee.\n\t *\n\t * @return the last name of this employee\n\t */\n\t@AutoEscape\n\tpublic String getLastName();\n\n\t/**\n\t * Sets the last name of this employee.\n\t *\n\t * @param lastName the last name of this employee\n\t */\n\tpublic void setLastName(String lastName);\n\n\t/**\n\t * Returns the middle name of this employee.\n\t *\n\t * @return the middle name of this employee\n\t */\n\t@AutoEscape\n\tpublic String getMiddleName();\n\n\t/**\n\t * Sets the middle name of this employee.\n\t *\n\t * @param middleName the middle name of this employee\n\t */\n\tpublic void setMiddleName(String middleName);\n\n\t/**\n\t * Returns the birth date of this employee.\n\t *\n\t * @return the birth date of this employee\n\t */\n\tpublic Date getBirthDate();\n\n\t/**\n\t * Sets the birth date of this employee.\n\t *\n\t * @param birthDate the birth date of this employee\n\t */\n\tpublic void setBirthDate(Date birthDate);\n\n\t/**\n\t * Returns the post ID of this employee.\n\t *\n\t * @return the post ID of this employee\n\t */\n\tpublic long getPostId();\n\n\t/**\n\t * Sets the post ID of this employee.\n\t *\n\t * @param postId the post ID of this employee\n\t */\n\tpublic void setPostId(long postId);\n\n\t/**\n\t * Returns the sex of this employee.\n\t *\n\t * @return the sex of this employee\n\t */\n\tpublic Boolean getSex();\n\n\t/**\n\t * Sets the sex of this employee.\n\t *\n\t * @param sex the sex of this employee\n\t */\n\tpublic void setSex(Boolean sex);\n\n}", "public interface EmployeeMapper extends BaseMapper<Employee> {\n\n @Override\n @Select(\"select * from employee\")\n List<Employee> findAll();\n\n @Override\n int save(Employee employee);\n}", "public void toEntity(){\n\n }", "@Mapper(componentModel = \"spring\", uses = {})\npublic interface Record25HerfinancieeringMapper extends EntityMapper<Record25HerfinancieeringDTO, Record25Herfinancieering> {\n\n\n\n default Record25Herfinancieering fromId(Long id) {\n if (id == null) {\n return null;\n }\n Record25Herfinancieering record25Herfinancieering = new Record25Herfinancieering();\n record25Herfinancieering.setId(id);\n return record25Herfinancieering;\n }\n}", "public interface ResourceEntityMapperExt {\n\n List<ResourceEntity> getAllResource();\n\n Set<ResourceEntity> selectRoleResourcesByRoleId(@Param(\"roleId\") String roleId);\n\n void disable(@Param(\"resourceId\") String resourceId);\n\n void enable(@Param(\"resourceId\") String resourceId);\n\n List<Map> getParentMenusByUserId(@Param(\"userId\") String userId);\n\n List<Map> getChildrenMenusByUserId(@Param(\"userId\") String userId);\n\n List<Map> getAllParentMenus();\n\n List<Map> getAllChildrenMenus();\n\n List<Map> queryResourceList();\n\n void deleteByResourceId(@Param(\"resourceId\")String resourceId);\n\n List<String> resourcesByRoleId(@Param(\"roleId\") String roleId);\n\n List<Map> getAllChildrenMenusBySourceId(@Param(\"sourceId\")String sourceId);\n}", "@Mapper(componentModel = \"spring\")\npublic interface SaleMapper extends EntityMapper<SaleDto, Sale> {\n\n @Mapping(source = \"client.id\", target = \"clientId\")\n @Mapping(source = \"client.name\", target = \"clientName\")\n SaleDto toDto(Sale sale);\n\n @Mapping(source = \"clientId\", target = \"client.id\")\n Sale toEntity(SaleDto saleDTO);\n\n default Sale fromId(Long id) {\n if (id == null) {\n return null;\n }\n Sale sale = new Sale();\n sale.setId(id);\n return sale;\n }\n\n}", "public interface RepositoryJpaMetadataProvider extends\n ItdTriggerBasedMetadataProvider {\n}", "@Mapper(componentModel = \"spring\", uses = {})\npublic interface ProgrammePropMapper extends EntityMapper<ProgrammePropDTO, ProgrammeProp> {\n\n\n\n default ProgrammeProp fromId(Long id) {\n if (id == null) {\n return null;\n }\n ProgrammeProp programmeProp = new ProgrammeProp();\n programmeProp.setId(id);\n return programmeProp;\n }\n}", "@Mapper(componentModel = \"spring\", uses = {SabegheMapper.class, NoeSabegheMapper.class})\npublic interface AdamKhesaratMapper extends EntityMapper<AdamKhesaratDTO, AdamKhesarat> {\n\n @Mapping(source = \"sabeghe.id\", target = \"sabegheId\")\n @Mapping(source = \"sabeghe.name\", target = \"sabegheName\")\n @Mapping(source = \"noeSabeghe.id\", target = \"noeSabegheId\")\n @Mapping(source = \"noeSabeghe.name\", target = \"noeSabegheName\")\n AdamKhesaratDTO toDto(AdamKhesarat adamKhesarat);\n\n @Mapping(source = \"sabegheId\", target = \"sabeghe\")\n @Mapping(source = \"noeSabegheId\", target = \"noeSabeghe\")\n AdamKhesarat toEntity(AdamKhesaratDTO adamKhesaratDTO);\n\n default AdamKhesarat fromId(Long id) {\n if (id == null) {\n return null;\n }\n AdamKhesarat adamKhesarat = new AdamKhesarat();\n adamKhesarat.setId(id);\n return adamKhesarat;\n }\n}", "public interface IGQLDynamicAttributeGetterSetter<ENTITY_TYPE, GETTER_ATTRIBUTE_TYPE, SETTER_ATTRIBUTE_TYPE>\n\t\textends\n\t\t\tIGQLDynamicAttributeGetter<ENTITY_TYPE, GETTER_ATTRIBUTE_TYPE>,\n\t\t\tIGQLDynamicAttributeSetter<ENTITY_TYPE, SETTER_ATTRIBUTE_TYPE> {\n\n}", "@Mapper(uses ={DateComponent.class}, componentModel = \"spring\")\npublic interface CreateCodeMapper extends EntityMapper<CreateCodeDto , Code> {\n}", "@Mapper(componentModel = \"spring\", uses = {HopDongMapper.class})\npublic interface GhiNoMapper extends EntityMapper<GhiNoDTO, GhiNo> {\n\n @Mapping(source = \"hopDong.id\", target = \"hopDongId\")\n GhiNoDTO toDto(GhiNo ghiNo);\n\n @Mapping(source = \"hopDongId\", target = \"hopDong\")\n GhiNo toEntity(GhiNoDTO ghiNoDTO);\n\n default GhiNo fromId(Long id) {\n if (id == null) {\n return null;\n }\n GhiNo ghiNo = new GhiNo();\n ghiNo.setId(id);\n return ghiNo;\n }\n}", "public interface SaleRowDTOProperties {\n\n Vehicle.KapschVehicle getVehicle();\n\n void setVehicle(Vehicle.KapschVehicle vehicle);\n\n}", "public void setUWCompany(entity.UWCompany value);", "public interface CreateEntityView<E extends SerializableEntity> extends EntityView {\r\n\r\n\t/**\r\n\t * Make save handler enabled\r\n\t * \r\n\t * @param enabled\r\n\t */\r\n\tvoid setSaveHandlerEnabled(boolean enabled);\r\n\t\r\n}", "@SuppressWarnings(\"unused\")\n@Repository\n@JaversSpringDataAuditable\n\npublic interface SellContractCustomerRepository extends JpaRepository<SellContractCustomer, Long> {\n\n SellContractCustomer findByCustomer_Id(Long customerId);\n\n List<SellContractCustomer> findAllBySellContract_Id(Long sellContractId);\n\n}", "public interface PropertyDefEntity extends javax.ejb.EJBLocalObject {\n\n /**\n * Returns a PropertyDefDto data transfer object containing all parameters of\n * this property definition instance.\n *\n * @return PropertyDefDto the data transfer object containing all parameters of this instance\n * @see #setDto\n */\n public PropertyDefDto getDto();\n\n /**\n * Sets all data members of this property definition instance to the values\n * from the specified data transfer object.\n *\n * @param dto PropertyDefDto the data transfer object containing the new\n * parameters for this instance\n * @see #getDto\n */\n public void setDto(PropertyDefDto dto);\n\n}", "@Mapper(componentModel = \"spring\", uses = {})\npublic interface ClientHeartbeatInfoMapper extends EntityMapper<ClientHeartbeatInfoDTO, ClientHeartbeatInfo> {\n\n\n\n default ClientHeartbeatInfo fromId(Long id) {\n if (id == null) {\n return null;\n }\n ClientHeartbeatInfo clientHeartbeatInfo = new ClientHeartbeatInfo();\n clientHeartbeatInfo.setId(id);\n return clientHeartbeatInfo;\n }\n}", "@Mapper(componentModel = \"spring\", uses = {})\npublic interface EmploymentTypeMapper extends EntityMapper<EmploymentTypeDTO, EmploymentType> {\n\n\n @Mapping(target = \"people\", ignore = true)\n EmploymentType toEntity(EmploymentTypeDTO employmentTypeDTO);\n\n default EmploymentType fromId(Long id) {\n if (id == null) {\n return null;\n }\n EmploymentType employmentType = new EmploymentType();\n employmentType.setId(id);\n return employmentType;\n }\n}", "public interface RoleMapper {\n\n @Insert(\"insert into role values (role,desc) values (#{model.role},#{model.desc})\")\n @Options(useGeneratedKeys = true,keyProperty = \"model.id\")\n int insertRole(@Param(\"model\") RoleModel model);\n\n\n /**\n * 获取所有角色信息\n * @return\n */\n @Select(\"select id,role,desc,data_added,last_modified from role\")\n List<RoleModel> getAllRoles();\n\n\n /**\n * 获取角色Id\n * @param role\n * @return\n */\n @Select(\"select id from role where role=#{role}\")\n int getRoleId(String role);\n}", "private GetProperty(Builder builder) {\n super(builder);\n }", "public interface GradeMapper {\n @Select(\"select * from grade\")\n public List<Grade> getByGradeNm();\n\n @Insert(\"insert into grade(grade_nm,teacher_id) values(#{gradeNm},#{teacherId})\")\n @Options(useGeneratedKeys=true,keyColumn=\"id\",keyProperty=\"id\")//设置id自增长\n public void save(Grade grade);\n}", "@Mapper(componentModel = \"spring\", uses = {})\npublic interface MisteriosoMapper extends EntityMapper<MisteriosoDTO, Misterioso> {\n\n \n\n \n\n default Misterioso fromId(Long id) {\n if (id == null) {\n return null;\n }\n Misterioso misterioso = new Misterioso();\n misterioso.setId(id);\n return misterioso;\n }\n}", "void generateWriteProperty2ContentValues(Builder methodBuilder, String beanName, TypeName beanClass, ModelProperty property);", "@ProviderType\npublic interface LichChiTietModel\n\textends BaseModel<LichChiTiet>, GroupedModel, ShardedModel {\n\n\t/*\n\t * NOTE FOR DEVELOPERS:\n\t *\n\t * Never modify or reference this interface directly. All methods that expect a lich chi tiet model instance should use the {@link LichChiTiet} interface instead.\n\t */\n\n\t/**\n\t * Returns the primary key of this lich chi tiet.\n\t *\n\t * @return the primary key of this lich chi tiet\n\t */\n\tpublic long getPrimaryKey();\n\n\t/**\n\t * Sets the primary key of this lich chi tiet.\n\t *\n\t * @param primaryKey the primary key of this lich chi tiet\n\t */\n\tpublic void setPrimaryKey(long primaryKey);\n\n\t/**\n\t * Returns the lich chi tiet ID of this lich chi tiet.\n\t *\n\t * @return the lich chi tiet ID of this lich chi tiet\n\t */\n\tpublic long getLichChiTietId();\n\n\t/**\n\t * Sets the lich chi tiet ID of this lich chi tiet.\n\t *\n\t * @param lichChiTietId the lich chi tiet ID of this lich chi tiet\n\t */\n\tpublic void setLichChiTietId(long lichChiTietId);\n\n\t/**\n\t * Returns the group ID of this lich chi tiet.\n\t *\n\t * @return the group ID of this lich chi tiet\n\t */\n\t@Override\n\tpublic long getGroupId();\n\n\t/**\n\t * Sets the group ID of this lich chi tiet.\n\t *\n\t * @param groupId the group ID of this lich chi tiet\n\t */\n\t@Override\n\tpublic void setGroupId(long groupId);\n\n\t/**\n\t * Returns the language of this lich chi tiet.\n\t *\n\t * @return the language of this lich chi tiet\n\t */\n\t@AutoEscape\n\tpublic String getLanguage();\n\n\t/**\n\t * Sets the language of this lich chi tiet.\n\t *\n\t * @param language the language of this lich chi tiet\n\t */\n\tpublic void setLanguage(String language);\n\n\t/**\n\t * Returns the company ID of this lich chi tiet.\n\t *\n\t * @return the company ID of this lich chi tiet\n\t */\n\t@Override\n\tpublic long getCompanyId();\n\n\t/**\n\t * Sets the company ID of this lich chi tiet.\n\t *\n\t * @param companyId the company ID of this lich chi tiet\n\t */\n\t@Override\n\tpublic void setCompanyId(long companyId);\n\n\t/**\n\t * Returns the user ID of this lich chi tiet.\n\t *\n\t * @return the user ID of this lich chi tiet\n\t */\n\t@Override\n\tpublic long getUserId();\n\n\t/**\n\t * Sets the user ID of this lich chi tiet.\n\t *\n\t * @param userId the user ID of this lich chi tiet\n\t */\n\t@Override\n\tpublic void setUserId(long userId);\n\n\t/**\n\t * Returns the user uuid of this lich chi tiet.\n\t *\n\t * @return the user uuid of this lich chi tiet\n\t */\n\t@Override\n\tpublic String getUserUuid();\n\n\t/**\n\t * Sets the user uuid of this lich chi tiet.\n\t *\n\t * @param userUuid the user uuid of this lich chi tiet\n\t */\n\t@Override\n\tpublic void setUserUuid(String userUuid);\n\n\t/**\n\t * Returns the user name of this lich chi tiet.\n\t *\n\t * @return the user name of this lich chi tiet\n\t */\n\t@AutoEscape\n\t@Override\n\tpublic String getUserName();\n\n\t/**\n\t * Sets the user name of this lich chi tiet.\n\t *\n\t * @param userName the user name of this lich chi tiet\n\t */\n\t@Override\n\tpublic void setUserName(String userName);\n\n\t/**\n\t * Returns the create date of this lich chi tiet.\n\t *\n\t * @return the create date of this lich chi tiet\n\t */\n\t@Override\n\tpublic Date getCreateDate();\n\n\t/**\n\t * Sets the create date of this lich chi tiet.\n\t *\n\t * @param createDate the create date of this lich chi tiet\n\t */\n\t@Override\n\tpublic void setCreateDate(Date createDate);\n\n\t/**\n\t * Returns the created by user of this lich chi tiet.\n\t *\n\t * @return the created by user of this lich chi tiet\n\t */\n\tpublic long getCreatedByUser();\n\n\t/**\n\t * Sets the created by user of this lich chi tiet.\n\t *\n\t * @param createdByUser the created by user of this lich chi tiet\n\t */\n\tpublic void setCreatedByUser(long createdByUser);\n\n\t/**\n\t * Returns the modified date of this lich chi tiet.\n\t *\n\t * @return the modified date of this lich chi tiet\n\t */\n\t@Override\n\tpublic Date getModifiedDate();\n\n\t/**\n\t * Sets the modified date of this lich chi tiet.\n\t *\n\t * @param modifiedDate the modified date of this lich chi tiet\n\t */\n\t@Override\n\tpublic void setModifiedDate(Date modifiedDate);\n\n\t/**\n\t * Returns the modified by user of this lich chi tiet.\n\t *\n\t * @return the modified by user of this lich chi tiet\n\t */\n\tpublic long getModifiedByUser();\n\n\t/**\n\t * Sets the modified by user of this lich chi tiet.\n\t *\n\t * @param modifiedByUser the modified by user of this lich chi tiet\n\t */\n\tpublic void setModifiedByUser(long modifiedByUser);\n\n\t/**\n\t * Returns the gio bat dau of this lich chi tiet.\n\t *\n\t * @return the gio bat dau of this lich chi tiet\n\t */\n\tpublic Date getGioBatDau();\n\n\t/**\n\t * Sets the gio bat dau of this lich chi tiet.\n\t *\n\t * @param gioBatDau the gio bat dau of this lich chi tiet\n\t */\n\tpublic void setGioBatDau(Date gioBatDau);\n\n\t/**\n\t * Returns the mo ta of this lich chi tiet.\n\t *\n\t * @return the mo ta of this lich chi tiet\n\t */\n\t@AutoEscape\n\tpublic String getMoTa();\n\n\t/**\n\t * Sets the mo ta of this lich chi tiet.\n\t *\n\t * @param moTa the mo ta of this lich chi tiet\n\t */\n\tpublic void setMoTa(String moTa);\n\n\t/**\n\t * Returns the nguoi tham du of this lich chi tiet.\n\t *\n\t * @return the nguoi tham du of this lich chi tiet\n\t */\n\t@AutoEscape\n\tpublic String getNguoiThamDu();\n\n\t/**\n\t * Sets the nguoi tham du of this lich chi tiet.\n\t *\n\t * @param nguoiThamDu the nguoi tham du of this lich chi tiet\n\t */\n\tpublic void setNguoiThamDu(String nguoiThamDu);\n\n\t/**\n\t * Returns the nguoi chu tri of this lich chi tiet.\n\t *\n\t * @return the nguoi chu tri of this lich chi tiet\n\t */\n\t@AutoEscape\n\tpublic String getNguoiChuTri();\n\n\t/**\n\t * Sets the nguoi chu tri of this lich chi tiet.\n\t *\n\t * @param nguoiChuTri the nguoi chu tri of this lich chi tiet\n\t */\n\tpublic void setNguoiChuTri(String nguoiChuTri);\n\n\t/**\n\t * Returns the selected date of this lich chi tiet.\n\t *\n\t * @return the selected date of this lich chi tiet\n\t */\n\tpublic Date getSelectedDate();\n\n\t/**\n\t * Sets the selected date of this lich chi tiet.\n\t *\n\t * @param selectedDate the selected date of this lich chi tiet\n\t */\n\tpublic void setSelectedDate(Date selectedDate);\n\n\t/**\n\t * Returns the trangthai chi tiet of this lich chi tiet.\n\t *\n\t * @return the trangthai chi tiet of this lich chi tiet\n\t */\n\tpublic int getTrangthaiChiTiet();\n\n\t/**\n\t * Sets the trangthai chi tiet of this lich chi tiet.\n\t *\n\t * @param trangthaiChiTiet the trangthai chi tiet of this lich chi tiet\n\t */\n\tpublic void setTrangthaiChiTiet(int trangthaiChiTiet);\n\n\t/**\n\t * Returns the lich cong tac ID of this lich chi tiet.\n\t *\n\t * @return the lich cong tac ID of this lich chi tiet\n\t */\n\tpublic long getLichCongTacId();\n\n\t/**\n\t * Sets the lich cong tac ID of this lich chi tiet.\n\t *\n\t * @param lichCongTacId the lich cong tac ID of this lich chi tiet\n\t */\n\tpublic void setLichCongTacId(long lichCongTacId);\n\n\t/**\n\t * Returns the address of this lich chi tiet.\n\t *\n\t * @return the address of this lich chi tiet\n\t */\n\t@AutoEscape\n\tpublic String getAddress();\n\n\t/**\n\t * Sets the address of this lich chi tiet.\n\t *\n\t * @param address the address of this lich chi tiet\n\t */\n\tpublic void setAddress(String address);\n\n\t/**\n\t * Returns the note of this lich chi tiet.\n\t *\n\t * @return the note of this lich chi tiet\n\t */\n\t@AutoEscape\n\tpublic String getNote();\n\n\t/**\n\t * Sets the note of this lich chi tiet.\n\t *\n\t * @param note the note of this lich chi tiet\n\t */\n\tpublic void setNote(String note);\n\n\t/**\n\t * Returns the lydo tra ve of this lich chi tiet.\n\t *\n\t * @return the lydo tra ve of this lich chi tiet\n\t */\n\t@AutoEscape\n\tpublic String getLydoTraVe();\n\n\t/**\n\t * Sets the lydo tra ve of this lich chi tiet.\n\t *\n\t * @param lydoTraVe the lydo tra ve of this lich chi tiet\n\t */\n\tpublic void setLydoTraVe(String lydoTraVe);\n\n\t/**\n\t * Returns the organization ID of this lich chi tiet.\n\t *\n\t * @return the organization ID of this lich chi tiet\n\t */\n\tpublic long getOrganizationId();\n\n\t/**\n\t * Sets the organization ID of this lich chi tiet.\n\t *\n\t * @param organizationId the organization ID of this lich chi tiet\n\t */\n\tpublic void setOrganizationId(long organizationId);\n\n}", "@DSDerby\n@Repository\npublic interface HillMapper extends BaseMapper<Hill> {\n\n}", "@Mapper\n@Repository\npublic interface ClientDao {\n\n @Insert(value = \"insert into client_information(phone_number,user_name,password) values (#{phoneNumber},#{userName},#{password})\")\n void addClient(@Param(\"userName\") String userName, @Param(\"phoneNumber\") String phoneNumber , @Param(\"password\") String password);\n\n @Update(value = \"update client_information set sex=#{sex},user_name=#{user_name},email=#{email},\" +\n \"unit=#{unit},place=#{place} where phone_number=#{phone_number}\")\n void updateClient(@Param(\"phone_number\") String phone_number,@Param(\"user_name\") String user_name,@Param(\"sex\") String sex,@Param(\"email\") String email,@Param(\"unit\") String unit,@Param(\"place\") String place);\n\n @Select(value = \"select * from client_information where phone_number=#{phoneNumber}\")\n ClientVO selectClient(String phoneNumber);\n\n @Update(value = \"update client_information set password=#{password} where phone_number=#{phone_number}\")\n void updatePass(@Param(\"phone_number\") String phone_number,@Param(\"password\") String password);\n\n}", "@Mapper(componentModel = \"spring\", uses = {})\npublic interface GradeMapper extends EntityMapper<GradeDTO, Grade> {\n\n\n @Mapping(target = \"subjects\", ignore = true)\n @Mapping(target = \"contents\", ignore = true)\n Grade toEntity(GradeDTO gradeDTO);\n\n default Grade fromId(Long id) {\n if (id == null) {\n return null;\n }\n Grade grade = new Grade();\n grade.setId(id);\n return grade;\n }\n}", "@ProviderType\npublic interface PersonModel extends BaseModel<Person> {\n\n\t/*\n\t * NOTE FOR DEVELOPERS:\n\t *\n\t * Never modify or reference this interface directly. All methods that expect a person model instance should use the {@link Person} interface instead.\n\t */\n\n\t/**\n\t * Returns the primary key of this person.\n\t *\n\t * @return the primary key of this person\n\t */\n\tpublic long getPrimaryKey();\n\n\t/**\n\t * Sets the primary key of this person.\n\t *\n\t * @param primaryKey the primary key of this person\n\t */\n\tpublic void setPrimaryKey(long primaryKey);\n\n\t/**\n\t * Returns the uuid of this person.\n\t *\n\t * @return the uuid of this person\n\t */\n\t@AutoEscape\n\tpublic String getUuid();\n\n\t/**\n\t * Sets the uuid of this person.\n\t *\n\t * @param uuid the uuid of this person\n\t */\n\tpublic void setUuid(String uuid);\n\n\t/**\n\t * Returns the person ID of this person.\n\t *\n\t * @return the person ID of this person\n\t */\n\tpublic long getPersonId();\n\n\t/**\n\t * Sets the person ID of this person.\n\t *\n\t * @param personId the person ID of this person\n\t */\n\tpublic void setPersonId(long personId);\n\n\t/**\n\t * Returns the name of this person.\n\t *\n\t * @return the name of this person\n\t */\n\t@AutoEscape\n\tpublic String getName();\n\n\t/**\n\t * Sets the name of this person.\n\t *\n\t * @param name the name of this person\n\t */\n\tpublic void setName(String name);\n\n\t/**\n\t * Returns the age of this person.\n\t *\n\t * @return the age of this person\n\t */\n\tpublic int getAge();\n\n\t/**\n\t * Sets the age of this person.\n\t *\n\t * @param age the age of this person\n\t */\n\tpublic void setAge(int age);\n\n\t/**\n\t * Returns the gender of this person.\n\t *\n\t * @return the gender of this person\n\t */\n\t@AutoEscape\n\tpublic String getGender();\n\n\t/**\n\t * Sets the gender of this person.\n\t *\n\t * @param gender the gender of this person\n\t */\n\tpublic void setGender(String gender);\n\n\t/**\n\t * Returns the email ID of this person.\n\t *\n\t * @return the email ID of this person\n\t */\n\t@AutoEscape\n\tpublic String getEmailId();\n\n\t/**\n\t * Sets the email ID of this person.\n\t *\n\t * @param emailId the email ID of this person\n\t */\n\tpublic void setEmailId(String emailId);\n\n\t/**\n\t * Returns the nationality of this person.\n\t *\n\t * @return the nationality of this person\n\t */\n\t@AutoEscape\n\tpublic String getNationality();\n\n\t/**\n\t * Sets the nationality of this person.\n\t *\n\t * @param nationality the nationality of this person\n\t */\n\tpublic void setNationality(String nationality);\n\n\t/**\n\t * Returns the occupation of this person.\n\t *\n\t * @return the occupation of this person\n\t */\n\t@AutoEscape\n\tpublic String getOccupation();\n\n\t/**\n\t * Sets the occupation of this person.\n\t *\n\t * @param occupation the occupation of this person\n\t */\n\tpublic void setOccupation(String occupation);\n\n}", "public void init() {\n entityPropertyBuilders.add(new DefaultEntityComponentBuilder(environment));\n entityPropertyBuilders.add(new FilterTransientFieldComponentBuilder(environment));\n entityPropertyBuilders.add(new MakeAccessibleComponentBuilder(environment));\n entityPropertyBuilders.add(new PrimaryKeyComponentBuilder(environment));\n\n // Field meta property builders\n fieldPropertyBuilders.add(new FilterPrimaryKeyComponentBuilder(environment));\n fieldPropertyBuilders.add(new FilterTransientFieldComponentBuilder(environment));\n fieldPropertyBuilders.add(new MakeAccessibleComponentBuilder(environment));\n fieldPropertyBuilders.add(new TtlFieldComponentBuilder(environment));\n fieldPropertyBuilders.add(new CompositeParentComponentBuilder(environment));\n fieldPropertyBuilders.add(new CollectionFieldComponentBuilder(environment));\n fieldPropertyBuilders.add(new MapFieldComponentBuilder(environment));\n fieldPropertyBuilders.add(new SimpleFieldComponentBuilder(environment));\n }", "public interface EmployeeRepository extends ArangoRepository<Employee, String> {}", "@Mapper(componentModel = \"spring\", uses = {})\npublic interface EightydMapper extends EntityMapper<EightydDTO, Eightyd> {\n\n\n\n default Eightyd fromId(Long id) {\n if (id == null) {\n return null;\n }\n Eightyd eightyd = new Eightyd();\n eightyd.setId(id);\n return eightyd;\n }\n}", "@SuppressWarnings(\"unused\")\n@Repository\n@JaversSpringDataAuditable\npublic interface ReservoirCapacityRepository extends JpaRepository<ReservoirCapacity, Long> {\n\n}", "public interface AllergyModelProperties extends PropertyAccess<AllergyModel> {\n ModelKeyProvider<AllergyModel> id();\n}", "@MapperScan\npublic interface AdminMapper{\n //------------------Add your code here---------------------\n\n //------------------以下代码自动生成-----------------------\n\n /**\n * 根据条件查询全部\n * 参数:\n * map里的key为属性名(字段首字母小写)\n * value为查询的条件,默认为等于\n * 要改动sql请修改 *Mapper 类里的 _query() 方法\n */\n @SelectProvider(type = AdminSql.class,method = \"_queryAll\")\n List<AdminEntity> _queryAll(Map pagerParam);\n\n /**\n * 检验账号密码\n * @param account\n * @param password\n * @return\n */\n @SelectProvider(type = AdminSql.class,method = \"check\")\n List<AdminEntity> check(@Param(\"account\") String account, @Param(\"password\") String password);\n\n /**\n * 按id查询\n * 参数:\n * id : 要查询的记录的id\n */\n @SelectProvider(type = AdminSql.class,method = \"_get\")\n AdminEntity _get(String id);\n\n /**\n * 删除(逻辑)\n * 参数:\n * id : 要删除的记录的id\n */\n @DeleteProvider(type = AdminSql.class,method = \"_delete\")\n int _delete(String id);\n\n /**\n * 删除(物理)\n * 参数:\n * id : 要删除的记录的id\n */\n @DeleteProvider(type = AdminSql.class,method = \"_deleteForce\")\n int _deleteForce(String id);\n\n /**\n * 新增\n * 参数:\n * map里的key为属性名(字段首字母小写)\n * value为要插入的key值\n */\n @InsertProvider(type = AdminSql.class,method = \"_add\")\n int _add(Map params);\n\n /**\n * 按实体类新增\n * 参数:\n * 实体类对象,必须有id属性\n */\n @InsertProvider(type = AdminSql.class,method = \"_addEntity\")\n int _addEntity(AdminEntity bean);\n\n /**\n * 更新\n * 参数:\n * id : 要更新的记录的id\n * 其他map里的参数,key为属性名(字段首字母小写)\n * value为要更新成的值\n */\n @InsertProvider(type = AdminSql.class,method = \"_update\")\n int _update(Map params);\n\n /**\n * 按实体类更新\n * 参数:\n * 实体类对象,必须有id属性\n */\n @InsertProvider(type = AdminSql.class,method = \"_updateEntity\")\n int _updateEntity(AdminEntity bean);\n\n}", "public void setupEntities() {\n }", "@Generated(\"Speedment\")\npublic interface Employee extends Entity<Employee> {\n \n /**\n * This Field corresponds to the {@link Employee} field that can be obtained\n * using the {@link Employee#getId()} method.\n */\n public final static ComparableField<Employee, Short> ID = new ComparableFieldImpl<>(\"id\", Employee::getId, Employee::setId);\n /**\n * This Field corresponds to the {@link Employee} field that can be obtained\n * using the {@link Employee#getFirstname()} method.\n */\n public final static StringField<Employee> FIRSTNAME = new StringFieldImpl<>(\"firstname\", o -> o.getFirstname().orElse(null), Employee::setFirstname);\n /**\n * This Field corresponds to the {@link Employee} field that can be obtained\n * using the {@link Employee#getLastname()} method.\n */\n public final static StringField<Employee> LASTNAME = new StringFieldImpl<>(\"lastname\", o -> o.getLastname().orElse(null), Employee::setLastname);\n /**\n * This Field corresponds to the {@link Employee} field that can be obtained\n * using the {@link Employee#getBirthdate()} method.\n */\n public final static ComparableField<Employee, Date> BIRTHDATE = new ComparableFieldImpl<>(\"birthdate\", o -> o.getBirthdate().orElse(null), Employee::setBirthdate);\n \n /**\n * Returns the id of this Employee. The id field corresponds to the database\n * column db0.sql696688.employee.id.\n * \n * @return the id of this Employee\n */\n Short getId();\n \n /**\n * Returns the firstname of this Employee. The firstname field corresponds to\n * the database column db0.sql696688.employee.firstname.\n * \n * @return the firstname of this Employee\n */\n Optional<String> getFirstname();\n \n /**\n * Returns the lastname of this Employee. The lastname field corresponds to\n * the database column db0.sql696688.employee.lastname.\n * \n * @return the lastname of this Employee\n */\n Optional<String> getLastname();\n \n /**\n * Returns the birthdate of this Employee. The birthdate field corresponds to\n * the database column db0.sql696688.employee.birthdate.\n * \n * @return the birthdate of this Employee\n */\n Optional<Date> getBirthdate();\n \n /**\n * Sets the id of this Employee. The id field corresponds to the database\n * column db0.sql696688.employee.id.\n * \n * @param id to set of this Employee\n * @return this Employee instance\n */\n Employee setId(Short id);\n \n /**\n * Sets the firstname of this Employee. The firstname field corresponds to\n * the database column db0.sql696688.employee.firstname.\n * \n * @param firstname to set of this Employee\n * @return this Employee instance\n */\n Employee setFirstname(String firstname);\n \n /**\n * Sets the lastname of this Employee. The lastname field corresponds to the\n * database column db0.sql696688.employee.lastname.\n * \n * @param lastname to set of this Employee\n * @return this Employee instance\n */\n Employee setLastname(String lastname);\n \n /**\n * Sets the birthdate of this Employee. The birthdate field corresponds to\n * the database column db0.sql696688.employee.birthdate.\n * \n * @param birthdate to set of this Employee\n * @return this Employee instance\n */\n Employee setBirthdate(Date birthdate);\n \n /**\n * Creates and returns a {@link Stream} of all {@link Borrowed} Entities that\n * references this Entity by the foreign key field that can be obtained using\n * {@link Borrowed#getEmployeeid()}. The order of the Entities are undefined\n * and may change from time to time.\n * <p>\n * Using this method, you may \"walk the graph\" and jump directly between\n * referencing Entities without using {@code JOIN}s.<p> N.B. The current\n * implementation supports lazy-loading of the referencing Entities.\n * \n * @return a {@link Stream} of all {@link Borrowed} Entities that references\n * this Entity by the foreign key field that can be obtained using {@link\n * Borrowed#getEmployeeid()}\n */\n Stream<Borrowed> findBorrowedsByEmployeeid();\n \n /**\n * Creates and returns a <em>distinct</em> {@link Stream} of all {@link\n * Borrowed} Entities that references this Entity by a foreign key. The order\n * of the Entities are undefined and may change from time to time.\n * <p>\n * Note that the Stream is <em>distinct</em>, meaning that referencing\n * Entities will only appear once in the Stream, even though they may\n * reference this Entity by several columns.\n * <p>\n * Using this method, you may \"walk the graph\" and jump directly between\n * referencing Entities without using {@code JOIN}s.<p> N.B. The current\n * implementation supports lazy-loading of the referencing Entities.\n * \n * @return a <em>distinct</em> {@link Stream} of all {@link Borrowed}\n * Entities that references this Entity by a foreign key\n */\n Stream<Borrowed> findBorroweds();\n}", "@Mapper(componentModel = \"spring\", uses = {TravauxMapper.class, ChantierMapper.class, EmployeMapper.class})\npublic interface AffectationMapper extends EntityMapper<AffectationDTO, Affectation> {\n\n @Mapping(source = \"travaux.id\", target = \"travauxId\")\n @Mapping(source = \"travaux.nomTrav\", target = \"travauxNomTrav\")\n @Mapping(source = \"chantier.id\", target = \"chantierId\")\n @Mapping(source = \"chantier.nomChantier\", target = \"chantierNomChantier\")\n AffectationDTO toDto(Affectation affectation);\n\n @Mapping(source = \"travauxId\", target = \"travaux\")\n @Mapping(source = \"chantierId\", target = \"chantier\")\n Affectation toEntity(AffectationDTO affectationDTO);\n\n default Affectation fromId(Long id) {\n if (id == null) {\n return null;\n }\n Affectation affectation = new Affectation();\n affectation.setId(id);\n return affectation;\n }\n}", "EntityDefinitionVisitor getEntityDefinitionStateSetterVisitor();", "@Bean\n\t@Lazy(false)\n\tAdditionalModelsConverter additionalModelsConverter() {\n\t\treturn new AdditionalModelsConverter();\n\t}", "@Mapper\n@Repository\npublic interface StockMapper {\n\n @Insert(\"insert into product_stock(valued,product_id) values(#{valued},#{product_id})\")\n public void insertProductStock(ProductStock ProductStock);\n @Update(\"update product_stock set valued=#{valued},product_id=#{product_id} where id=#{id}\")\n public void updateProductStock(ProductStock ProductStock);\n @Delete(\"delete from product_stock where id=#{id}\")\n public void deleteProductStock(Integer id);\n @Select(\"select * from product_stock\")\n public List<ProductStock> selectAll();\n @Select(\"select * from product_stock where id=#{id}\")\n ProductStock selectById(Integer id);\n @Select(\"select * from product_stock where product_id=#{id}\")\n ProductStock findStockByProductId(Integer id);\n}", "@ProviderType\npublic interface ItemShopBasketModel extends BaseModel<ItemShopBasket> {\n\n\t/*\n\t * NOTE FOR DEVELOPERS:\n\t *\n\t * Never modify or reference this interface directly. All methods that expect a item shop basket model instance should use the {@link ItemShopBasket} interface instead.\n\t */\n\n\t/**\n\t * Returns the primary key of this item shop basket.\n\t *\n\t * @return the primary key of this item shop basket\n\t */\n\tpublic long getPrimaryKey();\n\n\t/**\n\t * Sets the primary key of this item shop basket.\n\t *\n\t * @param primaryKey the primary key of this item shop basket\n\t */\n\tpublic void setPrimaryKey(long primaryKey);\n\n\t/**\n\t * Returns the item shop basket ID of this item shop basket.\n\t *\n\t * @return the item shop basket ID of this item shop basket\n\t */\n\tpublic long getItemShopBasketId();\n\n\t/**\n\t * Sets the item shop basket ID of this item shop basket.\n\t *\n\t * @param itemShopBasketId the item shop basket ID of this item shop basket\n\t */\n\tpublic void setItemShopBasketId(long itemShopBasketId);\n\n\t/**\n\t * Returns the shop basket ID of this item shop basket.\n\t *\n\t * @return the shop basket ID of this item shop basket\n\t */\n\tpublic long getShopBasketId();\n\n\t/**\n\t * Sets the shop basket ID of this item shop basket.\n\t *\n\t * @param shopBasketId the shop basket ID of this item shop basket\n\t */\n\tpublic void setShopBasketId(long shopBasketId);\n\n\t/**\n\t * Returns the name of this item shop basket.\n\t *\n\t * @return the name of this item shop basket\n\t */\n\t@AutoEscape\n\tpublic String getName();\n\n\t/**\n\t * Sets the name of this item shop basket.\n\t *\n\t * @param name the name of this item shop basket\n\t */\n\tpublic void setName(String name);\n\n\t/**\n\t * Returns the imported of this item shop basket.\n\t *\n\t * @return the imported of this item shop basket\n\t */\n\tpublic boolean getImported();\n\n\t/**\n\t * Returns <code>true</code> if this item shop basket is imported.\n\t *\n\t * @return <code>true</code> if this item shop basket is imported; <code>false</code> otherwise\n\t */\n\tpublic boolean isImported();\n\n\t/**\n\t * Sets whether this item shop basket is imported.\n\t *\n\t * @param imported the imported of this item shop basket\n\t */\n\tpublic void setImported(boolean imported);\n\n\t/**\n\t * Returns the exempt of this item shop basket.\n\t *\n\t * @return the exempt of this item shop basket\n\t */\n\tpublic boolean getExempt();\n\n\t/**\n\t * Returns <code>true</code> if this item shop basket is exempt.\n\t *\n\t * @return <code>true</code> if this item shop basket is exempt; <code>false</code> otherwise\n\t */\n\tpublic boolean isExempt();\n\n\t/**\n\t * Sets whether this item shop basket is exempt.\n\t *\n\t * @param exempt the exempt of this item shop basket\n\t */\n\tpublic void setExempt(boolean exempt);\n\n\t/**\n\t * Returns the price of this item shop basket.\n\t *\n\t * @return the price of this item shop basket\n\t */\n\tpublic Double getPrice();\n\n\t/**\n\t * Sets the price of this item shop basket.\n\t *\n\t * @param price the price of this item shop basket\n\t */\n\tpublic void setPrice(Double price);\n\n\t/**\n\t * Returns the active of this item shop basket.\n\t *\n\t * @return the active of this item shop basket\n\t */\n\tpublic boolean getActive();\n\n\t/**\n\t * Returns <code>true</code> if this item shop basket is active.\n\t *\n\t * @return <code>true</code> if this item shop basket is active; <code>false</code> otherwise\n\t */\n\tpublic boolean isActive();\n\n\t/**\n\t * Sets whether this item shop basket is active.\n\t *\n\t * @param active the active of this item shop basket\n\t */\n\tpublic void setActive(boolean active);\n\n\t/**\n\t * Returns the amount of this item shop basket.\n\t *\n\t * @return the amount of this item shop basket\n\t */\n\tpublic long getAmount();\n\n\t/**\n\t * Sets the amount of this item shop basket.\n\t *\n\t * @param amount the amount of this item shop basket\n\t */\n\tpublic void setAmount(long amount);\n\n\t/**\n\t * Returns the tax of this item shop basket.\n\t *\n\t * @return the tax of this item shop basket\n\t */\n\tpublic Double getTax();\n\n\t/**\n\t * Sets the tax of this item shop basket.\n\t *\n\t * @param tax the tax of this item shop basket\n\t */\n\tpublic void setTax(Double tax);\n\n\t/**\n\t * Returns the total of this item shop basket.\n\t *\n\t * @return the total of this item shop basket\n\t */\n\tpublic Double getTotal();\n\n\t/**\n\t * Sets the total of this item shop basket.\n\t *\n\t * @param total the total of this item shop basket\n\t */\n\tpublic void setTotal(Double total);\n\n}", "@Api(tags = \"Address Entity\")\n@RepositoryRestResource(collectionResourceRel = \"taxInformation\", path =\"taxInformation\")\npublic interface TaxInformationRepository extends PagingAndSortingRepository<TaxInformation,Integer> {\n}", "public EntityPropertyBean() {}", "@Service(name = \"CustomerService\")\n@OpenlegacyDesigntime(editor = \"WebServiceEditor\")\npublic interface CustomerServiceService {\n\n public CustomerServiceOut getCustomerService(CustomerServiceIn customerServiceIn) throws Exception;\n\n @Getter\n @Setter\n public static class CustomerServiceIn {\n \n Integer id3;\n }\n \n @ApiModel(value=\"CustomerServiceOut\", description=\"\")\n @Getter\n @Setter\n public static class CustomerServiceOut {\n \n @ApiModelProperty(value=\"Getuserdetails\")\n Getuserdetails getuserdetails;\n }\n}", "@Repository\n@Mapper\npublic interface AppInfoMapper extends BaseMapper<AppInfoEntity> {\n}", "@Mapper(componentModel = \"spring\", uses = {})\npublic interface CountryMapper extends EntityMapper<CountryDTO, Country> {\n\n\n @Mapping(target = \"cities\", ignore = true)\n @Mapping(target = \"countryLanguages\", ignore = true)\n Country toEntity(CountryDTO countryDTO);\n\n default Country fromId(Long id) {\n if (id == null) {\n return null;\n }\n Country country = new Country();\n country.setId(id);\n return country;\n }\n}", "EntityBeanDescriptor createEntityBeanDescriptor();", "public interface AEntityProperty {\n}", "public interface SmooksTransformModel extends TransformModel {\n\n /** The \"smooks\" name. */\n public static final String SMOOKS = \"smooks\";\n\n /** The \"config\" name. */\n public static final String CONFIG = \"config\";\n \n /** The \"type\" name. */\n public static final String TYPE = \"type\";\n\n /** The \"reportPath\" name. */\n public static final String REPORT_PATH = \"reportPath\";\n \n /**\n * Gets the type attribute.\n * @return the type attribute\n */\n public String getTransformType();\n\n /**\n * Sets the type attribute.\n * @param type the type attribute\n * @return this SmooksTransformModel (useful for chaining)\n */\n public SmooksTransformModel setTransformType(String type);\n\n /**\n * Gets the config attribute.\n * @return the config attribute\n */\n public String getConfig();\n\n\n /**\n * Sets the config attribute.\n * @param config the config attribute\n * @return this SmooksTransformModel (useful for chaining)\n */\n public SmooksTransformModel setConfig(String config);\n\n /**\n * Gets the reportPath attribute.\n * @return the reportPath attribute\n */\n public String getReportPath();\n\n /**\n * Sets the reportPath attribute.\n * @param reportPath the reportPath attribute\n * @return this SmooksTransformModel (useful for chaining)\n */\n public SmooksTransformModel setReportPath(String reportPath);\n\n}", "@Test\n\tpublic void testGettersAndSetters() {\n\t\tnew BeanTester().testBean(LeastCommonNodeInput.class, configuration);\n\n\t}", "public interface MerchandiserEntities {\n\n static Entity outletEntity() {\n return new Entity(\n Entities.OUTLET_ENTITY,\n OutletModel.id,\n ArrayBuilder.<Field>create()\n .addAll(ImmutableList.of(\n field(OutletModel.name),\n field(OutletModel.address),\n field(OutletModel.qrCode),\n field(OutletModel.location, JavaType.OBJECT, hasOneLocation()),\n field(OutletModel.locationGps, JavaType.OBJECT, hasOneLocation()),\n field(OutletModel.locationNetwork, JavaType.OBJECT, hasOneLocation()),\n field(OutletModel.images, JavaType.ARRAY, hasManyOutletImages())\n ))\n .addAll(Entities.baseFields())\n .build(list -> list.toArray(new Field[list.size()])),\n new DbMapping(\n Entities.OUTLET_TABLE,\n OutletTable.id,\n ArrayBuilder.<ColumnMapping>create()\n .addAll(ImmutableList.of(\n column(OutletModel.name, OutletTable.name),\n column(OutletModel.address, OutletTable.address),\n column(OutletModel.qrCode, OutletTable.qr_code)\n ))\n .addAll(Entities.baseColumns())\n .build(list -> list.toArray(new ColumnMapping[list.size()])),\n ArrayBuilder.<RelationMapping>create()\n .addAll(ImmutableList.of(\n Entities.locationMapping(OutletModel.location, OutletTable.location_id),\n Entities.locationMapping(OutletModel.locationGps, OutletTable.location_id_gps),\n Entities.locationMapping(OutletModel.locationNetwork, OutletTable.location_id_network),\n outletImagesMapping()\n ))\n .addAll(Arrays.asList(Entities.baseRelationMappingsArray()))\n .build(list -> list.toArray(new RelationMapping[list.size()]))\n )\n );\n }\n\n static Relationship hasOneLocation() {\n return new Relationship(\n Relationship.Type.MANY_TO_ONE,\n Relationship.Name.HAS_ONE,\n Entities.LOCATION_ENTITY\n );\n }\n\n static Relationship hasManyOutletImages() {\n return new Relationship(\n Relationship.Type.ONE_TO_MANY,\n Relationship.Name.HAS_MANY,\n Entities.OUTLET_IMAGE_ENTITY\n );\n }\n\n static VirtualRelationMappingImpl outletImagesMapping() {\n return new VirtualRelationMappingImpl(\n Entities.OUTLET_IMAGE_TABLE,\n Entities.OUTLET_IMAGE_ENTITY,\n ImmutableList.of(\n new ForeignColumnMapping(\n OutletImageTable.outlet_id,\n OutletTable.id\n )\n ),\n OutletModel.images,\n new RelationMappingOptionsImpl(\n RelationMappingOptions.CascadeUpsert.YES,\n RelationMappingOptions.CascadeDelete.YES,\n true\n )\n );\n }\n\n static Entity outletImageEntity() {\n return new Entity(\n Entities.OUTLET_IMAGE_ENTITY,\n OutletImageModel.id,\n ArrayBuilder.<Field>create()\n .addAll(ImmutableList.of(\n field(OutletImageModel.title),\n field(OutletImageModel.description),\n field(OutletImageModel.uri),\n field(OutletImageModel.file),\n field(OutletImageModel.fileName),\n field(OutletImageModel.height),\n field(OutletImageModel.width),\n field(OutletImageModel.outlet, JavaType.OBJECT, hasOneOutlet())\n ))\n .addAll(Entities.baseFields())\n .build(list -> list.toArray(new Field[list.size()])),\n new DbMapping(\n Entities.OUTLET_IMAGE_TABLE,\n OutletImageTable.id,\n ArrayBuilder.<ColumnMapping>create()\n .addAll(ImmutableList.of(\n column(OutletImageModel.title, OutletImageTable.title),\n column(OutletImageModel.description, OutletImageTable.description),\n column(OutletImageModel.uri, OutletImageTable.uri),\n column(OutletImageModel.file, OutletImageTable.file),\n column(OutletImageModel.fileName, OutletImageTable.file_name),\n column(OutletImageModel.height, OutletImageTable.height),\n column(OutletImageModel.width, OutletImageTable.width)\n ))\n .addAll(Entities.baseColumns())\n .build(list -> list.toArray(new ColumnMapping[list.size()])),\n ArrayBuilder.<RelationMapping>create()\n .addAll(ImmutableList.of(\n new DirectRelationMappingImpl(\n OUTLET_TABLE,\n OUTLET_ENTITY,\n ImmutableList.of(\n new ForeignColumnMapping(\n OutletImageTable.outlet_id,\n OutletTable.id\n )\n ),\n OutletImageModel.outlet,\n new DirectRelationMappingOptionsImpl(\n RelationMappingOptions.CascadeUpsert.NO,\n RelationMappingOptions.CascadeDelete.NO,\n true,\n DirectRelationMappingOptions.LoadAndDelete.LOAD_AND_DELETE\n )\n )\n ))\n .addAll(Arrays.asList(Entities.baseRelationMappingsArray()))\n .build(list -> list.toArray(new RelationMapping[list.size()]))\n )\n );\n }\n\n static Relationship hasOneOutlet() {\n return new Relationship(\n Relationship.Type.MANY_TO_ONE,\n Relationship.Name.HAS_ONE,\n OUTLET_ENTITY\n );\n }\n\n static Entity locationEntity() {\n return new Entity(\n LOCATION_ENTITY,\n LocationModel.id,\n ArrayBuilder.<Field>create()\n .addAll(ImmutableList.of(\n Entities.field(LocationModel.lat),\n Entities.field(LocationModel.lng),\n Entities.field(LocationModel.accuracy)\n ))\n .addAll(Entities.baseFields())\n .build(list -> list.toArray(new Field[list.size()])),\n new DbMapping(\n LOCATION_TABLE,\n LocationTable.id,\n ArrayBuilder.<ColumnMapping>create()\n .addAll(ImmutableList.of(\n Entities.column(LocationModel.lat, LocationTable.lat),\n Entities.column(LocationModel.lng, LocationTable.lng),\n Entities.column(LocationModel.accuracy, LocationTable.accuracy)\n ))\n .addAll(Entities.baseColumns())\n .build(list -> list.toArray(new ColumnMapping[list.size()])),\n Entities.baseRelationMappingsArray()\n )\n );\n }\n}", "@Override\r\n public void createNewEntity(String entityName) {\n\r\n }", "@Mapper\npublic interface UserMapper {\n /**\n * 功能描述\n * @author xgl\n * @date 2019/12/12\n * @param appUser\n * @return int\n */\n int registerAppUser(AppUser appUser);\n /**\n * 功能描述\n * @author xgl\n * @date 2019/12/12\n * @param baseUser\n * @return int\n */\n int registerBaseUser(BaseUser baseUser);\n /**\n * 功能描述\n * @author xgl\n * @date 2019/12/12\n * @param appUser\n * @return com.example.app.entity.BaseUser\n */\n AppUser loginAppUser(AppUser appUser);\n /**\n * 功能描述\n * @author xgl\n * @date 2019/12/12\n * @param\n * @return java.util.List<com.example.app.entity.College>\n */\n @Select(\"select * from col\")\n List<College> allCollege();\n /**\n * 功能描述\n * @author xgl\n * @date 2019/12/12\n * @param user\n * @return int\n */\n int hasUser(BaseUser user);\n /**\n * 功能描述\n * @author xgl\n * @date 2019/12/12\n * @param col_id\n * @return int\n */\n int hasCol(int col_id);\n /**\n * 功能描述\n * @author xgl\n * @date 2019/12/12\n * @param sms\n * @return int\n */\n int registerCode(SMS sms);\n /**\n * 功能描述\n * @author xgl\n * @date 2019/12/12\n * @param code\n * @return int\n */\n int getCode(@Param(\"code\") Integer code);\n /**\n * 功能描述\n * @author xgl\n * @date 2019/12/12\n * @param order\n * @return int\n */\n int insertOrder(Order order);\n /**\n * 功能描述\n * @author xgl\n * @date 2019/12/12\n * @param order\n * @return int\n */\n int insertOrderCount(Order order);\n\n}", "@Test\n\tpublic void testSettersAddress() {\n\t\tassertTrue(beanTester.testSetters());\n\t}", "@RepositoryRestResource\npublic interface WebsiteRepository extends JpaRepository<WebsiteEntity, Long> {\n\n}", "@Repository\npublic interface UserMapper {\n /**\n * 添加用户\n * @param user\n * @return\n */\n Integer addUser(User user);\n}", "@Mapper(componentModel = \"spring\", uses = {UserMapper.class, })\npublic interface PeopleMapper extends EntityMapper <PeopleDTO, People> {\n\n @Mapping(source = \"user.id\", target = \"userId\")\n @Mapping(source = \"user.firstName\", target = \"userFirstName\")\n @Mapping(source = \"user.lastName\", target = \"userLastName\")\n PeopleDTO toDto(People people);\n\n @Mapping(source = \"userId\", target = \"user\")\n @Mapping(target = \"seminarsPresenteds\", ignore = true)\n @Mapping(target = \"seminarsAttendeds\", ignore = true)\n @Mapping(target = \"specialGuestAts\", ignore = true)\n People toEntity(PeopleDTO peopleDTO);\n default People fromId(Long id) {\n if (id == null) {\n return null;\n }\n People people = new People();\n people.setId(id);\n return people;\n }\n\n default String peopleName(People people) {\n String name = \"\";\n if (people == null) {\n return null;\n }\n if (people.getUser() == null) {\n return null;\n }\n String firstName = people.getUser().getFirstName();\n if (firstName != null) {\n name += firstName;\n }\n String lastName = people.getUser().getLastName();\n if (lastName != null) {\n name += \" \" + lastName;\n }\n return name;\n }\n}", "public interface ApplyOrderMapper extends CrudRepository<OrderEntity, Long> {\n}", "public interface HealthBlockRecordsDataService extends MotechDataService<HealthBlock> {\n\n /**\n * finds the Health Block details by its parent code\n *\n * @param stateCode\n * @param districtCode\n * @param talukaCode\n * @param healthBlockCode\n * @return HealthBlock\n */\n @Lookup\n HealthBlock findHealthBlockByParentCode(@LookupField(name = \"stateCode\") Long stateCode, @LookupField(name = \"districtCode\") Long districtCode,\n @LookupField(name = \"talukaCode\") Long talukaCode, @LookupField(name = \"healthBlockCode\") Long healthBlockCode);\n\n}", "@JsonGetter(\"product_details\")\n public ProductData getProductDetails ( ) { \n return this.productDetails;\n }", "@Repository(\"productTypeMapper\")\npublic interface ProductTypeMapper extends CommonMapper<ProductTypeInfo> {\n}", "@Repository\npublic interface EmployeeStoreRepository extends JpaRepository<EmployeeStore,String>{\n\n}", "@Mapper(componentModel = \"spring\", uses = {AanvraagberichtMapper.class})\npublic interface FdnAanvragerMapper extends EntityMapper<FdnAanvragerDTO, FdnAanvrager> {\n\n @Mapping(source = \"aanvraagbericht.id\", target = \"aanvraagberichtId\")\n FdnAanvragerDTO toDto(FdnAanvrager fdnAanvrager);\n\n @Mapping(target = \"adres\", ignore = true)\n @Mapping(target = \"legitimatiebewijs\", ignore = true)\n @Mapping(target = \"werksituaties\", ignore = true)\n @Mapping(target = \"gezinssituaties\", ignore = true)\n @Mapping(target = \"financieleSituaties\", ignore = true)\n @Mapping(source = \"aanvraagberichtId\", target = \"aanvraagbericht\")\n FdnAanvrager toEntity(FdnAanvragerDTO fdnAanvragerDTO);\n\n default FdnAanvrager fromId(Long id) {\n if (id == null) {\n return null;\n }\n FdnAanvrager fdnAanvrager = new FdnAanvrager();\n fdnAanvrager.setId(id);\n return fdnAanvrager;\n }\n}", "@Mapper\npublic interface SkuMapper {\n\n\n @Select(\"select * from Sku\")\n List<SkuParam> getAll();\n\n @Insert(value = {\"INSERT INTO Sku (skuName,price,categoryId,brandId,description) VALUES (#{skuName},#{price},#{categoryId},#{brandId},#{description})\"})\n @Options(useGeneratedKeys=true, keyProperty=\"skuId\")\n int insertLine(Sku sku);\n\n// @Insert(value = {\"INSERT INTO Sku (categoryId,brandId) VALUES (2,1)\"})\n// @Options(useGeneratedKeys=true, keyProperty=\"SkuId\")\n// int insertLine(Sku sku);\n\n @Delete(value = {\n \"DELETE from Sku WHERE skuId = #{skuId}\"\n })\n int deleteLine(@Param(value = \"skuId\") Long skuId);\n\n// @Insert({\n// \"<script>\",\n// \"INSERT INTO\",\n// \"CategoryAttributeGroup(id,templateId,name,sort,createTime,deleted,updateTime)\",\n// \"<foreach collection='list' item='obj' open='values' separator=',' close=''>\",\n// \" (#{obj.id},#{obj.templateId},#{obj.name},#{obj.sort},#{obj.createTime},#{obj.deleted},#{obj.updateTime})\",\n// \"</foreach>\",\n// \"</script>\"\n// })\n// Integer createCategoryAttributeGroup(List<CategoryAttributeGroup> categoryAttributeGroups);\n\n @Update(\"UPDATE Sku SET skuName = #{skuName} WHERE skuId = #{skuId}\")\n int updateLine(@Param(\"skuId\") Long skuId,@Param(\"skuName\")String skuName);\n\n\n @Select({\n \"<script>\",\n \"SELECT\",\n \"s.SkuName,c.categoryName,s.categoryId,b.brandName,s.price\",\n \"FROM\",\n \"Sku AS s\",\n \"JOIN\",\n \"Category AS c ON s.categoryId = c.categoryId\",\n \"JOIN\",\n \"Brand AS b ON s.brandId = b.brandId\",\n \"WHERE 1=1\",\n //范围查询,根据时间\n \"<if test=\\\" null != higherSkuParam.startTime and null != higherSkuParam.endTime \\\">\",\n \"AND s.updateTime &gt;= #{higherSkuParam.startTime}\",\n \"AND s.updateTime &lt;= #{ higherSkuParam.endTime}\",\n \"</if>\",\n //模糊查询,根据类别\n\n \"<if test=\\\"null != higherSkuParam.categoryName and ''!=higherSkuParam.categoryName\\\">\",\n \" AND c.categoryName LIKE CONCAT('%', #{higherSkuParam.categoryName}, '%')\",\n \"</if>\",\n\n //模糊查询,根据品牌\n\n \"<if test=\\\"null != higherSkuParam.brandName and ''!=higherSkuParam.brandName\\\">\",\n \" AND b.brandName LIKE CONCAT('%', #{higherSkuParam.brandName}, '%')\",\n \"</if>\",\n\n\n //模糊查询,根据商品名字\n \"<if test=\\\"null != higherSkuParam.skuName and ''!=higherSkuParam.skuName\\\">\",\n \" AND s.skuName LIKE CONCAT('%', #{higherSkuParam.skuName}, '%')\",\n \"</if>\",\n\n\n //根据多个类别查询\n \"<if test=\\\" null != higherSkuParam.categoryIds and higherSkuParam.categoryIds.size>0\\\" >\",\n \"AND s.categoryId IN\",\n \"<foreach collection=\\\"higherSkuParam.categoryIds\\\" item=\\\"data\\\" index=\\\"index\\\" open=\\\"(\\\" separator=\\\",\\\" close=\\\")\\\" >\",\n \" #{data} \",\n \"</foreach>\",\n \"</if>\",\n \"</script>\"\n })\n List<HigherSkuDTO> higherSelect(@Param(\"higherSkuParam\")HigherSkuParam higherSkuParam);\n\n\n\n// \"<if test=\\\" null != higherSkuParam.categoryName and ''!=higherSkuParam.categoryName \\\" >\",\n// \" AND c.categoryName LIKE \\\"%#{higherSkuParam.categoryName}%\\\" \",\n// \"</if>\",\n// \"<if test=\\\" null != higherSkuParam.skuName \\\" >\",\n// \"AND s.skuName LIKE \\\"%#{higherSkuParam.skuName}%\\\" \",\n// \"</if>\",\n}", "public interface TdHtFuncroleRelRepository {\n\n /**\n * @Purpose 根据id查找角色id和功能id\n * @version 4.0\n * @author lizhun\n * @param map\n * @return TdHtFuncroleRelDto\n */\n public TdHtFuncroleRelDto findFuncroleRelByRoleIdAndFuncId(Map<String,Integer> map);\n\n /**\n * @Purpose 根据权限id查找角色权限关联信息\n * @version 4.0\n * @author lizhun\n * @param role_id\n * @return List<TdHtFuncroleRelDto>\n */\n public List<TdHtFuncroleRelDto> findFuncroleRelsByRoleId(int role_id);\n /**\n * @Purpose 添加角色权限关联信息\n * @version 4.0\n * @author lizhun\n * @return void\n */\n public void insertFuncroleRel(TdHtFuncroleRelDto TdHtFuncroleRelDto);\n /**\n * @Purpose 修改角色限关联信息\n * @version 4.0\n * @author lizhun\n * @return void\n */\n public void updateFuncroleRel(TdHtFuncroleRelDto TdHtFuncroleRelDto);\n /**\n * @Purpose 修改角色所有功能不可用\n * @version 4.0\n * @author lizhun\n * @return void\n */\n public void updateFuncroleRelByRoleId(int role_id);\n}", "@Mapper(componentModel = \"spring\", uses = {})\npublic interface PerformerMapper extends EntityMapper<PerformerDTO, Performer> {\n\n\n\n default Performer fromId(Long id) {\n if (id == null) {\n return null;\n }\n Performer performer = new Performer();\n performer.setId(id);\n return performer;\n }\n}", "@Mapper(componentModel = \"spring\", uses = {})\npublic interface TarifLineMapper extends EntityMapper <TarifLineDTO, TarifLine> {\n \n \n default TarifLine fromId(Long id) {\n if (id == null) {\n return null;\n }\n TarifLine tarifLine = new TarifLine();\n tarifLine.setId(id);\n return tarifLine;\n }\n}", "@Mapper(componentModel = \"spring\", uses = {ProvinciaMapper.class})\npublic interface CodigoPostalMapper extends EntityMapper<CodigoPostalDTO, CodigoPostal> {\n\n @Mapping(source = \"provincia.id\", target = \"provinciaId\")\n @Mapping(source = \"provincia.nombreProvincia\", target = \"provinciaNombreProvincia\")\n CodigoPostalDTO toDto(CodigoPostal codigoPostal);\n\n @Mapping(source = \"provinciaId\", target = \"provincia\")\n CodigoPostal toEntity(CodigoPostalDTO codigoPostalDTO);\n\n default CodigoPostal fromId(Long id) {\n if (id == null) {\n return null;\n }\n CodigoPostal codigoPostal = new CodigoPostal();\n codigoPostal.setId(id);\n return codigoPostal;\n }\n}", "@Mapper(componentModel = \"spring\", uses = {})\npublic interface TemplateFormulaireMapper extends EntityMapper<TemplateFormulaireDTO, TemplateFormulaire> {\n\n\n @Mapping(target = \"questions\", ignore = true)\n TemplateFormulaire toEntity(TemplateFormulaireDTO templateFormulaireDTO);\n\n default TemplateFormulaire fromId(Long id) {\n if (id == null) {\n return null;\n }\n TemplateFormulaire templateFormulaire = new TemplateFormulaire();\n templateFormulaire.setId(id);\n return templateFormulaire;\n }\n}", "public sealed interface EntityMapper<D, E>permits CarMapper,\n ModelMapper, ModelOptionMapper, PricingClassMapper, UserInfoMapper,\n TownMapper, AddressMapper, RoleMapper, BookingMapper, RentMapper {\n\n E toEntity(D dto);\n\n D toDto(E entity);\n\n Collection<E> toEntity(Collection<D> dtoList);\n\n Collection<D> toDto(Collection<E> entityList);\n\n @Named(\"partialUpdate\")\n @BeanMapping(nullValuePropertyMappingStrategy = NullValuePropertyMappingStrategy.IGNORE)\n void partialUpdate(@MappingTarget E entity, D dto);\n}", "public interface EntitySource extends IdentifiableTypeSource, ToolingHintContextContainer, EntityNamingSourceContributor {\n\t/**\n\t * Obtain the primary table for this entity.\n\t *\n\t * @return The primary table.\n\t */\n\tpublic TableSpecificationSource getPrimaryTable();\n\n\t/**\n\t * Obtain the secondary tables for this entity\n\t *\n\t * @return returns an iterator over the secondary tables for this entity\n\t */\n\tpublic Map<String,SecondaryTableSource> getSecondaryTableMap();\n\n\tpublic String getXmlNodeName();\n\n\t/**\n\t * Obtain the named custom tuplizer classes to be used.\n\t *\n\t * @return The custom tuplizer class names\n\t */\n\tpublic Map<EntityMode,String> getTuplizerClassMap();\n\n\t/**\n\t * Obtain the name of a custom persister class to be used.\n\t *\n\t * @return The custom persister class name\n\t */\n\tpublic String getCustomPersisterClassName();\n\n\t/**\n\t * Is this entity lazy (proxyable)?\n\t *\n\t * @return {@code true} indicates the entity is lazy; {@code false} non-lazy.\n\t */\n\tpublic boolean isLazy();\n\n\t/**\n\t * For {@link #isLazy() lazy} entities, obtain the interface to use in constructing its proxies.\n\t *\n\t * @return The proxy interface name\n\t */\n\tpublic String getProxy();\n\n\t/**\n\t * Obtain the batch-size to be applied when initializing proxies of this entity.\n\t *\n\t * @return returns the the batch-size.\n\t */\n\tpublic int getBatchSize();\n\n\t/**\n\t * Is the entity abstract?\n\t * <p/>\n\t * The implication is whether the entity maps to a database table.\n\t *\n\t * @return {@code true} indicates the entity is abstract; {@code false} non-abstract; {@code null}\n\t * indicates that a reflection check should be done when building the persister.\n\t */\n\tpublic Boolean isAbstract();\n\n\t/**\n\t * Did the source specify dynamic inserts?\n\t *\n\t * @return {@code true} indicates dynamic inserts will be used; {@code false} otherwise.\n\t */\n\tpublic boolean isDynamicInsert();\n\n\t/**\n\t * Did the source specify dynamic updates?\n\t *\n\t * @return {@code true} indicates dynamic updates will be used; {@code false} otherwise.\n\t */\n\tpublic boolean isDynamicUpdate();\n\n\t/**\n\t * Did the source specify to perform selects to decide whether to perform (detached) updates?\n\t *\n\t * @return {@code true} indicates selects will be done; {@code false} otherwise.\n\t */\n\tpublic boolean isSelectBeforeUpdate();\n\n\t/**\n\t * Obtain the name of a named-query that will be used for loading this entity\n\t *\n\t * @return THe custom loader query name\n\t */\n\tpublic String getCustomLoaderName();\n\n\t/**\n\t * Obtain the custom SQL to be used for inserts for this entity\n\t *\n\t * @return The custom insert SQL\n\t */\n\tpublic CustomSql getCustomSqlInsert();\n\n\t/**\n\t * Obtain the custom SQL to be used for updates for this entity\n\t *\n\t * @return The custom update SQL\n\t */\n\tpublic CustomSql getCustomSqlUpdate();\n\n\t/**\n\t * Obtain the custom SQL to be used for deletes for this entity\n\t *\n\t * @return The custom delete SQL\n\t */\n\tpublic CustomSql getCustomSqlDelete();\n\n\t/**\n\t * Obtain any additional table names on which to synchronize (auto flushing) this entity.\n\t *\n\t * @return Additional synchronized table names or 0 sized String array, never return null.\n\t */\n\tpublic String[] getSynchronizedTableNames();\n\n\t/**\n\t * Get the actual discriminator value in case of a single table inheritance\n\t *\n\t * @return the actual discriminator value in case of a single table inheritance or {@code null} in case there is no\n\t * explicit value or a different inheritance scheme\n\t */\n\tpublic String getDiscriminatorMatchValue();\n\n\t/**\n\t * @return returns the source information for constraints defined on the table\n\t */\n\tpublic Collection<ConstraintSource> getConstraints();\n\n\t/**\n\t * Obtain the filters for this entity.\n\t *\n\t * @return returns an array of the filters for this entity.\n\t */\n\tpublic FilterSource[] getFilterSources();\n\n\tpublic List<JaxbHbmNamedQueryType> getNamedQueries();\n\n\tpublic List<JaxbHbmNamedNativeQueryType> getNamedNativeQueries();\n\n\tpublic TruthValue quoteIdentifiersLocalToEntity();\n\n}", "@JsonGetter(\"price_money\")\r\n public Money getPriceMoney() {\r\n return priceMoney;\r\n }", "@Mapper\npublic interface ProductMapper {\n\n @Select(\"select * from t_product\")\n List<Product> findAll();\n\n void save(String productName, Integer productInventory);\n\n void save(Product product);\n}", "public interface ApiBaseUserRolePostSwitchPoService extends feihua.jdbc.api.service.ApiBaseService<BaseUserRolePostSwitchPo, BaseUserRolePostSwitchDto, String> {\n\n /**\n * 根据用户查询\n * @param userId\n * @return\n */\n BaseUserRolePostSwitchPo selectByUserId(String userId);\n}", "public interface AutoParamsRepository {\n AvtoParams getAvtoParamsById(@Param(\"id\")UUID id);\n /* void addAvtoParams(@Param(\"avtoParams\") AvtoParams avtoParams);\n void updateAvtoParams(@Param(\"avtoParams\") AvtoParams avtoParams);\n void deleteAvtoParams(@Param(\"id\")UUID id);*/\n}", "@Bean\n\tpublic ExtendedMetadata extendedMetadata() {\n\t\tExtendedMetadata extendedMetadata = new ExtendedMetadata();\n\t\textendedMetadata.setIdpDiscoveryEnabled(true);\n\t\textendedMetadata.setSignMetadata(false);\n\t\textendedMetadata.setEcpEnabled(true);\n\t\treturn extendedMetadata;\n\t}", "@Mapper(componentModel = \"spring\", uses = {ClientMapper.class, UserAppMapper.class, DistrictMapper.class})\npublic interface CampusMapper extends EntityMapper<CampusDTO, Campus> {\n\n @Mapping(source = \"client\", target = \"clientDto\")\n @Mapping(source = \"district\", target = \"districtDto\")\n CampusDTO toDto(Campus campus);\n\n @Mapping(source = \"clientDto\", target = \"client\")\n @Mapping(source = \"districtDto\", target = \"district\")\n @Mapping(target = \"fields\", ignore = true)\n Campus toEntity(CampusDTO campusDTO);\n\n default Campus fromId(Long id) {\n if (id == null) {\n return null;\n }\n Campus campus = new Campus();\n campus.setId(id);\n return campus;\n }\n}", "public interface OrderMasterRepository extends JpaRepository<OrderMaster,String> {\n\n\n\n\n\n}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Repository(value = \"userMapper\")\npublic interface UserMapper {\n public UserVO getUserInfo(String username);\n public List<String> readAuthority(String username);\n public String test();\n}", "public interface ValueSetter<TEntity, T> {\n void setValue(TEntity entity, T value);\n}", "@Mapper(componentModel = \"spring\", uses = {})\npublic interface OrderPaymentMapper extends EntityMapper<OrderPaymentDTO, OrderPayment> {\n\n\n\n default OrderPayment fromId(Long id) {\n if (id == null) {\n return null;\n }\n OrderPayment orderPayment = new OrderPayment();\n orderPayment.setId(id);\n return orderPayment;\n }\n}", "@JsonGetter(\"salary\")\n public int getSalary ( ) { \n return this.salary;\n }", "@Mapper(componentModel = \"spring\", uses = {UserMapper.class, CustomerMapper.class})\npublic interface WorkDayMapper extends EntityMapper<WorkDayDTO, WorkDay> {\n\n @Mapping(source = \"user.id\", target = \"userId\")\n @Mapping(source = \"user.login\", target = \"userLogin\")\n @Mapping(source = \"customer.id\", target = \"customerId\")\n WorkDayDTO toDto(WorkDay workDay);\n\n @Mapping(source = \"userId\", target = \"user\")\n @Mapping(source = \"customerId\", target = \"customer\")\n WorkDay toEntity(WorkDayDTO workDayDTO);\n\n default WorkDay fromId(Long id) {\n if (id == null) {\n return null;\n }\n WorkDay workDay = new WorkDay();\n workDay.setId(id);\n return workDay;\n }\n}", "@Test\n\tpublic void testGettersAddress() {\n\t\tassertTrue(beanTester.testGetters());\n\t}", "@RooJpaRepository(entity = ProductTaxRates.class)\npublic interface ProductTaxRatesRepository {\n}", "public interface WhereHqlGetter {\n /**\n * 生成查询的hql语句\n *\n * @param entityName 要查询的实体名称\n * @param modelName 实体在查询中的别名\n * @param enableSort 启用排序\n * @return\n */\n KeyValuePair<String, Map<String, Object>> getWhereHql(String entityName, String modelName, boolean enableSort);\n\n /**\n * 生成查询条数的语句\n * @param entityName\n * @param modelName\n * @return\n */\n KeyValuePair<String, Map<String, Object>> getCountHql(String entityName, String modelName);\n}", "public interface MetaRepository extends JpaRepository<T_metas, Integer> {\n\n}", "public interface EmployeeRepository extends CrudRepository<Employee, Long>{\n}", "public interface IEntity {\n\n Location getLocation();\n\n void setLocation(Location newLocation);\n\n}", "@Test\n\tpublic void testGettersAndSetters() {\n\t\tnew BeanTester().testBean(ShortestPathOutput.class, configuration);\n\t}", "@Mapper\npublic interface BCategoriesMapper {\n\n @Select(\"select * from t_categories\")\n List<CategoriesPo> findAll();\n\n @Select(\"select id,categoriesName,cAbbreviate from t_categories where id=#{id}\")\n CategoriesPo getById(@Param(\"id\") int id);\n\n @Insert(\"insert ignore into t_categories(categoriesName,cAbbreviate) values(#{categoriesName},#{cAbbreviate})\")\n boolean save(@Param(\"categoriesName\") String categoriesName, @Param(\"cAbbreviate\") String cAbbreviate);\n\n @Update(\"update t_categories set categoriesName=#{categoriesName},cAbbreviate=#{cAbbreviate} where id=#{id}\")\n boolean edit(@Param(\"id\") int id, @Param(\"categoriesName\") String categoriesName, @Param(\"cAbbreviate\") String cAbbreviate);\n\n @Delete(\"delete from t_categories where id=#{id}\")\n boolean deleteById(@Param(\"id\") int id);\n}", "@RooJpaRepositoryCustom(entity = LoanItem.class)\npublic interface LoanItemRepositoryCustom {\n}", "@SuppressWarnings(\"deprecation\")\npublic interface SyntheticModelProviderPlugin extends Plugin<ModelContext> {\n /**\n * Creates a synthetic model\n *\n * @param context - context to create the model from\n * @return model - when the plugin indicates it supports it, it must return a model\n */\n springfox.documentation.schema.Model create(ModelContext context);\n\n /**\n * Creates a synthetic model properties\n *\n * @param context - context to create the model properties from\n * @return model - when the plugin indicates it supports it, it must provide properties by name\n */\n List<springfox.documentation.schema.ModelProperty> properties(ModelContext context);\n\n\n /**\n * Creates a synthetic model\n *\n * @param context - context to create the model from\n * @return model - when the plugin indicates it supports it, it must return a model\n */\n ModelSpecification createModelSpecification(ModelContext context);\n\n /**\n * Creates a synthetic model properties\n *\n * @param context - context to create the model properties from\n * @return model - when the plugin indicates it supports it, it must provide properties by name\n */\n List<PropertySpecification> propertySpecifications(ModelContext context);\n\n /**\n * Creates a dependencies for the synthetic model\n *\n * @param context - context to create the model dependencies from\n * @return model - when the plugin indicates it supports it, it may return dependent model types.\n */\n Set<ResolvedType> dependencies(ModelContext context);\n}", "@Override\n public Entity getEntity() {\n return super.getEntity();\n }", "public interface WarehouseService {\n\n /**\n * This method returns all warehouses data from database by calling respective repository methods.\n *\n * @return set of {@link Warehouse}s\n */\n Set<Warehouse> getAllWarehouses();\n\n}", "@Override\n public void loadEntityDetails() {\n \tsuper.loadEntityDetails();\n }" ]
[ "0.6292659", "0.6071854", "0.5625209", "0.557131", "0.55427444", "0.5501527", "0.5471344", "0.5432428", "0.54194385", "0.5379607", "0.5354896", "0.53309226", "0.5316765", "0.5293123", "0.52816546", "0.5280453", "0.5273637", "0.52729714", "0.52660954", "0.5252347", "0.5250309", "0.52476126", "0.5245282", "0.52261096", "0.52251434", "0.52133685", "0.5198365", "0.51926416", "0.5189167", "0.5188089", "0.51836044", "0.51767236", "0.5161605", "0.5154383", "0.5150353", "0.51500833", "0.5132117", "0.51250046", "0.5124372", "0.5117181", "0.5112386", "0.5110833", "0.5105189", "0.510152", "0.5099703", "0.50956863", "0.50827783", "0.50818336", "0.5080337", "0.50798947", "0.50745875", "0.5074444", "0.50689644", "0.50640815", "0.5061698", "0.5060869", "0.5056358", "0.50561494", "0.5054887", "0.5053622", "0.5051229", "0.50483096", "0.5045012", "0.5042973", "0.5032054", "0.503157", "0.50284904", "0.502291", "0.502255", "0.50207186", "0.5014061", "0.50133497", "0.5011983", "0.50106", "0.50091255", "0.50070566", "0.5005829", "0.50017846", "0.4990579", "0.4989696", "0.49888876", "0.49840644", "0.49828225", "0.49802", "0.49777278", "0.49766824", "0.4975176", "0.4974944", "0.4971221", "0.49662605", "0.4964487", "0.49591544", "0.4954744", "0.4952692", "0.49453855", "0.49433303", "0.49344325", "0.49334365", "0.49320164", "0.49307907", "0.49284685" ]
0.0
-1
TODO Autogenerated method stub
@Override public void openChest() { }
{ "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 closeChest() { }
{ "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
if want to whitelist a specific item only, do here.
@Override public boolean isItemValidForSlot(int i, ItemStack itemstack) { return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setWhitelistEnabled(Boolean whitelistEnabled) {\n this.whitelistEnabled = whitelistEnabled;\n }", "public boolean canAttackWithItem() {\n/* 253 */ return false;\n/* */ }", "public boolean canAttackWithItem() {\n/* 215 */ return false;\n/* */ }", "public boolean isAllowed(Player owner, Item item) {\r\n if (item.getValue() > 50000) {\r\n owner.getActionSender().sendMessage(\"This item is too valuable to trust to this familiar.\");\r\n return false;\r\n }\r\n if (!item.getDefinition().isTradeable()) {\r\n owner.getActionSender().sendMessage(\"You can't trade this item, not even to your familiar.\");\r\n return false;\r\n }\r\n if (!owner.getFamiliarManager().getFamiliar().getDefinition().getName().toLowerCase().contains(\"abyssal\")) {\r\n if (item.getId() == 1436 || item.getId() == 7936 || !item.getDefinition().getConfiguration(ItemConfiguration.BANKABLE, true)) {\r\n owner.getActionSender().sendMessage(\"You can't store \" + item.getName().toLowerCase() + \" in this familiar.\");\r\n return false;\r\n }\r\n }\r\n return true;\r\n }", "@Override\n public boolean use(CanTakeItem o){\n return false; \n }", "public static boolean Block_Whitelist(Block block, EntityPlayer player, int meta){\n\t\t\n\t\tif(!player.inventory.hasItem(Item.getItemFromBlock(block))){\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\tif(Loader.isModLoaded(Chisel))\n\t\t {\n\t\t\t//if(block instanceof ICarvable ){return true;}\n\t\t }\n\t\t\n\t\tif(block instanceof BlockRotatedPillar\n\t\t\t\t||block instanceof BlockStairs\n\t\t\t\t||block == Blocks.quartz_block){\n\t\t\tint newMeta = block.damageDropped(meta);\n\t\t\tItemStack stacky = new ItemStack (block,0, newMeta); \n\t\t\t//System.out.println(\"new\"+newMeta);\n\t\t\tif(InventoryUtil.StackScan(stacky, player.inventory) >0){return true;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\n\t\treturn false;\n\t}", "void markDisabledItems( Collection< ? extends E > items );", "void markDisabledItems( @SuppressWarnings( \"unchecked\" ) final E... items );", "public boolean itemIsAllowed(int itemId) {\n\t\tswitch (itemId) {\n\t\tcase 15272: // Rocktail\n\t\tcase 7060: // Tuna potato\n\t\tcase 6685:\n\t\tcase 6687:\n\t\tcase 6689:\n\t\tcase 6691: // Saradomin brew\n\t\tcase 3024:\n\t\tcase 3026:\n\t\tcase 3028:\n\t\tcase 3030: // Super restore\n\t\tcase 391: // Manta Ray\n\t\tcase 385: // Shark\n\t\tcase 229: // Vial\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "public PerishableItem(){\n super();\n //perishable = false;\n }", "@Override\n protected boolean preUseCheck(Event event, ItemStack item) {\n return event instanceof EntityShootBowEvent && new Random().nextDouble()<level/20 && ((EntityShootBowEvent)event).getEntity().hasPermission(\"rayken.unsafe\");\n }", "private void addWhitelistEntries(VDDHash whitelist) {\n for (Object entry: whitelist.values()) {\n this.whitelist.add(new TextFinder((String)entry));\n }\n }", "@Override\n\tpublic String[] OnExclusions() {\n\t\treturn new String[] {\"sqlid\", \"item\"};\n\t}", "@Bean\n public Whitelist whitelist() {\n return new Whitelist();\n }", "boolean canCarry(Item specifiedItem);", "@Override\r\n\tpublic boolean canTakeItems() {\n\t\treturn false;\r\n\t}", "public abstract boolean isItemFiltered(pt.keep.oaiextended.AgentItem item);", "@Override\n public boolean shouldFilter() {\n return true;\n }", "public boolean isWhitelisted(int meta) {\n return this.meta.contains(meta);\n }", "public abstract boolean attack(KillableItem i);", "default boolean doesItemPassFilter(@Nullable IItemHandler inv, @Nonnull ItemStack item) {\n return getMaxCountThatPassesFilter(inv, item) > 0;\n }", "@Override\n\tpublic boolean shouldFilter() {\n\t\treturn true;\n\t}", "boolean isItemDisabled( final Object item );", "public boolean isWhitelisted ( ) {\n\t\treturn extract ( handle -> handle.isWhitelisted ( ) );\n\t}", "@Override\r\n protected <U extends InventoryItem> boolean showUnsupportedItem(U item) {\n return SFilterUtil.buildItemTextFilter(txtSearch.getText()).apply(item);\r\n }", "public void isAllowed(String user) {\n \r\n }", "protected void addAllowedArmor(Material armor) {\r\n\t\tthis.allowedArmor.add(armor);\r\n\t}", "public void setAllowedFilesList(String aLLOWED) {\n\t\t\r\n\t}", "public void setRestricted(boolean restricted) {\n _restricted = (restricted && _dropType == DropType.ITEM);\n }", "protected boolean allow(String value) {\n if(includes.isEmpty()) {\n if(excludes.isEmpty()) {\n return true;\n } else {\n return !excludes.contains(value);\n }\n } else {\n boolean rv = includes.contains(value);\n if(!rv) return false;\n if(excludes.isEmpty()) {\n return true;\n } else {\n return !excludes.contains(value);\n }\n }\n }", "public void addButcheryBlacklist(Class...clazz);", "public boolean whitelist(int meta) throws FrameException {\n if (meta < 0)\n throw new FrameException(BedCraftBeyond.MOD_ID + \".frames.errors.invalid_meta\", id, meta);\n\n if (meta == OreDictionary.WILDCARD_VALUE) {\n reset();\n return true;\n }\n\n if (isWhitelisted(meta))\n throw new FrameException(I18n.translateToLocalFormatted(BedCraftBeyond.MOD_ID + \".frames.errors.already_added_meta\", id, meta, \"\"));\n\n return whitelist(Range.closed(meta, meta));\n }", "public void addProgenyBlacklist(Class...clazz);", "private boolean addAllowedBypass(SshKey key, ApplicationUser stashUser) {\n String bambooUser = pluginSettingsService.getAuthorizedUser();\n String userGroup = pluginSettingsService.getAuthorizedGroup();\n if( bambooUser != null && bambooUser.equals(stashUser.getName())){\n log.debug(\"Username matches configured 'bambooUser', adding record\");\n log.info(\"Bamboo Key {} created by an authorized bamboo system ID {} \", key.getId(), stashUser.getSlug());\n enterpriseKeyRepository.saveExternallyGeneratedKeyDetails(key,stashUser,SshKeyEntity.KeyType.BAMBOO);\n return true;\n }else if( userGroup != null && userService.existsGroup(userGroup) && userService.isUserInGroup(stashUser, userGroup)){\n log.debug(\"Username matches configured 'authorizedGroup', adding record\");\n log.info(\"Bypass Key {} created by an authorized user {} in authorized group\", key.getId(), stashUser.getSlug());\n enterpriseKeyRepository.saveExternallyGeneratedKeyDetails(key,stashUser,SshKeyEntity.KeyType.BYPASS);\n return true;\n }\n log.debug(\"User not in excused roles, do not allow.\");\n return false;\n }", "public void setWhitelisted ( boolean value ) {\n\t\texecute ( handle -> handle.setWhitelisted ( value ) );\n\t}", "@Override public Set<String> forbiddenItems() {\n Set<String> forbiddenItems = new HashSet<>(first.forbiddenItems());\n forbiddenItems.addAll(next.forbiddenItems());\n return forbiddenItems;\n }", "private IgnoreListHelper() {\n\t}", "public static final void setWhitelist(final WhiteList listType, final String list) {\n setWhitelist(p(), listType, list);\n }", "protected void addAllowedWeapon(Material weapon) {\r\n\t\tthis.allowedWeapons.add(weapon);\r\n\t}", "@Override\n public boolean areAllItemsEnabled() {\n return false;\n }", "public boolean filter(AssignmentListEntry entry) {\n\t\tboolean isAdmin = UserData.get().isAdmin();\r\n\t\tif (isAdmin) {\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\t\r\n\t\tString userId = UserData.get().getId();\r\n\t\tif (userId == null) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\t\r\n\t\treturn userId.equals(entry.getAuthorID());\r\n\t}", "@Test\n\tpublic void testNotRestricted() throws Exception {\n\t\titemService.findById(1L);\n\t}", "protected void validateItem(Item[] param) {\r\n }", "public void browseImportantItem(){\n for(Item item : importantItemList){\n if(item.getImportance().equals(\"yes\")){\n printOut(item);\n }\n }\n }", "@Test\n\tpublic void testUseValidItem() {\n\t\tLightGrenade lightGrenade = new LightGrenade();\n\t\tSquare square = new Square();\n\t\t\n\t\tPlayer player = new Player(square, 0);\n\t\tplayer.addItem(lightGrenade);\n\t\t\n\t\tplayer.useItem(lightGrenade);\n\t\tassertFalse(player.hasItem(lightGrenade));\n\t}", "public void newItemNotAdded(String itemValue);", "@Override\n protected boolean preUseCheck(Event event, ItemStack item) {\n return event instanceof EntityDamageByEntityEvent;\n }", "public void insertguarantor(CustomerApplicationGuarantor filter) {\n\t\t\n\t}", "@Override\n\tpublic void attachFilter(ConfigContext ctx, Entity entity) {\n\t}", "public void setWhitelistRegexp(String whitelistRegexp) {\n\t\tthis.whitelistRegexp = whitelistRegexp;\n\t}", "public void softAddItem(ItemStack item, Player player){\n\t\tHashMap<Integer,ItemStack> excess = player.getInventory().addItem(item);\n\t\tfor( Map.Entry<Integer, ItemStack> me : excess.entrySet() ){\n\t\t\tplayer.getWorld().dropItem(player.getLocation(), me.getValue() );\n\t\t}\n\t}", "private void filterItems()\n {\n System.out.println(\"filtered items (name containing 's'):\");\n Set<ClothingItem> items = ctrl.filterItemsByName(\"s\");\n items.stream().forEach(System.out::println);\n }", "public void setItemWanted(Item item) {\n itemWanted = item;\n }", "@Override\n public void applyItem() {\n Player player;\n if (Battle.getRunningBattle().getTurn() % 2 == 1)\n player = Battle.getRunningBattle().getPlayer2();\n else\n player = Battle.getRunningBattle().getPlayer1();\n\n if (player.getInGameCards().size() == 0)\n return;\n Random random = new Random();\n int randomIndex = random.nextInt(player.getInGameCards().size());\n while (!(getPlayer().getInGameCards().get(randomIndex) instanceof Warrior)) {\n randomIndex = random.nextInt(getPlayer().getInGameCards().size());\n }\n\n Buff buff = new PoisonBuff(1, true);\n buff.setWarrior((Warrior) player.getInGameCards().get(randomIndex));\n Battle.getRunningBattle().getPassiveBuffs().add(buff);\n }", "public boolean whitelist(Range<Integer> range) {\n meta.add(range);\n return isWhitelisted(range);\n }", "public boolean shouldFilter() {\n return true;\n }", "void setNotVeryEffectiveFrom(List<Type> notVeryEffectiveFrom) {\n this.notVeryEffectiveFrom = notVeryEffectiveFrom;\n }", "@Override\n protected boolean preUseCheck(Event event, ItemStack item) {\n return event instanceof EntityShootBowEvent;\n }", "int insertSelective(BizUserWhiteList record);", "public String getWhiteList0() {\n return getString(\"whitelist.0\");\n }", "public void filterStringForList(String input){\n if (input.toLowerCase().contains(\"urgent\")){\n priorityAlerts.add(input);\n }\n else{\n alerts.add(input);\n }\n }", "public SerializablePredicate<T> getItemEnabledProvider() {\n return itemEnabledProvider;\n }", "@Override\n\tpublic boolean canHaveAsContent(Item item) {\n\t\treturn false;\n\t}", "static void exclude(User user, String content, MessageChannel chan) {\n if(!content.toLowerCase().startsWith(\"!exclude \"))\n return;\n\n ArrayList<String> tagList = new ArrayList<>(Arrays.asList(\n content.substring(\"!exclude \".length()).split(\" \")));\n ArrayList<String> excludeList = new ArrayList<>(Arrays.asList(\n excludeMap.getOrDefault(user.getIdLong(), \"\").split(\" \")));\n boolean changed = false;\n\n for(String tag : tagList){\n tag = tag.replaceAll(\"\\\\s\",\" \");\n if(!tag.startsWith(\"-\")){\n tag = \"-\" + tag;\n }\n if(!excludeList.contains(tag)){\n excludeList.add(tag);\n changed = true;\n }\n }\n\n if(changed){\n StringBuilder sb = new StringBuilder();\n for(String exclude : excludeList)\n sb.append(exclude).append(\" \");\n\n // will update list\n excludeMap.put(user.getIdLong(), sb.toString().trim());\n if(!saveMap(excludeMap, Config.exclude_data_filename)){\n chan.sendMessage(\"Couldn't save your exclude list, probably due to me being in test mode.\" +\n \" Sorry!\").queue();\n }\n else {\n chan.sendMessage(\"Ok. Exclude list is now: \" + sb).queue();\n }\n }\n else {\n chan.sendMessage(\"Exclude list is unchanged: \" + excludeMap.get(user.getIdLong())).queue();\n }\n\n }", "protected boolean canSilkHarvest()\n {\n return true;\n }", "protected boolean canSilkHarvest()\n {\n return true;\n }", "@Override\n\tpublic boolean ignoreForeignItems() {\n\t\treturn true;\n\t}", "List<BizUserWhiteList> selectByExample(BizUserWhiteListExample example);", "private boolean isAllowed(ProcessInstance instance) {\r\n return true; // xoxox\r\n }", "public boolean canContainItem(String item) {\n boolean badRequirementSet;\n for(List<String> requirementSet : listOfRequirementSets) {\n if(requirementSet.contains(item)) {\n continue; // This requirement set doesn't work; try another one.\n }\n if(item.equals(\"Ankh Jewel\")) {\n badRequirementSet = false;\n for(String requirement : requirementSet) {\n if(requirement.contains(\"Amphisbaena Defeated\") || requirement.contains(\"Sakit Defeated\")\n || requirement.contains(\"Ellmac Defeated\") || requirement.contains(\"Bahamut Defeated\")\n || requirement.contains(\"Viy Defeated\") || requirement.contains(\"Baphomet Defeated\")\n || requirement.contains(\"Palenque Defeated\") || requirement.contains(\"Tiamat Defeated\")) {\n badRequirementSet = true;\n break;\n }\n }\n if(badRequirementSet) {\n continue; // Minimize Ankh Jewel lock.\n }\n }\n return true;\n }\n return false;\n }", "public void addBlacklistItem(EbayItem item, Search search, String reason) {\r\n\t\tSearchItemBlacklist sib = new SearchItemBlacklist();\r\n\t\tsib.setItem(item);\r\n\t\tsib.setSearch(search);\r\n\t\tsib.setReason(reason);\r\n\t\tif (!search.getBlacklistItems().contains(sib)) {\r\n\t\t\tsearch.getBlacklistItems().add(sib);\r\n\t\t\titemBanRepository.save(sib);\r\n\t\t\tsearchRepository.save(search);\r\n\t\t}\r\n\t}", "public static boolean isIgnored(org.bukkit.entity.Entity entity) {\n\t\treturn CommonPlugin.getInstance().getEntityBlacklist().isFiltered(entity);\n\t}", "private boolean isWhiteList(String email) {\n ApplicationConfiguration whiteList = appConfigDAO.findOrCreateById(\"email-white-list\");\n if(whiteList != null) {\n email = email.toLowerCase();\n // There is no value, which means no whitelist..\n if(whiteList.getValue() == null || whiteList.getValue() == \"\") {\n return false;\n }\n // Check all allowed e-mail addresses on settings..\n String[] allowedAddresses = whiteList.getValue().toLowerCase().split(\",\");\n return Arrays.asList(allowedAddresses).contains(email);\n }\n // In case there is no setting, invalidate as there is no white list.\n return false;\n }", "private boolean isOnIgnoreList(final String part) {\n return IGNORE_LIST.contains(part);\n }", "@Override\r\n\tpublic void specialAbility() {\n\t}", "private Protos.Offer filterBadResources(Protos.Offer offer) {\n Collection<Protos.Resource> goodResources = new ArrayList<>();\n Collection<Protos.Resource> badResources = new ArrayList<>();\n for (Protos.Resource resource : offer.getResourcesList()) {\n if (ResourceUtils.isProcessable(resource, frameworkRolesWhitelist)) {\n goodResources.add(resource);\n } else {\n badResources.add(resource);\n }\n }\n if (badResources.isEmpty()) {\n // Common shortcut: All resources are good. Just return the original offer.\n return offer;\n }\n\n // Build a new offer which only contains the good resources. Log the bad resources.\n LOGGER.info(\n \"Filtered {} resources from offer {}:\",\n badResources.size(),\n offer.getId().getValue());\n for (Protos.Resource badResource : badResources) {\n LOGGER.info(\" {}\", TextFormat.shortDebugString(badResource));\n }\n return offer.toBuilder()\n .clearResources()\n .addAllResources(goodResources)\n .build();\n }", "private boolean canGivePlayer(ItemStack item,EntityPlayer entityplayer){\n ItemStack itemstack3 = entityplayer.inventory.getItemStack();\n if(itemstack3 == null){\n \treturn true;\n }\n else if(NoppesUtilPlayer.compareItems(itemstack3, item, false, false)){\n int k1 = item.stackSize;\n if(k1 > 0 && k1 + itemstack3.stackSize <= itemstack3.getMaxStackSize())\n {\n return true;\n }\n }\n return false;\n }", "@Override\n protected FilterResults performFiltering(CharSequence constraint) {\n if (constraint.length() == 0) {\n array = arrayList_copy;\n\n } else {\n\n if (filterType == 0) {\n array = getItemFilter(constraint.toString().toLowerCase());\n } else {\n array = getCodeFilter(constraint.toString().toLowerCase());\n }\n\n }\n FilterResults filterResults = new FilterResults();\n filterResults.values = array;\n\n\n return filterResults;\n }", "public void referToSpecialist(){\r\n\t\t//here is some code that we do not have access to\r\n\t}", "public void addBusinessFilterToPolicyEntries(ViewerFilter filter);", "public void addItemFromLoad(String key, Item item) {\n itemMap.get(key).add(item);\n\n if(item.getImportance().equals(\"yes\")) importantItemList.add(item);\n\n }", "public boolean isItemValid(ItemStack par1ItemStack)\n {\n return true;\n }", "static void excludes(User user, String content, MessageChannel chan) {\n if(content.toLowerCase().equals(\"!excludes\")){\n String excludes = excludeMap.get(user.getIdLong());\n if(excludes == null){\n chan.sendMessage(\"None given.\").queue();\n return;\n }\n chan.sendMessage(\"Your exclude tags: \" + excludes).queue();\n }\n else if(content.toLowerCase().equals(\"!excludes clear\")){\n excludeMap.remove(user.getIdLong());\n saveMap(excludeMap, Config.exclude_data_filename);\n chan.sendMessage(\"Ok, removed all excludes.\").queue();\n }\n }", "protected boolean canSilkHarvest() {\n\t\treturn true;\n\t}", "boolean canBuy( final Item item )\n {\n return !ship.contains( item ) && item.getPrice() <= credits;\n }", "public void addFilterToPolicyEntries(ViewerFilter filter);", "public abstract boolean canAddItem(Player player, Item item, int slot);", "@Override\n\tpublic boolean isItemValid(ItemStack stack) {\n\t\treturn true;\n\t}", "public boolean isItemLocal ();", "boolean doFilter() { return false; }", "@Override\n protected FilterResults performFiltering(CharSequence constraint) {\n constraint = constraint.toString().toLowerCase();\n FilterResults result = new FilterResults();\n if (constraint != null && constraint.toString().length() > 0) {\n List<Message> filt = new ArrayList<Message>(); //filtered list\n for (int i = 0; i < originalData.size(); i++) {\n Message m = originalData.get(i);\n if (m.getSender().getEmailAddress().getName().toLowerCase().contains(constraint)) {\n filt.add(m); //add only items which matches\n }\n }\n result.count = filt.size();\n result.values = filt;\n } else { // return original list\n synchronized (this) {\n result.values = originalData;\n result.count = originalData.size();\n }\n }\n return result;\n }", "public static final void setWhitelist(final CMProps props, final WhiteList listType, final String list) {\n if (listType == null)\n return;\n if ((list == null) || (list.trim().length() == 0))\n return;\n final List<String> parts = CMParms.parseCommas(list.trim(), true);\n final List<Pattern> partsCompiled = new ArrayList<Pattern>();\n for (final String part : parts) {\n if (part.trim().length() == 0)\n continue;\n partsCompiled.add(Pattern.compile(part.trim(), Pattern.CASE_INSENSITIVE | Pattern.DOTALL | Pattern.CANON_EQ));\n }\n props.whiteLists.put(listType, partsCompiled.toArray(new Pattern[0]));\n }", "public void attackPlayerByPlayer(Player attacker, Player player, ItemStack it) {\r\n\t\tif(it==null) return;\r\n\t\t\r\n\t\tAttributeStorage storage = AttributeStorage.newTarget(it, SpellItems.itemUUID);\r\n\t\tif(!storage.getData(\"\").startsWith(\"si_customenchant_\")) return;\r\n\t\tString enchants = storage.getData(\"\").replace(\"si_customenchant_\", \"\");\r\n\t\t\r\n\t\tfor(String st : enchants.split(\"|\")) {\r\n\t\t\tString[] info = st.split(\":\");\r\n\t\t\tCustomEnchant ce = getEnchantmentByName(info[0]);\r\n\t\t\tif(ce!=null) {\r\n\t\t\t\tcastOn(attacker, player, ce);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "@Override // see item.java\n\tpublic void useItem() {\n\n\t}", "@Override\n\tpublic boolean ignoreForeignItems() {\n\t\treturn false;\n\t}", "public void filter(CharSequence constraint) {\n mItemFilter.filter(constraint);\n }", "public void setAllowIn(String allowIn) {\n this.allowIn = allowIn == null ? null : allowIn.trim();\n }", "private void doItemVerification() {\n\t\tif (actor != null && !actor.attributes.getInventory().contains(Items.FISHING_ROD)) {\r\n\t\t\tactor.say(\"fishing.norod\", getAssigningPlayer());\r\n\t\t\treset();\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tactor.setHeldItem(actor.attributes.getInventory()\r\n\t\t\t\t.getStackInSlot(actor.attributes.getInventory().getFirstSlotContainingItem(Items.FISHING_ROD))\r\n\t\t\t\t.getItem());\r\n\t}", "public DISCARD addIgnoreMember(Address sender) {ignoredMembers.add(sender); return this;}", "@Override\n\tpublic boolean areAllItemsEnabled() {\n\t\treturn false;\n\t}", "boolean canCharge(ItemStack me);" ]
[ "0.6248016", "0.61343664", "0.6074197", "0.5848661", "0.5835259", "0.57836336", "0.57803637", "0.57701963", "0.5719005", "0.5564393", "0.5556818", "0.5552652", "0.54830515", "0.5479773", "0.5462622", "0.54556733", "0.5449016", "0.5438992", "0.5432249", "0.5416979", "0.5404217", "0.5401483", "0.5397977", "0.5391595", "0.5366811", "0.53463364", "0.53329027", "0.5325169", "0.53247434", "0.53204465", "0.5293191", "0.5279283", "0.5277672", "0.5270591", "0.52410954", "0.5202415", "0.5201268", "0.518577", "0.5180083", "0.5160328", "0.51592886", "0.5148326", "0.51483095", "0.50947213", "0.5090889", "0.5090441", "0.5080256", "0.5053112", "0.50460535", "0.5045144", "0.50419325", "0.5040571", "0.5034064", "0.5030059", "0.50179315", "0.50178325", "0.50056833", "0.50034666", "0.50031614", "0.4988611", "0.49883172", "0.49871704", "0.49821466", "0.4970442", "0.49696282", "0.49696282", "0.49682263", "0.49648613", "0.49623686", "0.49600917", "0.49599156", "0.49570322", "0.4945511", "0.49450237", "0.4929751", "0.492964", "0.4924584", "0.49218187", "0.49211723", "0.4918223", "0.491603", "0.4911423", "0.49113807", "0.49071887", "0.49065176", "0.4904507", "0.48960394", "0.48893675", "0.48865458", "0.488306", "0.48815706", "0.48742142", "0.4871136", "0.48694447", "0.48666626", "0.48646227", "0.48636976", "0.48629278", "0.48490724", "0.4838383", "0.48381042" ]
0.0
-1
Patient fPatient = hm.getFirstPatient(); System.out.println("Patient name: " + fPatient.getName());
private void launch() { boolean running = true; while (running) { System.out.println("What would you like to do?"); System.out.println("1 - Add a new patient file"); System.out.println("2 - Delete an existing patient file"); System.out.println("0 - Exit"); System.out.println("\n >"); //Scanner reader = new Sca(System.in); // int input = reader.nextInt(); try { String userInput = System.console().readLine(); int userSelection = Integer.parseInt(userInput); switch (userSelection) { case 0: running = false; break; case 1: System.out.println("Please enter patient details."); System.out.println("You selected option 1 : Enter first name:"); String name = System.console().readLine(); System.out.println("Please Enter age:"); int age = Integer.parseInt(System.console().readLine()); System.out.println("Please Enter illness:"); String illness = System.console().readLine(); HospitalManager hm = new HospitalManager(); Patient firstPatient = hm.getFirstPatient(); hm.addPatient(firstPatient); System.out.println("\n"); System.out.println("Name: " + firstPatient.getName() + " Age: " + firstPatient.getAge() + " illness :" + firstPatient.getIllness()); System.out.println("\n"); break; case 2: break; default: System.out.println("Invalid option selected. Please try again."); } } catch (NumberFormatException ex) { running = false; System.out.println("Please enter a valid integer. Error processing input."); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "PatientInfo getPatientInfo(int patientId);", "public String getPatientName()\n {\n return patientName;\n }", "@SystemAPI\n\tPatient getPatient();", "Reference getPatient();", "public String getPatientName(){\n\t\treturn patientName;\n\t}", "public String getPatientName() {\n return patientName;\n }", "public java.lang.String getPatientID(){\n return localPatientID;\n }", "public java.lang.String getPatientID(){\n return localPatientID;\n }", "public java.lang.String getPatientName() {\r\n return localPatientName;\r\n }", "public String getFirstName()\n {\n return firstName;\n }", "public String getHospital() {\r\n return hospital;\r\n }", "public String getFirstName() \r\n {\r\n return firstName;\r\n }", "String getFirstName( String key ) {\n return developer.firstName;\n }", "public String getFirstName(){\r\n return firstname;\r\n }", "public String getFirstName()\n {\n return this.firstName;\n }", "public String getHospitalName() {\n return hospitalName;\n }", "public String getFirstName() { return firstName; }", "public String firstName() { return firstName; }", "public String getFirstName();", "public String getFirstName(){\n return(this.firstName);\n }", "public String getName(){\n return personName;\n }", "public Patient getName(Patient patient){\n\t\tSet<PersonName> s=patient.getNames();\n\t\tPersonName p = PersonName.newInstance(patient.getPersonName());\n\t\tp.setGivenName(generatePatientName());\n\t\tp.setMiddleName(generatePatientName());\n\t\tp.setFamilyName(generatePatientName());\n\t\tObject ob[]=s.toArray();\n\t\tfor (int i = 0; i < ob.length; i++) {\n\t\t\tPersonName p1=(PersonName)ob[i];\n\t\t\tpatient.removeName(p1);\n\t\t}\n\t\ts.clear();\n\t\ts.add(p);\n\t\tpatient.setNames(s);\n\t\treturn patient;\n\n\t}", "public void getFirstName() {\n\n\t}", "public String getFirstName()\r\n {\r\n return firstName;\r\n }", "public String getFirstName()\n {\n return firstName;\n }", "public String getFirstName()\n {\n return firstName;\n }", "public String getFirstName()\r\n {\r\n return firstName;\r\n }", "public String getFirstName()\r\n {\r\n return firstName;\r\n }", "public String getFirstName()\r\n {\r\n return firstName;\r\n }", "public String getStudentFirstName(){\r\n return studentFirstName.get();\r\n }", "java.lang.String getPatientId();", "public String getPatientId()\n {\n return patientId;\n }", "public String getFirstName(){\n\t\treturn this.firstName;\r\n\t}", "@Override\n\tpublic void showPatientDetails() {\n\t\tif (UtilityClinic.patFile == null) {\n\t\t\ttry {\n\t\t\t\tutil.accessExistingPatJson();\n\t\t\t} catch (FileNotFoundException e) {\n\t\t\t\tSystem.out.println(\"File not found\");\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\tutil.readFromPatJson(UtilityClinic.patFile);\n\t\tSystem.out.println();\n\t\tSystem.out.println(\"S.No Patient's name ID Mobile Age\");\n\t\tfor (int i = 1; i <= UtilityClinic.patJson.size(); i++) {\n\t\t\tJSONObject jsnobj = (JSONObject) UtilityClinic.patJson.get(i - 1);\n\t\t\tSystem.out.print(\" \" + i + \" \" + jsnobj.get(\"Patient's name\") + \" \" + jsnobj.get(\"Patient's ID\")\n\t\t\t\t\t+ \" \" + jsnobj.get(\"Mobile\") + \" \" + jsnobj.get(\"Age\") + \"\\n\");\n\t\t}\n\t\tSystem.out.println();\n\t}", "String getFirstName();", "String getFirstName();", "String getFirstName();", "public String getFirstName()\r\n {\r\n return firstName;\r\n }", "public PatientVO getPatientVO()\n {\n return patientVO;\n }", "public String getFirstName() {\n\t\t System.out.println(\"method getFirstName() called.\");\n\t\t return firstName;\n\t\t}", "public String getFirstName(){\n\t\treturn this.firstName;\n\t}", "public java.lang.String getFirstName();", "public String getFirstName() {\n return firstName;\n }", "public String getFirstName() {\n return firstName;\n }", "public String getFirstname() {\n return (String) get(\"firstname\");\n }", "public MedicalRecord getMedicalRecord(String patient, String index){\n int i = Integer.parseInt(index);\n if(database.containsKey(patient)){\n if(database.get(patient).size() > i){\n return database.get(patient).get(i);\n } else{\n System.out.println(\"No such Medical Records found for \" + patient);\n }\n } else {\n System.out.println(patient + \" Not found in database\");\n }\n return null;\n }", "public PatientDetails getSinglePatientDetails(String searchString, EntityManagerFactory entityManagerFactory) {\n String ID = searchString.split(\",\")[0].trim();\n\n EntityManager entityManager = entityManagerFactory.createEntityManager();\n\n Query query_record = entityManager.createNamedQuery(PATIENT_PHR_QUERY);\n query_record.setParameter(\"id\",ID);\n\n long start = System.currentTimeMillis();\n PatientDetails healthRecord = (PatientDetails) query_record.getSingleResult();\n System.out.println(\"\\n** PHR generated in --> \" + (System.currentTimeMillis()-start) + \" msec\");\n\n entityManager.close();\n return healthRecord;\n }", "public String getFirstName() {\n return this.firstName;\n }", "public String getFirstName() {\n return this.firstName;\n }", "@Override\r\n\tpublic String getFistName() {\n\t\treturn first_name;\r\n\t}", "@Override\n\tpublic String getPerson() throws RemoteException {\n\t\treturn \"[Person name=\" + name + \",sex=\" + sex + \",age=\" + age + \"]\";\n\t}", "public String getFirstName() {\n return _firstName;\n }", "public String getFirstName()\r\n\t{\r\n\t\treturn firstName.getModelObjectAsString();\r\n\t}", "public String getFirstName(){\n\t\treturn firstName;\n\t}", "public Reference patient() {\n return getObject(Reference.class, FhirPropertyNames.PROPERTY_PATIENT);\n }", "public String getFirstName(){\r\n\t\treturn firstName;\r\n\t}", "public Person getDoctor(){\n return doctor;\n }", "public String getfirstName(Integer integer) {\n\t\t// TODO Auto-generated method stub\n\t\tString patientName=null;\n\t\tString query = \"SELECT * FROM pmohan_patient_details WHERE pid = ?;\";\n\t\t\n\t\ttry(PreparedStatement statement = connection.prepareStatement(query))\n\t\t{\n\t\t\tstatement.setInt(1,integer);\n\t\t\tResultSet resultSet1 = statement.executeQuery();\n\t\t\twhile(resultSet1.next()){\n\t\t\t\tpatientName = resultSet1.getString(3);\n\t\t\t\n\t\t\t}\n\t\t\t\n\t\t} catch(SQLException e){\n\t\t\tSystem.out.println(e.getMessage());\n\t\t}\n\t\treturn patientName;\n\n\t}", "public Patient getPatient(String key)\n {\n final Gson gson = new Gson();\n final String json = mSharedPreferences.getString(key, null);\n\n return gson.fromJson(json, Patient.class);\n }", "public String getFirstName() {\r\n return firstName;\r\n }", "public String getFirstName() {\r\n return firstName;\r\n }", "public String getFirstName() {\r\n return firstName;\r\n }", "public String toString() {\r\n\t\treturn firstName;\r\n\t}", "public String getFirstName() {\n return firstName;\n }", "public String getFirstName() {\n return firstName;\n }", "public String getFirstName() {\n return firstName;\n }", "public String getFirstName() {\n return firstName;\n }", "public String getFirstName() {\n return firstName;\n }", "public String getFirstName() {\n return firstName;\n }", "public String getFirstName() {\n return firstName;\n }", "public String getFirstName() {\n return firstName;\n }", "public String getFirstName() {\n return firstName;\n }", "public String getFirstName() {\n return firstName;\n }", "public String getFirstName() {\n return firstName;\n }", "public String getFirstName() {\n return firstName;\n }", "public String getFirstName() {\n return firstName;\n }", "public String getFirstName() {\n return firstName;\n }", "public String getFirstName() {\n return firstName;\n }", "public String getFirstName() {\n return firstName;\n }", "public String getFirstName() {\n return firstName;\n }", "public String getFirstName() {\n return firstName;\n }", "public String getFirstName() {\n return firstName;\n }", "public String getFirstName() {\n return firstName;\n }", "public String getFirstName() {\n return firstName;\n }", "public String getFirstName() {\n return firstName;\n }", "public String getFirstName() {\n return firstName;\n }", "public String getFirstName() {\n return firstName;\n }", "public String getFirstName() {\n return firstName;\n }", "public String getFirstName() {\n return firstName;\n }", "public Human getPerson() {\n\t\treturn this.person;\n\t}", "public String showPerson(){\n return _person.toString();\n }", "public void personLookup() {\n\t\tSystem.out.print(\"Person: \");\n\t\tString entryName = getInputForName();\n\t\tphoneList\n\t\t\t.stream()\n\t\t\t.filter(n -> n.getName().equals(entryName))\n\t\t\t.forEach(n -> System.out.println(n));\n\t}", "public String getPatientId(){\n\t\treturn patientId;\n\t}", "public String getFirstName() {\r\n // Bouml preserved body begin 00040B02\r\n\t System.out.println(firstName);\r\n\t return firstName;\r\n // Bouml preserved body end 00040B02\r\n }", "public Person getPerson()\r\n\t{\r\n\t\treturn person;\r\n\t}", "java.lang.String getFirstName();", "java.lang.String getFirstName();", "public String getFirstName()\r\n\t{\r\n\t\treturn firstName;\r\n\t}", "@Override\n\tpublic String toString() {\n\t//\tString str = String.format(\"Patient ID#%s Name: %d %s Birthdate: %s Gender: %s\",\n\t//\t\tpatientID, firstName, lastName, birthdate.toString(), gender);\n\n String str = \"Patient ID: \" + patientID + \", Name: \" + firstName + \" \" + lastName +\n \", Birthdate: \" + birthdate + \", Gender: \" + gender;\n\t\treturn str;\n\t}", "public String getFirst(){ return this.first; }", "public String getFirstName() {\n return fName;\n }" ]
[ "0.70880944", "0.69417834", "0.6829831", "0.6791768", "0.67163694", "0.6635807", "0.65408605", "0.65408605", "0.64878803", "0.6304059", "0.62835336", "0.62827206", "0.6269275", "0.62626475", "0.6260565", "0.6244528", "0.62435263", "0.6221778", "0.6200935", "0.61970365", "0.6189574", "0.61875236", "0.6169012", "0.6160569", "0.6146791", "0.6146791", "0.61416245", "0.61416245", "0.61416245", "0.6124018", "0.60950893", "0.6080846", "0.6080269", "0.6074168", "0.6062991", "0.6062991", "0.6062991", "0.6050059", "0.60399085", "0.6038147", "0.60081106", "0.6001963", "0.5995655", "0.5995655", "0.5969431", "0.5966766", "0.59553653", "0.59481484", "0.59481484", "0.5946911", "0.59464115", "0.59370035", "0.5932658", "0.5914398", "0.59120655", "0.58858436", "0.5877099", "0.5876835", "0.58688724", "0.58679897", "0.58679897", "0.58679897", "0.58679456", "0.58536375", "0.58536375", "0.58536375", "0.58536375", "0.58536375", "0.58536375", "0.58536375", "0.58536375", "0.58536375", "0.58536375", "0.58536375", "0.58536375", "0.58536375", "0.58536375", "0.58536375", "0.58536375", "0.58536375", "0.58536375", "0.58536375", "0.58536375", "0.58536375", "0.58536375", "0.58536375", "0.58536375", "0.58536375", "0.58536375", "0.5848797", "0.5847495", "0.58468723", "0.5843168", "0.5834754", "0.5824655", "0.58227867", "0.58227867", "0.58172655", "0.5814728", "0.5801412", "0.57889414" ]
0.0
-1
Initializes relevant computation for a whole view model.
public static boolean initRelevantForWholeModel(View view, boolean computeDependencies) { boolean relevantChange = false; // filer settings which has their's feature filtered // check features in LeafGroup List<EFeature> featuresInView = view.getSharedFeatures(); for (EFeature feature : featuresInView) { boolean computedRelevant = ConfMLExpressionEvaluationUtil .evaluateFeatureRelevant(feature); if (computedRelevant != feature.isComputedRelevant()) { feature.setComputedRelevant(computedRelevant); relevantChange = true; } if (computeDependencies) { ConfMLExpressionSettingUtil.setSettingDependencies(view, feature); } } Map<String, EFeature> settingRefFeatureMap = new HashMap<String, EFeature>(); EList<EFeature> sharedFeatures = view.getSharedFeatures(); for (int i = 0; i < sharedFeatures.size(); i++) { settingRefFeatureMap.put(sharedFeatures.get(i).getRef(), sharedFeatures.get(i)); } for (ESetting setting : view.getSharedSettingInstances()) { // Top level setting evaluation boolean evaluateSettingRelevant = ConfMLExpressionEvaluationUtil .evaluateSettingRelevant(setting); // find feature for setting and its computed relevant EFeature feature = settingRefFeatureMap.get(setting.getFeatureRef()); if (feature != null) { evaluateSettingRelevant = evaluateSettingRelevant && feature.isComputedRelevant(); } if (setting.isComputedRelevant() != evaluateSettingRelevant) { setting.setComputedRelevant(evaluateSettingRelevant); relevantChange = true; } if (computeDependencies) { ConfMLExpressionSettingUtil.setSettingDependencies(view, setting); } if (setting instanceof ESequenceSetting) { System.out.println("Unimplemented type ESequenceSetting in initRelevantForWholeModel"); ESequenceSetting ss = (ESequenceSetting) setting; EList<EItemSetting> sequenceItems = ss.getItems(); for (int i = 0; i < sequenceItems.size(); i++) { EItemSetting si = sequenceItems.get(i); // sub settings EList<ESubSettingValue> subsettings = si.getSubSettings(); for (int j = 0; j < subsettings.size(); j++) { ESubSettingValue subsetting = subsettings.get(j); // boolean relevant = ConfMLExpressionEvaluationUtil // .evaluateSettingRelevant(subsetting); // if (subsetting.isComputedRelevant() != relevant) { // subsetting.setComputedRelevant(relevant); // relevantChange = true; // } // if (computeDependencies) { // ConfMLExpressionSettingUtil.setSettingDependencies( // // view, subsetting); // } } } } else if (setting instanceof EResourceSetting) { System.out.println("Unimplemented type EResourceSetting in initRelevantForWholeModel"); // EResourceSetting fileSystemEntrySetting = (EResourceSetting) setting; // FilePath sourceFilePath = fileSystemEntrySetting // .getSourceFilePath(); // FilePath targetFilePath = fileSystemEntrySetting // .getTargetFilePath(); // if (sourceFilePath != null) { // boolean relevant = ConfMLExpressionEvaluationUtil // .evaluateSettingRelevant(sourceFilePath); // if (sourceFilePath.isComputedRelevant() != relevant) { // sourceFilePath.setComputedRelevant(relevant); // relevantChange = true; // } // } // if (targetFilePath != null) { // boolean relevant = ConfMLExpressionEvaluationUtil // .evaluateSettingRelevant(targetFilePath); // if (targetFilePath.isComputedRelevant() != relevant) { // targetFilePath.setComputedRelevant(relevant); // relevantChange = true; // } // } } } return relevantChange; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void initView() {\n\t\t view.initView(model);\t \n\t }", "public void init() {\n\t\tdropViewCollections();\n\t\tbuildViewCollections();\n\t\tthis.populateViewCollections();\n\t}", "private void viewInit() {\n }", "private void initialize() {\n\t\tinitializeModel();\n\t\tinitializeBoundary();\n\t\tinitializeController();\n\t}", "@Override\n protected void initViewModel() {\n }", "private void init()\n\t{\n\t\tsetModel(new Model(Id.model, this, null));\n\t\tsetEnviroment(new Enviroment(Id.enviroment, this, model()));\n\t\tsetVaccinationCenter(new VaccinationCenter(Id.vaccinationCenter, this, model()));\n\t\tsetCanteen(new Canteen(Id.canteen, this, vaccinationCenter()));\n\t\tsetRegistration(new Registration(Id.registration, this, vaccinationCenter()));\n\t\tsetExamination(new Examination(Id.examination, this, vaccinationCenter()));\n\t\tsetVaccination(new Vaccination(Id.vaccination, this, vaccinationCenter()));\n\t\tsetWaitingRoom(new WaitingRoom(Id.waitingRoom, this, vaccinationCenter()));\n\t\tsetSyringes(new Syringes(Id.syringes, this, vaccination()));\n\t}", "void initializeView() {\n displayProjectFilter();\n displayTimeFrameFilter();\n\n setUsersIntoComboBox();\n setClientsIntoComboBox();\n setProjectsIntoComboBox();\n setDateRestrictions();\n setValidators();\n setTable();\n\n selectUser();\n selectClient();\n selectProject();\n listenDatePickerStart();\n listenDatePickerEnd();\n\n removeUserFilter();\n removeProjectFilter();\n removeTimeFrameFilter();\n clearAllFilters();\n\n // this is important for hiding user combo box and stuff\n setUpUserRules();\n\n //vBox.translateXProperty().bind((scrollPane.widthProperty().subtract(vBox.widthProperty())).divide(2));\n scrollPane.widthProperty().addListener((observable, oldValue, newValue) -> {\n if (newValue != null) {\n grid.setPrefWidth(newValue.doubleValue() - (oldValue.doubleValue() - scrollPane.getViewportBounds().getWidth()));\n }\n });\n\n //TODO: Refactor this.\n setUpBarChart();\n tbvTasks.getItems().addListener((ListChangeListener.Change<? extends TaskConcrete2> c) -> {\n setUpBarChart();\n });\n\n setToolTipsForButtons();\n changeTableSize();\n }", "public void initView() {\n tableModel.containerInitialized(peripheralJobsContainer.getPeripheralJobs());\n }", "private void initViewModel() {\n ViewModelFactory viewModelFactoryGo4Lunch = DI.getViewModelFactory();\n appViewModel = ViewModelProviders.of(this, viewModelFactoryGo4Lunch).get(AppViewModel.class);\n getRestaurantList();\n }", "private void initView() {\r\n\t\tviewerGraz.refresh(true);\r\n\t\tviewerGraz.refresh(true);\r\n\t\tviewerKapfenberg.refresh(true);\r\n\t\tviewerLeoben.refresh(true);\r\n\t\tviewerMariazell.refresh(true);\r\n\t\tviewerWien.refresh(true);\r\n\t}", "protected abstract void initializeView();", "protected abstract void initView();", "private void initializeModel() {\n\t\t\n\t}", "private void initViews() {\n\n\t}", "private void initViewModel() {\n CitiesViewModelFactory factory = Injector.provideCitiesViewModelFactory(getContext().getApplicationContext());\n mViewModel = ViewModelProviders.of(this, factory).get(CitiesViewModel.class);\n mViewModel.getCities().observe(this, this::onCitiesUpdated);\n }", "protected abstract void initViews();", "private void initView() {\n\n }", "@Override\n\tpublic void initialize() {\n\t\tinitializeModel(getSeed());\n\t\tinitializeView();\n\t\tinitializeControllers();\n\t\t\n\t\tupdateScore(8);\n\t\tupdateNumberCardsLeft(86);\n\n\t}", "private void initViews() {\n\n }", "@Override\r\n public void performInitialization(Object model) {\r\n super.performInitialization(model);\r\n richTable.setForceLocalJsonData(true);\r\n\r\n //init binding info\r\n if (bindingInfo != null) {\r\n bindingInfo.setDefaults(ViewLifecycle.getView(), getPropertyName());\r\n }\r\n \r\n List<? extends Component> items = getItems();\r\n \r\n ComponentUtils.clearAndAssignIds(items);\r\n\r\n //iterate over this collections items to initialize\r\n for (Component item : this.getItems()) {\r\n initialComponentIds.add(item.getId());\r\n\r\n //if data field, setup a forced placeholder value\r\n if (item instanceof DataField) {\r\n ((DataField) item).setForcedValue(VALUE_TOKEN + item.getId() + VALUE_TOKEN);\r\n }\r\n\r\n ///populate expression map\r\n expressionConversionMap = buildExpressionMap(item, expressionConversionMap);\r\n }\r\n }", "public void initView(){}", "@Override\r\n\tpublic void initViews() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void initViews() {\n\t\t\r\n\t}", "public abstract void initViews();", "private void initView() {\n TIMManager.getInstance().addMessageListener(this);\n initAdapter();\n initRefresh();\n }", "private void initViewModel() {\n viewmodel = new ViewModelProvider(getActivity()).get(ScannerViewModel.class);\n viewmodel.createList();\n }", "public abstract void initView();", "@Override\r\n\tprotected void initViews() {\n\t\t\r\n\t}", "public void init(){\n\t\t//Makes the view\n\t\tsetUpView();\n\n\t\t//Make the controller. Links the action listeners to the view\n\t\tnew Controller(this);\n\t\t\n\t\t//Initilize the array list\n\t\tgameInput = new ArrayList<Integer>();\n\t\tuserInput = new ArrayList<Integer>();\n\t\thighScore = new HighScoreArrayList();\n\t}", "private void init() {\n //set view to presenter\n presenter.setView(this, service);\n\n setupView();\n }", "private void initViewModel() {\n //Init viewModel\n stockDisplayViewModel = ViewModelProviders.of(getActivity()).get(StockDisplayViewModel.class);\n }", "private void initializeViewModel() {\n mProductDetailsViewModel = ViewModelProviders.of(this, mViewModelFactory).get(\n ProductDetailsViewModel.class);\n mBinding.setViewmodel(mProductDetailsViewModel);\n mProductDetailsViewModel.getDeviceDetails(EcomUtil.getIpAddress(this));\n // EcomUtil.generateDeepLink(getIntent(), this);\n setupNestedScrollView();\n mProductDetailsViewModel.onCartUpdate();\n }", "public void initViews(){\n }", "@Override\r\n\tpublic void initView() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void initView() {\n\t\t\r\n\t}", "private void initViewModel() {\n SearchUserViewModel uvm = new SearchUserViewModel(this);\n mBinding.searchUserLayout.setUvm(uvm);\n }", "@FXML\n public void initialize() {\n if(Controller.processedImg == null) {\n ImageViewTri.setImage(OriginalImage);\n }\n else ImageViewTri.setImage(Controller.processedImg);\n\n pixelReader = OriginalImage.getPixelReader();\n }", "private void initView() {\n initRefreshListView(mListview);\n }", "@Override\r\n\tprotected void initView() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initView() {\n\t\t\r\n\t}", "void initView();", "@Override\n protected void initViewSetup() {\n }", "@Override\n\tpublic void initView() {\n\t\t\n\t}", "public void performInitialisation() {\n \t\t// subclasses can override the behaviour for this method\n \t}", "public void initViewModel()\n {\n int familyId = getIntent().getIntExtra(FAMILY_ID_KEY, -1);\n\n mSurveyViewModel.setFamily(familyId);\n\n\n //observe changes for family, when it has a value then show intro.\n mSurveyViewModel.getCurrentFamily().observe(this, (family ->\n {\n if(mSurveyViewModel.getSurveyState().getValue().equals(SurveyState.NONE))\n {\n mSurveyViewModel.getSurveyState().setValue(SurveyState.INTRO);\n }\n }));\n\n mSurveyViewModel.getProgress().observe(this, surveyProgress -> {\n\n ObjectAnimator progressAnimator = ObjectAnimator.ofInt(mProgressBar,\n \"progress\", mProgressBar.getProgress(), surveyProgress.getPercentageComplete());\n\n progressAnimator.setDuration(400);\n progressAnimator.start();\n\n mProgressBar.setProgress(surveyProgress.getPercentageComplete());\n mTvQuestionsLeft.setText(setRemaining(surveyProgress.getRemaining(), surveyProgress.getSkipped()));\n });\n\n mSurveyViewModel.getSurveyState().observe(this, surveyState -> {\n Class<? extends AbstractSurveyFragment> nextFragment = null;\n\n switch (surveyState)\n {\n case NEW_FAMILY:\n nextFragment = SurveyNewFamilyFrag.class;\n break;\n\n case INTRO:\n nextFragment = SurveyIntroFragment.class;\n break;\n\n case ECONOMIC_QUESTIONS:\n nextFragment = SurveyEconomicQuestionsFragment.class;\n break;\n\n case INDICATORS:\n nextFragment = SurveyIndicatorsFragment.class;\n break;\n case SUMMARY:\n nextFragment = SurveySummaryFragment.class;\n break;\n case REVIEWINDICATORS:\n nextFragment = SurveySummaryIndicatorsFragment.class;\n break;\n case LIFEMAP:\n nextFragment = SurveyChoosePrioritiesFragment.class;\n break;\n\n case COMPLETE:\n this.finish();\n MixpanelHelper.SurveyEvent.finishSurvey(this, \"Survey Finished\", mProgressBar.getProgress());\n break;\n }\n\n if(nextFragment!=null) switchToSurveyFrag(nextFragment);\n });\n }", "@Override\n public void initView() {\n }", "@PostConstruct\n public void initialization() {\n init();\n //setQuestionEditMode(true); //need to initialize question fields\n //addCurrentQuestionsToView(); //initialize view of questions\n //setQuestionEditMode(false);\n }", "@Override\n\tprotected void initView() {\n\t\t\n\t}", "@Override\n\tprotected void initView() {\n\t\t\n\t}", "@FXML\r\n\tprivate void initialize() {\r\n\t\ttransactionList = refreshTransactions();\r\n\t\tif (transactionList != null) {\r\n\t\t\tfillTable();\r\n\t\t}\r\n\t}", "@Override\n protected void initView() {\n }", "@Override\n protected void initView() {\n }", "@Override\n\tpublic void init() {\n\t\tGraph<Number,Number> ig = Graphs.<Number,Number>synchronizedDirectedGraph(new DirectedSparseMultigraph<Number,Number>());\n\t\tObservableGraph<Number,Number> og = new ObservableGraph<Number,Number>(ig);\n\t\tog.addGraphEventListener(new GraphEventListener<Number,Number>() {\n\n\t\t\tpublic void handleGraphEvent(GraphEvent<Number, Number> evt) {\n\t\t\t\tSystem.err.println(\"got \"+evt);\n\n\t\t\t}});\n\t\tthis.g = og;\n\n\t\tthis.timer = new Timer();\n\t\tthis.layout = new FRLayout2<Number,Number>(g);\n\t\t// ((FRLayout)layout).setMaxIterations(200);\n\t\t// create a simple pickable layout\n\t\tthis.vv = new VisualizationViewer<Number,Number>(layout, new Dimension(600,600));\n\n\n\n\t}", "@Override\n protected void init() {\n viewModel.setNavigator(this);\n setUp();\n subscribeToLiveData();\n\n setUpNotificationUi();\n setUpNotification();\n\n setUpAds();\n\n viewModel.start(getCurrentVersionOfApp());\n }", "@Override\n\tpublic void InitView() {\n\t\t\n\t}", "private void initBefore() {\n // Crear Modelo\n model = new Model();\n\n // Crear Controlador\n control = new Controller(model, this);\n\n // Cargar Propiedades Vista\n prpView = UtilesApp.cargarPropiedades(FICHERO);\n\n // Restaurar Estado\n control.restaurarEstadoVista(this, prpView);\n\n // Otras inicializaciones\n }", "@Override\n\tprotected void initView()\n\t{\n\n\t}", "protected void initialize() {\n this.locals = Common.calculateSegmentSize(Common.NUM_CORES);\n this.drvrs = Common.calculateSegmentSize(Common.NUM_CORES);\n reports = new ArrayList<>();\n }", "private void setUpViews() {\n\n updateFooterCarInfo();\n updateFooterUsrInfo();\n\n\n setResultActionListener(new ResultActionListener() {\n @Override\n public void onResultAction(AppService.ActionType actionType) {\n if (ModelManager.getInstance().getGlobalInfo() != null) {\n GlobalInfo globalInfo = ModelManager.getInstance().getGlobalInfo();\n\n switch (actionType) {\n case CarInfo:\n updateFooterCarInfo();\n break;\n case UsrInfo:\n updateFooterUsrInfo();\n break;\n case Charger:\n updateChargeStationList();\n break;\n }\n }\n }\n });\n }", "public void initialize() {\n\n // Calculate the average unit price.\n calculateAvgUnitPrice() ;\n\n // Calculate the realized profit/loss for this stock\n calculateRealizedProfit() ;\n\n this.itdValueCache = ScripITDValueCache.getInstance() ;\n this.eodValueCache = ScripEODValueCache.getInstance() ;\n }", "@Override\n\tpublic double initialize() {\n\n\t\treturn calculate();\n\t\t\n\t}", "private void setUpVC() {\n\t\tinitializePackageModel();\n\t\tinitializeRootLayout();\n\t\tinitializeStepCountView();\n\t\tinitializeButtonToScanForBluetoothDevices();\n\t\tinitializeButtonToSendCommands();\n\t\taddAllViewsToRootLayout();\n\t\tinitializeUARTControlFragmentInterface();\n\t\tsetListenerOnLaunchScanForBluetoothDevices();\n\t\tsetListenerOnButtonToSendCommands();\n\t}", "private void init() {\n initView();\n setListener();\n }", "private void initialize() {\r\n \r\n // Set style\r\n setStroke(Color.BLACK);\r\n \r\n // Bind position to model.\r\n model.xProperty().addListener(new ChangeListener<Number>() {\r\n @Override\r\n public void changed(ObservableValue<? extends Number> observable, Number oldValue, Number newValue) {\r\n if (newValue.doubleValue() == 1000) {\r\n setVisible(false);\r\n }\r\n else {\r\n setVisible(true);\r\n setCenterX(ShoeView.shoeToViewX(newValue.doubleValue(), model.getSide()));\r\n }\r\n }\r\n });\r\n model.yProperty().addListener(new ChangeListener<Number>() {\r\n @Override\r\n public void changed(ObservableValue<? extends Number> observable, Number oldValue, Number newValue) {\r\n if (newValue.doubleValue() == 1000) {\r\n setVisible(false);\r\n }\r\n else {\r\n setVisible(true);\r\n setCenterY(ShoeView.shoeToViewY(newValue.doubleValue(), model.getSide()));\r\n }\r\n }\r\n });\r\n }", "protected abstract void initViews(View mView);", "public ViewModel(TableHomeFrame tableHomeFrame){\n dbActions = new Model();\n this.tableHomeFrame = tableHomeFrame;\n calculations = new Calculations();\n }", "private void init() {\n\n if (currUserPayments == null) {\n currUserPayments = new ArrayList<>();\n }\n\n networkHelper = NetworkHelper.getInstance(getApplicationContext());\n\n binding = ActivityPaymentsBinding.inflate(getLayoutInflater());\n View view = binding.getRoot();\n setContentView(view);\n\n listHelper = ListHelper.getInstance();\n\n\n getAllExpenses();\n invokeOnClickListeners();\n recyclerViewInit();\n\n }", "private void initializeViews()\n {\n ButterKnife.bind(this);\n\n LinearLayoutManager layoutManager = new LinearLayoutManager(this);\n rv_my_vehicles.setLayoutManager(layoutManager);\n rv_my_vehicles.setAdapter(myVehiclesAdapter);\n\n myVehiclesAdapter.setParent(getIntent().getIntExtra(COMING_FROM,0));\n presenter.fetchMyVehicles();\n progressDialog = alerts.getProcessDialog(this);\n progressDialog.setCancelable(false);\n\n tv_all_tool_bar_title.setText(my_vehicles);\n tv_all_tool_bar_title.setTypeface(appTypeface.getPro_narMedium());\n tv_add_new_vehicle.setTypeface(appTypeface.getPro_narMedium());\n tv_vehicles_empty.setTypeface(appTypeface.getPro_narMedium());\n }", "private void initPerRequestState() {\n if (this.trendValueDao == null) {\n this.trendValueDao = new MetricTrendValueDataSource();\n }\n }", "public void initialize() {\n\n fechaDeLaVisita.set(LocalDate.now());\n\n if (medico.get() != null) {\n medico.get().clear();\n } else {\n medico.set(new Medico());\n }\n\n turnoVisita.set(\"\");\n visitaAcompanadaSN.set(false);\n lugarVisita.set(\"\");\n if (causa.get() != null) {\n causa.get().clear();\n } else {\n causa.set(new Causa());\n }\n\n if (promocion.get() != null) {\n promocion.get().clear();\n } else {\n promocion.set(new Promocion());\n }\n\n observacion.set(\"\");\n persistida.set(false);\n persistidoGraf.set(MaterialDesignIcon.SYNC_PROBLEM.graphic());\n\n fechaCreacion.set(LocalDateTime.now());\n\n }", "private void init() {\n\t\tinitProtocol();\n\t\tinitResultStorage();\n\t}", "public void initializeAll() {\n getConsole_inclusionFactor().getSelectionModel().selectFirst();\n getConsole_sortingDirection().getSelectionModel().selectFirst();\n getConsole_firstSortingFactor().getSelectionModel().selectFirst();\n getConsole_secondSortingFactor().getSelectionModel().selectFirst();\n getAction_inclusionFactor().getSelectionModel().selectFirst();\n getAction_sortingDirection().getSelectionModel().selectFirst();\n getAction_firstSortingFactor().getSelectionModel().selectFirst();\n getAction_secondSortingFactor().getSelectionModel().selectFirst();\n getAction_Status().getSelectionModel().selectFirst();\n getAction_Member().getSelectionModel().selectFirst();\n getAction_Team().getSelectionModel().selectFirst();\n \n }", "protected void prepareModel() {\n model();\n }", "private void initView() {\n\t\timg_back = (ImageView) findViewById(R.id.img_back_updatejob);\n\t\tedt_content = (EditText) findViewById(R.id.edt_content_updatejob);\n\t\tedt_course = (EditText) findViewById(R.id.edt_course_updatejob);\n\t\tbtn_delete = (Button) findViewById(R.id.btn_delete_updatejob);\n\t\tbtn_update = (Button) findViewById(R.id.btn_update_updatejob);\n\t}", "private void init () {\n\t\tSwingUtilities.invokeLater(new Runnable() {\n public void run() {\n \tSwingOperatorView.stateOnCurrentObject();\n }\n\t\t});\n\t}", "static void initialize() {\n model = new RatAppModel(\n );\n //Log.d(\"RatAppModel\", \"Initialized\");\n }", "protected void initialize() throws SimulationException {\n \n try {\n \n //Load all incidents from Coordinator\n loadIncidents(); \n \n //Load all triggered incidents from Coordinator\n TreeMap<Integer, Vector<IncidentEvent>> tempEvents = theCoorInt.getTriggeredEvents();\n for(Integer key : tempEvents.keySet()) { \n for(IncidentEvent ie : tempEvents.get(key)) \n eventOccured(key, ie); \n } \n \n //Load all current diversions from the Coordinator\n TreeSet<String> cmsIDs = theCoorInt.getCMSIDs();\n CMSInfo cmsinfo = null;\n for(String cms_id : cmsIDs) {\n cmsinfo = theCoorInt.getCMSDiversionInfo(cms_id);\n \n for(CMSDiversion div : cmsinfo.possibleDiversions) {\n if(div.getCurrDiv() != 0) { \n theSimManagerView.addDiversion(cmsinfo, div);\n } \n }\n } \n \n //Send the list of CMS IDs to the View.\n theSimManagerView.setCMS_IDList(cmsIDs.toArray());\n }\n catch (Exception e) {\n simManagerLogger.logp(Level.SEVERE, \"SimulationManagerModel\", \n \"initialize\", \"Unable to initialize the SimulationManager.\", e);\n \n throw new SimulationException(SimulationException.CAD_SIM_COMM, e);\n } \n }", "@Override\n\tpublic void init() \n\t{\n\t\tthis.m_view.setCenter(new Vector2f(1024f,1024f));\n\t\t// initilisation de m_centerSought\n\t\tthis.m_centerSought = this.m_view.getCenter();\n\t\t// zoom\n\t\tthis.m_zoom = this.m_zoomSought = 1f;\t\t\n\t\t// size\n\t\tthis.m_sizeNormal = m_size = m_sizeSought = m_sizeBackup = m_sizeInit = this.getView().getSize();\n\t\tthis.m_sizeDown = Vector2f.mul(this.m_sizeNormal, 0.8f);\n\t\tthis.m_sizeUp = Vector2f.mul(m_sizeNormal, 1.2f);\n\t\t\n\t\t// cadre\n\t\tm_cadre = new IntRect(m_spaceScrolling,m_spaceScrolling,(int)this.getView().getSize().x - m_spaceScrolling * 2,(int) this.getView().getSize().y - m_spaceScrolling * 2);\n\t\t\n\t}", "public MainView() {\r\n\t\tinitialize();\r\n\t}", "private void init() {\n recyclerView = findViewById(R.id.mRecyclerView);\n noBudgetData = findViewById(R.id.NoData);\n noDataGif = findViewById(R.id.NoDataGif);\n Amount = findViewById(R.id.Amount);\n WalletName = findViewById(R.id.WalletName);\n TotalCost = findViewById(R.id.TotalCost);\n CostHeading = findViewById(R.id.CostHeading);\n CurrentBalance = findViewById(R.id.CurrentBalance);\n toolbar = findViewById(R.id.tool_bar);\n mainLayout = findViewById(R.id.home_layout);\n editButton = findViewById(R.id.editIcon);\n ux = new UX(this, mainLayout);\n tools = new Tools(this);\n databaseHelper = DatabaseHelper.getHelper(this);\n }", "@Override\n public void initView() {\n\n }", "private void initViews() {\n\n //O metodo findViewById() recupera a referencia do EditText que se encontra no XML.\n editTextQuantidade = (EditText) findViewById(R.id.edittext_quantidade);\n imageViewOvos = (ImageView) findViewById(R.id.imageview_ovos);\n textViewTotal = (TextView) findViewById(R.id.textview_total);\n }", "public void initialize() {\n\t\tnumRows = gridConfig.getNumRows();\n\t\tnumCols = gridConfig.getNumCols();\n\t\tgridCellCount = numRows * numCols;\n\t\tcreateMaps();\n\t\tsetCurrSimulationMap();\n\t\tcellWidth = SIZE / numCols;\n\t\tcellHeight = SIZE / numRows;\n\t\tcurrentGrid = new Cell[numRows][numCols];\n\t\tnewGrid = new Cell[numRows][numCols];\n\t\tempty(currentGrid);\n\t\tempty(newGrid);\n\t\tsetShapes();\n\t\tsetInitialStates();\n\t}", "private void initializeAll() {\n initialize(rows);\n initialize(columns);\n initialize(boxes);\n }", "private void initWeatherViewModel() {\n SharedPreferences sharedPref = PreferenceManager.getDefaultSharedPreferences(this);\n final boolean enableWeather = sharedPref.getBoolean(PreferenceKeys.KEY_WEATHER_ENABLED, true);\n if (!enableWeather || !(new LocationUtils(this).isLocationSaved())) {\n Log.i(TAG, \"Weather not enable or location not saved, skipping weather display\");\n return;\n }\n\n WeatherViewModel viewModel = new ViewModelProvider(this).get(WeatherViewModel.class);\n viewModel.getWeather().observe(this, new Observer<WeatherResponse>() {\n @Override\n public void onChanged(WeatherResponse weatherResponse) {\n\n showWeather(weatherResponse);\n }\n });\n }", "public void initModel() {\r\n this.stateEngine = new RocketStateEngine();\r\n }", "@FXML protected void initialize() {\n\t\tinitConfigVar();\n\t\tapplyStyle();\n\t}", "@FXML\r\n private void initialize() {\r\n \t\r\n \t\r\n \t\r\n \t\r\n \t\r\n }", "protected void initModel() throws CommandLineFormatException, NullCoordinateException\n\t{\n\t\t\n\t\tfinal Var vdt = command.get(CNFTCommandLine.DT); //default dt\n\t\t\n\t\tcortical = new NeighborhoodMap(CORTICAL, \n\t\t\t\tnew SomUM(inputSpace, vdt, extendedFramedSpace)){\n\t\t\tpublic void compute() throws NullCoordinateException{\n\t\t\t\tsuper.compute();\n\t\t\t\tpotential.resetState();\n\t\t\t}\n\t\t};\n\t\t\n\t\t\n\t\tpotential = getPotential(vdt);\n\t\t\n\t\t\n\t\tcortical.addParameters(input,potential,command.get(CNFTCommandLine.LEARNING_RATE));\n\t\tNeighborhood neigh = new V4Neighborhood2D( extendedFramedSpace, new UnitLeaf((UnitParameter) cortical));\n\t\tneigh.setNullUnit(new ConstantUnit(new Var(0)));\n\t\t((NeighborhoodMap)cortical).addNeighboors(neigh);\n\t\t\n\t\t\n\t\tthis.root = cortical;\n\t\t\n\t\tcorticalPot = new Map(CORTICAL_POT, new Sum(vdt, extendedFramedSpace, new Leaf(cortical)));\n\t\tthis.addParameters(corticalPot);\n\t\t\n\t\t\n\n\t}", "protected void initialize() {\n\t\tthis.position = Point3D.ZERO;\n\t\t// reset subclasses properties if any\n\t\treset();\n\t}", "@FXML\n void initialize() {\n setupAppState();\n\n try {\n setupTreeViewButtons();\n } catch (IOException e) {\n Helpers.alertErrorExit(\"Couldn't load a TreeView button image!\");\n }\n\n setupEditor();\n setupNoteTree();\n }", "@Override\n protected void initView() {\n view.setVideoThumbnail(model.getThumbnail());\n\n if (isInFocus) {\n playOrPauseVideoIfMomentIsInFocus();\n }\n\n view.setMomentTitle(model.getTitle());\n view.setCounterTimeText(\"\" + Math.round((model.getEndTimeMs() - model.getStartTimeMs())/ TimeUtil.MS_IN_SECOND));\n\n view.setState(isInFocus);\n }", "protected void commonInit() {\r\n dataBinder = new DBTreeDataBinder(this);\r\n }", "private void setUpViewModels(){\n EventViewModelFactory factory = new EventViewModelFactory(mDatabase, mEventId);\n EventViewModel eventViewModel =\n ViewModelProviders.of(this, factory).get(EventViewModel.class);\n //Uses view model to get category list\n //listener is called any time the categories are changed or updated\n eventViewModel.getCategoryList().observe(this, new Observer<List<Category>>() {\n @Override\n public void onChanged(List<Category> categories) {\n mCategories = new ArrayList<>(categories);\n setUpSpinner(); //sets up spinner if categories change\n }\n });\n\n //creates a new Factory with database and current time\n AddScheduledEventViewModelFactory eventFactory =\n new AddScheduledEventViewModelFactory(mDatabase, Calendar.getInstance().getTimeInMillis());\n AddScheduledEventViewModel addScheduledEventViewModel =\n ViewModelProviders.of(this, eventFactory).get(AddScheduledEventViewModel.class);\n //attaches listener to events list\n addScheduledEventViewModel.getEvents().observe(this, new Observer<List<Event>>() {\n @Override\n public void onChanged(List<Event> events) {\n //updates the events that are given to mScheduler\n if(mScheduler == null){\n mScheduler = new Scheduler(events, Calendar.getInstance(), null);\n } else mScheduler.setEvents(events);\n }\n });\n }", "public ManipularView() {\n initComponents();\n }", "@FXML private void initialize() {\r\n \t\tc = Utilities.leggiCliente(Main.idCliente);\r\n \t\tac = new acquisto.AcquistoController(c);\r\n \t\tgetProdotti();\r\n \t\tgetSconti();\r\n \t\tinitSelezionati();\r\n \t\tpunti.setText(\"\" + ac.getSaldoPunti());\r\n \t\tpunti.setEditable(false);\r\n \t\ttotale.setEditable(false);\r\n \t\tconferma.setDisable(true);\r\n \t}", "@FXML\n public void initialize() {\n incorrect.setVisible(false);\n numQuestions = IntroScene.getTotalNumber();\n currentQuestion = 1;\n System.out.println(numQuestions);\n gen = new QuestionGen();\n setQuestion();\n }", "private void init() {\n filmCollection = new FilmCollection();\n cameraCollection = new CameraCollection();\n }", "private void initializeViews(Object object, ViewHolder holder) {\n }", "protected abstract void initializeComponent(View view);", "public ViewInit() {\n initComponents();\n }" ]
[ "0.71200514", "0.6960321", "0.69212323", "0.6821628", "0.680424", "0.67914146", "0.6788955", "0.6683592", "0.65921926", "0.6548479", "0.6512675", "0.6507513", "0.64668953", "0.6447552", "0.64376754", "0.6436183", "0.6434798", "0.6418612", "0.63958406", "0.63832647", "0.63584965", "0.6358144", "0.6358144", "0.63538235", "0.6334104", "0.6329506", "0.6321056", "0.62978435", "0.62976646", "0.6285204", "0.62659246", "0.6225955", "0.6224049", "0.6223644", "0.6223644", "0.6217025", "0.6180458", "0.61730844", "0.61718255", "0.61718255", "0.6143644", "0.6123713", "0.61148995", "0.6108328", "0.6064576", "0.60604197", "0.6051071", "0.60441613", "0.60441613", "0.6039213", "0.6033324", "0.6033324", "0.60251766", "0.60203844", "0.60146356", "0.6003364", "0.60011894", "0.5988901", "0.59878653", "0.5980775", "0.59759146", "0.5957094", "0.5944308", "0.5937141", "0.59032524", "0.5894954", "0.5879821", "0.58795154", "0.58791184", "0.58749443", "0.58659023", "0.58577245", "0.5857201", "0.58466226", "0.58413315", "0.58301204", "0.5829671", "0.5827757", "0.58267415", "0.5816781", "0.5814261", "0.5789434", "0.5783332", "0.5781125", "0.57722545", "0.5762136", "0.5750708", "0.5744472", "0.574338", "0.57416284", "0.5730701", "0.57280374", "0.5721443", "0.5719691", "0.5710079", "0.57000566", "0.57000214", "0.56878394", "0.5682671", "0.5681934", "0.56803054" ]
0.0
-1
/ Codificar un correo electronico
public static String getEmailEncoded(String email){ String preKey = email.replace("_","__"); return preKey.replace(".","_"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getCorreo() {return correo;}", "public String getCorreo() {\r\n return correo;\r\n }", "public String getCorreo() {\n return correo;\n }", "public void setCorreo(String correo){\r\n this.correo = correo;\r\n }", "public void setCorreo(String correo) {this.correo = correo;}", "public String getCorreo(){\r\n return correo;\r\n }", "private Long modificarCorreoElectronico(CorreoElectronico correo) {\n\t\ttry {\n\t\t\t gCorreoElectronico.modify(correo);\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn correo.getIdCorreoElectronico();\n\t}", "public void setCorreo(String aCorreo) {\r\n correo = aCorreo;\r\n }", "public void setCorreo(String correo) {\n this.correo = correo;\n }", "private int obtenerMensajeDeConfirmacion() {\n String mess = \"¿Seguro que desea \";\n switch (opcionForm) {\n case FormEscOpcion.CREAR:\n mess += \" Guardar?\";\n break;\n case FormEscOpcion.MODIFICAR:\n mess += \" Modificar?\";\n break;\n case FormEscOpcion.ELIMINAR:\n mess += \" Eliminar?\";\n break;\n default:\n break;\n }\n // pedir confirmacion al usuario de la pantalla si desea enviar la informacion o no utilizando un showConfirmDialog\n int input = JOptionPane.showConfirmDialog(this, mess, \"\",\n JOptionPane.YES_NO_OPTION, JOptionPane.QUESTION_MESSAGE);\n return input; // retornar la respuesta del usuario de la pantalla al utilizar el showConfirmDialog\n }", "public static String getMacCliente(){\n\t\tInetAddress ip;\n\t\tbyte[] mac = null;\n\t\tStringBuilder sb = new StringBuilder();\n\t\ttry {\n\t\t\tip = InetAddress.getLocalHost();\n\t\t\tNetworkInterface network = NetworkInterface.getByInetAddress(ip);\n\n\t\t\tmac = network.getHardwareAddress();\n\t\t\tfor (int i = 0; i < mac.length; i++) {\n\t\t\t\tsb.append(String.format(\"%02X%s\", mac[i],(i < mac.length - 1) ? \"-\" : \"\"));\n\t\t\t}\n\t\t} catch (UnknownHostException e) {\n\t\t\t//Log.error(e, \"Utiles :: getMacCliente :: controlado\");\n\t\t} catch (SocketException e) {\n\t\t\t//Log.error(e, \"Utiles :: getMacCliente :: controlado\");\n\t\t} catch (NullPointerException e){\n\t\t\t//Log.error(e, \"Utiles :: getMacCliente :: controlado\");\n\t\t}\n\t\treturn sb.toString();\n\t}", "public impresionCorreo() {\n initComponents();\n txtCorreo.setText(correoCliente);\n }", "private boolean campararCorreo () {\n\t\tlistaUsuarios = UsuarioDAO.readTodos(this.mainApp.getConnection());\n\t\tString correoE = this.campoCorreo.getText();\n\t\tfor (Usuario correo : listaUsuarios) {\n\t\t\tif (correo.getCorreoElectronico().equals(correoE))\n\t\t\t\treturn false;\n\t\t}//FIN FOR\n\t\treturn true;\n\t}", "public CorreoElectronico() {\n }", "private byte[] datosInicio() {\n\tbyte comando = 1;\n\tbyte borna = (byte) sens.getNum_borna();\n\tbyte parametro1 = 0;\n\tbyte parametro2 = 0;\n\tbyte parametro3 = 0;\n\tbyte checksum = (byte) (comando + borna + parametro1 + parametro2 + parametro3);\n\n\t// Duermo para que le de tiempo a generar el puerto\n\ttry {\n\t Thread.sleep(IrrisoftConstantes.DELAY_SENSOR_RUN);\n\t} catch (InterruptedException e1) {\n\t if (logger.isErrorEnabled()) {\n\t\tlogger.error(\"Hilo interrumpido: \" + e1.getMessage());\n\t }\n\t}\n\n\tif (logger.isInfoEnabled()) {\n\t logger.info(\"Churro_Anemometro = \" + comando + \", \" + borna + \", \"\n\t\t + parametro1 + \", \" + parametro2 + \", \" + parametro3 + \", \"\n\t\t + checksum);\n\t}\n\n\tchurro[0] = comando;\n\tchurro[1] = borna;\n\tchurro[2] = parametro1;\n\tchurro[3] = parametro2;\n\tchurro[4] = parametro3;\n\tchurro[5] = checksum;\n\n\tif (!serialcon.serialPort.isOpened()) {\n\t SerialPort serialPort = new SerialPort(\n\t\t serialcon.serialPort.getPortName());\n\t serialcon.setSerialPort(serialPort);\n\t serialcon.conectaserial(sens.getNum_placa());\n\t}\n\n\treturn churro;\n }", "@Override\r\n\tpublic String toString()\r\n\t{\r\n\t\treturn \"Macchina a stati finiti di nome \"+nome+\", nello stato \"+corrente.getNome()+\".\";\r\n\t}", "public String comunica() {\r\n// ritorna una stringa\r\n// posso usare il metodo astratto \r\n return msg + AggiungiQualcosa();\r\n }", "@Override\n\tpublic void teclaConfirmaDigitada() {\n\t\t\n\t}", "public void tocarTelefone() {\n System.out.println(\"Telefone \" + getNumero() + \" está tocando!\");\n notificarTodos();\n }", "protected String usaVociCorrelate() {\n StringBuilder testo = new StringBuilder(VUOTA);\n String titolo = \"Voci correlate\";\n List<String> lista = listaCorrelate == null ? listaVociCorrelate() : listaCorrelate;\n String tag = \"*\";\n\n if (array.isValid(lista)) {\n testo.append(LibWiki.setParagrafo(titolo));\n testo.append(A_CAPO);\n for (String riga : lista) {\n testo.append(tag);\n testo.append(LibWiki.setQuadre(riga));\n testo.append(A_CAPO);\n }// end of for cycle\n testo.append(A_CAPO);\n }// end of if cycle\n\n return testo.toString();\n }", "public int obtenerSiguienteNumeroOrden() {\n try {\n controlOC = new ControlOrdenCompra();\n bitacora.info(\"Registro OrdenCompra Iniciado correctamente\");\n } catch (IOException ex) {\n bitacora.error(\"No se pudo iniciar el registro OrdenCompra por \" + ex.getMessage());\n }\n return controlOC.obtenerSiguienteNumeroOrden();\n }", "private void enviaCorreosElectronicos(){\r\n try{\r\n for(int i=0;i<arlDocGenDat.size();i++){\r\n strMsjCorEle=\"\";\r\n strMsjCorEle+=\"<HTML> La cotizacion Numero: \"+ objUti.getStringValueAt(arlDocGenDat, i,INT_ARL_COD_COT) + \", \";\r\n strMsjCorEle+=\" del cliente: \"+objUti.getStringValueAt(arlDocGenDat, i,INT_ARL_NOM_CLI);\r\n strMsjCorEle+=\" se ha Facturado con Numero: <b>\" + objUti.getStringValueAt(arlDocGenDat, i,INT_ARL_NUM_FAC)+\"</b> \";\r\n strMsjCorEle+=\" </HTML> \";\r\n switch(objUti.getIntValueAt(arlDocGenDat, i,INT_ARL_COD_EMP_COT))\r\n {\r\n case 1: objCorEle.enviarCorreoMasivo(objUti.getStringValueAt(arlDocGenDat, i,INT_ARL_COR_ELE_VEN),strTitCorEle + \" TUVAL \",strMsjCorEle ); break; \r\n case 2: objCorEle.enviarCorreoMasivo(objUti.getStringValueAt(arlDocGenDat, i,INT_ARL_COR_ELE_VEN),strTitCorEle + \" CASTEK \",strMsjCorEle ); break;\r\n case 4: objCorEle.enviarCorreoMasivo(objUti.getStringValueAt(arlDocGenDat, i,INT_ARL_COR_ELE_VEN),strTitCorEle + \" DIMULTI \",strMsjCorEle ); break; \r\n }\r\n }\r\n }\r\n catch (Exception Evt) {\r\n System.err.println(\"ERROR \" + Evt.toString());\r\n objUti.mostrarMsgErr_F1(jifCnt, Evt);\r\n } \r\n \r\n }", "private void enviarLlaveSimetricaYReto() {\n\t\tString reto = \"reto\";\n\n\t\ttry {\n\t\t\tllaveSecreta = generarLlave(algSimetrica);\n\t\t\tbyte[] llaveSim=llaveSecreta.getEncoded();\n\t\t\tbyte[] simetrica = encriptarAsimetrico(llaveSim, llavePublica, algAsimetrica);\n\t\t\tout.println(printBase64Binary(simetrica));\n\t\t\tout.println(reto);\n\t\t\tString linea = in.readLine();\n\t\t\tbyte[] msg = parseBase64Binary(linea);\n\t\t\tbyte[] msgDecifrado = decriptadoSimetrico(msg, llaveSecreta, algSimetrica);\n\t\t\tSystem.out.println(\"Este es el mensaje descifrado:\" +printBase64Binary(msgDecifrado));\n\t\t\tif(!printBase64Binary(msgDecifrado).equals(\"reto\"))\n\t\t\t{\n\t\t\t\tSystem.out.println(\"Error al decifrar el mensaje\");\n\t\t\t\tout.println(ERROR);\n\t\t\t}\n\t\t\tout.println(OK);\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(\"Error generando llave simetrica\");\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}", "public String getCorreoUsuario() {\r\n return correoUsuario;\r\n }", "public void enviarCorreo() {\n try {\n\n // propuestaConvenio = propuestaConvenioService.getByIDPropuestaWithPersona(propuestaConvenio.getIdPropuesta());\n propuestaConvenio = propuestaConvenioService.getByIDPropuestaWithPersona(propuestaConvenio.getIdPropuesta());\n\n // Create data for template\n Map<String, Object> templateData = new HashMap<String, Object>();\n templateData.put(\"subJect\", \"Cambio Vigencia de Convenio\");\n\n //templateData.put(\"nameTemplate\", \"propuesta_convenio_mailTemplat.txt\");\n templateData.put(\"nameTemplate\", \"vigencia_convenio_mailTemplat.xhtml\");\n templateData.put(\"propuestaConvenio\", propuestaConvenio);\n templateData.put(\"propuestaConvenioTemp\", propuestaConvenioTemp);\n\n for (PersonaPropuesta p : propuestaConvenio.getPersonaPropuestaList()) {\n templateData.put(\"setToMail\", p.getPersona().getEmailPersona());\n mailService.sendEmailMap(templateData);\n }\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "public String getCorreoTI() {\n return this.correoTI;\n }", "public void setCorreoUsuario(String correoUsuario) {\r\n this.correoUsuario = correoUsuario;\r\n }", "public String getCODIGO() {\r\n return CODIGO;\r\n }", "public void mostrarInformacion(String nombre, String correo) {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }", "public void tratarMensagemRecebida(String msg){\n String comando = msg.substring(0, 8); //Extrai o comando \n String payLoad = msg.replaceFirst(comando, \"\");\n String campo[];\n\n // Trata a mensagem conforme o protocolo\n switch (comando){\n\n case Protocolo.CHAT_MSG:\n String data;\n data = usuarioBySocket(usuarioVector, cliente).getNome() + \" enviou: \" + payLoad;\n enviarMensagemParaTodosChat(Protocolo.CHAT_MSG, data);\n break;\n\n case Protocolo.CHAT_SAI: \n enviarMensagemParaUmUsuario(Protocolo.CHAT_SAI, \"\");\n String notificacao = usuarioBySocket(usuarioVector, cliente).getNome() + \" acabou de sair.\";\n enviarMensagemParaTodosChat(Protocolo.CHAT_NOT, notificacao);\n enviarMensagemParaTodosChat(Protocolo.CHAT_REM, usuarioBySocket(usuarioVector, cliente).getNome());\n removeUsuario(usuarioVector, cliente);\n System.out.println(\"Removeu Usuario \"); \n break; \n \n case Protocolo.IMG_CQUA:\n enviarMensagemParaTodosEdicao(Protocolo.IMG_CQUA, \"\"+idImg+\":10\"+\":10\"); \n Imagem quadrado = new Imagem(idImg++, TipoFigura.QUADRADO, 10, 10);\n imagemVector.add(quadrado);\n System.out.println(\"Criar Quadrado\"); \n break;\n\n case Protocolo.IMG_CCIR:\n enviarMensagemParaTodosEdicao(Protocolo.IMG_CCIR, \"\"+idImg+\":10\"+\":10\"); \n Imagem circulo = new Imagem(idImg++, TipoFigura.CIRCULO, 10, 10);\n imagemVector.add(circulo);\n System.out.println(\"Removeu Circulo \"); \n break;\n \n case Protocolo.IMG_CTRI:\n enviarMensagemParaTodosEdicao(Protocolo.IMG_CTRI, \"\"+idImg+\":10\"+\":10\"); \n Imagem triangulo = new Imagem(idImg++, TipoFigura.TRIANGULO, 10, 10);\n imagemVector.add(triangulo);\n System.out.println(\"Criar Triangulo \"); \n break;\n \n case Protocolo.IMG_REMO:\n enviarMensagemParaTodosEdicao(Protocolo.IMG_REMO, \"\"+payLoad);\n removeImagem(imagemVector, Integer.parseInt(payLoad));\n System.out.println(\"Removeu Figura id= \" + payLoad); \n break;\n \n case Protocolo.IMG_MOVE:\n campo = payLoad.split(\":\"); //pega id, posX e posY da figura\n atualizaPosicaoImagem(Integer.parseInt(campo[0]), Integer.parseInt(campo[1]), Integer.parseInt(campo[2]));\n enviarMensagemParaTodosEdicao(Protocolo.IMG_MOVE, payLoad); \n System.out.println(\"Mover figura\");\n break;\n \n case Protocolo.PNL_MOVP:\n campo = payLoad.split(\":\");\n payLoad = usuarioBySocket(usuarioVector, cliente).getNome()+\":\"+campo[0]+\":\"+campo[1];\n enviarMensagemParaTodosEdicao(Protocolo.PNL_MOVP, payLoad);\n System.out.println(\"Movendo Mouse\");\n break;\n \n case Protocolo.PNL_MOVF:\n campo = payLoad.split(\":\");\n payLoad = usuarioBySocket(usuarioVector, cliente).getNome()+\":\"+campo[0]+\":\"+campo[1];\n enviarMensagemParaTodosEdicao(Protocolo.PNL_MOVF, payLoad);\n System.out.println(\"Movendo Mouse na figura\");\n break;\n\n case Protocolo.PNL_DRGF:\n campo = payLoad.split(\":\");\n payLoad = usuarioBySocket(usuarioVector, cliente).getNome()+\":\"+campo[0]+\":\"+campo[1];\n enviarMensagemParaTodosEdicao(Protocolo.PNL_DRGF, payLoad);\n System.out.println(\"Movendo Mouse na figura Drag\");\n break;\n \n default:\n System.out.println(\"Case Default - MSG Recebida: \" + comando);\n }\n }", "private void vCarg()\n {\n /*Contiene la MAC del equipo*/\n String sMAC;\n\n /*Obtiene la MAC del equipo*/\n InetAddress ip;\n try \n {\n /*Obtiene la ip local del equipo*/\n ip = InetAddress.getLocalHost(); \n\n /*Obtiene otros parámetros de conexión*/\n NetworkInterface network = NetworkInterface.getByInetAddress(ip);\n\n /*Obtiene en bytes la MAC*/\n byte[] mac = network.getHardwareAddress();\n\n /*Dale formato a la MAC*/\n StringBuilder sb = new StringBuilder();\n for(int i = 0; i < mac.length; i++) \n sb.append(String.format(\"%02X%s\", mac[i], (i < mac.length - 1) ? \"-\" : \"\")); \n\n /*Inicia la MAC*/\n sMAC = sb.toString();\n }\n catch(UnknownHostException expnUnknowHos) \n {\n //Procesa el error y regresa\n Star.iErrProc(this.getClass().getName() + \" \" + expnUnknowHos.getMessage(), Star.sErrUnknowHos, expnUnknowHos.getStackTrace()); \n return; \n }\n catch(SocketException expnSock)\n {\n //Procesa el error y regresa\n Star.iErrProc(this.getClass().getName() + \" \" + expnSock.getMessage(), Star.sErrSock, expnSock.getStackTrace()); \n return; \n }\n \n /*Obtiene del web service los mensajes de esta MAC ya desencriptados*/\n String sResp;\n try\n {\n sResp = Star.sDecryp(msjmac(Star.sEncrip(sMAC)));\n }\n catch(Exception expnExcep)\n { \n //Procesa el error y regresa\n Star.iErrProc(this.getClass().getName() + \" \" + expnExcep.getMessage(), Star.sErrExcep, expnExcep.getStackTrace()); \n return; \n } \n\n /*Agrega en el control la respuesta del servidor*/\n jED1.setText(sResp); \n \n }", "@Override\n\tpublic String toString() {\n\t\treturn \"ContaCorrente Numero : \" + numero + \", Tipo : \" + tipo + \"\"\n\t\t\t\t+ \", Solde : R$ \" + solde + \"\\n\";\n\t}", "private void enviarPaqueteACliente(DatagramPacket recibirPaquete) throws IOException {\n try {\n\n mostrarMensaje(\"\\n\\nRepitiendo datos al cliente...\");\n byte datos[] = new byte[100];\n datos = mensaje.getBytes();\n //crea paquete a enviar\n DatagramPacket enviarPaquete = new DatagramPacket(\n datos, datos.length,\n recibirPaquete.getAddress(), recibirPaquete.getPort());\n\n socket.send(enviarPaquete);//enviar el paquete\n mostrarMensaje(\"Paquete enviado\\n\");\n } catch (NullPointerException e) {\n }\n\n }", "public void setCorreo(String correo) {\n\t\tthis.correo.set(correo);\n\t}", "public String accionemergencia(){\n\t\tString resp=\"\";\n\t\tif(puntosvida<=5 && acc!=1){\n\t\t\tpuntosvida=puntosvida+15;\n\t\t\tresp=\"\\nAccion de emergencia \"+ tipo +\"activada vida +15\";\n\t\t\tacc=1;\n\t\t}\n\t\treturn resp;\n\t}", "public void Pedircarnet() {\n\t\tSystem.out.println(\"solicitar carnet para verificar si es cliente de ese consultorio\");\r\n\t}", "private void enviarCorreoSolicitudDenegada(int CodEmp, int CodLoc, int CodCot){\n java.sql.Connection conLoc;\n java.sql.Statement stmLoc;\n java.sql.ResultSet rstLoc;\n try{\n conLoc=DriverManager.getConnection(objParSis.getStringConexion(), objParSis.getUsuarioBaseDatos(), objParSis.getClaveBaseDatos());\n if(conLoc!=null){\n stmLoc=conLoc.createStatement();\n strSql= \" SELECT a2.tx_corEle \\n\";\n strSql+=\" FROM tbm_cabCotVen as a1 \\n\";\n strSql+=\" INNER JOIN tbm_usr as a2 ON (a1.co_usrIng=a2.co_usr) \\n\";\n strSql+=\" WHERE a1.co_emp=\"+CodEmp+\" AND a1.co_loc=\"+CodLoc+\" AND a1.co_cot=\"+CodCot+\" \";\n rstLoc = stmLoc.executeQuery(strSql);\n if(rstLoc.next()){\n objCorEle.enviarCorreoMasivo(rstLoc.getString(\"tx_corEle\"), \"Sistema de Reservas: \", \"La solicitud de reserva, que corresponde a la cotizacion \"+CodCot+\" ha sido denegada.\");\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 \n objUti.mostrarMsgErr_F1(this, e); \n }\n catch(Exception Evt){ \n objUti.mostrarMsgErr_F1(this, Evt);\n } \n }", "public String messageRenvoyeeUI (int num){\r\n\t\t\r\n\t\tswitch(num){\r\n\t\t\tcase 5 : return \"-\\n\";\r\n\t\t\t\t\r\n\t\t\tcase 4 : return \"-\\n\";\r\n\t\t\t\r\n\t\t\tcase 3 : return \"-Echec de l'enregistrement des RDV\\n\";\r\n\t\t\t\r\n\t\t\tcase 2 : return \"-Enregistrement des RDV terminé\\n\";\r\n\t\t\t\r\n\t\t\tcase -1 : return \"-Un moniteur doit être selectionné pour le RDV surligné.\\n\";\r\n\t\t\t\r\n\t\t\tcase -2 : return \"-La durée du RDV surligné présente un format invalide pour son enregistrement.\\n\";\r\n\t\t\t\r\n\t\t\tcase -3 : return \"-L'horaire du RDV surligné présente un format invalide pour son enregistrement.\\n\";\r\n\t\t\t\r\n\t\t\tcase -4 : return \"-La date de RDV surligné ne peut pas être antérieur à la date actuelle\\n\";\r\n\t\t\t\r\n\t\t\tcase -5 : return \"-La date de RDV surligné présente un format invalide pour son enregistrement.\";\r\n\t\t\t\r\n\t\t\tcase -6 : return \"-L'horaire du RDV surligné est invalide : les heures sont compris entre \"+AUTO_ECOLE_OUVERTURE+\"h et \"+AUTO_ECOLE_FERMETURE+\"h\\n\";\r\n\t\t\t\r\n\t\t\tcase -7 : return \"-L'horaire du RDV surligné est invalide : les minutes sont compris entre 0 et 59.\\n\";\r\n\t\t\t\r\n\t\t\tcase -8 : return \"-Le RDV surligné est chevauché par un autre RDV.\\n\";\r\n\t\t\t\r\n\t\t\tcase -9 : return \"-\"+msgIntegriteMoniteur+\"\\n\";\r\n\t\t}\r\n\t\t\r\n\t\treturn \"\";\r\n\t\t\r\n\t}", "public void mostrarConsola() {\n\t\tProceso aux = this.raiz;\n\t\t// int i=this.numProcesos;\n\t\twhile (aux.sig != this.raiz /* i>0 */) {\n\t\t\t// i--;\n\t\t\taux = aux.sig;\n\t\t\tSystem.out.println(aux.toString());\n\t\t}\n\t}", "void actualizarNotaIngresoPorHacer(Integer codigoCompania, Long codigoNotaIngreso, String estadoPorHacer, String observacion, String codigoUsuario)throws SICException;", "public String getAutorizacionCompleto()\r\n/* 184: */ {\r\n/* 185:316 */ return this.establecimiento + \"-\" + this.puntoEmision + \" \" + this.autorizacion;\r\n/* 186: */ }", "public void obtener_proximo_cpte(){\n\t\t_Data data=(_Data) _data;\n\t\tString cb=data.getProximoPGCorrecto();\n\t\t//Pago_frame _frame=(Pago_frame) this._frame;\n\t\tframe.get_txt_idPago().setText(cb);\n\t}", "public abstract java.lang.String getCod_tecnico();", "@Override\n protected String elaboraFooterCorrelate() {\n String text = CostBio.VUOTO;\n\n if (usaFooterCorrelate) {\n text += \"==Voci correlate==\";\n text += A_CAPO;\n text += LibWiki.setRigaQuadre(LibText.levaCoda(PATH_ANTRO, \"/\"));\n text += LibWiki.setRigaQuadre(PATH_ANTRO + \"Cognomi\");\n text += LibWiki.setRigaQuadre(PATH_ANTRO + \"Didascalie\");\n }// end of if cycle\n\n return text;\n }", "public boolean enviarMailConfirmacion(Agente agente, Usuario usuario){\n\n try {\n\n //seteamos el asunto\n// message.setSubject(\"UNDEC - Activar Cuenta Nortia UNDEC\");\n//\n// //seteamos el mensaje que vamos a enviar\n// message.setContent(\"<html>\\n\" +\n// \"<body>\\n\" +\n// \"\\n Hola, para poder activar la cuenta haga click en el siguiente link ----> \" +\n// \"<a href=\\\"\"+new URLWEB().getAbsoluteApplicationUrl()+\"/activarcuenta.xhtml?username=\"+usuario.getUsuarionombre()+\n// \"&hash=\"+usuario.getUsuarioclave()+\n// \"\\\">\\n\" +\n// \"Activar cuenta</a>\\n\" +\n// \"\\n\" +\n// \"En caso de no poder pegue en el browser lo siguiente\\n \"+\n// new URLWEB().getAbsoluteApplicationUrl()+\"/activarcuenta.xhtml?username=\"+usuario.getUsuarionombre()+\n// \"&hash=\"+usuario.getUsuarioclave()+\"\\n\"+\n// \"Muchas Gracias\"+\n// \"</body>\\n\" +\n// \"</html>\", \"text/html\");\n// //colocamos la direccion de donde enviamos el correo\n// Address address = new InternetAddress(agente.getEmail());\n// message.setFrom(address);\n// //Colocamos la direccion de la persona a enviar\n// Address send = new InternetAddress(agente.getOtroemail(),false);\n// message.addRecipient(Message.RecipientType.TO,send);\n// message.addRecipient(Message.RecipientType.BCC, new InternetAddress( agente.getOtroemail()));\n// //la persona que envia con la validacion de su cuenta.\n// Transport trans = session.getTransport(\"smtp\");\n// //Aca se autentifica que la direccion de la persona que envia sea válida\n// //trans.connect();\n// trans.connect(\"[email protected]\",\"sgap*9812\");\n// trans.sendMessage(message,message.getAllRecipients());\n// trans.close();\n Email email = new Email();\n email.setFromAddress(\"Nortia UNDEC\", \"[email protected]\");\n email.addRecipient(agente.getApellido(), agente.getEmail(), RecipientType.TO);\n email.addRecipient(agente.getApellido(), agente.getOtroemail(), RecipientType.BCC);\n email.setTextHTML(\"Hola \"+usuario.getUsuarionombre()+\", <br /> para poder activar la cuenta haga click en el siguiente link ----> \" +\n\"<a href=\\\"\"+new URLWEB().getAbsoluteApplicationUrl()+\"/activarcuenta.xhtml?username=\"+usuario.getUsuarionombre()+\n \"&hash=\"+usuario.getUsuarioclave() +\n\"\\\"> Activar cuenta </a> <br />\"+\n \n\"En caso de no poder pegue en el browser lo siguiente \" +\n new URLWEB().getAbsoluteApplicationUrl()+\"/activarcuenta.xhtml?username=\"+usuario.getUsuarionombre()+\n\"&hash=\"+usuario.getUsuarioclave()+\"<br />\" +\n\"Muchas Gracias\");\n email.setSubject(\"UNDEC - Activar Cuenta Nortia UNDEC\");\n \n // or:\n new Mailer(\"localhost\", 25, \"[email protected]\", \"sgap*9812\").sendMail(email);\n } catch (Exception ex) {\n\n ex.printStackTrace();\n //Si el correo tiene algun error lo retornaremos aca\n JsfUtil.addErrorMessage(ex,\"No se pudo crear el Usuario\");\n\n return false;\n\n// } catch (MalformedURLException ex) {\n// Logger.getLogger(EnviarMail.class.getName()).log(Level.SEVERE, null, ex);\n// return false;\n }\n //Correo tuvo exito dara una salida en este punto indicando que si se envio\n return true;\n \n }", "private void jButton3ActionPerformed(java.awt.event.ActionEvent evt) {\n String correo = null;\n c.setContrasena(\"wjoletormilizvld\");\n Object obj[][]=null;\n //Aqui se modifica el corre emisor\n c.setUsuario(\"[email protected]\");\n \n c.setAsunto(asunto.getText());\n c.setMensaje(jTextArea1.getText());\n \n if(jRadioButton4.isSelected()){\n c.setDestino(destino.getText());\n correo=destino.getText();\n }\n if(jRadioButton3.isSelected()){\n jTable1.setVisible(true);\n \n DefaultTableModel modelo = new DefaultTableModel();\n modelo.addColumn(\"Nombre\");\n modelo.addColumn(\"Teléfono\");\n modelo.addColumn(\"Correo electrónico\");\n \n String correoxd = jComboBox1.getSelectedItem().toString();\n System.out.println(\"Nombre de cliente \"+correoxd);\n ArrayList<Object[]> datos = new ArrayList<Object[]>();\n datos=Conexion.datos_email_clientes(correoxd);\n \n for(int i=0;i<datos.size();i++){\n modelo.addRow(datos.get(i));\n }\n \n jTable1.setModel(modelo);\n// for(int i=0;i<datos.size();i++){\n// modelo.addRow(datos.get(i));\n String des=(String)jTable1.getValueAt(0,2);;\n c.setDestino(des);\n correo=des;\n obj=correo_cliente(correoxd);\n System.out.println(\"El correo al que se envió fue: \"+des);\n }\n \n \n// c.setNombreArchivo(\"sitemgr_photo_1137.jpg\");\n// c.setRutaArchivo(\"sitemgr_photo_1137.jpg\");\n \n Controlador c1 = new Controlador();\n if(jRadioButton4.isSelected()||jRadioButton3.isSelected()){\n try {\n if(c1.enviarCorreo(c)){\n DesktopNotify.showDesktopMessage(\"Enviado\", \"El correo electrónico se ha enviado con éxito\", DesktopNotify.SUCCESS, 7000L);\n historial_correo(correo);\n }else{\n DesktopNotify.showDesktopMessage(\"Error\", \"El correo electrónico no se ha podido enviar\", DesktopNotify.FAIL, 7000L);\n }\n } catch (MessagingException ex) {\n Logger.getLogger(e_mail.class.getName()).log(Level.SEVERE, null, ex);\n }\n }else{\n JOptionPane.showMessageDialog(null, \"Debe seleccionar un destino\");\n }\n }", "public String enviarAServidor() {\n return \"\";\n }", "public Integer guardarTramaCierreBD(Map<String, String> parametros) {\r\n try {\r\n if (!DBPinpad.guardarTramaCierrePinpadMC(parametros.get(\"response_code\"), parametros.get(\"message\"),\r\n parametros.get(\"ecr_currency_code\"),\r\n parametros.get(\"ecr_aplication\"),\r\n parametros.get(\"ecr_transaccion\"), parametros.get(\"merchant_id\"),\r\n parametros.get(\"print_data\"), VariablesCaja.vNumPedVta))\r\n return VariablesPinpad.RET_NOK;\r\n } catch (Exception e) {\r\n log.debug(e.toString());\r\n return VariablesPinpad.RET_NOK;\r\n }\r\n return VariablesPinpad.RET_OK;\r\n }", "public void notificar()\n\t{\n\n\t\tSocket socket;\n\t\tDataOutputStream out;\n\n\t\ttry\n\t\t{\n\t\t\tsocket = new Socket(host, port);\n\n\t\t\tout = new DataOutputStream(socket.getOutputStream());\n\n\t\t\tout.writeUTF(id);\n\n\t\t\tsocket.close();\n\n\t\t} catch (IOException e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public void conectar() {\n \n try {\n String host = \"localhost\";\n int port = 19999;\n StringBuffer mensaje = new StringBuffer();\n \n InetAddress ia = InetAddress.getByName(host);\n Socket connection = new Socket(ia, port);\n \n BufferedOutputStream bos = new BufferedOutputStream(connection.getOutputStream());\n OutputStreamWriter osw = new OutputStreamWriter(bos);\n \n Random r = new Random();\n \n Integer i = r.nextInt(50);\n String s;\n s = i.toString() + (char) 13;\n osw.write(s);\n osw.flush();\n \n BufferedInputStream bis = new BufferedInputStream(connection.getInputStream());\n InputStreamReader isr = new InputStreamReader(bis);\n \n int caracter;\n while ((caracter = isr.read()) != 13) {\n mensaje.append((char) caracter);\n }\n \n area.setText(mensaje.toString());\n \n connection.close();\n } catch (UnknownHostException ex) {\n System.out.println(ex.toString());\n \n } catch (IOException ex) {\n System.out.println(ex.toString());\n }\n \n }", "@FXML\n\tpublic void xButtonConnectar(ActionEvent event) {\n\t\ttry {\n\t\t\tsocket = new Socket(\"localhost\", PORT);\n\t\t\txButtonConnectar.setDisable(true);\n\t\t\txButtonCalcular.setDisable(false);\n\t\t\txLabelInfo.setVisible(true);\n\t\t\t\n\t\t\t//recibir id\n\t\t\tobjetInputStream = new ObjectInputStream(socket.getInputStream());\n\t\t\tthis.idClient = (Integer) objetInputStream.readObject();\n\t\t\tSystem.out.println(\"(CLIENTE) cliente conectado [ID asignada: \"+idClient+\"]\");\n\t\t\tthis.xLabelID.setText(idClient+\"\");\n\t\t\t\n\t\t\t//enviar confirmacion\n\t\t\tobjetOutputStream = new ObjectOutputStream(socket.getOutputStream());\n\t\t\tobjetOutputStream.writeObject(new Boolean(true));\n\t\t\t\n\t\t\t\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(\"(CLIENTE) No se ha podido conectar\");\n\t\t}\n\t}", "public static float mostrarCredito(){\n JOptionPane.showMessageDialog(null,\"Actualmente hay \"+Monedero.getCredito());\n return Monedero.getCredito();\n }", "PrimitivaComunicacion(String simbolo){\r\n this.simbolo = simbolo;\r\n }", "@Override\n public void messageReceived(IoSession session, Object message) throws Exception {\n Packet pacchetto = null;\n try {\n pacchetto = (Packet) message;\n } catch (Exception ex) {\n System.out.println(\"EXCEPTION Pacchetto non riconosciuto\");\n }\n /* OPERAZIONE LIBERA */\n if (pacchetto instanceof RegistrationCVRequest) {\n RegistrationCVRequest req = (RegistrationCVRequest) pacchetto;\n try {\n session.write(new RegistrationCVResponse(db.insertCV(req.getCv())));\n } catch (Exception ex) {\n session.write(new RegistrationCVResponse(false));\n }\n return;\n }\n /* OPERAZIONE LIBERA */\n if (pacchetto instanceof RegistrationVaccinatedRequest) {\n RegistrationVaccinatedRequest req = (RegistrationVaccinatedRequest) pacchetto;\n Vaccinazione v = req.getVaccinazione();\n String codVaccinazione;\n try {\n codVaccinazione = db.insertVaccination(v);\n } catch (Exception ex) {\n codVaccinazione = null;\n }\n RegistrationVaccinatedResponse response;\n if (codVaccinazione == null) {\n response = new RegistrationVaccinatedResponse(false, null);\n session.write(response);\n }\n else {\n response = new RegistrationVaccinatedResponse(true, Prettier.makeReadable(codVaccinazione));\n session.write(response);\n //Invio mail di conferma\n String email = req.getVaccinazione().getVaccinato().getEmail();\n if (email != null && !email.equals(\"\"))\n MailHelper.sendEmail(email, \"ID VACCINAZIONE PER \" + v.getVaccinato().getCodiceFiscale(), \"ID VACCINAZIONE: \" + Prettier.makeReadable(codVaccinazione));\n }\n\n return;\n }\n /* OPERAZIONE LIBERA */\n if (pacchetto instanceof UserRegistrationRequest) {\n UserRegistrationRequest req = (UserRegistrationRequest) pacchetto;\n UserRegistrationResponse response;\n try {\n boolean esito = db.registerUser(req.getVaccinato(), Prettier.normalizeKey(req.getKey()));\n if (esito) setClientAuthenticated(session, req.getVaccinato().getCodiceFiscale());\n response = new UserRegistrationResponse(esito);\n } catch (Exception ex) {\n response = new UserRegistrationResponse(false);\n }\n session.write(response);\n return;\n }\n /* OPERAZIONE LIBERA */\n if (pacchetto instanceof UserLoginRequest) {\n UserLoginRequest req = (UserLoginRequest) pacchetto;\n try {\n Vaccinato v = db.login(req.getUsername(), req.getPassword());\n if (v != null) {\n session.write(new UserLoginResponse(true, v));\n setClientAuthenticated(session, v.getCodiceFiscale());\n } else session.write(new UserLoginResponse(false));\n } catch (Exception ex) {\n session.write(new UserLoginResponse(false));\n }\n return;\n }\n /* OPERAZIONE VINCOLATA A LOGIN */\n if (pacchetto instanceof RegistrationEVRequest) {\n if (!isClientAuthenticated(session)) {\n session.write(new RegistrationEVResponse(false));\n return;\n }\n RegistrationEVRequest req = (RegistrationEVRequest) pacchetto;\n RegistrationEVResponse response;\n try {\n boolean esito = db.insertEvent(req.getEventoAvverso(), getAuthVaccinated(session));\n response = new RegistrationEVResponse(esito);\n } catch (Exception ex) {\n response = new RegistrationEVResponse(false);\n }\n session.write(response);\n return;\n }\n if(pacchetto instanceof UserDisconnectRequest){\n session.write(new UserDisconnectResponse(resetClientAuthenticated(session)));\n return;\n }\n /* OPERAZIONE LIBERA */\n if (pacchetto instanceof GetCVByNameRequest) {\n GetCVByNameRequest req = (GetCVByNameRequest) pacchetto;\n List<CentroVaccinale> list = null;\n boolean esito = false;\n try {\n list = db.getCV(req.getNome());\n esito = true;\n } catch (Exception ignored) {\n } finally {\n session.write(new GetCVResponse(esito, list));\n }\n return;\n }\n /* OPERAZIONE LIBERA */\n if (pacchetto instanceof GetCVByMunicipalityTypologyRequest) {\n GetCVByMunicipalityTypologyRequest req = (GetCVByMunicipalityTypologyRequest) pacchetto;\n List<CentroVaccinale> list = null;\n boolean esito = false;\n try {\n list = db.getCV(req.getMunicipality(), req.getTypology());\n esito = true;\n } catch (Exception ignored) {\n } finally {\n session.write(new GetCVResponse(esito, list));\n }\n return;\n }\n /* OPERAZIONE LIBERA */\n if (pacchetto instanceof GetAllCVRequest) {\n GetAllCVRequest req = (GetAllCVRequest) pacchetto;\n List<CentroVaccinale> list = null;\n boolean esito = false;\n try {\n list = db.getCV();\n esito = true;\n } catch (Exception ignored) {\n } finally {\n session.write(new GetCVResponse(esito, list));\n }\n return;\n }\n /* OPERAZIONE LIBERA */\n if (pacchetto instanceof GetVaccinationByKeyRequest) {\n GetVaccinationByKeyRequest req = (GetVaccinationByKeyRequest) pacchetto;\n try {\n Vaccinazione vaccinazione = db.getVaccinationById(Prettier.normalizeKey(req.getKey()));\n if (vaccinazione != null)\n session.write(new GetVaccinationByKeyResponse(true, vaccinazione));\n else\n session.write(new GetVaccinationByKeyResponse(false, null));\n } catch (Exception sqlexcp) {\n session.write(new GetVaccinationByKeyResponse(false, null));\n }\n return;\n }\n /* OPERAZIONE LIBERA */\n if (pacchetto instanceof GetVaccinesRequest) {\n try {\n session.write(new GetVaccinesResponse(true, db.getVaccines()));\n } catch (Exception excp) {\n session.write(new GetVaccinesResponse(false, null));\n }\n return;\n }\n /* OPERAZIONE LIBERA */\n if (pacchetto instanceof GetEVTypologiesRequest) {\n try {\n session.write(new GetEvTypologiesResponse(true, db.getEventTypes()));\n } catch (Exception excp) {\n session.write(new GetEvTypologiesResponse(false, null));\n }\n return;\n }\n /* OPERAZIONE LIBERA */\n if (pacchetto instanceof GetReportRequest) {\n GetReportRequest req = (GetReportRequest) pacchetto;\n try {\n session.write(new GetReportResponse(true, db.generateReport(req.getCv())));\n } catch (Exception excp) {\n session.write(new GetReportResponse(false, null));\n }\n }\n /* OPERAZIONE LIBERA */\n if (pacchetto instanceof CheckUserIdRequest) {\n try {\n session.write(new CheckUserIdResponse(db.checkUserIdExists(((CheckUserIdRequest) pacchetto).getUserId())));\n } catch (Exception excp) {\n session.write(new CheckUserIdResponse(false));\n }\n }\n /* OPERAZIONE LIBERA */\n if (pacchetto instanceof CheckEmailRequest) {\n try {\n session.write(new CheckEmailResponse(db.checkEmailExists(((CheckEmailRequest) pacchetto).getEmail())));\n } catch (Exception excp) {\n session.write(new CheckEmailResponse(false));\n }\n }\n /* OPERAZIONE LIBERA */\n if (pacchetto instanceof CheckVaccinatedCVRequest) {\n CentroVaccinale cv = ((CheckVaccinatedCVRequest) pacchetto).getCentroVaccinale();\n try {\n Vaccinazione vaccinazione = db.getLastVaccination(getAuthVaccinated(session));\n session.write(new CheckVaccinatedCVResponse(cv.equals(vaccinazione.getCentroVaccinale())));\n } catch (Exception ex) {\n session.write(new CheckVaccinatedCVResponse(false));\n }\n }\n }", "public void Conectar(){\n Executors.newSingleThreadExecutor().execute(() -> {\n try {\n ws.connect();\n // se indica que el proposito del mensaje es identificar este nodo.\n // para lo cual se manda en el cuerpo que se trata de una tablet origin\n // y se envia la identificacion.\n String mensaje = buildMessage(this.PROPOSITO_ID, this.id, this.TABLET_ORIG);\n ws.sendText(mensaje);\n } catch (WebSocketException e) {\n e.printStackTrace();\n }\n });\n }", "public Mensaje (int valor, int peso, int porcentaje) {\n this.respuesta = false;\n this.valor = valor;\n this.porcentaje = porcentaje;\n this.peso = peso;\n }", "public String RespuestaCliente()\n{\tString Muestra=\"\";\n\t\n\tMuestra+=\"DATOS DEL CLIENTE\\n\"\n\t\t\t+ \"Nombre: \"+getNombre()+\"\\n\"\n\t\t\t+ \"DNI: \"+getDni()+\"\\n\"\n\t\t\t+ \"Salario: �\"+String.format(\"%.1f\",getSalario())+\"\\n\\n\";\n\t\n\treturn Muestra;\n\t\n\t}", "public GUIEnviarCorreo(java.awt.Frame parent, boolean modal, \n CuentaDeCorreo cuentaEnvio) {\n super(parent, modal);\n initComponents();\n this.setLocationRelativeTo(null);\n this.cuentaEnvio = cuentaEnvio;\n this.controladorDeFachada = new ControladorDeFachada();\n this.campoOrigen.setText(this.cuentaEnvio.getNombreCuenta() + \n this.cuentaEnvio.getServicio().getUrlServicioCorreo());\n }", "public int getComuneResidenzaCod() {\r\n return comuneResidenzaCod;\r\n }", "public java.lang.String getCodigo_pcom();", "@Override\n protected void eventoUscitaCampo(Campo campo) {\n\n try { // prova ad eseguire il codice\n\n if (campo.getNomeInterno().equals(nomeConto)) {\n this.setCodConto((Integer)campo.getValore());\n this.regolaCamera();\n }// fine del blocco if\n\n\n } catch (Exception unErrore) { // intercetta l'errore\n Errore.crea(unErrore);\n }// fine del blocco try-catch\n }", "private String[] condicionGeneral(String condicion) {\n String retorno[] = new String[2];\n try {\n String[] simbolos = {\"<=\", \">=\", \"==\", \"!=\", \"<\", \">\"};\n String simbolo = \"0\";\n\n if (condicion.length() > 3) {\n condicion = condicion.substring(1, condicion.length());\n for (int i = 0; i < simbolos.length; i++) {//selecciona el simbolo de la condicion\n if (condicion.contains(simbolos[i])) {\n simbolo = simbolos[i];\n break;\n }\n }\n if (simbolo.equals(\"0\")) {\n retorno[0] = \"0\";\n retorno[1] = \"mala construcción de la sentencia.\";\n } else {\n String var[] = condicion.split(simbolo);\n if (var.length == 2) {\n if (esNumero(var[0])) {\n if (esNumero(var[1])) {\n retorno[0] = \"1\";\n retorno[1] = \"\";\n } else {\n if (var[1].matches(\"[a-zA-Z]*\")) { //comprueba que solo contenga letas \n byte aux = 0;\n\n for (int i = 0; i < codigo.size(); i++) {\n if (var[1].equals(codigo.get(i).toString())) {\n aux++;\n }\n }\n if (aux > 0) {\n retorno[0] = \"1\";\n retorno[1] = \"\";\n } else {\n retorno[0] = \"0\";\n retorno[1] = \"no se reconoce la variable \" + var[1] + \".\";\n }\n } else {\n retorno[0] = \"0\";\n retorno[1] = \"mala construcción de la sentencia.\";\n }\n }\n } else {\n if (var[0].matches(\"[a-zA-Z]*\")) { //comprueba que solo contenga letras \n byte aux = 0;\n for (int i = 0; i < codigo.size(); i++) {\n if (var[0].equals(codigo.get(i).toString())) {\n aux++;\n }\n }\n if (aux > 0) {\n if (esNumero(var[1])) {\n retorno[0] = \"1\";\n retorno[1] = \"\";\n } else {\n if (var[0].matches(\"[a-zA-Z]*\")) { //comprueba que solo contenga letas \n aux = 0;\n\n for (int i = 0; i < codigo.size(); i++) {\n if (var[1].equals(codigo.get(i).toString())) {\n aux++;\n }\n }\n if (aux > 0) {\n retorno[0] = \"1\";\n retorno[1] = \"\";\n } else {\n retorno[0] = \"0\";\n retorno[1] = \"no se reconoce la variable \" + var[1] + \".\";\n }\n } else {\n retorno[0] = \"0\";\n retorno[1] = \"mala construcción de la sentencia.\";\n }\n }\n } else {\n retorno[0] = \"0\";\n retorno[1] = \"no se reconoce la variable \" + var[0] + \".\";\n }\n } else {\n retorno[0] = \"0\";\n retorno[1] = \"mala construcción de la sentencia.\";\n }\n\n }\n } else {\n retorno[0] = \"0\";\n retorno[1] = \"mala construcción de la sentencia.\";\n }\n }\n } else {\n retorno[0] = \"0\";\n retorno[1] = \"mala construcción de la sentencia.\";\n }\n\n\n\n } catch (Exception e) {\n System.out.println(\"Error en condicion \" + e.getClass());\n } finally {\n return retorno;\n }\n }", "private String enviarSolicitud(VSolicitudesDTO regSol, int idNav, File anexo, int helpDesk, String elUsuario) {\n/* 224 */ if (regSol == null) {\n/* 225 */ return \"ErrorInterno\";\n/* */ }\n/* */ \n/* 228 */ ServiciosDAO serf = new ServiciosDAO();\n/* 229 */ ServiciosDTO servicio = serf.cargarRegistro(regSol.getCodigoServicio());\n/* 230 */ serf.close();\n/* */ \n/* 232 */ SisUsuariosDAO pers = new SisUsuariosDAO();\n/* 233 */ SisUsuariosDTO persona = pers.cargarRegistro(regSol.getEmpleadoProveedor());\n/* */ \n/* 235 */ if (!persona.getEstado().equals(\"A\")) {\n/* 236 */ return \"ProveedorInactivo\";\n/* */ }\n/* */ \n/* */ \n/* */ \n/* */ \n/* 242 */ CaracteristicasDAO rsCaracteristica = new CaracteristicasDAO();\n/* 243 */ int faltantes = rsCaracteristica.pendientes(regSol.getNumero(), servicio.getCodigo(), \"C\");\n/* 244 */ CaracteristicasDTO car = rsCaracteristica.cargarValorTiempo(regSol.getNumero(), servicio.getCodigo());\n/* 245 */ rsCaracteristica.close();\n/* */ \n/* 247 */ if (faltantes > 0) {\n/* 248 */ return \"CamposObligatorios\";\n/* */ }\n/* */ \n/* */ \n/* */ \n/* 253 */ if (car != null) {\n/* 254 */ regSol.setDuracion(car.getDuracion());\n/* 255 */ regSol.setUnidadMedida(car.getUnidadMedida());\n/* */ } \n/* */ \n/* */ \n/* */ \n/* */ \n/* 261 */ String fechaVigencia = Utilidades2.fechaVigencia(regSol.getUnidadMedida());\n/* */ \n/* */ \n/* 264 */ String fechaterminacion = Utilidades2.fechaTerminacion(fechaVigencia, regSol.getDuracion(), regSol.getUnidadMedida());\n/* */ \n/* */ \n/* */ \n/* 268 */ String observacion = \"\";\n/* */ \n/* 270 */ EstadoDAO efa = new EstadoDAO();\n/* 271 */ efa.cargarTodosTipo(\"PRV\");\n/* 272 */ EstadoDTO esta = efa.next();\n/* 273 */ efa.close();\n/* */ \n/* 275 */ boolean enviarMensaje = (helpDesk == 0);\n/* */ \n/* */ \n/* 278 */ Varios oVarios = new Varios();\n/* 279 */ if (anexo == null) {\n/* 280 */ oVarios.enviarSolicitud(idNav, regSol.getCodigoEstado(), esta.getCodigo(), observacion, regSol, enviarMensaje, fechaVigencia, fechaterminacion, 0, regSol.getDuracion(), regSol.getUnidadMedida(), elUsuario);\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ }\n/* */ else {\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 295 */ oVarios.enviarSolicitud(idNav, regSol.getCodigoEstado(), esta.getCodigo(), observacion, anexo, regSol, enviarMensaje, fechaVigencia, fechaterminacion, 0, regSol.getDuracion(), regSol.getUnidadMedida(), elUsuario);\n/* */ } \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 313 */ VSolicitudesDAO sf = new VSolicitudesDAO();\n/* */ \n/* 315 */ regSol = sf.getSolicitud(regSol.getNumero());\n/* 316 */ while (regSol.getSolicitudPadre() != -1) {\n/* 317 */ VSolicitudesDTO regSolPadre = sf.getSolicitud(regSol.getSolicitudPadre());\n/* */ \n/* */ \n/* 320 */ int diasServicio = Utilidades2.diasDelServicio(regSolPadre.getDuracion(), regSolPadre.getUnidadMedida());\n/* */ \n/* 322 */ long diferencia = -1L * Utilidades2.diferenciaEnDias(regSol.getFechaVigencia(), regSolPadre.getFechaVigencia());\n/* */ \n/* 324 */ String nuevaFecha = Utilidades2.fechaMasDias(regSol.getFechaEstimadaTerminacion(), (int)(diasServicio - diferencia));\n/* */ \n/* 326 */ if (Utilidades2.compararFechas(regSolPadre.getFechaEstimadaTerminacion(), nuevaFecha) < 0) {\n/* 327 */ String s = \"fecha_estimada_terminacion=\" + Utilidades.formatoFecha2(Utilidades.darFormatoFecha(nuevaFecha)) + \",\";\n/* 328 */ s = s + \"fecha_base_escalamientos=\" + Utilidades.formatoFecha2(nuevaFecha) + \",\";\n/* 329 */ s = s + \"fecha_modificacion=\" + Utilidades.formatoFecha(Utilidades.ahora()) + \",\";\n/* 330 */ s = s + \"usuario_modificacion='\" + elUsuario + \"'\";\n/* 331 */ sf.actualizarCampos(regSolPadre.getNumero(), s);\n/* */ } \n/* 333 */ regSol = sf.getSolicitud(regSolPadre.getNumero());\n/* */ } \n/* */ \n/* 336 */ sf.close();\n/* */ \n/* 338 */ return null;\n/* */ }", "public Sesion(String codigoCliente) {\n cliente = new Cliente(codigoCliente);\n estado = Estado.inicioBot;\n accion = Accion.registrar;\n valor = ValorAIngresar.nombre;\n mensajeRecibido = null;\n respuesta = new Respuesta();\n }", "@Override\r\n\tprotected String requestText() {\n\t\tGuardarVtaCeroMotivoRequest guardarVtaCeroMotivoRequest = new GuardarVtaCeroMotivoRequest();\r\n\t\tguardarVtaCeroMotivoRequest.setAnio(Anio);\r\n\t\tguardarVtaCeroMotivoRequest.setCodCliente(codCliente);\r\n\t\tguardarVtaCeroMotivoRequest.setCodDeposito(codDeposito);\r\n\t\tguardarVtaCeroMotivoRequest.setMes(Mes);\r\n\t\tguardarVtaCeroMotivoRequest.setMotivo(Motivo);\r\n\t\tguardarVtaCeroMotivoRequest.setObservacion(observacion);\r\n\t\tguardarVtaCeroMotivoRequest.setSemana(Semana);\r\n\t\tguardarVtaCeroMotivoRequest.setUsuario(Usuario);\r\n\t\tString request = JSONHelper.serializar(guardarVtaCeroMotivoRequest);\r\n\t\treturn request;\r\n\t}", "@Override\n public String getInformacionInstruccion() {\n\treturn \"comando desconocido\";\n }", "@Override\n\tpublic void teclaCorrigeDigitada() {\n\t\t\n\t}", "private static String generarIdUsuario(String correo2) {\n\t\tString idUsuariogen=\"\";\n\t\tString[] divCorreo=null;\n\t\tString[] divCorreo2=null;\n\t\t\n\t\tif(correo2.contains(\"@ucentral.edu.co\"))\n\t\t{\n\t\t\tdivCorreo=correo2.split(\"@\");\n\t\t\tidUsuariogen = divCorreo[0];\n\t\t}\n\t\telse\n\t\t{\n\t\t\tdivCorreo=correo2.split(\"@\");\n\t\t\tdivCorreo2=divCorreo[1].split(\"\\\\.\");\n\t\t\tidUsuariogen = divCorreo[0]+divCorreo2[0];\n\t\t\tSystem.out.print(idUsuariogen);\n\t\t}\n\t\treturn idUsuariogen;\n\t}", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n btnEnviar = new javax.swing.JButton();\n btnImprimir = new javax.swing.JButton();\n txtCorreo = new javax.swing.JTextField();\n jLabel1 = new javax.swing.JLabel();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n\n btnEnviar.setText(\"Enviar\");\n btnEnviar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnEnviarActionPerformed(evt);\n }\n });\n\n btnImprimir.setText(\"Imprimir\");\n btnImprimir.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnImprimirActionPerformed(evt);\n }\n });\n\n txtCorreo.setEditable(false);\n\n jLabel1.setText(\"Indicar correo electronico para enviar factura\");\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 .addGroup(layout.createSequentialGroup()\n .addGap(64, 64, 64)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLabel1)\n .addContainerGap(118, Short.MAX_VALUE))\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(txtCorreo)\n .addGroup(layout.createSequentialGroup()\n .addComponent(btnEnviar)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(btnImprimir)))\n .addGap(77, 77, 77))))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addContainerGap(98, Short.MAX_VALUE)\n .addComponent(jLabel1)\n .addGap(35, 35, 35)\n .addComponent(txtCorreo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(55, 55, 55)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(btnEnviar)\n .addComponent(btnImprimir))\n .addGap(55, 55, 55))\n );\n\n pack();\n }", "public SigalPeticion reativarUsuario ( AccountTO usuario ) throws Exception {\n \n // Tratamento para controle de campos opicionais\n int totalParams = 11;\n boolean possuiCenttra = true;\n boolean possuiCodPerfil = true;\n\n if ( usuario.getCenttra() == null || usuario.getCenttra().trim().equals(\"\") ) {\n --totalParams;\n possuiCenttra = false;\n }\n\n if ( usuario.getCodperfil() == null || usuario.getCodperfil().trim().equals(\"\") ) {\n --totalParams;\n possuiCodPerfil = false;\n }\n\n SigalPeticion msgEnvio = SigalPeticion.getInstance( totalParams );\n\n msgEnvio.addParametro( --totalParams, new Parametro( \"FUNCION\", \"RE\" ) );\n\n msgEnvio.addParametro( --totalParams, new Parametro( IUsuarioXML.USUARIO,\n usuario.getUsuario() ) );\n msgEnvio.addParametro( --totalParams, new Parametro( IUsuarioXML.OFICINA,\n usuario.getOficina() ) );\n msgEnvio.addParametro( --totalParams, new Parametro( IUsuarioXML.NOMBREUSU,\n usuario.getNombreusu() ) );\n msgEnvio.addParametro( --totalParams, new Parametro( IUsuarioXML.PASSWORD,\n usuario.getPassword() ) );\n msgEnvio.addParametro( --totalParams, new Parametro( IUsuarioXML.NIVSEGUSU,\n usuario.getNivsegusu() ) );\n msgEnvio.addParametro( --totalParams, new Parametro( IUsuarioXML.CODIDIOMA,\n usuario.getCodidioma() ) );\n msgEnvio.addParametro( --totalParams, new Parametro( IUsuarioXML.FECACTIVA,\n usuario.getFecactivaForEASE() ) );\n msgEnvio.addParametro( --totalParams, new Parametro( IUsuarioXML.FECDESACT,\n usuario.getFecdesactForEASE() ) );\n\n // CAMPO OPICIONAL, alteração feita na especificação v. 5.0\n if ( possuiCenttra )\n msgEnvio.addParametro( --totalParams, new Parametro( IUsuarioXML.CENTTRA,\n usuario.getCenttra() ) );\n\n // CAMPO OPICIONAL, alteração feita na especificação v. 5.0\n if ( possuiCodPerfil ) {\n msgEnvio.addParametro( --totalParams, new Parametro( IUsuarioXML.CODPERFIL,\n usuario.getCodperfil() ) );\n }\n\n msgEnvio.setTipoOperacion( \"update\" );\n msgEnvio.setTransaccion( \"SGREUSU\" );\n\n return msgEnvio; \n }", "private void enviarDatos() {\n try {\n if (validarDatos()) { // verificar si todos los datos obligatorios tienen informacion\n // verificar que el usuario de la pantalla presiono el boton YES\n if (obtenerMensajeDeConfirmacion() == JOptionPane.YES_OPTION) {\n llenarEntidadConLosDatosDeLosControles(); // llenar la entidad de Rol con los datos de la caja de texto del formulario\n int resultado = 0;\n switch (opcionForm) {\n case FormEscOpcion.CREAR:\n resultado = ClienteDAL.crear(clienteActual); // si la propiedad opcionForm es CREAR guardar esos datos en la base de datos\n break;\n case FormEscOpcion.MODIFICAR:\n resultado = ClienteDAL.modificar(clienteActual);// si la propiedad opcionForm es MODIFICAR actualizar esos datos en la base de datos\n break;\n case FormEscOpcion.ELIMINAR:\n // si la propiedad opcionForm es ELIMINAR entonces quitamos ese registro de la base de datos\n resultado = ClienteDAL.eliminar(clienteActual);\n break;\n default:\n break;\n }\n if (resultado != 0) {\n // notificar al usuario que \"Los datos fueron correctamente actualizados\"\n JOptionPane.showMessageDialog(this, \"Los datos fueron correctamente actualizados\");\n if (frmPadre != null) {\n // limpiar los datos de la tabla de datos del formulario FrmRolLec\n frmPadre.iniciarDatosDeLaTabla(new ArrayList());\n }\n this.cerrarFormulario(false); // Cerrar el formulario utilizando el metodo \"cerrarFormulario\"\n } else {\n // En el caso que las filas modificadas en el la base de datos sean cero \n // mostrar el siguiente mensaje al usuario \"Sucedio un error al momento de actualizar los datos\"\n JOptionPane.showMessageDialog(this, \"Sucedio un error al momento de actualizar los datos\");\n }\n }\n }\n } catch (Exception ex) {\n // En el caso que suceda un error al ejecutar la consulta en la base de datos \n // mostrar el siguiente mensaje al usuario \"Sucedio un error al momento de actualizar los datos\"\n JOptionPane.showMessageDialog(this, \"Sucedio el siguiente error: \" + ex.getMessage());\n }\n\n }", "public String buscarCliente(int cedulaCliente) {\n String mostrar = \"\";\n if (verificarCliente(cedulaCliente)) { //Verifica si el cliente a buscar existe o no, para entrar al for, o retornar un Strign vacio\n for (int i = 0; i < posicionActual; i++) { //Si el cliente existe procede a recorrer el vector.\n if (getCedulaCliente(i) == cedulaCliente) { //Pregunta si el cliente en la poscion actual, es el que se quiere mostrar\n mostrar += mostrarCliente(i); //almacena en el String la informacion del cliente en caso de qie la condicion anterior se cumpla\n }\n }\n }\n return mostrar; //Al final retorna la variable String vacia, si el cliente no existe, o con la informacion de este si esxiste\n }", "public void enviaMensaje(Usuario usuario, Usuario acusado,\n Comentario c, Puesto pst) {\n /* La cuenta que se usa para autenticarse en el servidor de correo. */\n try {\n LinkedList<Usuario> us = new LinkedList<Usuario>(\n new FabricaControladorJpa().obtenerControladorJpaUsuario()\n .findUsuarioEntities());\n Usuario admin = null;\n for (Usuario u : us) {\n if (u.getEsAdministrador()) {\n admin = u;\n break;\n }\n }\n final String usuarioCorreo;\n final String contrasena;\n String direccion;\n Session sesionEmail;\n String nombre;\n String archivoPropiedadesAutenticacion =\n \"WEB-INF/autenticacion-correo.properties\";\n FacesContext facesContext = FacesContext.getCurrentInstance();\n ExternalContext externalContext = facesContext.getExternalContext();\n try (InputStream is = externalContext\n .getResourceAsStream(archivoPropiedadesAutenticacion)) {\n Properties prop = new Properties();\n prop.load(is);\n\n usuarioCorreo = prop.getProperty(\"usuario\");\n contrasena = prop.getProperty(\"contrasena\");\n nombre = prop.getProperty(\"nombre\");\n direccion = prop.getProperty(\"correo\");\n }\n\n String archivoPropiedadesCorreo = \"WEB-INF/correo.properties\";\n try (InputStream is = externalContext\n .getResourceAsStream(archivoPropiedadesCorreo)) {\n Properties prop = new Properties();\n prop.load(is);\n Authenticator autenticador =\n new Authenticator() {\n @Override\n protected PasswordAuthentication\n getPasswordAuthentication() {\n PasswordAuthentication pa\n = new PasswordAuthentication(usuarioCorreo,\n contrasena);\n return pa;\n }\n };\n sesionEmail = Session.getInstance(prop, autenticador);\n }\n\n MimeMessage mensaje = new MimeMessage(sesionEmail);\n\n String remitente = String.format(\"%s <%s>\",\n \"Administracion-auto\", direccion);\n String recipiente = String.format(\"%s <%s>\",\n \"Administracion-auto\",\n admin.getCorreoElectronico() + \"ciencias.unam.mx\");\n mensaje.setFrom(remitente);\n mensaje.addRecipients(Message.RecipientType.TO, recipiente);\n mensaje.setSubject(\"SCPFC - Comentario inapropiado u ofensivo\");\n\n String textoMensaje = \"El mensaje con id <\"\n + c.getId()\n + \"> de fecha <\"\n + c.getFecha()\n + \"> del usuario <\"\n + acusado.getNombre()\n + \"> ha sido considerado ofensivo por el usuario <\"\n + usuario.getNombre()\n + \">\\n\\nREVISA EL COMENTARIO\\n\";\n String uri = ((HttpServletRequest) externalContext.getRequest())\n .getRequestURI();\n mensaje.setText(textoMensaje\n + obtenerDireccionBase()\n + uri\n + \"?id=\"\n + pst.getId());\n Transport.send(mensaje);\n FacesMessage facesMessage\n = new FacesMessage(FacesMessage.SEVERITY_INFO,\n \"REPORTE ENVIADO\", \"\");\n FacesContext.getCurrentInstance().addMessage(null, facesMessage);\n } catch (MessagingException e) {\n FacesMessage facesMessage\n = new FacesMessage(FacesMessage.SEVERITY_ERROR,\n \"ERROR GRAVE\", e.getMessage());\n FacesContext.getCurrentInstance().addMessage(null, facesMessage);\n } catch (Exception k) {\n FacesMessage facesMessage\n = new FacesMessage(FacesMessage.SEVERITY_ERROR,\n \"ERROR GRAVE\", k.getMessage());\n FacesContext.getCurrentInstance().addMessage(null, facesMessage);\n }\n }", "public void modificarCompraComic();", "private void verificar_comando(String comando, InterfazRemota interfaz, int puerto) {\n\tString cmd[] = comando.split(\"[\\\\s]+\");\n\tString aux[];\n\tString servidor;\n\tString archivo;\n\n\tif (cmd[0].equalsIgnoreCase(\"C\") && cmd.length == 3){\n\t if (cmd[1].equalsIgnoreCase(\"-t\") || cmd[1].equalsIgnoreCase(\"-k\")){\n\t\ttry {\n\t\t SalidaDFS salida = interfaz.dfs_distribuido(cmd[1] + \" \" + cmd[2], new Vector<String>());\n\t\t if ((salida.resultado).equals(\"\")){\n\t\t\tSystem.out.println(\"No hubo resultados \\n\");\n\t\t }\n\t\t else {\n\t\t\tSystem.out.println(salida.resultado);\n\t\t }\n\t\t \n\t\t}\n\t\tcatch (java.rmi.RemoteException r) {\n\t\t System.err.println(\"No se pudo establecer conexion con el servidor\");\n\t\t}\n\t\tfinally {\n\t\t return;\n\t\t}\n\t }\n\t /* Comando invalido */\n\t else System.out.println(\"Codigo Invalido\");\n\t}\n\t/* Solicitar una foto */\n\telse if (cmd[0].equalsIgnoreCase(\"D\") && cmd.length == 2 && cmd[1].matches(\"[\\\\S]+[:][\\\\S]+jpg\")){\n\t aux = cmd[1].split(\":\");\n\t servidor = aux[0];\n\t archivo = aux[1];\n\t try {\n\t\tInterfazRemota transferencia = null;\n\t\t\n\t\ttry {\n\t\t transferencia = (InterfazRemota)java.rmi.Naming.lookup(\"//\" + servidor + \":\" + puerto + \"/fotop2p\");\n\t\t}\n\t\tcatch (NotBoundException e) {\n\t\t System.err.println(\"No existe el servicio solicitado en \" + servidor + \":\" + puerto);\n\t\t System.exit(-1);\n\t\t}\n\t\tcatch (MalformedURLException m) {\n\t\t System.err.println(\"No se pudo establecer conexion con el servidor: URL incorrecta\");\n\t\t System.exit(-1);\n\t\t}\n\t\tcatch (java.rmi.RemoteException r) {\n\t\t System.err.println(\"No se pudo establecer conexion con el servidor\");\n\t\t System.exit(-1);\n\t\t}\n\n\t\tbyte [] foto = transferencia.archivo_a_bytes(archivo);\n\t\t\n\t\tif (foto == null) {\n\t\t System.out.println(\"Foto no encontrada o error al abrirla en el servidor\");\n\t\t}\n\t\telse {\n\t\t FileOutputStream fos = new FileOutputStream(\"./\" + archivo);\n\t\t BufferedOutputStream bos = new BufferedOutputStream(fos);\n\t\t bos.write(foto,0,foto.length);\n\t\t System.out.println(\"Foto recibida exitosamente \\n\");\n\n\t\t}\n\t }\n\t catch (java.rmi.RemoteException r) {\n\t\tSystem.err.println(\"No se pudo establecer conexion con el servidor\");\n\t }\n\t catch(IOException i) {\n\t\tSystem.err.println(\"Error al escribir el archivo\");\n\t }\n\t finally {\n\t\treturn;\n\t }\n\t}\n\t/* obterner numero de alcanzables */\n\telse if (cmd[0].equalsIgnoreCase(\"A\") && cmd.length == 1){\n\t try {\n\t\tVector<String> alc = interfaz.alcanzables(new Vector<String>());\n\t\tSystem.out.println(\"Alcanzables: \" + alc.size());\n\t }\n\t catch (java.rmi.RemoteException r) {\n\t\tSystem.out.println(\"No se pudo establecer conexion con el servidor\");\n\t\t\n\t\tSystem.out.println(r.getMessage());\n\t\tr.printStackTrace();\n\t }\n\t finally {\n\t\treturn;\n\t }\n\t}\n\t/* Salir */\n\telse if (cmd[0].equalsIgnoreCase(\"Q\") && cmd.length == 1 ){\n\t System.out.println(\"Chao\");\n\t System.exit(0);\n\t}\n \telse {\n\t System.out.println(\"Comando Invalido\");\n\t return;\n\t}\n }", "public void reversarComprobanteContabilidad() {\r\n String ide_cnccc = ser_comprobante.reversarComprobante(tab_tabla1.getValorSeleccionado(), null);\r\n if (guardarPantalla().isEmpty()) {\r\n utilitario.agregarMensaje(\"Se genero el Comprobante Num: \", ide_cnccc);\r\n }\r\n }", "public Botella(int contenido_neto) {\n this.contenido_neto = contenido_neto;\n }", "java.lang.String getTelefon();", "public void sendTurno() throws RemoteException, InterruptedException, IOException ;", "public String getCUSU_CODIGO(){\n\t\treturn this.myCusu_codigo;\n\t}", "public void enviarEmail(String c, Ciudadano a){\n\t}", "String getCodiceFiscale();", "public String getEmail() { return (this.idcorreo == null) ? \"\" : this.idcorreo; }", "@Override\r\n\tprotected String requestText() {\n\t\tActualizarCompromisoRequest actualizarCompromisoRequest = new ActualizarCompromisoRequest();\r\n\t\tactualizarCompromisoRequest.listaInventarioCompromiso = this.listaInventarioCompromiso;\r\n\t\tactualizarCompromisoRequest.listaPosicionCompromiso = this.listaPosicionCompromiso;\r\n\t\tactualizarCompromisoRequest.listaPresentacionCompromiso = this.listaPresentacionCompromiso;\r\n\t\tactualizarCompromisoRequest.updateInformacionAdicionalTO = this.updateInformacionAdicionalTO;\r\n\t\tactualizarCompromisoRequest.codigoCabecera = this.codigoCabecera;\r\n\t\tString request = JSONHelper.serializar(actualizarCompromisoRequest);\r\n\t\treturn request;\r\n\t}", "public static void MostrarPerroSegunCodigo( Perro BaseDeDatosPerros[]){\n int codigo;\r\n System.out.println(\"Ingrese el codigo del perro del cual decea saber la informacion\");\r\n codigo=TecladoIn.readLineInt();\r\n System.out.println(\"____________________________________________\");\r\n System.out.println(\"El nombre del Dueño es: \"+BaseDeDatosPerros[codigo].getNombreDuenio());\r\n System.out.println(\"El telefono del Dueño es :\"+BaseDeDatosPerros[codigo].getTelefonoDuenio());\r\n System.out.println(\"____________________________________________\");\r\n \r\n }", "public int contaPercorre() {\n\t\tint contaM = 0;\n\t\tCampusModel aux = inicio;\n\t\tString r = \" \";\n\t\twhile (aux != null) {\n\t\t\tr = r + \"\\n\" + aux.getNomeCampus();\n\t\t\taux = aux.getProx();\n\t\t\tcontaM++;\n\t\t}\n\t\treturn contaM;\n\t}", "@Override\n\tpublic Map<String, Object> IngresarNeocomer(String correo, String password) {\n\t\tMap<String, Object> rpta = new HashMap<>();\n\t\tPersonas param = new Personas();\n\t\tPersonas rptapersonas = new Personas();\n\t\tRoles rolparam = new Roles();\n\t\tTrabajadores trabajadores = null;\n\t\ttrabajadores = tramapper.SelectByCorreoAndPassword(correo, password);\n\t\tif (trabajadores != null) {\n\t\t\tparam.setId_persona(trabajadores.getId_persona());\n\t\t\trptapersonas = permapper.SelectById(param);\n\t\t\trolparam.setId_rol(trabajadores.getId_rol());\n\t\t\trolparam = rolesmapper.SelectById(rolparam);\n\t\t\trpta.put(\"msgserver\", \"Welcome \" + rptapersonas.getNombres() + \" es UD. \" + rolparam.getDetalle());\n\t\t\trpta.put(\"Persona\", rptapersonas);\n\t\t} else {\n\t\t\trpta.put(\"msgserver\", \"Datos no Encontrados\");\n\t\t}\n\t\treturn rpta;\n\t}", "public String receberMensagem() throws Exception {\n return this.receberMsg.readUTF();\n }", "public TransmitirResponse transmitirNroExpediente(TransmitirNroExpedienteRequest tramiteSuceRequest) {\r\n\t\ttry {\r\n\t\t\tSystem.out.println(\"======================\");\r\n\t\t\tSystem.out.println(\"Inicio: transmitirNroExpediente\");\r\n\r\n\t\t\tMensajeType mensajeType = tramiteSuceRequest.getMensaje();\r\n\r\n\t\t\t//1: Se recupera la SUCE\r\n\t\t\tBeanSuce suce = new BeanSuce();\r\n\t\t\tsuce.setSuce(mensajeType.getSuce());\r\n\t\t\tsuce.setNroExpediente(mensajeType.getNumeroExpediente());\r\n\r\n\t\t\t//2: Se actualiza la SUCE\r\n\t\t\tServicioSuce servicioSuce = new ServicioSuce();\r\n\t\t\tservicioSuce.modificarSuce(suce);\r\n\r\n\t\t\t// 2.1: Registrar estado traza 6: Suce generada\r\n\t\t\tBeanTraza traza = new BeanTraza();\r\n\t\t\ttraza.setEstadoTraza(6);\r\n\t\t\ttraza.setDe(2);\r\n\t\t\ttraza.setPara(3);\r\n\r\n\t\t\tBeanFormato formato = new BeanFormato();\r\n\t\t\tformato.setFormato(mensajeType.getFormato());\r\n\r\n\t\t\tServicioOrden servicioOrden = new ServicioOrden();\r\n\t\t\tBeanOrden orden = servicioOrden.buscarOrdenPorSuce(suce.getSuce());\r\n\t\t\torden = servicioOrden.buscarOrdenPorOrdenId(orden.getOrdenId(), formato);\r\n\t\t\tBeanTce tce = servicioOrden.buscarTcePorOrdenId(orden.getOrdenId());\r\n\t\t\tBeanMto mto = servicioOrden.buscarMtoVigentePorOrdenId(orden.getOrdenId());\r\n\t\t\tservicioOrden.registrarTraza(tce, mto, null, null, traza);\r\n\r\n\t\t\t//3: Transmitir Nro de Expediente a Usuario\r\n\t\t\t//TODO Transmitir Nro de Expediente a Usuario\r\n\r\n\t\t\tSystem.out.println(\"Fin\");\r\n\t\t\tSystem.out.println(\"======================\");\r\n\r\n\t\t\tTransmitirResponse res = new TransmitirResponse();\r\n\t\t\tres.setCodigo(\"OK\");\r\n\t\t\tres.setTexto(\"Exito\");\r\n\t\t\treturn res;\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\r\n\t\t\tTransmitirResponse res = new TransmitirResponse();\r\n\t\t\tres.setCodigo(\"ERR\");\r\n\t\t\tres.setTexto(\"Error\");\r\n\t\t\treturn res;\r\n\t\t}\r\n\t}", "public ICliente getCodCli();", "public Mensaje (double monto) {\n this.respuesta = true;\n this.monto = monto;\n }", "private String preparaMensaje(String mensaje){\n String binario;\n int longitud = 0;\n String bi=\"\";\n longitud = mensaje.length() + 4;\n for( int i = 15; i>=0; i--){\n bi += ( ( ( longitud & ( 1<<i ) ) > 0 ) ? \"1\" : \"0\" ) ;\n }\n return binario = cadenaABinario(\" \") + bi + cadenaABinario(mensaje);\n }", "public org.apache.axis2.databinding.types.soapencoding.String getCorrelateID(){\n return localCorrelateID;\n }", "public void enviarMensagem(String mensagem) {\n //Painel.COMPUTADOR_TRANSMISSOR.limparTextoCamadas();//Limpando texto do Computador Transmissor\n //Painel.COMPUTADOR_RECEPTOR.limparTextoCamadas();//Limpando texto do Computador Receptor\n\n //Painel.COMPUTADOR_TRANSMISSOR.limparTela();//Limpando texto da Tela\n //Painel.COMPUTADOR_RECEPTOR.limparTela();//Limpando texto da Tela\n\n //this.id_temporizador = 1;\n //this.idQuadroEsperado = 1;\n //MeioDeComunicacao.inicarTransmissao();\n\n adicionarMensagem(\"Msg Enviada: \" + mensagem);//Adiciona a mensagem enviada no Computador Transmissor\n\n aplicacaoTransmissora.aplicacaoTransmissora(mensagem);//Enviando a mensagem para aplicacao transmissora\n }", "String mo729c() throws RemoteException;", "public DialogoAggiungiFissiConto(int codConto) {\n /* rimanda al costruttore della superclasse */\n super();\n\n try { // prova ad eseguire il codice\n\n /* regola le variabili di istanza coi parametri */\n this.setCodConto(codConto);\n\n /* regolazioni iniziali di riferimenti e variabili */\n this.inizia();\n } catch (Exception unErrore) { // intercetta l'errore\n Errore.crea(unErrore);\n }// fine del blocco try-catch\n }", "private String insertarCartaHealingSign() {\n int[] valoresEnemigo = {\n// this.dañoEnemigo=valoresEnemigo[0];\n 0,\n// this.curaEnemigo=valoresEnemigo[1];\n 0,\n// this.cartasEnemigo=valoresEnemigo[2];\n 0,\n// this.descarteEnemigo=valoresEnemigo[3];\n 0,\n// this.recursosEnemigo=valoresEnemigo[4];\n 0,\n// this.moverMesaAManoEnemigo=valoresEnemigo[5];\n 0,\n// this.moverDescarteAManoEnemigo=valoresEnemigo[6];\n 0,\n// this.moverDeckAManoEnemigo=valoresEnemigo[7];\n 0,\n// this.moverMesaADeckEnemigo=valoresEnemigo[8];\n 0,\n// this.moverDescarteADeckEnemigo=valoresEnemigo[9];\n 0,\n// this.moverManoADeckEnemigo=valoresEnemigo[10];\n 0,\n// this.moverMesaADescarteEnemigo=valoresEnemigo[11];\n 0,\n// this.moverManoADescarteEnemigo=valoresEnemigo[12];\n 0,\n// this.moverDeckADescarteEnemigo=valoresEnemigo[13];\n 0,\n// this.moverDescarteAMesaEnemigo=valoresEnemigo[14];\n 0,\n// this.moverManoAMesaEnemigo=valoresEnemigo[15];\n 0,\n// this.moverDeckAMesaEnemigo=valoresEnemigo[16];\n 0\n };\n int[] valoresOwner = {\n// this.dañoOwner=valoresOwner[0];\n 0,\n// this.curaOwner=valoresOwner[1];\n 2,\n// this.cartasOwner=valoresOwner[2];\n 0,\n// this.descarteOwner=valoresOwner[3];\n 0,\n// this.recursosOwner=valoresOwner[4];\n 0,\n// this.moverMesaAManoOwner=valoresOwner[5];\n 0,\n// this.moverDescarteAManoOwner=valoresOwner[6];\n 0,\n// this.moverDeckAManoOwner=valoresOwner[7];\n 0,\n// this.moverMesaADeckOwner=valoresOwner[8];\n 0,\n// this.moverDescarteADeckOwner=valoresOwner[9];\n 0,\n// this.moverManoADeckOwner=valoresOwner[10];\n 0,\n// this.moverMesaADescarteOwner=valoresOwner[11];\n 0,\n// this.moverManoADescarteOwner=valoresOwner[12];\n 0,\n// this.moverDeckADescarteOwner=valoresOwner[13];\n 0,\n// this.moverDescarteAMesaOwner=valoresOwner[14];\n 0,\n// this.moverManoAMesaOwner=valoresOwner[15];\n 0,\n// this.moverDeckAMesaOwner=valoresOwner[16];\n 0\n };\n boolean[]valoresPlay={\n //this.OnMoveMesaADescarte=valoresPlay[0];\n false,\n //this.OnMoveMesaADeck=valoresPlay[1];\n false,\n //this.OnMoveMesaAMano=valoresPlay[2];\n false,\n //this.OnMoveDescarteAMesa=valoresPlay[3];\n false,\n //this.OnMoveDescarteADeck=valoresPlay[4];\n false,\n// this.OnMoveDescarteAMano=valoresPlay[5];\n false,\n// this.OnMoveDeckADescarte=valoresPlay[6];\n false,\n// this.OnMoveDeckAMesa=valoresPlay[7];\n false,\n// this.OnMoveDeckAMano=valoresPlay[8];\n false,\n// this.OnMoveManoADescarte=valoresPlay[9];\n false,\n// this.OnMoveManoAMesa=valoresPlay[10];\n false,\n// this.OnMoveManoADeck=valoresPlay[11];\n false,\n// this.OnStartTurnTable=valoresPlay[12];\n false,\n// this.OnStartTurnHand=valoresPlay[13];\n false,\n// this.OnStartTurnDiscard=valoresPlay[14];\n false,\n// this.OnStartTurnDeck=valoresPlay[15];\n false,\n// this.OnEndTurnTable=valoresPlay[16];\n true,\n// this.OnEndTurnHand=valoresPlay[17];\n false,\n// this.OnEndTurnDiscard=valoresPlay[18];\n false,\n// this.OnEndTurnDeck=valoresPlay[19];\n false,\n };\n ArrayList<Integer> datos = new ArrayList<Integer>();\n for (int i = 0; i < valoresEnemigo.length; i++) {\n datos.add(valoresEnemigo[i]);\n }\n for (int i = 0; i < valoresOwner.length; i++) {\n datos.add(valoresOwner[i]);\n }\n for (int i = 0; i < valoresPlay.length; i++) {\n if(valoresPlay[i]){\n datos.add(1);\n }else{\n datos.add(0);\n }\n }\n String insert=\"\";\n for(int i=0;i<datos.size();i++){\n if(i<datos.size()-1) {\n insert += datos.get(i) + \", \";\n }else{\n insert += datos.get(i) + \" )\";\n }\n }\n return insert;\n }", "public String mostrar(ArrayList<Correo>cor){\r\n String mensaje;\r\n \r\n for(Correo corre: cor){\r\n if(leer(cor)){\r\n mensaje=corre.getMensaje();\r\n corre.setLeido(true);\r\n return mensaje;\r\n }\r\n }\r\n return \"Ninguno por leer\";\r\n }", "public CompradorEntity findByCorreo(String correo) {\r\n TypedQuery query = em.createQuery(\"Select e From CompradorEntity e where e.correoElectronico = :correoElectronico\", CompradorEntity.class);\r\n\r\n query = query.setParameter(\"correoElectronico\", correo);\r\n\r\n List<CompradorEntity> sameUsuario = query.getResultList();\r\n CompradorEntity result;\r\n if (sameUsuario == null) {\r\n result = null;\r\n } else if (sameUsuario.isEmpty()) {\r\n result = null;\r\n } else {\r\n result = sameUsuario.get(0);\r\n }\r\n\r\n return result;\r\n }", "public String getRagione_sociale() {\r\n return ragione_sociale;\r\n }", "public String comunicarServidor(String[][] parametros) {\n\n\t\tString xmlString = \"<?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?>\";\n\t\txmlString += \"<\" + parametros[0][0] + \" id=\\\"\" + parametros[0][1]\n\t\t\t\t+ \"\\\">\";\n\n\t\tfor (int i = 1; i < parametros.length; i++) {\n\t\t\txmlString += \"<\" + parametros[i][0] + \">\" + parametros[i][1] + \"</\"\n\t\t\t\t\t+ parametros[i][0] + \">\";\n\t\t}\n\t\txmlString += \"</\" + parametros[0][0] + \">\";\n\n\t\treturn clienteTCP(this.host, this.port, xmlString); // Retorna a mensagem de resposta do servidor \n\n\t}" ]
[ "0.6703171", "0.66235495", "0.6572727", "0.6411123", "0.6289444", "0.6217416", "0.6205857", "0.6196471", "0.61691374", "0.6120717", "0.61115324", "0.6075646", "0.6029657", "0.5973239", "0.5954414", "0.58896965", "0.58681405", "0.5815309", "0.57912654", "0.5786788", "0.5768779", "0.5762007", "0.57614833", "0.57374275", "0.5712838", "0.57083243", "0.57000774", "0.5688309", "0.5678691", "0.5670077", "0.56686443", "0.56170636", "0.56160474", "0.55937994", "0.5591424", "0.5571407", "0.5566523", "0.5554094", "0.55349547", "0.55019754", "0.55016005", "0.54957145", "0.5493612", "0.5486462", "0.54835063", "0.5482749", "0.54718554", "0.5470742", "0.5469431", "0.54640496", "0.54513896", "0.543625", "0.5433645", "0.5418613", "0.54164314", "0.54068244", "0.5401439", "0.5399377", "0.5397648", "0.53822446", "0.5359424", "0.5355848", "0.53513545", "0.5351347", "0.5345283", "0.53435737", "0.5340671", "0.5340216", "0.5326541", "0.532274", "0.53205734", "0.53146183", "0.5310893", "0.5307749", "0.5307654", "0.5307614", "0.53059983", "0.53001964", "0.52971494", "0.5291212", "0.528489", "0.5284718", "0.5283311", "0.5282777", "0.5282003", "0.5271057", "0.52665126", "0.5265101", "0.52632105", "0.5261645", "0.5253461", "0.525253", "0.5250826", "0.5250731", "0.52492964", "0.52447605", "0.52444935", "0.52405983", "0.5238667", "0.52306736", "0.52306616" ]
0.0
-1
Sends a message to the given player ID, on the given space.
private void sendMessage(Space jSpace, int playerID, String msg) throws InterruptedException { sendHeader(jSpace, playerID, ServerCommands.message); jSpace.put(playerID, msg); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void sendMessage(String msg) {\n\t\tplayer.sendMessage(msg);\n\t}", "private void sendHeader(Space jSpace, int playerID, ServerCommands cmd) throws InterruptedException {\n\t\tjSpace.put(cmd, playerID);\n\t}", "private void sendMessage(CommandSender p, String msg) {\n\t\tif (p instanceof Player) {\n\t\t\tif (!((Player) p).isOnline()) return;\n\t\t}\n\t\t_.msg(p, GameMode.Sonic, msg);\n\t}", "public void broadcast(String msg, TBGPCommand command) {\n\t\tplayers.forEach((k,v) -> k.sendMessage(new TBGPMessage(command,msg)));\n\t}", "public synchronized void sendPrivateMessageToPlayer(Player player, String message) {\n SlackUser user;\n if (isTestingMode) {\n user = session.findUserByUserName(testingModeUserName);\n } else {\n user = session.findUserByUserName(player.getUserName());\n }\n SlackMessageHandle<SlackChannelReply> openDirectHandle = session.openDirectMessageChannel(user);\n SlackChannel directChannel = openDirectHandle.getReply().getSlackChannel();\n session.sendMessage(directChannel, message, null);\n }", "public void send(String id, String message) {\n if (sessions.containsKey(id)) {\n for (Session session : sessions.get(id)) {\n try {\n session.getRemote().sendString(message);\n } catch (Exception e) {\n Logger.getGlobal().log(Level.WARNING, e.getMessage());\n }\n }\n }\n }", "void sendPacketToPlayer(Player player, Object packet);", "public void doSendMsg() {\n FacesContext fctx = FacesContext.getCurrentInstance();\n HttpSession sess = (HttpSession) fctx.getExternalContext().getSession(false);\n SEHRMessagingListener chatHdl = (SEHRMessagingListener) sess.getAttribute(\"ChatHandler\");\n if (chatHdl.isSession()) {\n //TODO implement chat via sehr.xnet.DOMAIN.chat to all...\n if (room.equalsIgnoreCase(\"public\")) {\n //send public inside zone\n chatHdl.sendMsg(this.text, SEHRMessagingListener.PUBLIC, moduleCtrl.getLocalZoneID(), -1, -1);\n } else {\n chatHdl.sendMsg(this.text, SEHRMessagingListener.PRIVATE_USER, moduleCtrl.getLocalZoneID(), -1, curUserToChat.getUsrid());\n }\n this.text = \"\";\n }\n //return \"pm:vwChatRoom\";\n }", "public void sendMessage(String userID, String message){\n\n\t\t// Checking if the user is available before sending the message.\n\n\n\t\tif(chatInstanceMap.containsKey(userID)\n\t\t\t\t&& isLoggedInWithVisgo(userID)){\n\n\t\t\ttry {\n\t\t\t\tchatInstanceMap.get(userID).sendMessage(message);\n\n\n\t\t\t} catch (XMPPException e) {\n\n\t\t\t\tSystem.out.print(\"Problem with sending message :: \" + message);\n\t\t\t\t//e.printStackTrace();\n\t\t\t}\n\t\t}\n\t}", "public void sendMessage(String msg) {\n Player player = RegionOwn.server.getPlayer(name);\n if (player != null) {\n player.sendMessage(msg);\n } else if (RegionOwn.pm.isPluginEnabled(\"TextPlayer\")) {\n User user = TextPlayer.findUser(name);\n user.sendText(\"Region Security System\", msg);\n }\n }", "void sendTo(String from, String to, String m_id);", "public void send(String destination, String message, String identifier){\n return;\n }", "private void sendMessage(String message){\n\t\ttry{\n\t\t\toutput.writeObject(\"Punk Ass Server: \" + message);\n\t\t\toutput.flush();\n\t\t\tshowMessage(\"\\nPunk Ass Server: \" + message); \n\t\t}catch(IOException ioe){\n\t\t\tchatWindow.append(\"\\n Message not sent, try again or typing something else\");\n\t\t\t\n\t\t}\n\t\t\n\t}", "public static void sendMessage(int command) {\n\t\tfindWindow();\n\t\t\n\t\tuser32.SendMessageA(handle, IUser32.WM_COMMAND, command, 0x00000000);\n\t}", "void sendMessage(VoidMessage message, String id);", "public void sendGameMoveCharacterMessage(String username, String gameID, String gameRoomID, int destGridX, int destGridY)\r\n\t{\r\n\t\tsendMessageToServer(new MessageGameMoveCharacter(username, gameID, gameRoomID, destGridX, destGridY));\r\n\t}", "@Override\n public void sendChatMessage(EntityPlayer player) {\n }", "void sendPacket(Player player, Object packet);", "boolean send(String message, PlayerID from, PlayerID to) {\n\t\tfor (Player player : players) {\n\t\t\tif (player.id().equals(to)) {\n\t\t\t\tplayer.sendMsg(\"P\" + from.toString() + \": \" + message);\n\t\t\t\tlog.add(new String[] { from.toString(), message, String.valueOf(System.currentTimeMillis()) });\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}", "public static void inter(Player player, int number, String message) {\n\t\tplayer.getPackets().sendIComponentText(275, number, message);\n\t}", "public void write(String message, boolean spacePrefix){\n if(!super.callEvent(this, message, getChannelTarget())){\n Bukkit.getConsoleSender().sendMessage(getMessage(message, spacePrefix));\n }\n }", "public void send(Message msg);", "public void sentTo(String id, InfinispanComMessage infinispanComMessage){\n nodes.put(id, infinispanComMessage);\n }", "private void sendMessage(String content, String room) {\n }", "public void sendMessage(Player player, MessageType type, Object... args){\r\n player.sendMessage(type.format(args));\r\n }", "public synchronized void sendPublicMessageToPlayer(Player recipient, String message) {\n session.sendMessage(gameChannel, recipient.getUserName() + \", \" + message,null);\n }", "public void sendMessage(String message) {}", "public void sendMessage(final ProxiedPlayer player, final BaseComponent component) {\r\n\t\tplayer.sendMessage(component);\r\n\t}", "public void sendMessage(String message);", "public void sendMessage(String message){\n pw.print(message);\n pw.flush();\n }", "long sendMessage(int roomId, String message) throws RoomNotFoundException, RoomPermissionException, IOException;", "public void sendUdpMessageToDrone() {\n\n DatagramPacket packet = null;\n try {\n packet = new DatagramPacket(message.getBytes(), message.length(), InetAddress.getByName(\"127.0.0.1\"), 6000);\n sender.send(packet);\n\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "public void send(int id, Object o){\r\n\t\tclients[findClient(id)].send(o);\r\n\t}", "public void sendMessage()\r\n {\r\n MessageScreen messageScreen = new MessageScreen(_lastMessageSent);\r\n pushScreen(messageScreen);\r\n }", "void sendMessage(String msg);", "void SendPacket(int packetIdentifier);", "void sendMessage(String message) {\n writer.println(message);\n }", "public void sendMessage ( UUID sender , String message ) {\n\t\texecute ( handle -> handle.sendMessage ( sender , message ) );\n\t}", "public void sendMessage(String message) {\n printWriter.append(message);\n printWriter.flush();\n }", "public void serverSendMessageToUser(String username, String message) {\r\n \t\tServerCommand serverCommand = new PrivateMessageServerCommand(message, \"server\", username, null);\r\n \r\n \t\tRoMClient userClient = this.clients.getClientByUsername(username);\r\n \r\n \t\tthis.sendCommandToClient(userClient, serverCommand);\r\n \t}", "public void sendMessagePacket(String to, String message, Message.Type type) {\n Message msg = new Message(to, type);\n msg.setBody(message);\n xmppConnection.sendPacket(msg);\n// receiveMessage(connection);\n }", "void send(String message);", "public void sendMessage( MessagingV2 friend )\n {\n if( msg.length() == 0 )\n System.err.println( \"There is no message to send\" );\n else\n {\n System.out.println( user + \", your message has been sent\" );\n friend.receiveMessage( msg, user );\n msg = \"\";\n }\n }", "private void sendPacket(Player player, Object packet) {\n\t\ttry {\n\t\t\tObject handle = player.getClass().getMethod(\"getHandle\", new Class[0]).invoke(player, new Object[0]);\n\t\t\tObject playerConnection = handle.getClass().getField(\"playerConnection\").get(handle);\n\t\t\tplayerConnection.getClass().getMethod(\"sendPacket\", new Class[] { getNMSClass(\"Packet\") })\n\t\t\t\t\t.invoke(playerConnection, new Object[] { packet });\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public void sendIndividualCommand(String userID, CommandMessage command){\n\n\t\tMessageCreator mc = new MessageCreator(command);\n\n\t\tsendMessage(userID, mc.toXML());\n\n\t}", "private int sendCommandWithID(String commandID, String command, String args) throws IOException\n {\n StringBuilder __commandBuffer = new StringBuilder();\n if (commandID != null)\n {\n __commandBuffer.append(commandID);\n __commandBuffer.append(' ');\n }\n __commandBuffer.append(command);\n \n if (args != null)\n {\n __commandBuffer.append(' ');\n __commandBuffer.append(args);\n }\n __commandBuffer.append(SocketClient.NETASCII_EOL);\n \n String message;\n __writer.write(message = __commandBuffer.toString());\n __writer.flush();\n \n if (_commandSupport_.getListenerCount() > 0)\n _commandSupport_.fireCommandSent(command, message);\n \n __getReply();\n return _replyCode;\n }", "public void queueOtherPlayerMovement(Direction d, int player)\n\t{\n\t\tServerMessage move = new ServerMessage(ClientPacket.PLAYER_MOVEMENT);\n\t\tmove.addInt(player);\n\t\tswitch(d.name().toUpperCase().charAt(0))\n\t\t{\n\t\t\tcase 'D':\n\t\t\t\tmove.addInt(0);\n\t\t\t\tbreak;\n\t\t\tcase 'U':\n\t\t\t\tmove.addInt(1);\n\t\t\t\tbreak;\n\t\t\tcase 'L':\n\t\t\t\tmove.addInt(2);\n\t\t\t\tbreak;\n\t\t\tcase 'R':\n\t\t\t\tmove.addInt(3);\n\t\t\t\tbreak;\n\t\t}\n\t\tgetSession().Send(move);\n\t}", "public void sendMessage(final CommandSender player, final SoundType sound, String message) {\r\n\t\t//message = ChatColor.translateHexColorCodes(message);\r\n\t\tplayer.sendMessage(TextComponent.fromLegacyText(message));\r\n\t\tif(player instanceof ProxiedPlayer)\r\n\t\t\tKaranteeniCore.getSoundHandler().playSound((ProxiedPlayer)player, sound);\r\n\t}", "void messageSent(IMSession session, String messageId);", "public void sendPacket() throws IOException {\n\t\tbyte[] buf = playerList.toString().getBytes();\n\n\t\t// send the message to the client to the given address and port\n\t\tInetAddress address = packet.getAddress();\n\t\tint port = packet.getPort();\n\t\tpacket = new DatagramPacket(buf, buf.length, address, port);\n\t\tsocket.send(packet);\n\t}", "public void sendMessage(NetMessage message) {\n ClientDirector.getDataManager().sendMessage(message);\n }", "public void sendChat(String message) {\n\t\tenqueue(\"PRIVMSG #\"+Executable.targetChannel+\" :imGlitch \"+message);\n\t}", "@Override\r\n\tpublic void sendMessage(String message) {\n\t\tmediator.send(message, this);\r\n\t}", "public synchronized void sendMove(String s, ServerPlayer player) {\n if (player == current) {\n \tcurrent = current.getOpponent();\n System.out.println(current.getColor().toString());\n current.otherPlayerMoved(s);\n }\n }", "public static void sendMessage(CommandSender sender, String message) {\n sender.sendMessage(PREFIX + message);\n }", "public void sendMessage(ChatMessage msg) {\n\t\ttry {\n\t\t\tsOutput.writeObject(msg);\n\t\t}\n\t\tcatch(IOException e) {\n\t\t\tdisplay(\"Exception writing to server: \" + e);\n\t\t}\n\t}", "@Override\n public void sendMessage(OID_T dstOid, OUT_MSG_T message) {\n GS_VID_T lid = idManager.oid2Lid(dstOid);\n grapeVertex.setValue(lid);\n sendMessage(grapeVertex, message);\n }", "void sendMessage(Message m) throws IOException {\n String msg = m.toString();\n\n buffer = msg.getBytes(\"Windows-1256\");\n toServer = new DatagramPacket(buffer, buffer.length,\n InetAddress.getByName(sendGroup), port);\n if (m.getType() == Message.DATA) {\n manager.mManager.addMessage(m);\n }\n\n System.out.println(getName() + \"-->\" + m);\n serverSocket.send(toServer);\n }", "public void sendUdpMessageToESP() {\n\n DatagramPacket packet = null;\n try {\n packet = new DatagramPacket(message.getBytes(), message.length(), InetAddress.getByName(ESP_IPaddress), 6900);\n sender.send(packet);\n\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "private void broadcast(String message)\n \t{\n \t\tfor(int i = 0; i < players.length; i++)\n \t\t{\n // PROTOCOL\n \t\t\tplayers[i].sendMessage(message);\n // PROTOCOL\n \t\t}\n \t}", "public void sendMessage(String message)\n\t\t{\n\t\t\twriter.println(message);\n\t\t\twriter.flush();\n\t\t}", "static void sendMessageInternal(String channelId, String message) {\n if (Loader.jda != null) {\n TextChannel channel = Loader.jda.getTextChannelById(channelId);\n if (channel != null) {\n channel.sendMessage(message).queue();\n } else if (Loader.debug) {\n Loader.instance.getLogger().error(\"sendMessageInternal: TextChannel is null: \" + channelId);\n }\n } else if (Loader.debug) {\n Loader.instance.getLogger().error(\"sendMessageInternal: JDA is null\");\n }\n }", "@Override\n public void sendMessage(Message m) {\n commSender.sendMessage(m);\n }", "public int movePlayerToSpace(int a_playerNum, int a_spaceTo)\n {\n //get the players current position\n int currentPos = m_currentPlayers.get(a_playerNum - 1).getPlayerPosition();\n //get the result of the move\n int result = m_gameBoard.moveToSpecificPosition(a_playerNum, currentPos, a_spaceTo);\n //set the players position to the new position\n m_currentPlayers.get(a_playerNum - 1).setPlayerPosition(a_spaceTo);\n \n //if the player passed go, give him/her $200\n if(currentPos - a_spaceTo > 0)\n {\n m_currentPlayers.get(a_playerNum - 1).addToPlayerMoney(200);\n }\n return result;\n }", "private void sendMessage(ChatMessage msg) {\n try {\n sOutput.writeObject(msg);\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "public void sendMessage(String message) {\n\t\tif (!connectionActive()) {\n\t\t\tthrow new IllegalOperationException(\"Cannot send a message if you are not connected to a server!\\n\");\n\t\t}\n\t\tMessage bctMessage = Message.makeBroadcastMessage(userName, message);\n\t\tsocketConnection.print(bctMessage);\n\t}", "public void sendMessage(String message) {\n\t\tsocketTextOut.println(message);\n\t\tsocketTextOut.flush();\n\t}", "public void send(String command)\n {\n if (connected) { \n writer.println(command + \";\");\n }\n }", "protected void emit(Player p, String message) {\n }", "public void sendMessage(String str) {\n\t\ttry {\n\t\t\tsession.getRemote().sendString(str);\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "@Override\n\tpublic void playerJoined(String playerID) {\n\t}", "@Override\n\tpublic void SendMessage(String message) {\n\t\t\n\t\ttry\n\t\t{\n\t\tprintWriters.get(clients.get(0)).println(message);\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\n\t}", "@Override\n\tpublic void tellPlayer(String message) {\n\t\tSystem.out.println(message);\n\t}", "public void sendMessage(Message msg) {\n network.sendAsync(msg);\n }", "public static void generalChat(Player player, String message) {\n BaseComponent[] baseComp = assembleChatMessage(createNamePredicate(player.getName(), player.getDisplayName(), \"\", \":\", ChatColor.WHITE), message);\n broadcast(baseComp);\n }", "public static void playerBroadcast(Player sender, final String message, boolean webchat, boolean console) {\n\t\tfor (StandardPlayer player : instance.getOnlinePlayers()) {\n\t\t\tif (player != sender && player.isOnline()) {\n\t\t\t\ttry {\n\t\t\t\t\tplayer.sendMessage(message);\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t// Can happen if a player leaves as this handler is running\n\t\t\t\t\tinstance.getLogger().severe(\"Exception while broadcasting\");\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tBukkit.getConsoleSender().sendMessage(webchatConsoleGate(message, webchat, console));\n\t}", "protected void sendMessage(final String message) {\n\n logger.debug(LOG_TAG + \".sendMessage()\");\n\n // send message to client\n printWriter.println(message);\n\n }", "void sendChat(SendChatParam param);", "public void send(String msg) {\n msgs.push(msg);\n lastMessageSentAt = game.ticks;\n }", "public void sendIdCommand(int playerId, String firstName, String lastName) {\n\t\ttry {\n\t\t\tString idCommand = \"ID \" + playerId + \" \" + firstName + \" \"\n\t\t\t\t\t+ lastName + \"\\0\";\n\t\t\twriter.write(idCommand);\n\t\t\twriter.flush();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "private void sendMessage(String message){\n try{\n output.writeObject(nickname+\" : \" + message);\n output.flush();\n showMessage(\"\\n\"+nickname+\" : \" + message);\n }catch(IOException ioException){\n chatWindow.append(\"\\n Oops! Something went wrong!\");\n }\n }", "private static void unicast_send(int id, String msg) throws IOException {\n\n \tSocket socket = new Socket(IPs.get(id), Ports.get(id));\n\n try(PrintWriter out = new PrintWriter(socket.getOutputStream(), true)){\n \tout.println(serverId + \" \" + msg);\n \tSystem.out.println(\"Sent \"+ msg +\" to process \"+ id +\", system time is ­­­­­­­­­­­­­\"+ new Timestamp(System.currentTimeMillis()).toString());\n }\n socket.close();\n }", "public void sendMessageToPlayer(JSONObject msg, Player receiver)\n {\n if (mEnable && msg != null && receiver != null) {\n Log.d(LOGTAG,\"Sending message to receiver at pos \" + receiver.getPosition());\n\n // TODO: Check if device ok?\n BluetoothDevice recDevice = receiver.getBDevice();\n mBS.send(recDevice, MessageFactory.msgToBytes(msg));\n\n } else Log.d(LOGTAG,\"There is a problem sending a message to a receiver\");\n }", "public void sendMessage() {\n\t\tString myPosition=this.agent.getCurrentPosition();\n\t\tif (myPosition!=null){\n\t\t\t\n\t\t\tList<String> wumpusPos = ((CustomAgent)this.myAgent).getStenchs();\n\t\t\t\n\t\t\tif(!wumpusPos.isEmpty()) {\n\t\t\t\tList<String> agents =this.agent.getYellowpage().getOtherAgents(this.agent);\n\t\t\t\t\n\t\t\t\tACLMessage msg=new ACLMessage(ACLMessage.INFORM);\n\t\t\t\tmsg.setSender(this.myAgent.getAID());\n\t\t\t\tmsg.setProtocol(\"WumpusPos\");\n\t\t\t\tmsg.setContent(wumpusPos.get(0)+\",\"+myPosition);\n\t\t\t\t\n\t\t\t\tfor(String a:agents) {\n\t\t\t\t\tif(this.agent.getConversationID(a)>=0) {\n\t\t\t\t\t\tif(a!=null) msg.addReceiver(new AID(a,AID.ISLOCALNAME));\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tthis.agent.sendMessage(msg);\n\t\t\t\tthis.lastPos=myPosition;\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t}\n\n\t}", "private void spacePressed()\r\n {\r\n boolean moved = true;\r\n int currentPlayer = worldPanel.getCurrentPlayer();\r\n int currentUnit = worldPanel.getCurrentUnit();\r\n playerMoved(currentPlayer,currentUnit,moved);\r\n setMapPos();\r\n }", "public void sendUdpMessageToDrone(ActionEvent actionEvent) {\n\n String message = testmessagebox.getText();\n DatagramPacket packet = null;\n try {\n packet = new DatagramPacket(message.getBytes(), message.length(), InetAddress.getByName(\"127.0.0.1\"), 6000);\n sender.send(packet);\n\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "public void sendMessage ( String message ) {\n\t\texecute ( handle -> handle.sendMessage ( message ) );\n\t}", "public void sendRequest() {\r\n\t\t\r\n\t\tclient.join(this, isHost, gameCode, playerName, playerNumber);\r\n\t\t\r\n\t}", "public void sendPlayerName(String s) {\n try {\n dOut.writeUTF(s);\n dOut.flush();\n } catch (IOException e) {\n System.out.println(\"Could not send player name\");\n e.printStackTrace();\n }\n }", "public synchronized void sendMessage (String msg, ServerThread current) {\n\t\tcurrent.send (msg);\n\t}", "@Override\r\n\tpublic void sendMessage(String message) {\n\t\t\r\n\t}", "public synchronized void clientMove(CompassDirection direction, int playerID)\n\t\t\tthrows CommandException {\n\t\tassertPlayerExists(playerID);\n\n\t\tensureNoWinner();\n\t\tassertPlayersTurn(playerID);\n\t\tassertPlayerAP(playerID);\n\n\t\tfinal Player player = this.players.get(playerID);\n\n\t\t// Work out where the move would take the player\n\t\tfinal Location location = player.getLocation().atCompassDirection(\n\t\t\t\tdirection);\n\n\t\t// Ensure that the movement is within the bounds of the map and not\n\t\t// into a wall\n\t\tif (!this.map.insideMap(location)\n\t\t\t\t|| !this.map.getMapCell(location).isWalkable()) {\n\t\t\tthrow new CommandException(\"can't move into a wall\");\n\t\t}\n\n\t\tif (otherPlayerOnTile(location, playerID)) {\n\t\t\tthrow new CommandException(\"can't move into another player\");\n\t\t}\n\n\t\t// Costs one action point\n\t\tplayer.decrementAp();\n\n\t\t// Move the player\n\t\tplayer.setLocation(location);\n\n\t\tadvanceTurn(playerID);\n\t\treturn;\n\t}", "public static void sendActionbar(@NotNull Player player, String message) {\n checkNotNull(player, \"Player cannot be null\");\n\n getInstance().titleActionbarApi.sendActionbar(player, message);\n }", "public void messageSent(int messageId) {\n\r\n\t}", "public void sendMessage(String message){\n\t if (mOut != null && !mOut.checkError()) {\n\t mOut.println(message+\"\\n\");\n\t mOut.flush();\n\t }\n\t }", "void sendMessage(ChatMessage msg) {\n\t\ttry {\n\t\t\tsOutput.writeObject(msg);\n\t\t}\n\t\tcatch(IOException e) {\n\t\t\tdisplay(\"Não foi possível enviar a mesagem !!!\");\n\t\t}\n\t}", "public void sendMove (Move m){\n connect();\n try{\n doStream.writeUTF(\"MOVE\");\n doStream.writeUTF(currentUser.getUserName());\n doStream.writeUTF(m.toString());\n } catch (IOException e){\n e.printStackTrace();\n }\n\n disconnect();\n }", "private void sendPlayerChat1(String s) {\n\t\tc.getPA().sendFrame200(969, 591);\n\t\tc.getPA().sendFrame126(c.playerName, 970);\n\t\tc.getPA().sendFrame126(s, 971);\n\t\tc.getPA().sendFrame185(969);\n\t\tc.getPA().sendFrame164(968);\n\t}", "void sendMessage() {\n\n\t}", "@Override\npublic int sendToID(NodeIDType id, byte[] msg) throws IOException {\n\treturn 0;\n}" ]
[ "0.64297837", "0.6275708", "0.6105716", "0.60553765", "0.6013428", "0.5978224", "0.59272176", "0.5903295", "0.58749866", "0.5844726", "0.58334124", "0.58275163", "0.58146095", "0.5810678", "0.57528526", "0.5744694", "0.5734996", "0.57296956", "0.5727574", "0.57228863", "0.571605", "0.5700093", "0.5687367", "0.56862515", "0.5677147", "0.56504107", "0.565023", "0.5640218", "0.5628407", "0.5625881", "0.5617763", "0.56134737", "0.5611437", "0.5608202", "0.5601769", "0.55983824", "0.5594324", "0.55853313", "0.5559671", "0.5546158", "0.5543318", "0.55390936", "0.5533327", "0.5532875", "0.55313665", "0.55302936", "0.5506619", "0.54976267", "0.54904497", "0.5489375", "0.5488801", "0.54793894", "0.5467502", "0.5458994", "0.54575014", "0.54560965", "0.544113", "0.54409844", "0.54329187", "0.54312754", "0.5430561", "0.54260445", "0.5423332", "0.5410103", "0.5408738", "0.54039395", "0.53985125", "0.53958523", "0.5391815", "0.53908885", "0.5384671", "0.5379533", "0.53780854", "0.5377448", "0.53728706", "0.5368776", "0.5361215", "0.5357577", "0.53546846", "0.53530985", "0.53528154", "0.53457725", "0.5337047", "0.53351617", "0.53308827", "0.53275573", "0.5321386", "0.5315633", "0.5306621", "0.53031224", "0.5297255", "0.52899694", "0.5289446", "0.52848524", "0.5276769", "0.52706486", "0.5270588", "0.5268717", "0.525674", "0.5255542" ]
0.7517715
0
Sends the standard header for communication with the client. Sends the ServerCommand to the player on the jSpace
private void sendHeader(Space jSpace, int playerID, ServerCommands cmd) throws InterruptedException { jSpace.put(cmd, playerID); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void sendCommandToClient(ServerCommand serverCommand) {\r\n \t\tCollection<RoMClient> clientsToSend = this.clients.getClients();\r\n \r\n \t\tthis.sendCommandToClient(clientsToSend, serverCommand);\r\n \t}", "public void send(String command)\n {\n if (connected) { \n writer.println(command + \";\");\n }\n }", "public void sendCommand(String str){\n \n /*This string holds the command temporarily*/\n String theLine = str;\n \n /*Writes the command to the Server*/\n try {\n oOS.writeObject(theLine);\n } catch (IOException ex) {\n Logger.getLogger(ClientView.class.getName()).log(Level.SEVERE, null, ex);\n }\n \n /*Clears the terminal screen if the user puts in the right command*/\n if (theLine.equals(\"-clrs\")){\n terminalText.setText(\" \");\n return;\n }\n \n try {\n oOS.flush();\n } catch (IOException ex) {\n Logger.getLogger(ClientView.class.getName()).log(Level.SEVERE, null, ex);\n }\n \n /*String that temporarily holds the input sent from the Server*/\n String tempString = \"\";\n \n try {\n tempString = (String)oIS.readObject();\n } catch (IOException ex) {\n Logger.getLogger(ClientView.class.getName()).log(Level.SEVERE, null, ex);\n } catch (ClassNotFoundException ex) {\n Logger.getLogger(ClientView.class.getName()).log(Level.SEVERE, null, ex);\n }\n\n /*Takes the input from the server and displays it to the temrinal*/\n\tterminalText.append(tempString + \"\\n\");\n\n /*Disables and enables buttons and changes Connect button colour when user quits*/\n if(theLine.equals(\"-quit\")){\n connectButton.setBackground(Color.red);\n connectButton.setEnabled(true);\n sendButton.setEnabled(false);\n terminalText.append(\"CLIENT> Connection closed.\");\n }\n \n }", "public void sendCommand(Command cmd);", "private void sendSyncCommand() throws IOException {\n System.out.print(addressPort);\n System.out.println(\"Send Synchronizatin Command\");\n DataOutputStream dos = new DataOutputStream(os);\n for (int i = 0; i < syncCmd.list.size(); i++) {\n System.out.print(\"CODE: \");\n System.out.println(syncCmd.list.get(i).code);\n System.out.print(\"PARENT1: \");\n System.out.println(syncCmd.list.get(i).parent1);\n System.out.print(\"PARENT2: \");\n System.out.println(syncCmd.list.get(i).parent2);\n System.out.print(\"NAME1: \");\n System.out.println(syncCmd.list.get(i).name1);\n System.out.print(\"NAME2: \");\n System.out.println(syncCmd.list.get(i).name2);\n System.out.print(\"ADDRESSPORT: \");\n System.out.println(syncCmd.list.get(i).addressPort);\n }\n\n for (int i = 0; i < syncCmd.list.size(); i++) {\n dos.writeByte(syncCmd.list.get(i).code);\n dos.writeUTF(syncCmd.list.get(i).parent1);\n dos.writeUTF(syncCmd.list.get(i).parent2);\n dos.writeUTF(syncCmd.list.get(i).name1);\n dos.writeUTF(syncCmd.list.get(i).name2);\n dos.writeUTF(syncCmd.list.get(i).addressPort);\n }\n dos.writeByte(Message.MSG_NEW_KEY);\n synchronized (GUITracker.onlinePeer) {\n dos.writeUTF(Util.convertBytesToBase64(GUITracker.RC4KeyByte));\n }\n }", "@Override\n public void sendCommand(GameCommand cmd) {\n if(mSocket == null || !mSocket.isConnected() || mOut == null)\n throw new ClientConnException(\"Cannot send message. Socket is closed.\");\n\n try {\n mOut.writeObject(cmd);\n mOut.flush();\n } catch(IOException e) {\n LOG.log(Level.FINER, \"Connection closed: \" + e.toString(), e);\n disconnect();\n }\n }", "private void sendLineCommand(String message) throws IOException,\n \t\t\tIllegalStateException {\n \t\tif (!connected) {\n \t\t\tthrow new IllegalStateException(\"Client not connected\");\n \t\t}\n \t\toutput.write(message + \"\\r\");\n \t\toutput.newLine();\n \t\toutput.flush();\n \t}", "public void sendStartGame (){\n connect();\n try{\n doStream.writeUTF(\"GAME_START\");\n doStream.writeUTF(currentUser.getUserName());\n\n } catch (IOException e){\n e.printStackTrace();\n }\n disconnect();\n }", "@Override\n\tpublic void handleServerCmd() {\n\t\t\n\t}", "@Override\n public void sendMenuCommand(MenuCommand msg) throws IOException {\n if (isConnected()) {\n synchronized (outputBuffer) {\n cmdBuffer.clear();\n protocol.toChannel(cmdBuffer, msg);\n cmdBuffer.flip();\n outputBuffer.clear();\n outputBuffer.put(START_OF_MSG);\n outputBuffer.put(protocol.getKeyIdentifier());\n outputBuffer.put(cmdBuffer);\n outputBuffer.flip();\n logByteBuffer(\"Sending message on \" + getConnectionName(), outputBuffer);\n sendInternal(outputBuffer);\n outputBuffer.clear();\n }\n } else {\n throw new IOException(\"Not connected to port\");\n }\n }", "public void sendStartGame() {\n \t\tclient.sendTCP(new StartGame());\n \t}", "public static void sendToServer(Player player, String server) {\n try {\n ByteArrayDataOutput out = ByteStreams.newDataOutput();\n out.writeUTF(\"Connect\");\n out.writeUTF(server);\n player.sendMessage(StringUtil.translate(\"&eSending to \" + server + \"...\"));\n player.sendPluginMessage(astroHub, \"BungeeCord\", out.toByteArray());\n } catch (Exception e) {\n player.sendMessage(StringUtil.translate(\"&cAn error occurred while sending to the server.\"));\n }\n }", "private void write(String command) throws IOException {\n if (connected) {\n try {\n writer.write(command);\n writer.newLine();\n writer.flush();\n } catch (IOException e) {\n System.out.println(\"Could not read from server -> ServerCommunication:write()\");\n System.out.println(e);\n }\n } else {\n throw new IOException(\"Not Connected\");\n }\n }", "private void sendClientMessage() throws IOException {\n ArrayList<ByteString> blindedFriends = Crypto.byteArraysToStrings(mClientPSI.encodeBlindedItems());\n ClientMessage cm = new ClientMessage.Builder()\n .messages(getMessages())\n .blindedFriends(blindedFriends)\n .build();\n boolean success = lengthValueWrite(out, cm);\n if (!success) {\n setExchangeStatus(Status.ERROR);\n setErrorMessage(\"Length/value write of client message failed.\");\n throw new IOException(\"Length/value write of client message failed, but exception is hidden (see Exchange.java)\");\n }\n }", "void sendPacket(Player player, Object packet);", "public void printProtocol()\n\t{\n\t\tString commands[] = {\"A\", \"UID\", \"S\", \"F\"};\n\t\t\n\t\tHashtable<String, String> commandDescription = new Hashtable<String, String>();\n\t\tHashtable<String, String> subStringCommands = new Hashtable<String, String>();\n\t\tcommandDescription.put(\"A\", \"Sends audio data using _ as a regex\");\n\t\tcommandDescription.put(\"UID\", \"Specifies the user's id so that the Network.Server may verify it\");\n\t\tcommandDescription.put(\"S\", \"Specifies server commands.\");\n\t\tcommandDescription.put(\"F\", \"Specifies audio format.\");\n\t\tsubStringCommands.put(\"A\", \"No commands\");\n\t\tsubStringCommands.put(\"UID\", \"No sub commands\");\n\t\tsubStringCommands.put(\"S\", \"Sub commands are: \\nclose - Closes the server.\\ndisconnect - Disconnects the client from the server.\\nclumpSize {int}\");\n\t\tsubStringCommands.put(\"F\", \"Split Audio specifications between spaces. The ordering is {float SampleRate, int sampleSizeInBits, int channels, int frameSize, float frameRate\");\n\t\t\n\t\tfor (String str: commands)\n\t\t{\n\t\t\tSystem.out.printf(\"Command format:\\n %s.xxxxxxx\\n\", str);\n\t\t\tSystem.out.printf(\"Command %s\\n Description: %s \\n sub commands %s\\n\", str, commandDescription.get(str),subStringCommands.get(str));\n\t\t\t\n\t\t}\n\t}", "private void sendGameCommand(){\n\n }", "public void sendCommands(String command) {\n try {\n printStream.print(command);\n }\n catch (Exception e){\n\n }\n\n\n }", "public void send() {\n try {\n String message = _gson.toJson(this);\n byte[] bytes = message.getBytes(\"UTF-8\");\n int length = bytes.length;\n\n _out.writeInt(length);\n _out.write(bytes);\n \n } catch (IOException ex) {\n Logger.getLogger(ResponseMessage.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "public void sendRequest() {\r\n\t\t\r\n\t\tclient.join(this, isHost, gameCode, playerName, playerNumber);\r\n\t\t\r\n\t}", "public void sendPlayerToServer(Player player, String serverName) {\n\t\tByteArrayOutputStream b = new ByteArrayOutputStream();\n\t\tDataOutputStream out = new DataOutputStream(b);\n\t\ttry {\n\t\t\tout.writeUTF(\"Connect\");\n\t\t\tout.writeUTF(serverName);\n\t\t} catch (IOException e) {\n\t\t\tSystem.err.println(\"No connection to server.\");\n\t\t}\n\t\tplayer.sendPluginMessage(plugin, \"BungeeCord\", b.toByteArray());\n\t}", "public void sendPacket() throws IOException {\n\t\tbyte[] buf = playerList.toString().getBytes();\n\n\t\t// send the message to the client to the given address and port\n\t\tInetAddress address = packet.getAddress();\n\t\tint port = packet.getPort();\n\t\tpacket = new DatagramPacket(buf, buf.length, address, port);\n\t\tsocket.send(packet);\n\t}", "public synchronized String sendCommand(String command) {\n\n\t\tlog.debug(\"Send command \" + command);\n\t\t\n\t\ttry {\n\t\t\t\n\t\t\t//Send the bytes and flush the output stream\n\t\t\tbyte[] commandByteArray = new String(command + \"\\r\").getBytes(\"ASCII\");\n\t\t\tlog.info(\"Sending bytes: \" + byteArrayToHexString(commandByteArray));\n\t\t\t\n\t\t\t//Flush the output stream\n\t\t\tthis.outputStream.write(commandByteArray);\n\t\t\tthis.outputStream.flush();\n\t\t\t\n\t\t} catch (UnsupportedEncodingException uee) {\n\t\t\tlog.error(\"Error sending \" + command + \" command.\", uee);\n\t\t} catch (IOException ioe) {\n\t\t\tlog.error(\"Error sending \" + command + \" command.\", ioe);\n\t\t}\n\t\t\n\t\t//Set the last command and return the response\n\t\tthis.lastCommand = command + \"\\r\";\n\t\treturn receiveResponse();\n\n\t}", "public static void sendOK() {\n try {\n Server destServer = ServerState.getInstance().getServers().get(sourceID);\n MessageTransfer.sendServer(\n ServerMessage.getOk( String.valueOf(ServerState.getInstance().getSelfID()) ),\n destServer\n );\n System.out.println(\"INFO : Sent OK to s\"+destServer.getServerID());\n }\n catch(Exception e) {\n System.out.println(\"INFO : Server s\"+sourceID+\" has failed. OK message cannot be sent\");\n }\n }", "private void sendMessage() throws Exception {\n\t\tGetTimestamp(\"Sending Message: \");\n\t\tString inputMessage;\n\t\tinputMessage = input.nextLine();\n\t\tString tosend = encrypt(clientkey, inputMessage);\n\t\t\n\t\tJSONObject RESPONSE = new JSONObject();\n\t\tRESPONSE.put(\"payload\",tosend);\n\t\tSystem.out.println(RESPONSE);\n\t\t\n\t\tpw.println(tosend);\n\t\tpw.flush();\n\t\tSystem.out.println(\"Message sent to the client : \" + inputMessage);\n\t\tif (inputMessage.equalsIgnoreCase(\"bye\")) {\n\t\t\tSystem.out.println(\"sending close command\");\n\t\t\tcloseConnection();\n\t\t} else {\n\t\t\tgetMessage();\n\t\t}\n\t}", "public void send(String request){\n try {\n streamOut.writeUTF(request);\n streamOut.flush();\n connected = true;\n System.out.println(clientID+\": send: \"+request);\n } catch (IOException ioe) {\n System.out.println(ioe);\n System.out.println(clientID+\": failedToSend: \"+request+\": IOException: \"+ioe);\n }\n }", "void sendCommand(String s) {\r\n\t\tif (\"up\".equals(s)) {\r\n\t\t\tout.println(\"up\");\r\n\t\t} else if (\"down\".equals(s)) {\r\n\t\t\tout.println(\"down\");\r\n\t\t} else if (\"left\".equals(s)) {\r\n\t\t\tout.println(\"left\");\r\n\t\t} else if (\"right\".equals(s)) {\r\n\t\t\tout.println(\"right\");\r\n\t\t}\r\n\t\t// out.println(\"stat\");\r\n\t\tout.flush();\r\n\t}", "public void sendResponseToolCard(String username, int nCard, String response) throws IOException {\n PrintWriter out= new PrintWriter(socket.getOutputStream(),true);\n out.println(username+\" responseToolCard \"+nCard+\" \"+response);\n out.close();\n socket.close();\n }", "public static native void send( String cmd );", "public void sendRequest(){\n fileServer.sendMessage(this.packet,new FileNode(ip,port));\n }", "void writeCommand(CommProtocolCommands command, Object ... params) throws IOException;", "public void sendCommand(short[] commandBytes) {\n\t\tshort[] toSend = new short[commandBytes.length + 1];\n\t\ttoSend[0] = IAC;\n\t\tSystem.arraycopy(commandBytes, 0, toSend, 1, commandBytes.length);\n\t\toutWriter.write(toSend);\n\t}", "public void transmit()\n { \n try\n {\n JSch jsch=new JSch(); //object that allows for making ssh connections\n //Log into the pi\n Session session=jsch.getSession(USERNAME, HOSTNAME, 22); //pi defaults to using port 22 \n session.setPassword(PASSWORD);\n session.setConfig(\"StrictHostKeyChecking\", \"no\"); //necessary to access the command line easily\n \n session.connect(1000);//connect to the pi\n \n Channel channel = session.openChannel(\"exec\");//set session to be a command line \n ((ChannelExec)channel).setCommand(this.command); //send command to the pi\n \n channel.setInputStream(System.in); \n channel.setOutputStream(System.out);\n //connect to the pi so the command can go through\n channel.connect(1000);\n }\n catch(Exception e)\n {\n JOptionPane.showMessageDialog(frame, \"Error connecting to infrared light\", \"Error Message\", JOptionPane.ERROR_MESSAGE);\n }\n }", "public void sendCommands(PrintWriter out) {\r\n\t\tsendMessage(\"h: display command list\", out);\r\n\t\tsendMessage(\"t: display the album titles, ordered by date\",out);\r\n\t\tsendMessage(\"g: display songs of an album, ordered by genre\",out);\r\n\t\tsendMessage(\"d: display songs of an album\",out);\r\n\t\tsendMessage(\"u: display audiobooks ordered by author\",out);\r\n\t\tsendMessage(\"c: add a new song\",out);\r\n\t\tsendMessage(\"a: add a new album\",out);\r\n\t\tsendMessage(\"+: add a song to an album\",out);\r\n\t\tsendMessage(\"l: add a new audiobook\",out);\r\n\t\tsendMessage(\"p: create a new playlist from existing songs and audio books\",out);\r\n\t\tsendMessage(\"-: delete an existing playlist\",out);\r\n\t\tsendMessage(\"s: save elements, albums, playlists\",out);\r\n\t\tsendMessage(\"m: play a song\",out);\r\n\t}", "public void sendPlayerName(String s) {\n try {\n dOut.writeUTF(s);\n dOut.flush();\n } catch (IOException e) {\n System.out.println(\"Could not send player name\");\n e.printStackTrace();\n }\n }", "public void onlinerequest() {\r\n int size = Server.getUsers().size();\r\n \r\n try {\r\n this.output.flush();\r\n this.output.writeUTF(\"ONLINE\");\r\n this.output.flush();\r\n this.output.writeUTF(Integer.toString(size));\r\n this.output.flush();\r\n// Log.print(\"Sending the data\");\r\n for(int x = 0; x < Server.getUsers().size(); x++){\r\n if(Server.getUsers().get(x).getName().equals(this.name)){\r\n this.output.writeUTF(Server.getUsers().get(x).getName() + \" (You)\");\r\n }\r\n else{\r\n this.output.writeUTF(Server.getUsers().get(x).getName());\r\n this.output.flush();\r\n }\r\n \r\n \r\n }\r\n// Log.print(\"Successfully sent\");\r\n } catch (IOException ex) {\r\n Log.error(ex.getMessage());\r\n }\r\n }", "@Override\n public void send(String message) {\n\n out.println(message);\n out.flush();\n\n }", "void sendPacketToPlayer(Player player, Object packet);", "private void sendCommand(CommandItem command) {\n sendCommand(command.data, command.advTimeout);\n }", "public void start() throws Exception {\n ServerSocket ssk = new ServerSocket(sskPort);\n \n while( !new File(\"halt\").exists() ) {\n Socket sk = null;\n try { \n _(\"accepting\");\n sk = ssk.accept();\n _(\"accepted\");\n \n BufferedReader reader = new BufferedReader( new InputStreamReader( sk.getInputStream() ) );\n PrintStream ps = new PrintStream( sk.getOutputStream() ); \n \n ps.println(\"Hello You\");\n String cmd = null;\n while( (cmd = reader.readLine() ) != null) {\n ps.println(\"You said : '\"+ cmd +\"'\"); \n _(\"> '\"+ cmd +\"'\");\n if ( cmd.trim().equals(\"exit\") || cmd.trim().equals(\"quit\") ) {\n ps.println(\"Bye !\"); \n _(\"> Bye!\");\n break;\n } else if ( cmd.trim().equals(\"test\") ) {\n //ps.print(\"1234\"); \n //String line = \"0x81 0x9B 0x94 0x63 0x15 0xF8 0xF8 0x10 0x35 0xD7 0xE7 0x07 0x76 0x99 0xE6 0x07 0x38 0x9D 0xEC 0x17 0x3A 0x8E 0xF9 0x3C 0x78 0x96 0xE0 0x4C 0x62 0x8F 0xE3 0x6E 0x1F \";\n String line = \"0x81 0xFE 0x57 0x62 0xC9 0xD6 0x4C 0x39 0xF8 0xED 0x64 0x56 0xA4 0x89 0x34 0x03 0xA7 0xA0 0x36 0x11 0xD2 0x8D 0x67 0x0F 0xE9 0xF6 0x77 0x42 0xE9 0xF6 0x77 0x42 0xE9 0xCD 0x0C 0x53 0xF2 0xE5 0x63 0x0F 0xAA 0xA5 0x24 0x79 0x92 0xE6 0x3A 0x42 0xE9 0xF6 0x77 0x42 0xE9 0xF6 0x77 0x42 0xE9 0xF6 0x77 0x42 0xD2 0x8D 0x66 0x59 0xFA 0xE4 0x3A 0x05 0xAC 0xA2 0x1E 0x32 0xE7 0xA5 0x3D 0x11 0xD2 0x8D 0x67 0x0F 0xE9 0xF6 0x77 0x42 0xE9 0xF6 0x77 0x79 0x92 0xE7 0x6C 0x51 0xFD 0xBB 0x3B 0x0B 0xBF 0xB3 0x21 0x0B 0xAC 0xA1 0x4C 0x39 0xF9 0xBB 0x77 0x42 0xE9 0xF6 0x77 0x42 0xE9 0xF6 0x4C 0x39 0xF8 0xED 0x64 0x50 0xA4 0xA5 0x32 0x16 0x80 0x86 0x79 0x11 0xA3 0xA5 0x4C 0x39 \";\n int[] trame = decodeFrame(line);\n for(int i=0; i < trame.length; i++) {\n ps.write(trame[i]);\n System.out.print(trame[i]+\" \");\n }\n System.out.println();\n ps.flush();\n }\n } \n _(\"quit\");\n \n } catch(Exception ex) {\n ex.printStackTrace();\n } finally {\n try { sk.close(); } catch(Exception ex) {}\n }\n }\n try { ssk.close(); } catch(Exception ex) {}\n _(\"Halting\");\n }", "@Override\n public void sendSelectionMessage(CommandHandler commandHandler) {\n try {\n commandHandler.update(new Response(null, true, Constants.MAIN_ACTION));\n } catch (Observer.CommunicationError error) {\n error.printStackTrace();\n }\n }", "public void sendMove (Move m){\n connect();\n try{\n doStream.writeUTF(\"MOVE\");\n doStream.writeUTF(currentUser.getUserName());\n doStream.writeUTF(m.toString());\n } catch (IOException e){\n e.printStackTrace();\n }\n\n disconnect();\n }", "@Override\n public void sendChatMessage(EntityPlayer player) {\n }", "private void sendMessage(String message){\n\t\ttry{\n\t\t\toutput.writeObject(\"Punk Ass Server: \" + message);\n\t\t\toutput.flush();\n\t\t\tshowMessage(\"\\nPunk Ass Server: \" + message); \n\t\t}catch(IOException ioe){\n\t\t\tchatWindow.append(\"\\n Message not sent, try again or typing something else\");\n\t\t\t\n\t\t}\n\t\t\n\t}", "public void send(String l) {\n try {\n if (client == null || client.isClosed() || !client.isConnected()) start(ip, port);\n } catch(IOException e) {\n e.printStackTrace();\n }\n\n runPacketEvent(new ClientPacketEvent(this, PacketType.CLIENT_SEND, l));\n\n try {\n OutputStream outToServer = client.getOutputStream();\n outToServer.write((\"\\r\" + l + \"\\r\").getBytes(Charset.forName(\"UTF-8\")));\n } catch (IOException e) {\n e.printStackTrace();\n runConnectionEvent(new ClientConnectEvent(this, ConnectionType.CLIENT_SERVER_DISCONNECT));\n }\n }", "public void command(byte[] cmdMessage) throws SAPIException{\r\n\t\t\t\t//sends command to RBNB\r\n\t\t\t\t\r\n\t\t\t\tsrcMap.PutDataAsByteArray(srcMap.GetIndex(getParameterToStringById(\"sourceChannelCommandName\")), cmdMessage); //cmds channel\t \t\r\n\t \tsrc.Flush(srcMap); \t\r\n\t\t}", "public void sendCommand(String command){\n sendCommand(command, true);\n fromPlugin = false;\n\n }", "@Override\n public boolean sendCommand(String command) throws NotYetConnectedException {\n if(!isConnected)\n throw new NotYetConnectedException();\n\n cmdId += 1;\n String signedCommand = String.format(\"%s id=%s\", command, cmdId);\n\n out.println(signedCommand);\n return processReply(cmdId);\n }", "protected void serveClient() {\r\n\t\tif (lineIn == null || lineOut == null) {\r\n\t\t\tSystem.err.printf(\"I/O has not been set up.%n\");\r\n\t\t} else {\r\n\t\t\ttry {\r\n\t\t\t\tString clientRequest;\r\n\t\t\t\tStringTokenizer args;\r\n\r\n\t\t\t\t// control loop, receiving client requests\r\n\t\t\t\twhile (!exitRecieved) {\r\n\t\t\t\t\t// PRESENT PROMPT\r\n\t\t\t\t\tsendMessage(PROMPT);\r\n\r\n\t\t\t\t\t// ACCEPT & PROCESS INPUT\r\n\t\t\t\t\tclientRequest = receiveMessage();\r\n\t\t\t\t\targs = new StringTokenizer(clientRequest);\r\n\t\t\t\t\tprocessCommand(args);\r\n\t\t\t\t}\r\n\r\n\t\t\t} catch (IOException ioe) {\r\n\t\t\t\tSystem.err.printf(\"IO Error receiving client input: %s%n\", ioe);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public void send(Opcode opcode);", "public void simpleCommand(String com) throws IOException {\n checkCommand(com);\n connect();\n writeHeader();\n _dos.writeBytes(com);\n _dos.writeInt(0);\n _baos.writeTo(_out);\n readReply();\n switch(_reply_com) {\n case PushCacheProtocol.OK:\n break;\n case PushCacheProtocol.ERR:\n serverError();\n break;\n default:\n unexpectedReply();\n }\n }", "private void serverHeader(\n HttpHeaderFW header)\n {\n serverHeader |= header.name().value().equals(context.nameBuffer(54));\n }", "public abstract void handleServerSide(T message, EntityPlayer player);", "private void sendMessageToClient(String messageToClient){\n SwingUtilities.invokeLater(new Runnable() {\n @Override\n public void run() {\n output.println(\"\\n\" + \"Server: \" + messageToClient);\n output.flush();\n }\n });\n }", "private void sendNetMessage(Connect4MoveMessage message) {\n\t\tSystem.out.println(\"sending move over network\");\n\t\tSystem.out.println(\"sending row: \"+message.getRow());\n\t\tSystem.out.println(\"sending col: \"+message.getColumn());\n\t\tSystem.out.println(\"sending player: \"+message.getColor());\n\t\ttry {\n\t\t\toutput.writeObject(message);\n\t\t\toutput.flush();\n\t\t} catch (Exception x) {\n\t\t\tx.printStackTrace();\n\t\t}\n\t}", "public void tellServer(String message)\n\t{\n\t\ttoServer.println(message);\n\t\ttoServer.flush();\n\t}", "public void writeServerMessageToClient(String outMessage) throws IOException {\n writeToClient(\"SERVER: \" + outMessage);\n }", "public static void main(String[] args){\n\t\tint port = 6677;\n\t\tboolean done = false;\n\t\tboolean connected = false;\n\t\tboolean ourTurnToSend = true;\n\t\tString clientTextSent = new String();\n\t\tString emptyString = new String();\n\t\tString ip = new String(\"\");\n\t\tScanner in;\n\t\tScanner terminalText = new Scanner(System.in);\n\t\tPrintWriter out;\n\t\ttry{\n\t\t\tSocket chatSocket;\n\t\t\tchatSocket = new Socket(ip,3000);\n\t//------------------------------------------------------------------------I have a chat socket, HOHOHO--------------------------\n\t\t\tin = new Scanner(chatSocket.getInputStream());\n\t\t\tout = new PrintWriter(chatSocket.getOutputStream());\n\t//------------------------------------------------------------------------Fully initialised, front-back chat possible------------\n\t\t\twhile(done == false){\n\t\t\t\tout.println(\"{\\\"PLAYER_NUMBER\\\":\\\"P1\\\",\\\"PROTOCOL\\\":\\\"PADDLE_MOVEMENT\\\",\\\"X\\\":-293.3333333333334,\\\"Y\\\":-230}\");out.flush();\n\t\t\t}\n\n\t\t}\n\t\tcatch(Exception e){\n\t\t\tSystem.out.println(\"Shit be whack Yo\");\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public Server(){\r\n //Create a Random object\r\n rand = new Random();\r\n\r\n //Create the GUI\r\n //Text area for displaying console\r\n JTextArea jtaCommandHistory = new JTextArea(35,45);\r\n jtaCommandHistory.setFont(new Font(\"Helvetica\", Font.BOLD, 12));\r\n jtaCommandHistory.setBackground(Color.BLACK);\r\n jtaCommandHistory.setForeground(Color.GREEN);\r\n jtaCommandHistory.setEditable(false);\r\n //Wrap the text area in a JScrollPane\r\n JScrollPane jspCommandHistory = new JScrollPane(jtaCommandHistory);\r\n\r\n //Text field for entering commands\r\n JTextField jtfConsole = new JTextField(15);\r\n\r\n //Binding the Enter key to reset\r\n jtfConsole.getInputMap().put(KeyStroke.getKeyStroke(KeyEvent.VK_ENTER, 0), \"sendMessage\");\r\n jtfConsole.getActionMap().put(\"sendMessage\", new AbstractAction(){\r\n public void actionPerformed(ActionEvent ae){\r\n\r\n //Store the command in history\r\n sbCommandHistory.append(\"\\n\");\r\n sbCommandHistory.append(\">>\");\r\n sbCommandHistory.append(jtfConsole.getText());\r\n sbCommandHistory.append(\"\\n\");\r\n\r\n //Execute the command\r\n parseCommand(jtfConsole.getText());\r\n\r\n //Reset the text field\r\n jtfConsole.setText(\"\");\r\n }\r\n });\r\n add(jspCommandHistory, BorderLayout.CENTER);\r\n add(jtfConsole, BorderLayout.SOUTH);\r\n\r\n //Use a Timer to set the command history area to the StringBuilder text\r\n ActionListener alRefresh = new ActionListener() {\r\n public void actionPerformed(ActionEvent ae) {\r\n jtaCommandHistory.setText(sbCommandHistory.toString());\r\n }\r\n };\r\n javax.swing.Timer timer = new javax.swing.Timer(350, alRefresh);\r\n timer.start();\r\n\r\n //JFrame Initialization\r\n setTitle(\"Portals Server\");\r\n setVisible(true);\r\n setDefaultCloseOperation(EXIT_ON_CLOSE);\r\n setLocationRelativeTo(null);\r\n pack();\r\n\r\n //Creating a GameLogic to serve as the portal layout\r\n GameLogic glLayout = new GameLogic(10, true);\r\n boardLayout = glLayout.getUpdatedBoardInformation();\r\n\r\n //Accept and handle client connections\r\n try {\r\n Socket cs;\r\n ServerSocket ss = new ServerSocket(PORT);\r\n //Print server information\r\n InetAddress ina = InetAddress.getLocalHost();\r\n consoleAppend(\"Host name: \" + ina.getHostName());\r\n consoleAppend(\"IP Address: \" + ina.getHostAddress());\r\n while (true) {\r\n cs = ss.accept();\r\n ClientHandler ct = new ClientHandler(cs);\r\n ct.start();\r\n clientThreads.add(ct);\r\n }\r\n } catch (UnknownHostException uhe) {\r\n System.err.println(\"Could not determine host IP address.\");\r\n uhe.printStackTrace();\r\n } catch (IOException uhe) {\r\n uhe.printStackTrace();\r\n }\r\n }", "public void sendChooseCard(String username, int numCard) throws IOException {\n\n PrintWriter out= new PrintWriter(socket.getOutputStream(),true);\n out.println(username+\" chooseCard \"+numCard);\n out.close();\n socket.close();\n\n }", "@Override\n\tprotected void requesting(ExtendedDataOutputStream out) throws Exception\n\t{\n\t\tout.writeObject(this.clientServerPort);\n\t}", "@Override\n\tpublic void sendPacket(JBPacket packet) {\n\t\t\n\t}", "private int sendCommandWithID(String commandID, String command, String args) throws IOException\n {\n StringBuilder __commandBuffer = new StringBuilder();\n if (commandID != null)\n {\n __commandBuffer.append(commandID);\n __commandBuffer.append(' ');\n }\n __commandBuffer.append(command);\n \n if (args != null)\n {\n __commandBuffer.append(' ');\n __commandBuffer.append(args);\n }\n __commandBuffer.append(SocketClient.NETASCII_EOL);\n \n String message;\n __writer.write(message = __commandBuffer.toString());\n __writer.flush();\n \n if (_commandSupport_.getListenerCount() > 0)\n _commandSupport_.fireCommandSent(command, message);\n \n __getReply();\n return _replyCode;\n }", "public void send(Packet packet);", "void SendPacket(int packetIdentifier);", "protected void sendToServer(String string) {\r\n System.out.println(\"Sending to server: \" + string);\r\n toServer.println(string);\r\n toServer.flush();\r\n }", "public void sendMsgToClient() {\n\n try {\n\n writer = new PrintWriter(new BufferedWriter(new OutputStreamWriter(socket.getOutputStream())), true);\n\n Log.d(TAG, \"The transmitted data:\" + msg);\n\n writer.println(msg);\n\n } catch (Exception e) {\n\n e.printStackTrace();\n\n }\n\n }", "public void send() {\n\t}", "void send();", "public void sendHelloMessage() {\n getSocketController().send(getMessageController().createHelloMessage(\"Сервер\", getUser().getName()));\n }", "public void send(final String data) throws IOException {\r\n\t\t//Writes the packet as a byte buffer, using the data from the packet and converting in to bytes\r\n\t\t//Adds an end-of-packet footer to the data\r\n\t\tif(channel.isConnected()) {\r\n\t\t\tchannel.write(ByteBuffer.wrap((data + \"%EOP%\").getBytes()));\r\n\t\t}\r\n\t}", "public static void UI_send_command(int com, Object... params){\n\t\t//Create the packet\n\t\tCalicoPacket p;\n\t\tif(params!=null){\n\t\t\tp=CalicoPacket.getPacket(com, params);\n\t\t}\n\t\telse{\n\t\t\tp=CalicoPacket.getPacket(com);\n\t\t}\n\t\t\n\t\tp.rewind();\n\t\t//Send the packet locally\n\t\tPacketHandler.receive(p);\n\t\t\n\t\t//Send the packet to the network (server)\n//\t\tNetworking.send(p);\t\n\t}", "public void sendJoiningPlayer() {\r\n Player p = nui.getPlayerOne();\r\n XferJoinPlayer xfer = new XferJoinPlayer(p);\r\n nui.notifyJoinConnected();\r\n networkPlayer.sendOutput(xfer);\r\n }", "void sendMessage(Message m) throws IOException {\n String msg = m.toString();\n\n buffer = msg.getBytes(\"Windows-1256\");\n toServer = new DatagramPacket(buffer, buffer.length,\n InetAddress.getByName(sendGroup), port);\n if (m.getType() == Message.DATA) {\n manager.mManager.addMessage(m);\n }\n\n System.out.println(getName() + \"-->\" + m);\n serverSocket.send(toServer);\n }", "public String sendMessage(){\n System.out.print(handle);\n try{ \n message = inFromUser.readLine();\n if(message.equals(\"SIGINT\")){\n outToServer.writeBytes(\"SIGINT\");\n System.out.println(\"\\nTCP connection closed and program terminated.\");\n response = inFromServer.readLine();\n if(!response.isEmpty()){\n System.out.println(response + \" message received from server means OK to close connection\");\n clientSocket.close();\n }\n return \"INTERRUPT\";\n } \n else if(message.equals(\"\\\\quit\")){\n outToServer.writeBytes(\"SIGQUIT\");\n System.out.println(\"\\nTCP connection closed.\");\n response = inFromServer.readLine();\n if(!response.isEmpty()) {\n System.out.println(response + \" message received from server means OK to close connection on this side\");\n clientSocket.close();\n }\n return \"QUIT\";\n }\n else{\n handleMsg = handle + message;\n int lengthInt = handleMsg.length();\n outToServer.writeBytes(handleMsg); \n return \"OK\";\n }\n }catch(IOException e){\n System.err.println(\"Caught IOException in sendMessage(): \" + e.getMessage());\n } \n return null;\n }", "public void writeToClient(String outMessage) throws IOException {\n /* Sende den String als Antwortzeile (mit CRLF) zum Client */\n final String out = outMessage + '\\r' + '\\n';\n outToClient.writeBytes(out);\n System.out.println(out);\n }", "public void send(byte b) {\r\n\t\tif (s != null) {\r\n\t\t\ttry {\r\n\t\t\t\tdos.writeByte(LiteServer.BYTE_CONST);\r\n\t\t\t\tdos.writeByte(b);\r\n\t\t\t\tif (autoFlush) {\r\n\t\t\t\t\tdos.flush();\r\n\t\t\t\t}\r\n\t\t\t} catch (IOException 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\r\n\t\t} else {\r\n\t\t\t// if the socket is null\r\n\t\t}\r\n\r\n\t}", "private void sendMsgToClient(String msg) {\n controlOutWriter.println(msg);\n }", "public static void main(String[] args) {\r\n\t\tint portNumber = 1500;\r\n\t\tString serverAddress = \"localhost\";\r\n\t\tString userName = \"Anonymous\";\r\n\t\tint type = 1;\r\n\t\tScanner scan = new Scanner(System.in);\r\n\t\t\r\n\t\tSystem.out.println(\"Enter Character Name: \");\r\n\t\tuserName = scan.nextLine();\r\n\t\tSystem.out.println(\"Type '1' to be a warrior\");\r\n\t\tSystem.out.println(\"Type '2' to be a wizard\");\r\n\t\tSystem.out.println(\"Type '3' to be a paladin\");\r\n\t\ttype = Integer.parseInt(scan.nextLine());\r\n\r\n\t\tswitch(type) {\r\n\t\t\tcase 1:\r\n\t\t\t\tp = new Player(userName, 1);\r\n\t\t\t\tbreak;\r\n\t\t\tcase 2:\r\n\t\t\t\tp = new Player(userName, 2);\r\n\t\t\t\tbreak;\r\n\t\t\tcase 3:\r\n\t\t\t\tp = new Player(userName, 3);\r\n\t\t\t\tbreak;\r\n\t\t\tdefault:\r\n\t\t\t\tp = new Player(userName, 1);\r\n\t\t\t\tbreak;\r\n\t\t}\r\n\r\n\t\tClient client = new Client(serverAddress, portNumber, p);\r\n\t\tif(!client.start())\r\n\t\t\treturn;\r\n\t\t\r\n\t\tSystem.out.println(\"Instructions:\");\r\n\t\tSystem.out.println(\"1. Simply type the message to send broadcast to all active clients\");\r\n\t\tSystem.out.println(\"2. Type 'LIST PARTY' to see who is in the game\");\r\n\t\tSystem.out.println(\"3. Type 'STATUS' to show your stats.\");\r\n\t\tSystem.out.println(\"4. Type 'ENEMIES' to show enemies in room\");\r\n\t\tSystem.out.println(\"5. Type 'TURN' to show your parties remaining turns.\");\r\n\t\tSystem.out.println(\"6. Type 'ATTACK X' where X is the enemy target.\");\r\n\t\tSystem.out.println(\"7. Type 'QUIT' to close the game\\n\");\r\n\t\t\r\n\t\twhile(true) {\r\n\t\t\tSystem.out.print(\"> \");\r\n\t\t\tString msg = scan.nextLine();\r\n\t\t\tif(msg.equalsIgnoreCase(\"QUIT\")) {\r\n\t\t\t\tclient.sendMessage(\"QUIT\");\r\n\t\t\t\tbreak;\r\n\t\t\t}else if(msg.length() > 0){\r\n\t\t\t\tclient.sendMessage(msg);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tscan.close();\r\n\t\tclient.disconnect();\t\r\n\t}", "void sendUpdatePlayer(int x, int y, int color, byte tool);", "int send(final Command command) throws ZigBeeException;", "public void start()\r\n {\r\n System.out.print(\"Server host? [localhost]: \");\r\n String host = scanner.nextLine().trim();\r\n if(host.length() == 0)\r\n {\r\n host = \"localhost\";\r\n }\r\n \r\n System.out.print(\"Server port? [2345]: \");\r\n String portString = scanner.nextLine().trim();\r\n if(portString.length() == 0)\r\n {\r\n portString = \"2345\";\r\n }\r\n int port = Integer.parseInt(portString);\r\n //trying to establish connection through the socket\r\n try(Socket socket = new Socket(host, port))\r\n {\r\n //creating i/o streams\r\n outputStream = new ObjectOutputStream(socket.getOutputStream());\r\n HelloRequest request = new HelloRequest();\r\n request.setName(\"world\");\r\n outputStream.writeObject(request);\r\n inputStream = new ObjectInputStream(socket.getInputStream());\r\n inputStream.readObject();\r\n System.out.println(\"Server connected.\");\r\n \r\n // login.\r\n while(!this.login())\r\n {\r\n ;\r\n }\r\n \r\n // Executing users input\r\n options:\r\n while(true)\r\n {\r\n try\r\n {\r\n int option = this.readOption(\"1. Create a game 2. Set commands 3. Get high scores 4. Delete a game 5. Start a game 6. Show a game 7. Logout : \", 1, 7);\r\n switch(option)\r\n {\r\n case 1: this.createGame(); break;\r\n case 2: this.setCommands(); break;\r\n case 3: this.getHighScores(); break;\r\n case 4: this.deleteGame(); break;\r\n case 5: this.startGame(); break;\r\n case 6: this.showGame(); break;\r\n case 7: this.logout(); break options;\r\n }\r\n }catch(Exception e)\r\n {\r\n e.printStackTrace();\r\n }\r\n }\r\n }catch(Exception e)\r\n {\r\n throw new RuntimeException(e);\r\n }\r\n }", "public int sendCommand(String command) throws IOException\n {\n return sendCommand(command, null);\n }", "public void sendMoveCommand(int x, int y) {\n\t\ttry {\n\t\t\tString moveCommand = \"MOVE \" + x + \" \" + y + \"\\0\";\n\t\t\twriter.write(moveCommand);\n\t\t\twriter.flush();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public void command(String command) {\n\n // Determines if client is connected\n boolean isConnected = true;\n try {\n isConnected = client.isConnected();\n } catch (Exception notCnnected) {\n isConnected = false;\n }\n\n // Switch/case/default statement to determine command\n switch (command) {\n\n case (\"quit\"):\n if (isConnected) {\n try {\n client.closeConnection();\n run = false;\n } catch (Exception ex) {\n System.out.println(\"Unexpected error while terminating connection\");\n }\n }\n break;\n\n case (\"logoff\"):\n if (!isConnected) {\n System.out.println(\"Client already logged off\");\n }\n\n else {\n try {\n client.closeConnection();\n } catch (Exception ex) {\n System.out.println(\"Unexpected error while terminating connection\");\n }\n }\n break;\n\n case (\"login\"):\n if (isConnected) {\n System.out.println(\"Client already logged in\");\n } else {\n ClientConsole chat = new ClientConsole(internalLoginID, internalHost, internalPort);\n chat.accept();\n }\n break;\n\n case (\"getport\"):\n System.out.println(internalPort);\n break;\n\n case (\"gethost\"):\n System.out.println(internalHost);\n break;\n\n default:\n\n if (command.length() > 8 && command.substring(0, 7).equals(\"sethost\")) {\n // Checks to see if client is connected, if so, disallow host changed.\n // This is in a try/catch statement to allow host change before connection is\n // established\n\n if (isConnected) {\n System.out.println(\"Client currently logged in. Please log off before changing host.\");\n } else {\n internalHost = command.substring(8);\n System.out.println(\"Host set to: \" + internalHost);\n }\n }\n\n else if (command.length() > 8 && (command.substring(0, 7)).equals(\"setport\")) {\n\n // Iniitalize changeport as DEFAULT_PORT, incase something goes wrong.\n int changePort = DEFAULT_PORT;\n\n // Confirms that port change is valid.\n try {\n changePort = Integer.parseInt(command.substring(8));\n\n // Checks to see if client is connected, if so, disallow port changed.\n // This is in a try/catch statement to allow port change before connection is\n // established\n if (isConnected) {\n System.out.println(\"Client currently logged in. Please log off before changing port.\");\n } else {\n internalPort = changePort;\n System.out.println(\"Port set to: \" + internalPort);\n }\n }\n\n catch (Exception e) {\n System.out.println(\"Invalid port number\");\n }\n\n }\n\n else {\n System.out.println(\"Command unknown, please try again\");\n }\n }\n\n }", "public void play() throws IOException{\n\t\tString imsg = Util.readInputStream(socket.getInputStream());\n\t\t//identificar o comando (PLAY)\n\t\tString code = imsg.replace(Constants.END_TOKEN, \"\");\n\t\t//log\n\t\tLogger.info(\"Recebendo um comando de PLAY para \" + code);\n\t\t//acionar o comando do server server\n\t\tboolean ok = false;\n\t\ttry {\n\t\t\tok = server.play(code);\n\t\t\t//enviar um OK ou ERROR\n\t\t\tString omsg = (ok ? \"OK\" : \"ERROR\") + Constants.END_TOKEN;\n\t\t\tsocket.getOutputStream().write(omsg.getBytes());\n\t\t\tsocket.getOutputStream().flush();\n\t\t} \n\t\tcatch (ProxyServerException e) {\n\t\t\tok = false;\n\t\t}\n\t\t//\n\t\t//enviar um OK ou ERROR\n\t\tString omsg = (ok ? \"OK\" : \"ERROR\") + Constants.END_TOKEN;\n\t\tsocket.getOutputStream().write(omsg.getBytes());\n\t\tsocket.getOutputStream().flush();\n\t}", "public void sendStatusToServer(String status){\n System.out.println(\"typingstatus\" + chatID + username + \" \" + status);\n toServer.println(\"typingstatus\"+ \" \" + chatID + \" \" + username + \" \" + status);\n toServer.flush();\n }", "private void sendServerMessage() throws NoSuchAlgorithmException, \n IOException {\n if (mRemoteClientMessage == null) {\n throw new IOException(\"Remote client message was null in sendServerMessage.\");\n } else if (mRemoteClientMessage.blindedFriends == null) {\n throw new IOException(\"Remove client message blinded friends is null in sendServerMessage.\");\n }\n\n // This can't return null because byteStringsToArrays only returns null\n // when passed null, and we already checked that ClientMessage.blindedFriends\n // isn't null.\n ArrayList<byte[]> remoteBlindedItems;\n remoteBlindedItems = Crypto.byteStringsToArrays(mRemoteClientMessage.blindedFriends);\n\n // Calculate responses that appear in the ServerMessage.\n ServerReplyTuple srt;\n try { \n srt = mServerPSI.replyToBlindedItems(remoteBlindedItems);\n } catch (NoSuchAlgorithmException e) {\n Log.wtf(TAG, \"No such algorithm in replyToBlindedItems: \" + e);\n setExchangeStatus(Status.ERROR);\n setErrorMessage(\"PSI subsystem is broken, NoSuchAlgorithmException\");\n throw e;\n } catch (IllegalArgumentException e) {\n Log.wtf(TAG, \"Null passed to replyToBlindedItems on serverPSI? \" + e);\n setExchangeStatus(Status.ERROR);\n setErrorMessage(\"Bad argument to server PSI subsystem. (null remoteBlindedItems?)\");\n throw e;\n }\n\n // Format and create ServerMessage.\n ArrayList<ByteString> doubleBlindedStrings = Crypto.byteArraysToStrings(srt.doubleBlindedItems);\n ArrayList<ByteString> hashedBlindedStrings = Crypto.byteArraysToStrings(srt.hashedBlindedItems);\n ServerMessage sm = new ServerMessage.Builder() \n .doubleBlindedFriends(doubleBlindedStrings)\n .hashedBlindedFriends(hashedBlindedStrings)\n .build(); \n\n // Write out the ServerMessage.\n boolean success = lengthValueWrite(out, sm);\n if (!success) {\n setExchangeStatus(Status.ERROR);\n setErrorMessage(\"Length/value write of server message failed.\");\n throw new IOException(\"Length/value write of server message failed, but exception is hidden (see Exchange.java)\");\n }\n }", "@Override\n\tpublic IResponse sendCommand(ICommand command) throws RPCException {\n\t\treturn null;\n\t}", "private synchronized void sendToClient(PrintWriter pw, String message)\n {\n pw.write(message + \"\\n\");\n pw.flush();\n }", "public void receiveInfoFromServerC() throws IOException\n\t{\n\t\tstatus = fromServer.readInt();\n\n\t\tif (status == PLAYER1WINS)\n\t\t{\t\n\t\t\tsetMove(currentToken);\n\t\t\tPlatform.runLater(() -> lblStatus.setText(\"You've won!\")); \n\t\t\tcontinueToPlay = false;\n\t\t}\n\n\t\telse if (status == PLAYER2WINS)\n\t\t{\n\t\t\tsetMove(otherToken);\n\t\t\tPlatform.runLater(() -> lblStatus.setText(\"Game over - Player O has won!\"));\n\t\t\tcontinueToPlay = false;\n\t\t}\n\n\t\telse if (status == DRAW)\n\t\t{\n\t\t\tPlatform.runLater(() -> lblStatus.setText(\"Game over - It's a tie!\"));\n\t\t\tsetMove(otherToken);\n\t\t\tcontinueToPlay = false;\n\t\t}\n\t\telse if (status == WAIT)\n\t\t{\n\t\t\tsetMove(currentToken);\n\t\t\tPlatform.runLater(() -> lblStatus.setText(\"Other player's turn.\"));\n\t\t\tmyTurn = false; \n\t\t}\n\t\telse if (status == CONTINUE)\n\t\t{\n\t\t\tsetMove(otherToken);\n\t\t\tPlatform.runLater(() -> lblStatus.setText(\"Your turn.\"));\n\t\t\tmyTurn = true;\n\t\t}\n\t}", "public void send(int i) {\r\n\t\tif (s != null) {\r\n\t\t\ttry {\r\n\t\t\t\tdos.writeByte(LiteServer.INT_CONST);\r\n\t\t\t\tdos.writeInt(i);\r\n\t\t\t\tif (autoFlush) {\r\n\t\t\t\t\tdos.flush();\r\n\t\t\t\t}\r\n\t\t\t} catch (IOException 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\r\n\t\t} else {\r\n\t\t\t// if the socket is null\r\n\t\t}\r\n\r\n\t}", "private void send(Object o) {\r\n try {\r\n System.out.println(\"02. -> Sending (\" + o +\") to the client.\");\r\n this.os.writeObject(o);\r\n this.os.flush();\r\n } \r\n catch (Exception e) {\r\n System.out.println(\"XX.\" + e.getStackTrace());\r\n }\r\n }", "public void onCommand(Session session) {\n /**\n * VRFY is not safe.\n */\n String responseString = \"502 VRFY command is disabled\";\n session.writeResponse(responseString);\n }", "@Override\r\n public void sendClientGame(ClientGame clientGame) {\r\n\r\n //System.out.println(\"Invio \"+clientGame+clientGame.getReserve()+\" a \"+username);\r\n ClientGameNetObject clientGameNetObject = new ClientGameNetObject(MessageHeaderEnum.CLIENTGAME.toString(),clientGame);\r\n //System.out.println(clientGameNetObject+\" : \"+clientGameNetObject.getClientGame().getReserve()+\" : \"+clientGame.getActivePlayerUsername());\r\n sendObject(clientGameNetObject);\r\n }", "protected String send4LetterWord(String host, int port, String cmd)\n throws IOException {\n Preconditions.checkArgument(quorumPeer != null || zkServerMain != null);\n Preconditions.checkArgument(cmd.length() == 4);\n Socket sock = new Socket(host, port);\n BufferedReader reader = null;\n try {\n OutputStream outstream = sock.getOutputStream();\n outstream.write(cmd.getBytes());\n outstream.flush();\n\n reader = new BufferedReader(new InputStreamReader(sock.getInputStream()));\n StringBuilder sb = new StringBuilder();\n String line;\n while ((line = reader.readLine()) != null) {\n sb.append(line + \"\\n\");\n }\n return sb.toString();\n } finally {\n sock.close();\n if (reader != null) {\n reader.close();\n }\n }\n }", "private void parseCommand(String consoleLine){\r\n if(consoleLine.trim().equals(\"\")) {\r\n System.err.println(\"Blank line\");\r\n } else {\r\n ArrayList<String> cmdSplit = new ArrayList<>();\r\n\r\n //Split the line by spaces except between quotes and add to the cmdSplit ArrayList\r\n Matcher matcher = Pattern.compile(\"([^\\\"]\\\\S*|\\\".+?\\\")\\\\s*\").matcher(consoleLine);\r\n while(matcher.find()) cmdSplit.add(matcher.group(1).replace(\"\\\"\", \"\"));\r\n\r\n //Store the first element in a String command and the second element in a String name\r\n String command = cmdSplit.get(0);\r\n String name = \"\";\r\n consoleAppend(\"Command: \" + command);\r\n if(cmdSplit.size() > 1) {\r\n name = cmdSplit.get(1);\r\n consoleAppend(\"Name: \" + name);\r\n }\r\n /* COMMANDS BELOW\r\n * printnames: Prints the current list of clients\r\n *\r\n * search name: Searches for the client in the Vector and prints a String\r\n *\r\n * enable name: If the player is in the Vector, sends a ControlToken telling\r\n * them to enable their button.\r\n *\r\n * disable name: If the player is in the Vector, sends a ControlToken telling\r\n * them to disable their button.\r\n *\r\n * kick name: Close the socket for this player.\r\n *\r\n * move name <int> <obo>: Move the player a number of spaces. Include obo if you want the\r\n * player to move one tile at a time.\r\n */\r\n\r\n switch(command){\r\n //Prints the current list of clients\r\n case \"printnames\":\r\n if(clientThreads.size() == 0){\r\n consoleAppend(\"No clients are connected.\");\r\n }\r\n StringBuilder sbClientList = new StringBuilder();\r\n for(ClientHandler ch:clientThreads){\r\n sbClientList.append(String.format(\"Index: %-3d | Name: \\\"%s\\\"\\n\", clientThreads.indexOf(ch), ch.getName()));\r\n }\r\n consoleAppend(sbClientList.toString());\r\n break;\r\n\r\n //Gets an updated board\r\n case \"getboard\":\r\n requestBoard();\r\n break;\r\n\r\n// //Displays the updated board in a new window\r\n// case \"showboard\":\r\n// if(updatedGL != null) {\r\n// JFrame jfBoard = new JFrame();\r\n// jfBoard.setTitle(\"Current Board\");\r\n// jfBoard.add(updatedGL, BorderLayout.CENTER);\r\n// jfBoard.pack();\r\n// jfBoard.setVisible(true);\r\n// jfBoard.setDefaultCloseOperation(EXIT_ON_CLOSE);\r\n// } else {\r\n// consoleAppend(\"Board doesn't exist.\");\r\n// }\r\n// break;\r\n\r\n //Searches for a client in the Vector\r\n case \"search\":\r\n consoleAppend(searchClients(name));\r\n break;\r\n\r\n //Starts the game\r\n case \"startgame\":\r\n if(clientThreads.size() == 0){\r\n consoleAppend(\"Can't start the game, no players are connected.\");\r\n } else {\r\n consoleAppend(\"Starting game..\");\r\n TurnHandler th = new TurnHandler();\r\n th.start();\r\n }\r\n break;\r\n\r\n //Enables roll for a player\r\n case \"enable\":\r\n if(getIndex(name) != -1){\r\n consoleAppend(String.format(\"Attempting to enable %s's button...\\n\", name));\r\n clientThreads.get(getIndex(name)).enableClient();\r\n } else {\r\n consoleAppend(String.format(\"Could not enable button, client %s not found.\\n\", name));\r\n }\r\n break;\r\n\r\n //Disables roll for a player\r\n case \"disable\":\r\n if(getIndex(name) != -1){\r\n consoleAppend(String.format(\"Attempting to disable %s's button...\\n\", name));\r\n clientThreads.get(getIndex(name)).disableClient();\r\n } else {\r\n consoleAppend(String.format(\"Could not disable button, client %s not found.\\n\", name));\r\n }\r\n break;\r\n //Kick a player.\r\n case \"kick\":\r\n if(getIndex(name) != -1){\r\n consoleAppend(String.format(\"Attempting to kick %s...\\n\", name));\r\n try{\r\n clientThreads.get(getIndex(name)).mySocket.close();\r\n } catch(IOException ioe) {\r\n consoleAppend(\"Error: couldn't kick \" + name);\r\n ioe.printStackTrace();\r\n }\r\n } else {\r\n consoleAppend(String.format(\"Could not kick client %s, client %s not connected.\\n\", name, name));\r\n }\r\n break;\r\n\r\n //Move a player a number of tiles on all boards\r\n case \"move\":\r\n if (getIndex(name) != -1) {\r\n try {\r\n int tilesToMove = Integer.parseInt(cmdSplit.get(2));\r\n boolean oBo = false;\r\n if (cmdSplit.size() >= 4) {\r\n String oneByOne = cmdSplit.get(3);\r\n if (oneByOne.equals(\"obo\")) {\r\n oBo = true;\r\n }\r\n }\r\n sendCTToAll(new ControlToken(\r\n ControlToken.MOVECODE, name, tilesToMove, oBo));\r\n } catch (NumberFormatException nfe) {\r\n System.err.println(\"Invalid number of moves, please enter an integer.\");\r\n }\r\n } else {\r\n System.err.printf(\"Could not move client %s, client %s not connected.\\n\", name, name);\r\n }\r\n break;\r\n\r\n default:\r\n consoleAppend(\"Command not recognized.\");\r\n break;\r\n\r\n }\r\n }\r\n }", "public void start() {\n try {\n Socket socket = new Socket(conf.getServerIp(), conf.getServerPort());\n\n java.io.InputStream is = socket.getInputStream();\n BufferedReader reader = new BufferedReader(new java.io.InputStreamReader(is));\n\n readerThread = new MessageReader(reader);\n new Thread(readerThread).start();\n\n java.io.OutputStream os = socket.getOutputStream();\n PrintWriter writer = new PrintWriter(os);\n writerThread = new MessageWriter(writer);\n new Thread(writerThread).start();\n\n while (serverMessages.empty()) {\n //Do nothing\n }\n\n ServerMessage serverMessage = serverMessages.pop();\n if (!serverMessage.getMessageType().equals(ServerMessage.MessageType.HELO)) {\n System.out.println(\"Expecting a HELO message but received: \" + serverMessage.toString());\n } else {\n System.out.println(\"Please fill in your username: \");\n Scanner scanner = new Scanner(System.in);\n String username = scanner.nextLine();\n\n\n ClientMessage heloMessage = new ClientMessage(ClientMessage.MessageType.HELO, username);\n clientMessages.push(heloMessage);\n\n while (serverMessages.empty()) {\n }\n\n\n isConnected = validateServerMessage(heloMessage, serverMessages.pop());\n if (!isConnected) {\n System.out.println(\"Error logging into server\");\n } else {\n System.out.println(\"Successfully connected to server.\");\n System.out.println(\"(Type '/quit' to close connection and stop application.)\");\n System.out.println(\"Type a broadcast message: \");\n nonblockReader = new NonblockingBufferedReader(new BufferedReader(new java.io.InputStreamReader(System.in)));\n\n\n while (isConnected) {\n String line = nonblockReader.readLine();\n if (line != null) {\n ClientMessage clientMessage;\n if (line.equals(\"/quit\")) {\n clientMessage = new ClientMessage(ClientMessage.MessageType.QUIT, username + \" left the server\");\n isConnected = false;\n\n Thread.sleep(500L);\n } else if (line.startsWith(\"/msg\") && line.split(\" \").length > 1) {\n //Split the message first\n String[] splittedline = line.split(\" \");\n String senderUsername = splittedline[1].toLowerCase();\n\n if (!senderUsername.equalsIgnoreCase(username)) {\n line = line.replace(\"/msg \" + splittedline[1] + \" \", \"\");\n\n //Check if we have an encryptionsession with the user or not\n if (encryptionSessionHashMap.containsKey(senderUsername)) {\n //We have an encryptionsession, so we can just send the message\n String encryptedLine = encryptionSessionHashMap.get(senderUsername).encryptMessage(line);\n clientMessage = new ClientMessage(ClientMessage.MessageType.ENCR, senderUsername + \" \" + encryptedLine);\n System.out.println(\"(You -> \" + senderUsername + \"): \" + line);\n } else {\n //We don't have an encryptionsession yet, so we create one\n EncryptionSession encryptionSession = new EncryptionSession();\n encryptionSessionHashMap.put(senderUsername, encryptionSession);\n clientMessage = new ClientMessage(ClientMessage.MessageType.KEYS, senderUsername + \" \" + encryptionSession.getPublicKey());\n savedMessage.put(senderUsername, line);\n }\n } else {\n System.out.println(\"You cannot send a message to yourself\");\n clientMessage = null;\n }\n } else if (line.startsWith(\"/file\") && line.split(\" \").length == 3) {\n //Split the message first\n String[] splitLine = line.split(\" \");\n String senderUsername = splitLine[1].toLowerCase();\n\n if (!senderUsername.equalsIgnoreCase(username)) {\n String fileBase64String = new FileTransfer(splitLine[2], senderUsername).sendFile();\n clientMessage = new ClientMessage(ClientMessage.MessageType.FILE, fileBase64String);\n System.out.println(\"You have send \" + splitLine[2] + \" to \" + senderUsername);\n } else {\n System.out.println(\"You cannot send a file to yourself\");\n clientMessage = null;\n }\n\n } else {\n clientMessage = new ClientMessage(ClientMessage.MessageType.BCST, line);\n System.out.println(line);\n }\n\n if (clientMessage != null) {\n clientMessages.push(clientMessage);\n }\n }\n if (!serverMessages.empty()) {\n ServerMessage received = serverMessages.pop();\n\n\n if (received.getMessageType().equals(ServerMessage.MessageType.BCST)) {\n System.out.println(received.getPayload());\n }\n\n //Check if we received an encrypted message\n else if (received.getMessageType().equals(ServerMessage.MessageType.ENCR)) {\n //Split the message first\n String[] splitMessage = received.getPayload().split(\" \");\n String sender = splitMessage[0].toLowerCase();\n String encryptedMessage = splitMessage[1];\n\n //If we have a session with this user, we can decrypt the message\n if (encryptionSessionHashMap.containsKey(sender)) {\n System.out.println(\"(\" + sender + \" -> You): \" + encryptionSessionHashMap.get(sender).decryptMessage(encryptedMessage));\n }\n }\n\n //If this is the first time, we have to share keys\n else if (received.getMessageType().equals(ServerMessage.MessageType.KEYS)) {\n //Split the message first\n String[] splitMessage = received.getPayload().split(\" \");\n String sender = splitMessage[0].toLowerCase();\n String encryptedKey = splitMessage[1];\n\n //Check if we send the first message or not\n if (encryptionSessionHashMap.containsKey(sender)) {\n encryptionSessionHashMap.get(sender).decryptKey(encryptedKey);\n\n //After saving the aes key, we have to resend our first message\n String msg = savedMessage.get(sender);\n if (msg != null) {\n String encryptedLine = encryptionSessionHashMap.get(sender).encryptMessage(msg);\n ClientMessage responseMessage = new ClientMessage(ClientMessage.MessageType.ENCR, sender + \" \" + encryptedLine);\n clientMessages.push(responseMessage);\n System.out.println(\"(You -> \" + sender + \"): \" + msg);\n savedMessage.remove(sender);\n }\n }\n\n //We send our aes key when we didn't send the message first\n else {\n EncryptionSession encryptionSession = new EncryptionSession();\n encryptionSessionHashMap.put(sender, encryptionSession);\n String aesKey = encryptionSession.encryptKey(encryptedKey);\n\n ClientMessage responseMessage = new ClientMessage(ClientMessage.MessageType.KEYS, sender + \" \" + aesKey);\n clientMessages.push(responseMessage);\n }\n }\n\n //Check if the message is a file\n else if (received.getMessageType().equals(ServerMessage.MessageType.FILE)) {\n String[] splitMessage = received.getPayload().split(\" \");\n String sender = splitMessage[0].toLowerCase();\n String base64String = splitMessage[2];\n\n new FileTransfer(base64String, splitMessage[0], true).readFile();\n System.out.println(\"You have received \" + splitMessage[1] + \" from \" + sender);\n }\n }\n }\n }\n\n disconnect();\n System.out.println(\"Client disconnected!\");\n }\n } catch (IOException e) {\n System.out.println(\"Ouch! Could not connect to server!\");\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }", "private void sendClient(String str) {\r\n\t\ttry {\r\n\t\t\tif(this.session != null)\r\n\t\t\t\tthis.session.getBasicRemote().sendText(str);\r\n\t\t\telse \r\n\t\t\t\tSystem.out.println(\"Please open the session before sending a msg\");\r\n\t\t} catch (IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "public synchronized void send() {\n if (AudioUtil.getIs()) {\n LogUtil.d(Tag, \"VR stop\");\n this.mPCMPackageHead.m4053c(CommonParams.bB);\n this.mPCMPackageHead.m4047a(0);\n writeVR(this.mPCMPackageHead.m4048a(), this.mPCMPackageHead.m4049b());\n }\n }" ]
[ "0.6556827", "0.6451441", "0.63403267", "0.6333824", "0.61351997", "0.61240035", "0.61009264", "0.6080469", "0.6036666", "0.6031068", "0.5923978", "0.59131396", "0.5799459", "0.5703287", "0.56866693", "0.56866395", "0.5675292", "0.5645296", "0.5619239", "0.5602498", "0.5600201", "0.5584544", "0.55795115", "0.55779433", "0.55717206", "0.55440366", "0.5530913", "0.55251753", "0.55238855", "0.55135757", "0.5508254", "0.5506097", "0.54992664", "0.5491444", "0.5489142", "0.54811877", "0.5478509", "0.547602", "0.5447679", "0.5429564", "0.5422814", "0.54156893", "0.5408651", "0.54053456", "0.53951836", "0.5393833", "0.538356", "0.5379906", "0.53758156", "0.5371742", "0.53693765", "0.5364777", "0.53597397", "0.5358969", "0.53576124", "0.535647", "0.5354801", "0.53324556", "0.53304815", "0.5326744", "0.5318245", "0.5318239", "0.5313468", "0.5311174", "0.53090525", "0.5304907", "0.5300684", "0.5299205", "0.5295584", "0.5287304", "0.5284752", "0.52787554", "0.5273705", "0.52685046", "0.52653116", "0.526465", "0.5262439", "0.5258597", "0.52552974", "0.5252449", "0.5251037", "0.52498335", "0.52424246", "0.5241995", "0.52378726", "0.5236174", "0.5232044", "0.5231484", "0.5229648", "0.52162504", "0.5213044", "0.5209844", "0.52070785", "0.5204187", "0.520289", "0.52017164", "0.52008367", "0.51953536", "0.5192981", "0.5192221" ]
0.7317011
0
here you can get the extras you passed in when creating the alarm
public void onReceive(Context context, Intent intent) { Bundle extras = intent.getExtras(); String flags = extras != null ? extras.getString(REMINDER_BUNDLE) : "nothing returned"; if (Lullabye.debug) Log.d(tag,"alarm received "+flags+" intent "+intent); if (flags.equals("alarm")) { if (Lullabye.debug) Log.d(tag, "starting automatically "); // if repeat is true, set new alarm in 24 h (86 400seconds) if (Options.isMalarmRepeat()) { new Alarm(context, "alarm", (86400)); } Lullabye.startplaying(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Alarm_Msg(Context context, Bundle extras){\n /*AlarmManager alarmMgr =\n (AlarmManager)context.getSystemService(Context.ALARM_SERVICE);\n Intent intent = new Intent(context, Alarm_Msg.class);\n intent.putExtra(REMINDER_BUNDLE, extras);\n PendingIntent pendingIntent =\n PendingIntent.getBroadcast(context, 0, intent,\n PendingIntent.FLAG_UPDATE_CURRENT);\n Calendar time = Calendar.getInstance();\n time.setTimeInMillis(System.currentTimeMillis());\n time.set(Calendar.HOUR_OF_DAY, Integer.parseInt(extras.getString(\"time_h\")));\n time.set(Calendar.MINUTE, Integer.parseInt(extras.getString(\"time_m\")));\n\n alarmMgr.setRepeating(AlarmManager.RTC_WAKEUP, time.getTimeInMillis(),\n AlarmManager.INTERVAL_DAY, pendingIntent);*/\n\n\n AlarmManager alarmMgr = (AlarmManager)context.getSystemService(Context.ALARM_SERVICE);\n Intent intent = new Intent(context, Alarm_Msg.class);\n intent.putExtra(REMINDER_BUNDLE, extras);\n Bundle getBundle = intent.getBundleExtra(REMINDER_BUNDLE);\n NOTIFY_ID = NOTIFY_ID + getBundle.getInt(\"id\");\n //Toast.makeText(context, Integer.toString(NOTIFY_ID), Toast.LENGTH_LONG).show();\n PendingIntent pendingIntent =\n PendingIntent.getBroadcast(context, NOTIFY_ID, intent,\n PendingIntent.FLAG_UPDATE_CURRENT);\n\n alarmMgr.set(AlarmManager.ELAPSED_REALTIME_WAKEUP,\n SystemClock.elapsedRealtime() +\n 60 * 1000, pendingIntent);\n }", "public void startAlarm(Context context){\n Intent intent = new Intent(this,MonthlyReminderService.class);\n int received = intent.getIntExtra(\"recieved\", 0);\n intent.putExtra(\"received\", received);\n //int type = intent.getIntExtra(\"type\", 0);\n //Log.e(\"SurveyType\", Integer.toString(type));\n //intent.putExtra(\"type\", type);\n //intent.putExtra(\"date\", surveyDate);\n //intent.putExtra(\"type\", \"Health Literacy\");\n //Calendar now = Calendar.getInstance();\n //intent.putExtra(\"dayofYear\",now.get(Calendar.DAY_OF_YEAR));\n startService(intent);\n }", "public void onReceive(Context context, Intent intent) {\n\n Toast.makeText(context, \"Alarm worked.\", Toast.LENGTH_LONG).show();\n final Calendar c = Calendar.getInstance();\n long mHour = c.get(Calendar.HOUR_OF_DAY);\n long mMinute = c.get(Calendar.MINUTE);\n Log.d(\"myTag\", \"Alarm executed at : \" + mHour + \":\" + mMinute);\n\n }", "@Override\n public void onClick(View v) {\n calendar.set(Calendar.HOUR_OF_DAY, alarm_timepicker.getHour());\n calendar.set(Calendar.MINUTE, alarm_timepicker.getMinute());\n\n // getting the int values of the hour and minute\n int hour = alarm_timepicker.getHour();\n int minute = alarm_timepicker.getMinute();\n\n //converting the int values to strings\n String hour_string = String.valueOf(hour);\n String minute_string = String.valueOf(minute);\n\n // 10:4 -> 10:04\n if (minute < 10) {\n minute_string = \"0\" + String.valueOf(minute);\n }\n\n // method that changes the update text Textbox\n set_alarm_text(\"Alarm set to: \" + hour_string + \":\" + minute_string);\n\n\n // put in extra string into my_intent\n // tells the clock that you pressed the \"alarm on\" button\n my_intent.putExtra(\"extra\", \"alarm on\");\n\n //put in an extra long value into my intent\n //tells the clock that you want a certain value from the\n // dropdown menu/spinners\n my_intent.putExtra(\"alarm_choice\", choose_alarm_sound);\n\n // create a pending intent that delays the intent\n // until the specified calendar time\n pending_intent = PendingIntent.getBroadcast(MainActivity.this, 0, my_intent, PendingIntent.FLAG_UPDATE_CURRENT);\n\n //set the alarm manager\n alarm_manager.set(AlarmManager.RTC_WAKEUP, calendar.getTimeInMillis(), pending_intent);\n\n }", "Alarm createAlarm();", "public void setAlarm(Context context, Alarm alarm) {\n // instantiate the system alarm service manager\n alarmMgr = (AlarmManager) context.getSystemService(Context.ALARM_SERVICE);\n // instantiate an intent for the AlarmReciever\n Intent intent = new Intent(context, AlarmReceiver.class);\n // pass the alarm id as an extra to be extracted in the receivier\n intent.putExtra(\"alarmID\", alarm.getId());\n // check if the alarm is on\n if (alarm.isOn()) {\n // if so check if it is recurring\n if (alarm.isRecurring()) {\n // for each day stipulated in the alarm, schedule an new alarm, each alarm id will\n // be multiplied with 10 and then an integer representation of each day will be\n // added i.e. alarm id = 10 and days a Sun = 1, Mon = 2... Sat = 7 therefore\n // sun alarm id = 101, Mon alarm id = 102... Sat alarm id = 107.\n for (Integer day : alarm.getDays()) {\n //multiply by 10 to uniquely identify the intent for each day or ends with 0 if not recurring\n alarmIntent = PendingIntent.getBroadcast(context, new BigDecimal(alarm.getId() * 10).intValueExact() + day, intent, 0);\n // instantiate a calander object\n Calendar calendar = Calendar.getInstance();\n // set to the current system time\n calendar.setTimeInMillis(System.currentTimeMillis());\n // set the calender day to day i.e. sun = 1, mon = 2 etc...\n calendar.set(Calendar.DAY_OF_WEEK, day);\n // set the calendar hour to alarm hour\n calendar.set(Calendar.HOUR_OF_DAY, alarm.getHour());\n // as per hour, set to alarm minutes\n calendar.set(Calendar.MINUTE, new Integer(alarm.getMin()));\n // set seconds to 0 alarm activates close to 0th second of minute\n calendar.set(Calendar.SECOND, 0);\n // as alarm is recurring schedule the alarm to repeat every 7 day from set time\n // specified by alarm set calendar object\n alarmMgr.setRepeating(AlarmManager.RTC_WAKEUP, calendar.getTimeInMillis(),\n AlarmManager.INTERVAL_DAY * 7, alarmIntent);\n }\n } else {\n // if the alarm is not recurring\n // uniquely identify the intent for each day and ends with 0 if not recurring\n alarmIntent = PendingIntent.getBroadcast(context, new BigDecimal(alarm.getId() * 10).intValueExact(), intent, 0);\n // get a calendar object\n Calendar calNow = Calendar.getInstance();\n // set the time to current system time\n calNow.setTimeInMillis(System.currentTimeMillis());\n // get a second instance of calendar\n Calendar calSet = (Calendar) calNow.clone();\n // set the time of the calendar object to the alarm specified time\n calSet.set(Calendar.HOUR_OF_DAY, alarm.getHour());\n calSet.set(Calendar.MINUTE, new Integer(alarm.getMin()));\n calSet.set(Calendar.SECOND, 0);\n // check if the alarm specified time is set to before the current time\n if (calSet.compareTo(calNow) <= 0) {\n //Today Set time passed, count to tomorrow\n calSet.add(Calendar.DATE, 1);\n }\n // set the alarm to activate at once at the calendar specified time\n alarmMgr.setExact(AlarmManager.RTC_WAKEUP,\n calSet.getTimeInMillis(), alarmIntent);\n }\n }\n }", "@Override\n public void onClick(View v) {\n if(v.getId() == R.id.alarmCheck){\n // Put extras for RingtoneService\n myIntent.putExtra(\"extra\", \"no\");\n myIntent.putExtra(\"extra1\", \"main\");\n cal = Calendar.getInstance();\n // Get the time for the alarm at the index\n String tempTime = App.getTimes().get(indexofIntent);\n String[] times = tempTime.split(\":\");\n // Get the hour and minute from the string and set them to int\n int hour = Integer.parseInt(times[0]);\n int minute = Integer.parseInt(times[1]);\n // Set the alarm time\n cal.setTimeInMillis(System.currentTimeMillis());\n cal.set(Calendar.HOUR_OF_DAY, hour);\n cal.set(Calendar.MINUTE, minute);\n cal.set(Calendar.SECOND, 0);\n cal.set(Calendar.MILLISECOND, 0);\n // State pattern used here\n state = new CreateState();\n manager = (AlarmManager) getSystemService(ALARM_SERVICE);\n // add 24 hours\n cal.setTimeInMillis(cal.getTimeInMillis() + 86400000);\n // set the reciever\n Intent intent = new Intent(this.getApplicationContext(), AlarmReceiver.class);\n intent.putExtra(\"extra\", \"yes\");\n intent.putExtra(\"index\", indexofIntent);\n // Create a new intent\n PendingIntent pending = PendingIntent.getBroadcast(this.getApplicationContext(), App.getIds(), intent, PendingIntent.FLAG_UPDATE_CURRENT);\n // Overwrite the correct intent at the index\n App.setIntentAtIndex(indexofIntent, pending);\n App.setIds(App.getIds() + 1);\n // Handle the alarm\n // State pattern used here\n state.handle(manager, pending, cal, false);\n // Turn off ringtone\n sendBroadcast(myIntent);\n\n }\n // If snoozed then stop the media player and set the timer/calendar to 10 minutes\n else if(v.getId() == R.id.snooze){\n // Put extras for RingtoneService\n myIntent.putExtra(\"extra\", \"no\");\n myIntent.putExtra(\"extra1\", \"main\");\n // initialize AlarmManager\n manager = (AlarmManager) getSystemService(ALARM_SERVICE);\n // set the state\n // State pattern used here\n state = new SnoozeState();\n cal = Calendar.getInstance();\n // Get the time the alarm was set\n String tempTime = App.getTimes().get(indexofIntent);\n String[] times = tempTime.split(\":\");\n int hour = Integer.parseInt(times[0]);\n int minute = Integer.parseInt(times[1]);\n // Set calendar to time initially set\n cal.setTimeInMillis(System.currentTimeMillis());\n cal.set(Calendar.HOUR_OF_DAY, hour);\n cal.set(Calendar.MINUTE, minute);\n cal.set(Calendar.SECOND, 0);\n cal.set(Calendar.MILLISECOND, 0);\n // Create a new intent for alarm receiver\n Intent intent = new Intent(this.getApplicationContext(), AlarmReceiver.class);\n // Add extras for RingtoneService\n intent.putExtra(\"extra\", \"yes\");\n intent.putExtra(\"index\", indexofIntent);\n // Create a new intent wiht the BroadcastReceiver\n PendingIntent pending = PendingIntent.getBroadcast(this.getApplicationContext(), App.getIds(), intent, PendingIntent.FLAG_UPDATE_CURRENT);\n // Set the new intent in the list\n App.setIntentAtIndex(indexofIntent, pending);\n App.setIds(App.getIds() + 1);\n // handle the snooze state\n // State pattern used here\n state.handle(manager, pending, cal, false);\n //send a toast to the user letting them know it will snooze for 10 minutes\n Toast t = Toast.makeText(getApplicationContext(), \"Alarm Snoozed for 10 minutes\",\n Toast.LENGTH_SHORT);\n t.setGravity(Gravity.FILL_HORIZONTAL, 10, 1500);\n t.show();\n // Stop the current ringtone\n sendBroadcast(myIntent);\n }\n }", "private void getExtrasFromCallingActivity() {\n extras = getIntent().getExtras();\n if (extras != null) {\n testIdString = extras.getString(\"TEST_ID_FOR_QUESTIONS\");\n } else {\n testIdString = \"-1\";\n }\n }", "public void startAlarm(Context context) {\n\n System.out.println(\"startAlarm\");\n\n\n\n //creates Object of AlarmManager\n AlarmManager alarmManager = (AlarmManager) context.getSystemService(Context.ALARM_SERVICE);\n\n //passing the Alarm to AlertReceiver Class\n Intent intent = new Intent(context, AlertReceiver.class);\n final int id = (int) System.currentTimeMillis();\n PendingIntent pendingIntent = PendingIntent.getBroadcast(context, id, intent, 0);\n\n //Compares the chosen time with the real time\n if (c.before(Calendar.getInstance())) {\n c.add(Calendar.DATE, 1);\n }\n\n alarmManager.setExact(AlarmManager.RTC_WAKEUP, c.getTimeInMillis(), pendingIntent);\n\n\n }", "private void setAlarm(Alarm alarm, int flags) {\n // this set alarm based on TimePicker so we need to set Calendar like the\n // trigger time\n // get instant of Calendar\n Calendar myCalendar = Calendar.getInstance();\n Calendar calendar = (Calendar) myCalendar.clone();\n // set current hour for calendar\n calendar.set(Calendar.HOUR_OF_DAY, alarm.getHour_x());\n // set current minute\n calendar.set(Calendar.MINUTE, alarm.getMinute_x());\n // set current second for calendar\n calendar.set(Calendar.SECOND, 0);\n // plus one day if the time set less than the the Calendar current time\n if (calendar.compareTo(myCalendar) <= 0) {\n calendar.add(Calendar.DATE, 1);\n }\n // get id of alarm and set for PendingIntent to multiply multiple PendingIntent for cancel\n // time, this also put into PendingIntent to compare with the cancel Alarm's id=\n int alarmId = (int) alarm.getId();\n // make intent to broadCast\n Intent intent = new Intent(AlarmsetActivity.this, AlarmReceiver.class);\n // put intent type to check which intent trigger add or cancel\n intent.putExtra(\"intentType\", Constants.ADD_INTENT);\n // put id to intent\n intent.putExtra(\"PendingId\", alarmId);\n // this pendingIntent include alarm id to manage\n PendingIntent alarmIntent = PendingIntent.getBroadcast(AlarmsetActivity.this, alarmId,\n intent, flags);\n // create alarm manager ALARM_SERVICE\n AlarmManager alarmManager = (AlarmManager) getSystemService(ALARM_SERVICE);\n // Set alarm, at the trigger time \"calandar.getTimeInMillis\" this pendingIntent will be\n // sent to AlarmReceiver and then sent to alarm service to play music\n // this \"AlarmManager.INTERVAL_DAY\" mean this will set one new alarm at the trigger time\n // setInExactRepeating this may set alarm again and again also this may be not\n // trigger at the right time( at the first second start) but this will save the battery.\n // \"AlarmManager.RTC_WAKEUP\" allow this app wake device from idle time and the time\n // based on device time\n\n alarmManager.setInexactRepeating(AlarmManager.RTC_WAKEUP,\n calendar.getTimeInMillis(), AlarmManager.INTERVAL_DAY, alarmIntent);\n\n }", "@Override\n public void onClick(View v) {\n Intent i = new Intent(ShakeActivity.this, JournalEntry.class);\n i.putExtra(\"ENTRY_TIME\", AlarmReceiver.getMidnight());\n startActivity(i);\n }", "private PendingIntent buildAlarmPendingIntent() {\n Intent intent = new Intent(this, NotificationReceiver.class);\n intent.setAction(NotificationReceiver.ACTION_SEND_NOTIFICATIONS);\n\n return PendingIntent.getBroadcast(this,\n 0,\n intent,\n PendingIntent.FLAG_UPDATE_CURRENT);\n }", "private void getIncomingIntent()\n {\n if(getIntent().hasExtra(\"Title\")\n && getIntent().hasExtra(\"Time\")\n && getIntent().hasExtra(\"Date\")\n && getIntent().hasExtra(\"Duration\")\n && getIntent().hasExtra(\"Location\")\n && getIntent().hasExtra(\"EventDetails\"))\n {\n Title = getIntent().getStringExtra(\"Title\");\n Time = getIntent().getStringExtra(\"Time\");\n Date = getIntent().getStringExtra(\"Date\");\n Duration = getIntent().getStringExtra(\"Duration\");\n Location = getIntent().getStringExtra(\"Location\");\n EventDetails = getIntent().getStringExtra(\"EventDetails\");\n\n setData(Title,Time,Date,Duration,Location,EventDetails);\n }\n }", "@Override\n public void onClick(View view) {\n calendar.set(Calendar.HOUR_OF_DAY, tp.getHour());\n calendar.set(Calendar.MINUTE, tp.getMinute());\n\n //get int value of timepicker selected time\n int hour = tp.getHour();\n int minute = tp.getMinute();\n\n String hour_string = String.valueOf(hour);\n String minute_string = String.valueOf(minute);\n\n if (hour > 12) {\n hour_string = String.valueOf(hour - 12);\n }\n\n if (minute < 10) {\n minute_string = \"0\" + String.valueOf(minute);\n }\n\n //update status box method\n alarm_text(\"Alarm set for \" + hour_string + \":\" + minute_string);\n //put extra string in my_intent\n //tells clock \"set alarm\" button pressed\n my_intent.putExtra(\"extra\", \"alarm on\");\n //create pending intent that delays intent until user selects time\n pending_intent = PendingIntent.getBroadcast(AlarmClock.this, 0, my_intent, PendingIntent.FLAG_UPDATE_CURRENT);\n //set alarm manager\n am.set(AlarmManager.RTC_WAKEUP, calendar.getTimeInMillis(), pending_intent);\n }", "@Override\r\n public void onClick(View v) {\n Alarm alarm = new Alarm(getContext(), userId);\r\n alarm.setAlarmWithNewPracticeTimes();\r\n }", "String getExtra();", "@Override\n public void onClick(View v) {\n\n if(wake!=null && sleep!=null){\n int id= db.insertSleepReminder(\"\"+sleep.getTimeInMillis(),\"\"+wake.getTimeInMillis());\n Intent intent = new Intent(AddSleep.this, UnlockReceiver.class);\n intent.putExtra(\"wake_up\",\"\"+wake.getTimeInMillis());\n intent.putExtra(\"sleep\",\"\"+sleep.getTimeInMillis());\n intent.putExtra(\"id\",\"\"+id );\n\n PendingIntent intent1 = PendingIntent.getBroadcast(AddSleep.this,id,intent,PendingIntent.FLAG_UPDATE_CURRENT);\n AlarmManager alarmManager = (AlarmManager)getSystemService(ALARM_SERVICE);\n alarmManager.setExact(AlarmManager.RTC, sleep.getTimeInMillis(),intent1);\n\n intent = new Intent(AddSleep.this, WakeUpReceiver.class);\n intent.putExtra(\"wake_up\",\"\"+wake.getTimeInMillis());\n intent.putExtra(\"sleep\",\"\"+sleep.getTimeInMillis());\n intent.putExtra(\"id\",\"\"+id);\n\n intent1 = PendingIntent.getBroadcast(AddSleep.this,id,intent,PendingIntent.FLAG_UPDATE_CURRENT);\n\n alarmManager.setExact(AlarmManager.RTC, wake.getTimeInMillis(),intent1);\n\n Intent intent2 = new Intent(AddSleep.this,Reminder.class);\n startActivity(intent2);\n finish();} else\n {\n Toast.makeText(AddSleep.this,\"Please,Enter Sleep and Wake Up Time!\",Toast.LENGTH_SHORT).show();\n\n }\n\n\n }", "@Override\n\t\tpublic void onReceive(Context arg0, Intent arg1) {\n\t\t\tSystem.out.println(\"ALARM CALLED\");\n\t\t\tsendPostRequest();\n\t\t}", "@Override\n public void onReceive(Context context, Intent intent) {\n\n AlarmAlertWakeLock.acquireScreenCpuWakeLock(context);\n Bundle bundle = intent.getExtras();\n final Alarm alarm = (Alarm) bundle.getSerializable(\"alarm\");\n\n Intent alarmActivityIntent = new Intent(context, AlarmAlertActivity.class);\n alarmActivityIntent.putExtra(\"alarm\", alarm);\n\n alarmActivityIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n\n context.startActivity(alarmActivityIntent);\n }", "@Override\n public void onReceive(Context context, Intent intent) {\n Intent ringtoneIntent = new Intent(context, AlarmService.class);\n\n //1. get EXTRA VALUE from \"alarm_intent\"\n String AlarmStatus = intent.getExtras().getString(EXTRA);\n Remind chosenRemind = (Remind) intent.getExtras().get(NEW_REMIND);\n\n Log.d(\"SAMN\", \"test: Alarm Status:: \" + AlarmStatus);\n\n if(AlarmStatus.equals(ALARM_OFF)){\n /*set up Diable receiver*/\n //to \"enable the receiver\": override the manifest\n ComponentName receiver = new ComponentName(context, AlarmReceiver.class);\n PackageManager pm = context.getPackageManager();\n ///--- ///\n\n pm.setComponentEnabledSetting(receiver,\n PackageManager.COMPONENT_ENABLED_STATE_DISABLED,\n PackageManager.DONT_KILL_APP);\n\n Log.d(\"COMPONENT SETTING: \", String.valueOf(pm.getComponentEnabledSetting(receiver)));\n }\n /*else {\n Intent alarmIntent = new Intent(context, AlarmActivity.class);\n alarmIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n context.startActivity(alarmIntent);\n }*/\n\n // 2. pass it to ringtoneIntent to send to RingtonePlayingService\n ringtoneIntent.putExtra(EXTRA, AlarmStatus);\n ringtoneIntent.putExtra(NEW_REMIND, chosenRemind);\n\n //start service ringtone\n context.startService(ringtoneIntent);\n //explain: ringtoneIntent will be sent to RingtonePlayingService => out Extra Value to notice if ALARM IS ON OR OFF?\n }", "Map<String, Object> extras();", "@Override\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\t\tsetContentView(R.layout.activity_alarm);\n\t\t\n\t\tBundle bundle = getIntent().getExtras();\n\t\t\n\t\tif (bundle != null) {\n\t\t\tString extra = bundle.getString(Constants.KEY_INTENT);\n\t\t\tif ( extra != null && !extra.isEmpty() && extra.equals(Constants.INTENT_FROM_ALARM) ) {\n\t\t\t\tfromAlarm = true;\n\t\t\t} else {\n\t\t\t\tfromAlarm = false;\n\t\t\t}\n\t\t}\n\t\t\n\t\tAdBuddiz.setPublisherKey(\"9a1dff09-5892-4c38-ab19-4c7a475b1329\");\n\t\tAdBuddiz.setLogLevel(AdBuddizLogLevel.Info);\n\t\tAdBuddiz.cacheAds(this); // this = current Activity\n\t\t\n\t\tgetInformation();\n\n\t\ttextViewDate = (TextView) findViewById(R.id.alert_medicine_date);\n\t\ttextViewTime = (TextView) findViewById(R.id.alert_medicine_time);\n\t\ttextViewPatient = (TextView) findViewById(R.id.alert_patient_name);\n\t\ttextViewMedicine = (TextView) findViewById(R.id.alert_medicine_name);\n\t\tpostIt = (View) findViewById(R.id.image);\n\t\talarmSettingsContainer = (LinearLayout) findViewById(R.id.alarm_settings_container);\n\t\tnoAlarmContainer = (LinearLayout) findViewById(R.id.no_alarm_container);\n\t\tbtnEdit = (Button) findViewById(R.id.button_edit_alarm);\n\t\tbtnMethods = (Button) findViewById(R.id.button_methods);\n\t\tbtnCreateAlarm = (Button) findViewById(R.id.button_create_alarm);\n\t\tbtnCancelAlarm = (Button) findViewById(R.id.button_cancel_alarm);\n\t\tbtnAbout = (Button) findViewById(R.id.button_about);\n\t\t\n\t\tbtnAbout.setOnClickListener(new OnClickListener() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tIntent actvityConfirmation = new Intent();\n\t\t\t\tactvityConfirmation.setClass(ActivityShowAlert.this,\n\t\t\t\t\t\tActivityAbout.class);\n\t\t\t\tstartActivity(actvityConfirmation);\n\t\t\t}\n\t\t});\n\n\t\tbtnEdit.setOnClickListener(new OnClickListener() {\n\n\t\t\t@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tIntent actvityConfirmation = new Intent();\n\t\t\t\tactvityConfirmation.setClass(ActivityShowAlert.this,\n\t\t\t\t\t\tActivityRegister.class);\n\t\t\t\tactvityConfirmation.setFlags(Intent.FLAG_ACTIVITY_SINGLE_TOP);\n\t\t\t\tstartActivity(actvityConfirmation);\n\t\t\t\tif (AdBuddiz.isReadyToShowAd(ActivityShowAlert.this)) { \n\t\t\t\t\tAdBuddiz.showAd(ActivityShowAlert.this);\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\n\t\tbtnCreateAlarm.setOnClickListener(new OnClickListener() {\n\n\t\t\t@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tIntent actvityConfirmation = new Intent();\n\t\t\t\tactvityConfirmation.setClass(ActivityShowAlert.this,\n\t\t\t\t\t\tActivityRegister.class);\n\t\t\t\tactvityConfirmation.setFlags(Intent.FLAG_ACTIVITY_SINGLE_TOP);\n\t\t\t\tstartActivity(actvityConfirmation);\n\t\t\t}\n\t\t});\n\n\t\tbtnMethods.setOnClickListener(new OnClickListener() {\n\n\t\t\t@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tIntent actvityConfirmation = new Intent();\n\t\t\t\tactvityConfirmation.setClass(ActivityShowAlert.this,\n\t\t\t\t\t\tActivityMethods.class);\n\t\t\t\tactvityConfirmation.setFlags(Intent.FLAG_ACTIVITY_SINGLE_TOP);\n\t\t\t\tstartActivity(actvityConfirmation);\n\t\t\t\tif (AdBuddiz.isReadyToShowAd(ActivityShowAlert.this)) { \n\t\t\t\t\tAdBuddiz.showAd(ActivityShowAlert.this);\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\t\n\t\tbtnCancelAlarm.setOnClickListener(new OnClickListener() {\n\n\t\t\t@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tif (isAlarmSetted) {\n\t\t\t\t\tcleanInformation();\n\t\t\t\t\tcancelAlarm();\n\t\t\t\t\tfromAlarm = false;\n\t\t\t\t\tnoAlarmContainer.setVisibility(View.VISIBLE);\n\t\t\t\t\talarmSettingsContainer.setVisibility(View.GONE);\n\t\t\t\t\tbtnEdit.setVisibility(View.INVISIBLE);\n\t\t\t\t\tsetViewColor(color);\n\t\t\t\t\ttextViewPatient.setVisibility(View.INVISIBLE);\n\t\t\t\t\tbtnCancelAlarm.setVisibility(View.INVISIBLE);\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\n\t\tif (isAlarmSetted) {\n\t\t\tnoAlarmContainer.setVisibility(View.GONE);\n\t\t\talarmSettingsContainer.setVisibility(View.VISIBLE);\n\t\t\tbtnEdit.setVisibility(View.VISIBLE);\n\t\t\tbtnCancelAlarm.setVisibility(View.VISIBLE);\n\t\t\ttextViewDate.setText(formatDate(getCurrentDate()));\n\t\t\ttextViewMedicine.setText(medicine);\n\t\t\ttextViewPatient.setText(patient);\n\t\t\ttextViewTime.setText(formatTime(atHour));\n\t\t\ttextViewPatient.setVisibility(View.VISIBLE);\n\t\t\tsetViewColor(color);\n\t\t} else {\n\t\t\tnoAlarmContainer.setVisibility(View.VISIBLE);\n\t\t\talarmSettingsContainer.setVisibility(View.GONE);\n\t\t\tbtnEdit.setVisibility(View.INVISIBLE);\n\t\t\tbtnCancelAlarm.setVisibility(View.INVISIBLE);\n\t\t\tsetViewColor(color);\n\t\t\ttextViewPatient.setVisibility(View.INVISIBLE);\n\t\t}\n\n\t\tthis.setVolumeControlStream(AudioManager.STREAM_MUSIC);\n\n\t\tsoundPool = new SoundPool(10, AudioManager.STREAM_MUSIC, 0);\n\t\tsoundPool.setOnLoadCompleteListener(new OnLoadCompleteListener() {\n\n\t\t\t@Override\n\t\t\tpublic void onLoadComplete(SoundPool soundPool, int sampleId,\n\t\t\t\t\tint status) {\n\t\t\t\tloaded = true;\n\t\t\t}\n\t\t});\n\t\tsoundID = soundPool.load(this, R.raw.alarm_sound, 1);\n\t}", "@Override\n public void onReceive(Context context, Intent intent) {\n setAlarm(context);\n }", "public static void startAlarmPendingIntent(Context context, boolean skipCancel) {\n // zrusime vsechny budiky v dtb kdyz je treba\n if (!skipCancel)\n {\n cancelAlarmPendingIntents(context);\n }\n // nacteme budiky z dtb\n List<Alarm> alarms = Alarm.getAlarms();\n AlarmManager alarmManager = (AlarmManager) context.getSystemService(context.ALARM_SERVICE);\n\n if (alarms == null) {\n return;\n }\n\n // naplanujeme vsechny budiky\n // kazdej aktivni budik je naplanovanej vzdy na datum nejblizsi zvoneni, budiky navic\n // planujeme jen jeden tyden dopredu od doby planovani\n // pro zazvoneni se pouzivaji pending intenty, ty jsou intenty ktery se spusti po nejake\n // dobe, navic v AlarmManageru(sluzba OS) jsou tyhle pending intenty kodovany podle nejakyho\n // klice, jako klic jsem pouzil id budiku v databazi\n\n ALARM_LOOP:\n for (Alarm alarm : alarms) {\n\n if (!alarm.isActive()) {\n continue;\n }\n\n Calendar cal = Calendar.getInstance();\n int currentDay = Calendar.getInstance().get(Calendar.DAY_OF_WEEK);\n\n DayRecorder days = alarm.getDays();\n\n final int curHour = Calendar.getInstance().get(Calendar.HOUR_OF_DAY);\n final int curMin = Calendar.getInstance().get(Calendar.MINUTE);\n\n // nastavime v calendari cas zazvoneni budiku\n cal.set(Calendar.HOUR_OF_DAY, alarm.getHour());\n cal.set(Calendar.MINUTE, alarm.getMinute());\n cal.set(Calendar.SECOND, 0);\n cal.set(Calendar.MILLISECOND, 0);\n\n // nejdriv zkontrolujeme jestli budik bude zvonit do konce dne\n if (alarm.getHour() >= curHour &&\n alarm.getMinute() > curMin &&\n days.isDaySet(currentDay - 1)) {\n\n cal.set(Calendar.DAY_OF_WEEK, currentDay);\n PendingIntent sender = createPendingIntent(context, alarm);\n // naplanuje budik na spravnej cas\n alarmManager.set(AlarmManager.RTC_WAKEUP, cal.getTimeInMillis(), sender);\n // budik naplanovan pokracujem dalsim budikem\n continue ALARM_LOOP;\n }\n\n if (cal.getFirstDayOfWeek() == Calendar.SUNDAY) {\n Log.v(TAG, \"US\");\n\n } else {\n Log.v(TAG, \"EU:\" + cal.getFirstDayOfWeek());\n cal.setFirstDayOfWeek(Calendar.SUNDAY);\n }\n\n // to same akorat ted kontrolujeme jestli budik byl naplanovan do konce tydne(soboty)\n // to je furt ten samy tyden jako ma Calender.getInstance();\n for (int i = currentDay + 1; i <= Calendar.SATURDAY; i++) {\n if (days.isDaySet(i - 1)) {\n\n cal.set(Calendar.DAY_OF_WEEK, i);\n PendingIntent sender = createPendingIntent(context, alarm);\n // naplanuje budik na spravnej cas\n Log.v(TAG, \"cal time millis \" + cal.get(Calendar.DAY_OF_WEEK) + \" \"\n + cal.get(Calendar.HOUR_OF_DAY) + \":\" + cal.get(Calendar.MINUTE));\n alarmManager.set(AlarmManager.RTC_WAKEUP, cal.getTimeInMillis(), sender);\n\n continue ALARM_LOOP;\n }\n }\n\n // budik nebyl naplanovan do soboty, tedy musi se prelit do dalsiho tydne\n // Calender.getInstance ma tyden o 1 mensi\n for (int i = Calendar.SUNDAY; i <= currentDay; ++i) {\n if (days.isDaySet(i-1)) {\n cal.set(Calendar.DAY_OF_WEEK, i);\n // incrementujeme polozku tyden\n cal.add(Calendar.WEEK_OF_YEAR, 1);\n PendingIntent sender = createPendingIntent(context, alarm);\n // naplanuje budik na spravnej cas\n alarmManager.set(AlarmManager.RTC_WAKEUP, cal.getTimeInMillis(), sender);\n continue ALARM_LOOP;\n }\n }\n }\n }", "@GET\n @Path(\"{thingName}/{status}\")\n @Produces(MediaType.APPLICATION_JSON)\n public String recieveAlarm(@PathParam(\"thingName\") String thingName, \n @PathParam(\"status\") String status,@Context UriInfo info) {\n\n MultivaluedMap queryMap = info.getQueryParameters();\n Iterator itr = queryMap.keySet().iterator();\n HashMap<String, String> dataMap = new HashMap<>(); \n while(itr.hasNext()){\n Object key = itr.next();\n Object value = queryMap.getFirst(key);\n dataMap.put(key.toString(), value.toString());\n }\n ThingInfoMap thingInfoMap = new ThingInfoMap(thingName, new Timestamp(new Date().getTime()).toString(),status);\n thingInfoMap.setContent(dataMap);\n \n int alarmID = database.addAlarm(thingInfoMap);\n Dweet newDweet;\n if(alarmID != -1){\n thingInfoMap.setAlarmID(alarmID);\n newDweet = new Dweet(\"succeeded\", \"sending\", \"alarm\", thingInfoMap);\n newDweet.setTo(\"myMobileA\"); // it's not included in database\n String warningMsg = gson.toJson(newDweet);\n //send alarm to mobile use GCM\n sendToMobileByGCM(warningMsg);\n return warningMsg;\n } else {\n newDweet = new Dweet(\"failed\", \"alarm is failed to added\");\n return gson.toJson(newDweet);\n }\n\n }", "public void setAlarm (int alarm) { this.alarm = alarm; }", "@Override\n public void onReceive(Context context, Intent intent) {\n AppUtils.setMorningAlarm(context);\n }", "public void configureReturnAlarm(int BID){\n alarmManager = (AlarmManager)getSystemService(ALARM_SERVICE);\n\n //Configure intent with proper information\n Intent intent = new Intent(this, RequestPushService.class);\n\n intent.putExtra(\"TO\", FirebaseInstanceId.getInstance().getToken());\n intent.putExtra(\"BODY\", \"This is just a reminder that a book you have checked out is due in 5 days.\");\n intent.putExtra(\"TITLE\", \"Don't forget to return your book!\");\n intent.putExtra(\"BID\", BID);\n intent.putExtra(\"ALARM_TYPE\", getResources().getInteger(R.integer.ALARM_5_DAY_WARNING));\n PendingIntent serviceIntent = PendingIntent.getService(this, getResources().getInteger(R.integer.ALARM_5_DAY_WARNING) + BID, intent, 0);\n\n //Calculate ring time from now in ms\n long currentTime = System.currentTimeMillis();\n long oneDay = 60 * 60 * 24 * 1000;\n long nineDays = oneDay * 9;\n\n //Set alarm\n alarmManager.set(\n AlarmManager.RTC,\n currentTime + nineDays,\n serviceIntent\n );\n\n //Save alarm so it can be reset in case of reboot\n SharedPreferences sharedPreferences = PreferenceManager.getDefaultSharedPreferences(getApplicationContext());\n SharedPreferences.Editor prefEditor = sharedPreferences.edit();\n prefEditor.putString(\"ALARM\" + BID + \"-TO\", FirebaseInstanceId.getInstance().getToken());\n prefEditor.putString(\"ALARM\" + BID + \"-BODY\", \"This is just a reminder that a book you have checked out is due in 5 days.\");\n prefEditor.putString(\"ALARM\" + BID + \"-TITLE\", \"Don't forget to return your book!\");\n prefEditor.putInt(\"ALARM-BID\" + BID, BID);\n prefEditor.putInt(\"ALARM\" + BID + \"-TYPE\", getResources().getInteger(R.integer.ALARM_5_DAY_WARNING));\n prefEditor.putLong(\"ALARM\" + BID + \"-RING-TIME\", currentTime + nineDays);\n prefEditor.apply();\n }", "abstract void handleAlarmUpdate(AlarmUpdateInfo info);", "@Override\n public void onReceive(Context context, Intent intent) {\n Bundle alarmRingtoneData = intent.getExtras();\n int alarmRingtoneNumber = alarmRingtoneData.getInt(\"alarmClipNumber\");\n\n Intent serviceIntent = new Intent(context, RingtonePlayingService.class);\n serviceIntent.putExtra(\"alarmClipNumber\", alarmRingtoneNumber);\n\n context.startService(serviceIntent);\n }", "@Override\n public void onReceive(Context context, Intent intent) {\n if (intent.getAction().equals(\"android.intent.action.BOOT_COMPLETED\")) {\n // instatiate an alarm scheduler\n AlarmScheduler alarmScheduler = new AlarmScheduler();\n // instantiate the database\n SQLiteHelperAlarm sqLiteHelper = new SQLiteHelperAlarm(context);\n // get all the alarms stored in the database\n List<Alarm> alarms = sqLiteHelper.getAllAlarms();\n // pass each alarm to the alarmScheduler object\n for (Alarm alarm : alarms) {\n alarmScheduler.setAlarm(context, alarm);\n }\n }\n }", "@Override\n protected void onNewIntent(Intent intent) {\n\n Bundle bundle=intent.getExtras();\n int uniqueFlagID=1;\n if(bundle!=null && (bundle.getInt(\"uniqueAppId\") > 0)) {\n DBAdapter adapter = new DBAdapter(getApplicationContext());\n adapter.getUpdatePresFlag(bundle.getString(\"type\"), bundle.getInt(\"uniqueAppId\"), \"1\");\n String AppointmentMessage1 = bundle.getString(AlarmReceiver.APPOINTMENT_MESSAGE);\n ApplicationBackgroundCheck.showNotificationDialog(\"Appointment Alert\", AppointmentMessage1, \"App\",uniqueFlagID,getApplicationContext(),getFragmentManager());\n }\n if(bundle!=null && (bundle.getInt(\"presUniqueId\") > 0)) {\n DBAdapter adapter = new DBAdapter(getApplicationContext());\n adapter.getUpdatePresFlag(bundle.getString(\"type\"),bundle.getInt(\"presUniqueId\"),\"1\");\n String RenewalMessage = bundle.getString(AlarmReceiver.PRESCRIPTION_RENEWAL_MESSAGE);\n ApplicationBackgroundCheck.showNotificationDialog(\"Prescription Renewal Alert\", RenewalMessage, \"PRES\",uniqueFlagID,getApplicationContext(),getFragmentManager());\n }\n if(bundle!=null && (bundle.getString(\"type\").equals(\"MED_TIT\"))) {\n String TitrationMessage = bundle.getString(AlarmReceiver.MEICATION_TITRATION_MESSAGE);\n ApplicationBackgroundCheck.showNotificationDialog(\"Medication Titration Alert\", TitrationMessage, \"MED_TIT\", uniqueFlagID,getApplicationContext(),getFragmentManager());\n }\n if(bundle!=null && (bundle.getString(\"type\").equals(\"EME\"))) {\n DBAdapter adapter= new DBAdapter(getApplicationContext());\n adapter.getUpdateReminderFlag(bundle.getString(\"type\"), bundle.getInt(\"id\"),\"1\");\n String EmergencyMedicationMessage = bundle.getString(AlarmReceiver.EMERGENCY_MEDICATION_MESSAGE);\n ApplicationBackgroundCheck.showNotificationDialog(\"Emergency Medication Alert\", EmergencyMedicationMessage, \"EME\",uniqueFlagID,getApplicationContext(),getFragmentManager());\n\n }\n\n\n }", "public NotificationCompat.Builder getChannel1Notification(String message){\n\n Intent confirmIntent = new Intent(this, Alarm2Activity.class); //can create an activity here that simply says \"Take med\"\n confirmIntent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP | Intent.FLAG_ACTIVITY_SINGLE_TOP);\n confirmIntent.setAction(YES_ACTION);\n\n Intent openAppIntent = new Intent(this, MedicineActivity.class); //can create an activity here that simply says \"Take med\"\n openAppIntent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP | Intent.FLAG_ACTIVITY_SINGLE_TOP);\n\n //processIntentAction(getIntent()); //where to put this???\n\n NotificationCompat.Builder notificationBuilder = new NotificationCompat.Builder(getApplicationContext(), Channel1_ID)\n .setContentTitle(getString(R.string.med_notif_title))\n .setContentText(message)\n .setContentIntent(PendingIntent.getActivity(this, REQUEST_CODE, openAppIntent, PendingIntent.FLAG_UPDATE_CURRENT))\n .setSmallIcon(R.drawable.ic_blur_circular_black_24dp) //setLargeIcon as a picture of a pill\n .addAction(new NotificationCompat.Action(\n R.drawable.ic_blur_circular_black_24dp,\n getString(R.string.confirm_med_taken),\n PendingIntent.getActivity(this, REQUEST_CODE, confirmIntent, PendingIntent.FLAG_UPDATE_CURRENT)))\n .setCategory(NotificationCompat.CATEGORY_REMINDER)\n .setAutoCancel(true);\n //.setTimeOutAfter()\n //.setStyle(new NotificationCompat.BigTextStyle().bigText(context.getString(message)))\n //.setColor(ContextCompat.getColor(context, R.color.colorPrimary))\n //.setTimeOutAfter();\n\n if(Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT && Build.VERSION.SDK_INT < Build.VERSION_CODES.O){\n notificationBuilder.setPriority(NotificationCompat.PRIORITY_HIGH);\n }\n\n return notificationBuilder;\n }", "static public void scheduleLocalNotification(Context context, String message, Bundle extras, int seconds)\n\t{\n\t\tAlarmReceiver.setAlarm(context, message, extras, seconds);\n\t}", "SBCallAlarm selectByPrimaryKey(@Param(\"mainId\") Integer mainId, @Param(\"alarmId\") Integer alarmId);", "@Override\n protected void onHandleIntent(Intent intent) {\n\t Log.i(TAG,\"Alarm Service has started.\");\n Context context = this.getApplicationContext();\n notificationManager = (NotificationManager)context.getSystemService(Context.NOTIFICATION_SERVICE);\n Intent mIntent = new Intent(this, MainActivity.class);\n Bundle bundle = new Bundle(); \n bundle.putString(\"test\", \"test\");\n mIntent.putExtras(bundle);\n\t\tpendingIntent = PendingIntent.getActivity(context, 0, mIntent, PendingIntent.FLAG_UPDATE_CURRENT); \n\t\t\n\t\tResources res = this.getResources();\n\t\tNotificationCompat.Builder builder = new NotificationCompat.Builder(this);\n\n\t\tbuilder.setContentIntent(pendingIntent)\n\t\t .setSmallIcon(R.drawable.ic_launcher)\n\t\t .setLargeIcon(BitmapFactory.decodeResource(res, R.drawable.ic_launcher))\n\t\t .setTicker(res.getString(R.string.notification_title))\n\t\t .setAutoCancel(true)\n\t\t .setContentTitle(res.getString(R.string.notification_title))\n\t\t .setContentText(res.getString(R.string.notification_subject));\n\n\t\tnotificationManager = (NotificationManager)getSystemService(NOTIFICATION_SERVICE);\n\t\tnotificationManager.notify(NOTIFICATION_ID, builder.build());\n\t\tLog.i(TAG,\"Notifications sent.\");\n\t\tMyAlarm app = (MyAlarm)getApplicationContext();\n\t\tapp.incrementCount();\n\n }", "@Override\n public void onClick(View view) {\n alarm_text(\"Alarm Dismissed\");\n //cancel the alarm\n am.cancel(pending_intent);\n\n //put extra string into my_intent\n //tells clock \"dismiss alarm\" button pressed\n my_intent.putExtra(\"extra\", \"alarm off\");\n\n //stop alarm audio\n sendBroadcast(my_intent);\n }", "@Override\n public void onReceive(Context context, Intent intent) {\n ArrayList<String> key=intent.getStringArrayListExtra(\"time\");\n Calendar calendar = Calendar.getInstance();\n int hours = calendar.get(Calendar.HOUR_OF_DAY);\n int minutes = calendar.get(Calendar.MINUTE);\n Toast.makeText(context, String.valueOf(key.size()), Toast.LENGTH_LONG).show();\n /*if (Data.size()>0) {\n Toast.makeText(context, Data.get(0), Toast.LENGTH_LONG).show();\n /*int hour = Integer.valueOf(Data.get(0).substring(0, Data.get(0).indexOf(\":\")));\n int minute = Integer.valueOf(Data.get(0).substring(Data.get(0).indexOf(\":\")));\n if ((hours == hour) && (minutes == minute))\n try {\n play(context, R.raw.girlfart01);//vibrator.vibrate(2000);Vibrator vibrator = (Vibrator) context.getSystemService(Context.VIBRATOR_SERVICE);\n Data.remove(0);\n Data.remove(1);\n } catch (IOException e) {\n e.printStackTrace();\n }\n }*/\n Log.v(this.getClass().getName(), \"Timed alarm onReceive() started at time: \" + new java.sql.Timestamp(System.currentTimeMillis()).toString());\n }", "public void setAlarm(int time, String name){\n\t}", "public String getAlarm() {\n\t\treturn mAlarm;\n\t}", "public void newAlarmManager(long time, Intent intent, int requestCode){\n\n PendingIntent pendingIntent = PendingIntent.getBroadcast(getApplicationContext(),\n requestCode, intent, PendingIntent.FLAG_UPDATE_CURRENT);\n AlarmManager startAlarmManager = (AlarmManager) getApplicationContext()\n .getSystemService(Context.ALARM_SERVICE);\n startAlarmManager.setExact(AlarmManager.RTC_WAKEUP, time, pendingIntent);\n }", "public synchronized static Uri newAlarm(Context context) {\n return context.getContentResolver().insert(\n Uri.parse(CONTENT_URI_ALL_ALARMS), null);\n }", "@Override\n public void onClick(View view) {\n Intent intent = new Intent(getApplicationContext(), ReminderBroadcastReceiver.class);\n intent.putExtra(\"notificationText\", reminderData.getNotificationText());\n\n // Create pending intent with time given\n PendingIntent alarmIntent = PendingIntent.getBroadcast(getApplicationContext(), notificationId,\n intent, PendingIntent.FLAG_UPDATE_CURRENT);\n\n // Create AlarmManager which is sent with pending intent\n AlarmManager alarm = (AlarmManager) getSystemService(ALARM_SERVICE);\n // Create time when notification will fire\n Calendar startTime = Calendar.getInstance();\n startTime.set(Calendar.DAY_OF_WEEK, startTime.get(Calendar.DAY_OF_WEEK));\n startTime.set(Calendar.HOUR_OF_DAY, timePicker.getHour());\n startTime.set(Calendar.MINUTE, timePicker.getMinute());\n startTime.set(Calendar.SECOND, 0);\n\n long alarmStartTime = startTime.getTimeInMillis();\n\n\n /* If reminder time is smaller than current time, start notification on next day, still in progress */\n\n /*\n if (startTime.getTimeInMillis() < System.currentTimeMillis()) {\n startTime.set(Calendar.DAY_OF_WEEK, startTime.get(Calendar.DAY_OF_WEEK + 1));\n alarmStartTime = startTime.getTimeInMillis();\n }\n else\n {\n alarmStartTime = startTime.getTimeInMillis();\n }\n */\n\n\n // Set alarm with (type, milliseconds, intent)\n // With RTC_WAKEUP we wake the device up and deliver the pending intent\n alarm.set(AlarmManager.RTC_WAKEUP, alarmStartTime, alarmIntent);\n saveData();\n\n }", "private void setUpNotification() {\n if (getIntent().getExtras() != null) {\n for (String key : getIntent().getExtras().keySet()) {\n Object value = getIntent().getExtras().get(key);\n Logger.e(\"Key: \" + key + \" Value: \" + value);\n\n if(key.equals(\"Key\")) {\n try {\n String idStr = String.valueOf(value);\n int id = Integer.parseInt(idStr);\n onOpenJobItem(id);\n }\n catch (Exception e){\n e.printStackTrace();\n }\n }\n\n }\n }\n // [END handle_data_extras]\n }", "public void cancelAlarm(Context context, Alarm alarm) {\n // instantiate the system alarm service manager\n alarmMgr = (AlarmManager) context.getSystemService(Context.ALARM_SERVICE);\n // instantiate an intent for the AlarmReciever\n Intent intent = new Intent(context, AlarmReceiver.class);\n intent.putExtra(\"alarmId\", alarm.getId());\n // check if the alarm is recurring, if it is each days alarm is canceled by multiplying\n // the id by 10 and adding the integer representation of each day\n if (alarm.isRecurring()) {\n for (Integer day : alarm.getDays()) {\n //multiply by 10 to uniquely identify the intent for each day or ends with 0 if not recurring\n alarmIntent = PendingIntent.getBroadcast(context, new BigDecimal(alarm.getId()).intValueExact() * 10 + day, intent, 0);\n // cancel the scheduled alarm for the intent\n alarmMgr.cancel(alarmIntent);\n }\n // if it isn't recurring, just cancel the one alarm\n } else {\n //multiply by 10 to uniquely identify the intent for each day or ends with 0 if not recurring\n alarmIntent = PendingIntent.getBroadcast(context, new BigDecimal(alarm.getId()).intValueExact() * 10, intent, 0);\n // cancel the scheduled alarm for the intent\n alarmMgr.cancel(alarmIntent);\n }\n }", "@Override\n public void onClick(DialogInterface dialog, int which)\n {\n String b = customtime.getText().toString().trim();\n \n Toast.makeText(RadioUi.this, b +getString(R.string.closeradio), Toast.LENGTH_SHORT).show();\n sleeptime = b;\n // time=0;\n time = Integer.parseInt(b)*100000;\n // TinyDB tb = new TinyDB(getApplicationContext());\n\t\t\t\t// tb.putString(\"sleep_time\", sleeptime);\n\t\t\t\t \n\t\t\t\t alarm();\n\t\t\t\t \n }", "private void getIntentValues() {\n\n// itemname= getIntent().getExtras().getString(IntentsConstants.item_name);\n// itemPrice = getIntent().getExtras().getDouble(IntentsConstants.item_price);\n Bundle bundle = getArguments();\n menusItem= (MenusItem) bundle.getSerializable(\"Item\");\n itemname=menusItem.getName();\n itemPrice=menusItem.getPrice();\n\n}", "public int getAlarm () { return alarm; }", "@Override\n \tpublic void onReceive(Context context, Intent intent)\n \t{\n \tMediaInfoArtist = intent.getStringExtra(\"artist\");\n \tMediaInfoAlbum = intent.getStringExtra(\"album\");\n \tMediaInfoTrack = intent.getStringExtra(\"track\");\n \tMediaInfoNeedsUpdate = true;\n \tLog.d(\"OLV Music\",\"Artist: \"+MediaInfoArtist+\", Album: \"+MediaInfoAlbum+\" and Track: \"+MediaInfoTrack);\n \t}", "@Override\n public void onReceive(Context context, Intent intent) {\n Alibi alibi = (Alibi) context.getApplicationContext();\n UserEventManager uem = alibi.getUserEventManager();\n UserEvent event = uem.getCurrentEvent();\n\n if (event == null) {\n Log.d(Alibi.TAG, \"ReminderAlarm: null current event\");\n return;\n }\n\n String msgNotify = getNotificationMessage(event);\n String msgToast = context.getString(R.string.reminder_title) + \"\\n\" +\n msgNotify + \" since \" + event.getNiceStartTime();\n\n setNotification(context, msgNotify);\n remind(context, msgToast);\n }", "PendingIntent mo732d() throws RemoteException;", "@Override \n public IBinder onBind(Intent intent) {\n \tToast.makeText(this, \"MyAlarmService.onBind()\", Toast.LENGTH_LONG).show();\n \n \tLog.d(\"this is daya\",\"daya alaram\");\n \treturn null;\n }", "public void setAlarm(Context context, int pk, long time, int Hora, int Minuto) {\n\n\n Calendar calendar = Calendar.getInstance();\n calendar.setTimeInMillis(System.currentTimeMillis());\n calendar.set(Calendar.HOUR_OF_DAY, Hora);\n calendar.set(Calendar.MINUTE, Minuto);\n\n\n //Se crea la hora correcta para el sistema\n long newTime = 1000 * 60 * 60 * time;\n AlarmManager manager = (AlarmManager) context.getSystemService(Context.ALARM_SERVICE);\n Intent alarmIntent = new Intent(context, AlarmReceiver.class);\n alarmIntent.putExtra(\"alarma\", pk);\n PendingIntent pendingIntent = PendingIntent.getBroadcast(context, pk, alarmIntent, PendingIntent.FLAG_UPDATE_CURRENT);\n manager.setInexactRepeating(AlarmManager.RTC_WAKEUP, calendar.getTimeInMillis(), newTime, pendingIntent);\n\n\n\n }", "@Override\n public void onReceive(Context context, Intent intent) {\n Log.d(\"AlarmCustomerReceiver\", \"zyf onReceive: AlarmCustomerReceiver\");\n }", "Notification createNewAppointmentNotification(Appointment appointment);", "@Override\n public void onReceive(Context context, Intent intent) {\n am = (AlarmManager) context.getSystemService(Context.ALARM_SERVICE);\n // setOneTimeAlarm();\n System.out.println(\"inside boot complete\");\n setRepeatingAlarm(context);\n //throw new UnsupportedOperationException(\"Not yet implemented\");\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n switch (id){\n case R.id.action_save:\n ahour = timer.getCurrentHour();\n amin = timer.getCurrentMinute();\n if ( ahour < 10) {\n shour = \"0\" + String.valueOf(ahour);\n } else {\n shour = String.valueOf(ahour);\n }\n if (amin < 10) {\n smin = \"0\" + String.valueOf(amin);\n } else {\n smin = String.valueOf(amin);\n }\n stime = shour + \":\" + smin;\n am = new MyAlarmManager(getApplicationContext());\n\n if (shour == null || smin ==null) {\n Toast.makeText(\n this,\n \"Please enter timer\",\n Toast.LENGTH_LONG\n ).show();\n } else {\n ContentValues values = new ContentValues();\n values.put(MyContract.Alarms.COLUMN_TIME, stime);\n\n\n // updated\n\n Uri uri = ContentUris.withAppendedId(MyContentprovider.CONTENT_URI, timeId);\n String selection = MyContract.Alarms.COLUMN_ID + \" = ?\";\n String[] selectionArgs = new String[] { Long.toString(timeId) };\n getContentResolver().update(\n uri,\n values,\n selection,\n selectionArgs\n );\n\n\n Intent intent = new Intent(EditActivity.this, MainActivity.class);\n intent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n am.setAlarm();\n startActivity(intent);\n finish();\n }\n\n break;\n case R.id.action_delete:\n\n AlertDialog.Builder alertDialog = new AlertDialog.Builder(this);\n alertDialog.setTitle(\"アラーム削除\");\n alertDialog.setMessage(\"このアラームを削除してもいいですか?\");\n\n alertDialog.setPositiveButton(\"OK\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialogInterface, int i) {\n\n am = new MyAlarmManager(getApplicationContext());\n Uri uri = ContentUris.withAppendedId(MyContentprovider.CONTENT_URI, timeId);\n String selection = MyContract.Alarms.COLUMN_ID + \" = ?\";\n String[] selectionArgs = new String[] { Long.toString(timeId) };\n getContentResolver().delete(\n uri,\n selection,\n selectionArgs\n );\n\n Intent intent = new Intent(EditActivity.this, MainActivity.class);\n intent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n am.setAlarm();\n startActivity(intent);\n finish();\n }\n }).show();\n\n break;\n }\n\n return super.onOptionsItemSelected(item);\n }", "public void OnToggleClicked(View view)\n {\n\n long time;\n if (((ToggleButton) view).isChecked())\n {\n //startActivity(Intent)\n Toast.makeText(MainActivity.this, \"ALARM ON\", Toast.LENGTH_SHORT).show();\n Calendar calendar=Calendar.getInstance();\n\n int currentApiVersion = android.os.Build.VERSION.SDK_INT;\n if (currentApiVersion > android.os.Build.VERSION_CODES.LOLLIPOP_MR1)\n {\n calendar.set(Calendar.HOUR_OF_DAY,alarmTimePicker.getHour());\n calendar.set(Calendar.MINUTE, alarmTimePicker.getMinute());\n }\n else {\n calendar.set(Calendar.HOUR_OF_DAY,alarmTimePicker.getCurrentHour());\n calendar.set(Calendar.MINUTE, alarmTimePicker.getCurrentMinute());\n }\n\n Intent intent = new Intent(this, AlarmReceiver.class);\n pendingIntent = PendingIntent.getBroadcast(this, 0, intent, 0);\n\n time=(calendar.getTimeInMillis()-(calendar.getTimeInMillis()%60000));\n if(System.currentTimeMillis()>time)\n {\n if (Calendar.AM_PM == 0)\n time = time + (1000*60*60*12);\n else\n time = time + (1000*60*60*24);\n }\n alarmManager.setRepeating(AlarmManager.RTC_WAKEUP, time, 10000, pendingIntent);\n }\n else\n {\n alarmManager.cancel(pendingIntent);\n Toast.makeText(MainActivity.this, \"ALARM OFF\", Toast.LENGTH_SHORT).show();\n }\n //public class DeezerConnect.Builder();\n }", "@Test\n public void testAlarmActive() {\n AlarmManager alarm = (AlarmManager) context.getSystemService(ALARM_SERVICE);\n Intent alarmIntent = new Intent(context, MyNotification.class);\n PendingIntent sendBroadcast = PendingIntent.getBroadcast(context, 0, alarmIntent, PendingIntent.FLAG_NO_CREATE);\n alarm.set(AlarmManager.RTC_WAKEUP, System.currentTimeMillis()+60*1000, sendBroadcast);\n boolean active = (PendingIntent.getBroadcast(context,0,alarmIntent,PendingIntent.FLAG_NO_CREATE))!=null;\n assertFalse(\"failed, \",active);\n }", "void alarm(String text);", "@Override\n public void onReceive(Context context, Intent intent) {\n\n boolean isAlarmOn = Utils.isAlarmOn();\n PollService.setServiceAlarm(MyApplication.getContext(), isAlarmOn);\n }", "public void setRepeatingAlarm(Context context, int type) {\n\n\n Intent intent = new Intent(context, AlarmReceiver.class);\n intent.putExtra(EXTRA_TYPE, type);\n\n String time = \"00:00\";\n if (type == Const.REQUEST_RELEASE_REMINDER) {\n time = Const.TIME_RELEASE_REMINDER;\n } else {\n time = Const.TIME_DAILY_REMINDER;\n }\n String[] timeArray = time.split(\":\");\n\n Calendar calendar = Calendar.getInstance();\n calendar.set(Calendar.HOUR_OF_DAY, Integer.parseInt(timeArray[0]));\n calendar.set(Calendar.MINUTE, Integer.parseInt(timeArray[1]));\n calendar.set(Calendar.SECOND, 0);\n\n PendingIntent pendingIntent = PendingIntent.getBroadcast(\n context,\n type,\n intent,\n 0);\n\n AlarmManager alarmManager = (AlarmManager) context.getSystemService(Context.ALARM_SERVICE);\n if (alarmManager != null) {\n alarmManager.setInexactRepeating(\n AlarmManager.RTC_WAKEUP,\n calendar.getTimeInMillis(),\n AlarmManager.INTERVAL_DAY,\n pendingIntent\n );\n\n /*if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {\n alarmManager.setAndAllowWhileIdle(AlarmManager.RTC_WAKEUP, 0, pendingIntent);\n } else if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) {\n alarmManager.setExact(AlarmManager.RTC_WAKEUP, 0, pendingIntent);\n } else {\n alarmManager.set(AlarmManager.RTC_WAKEUP, 0, pendingIntent);\n }\n */\n\n Log.d(TAG, \"setRepeatingAlarm: Set \" + type + \" = \" + time);\n }\n\n }", "void simpleNotify(SimpleAlarmMessage message);", "@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.activity_main);\n\n\n alarm = findViewById(R.id.alarm);\n et_message = findViewById(R.id.et_message);\n et_phone = findViewById(R.id.et_phone);\n\n Button btnTimePicker = findViewById(R.id.btnTimePicker);\n Button btnCancelAlarm = findViewById(R.id.btnCanelAlarm);\n\n\n String message = et_message.getText().toString();\n String phone = et_phone.getText().toString();\n\n\n btnTimePicker.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n DialogFragment timePicker = new TimePickerFragment();\n timePicker.show(getSupportFragmentManager(), \"time picker\");\n\n }\n });\n\n btnCancelAlarm.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n cancelAlarm();\n }\n });\n\n\n }", "private void retrieveExtrasAndRestoreViews(Bundle possibleExtrasToStartAlarm) {\n Bundle extras = possibleExtrasToStartAlarm;\n boolean switchOn = extras.getBoolean(SWITCH_KEY);\n boolean mondaySelected = extras.getBoolean(MONDAY_TOGGLE_BUTTON_KEY);\n boolean tuesdaySelected = extras.getBoolean(TUESDAY_TOGGLE_BUTTON_KEY);\n boolean wednesdaySelected = extras.getBoolean(WEDNESDAY_TOGGLE_BUTTON_KEY);\n boolean thursdaySelected = extras.getBoolean(THURSDAY_TOGGLE_BUTTON_KEY);\n boolean fridaySelected = extras.getBoolean(FRIDAY_TOGGLE_BUTTON_KEY);\n boolean saturdaySelected = extras.getBoolean(SATURDAY_TOGGLE_BUTTON_KEY);\n boolean sundaySelected = extras.getBoolean(SUNDAY_TOGGLE_BUTTON_KEY);\n\n mAlarmClock.setMondayToggle(mondaySelected);\n mAlarmClock.setTuesdayToggle(tuesdaySelected);\n mAlarmClock.setWednesdayToggle(wednesdaySelected);\n mAlarmClock.setThursdayToggle(thursdaySelected);\n mAlarmClock.setFridayToggle(fridaySelected);\n mAlarmClock.setSaturdayToggle(saturdaySelected);\n mAlarmClock.setSundayToggle(sundaySelected);\n mAlarmClock.setSwitch(switchOn);\n\n }", "@Override\n public void onReceive(Context context, Intent intent) {\n\n NotificationChannel notificationChannel = new NotificationChannel(\"CHANNELID\", \"name\", NotificationManager.IMPORTANCE_HIGH );\n NotificationManager notificationManager = context.getSystemService(NotificationManager.class);\n\n notificationManager.createNotificationChannel(notificationChannel);\n\n Intent i = new Intent(context, DisplayMedication.class);\n\n // FIXME - hardcoded values\n i.putExtra(\"MedicationName\",\"Vicodin\" + \"\");\n i.putExtra(\"DoseAmount\",\"1\" + \"\");\n i.putExtra(\"HourlyFrequency\",\"2\" + \"\");\n i.putExtra(\"DaysBetweenDose\",\"7\" + \"\");\n /* <--- above this line ---> */\n\n\n PendingIntent pendingIntent = PendingIntent.getActivity(context, 0, i, PendingIntent.FLAG_UPDATE_CURRENT);\n\n\n NotificationCompat.Builder builder = new NotificationCompat.Builder(context, \"CHANNELID\")\n .setSmallIcon(R.drawable.icon)\n .setContentTitle(\"Medication Time\")\n .setContentText(\"Time to take a medication\")\n .setPriority(NotificationManager.IMPORTANCE_HIGH)\n .setContentIntent(pendingIntent);\n NotificationManagerCompat notificationManagerCompat = NotificationManagerCompat.from(context);\n notificationManagerCompat.notify(0, builder.build());\n\n\n }", "private void setAlarmData(Intent intent) {\n if (mAlarmId == Constants.DEFAULT_ALARM_ID) {\n\n mAlarmId = intent.getIntExtra(Constants.EXTRA_ALARM_ID, Constants.DEFAULT_ALARM_ID);\n // factory view model is used for sending parameters to the view model in our case\n // with alarm entry id to make sure we have one entity on our viewModel\n DetailViewModelFactory factory = new DetailViewModelFactory(mDb, mAlarmId);\n mViewModel =\n ViewModelProviders.of(this, factory).get(DetailViewModel.class);\n\n // Observe changes in model in order to update UI\n mViewModel.getAlarm().observe(this, new Observer<AlarmEntry>() {\n @Override\n public void onChanged(@Nullable AlarmEntry alarmEntry) {\n mViewModel.getAlarm().removeObserver(this);\n if (alarmEntry == null) {\n return;\n }\n mAlarmId = alarmEntry.getId();\n mMapDestination =\n new MapDestination(alarmEntry.getLatitude(), alarmEntry.getLongitude(),\n alarmEntry.getLocation(), alarmEntry.getRadius());\n mAlarmRingtone = alarmEntry.getAlert() != null ? Uri.parse(alarmEntry.getAlert()) : null;\n\n // populate the UI\n populateUI(alarmEntry);\n }\n });\n }\n }", "public releaseAlarm_args(releaseAlarm_args other) {\n if (other.isSetAlarmQueryForm()) {\n this.alarmQueryForm = new TAlarmQueryForm(other.alarmQueryForm);\n }\n }", "@Override\n public void onReceive(Context context, Intent intent) {\n\n long when = System.currentTimeMillis();\n NotificationManager notificationManager = (NotificationManager) context\n .getSystemService(Context.NOTIFICATION_SERVICE);\n\n Intent notificationIntent = new Intent(context, MainActivity.class);\n notificationIntent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n\n PendingIntent pendingIntent = PendingIntent.getActivity(context, 0,\n notificationIntent, PendingIntent.FLAG_UPDATE_CURRENT);\n\n\n Uri alarmSound = RingtoneManager.getDefaultUri(RingtoneManager.TYPE_NOTIFICATION);\n\n NotificationCompat.Builder mNotifyBuilder = new NotificationCompat.Builder(\n context).setSmallIcon(R.drawable.ic_file_download)\n .setContentTitle(\"App of the Day\")\n .setContentText(\"Get today's App of the Day...\").setSound(alarmSound)\n .setAutoCancel(true).setWhen(when)\n .setContentIntent(pendingIntent)\n .setVibrate(new long[]{1000, 1000, 1000, 1000, 1000});\n notificationManager.notify(MID, mNotifyBuilder.build());\n MID++;\n\n }", "@Override\n\t public void onReceive(Context context, Intent intent) {\n\t Toast.makeText(appContext, intent.getStringExtra(\"cmd_value\"), Toast.LENGTH_SHORT).show();\n\t }", "Notification createAppointmentConfirmationNotification(Appointment appointment);", "@Override\n public void hearShake() {\n if(pending_intent == null) {\n //do nothing\n } else {\n Log.e(\"shake\", \"you just shake your phone\");\n\n set_alarm_text(\"Alarm off by shaking\");\n\n alarm_manager.cancel(pending_intent);\n\n my_intent.putExtra(\"extra\", \"alarm shake off\");\n my_intent.putExtra(\"song\", song);\n\n sendBroadcast(my_intent);\n }\n }", "public void SetAlarm(Context context)\n {\n Calendar calendar = Calendar.getInstance();\n calendar.setTimeInMillis(System.currentTimeMillis());\n calendar.set(Calendar.HOUR_OF_DAY, 7);\n calendar.set(Calendar.MINUTE,20);\n Log.i(\"Set calendar\", \"for time: \" + calendar.toString());\n\n //Intent i = new Intent(context, AlarmService.class);\n Intent i = new Intent(context, Alarm.class);\n boolean alarmRunning = (PendingIntent.getBroadcast(context, 0, i, PendingIntent.FLAG_NO_CREATE) !=null);\n if (!alarmRunning) {\n //PendingIntent pi = PendingIntent.getService(context, 0, i, PendingIntent.FLAG_UPDATE_CURRENT);\n PendingIntent pi = PendingIntent.getService(context, 0, i, 0);\n\n\n\n PendingIntent pendingIntent = PendingIntent.getBroadcast(context, 0, i, 0);\n AlarmManager am = (AlarmManager)getSystemService(ALARM_SERVICE);\n am.setRepeating(AlarmManager.RTC_WAKEUP, calendar.getTimeInMillis(), AlarmManager.INTERVAL_DAY, pendingIntent);\n //am.cancel(pi);\n }\n\n //PendingIntent pi = PendingIntent.getBroadcast(context, 0, i, 0 );\n\n\n //am.setRepeating(AlarmManager.RTC_WAKEUP, calendar.getTimeInMillis(),AlarmManager.INTERVAL_DAY, pi);\n\n }", "@SuppressLint(\"WrongConstant\")\n @Override\n public int onStartCommand(Intent myIntent, int flags, int startId) {\n if (myIntent != null && myIntent.getExtras() != null) {\n id = myIntent.getExtras().getString(\"id\");\n time = myIntent.getExtras().getString(\"time\");\n\n }\n\n\n return START_STICKY;\n }", "@Override\n public void onCreate() {\n \tToast.makeText(this, \"MyAlarmService.onCreate()\", Toast.LENGTH_LONG).show();\n \n \t \n \n \tLog.d(\"this is daya\",\"daya alaram\");\n \t\n }", "private void startPopup(Context context, Long id) {\n\n //Intent emaIntent = new Intent(context, VoiceRecognitionActivity.class); //The activity you want to start.\n //Intent emaIntent = new Intent(context, PopupActivity.class); //The activity you want to start.\n //Log.d(\"Alarm receiver\", \"received intent\");\n Random random = new Random();\n int value = random.nextInt(1);\n Intent emaIntent = new Intent(context, PopupActivity.class);\n emaIntent.putExtra(\"pos\", id);\n\n\n\n// if (value == 1) {\n// emaIntent = new Intent(context, PopupActivity.class); //The activity you want to start.\n// } else {\n// emaIntent = new Intent(context, VoiceRecognitionActivity.class);\n// }\n\n\n\n emaIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n context.startActivity(emaIntent);\n }", "public static void setAlarm(Context context) {\n Intent i = new Intent(context, AlarmManagerHandler.class);\n\n //helps in creating intent that must be fired at some later time\n PendingIntent pi = PendingIntent.getService(context, 0, i, 0);\n\n //schedule a repeating alarm; they are inexact\n AlarmManager mgr = (AlarmManager) context.getSystemService(Context.ALARM_SERVICE);\n mgr.setRepeating(\n AlarmManager.ELAPSED_REALTIME, //type of time(UTC, elapsed) & wake mobile or not\n SystemClock.elapsedRealtime() + PERIOD, //trigger at Milliseconds; time at which alarm should go off\n PERIOD, //interval in Milliseconds between subsequent repeat of alarm\n pi //action to perform when alarm goes off pending intent\n );\n }", "public static Object getExtraObject(Activity context, String key) {\n \tObject param = null;\n \tBundle bundle = context.getIntent().getExtras();\n \tif(bundle!=null){\n \t\tparam = bundle.get(key);\n \t}\n \treturn param;\n\t}", "public void sendMessage(View v) {\n /*\n\n Intent intent = new Intent(this, DisplayMessageActivity.class);\n EditText editText = (EditText) findViewById(R.id.edit_message);\n String message = editText.getText().toString();\n intent.putExtra(EXTRA_MESSAGE, message);\n startActivity(intent);\n\n */\n long time = currentTimeMillis();\n Date d1 = new Date();\n Date d2;\n // d2 = new Date(d1.getYear(),d1.getMonth(),d1.getDate(),d1.getHours(),d1.getMinutes(),d1.getSeconds());\n Toast.makeText(this, \"ALARM ON\", Toast.LENGTH_SHORT).show();\n // Calendar calendar = Calendar.getInstance();\n // calendar.set(Calendar.HOUR_OF_DAY, alarmTimePicker.getCurrentHour());\n // calendar.set(Calendar.MINUTE, alarmTimePicker.getCurrentMinute());\n alarmManager = (AlarmManager) getSystemService(Context.ALARM_SERVICE);\n Intent intent = new Intent(MainActivity.this, AlarmReceiver.class);\n pendingIntent = PendingIntent.getBroadcast(this, 0, intent, 0);\n Calendar calendar = Calendar.getInstance();\n calendar.setTimeInMillis(System.currentTimeMillis());\n // Set the alarm's trigger time to 8:30 a.m.\n calendar.set(Calendar.HOUR_OF_DAY, 14);\n calendar.set(Calendar.MINUTE, 58);\n Toast.makeText(MainActivity.this, \"bjr\", Toast.LENGTH_SHORT).show();\n // alarmManager.setRepeating(AlarmManager.RTC_WAKEUP, time + 5, 10000, pendingIntent);\n alarmManager.set(AlarmManager.RTC_WAKEUP, System.currentTimeMillis(), pendingIntent);\n // Bon manque de prevenir le receiver....!!\n\n }", "private void alarm(String[] command) {\n\t\t// If no arguments set default 5 seconds alarm.\n\t\tif (command.length == 1) {\n\t\t\tAlfred.setAlarmClock(new AlarmClock(5));\n\t\t\t// If one argument.\n\t\t} else if (command.length == 2) {\n\t\t\t// If argument is in the format of 4 digits.\n\t\t\tif (command[1].toLowerCase().matches(\"\\\\d{4}\")) {\n\t\t\t\tif (Integer.parseInt(command[1]) < 2400) {\n\t\t\t\t\tAlfred.setAlarmClock(new AlarmClock(command[1]));\n\t\t\t\t} else\n\t\t\t\t\tSystem.out.println(\"Time must be between 0000 and 2359.\");\n\t\t\t} else if (command[1].toLowerCase().matches(\"^[0-9]\\\\d*$\")) {\n\t\t\t\tAlfred.setAlarmClock(new AlarmClock(Integer\n\t\t\t\t\t\t.parseInt(command[1])));\n\t\t\t}\n\t\t}\n\t\t// If two arguments.\n\t\telse if (command.length == 3) {\n\t\t\tif (command[1].toLowerCase().matches(\"^[0-9]\\\\d*$\")\n\t\t\t\t\t|| command[2].toLowerCase().matches(\"^[0-9]\\\\d*$\")) {\n\t\t\t\t// Alarm set with minutes, seconds arguments.\n\t\t\t\tAlfred.setAlarmClock(new AlarmClock(Integer\n\t\t\t\t\t\t.parseInt(command[1]), Integer.parseInt(command[2])));\n\t\t\t}\n\n\t\t\t// If three arguments.\n\t\t\telse if (command.length == 4) {\n\t\t\t\tif (command[1].toLowerCase().matches(\"^[0-9]\\\\d*$\")\n\t\t\t\t\t\t&& command[2].toLowerCase().matches(\"^[0-9]\\\\d*$\")\n\t\t\t\t\t\t&& command[3].toLowerCase().matches(\"^[0-9]\\\\d*$\")) {\n\t\t\t\t\tSystem.out\n\t\t\t\t\t\t\t.println(\"Three arguments currently not supported.\");\n\t\t\t\t\t// Alarm set with hours, minutes, seconds arguments.\n\n\t\t\t\t\t// This crashes with java.lang.NumberFormatException: radix\n\t\t\t\t\t// 1\n\t\t\t\t\t// less than Character.MIN_RADIX.\n\n\t\t\t\t\t// Alfred.setAlarmClock(new AlarmClock(Integer\n\t\t\t\t\t// .parseInt(command[1]), Integer.parseInt(command[2],\n\t\t\t\t\t// Integer.parseInt(command[3]))));\n\t\t\t\t}\n\t\t\t}\n\n\t\t} else\n\t\t\tSystem.out.println(\"Too many arguments.\");\n\t}", "public static void viewAlarms(){\r\n\t\t\r\n\t}", "@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.newalarm);\n\n loadAfterRedirect();\n if (getIntent().getIntExtra(\"Id\", -1) != -1) {\n //Put everything to text, delete old view with this id\n Button timeHourButton = (Button) findViewById(R.id.timeHourButton);\n Button timeMinuteButton = (Button) findViewById(R.id.timeMinuteButton);\n EditText alarmName = (EditText) findViewById(R.id.alarmName);\n TextView dateContent = (TextView) findViewById(R.id.dateContent);\n SeekBar volumeBar = (SeekBar) findViewById(R.id.volumeBar);\n Button toneButton = (Button) findViewById(R.id.toneButton);\n\n FName = getIntent().getStringExtra(\"Tone\");\n String[] UFFName = FName.split(\"/\");\n\n timeHourButton.setText(getIntent().getStringExtra(\"Hour\"));\n timeMinuteButton.setText(getIntent().getStringExtra(\"Minute\"));\n alarmName.setText(getIntent().getStringExtra(\"Name\"));\n volumeBar.setProgress(getIntent().getIntExtra(\"Volume\", 75));\n toneButton.setText(\"Alarm tone: \" + UFFName[UFFName.length - 1]);\n dateContent.setText(Date);\n\n Hours = Integer.parseInt(getIntent().getStringExtra(\"Hour\"));\n Minutes = Integer.parseInt(getIntent().getStringExtra(\"Minute\"));\n Date = getIntent().getStringExtra(\"Date\");\n AlarmType = getIntent().getIntExtra(\"Type\", 0);\n\n //Only location is missing.\n } else {\n\n String curDayS;\n String curMonthS;\n Calendar c = Calendar.getInstance();\n\n int Minute = c.get(Calendar.MINUTE);\n int Hour = c.get(Calendar.HOUR_OF_DAY);\n\n int curDay = c.get(Calendar.DAY_OF_MONTH);\n int curMonth = c.get(Calendar.MONTH) + 1;\n int curYear = c.get(Calendar.YEAR);\n\n if (curDay < 10)\n curDayS = \"0\" + curDay;\n else\n curDayS = \"\" + curDay;\n\n if (curMonth < 10)\n curMonthS = \"0\" + curMonth;\n else\n curMonthS = \"\" + curMonth;\n\n\n String Hourstring = Integer.toString(Hour);\n String Minutestring = Integer.toString(Minute);\n\n if (Integer.toString(Hour).length() == 1) {\n Hourstring = \"0\" + Integer.toString(Hour);\n }\n\n if (Integer.toString(Minute).length() == 1) {\n Minutestring = \"0\" + Integer.toString(Minute);\n }\n\n\n Date = curDayS + \"-\" + curMonthS + \"-\" + curYear;\n final String CurrentTime = Hourstring + \":\" + Minutestring;\n }\n }", "private void sendIntent(Alarm alarm, String intentType) {\n // intent1 to send to AlarmReceiver\n Intent intent1 = new Intent(AlarmsetActivity.this, AlarmReceiver.class);\n // put intent type Constants.ADD_INTENT or Constants.OFF_INTENT\n intent1.putExtra(\"intentType\", intentType);\n // put alarm'id to compare with pendingIntent'id in AlarmService\n intent1.putExtra(\"AlarmId\", (int) alarm.getId());\n intent1.putExtra(\"task\", alarm.getAlarm_Name());\n // this sent broadCast right a way\n sendBroadcast(intent1);\n }", "@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tint ind=spinner.getSelectedItemPosition();\n\t\t\t\tString mus=list_uri.get(ind);\n\t\t\t String ic=list_id.get(ind);\n\t\t\t Uri songg=Uri.parse(mus+\"/\"+ic);\n\t\t\t\tIntent ii=new Intent(MainActivity.this,SerTest.class);\n\t\t\t ii.putExtra(\"ringtone-uri\", String.valueOf(songg));\n\t\t\t stopService(ii);\n\t\t\t\tint sid=radio_group.getCheckedRadioButtonId();\n\t\t\t\tradio_button=(RadioButton)findViewById(sid);\n\t\t\t\tString r=radio_button.getText().toString();\n\t\t\t\ttime=System.currentTimeMillis();\n\t\t\t\tcalendar.set(Calendar.HOUR_OF_DAY,alarmTimePicker.getCurrentHour());\n\t\t\t\tcalendar.set(Calendar.MINUTE,alarmTimePicker.getCurrentMinute());\n\t\t\t\tcalendar.set(Calendar.SECOND,0);\n\t\t\t\tlong hl=alarmTimePicker.getCurrentHour();\n\t\t\t\tlong ml=alarmTimePicker.getCurrentMinute();\n\t\t\t\tsong=spinner.getSelectedItemPosition();\n\t\t\t\tString h=String.valueOf(hl);\n\t\t\t\tString m=String.valueOf(ml);\n\t\t\t\tif(h.length()==1)\n\t\t\t\t\th=\"0\"+h;\n\t\t\t\tif(m.length()==1)\n\t\t\t\t\tm=\"0\"+m;\n\n\t\t\t\ti.putExtra(\"Extra\",\"alarm on\");\n\t\t\t\ti.putExtra(\"idd\", String.valueOf(time));\n\t\t\t\ti.putExtra(\"play\", String.valueOf(song));\n\t\t\t\tString vibration=\"no\";\n\t\t\t\tif(checkbok.isChecked()){\n\t\t\t\t\ti.putExtra(\"vib\",\"yes\");\n\t\t\t\t\tvibration=\"yes\";\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t\ti.putExtra(\"vib\",\"no\");\n\t\t\t\tpending_intent=PendingIntent.getBroadcast(MainActivity.this,(int) time,i,PendingIntent.FLAG_UPDATE_CURRENT);\n\t\n\n\t\t\t\tlong time=System.currentTimeMillis();\n\t\t\t\tlong t=calendar.getTimeInMillis();\n\t\t\t\tif(t>=time){\n\n\t\t\t\t\tif(r.equals(\"Once\"))\n\t\t\t\t\t\talarmManager.set(AlarmManager.RTC_WAKEUP,calendar.getTimeInMillis(),pending_intent);\n\t\t\t\t\telse if(r.equals(\"Daily\"))\n\t\t\t\t\t\talarmManager.setRepeating(AlarmManager.RTC_WAKEUP,calendar.getTimeInMillis(),60*1000*24*60,pending_intent);\n\t\t\t\t\telse\n\t\t\t\t\t\talarmManager.setRepeating(AlarmManager.RTC_WAKEUP,calendar.getTimeInMillis(),60*1000*24*60*7,pending_intent);\n\t\t\t\t\tToast.makeText(getApplicationContext(), \"Alarm set at \"+h+\":\"+m+\".\", Toast.LENGTH_LONG).show();\n\t\t\t\t}\n\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\t\tif(r.equals(\"Once\"))\n\t\t\t\t\t\t\talarmManager.set(AlarmManager.RTC_WAKEUP,calendar.getTimeInMillis(),pending_intent);\n\t\t\t\t\t\telse if(r.equals(\"Daily\"))\n\t\t\t\t\t\t\talarmManager.setRepeating(AlarmManager.RTC_WAKEUP,calendar.getTimeInMillis()+86400000,60*1000*24*60,pending_intent);\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\talarmManager.setRepeating(AlarmManager.RTC_WAKEUP,calendar.getTimeInMillis()+86400000,60*1000*24*60*7,pending_intent);\n\t\t\t\t\tToast.makeText(getApplicationContext(), \"Alarm set at \"+h+\":\"+m+\" tomorrow.\", Toast.LENGTH_LONG).show();\n\t\t\t\t}\n\t\n\t\t\t\tFirst.db.execSQL(\"INSERT INTO alarm VALUES\"+\"('\"+id+\"','alarm','\"+h+\":\"+m+\"','\"+time+\"','\"+r+\"','\"+vibration+\"','\"+song+\"')\");\n\t\t\t\tIntent back=new Intent(MainActivity.this,First.class);\n\t\t\t\tback.putExtra(\"S\",h+\":\"+m);\n\t\t\t\tstartActivity(back);\n\t\t\t}", "public static final void setAlarm(int seconds, AlarmManager alarmManager, Context context) {\n\t\tIntent intent = new Intent(context, AlarmActivity.class);\n\t\t// intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n\t\tPendingIntent pendingIntent = PendingIntent.getActivity(context, 0, intent, PendingIntent.FLAG_ONE_SHOT);\n\t\t// get the alarm manager, and scedule an alarm that triggers my activity\n\t\talarmManager.set(AlarmManager.RTC_WAKEUP, System.currentTimeMillis() + seconds * 1000, pendingIntent);\n\t\tToast.makeText(context, \"Timer set to \" + seconds + \" seconds.\", Toast.LENGTH_SHORT).show();\t\n\t}", "public void onMessageReceived(RemoteMessage remoteMessage) {\n if (remoteMessage.getData().size() > 0) {\n Log.e(\"ORM\", \"Message data payload: \" + remoteMessage.getData());\n }\n PreferenceManager.getDefaultSharedPreferences(getBaseContext());\n // Check if message contains a notification payload.\n if (remoteMessage.getNotification() != null) {\n // for foreground\n Map<String, String> data = null;\n if (remoteMessage.getData().get(\"type\") != null) {\n data = remoteMessage.getData();\n Log.i(TAG, \"onMessageReceived: type = \" + remoteMessage.getData().get(\"type\"));\n Log.i(TAG, \"onMessageReceived: time = \" + remoteMessage.getSentTime());\n sendNotification(remoteMessage.getNotification().getTitle(), remoteMessage.getNotification().getBody(), data);\n }\n } else {\n // for background\n if (remoteMessage.getData().size() > 0) {\n switch (remoteMessage.getData().get(\"type\")) {\n case \"alarm_alert\":\n String[] request_link = remoteMessage.getData().get(\"api\").split(\"\\\\?\");\n new JSONResponse(this, request_link[0], request_link[1], new JSONResponse.onComplete() {\n @Override\n public void onComplete(JSONObject json) {\n Log.i(TAG, \"onComplete: alarm_alert data json = \" + json);\n try {\n JSONArray jsonArr = json.getJSONArray(\"data\");\n for (int i = 0; i < jsonArr.length(); i++) {\n JSONObject obj = jsonArr.getJSONObject(i);\n String time = obj.getString(\"day\") + \" \" + obj.getString(\"time\");\n String task = \"\";\n for (int j = 0; j < obj.getJSONArray(\"task\").length(); j++) {\n if (j != 0) {\n task += \",\";\n }\n task += obj.getJSONArray(\"task\").getString(j);\n }\n String title = obj.getString(\"stage\");\n Log.i(TAG, \"onComplete: alarm_alert time = \" + time);\n Log.i(TAG, \"onComplete: alarm_alert task = \" + task);\n String value = obj.getString(\"value\");\n String[] a = time.split(\" \");\n String requestCode = a[0].replace(\"-\", \"\") + a[1].replace(\":\", \"\");\n requestCode = requestCode.substring(2, 12);\n int rc = Integer.parseInt(requestCode);\n Log.i(TAG, \"onComplete: requestCode = \" + rc);\n long delta = calculateDelay(time);\n boolean enable = value.equals(\"on\");\n if (delta >= 0) {\n sendMsgForAlertSystem(title, task, delta, rc, enable);\n }\n }\n } catch (JSONException e) {\n e.printStackTrace();\n }\n }\n });\n break;\n case \"nutrition\":\n String[] request_link1 = remoteMessage.getData().get(\"api\").split(\"\\\\?\");\n Log.i(TAG, \"onMessageReceived: \" + request_link1);\n new JSONResponse(this, request_link1[0], request_link1[1], new JSONResponse.onComplete() {\n @Override\n public void onComplete(JSONObject json) {\n Log.i(TAG, \"onComplete: json = \" + json);\n try {\n int rc = json.getInt(\"rc\");\n if (rc == 0) {\n JSONArray data = json.getJSONObject(\"data\").getJSONArray(\"data\");\n Log.i(TAG, \"onComplete: json data = \" + data);\n for (int i = 0; i < data.length(); i++) {\n JSONObject obj = data.getJSONObject(i);\n Log.i(TAG, \"onComplete: json data item = \" + obj);\n String title = obj.getString(\"title\");\n String time = obj.getString(\"time\");\n String content = \"\";\n JSONArray food = obj.getJSONArray(\"food\");\n JSONArray quantity = obj.getJSONArray(\"quantity\");\n for (int j = 0; j < food.length(); j++) {\n content += food.getString(j) + \" \" + quantity.getString(j);\n if (j < food.length() - 1) {\n content += \",\";\n }\n }\n Log.i(TAG, \"onComplete: json data content = \" + content);\n String today = getRealFormat(\"yyyy-MM-dd\").format(new Date());\n if (time != null && isTime(time) && !title.equals(\"\") && !content.equals(\" \")) {\n long delta = calculateDelay(today + \" \" + (time.length() < 6 ? time + \":00\" : time));\n delta -= delta - 10 * 60 * 1000; // 10min before\n String requestCode = today.replace(\"-\", \"\") + i;\n int resC = Integer.parseInt(requestCode.substring(2));\n if (delta >= 0) {\n// sendMsgForNutrition(title, content, time, delta, resC, i);\n sendMsgFor(API.ACTION_NUTRITION, title, content, time, delta, resC, i);\n } else {\n delta = delta + 24 * 60 * 60 * 1000;\n Date tmp = new Date();\n tmp.setTime(new Date().getTime() + 24 * 60 * 60 * 1000);\n String tomorrow = getRealFormat(\"yyyy-MM-dd\").format(tmp);\n requestCode = tomorrow.replace(\"-\", \"\") + i;\n resC = Integer.parseInt(requestCode.substring(2));\n// sendMsgForNutrition(title, content, time, delta, resC, i);\n sendMsgFor(API.ACTION_NUTRITION, title, content, time, delta, resC, i);\n }\n }\n }\n }\n } catch (JSONException e) {\n e.printStackTrace();\n }\n }\n });\n break;\n case \"client_alert\":\n String[] request_link2 = remoteMessage.getData().get(\"api\").split(\"\\\\?\");\n Log.i(TAG, \"onMessageReceived: \" + request_link2);\n new JSONResponse(this, request_link2[0], request_link2[1], new JSONResponse.onComplete() {\n @Override\n public void onComplete(JSONObject json) {\n Log.i(TAG, \"onComplete: json = \" + json);\n try {\n int rc = json.getInt(\"rc\");\n if (rc == 0) {\n JSONArray data = json.getJSONObject(\"data\").getJSONArray(\"data\");\n Log.i(TAG, \"onComplete: json data = \" + data);\n for (int i = 0; i < data.length(); i++) {\n JSONObject obj = data.getJSONObject(i);\n Log.i(TAG, \"onComplete: json data item = \" + obj);\n String title = obj.getString(\"title\");\n String time = obj.getString(\"time\");\n String content = \"\";\n JSONArray contentArr = obj.getJSONArray(\"content\");\n for (int j = 0; j < contentArr.length(); j++) {\n content += contentArr.getString(j);\n if (j < contentArr.length() - 1) {\n content += \",\";\n }\n }\n Log.i(TAG, \"onComplete: json data content = \" + content);\n String today = getRealFormat(\"yyyy-MM-dd\").format(new Date());\n Log.i(TAG, \"onComplete: isTime = \" + isTime(time));\n if (time != null && isTime(time) && !title.equals(\"\") && !content.equals(\" \")) {\n long delta = calculateDelay(today + \" \" + (time.length() < 6 ? time + \":00\" : time));\n delta -= delta - 10 * 60 * 1000; // 10min before\n String requestCode = today.replace(\"-\", \"\") + (i + 10);\n int resC = Integer.parseInt(requestCode.substring(2));\n if (delta >= 0) {\n// sendMsgForClientAlert(title, content, time, delta, resC, i);\n sendMsgFor(API.ACTION_CLIENT_ALERT, title, content, time, delta, resC, i);\n } else {\n delta = delta + 24 * 60 * 60 * 1000;\n Date tmp = new Date();\n tmp.setTime(new Date().getTime() + 24 * 60 * 60 * 1000);\n String tomorrow = getRealFormat(\"yyyy-MM-dd\").format(tmp);\n requestCode = tomorrow.replace(\"-\", \"\") + (i + 10);\n resC = Integer.parseInt(requestCode.substring(2));\n// sendMsgForClientAlert(title, content, time, delta, resC, i);\n sendMsgFor(API.ACTION_CLIENT_ALERT, title, content, time, delta, resC, i);\n }\n }\n }\n }\n } catch (JSONException e) {\n e.printStackTrace();\n }\n }\n });\n break;\n }\n }\n }\n }", "@Override\n public void onReceive(Context context, Intent intent) {\n\n Uri alarmsound = RingtoneManager.getDefaultUri(RingtoneManager.TYPE_ALARM);\n\n Intent intent1 = new Intent(context, Reminderku.class);\n intent1.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n\n TaskStackBuilder taskStackBuilder = TaskStackBuilder.create(context);\n taskStackBuilder.addParentStack(Reminderku.class);\n taskStackBuilder.addNextIntent(intent1);\n\n PendingIntent intent2 = taskStackBuilder.getPendingIntent(1,PendingIntent.FLAG_UPDATE_CURRENT);\n\n NotificationCompat.Builder builder = new NotificationCompat.Builder(context);\n\n NotificationChannel channel = null;\n if (android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.O) {\n channel = new NotificationChannel(\"my_channel_01\",\"hello\", NotificationManager.IMPORTANCE_HIGH);\n }\n\n Notification notification = builder.setContentTitle(\"KitaFit\")\n .setContentText(intent.getStringExtra(\"Message\")).setAutoCancel(true)\n .setSound(alarmsound).setSmallIcon(R.mipmap.ic_launcher_round)\n .setContentIntent(intent2)\n .setChannelId(\"my_channel_01\")\n .build();\n\n NotificationManager notificationManager = (NotificationManager) context.getSystemService(Context.NOTIFICATION_SERVICE);\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {\n notificationManager.createNotificationChannel(channel);\n }\n notificationManager.notify(1, notification);\n\n }", "private void deleteCancel(Alarm alarm) {\n // if user click delete or cancel alarm the pendingIntent also to be canceled by AlarmManager\n // this PendingIntent is canceled based on alarm's ID was set for it, the pendingIntent is\n // going to be canceled must be same with the one was made based on it'id and intent also\n // where the context is.\n AlarmManager alarmManager = (AlarmManager) getSystemService(ALARM_SERVICE);\n // get alarm id\n int alarmId = (int) alarm.getId();\n // create intent\n Intent intent = new Intent(AlarmsetActivity.this, AlarmReceiver.class);\n // this retrieve the pendingIntent was set\n PendingIntent alarmIntent = PendingIntent.getBroadcast(AlarmsetActivity.this, alarmId, intent, 0);\n // cancel this pendingIntent\n alarmManager.cancel(alarmIntent);\n }", "public PendingIntent getLaunchPendingIntent() {\n }", "public void setNextAlarm(){\n }", "@Override\n public void onReceive(Context context, Intent intent) {\n\n if (intent.getAction() != null && context != null) {\n if (intent.getAction().equalsIgnoreCase(Intent.ACTION_BOOT_COMPLETED)) {\n // Set the alarm here.\n Log.d(TAG, \"onReceive: BOOT_COMPLETED\");\n LocalData localData = new LocalData(context);\n NotificationScheduler.setReminder(context, AlarmReceiver.class, localData.get_hour(), localData.get_min());\n return;\n }\n }\n\n Log.d(TAG, \"onReceive: \");\n String tempMain = PreferenceUtil.getInstance().getStringValue(Constants.TEMP,\"\");\n //Trigger the notification\n NotificationScheduler.showNotification(context, SettingsActivity.class,\n \"WeatherApp\", \"Current Temperature: \"+tempMain);\n\n }", "@Override\n public void onItemClick(AdapterView<?> adapterView, View view, int pos, long id) {\n Intent intent = new Intent(getApplicationContext(), Detail.class);\n // intent.putExtra(\"i\",listAlarm.i);\n startActivity(intent);\n\n\n\n }", "@Override\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\t\tctx=this;\n\t\tString action= (String)getIntent().getExtras().get(\"DO\");\n\t\tnotificationaction();\n\t}", "@Override\n public void onReceive(Context context, Intent intent) {\n int msgType = intent.getIntExtra(\"NOTIF_TYPE\", 0); // grabs the notification message type\n int uniqueID = intent.getIntExtra(\"ID\", 0); // grabs the ID\n\n String msgExpire = \"Your food has expired!\";\n String msgSoonExpire = \"Your food is about to expire!\";\n\n if (msgType == 0) {\n createNotification(context, \"Fridge Manager\", msgExpire, \"Alarm\", uniqueID);\n }\n else {\n createNotification(context, \"Fridge Manager\", msgSoonExpire, \"Alarm\", uniqueID);\n }\n }", "@SuppressLint(\"LongLogTag\")\n @Override\n public void onReceive(Context context, Intent intent) {\n Toast.makeText(context.getApplicationContext(), \"Alarm Fired\", Toast.LENGTH_SHORT).show();\n Log.d(\"Alarm Receiver\", \"Alarm Receiver Triggered\");\n //Log.i(\"intent name\",intent.toString());\n\n alarmManager = (AlarmManager) context.getSystemService(context.ALARM_SERVICE);\n\n Intent alarmReceiverIntent = new Intent(context.getApplicationContext(),\n AlarmBroadcastReceiver.class);\n PendingIntent alarmIntent = PendingIntent.getBroadcast(context, 0, alarmReceiverIntent, 0);\n\n alarmManager.set(AlarmManager.RTC_WAKEUP, System.currentTimeMillis() + 30000, alarmIntent);\n\n\n }", "private void getIntentDataAndSetTextView() {\n\t\tBundle bagObtained= this.getIntent().getExtras();\r\n\t\tlong startTime= bagObtained.getLong(\"startTime\");\r\n\t\tlong endTime= bagObtained.getLong(\"endTime\");\r\n\t\t\r\n\t\t\r\n\t\tString callingNumber=bagObtained.getString(\"callingNumber\");\r\n\t\t\r\n\t\t\r\n\t\tString calltype=bagObtained.getString(\"status\");\r\n\t\t\r\n\t\tCalendar mycal= Calendar.getInstance();\r\n\t\tmycal.setTimeInMillis(startTime);\r\n\t\tDate callTiming=mycal.getTime();\r\n\t\t\r\n\t\t\r\n\t\tdouble callduration= (endTime-startTime)/1000;\t\t//this is in milliseconds so conversion needed\r\n\t\t@SuppressWarnings(\"deprecation\")\r\n\t\tString calltime=callTiming.getHours() + \" \"+callTiming.getMinutes() ;\r\n\t\t@SuppressWarnings(\"deprecation\")\r\n//LOGIC\r\n\t\t//getyear() brings the count starting from 1900, getMonth() brings 0 indexed months\r\n\t\t\r\n\t\tString calldate=callTiming.getYear()+1900 + \" \"+((int) callTiming.getMonth()+1) + \" \"+callTiming.getDate();\r\n\t\t\r\n\t\tLog.d(\"checkpoint\",calldate);\r\n\t\tLog.d(\"checkpoint\",calltime);\r\n\t\t\r\n\t\ttvTimeShow.setText(callingNumber+\"(\"+calltype+\") called you at \"+mycal.getTime()+\"\\nTotal call time is: \"+callduration+\"seconds \\n StartTime was:::\"+startTime+\"\\n end time was::::\"+endTime);\r\n\t\t\r\n\t\t/*\r\n\t\t * What if we insert this information in the database and leave\r\n\t\t * This information is a one row and will take split second and hence we wont do much on the background too\r\n\t\t * \r\n\t\t * \r\n\t\t * We also need to check the logic for alerting the user at this point\r\n\t\t * if the alert has to be made then we need to set the pending intent and the notification at this point too\r\n\t\t */\r\n\t\t\r\n\t\tLocalDb ldb= new LocalDb(this.getApplicationContext());\r\n\t\tldb.insertCallDetail(callingNumber, calltime, calldate, calltype, callduration);\r\n\t\tldb.close();\r\n\t\t\r\n\t}", "@Override\n protected void onHandleIntent(Intent intent) {\n retrieveValues();\n Resources res = getResources();\n\n if(!swearNegative && !swearNeutral && !swearPositive){\n SwearNotification.notify(this, res.getString(R.string.noTypeSelected) + \"No swears will follow!\", -1);\n return;\n }\n\n negative = res.getStringArray(R.array.negative);\n neutral = res.getStringArray(R.array.neutral);\n positive = res.getStringArray(R.array.positive);\n\n rand = new Random();\n\n swearTimer = new Timer(\"swearTimer\", true);\n swearTimer.schedule(new swearTask(), getDelay());\n// SwearNotification.notify(context,\"minTime:\"+Integer.toString(minTime) + \", maxTime:\"+Integer.toString(maxTime)+\",delay:\"+Long.toString(getDelay()),-1);\n\n }", "public void viewAlarm() {\n\t\tfinal Dialog dialog = new Dialog(this);\n\t\tdialog.setContentView(R.layout.date_time_picker);\n\t\tdialog.setTitle(\"Set Reminder\");\n\t\tButton saveDate = (Button)dialog.findViewById(R.id.btnSave);\n\t\tsaveDate.setOnClickListener(new OnClickListener() {\n\t\t\t@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tdialog.dismiss();\n\t\t\t\tsetAlarm(dialog);\n\t\t\t}\n\t\t});\n\t\tdialog.show();\n\t}", "public static void updateAlarm(Context context) {\n\n\t\tPreferences pref = new Preferences(context);\n\t\tWordOfTheDayTime prefTime = pref.getWordOfTheDayTime();\n\t\tint prefHour = prefTime.getHours();\n\t\tint prefMinutes = prefTime.getMinutes();\n\n\t\tupdateAlarm(context, prefHour, prefMinutes);\n\t}", "@Override\n public void onReceive(Context context, Intent intent){\n NotificationCompat.Builder builder = new NotificationCompat.Builder(context, \"myCalendar\")\n .setSmallIcon(R.mipmap.ic_launcher_round)\n .setContentTitle(\"Calendar App\")\n .setContentText(\"Event Reminder!\")\n .setAutoCancel(true)\n .setPriority(NotificationCompat.PRIORITY_DEFAULT);\n\n NotificationManagerCompat notificationManager = NotificationManagerCompat.from(context);\n\n notificationManager.notify(154, builder.build()); //building the notification with the info\n }" ]
[ "0.68789536", "0.6454668", "0.62533337", "0.62268937", "0.6175574", "0.60304993", "0.59979236", "0.59830445", "0.5910246", "0.58280444", "0.5818592", "0.5787539", "0.5757142", "0.5753588", "0.574286", "0.5734379", "0.5698514", "0.5674794", "0.5670967", "0.56584257", "0.56547844", "0.5632159", "0.5630009", "0.5597051", "0.5585996", "0.557675", "0.5572083", "0.5552633", "0.55486524", "0.55482394", "0.55336416", "0.55190873", "0.54969925", "0.549671", "0.5493195", "0.54901224", "0.5479124", "0.5468111", "0.5459454", "0.54586583", "0.54545146", "0.54496866", "0.54225105", "0.5418351", "0.5395686", "0.5371221", "0.5366883", "0.5359323", "0.5352117", "0.53480035", "0.53420484", "0.5337099", "0.5325681", "0.52999055", "0.5299542", "0.52762765", "0.52707946", "0.52599734", "0.5255032", "0.52524376", "0.5250132", "0.5245818", "0.5245755", "0.5243688", "0.5241386", "0.5237979", "0.5234573", "0.5231186", "0.5224432", "0.5223905", "0.5222082", "0.52180845", "0.5216605", "0.52131116", "0.5209718", "0.52072734", "0.5202581", "0.51771116", "0.5168462", "0.51664644", "0.5163197", "0.5161492", "0.51511145", "0.51387495", "0.51363647", "0.5134847", "0.51204824", "0.5118335", "0.5117644", "0.5115003", "0.5102936", "0.50976413", "0.5096848", "0.5088698", "0.5088555", "0.50838804", "0.5066577", "0.504802", "0.50470644", "0.5028934" ]
0.59400785
8
/ When I send a GET request to REST API URL Then HTTP Status Code should be 200 And Response format should be "application/json" And "employee_name" should be "Ashton Cox" And "employee_salary" should be 86000 And "employee_age" should be 66 And "status" should be "success" And "message" should be "Successfully! Record has been fetched." Note: For Base URL use spec04 Note: For actual data use JsonPath Note: For expected data use Pojo Note: Use Hard Assertion(2 ways) and Soft Assertion
@Test public void getPractice() { //1.Step: Set Endpoint by using pathParam() or queryParam() spec04.pathParams("employee", "employee", "id", 3); //2.Step: Store expected data by using Pojo Data data = new Data(3, "Ashton Cox", 86000, 66, ""); PojoPractice03 expectedData = new PojoPractice03("success", data, "Successfully! Record has been fetched."); //3.Step: Send GET Request to the Endpoint Response response = given().contentType(ContentType.JSON).spec(spec04).when().get("/{employee}/{id}"); response.prettyPrint(); //4.Step Hard Assertion by using body() response. then(). assertThat(). statusCode(200). contentType(ContentType.JSON). body("data.employee_name", Matchers.equalTo(data.getEmployeeName()), "data.employee_salary", Matchers.equalTo(data.getEmployeeSalary()), "data.employee_age", Matchers.equalTo(data.getEmployeeAge()), "data.profile_image", Matchers.equalTo(data.getProfileImage()), "status", Matchers.equalTo(expectedData.getStatus()), "message", Matchers.equalTo(expectedData.getMessage())); //5.Step Hard Assertion by using assertEquals(), assertTrue(), assertFalse() JsonPath json = response.jsonPath(); assertEquals(data.getEmployeeName(), json.getString("data.employee_name")); assertEquals(data.getEmployeeSalary(),json.get("data.employee_salary")); assertEquals(data.getEmployeeAge(), json.get("data.employee_age")); assertEquals(data.getProfileImage(), json.getString("data.profile_image")); assertEquals(expectedData.getStatus(), json.getString("status")); assertEquals(expectedData.getMessage(), json.getString("message")); //6. Step: Soft Assertion SoftAssert softAssert = new SoftAssert(); softAssert.assertEquals(json.getString("data.employee_name"), data.getEmployeeName()); softAssert.assertEquals(json.get("data.employee_salary"), data.getEmployeeSalary()); softAssert.assertEquals(json.get("data.employee_age"),data.getEmployeeAge()); softAssert.assertEquals(json.getString("data.profile_image"),data.getProfileImage()); softAssert.assertEquals(json.getString("status"),expectedData.getStatus()); softAssert.assertEquals(json.getString("message"),expectedData.getMessage()); softAssert.assertAll(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n //1. adim URL i olusturmak\n public void get01(){\n spec03.pathParam(\"employeePath\",\"employees\");\n\n // 2. adim test datalarini olusturmak\n\n // 3. adim Request olusturma\n Response response = given().\n spec(spec03).\n when().\n get(\"/{employeePath}\");\n // response.prettyPrint();\n // 1. yol EqualTo-- Body ile assert ediyoruz\n response.\n then().\n assertThat().\n statusCode(200).\n body(\"data.employee_name[4]\",equalTo(\"Airi Satou\"),\n \"data[5].employee_salary\",equalTo(\"372000\"),\n \"data.id\",hasSize(24),\n \"data.employee_name\",hasItem(\"Rhona Davidson\"),\n \"data.employee_age\",hasItems(\"21\", \"23\", \"61\"));\n\n // 2. yol Hard Assertion\n // JsonPath ile\n JsonPath json = response.jsonPath();\n Assert.assertEquals(\"Airi Satou\",json.getString(\"data.employee_name[4]\"));\n Assert.assertEquals(\"372000\",json.getString(\"data[5].employee_salary\"));\n // System.out.println(json.getList(\"data.id\"));\n Assert.assertEquals(24,json.getList(\"data.id\").size());\n // System.out.println(json.getList(\"data.employee_name\"));\n Assert.assertTrue(json.getList(\"data.employee_name\").contains(\"Rhona Davidson\"));\n\n List<String> yasListesi = new ArrayList<>();\n yasListesi.add(\"21\");\n yasListesi.add(\"23\");\n yasListesi.add(\"61\");\n Assert.assertTrue(json.getList(\"data.employee_age\").containsAll(yasListesi));\n\n\n\n }", "@Test\r\n\tpublic void test_getEmployeeById() {\r\n\t\tgiven()\r\n\t\t\t\t.contentType(ContentType.JSON)//\r\n\t\t\t\t.queryParam(\"id\", \"2\")//\r\n\t\t\t\t.when()//\r\n\t\t\t\t.get(\"/api/v1/employee\")//\r\n\t\t\t\t.then()//\r\n\t\t\t\t.log()//\r\n\t\t\t\t.body()//\r\n\t\t\t\t.statusCode(200);\r\n\t}", "@Test\n public void verifyFirstName(){\n given().accept(ContentType.JSON)\n .when().get(\"http://34.223.219.142:1212/ords/hr/employees/100\")\n .then().assertThat().statusCode(200)\n .and().contentType(ContentType.JSON)\n .and().assertThat().body(\"first_name\", Matchers.equalTo(\"Steven\"))\n .and().assertThat().body(\"employee_id\",Matchers.equalTo(\"100\"));\n\n }", "@Test\r\n\tpublic void test_getAllEmployees() {\r\n\t\tgiven()\r\n\t\t\t\t.contentType(ContentType.JSON)//\r\n\t\t\t\t// .pathParam(\"page\", \"0\")//\r\n\t\t\t\t.when()//\r\n\t\t\t\t.get(\"/api/v1/employees\")//\r\n\t\t\t\t.then()//\r\n\t\t\t\t.log()//\r\n\t\t\t\t.body()//\r\n\t\t\t\t.statusCode(200)//\r\n\t\t\t\t.body(\"number\", equalTo(0))//\r\n\t\t\t\t.body(\"content.size()\", equalTo(10));\r\n\r\n\t}", "@Test\n\tpublic void get01() {\n\t\tResponse response = given().\n\t\t\t\t spec(spec02).\n\t\t\t\t when().\n\t\t\t\t get();\n\t\tresponse.prettyPrint();\n\t\t\n\t\tresponse.\n\t\t then().\n\t\t assertThat()\n\t\t .statusCode(200);\n\t\t\n\t\tJsonPath json = response.jsonPath();\n\t\tSoftAssert softAssert = new SoftAssert();\n\t\t\n\t//10 dan buyuk tum id leri console a yazdir.\n\t\tList<String> idList = json.getList(\"data.findAll{Integer.valueOf(it.id)>10}.id\");\n\t\tSystem.out.println(idList);\n\t\t\n\t//verify\n\t\tsoftAssert.assertEquals(idList.size(), 14, \"Eleman sayisi istenen gibi degil\");\n\t\t\n\t\n\t//30 dan kucuk tum yaslari console a yazdir\n\t\tList<String> ageList = json.getList(\"data.findAll{Integer.valueOf(it.employee_age)<30}.employee_age\");\n\t\tSystem.out.println(ageList);\n\t\t\n\t\t\n\t// Assert that maximum age is 23\n\t\tCollections.sort(ageList);\n\t\tsoftAssert.assertTrue(ageList.get(ageList.size()-1).equals(\"23\"), \"Yas istenen gibi degil\");\n\t\t\n\t\t\n\t//Print all employee names whose salaries are greater than 350000\n\t\tList<String> nameList = json.getList(\"data.findAll{Integer.valueOf(it.employee_salary)>350000}.employee_name\");\n\t\tSystem.out.println(nameList);\n\t\t\n\t\t\n\t//Assert that Charde Marshall is one of the employees whose salary is greater than 350000\t\n\t\tsoftAssert.assertTrue(nameList.contains(\"Charde Marshall\"));\n\t\t\n\t\t\n\t\t\n\t\tsoftAssert.assertAll();\n\t}", "@Test\n\tpublic void testWithJsonPath() {\n\t\t\t\t\n\t\tResponse response = given().accept(ContentType.JSON)\n\t\t.and().pathParam(\"id\", 110)\n\t\t.when().get(ConfigurationReader.getProperty(\"hrapp.baseurl\")+\"/employees/{id}\");\n\t\t\n\t\tJsonPath json = response.jsonPath(); //get json body and assign to jsonPath object\n\t\t//we are assiging whole response to json object so we can easyly reach and use it \n\t\t\n\t\tSystem.out.println(json.getInt(\"employee_id\"));\n\t\tSystem.out.println(json.getString(\"first_name\"));\n\t\tSystem.out.println(json.getString(\"job_id\"));\n\t\tSystem.out.println(json.getInt(\"salary\"));\n\t\tSystem.out.println(json.getString(\"links[0].href\")); //get specific element from array \n\t \n\t\t//assign all hrefs into a list of strings \n\t\tList<String> hrefs = json.getList(\"links.href\");\n\t\t\n\t\t//everything in arraylist \n\t System.out.println(hrefs);\n\t \n\t //one by one \n\t\tfor(String href:hrefs) {\n\t\t\tSystem.out.println(href);\n\t\t}\n\t}", "@Test\n\tpublic void getTest02() {\n\n\t\tResponse response = given().spec(spec02).when().get();\n\n\t\tresponse.prettyPrint();\n\t\t\n\t\tSoftAssert softAssert = new SoftAssert();\n\n\t\tJsonPath json = response.jsonPath();\n\t\tSystem.out.println(json.getString(\"data.employee_name\"));\n\t\t\n\t\tSystem.out.println(json.getString(\"data[0].employee_name\"));\n\t\tsoftAssert.assertEquals(json.getString(\"data[0].employee_name\"), \"Tiger Nixon\",\"Employee name did not match\");\n\n\t\tSystem.out.println(json.getString(\"data[1].employee_salary\"));\n\t\tsoftAssert.assertEquals(json.getString(\"data[1].employee_salary\"), \"170750\",\"Salary did not match\");\n\n\t\tsoftAssert.assertAll();\n\t\tresponse.then().assertThat().statusCode(200);\n\t}", "@Test\n public void test1() throws JsonProcessingException {\n JSONObject payload = getJsonObject(PAYLOAD_BASEPATH + \"saveEmployee.json\");\n\n payload.put(\"email\", RandomUtils.generateRandomString(5).concat(\"@gmail.com\"));\n payload.put(\"status\", fetchDataFromDataFile(\"service1Data\", \"createUser\", \"Value2\"));\n payload.put(\"name\", fetchDataFromDataFile(\"service1Data\", \"createUser\", \"Value3\"));\n payload.put(\"gender\", fetchDataFromDataFile(\"service1Data\", \"createUser\", \"Value4\"));\n\n log.info(\"api request is {} \", payload);\n Response response = given().headers(\"Authorization\", \"Bearer e85170d9b952bb8a12603f87d6c8f525946b4906c311b83eeec703bd0c1cbea0\").filter(new ErrorLoggingFilter(errorCapture)).contentType(ContentType.JSON).body(payload.toString()).log().everything().when().post(Constants.BASEPATH.concat(Constants.CREATE_USER));\n verifyStatusCode(response);\n verifyResponseBody(response, \"201\");\n// dbAssist.responseValidation(response);\n log.error(\"hey {} \", errorWriter.toString().toUpperCase());\n log.info(\"response is {}\", response.prettyPrint());\n }", "@Test\n public void test1() {\n\n Student student = given().accept(ContentType.JSON)\n .pathParam(\"id\", 23401)\n .when()\n .get(\"http://api.cybertektraining.com/student/{id}\")\n .then().statusCode(200)\n .and().contentType(\"application/json;charset=UTF-8\")\n .and().header(\"Content-Encoding\", equalTo(\"gzip\"))\n .and().header(\"Date\", notNullValue()).extract().jsonPath().getObject(\"students[0]\", Student.class);\n\n System.out.println(\"student.getFirstName() = \" + student.getFirstName());\n System.out.println(\"student.getBatch() = \" + student.getBatch());\n System.out.println(\"student.getSection() = \" + student.getSection());\n System.out.println(\"student.getContact().getEmailAddress() = \" + student.getContact().getEmailAddress());\n System.out.println(\"student.getAddress().getState() = \" + student.getCompany().getAddress().getState());\n System.out.println(\"student.getAddress().getZipCode() = \" + student.getCompany().getAddress().getZipCode());\n\n System.out.println(\"student.getCompany().getCompanyName() = \" + student.getCompany().getCompanyName());\n\n String expFirstName = \"Vera\";\n int expBatch = 14;\n int expSection = 12;\n String expEmail = \"[email protected]\";\n String expCompanyName = \"Cybertek\";\n String expState = \"IL\";\n int expZipCode = 60606;\n\n assertThat(expFirstName, equalTo(student.getFirstName()));\n assertThat(expBatch, equalTo(student.getBatch()));\n assertThat(expSection, equalTo( student.getSection()));\n assertThat(expEmail, equalTo(student.getContact().getEmailAddress()));\n assertThat(expCompanyName, equalTo(student.getCompany().getCompanyName()));\n assertThat(expState, equalTo(student.getCompany().getAddress().getState()));\n assertThat(expZipCode, equalTo(student.getCompany().getAddress().getZipCode()));\n\n\n\n\n\n\n}", "@Test\n public void testWithJsonPath(){\n Map<String, Integer> rParamMap = new HashMap<>();\n rParamMap.put(\"limit\", 100);\n\n //we are getting the response and assigning it to this variable\n Response response = given().accept(ContentType.JSON) //header\n .and().params(rParamMap) //query param/request param\n .and().pathParams(\"employee_id\", 177) //path param\n .when().get(ConfigurationReader.getProperty(\"hrapp.baseresturl\")+\"/employees/{employee_id}\");\n\n //here we are saying get json body and assign it yo jsonpath object\n JsonPath json = response.jsonPath();\n\n System.out.println(json.getInt(\"employee_id\"));\n System.out.println(json.getString(\"last_name\"));\n System.out.println(json.getString(\"job_id\"));\n System.out.println(json.getInt(\"salary\"));\n //we put index to links, because links is an array, but href is just a value of the array\n System.out.println(json.getString(\"links[0].href\")); //to get only the first link\n //we use upper statement to get specific element from array\n\n //assign all href into a List of strings\n List<String> hrefs = json.getList(\"links.href\");\n System.out.println(hrefs);\n }", "@Test\n\tpublic void postCallMethod() throws JsonGenerationException, JsonMappingException, IOException {\n\t\tpostMethod = new RestClient();\n\n\t\t// Header Value to Pass with GET Method (URI is already ready in before Method)\n\t\tHashMap<String, String> header = new HashMap<String, String>();\n\t\theader.put(\"Content-Type\", \"application/json\");\n\n\t\t// Create Java Object (POJO) in which data is stored\n\t\tString name = \"Manish\" + TestUtil.getCurrentDateTimeStamp();\n\t\tSystem.out.println(\"Name: \" + name);\n\t\tEmployee employee = new Employee(name, \"10000\", \"25\", null);\n\n\t\t// Convert POJO into JSON Object\n\t\tObjectMapper mapper = new ObjectMapper();\n\t\tmapper.writeValue(new File(System.getProperty(\"user.dir\") + \"/src/main/java/employee.json\"), employee);\n\n\t\t// java Object to JSON in string (Marshelling)\n\t\tString usersJsonString = mapper.writeValueAsString(employee);\n\n\t\t// POST method is called using URI,JSON body and headers and response is saved\n\t\t// in variable\n\t\tresponseUnderPostRequest = postMethod.post(URI, usersJsonString, header);\n\n\t\t// Output of POST call\n\t\t// Validation part (For POST method output is 1.StatusCode,2.Response\n\t\t// JSON,3.Header)\n\t\t// 1. Retrieve Response Status Code and Assert it\n\t\tint StatusCode = responseUnderPostRequest.getStatusLine().getStatusCode();\n\t\tAssert.assertEquals(StatusCode, RESPONSE_STATUS_CODE_200);\n\n\t\t// 2.Retrieve Response JSON Object as a String\n\t\tString jsonString = EntityUtils.toString(responseUnderPostRequest.getEntity(), \"UTF-8\");\n\n\t\t/*\n\t\t * JSONObject jsonObject=new JSONObject(jsonString);\n\t\t * System.out.println(jsonObject);\n\t\t */\n\n\t\t// Convert JSON Object to java object POJO (Unmarshelling) and Assert with\n\t\t// Previous JAVA Object POJO\n\t\tEmployee responseUser = mapper.readValue(jsonString, Employee.class);\n\t\tAssert.assertTrue(responseUser.getName().equals(employee.getName()));\n\t}", "@Test\n public void testWithPathParameters(){\n given().accept(ContentType.JSON)\n .and().params(\"limit\",100)\n .and().pathParams(\"employee_id\", 110)\n .when().get(ConfigurationReader.getProperty(\"hrapp.baseresturl\")+\"/employees/{employee_id}\")\n .then().assertThat().statusCode(200)\n .and().assertThat().contentType(ContentType.JSON)\n .and().assertThat().body(\"employee_id\", equalTo(110),\n \"first_name\", equalTo(\"John\"),\n \"last_name\", equalTo(\"Chen\"),\n \"email\", equalTo(\"JCHEN\") );\n }", "@Test\n public void simpleGet(){\n when()\n .get(\"http:://34.223.219.142:1212/ords/hr/employees\")\n .then().statusCode(200);\n\n }", "@Test //make sure it comes from testNG\n public void testWithQueryParameterAndList(){\n given().accept(ContentType.JSON)\n .and().params(\"limit\",100)\n .when().get(ConfigurationReader.getProperty(\"hrapp.baseresturl\")+\"/employees\")\n .then().assertThat().statusCode(200)\n .and().assertThat().contentType(ContentType.JSON)\n .and().assertThat().body(\"items.employee_id\", hasSize(100));\n }", "@Test\n public void testJsonPathWithLists(){\n Map<String, Integer> rParamMap = new HashMap<>();\n rParamMap.put(\"limit\", 100);\n\n\n Response response = given().accept(ContentType.JSON) //header\n .and().params(rParamMap) //query param/request param\n .when().get(ConfigurationReader.getProperty(\"hrapp.baseresturl\")+\"/employees\");\n\n Assert.assertEquals(response.statusCode(),200); //to check status code\n\n //First way to use JsonPath\n JsonPath json = response.jsonPath();\n\n //Second way\n //JsonPath json = new JsonPath(response.asString());\n\n //Third way\n //JsonPath json = new JsonPath(new File(FilePath.json));\n\n //get all employee ids into ArrayList\n List<Integer> empIds = json.getList(\"items.employee_id\");\n System.out.println(empIds);\n //assert that there are 100 employee ids\n Assert.assertEquals(empIds.size(), 100);\n\n //get all employee emails and assign into ArrayList\n List<String> empEmails = json.getList(\"items.email\");\n System.out.println(empEmails);\n Assert.assertEquals(empEmails.size(), 100);\n\n //get all employee ids that are greater than 150\n List<Integer> empIdsMoreThan150 = json.getList(\"items.findAll{it.employee_id>150}.employee_id\");\n System.out.println(empIdsMoreThan150);\n\n //get all employees last name whose salary > 15000\n List<String> empSalaryMoreThan7000 = json.getList(\"items.findAll{it.salary>15000}.last_name\");\n System.out.println(empSalaryMoreThan7000);\n\n //get data from saved JSON file\n JsonPath jsonFromFile = new JsonPath(new File(\"/Users/asselkassymbekova/Desktop/employees.json\"));\n List<String> empEmails1 = jsonFromFile.getList(\"items.email\");\n System.out.println(empEmails1);\n\n }", "@Test(enabled=true)\npublic void getRequest() {\n\t\tString url = \"https://reqres.in/api/users?page=2\";\n\t\t\n\t\t//create an object of response class\n\t\t\n\t\t//Restassured will send get request to the url and store response in response object\n\t\tResponse response = RestAssured.get(url);\n\t\t\n\t\t//We have to put assertion in response code and response data\n\t\tAssert.assertEquals(response.getStatusCode(), 200 , \"Response code Mismatch\");\n\t\t\n\t\tint total_pages = response.jsonPath().get(\"total_pages\");\n\t\tAssert.assertEquals(total_pages, 2 , \"Total Pages value Mismatch\");\n \n}", "@Test \n\tpublic void testJsonPathWithLists() {\n\t\n\t\tMap<String,Integer> requestParamMaps=new HashMap<>();\n\t\t requestParamMaps.put(\"limit\", 100);\n\t\t\n\t\t\tResponse response = given().accept(ContentType.JSON).and().params(requestParamMaps)\n\t\t\t.when().get(ConfigurationReader.getProperty(\"hrapp.baseurl\")+\"/employees/\");\n\t\t\t\n\t\t\tassertEquals(response.statusCode(), 200);\n\t\t\t\n\t\t\tJsonPath json = response.jsonPath();\n\t\t\t//get all employee ids into arratlist\n\t\t\tList<Integer> empIDs = json.getList(\"items.employee_id\");\n\t\t\tSystem.out.println(empIDs);\n\t\t\t//assert that there are 100 emp ids\n\t\t\tassertEquals(empIDs.size(), 100);\n\t\t\t\n\t\t\t//get all emails and assign in list \n\t\t\tList<String> emails = json.getList(\"items.email\");\n\t\t\t\n\t\t\tassertEquals(emails.size(), 100);\n\t\t\t\n\t\t\t//get all employee ids that are greater than 150\n\t\t\tList<Integer> empIdList = json.getList(\"items.findAll{it.employee_id > 150}.employee_id\");\n\t\t\tSystem.out.println(empIdList);\n\t\t\t\n\t\t\t//get all employee lastnames, whose salary is more than 7000\n\t\t\t\n\t\t\tList<String> lastNames = json.getList(\"items.findAll{it.salary > 7000}.last_name\");\n\t\t\tSystem.out.println(lastNames);\n\t}", "@Test\n public void testComponentExecutionWithGetAndHttpGet() throws ParseException, JSONException\n {\n try (MockedStatic<WebServiceUtils> mock = Mockito.mockStatic(WebServiceUtils.class))\n {\n mock.when(() -> WebServiceUtils.getAsString(URL_EMPLOYEES)).thenReturn(JSON_EMPLOYEES);\n ExpressionEvaluator evaluator = new ExpressionEvaluator(EXPRESSION_GET_HTTP_GET);\n assertTrue(JsonUtils.toJSONObject(JSON_EMPLOYEE1)\n .similar(evaluator.evaluate(Collections.emptyMap())));\n }\n }", "@Test\r\n\tpublic void test_updateEmployeeDetail() {\r\n\t\tgiven()\r\n\t\t\t\t.contentType(ContentType.JSON)//\r\n\t\t\t\t.queryParam(\"id\", \"2\")//\r\n\t\t\t\t.body(new EmployeeDto(2L, \"sunil\", \"changed\", \"[email protected]\"))//\r\n\t\t\t\t.when()//\r\n\t\t\t\t.put(\"/api/v1/employee\")//\r\n\t\t\t\t.then()//\r\n\t\t\t\t.log()//\r\n\t\t\t\t.body()//\r\n\t\t\t\t.statusCode(200)//\r\n\t\t\t\t.body(\"id\", equalTo(2))//\r\n\t\t\t\t.body(\"firstName\", equalTo(\"sunil\"))//\r\n\t\t\t\t.body(\"lastName\", equalTo(\"changed\"))//\r\n\t\t\t\t.body(\"emailId\", equalTo(\"[email protected]\"));\r\n\r\n\t}", "@Test\n public void postJson(){\n //prepare the request\n RestAssured.baseURI =\"http://restapi.demoqa.com/customer\";\n RequestSpecification request = RestAssured.given();\n\n // JSONObject is a class that represents a Simple JSON. it is from Json dependency\n // We can add Key - Value pairs using the put method\n JSONObject requestParams = new JSONObject();\n requestParams.put(\"FirstName\", \"Virender\");\n requestParams.put(\"LastName\", \"Singh\");\n\n requestParams.put(\"UserName\", \"simpleuser001\");\n requestParams.put(\"Password\", \"password1\");\n requestParams.put(\"Email\", \"[email protected]\");\n\n // Add a header stating the Request body is a JSON\n request.header(\"Content-Type\", \"application/json\");\n\n// Add the Json to the body of the request\n request.body(requestParams.toJSONString());\n\n// Post the request and check the response\n Response response = request.post(\"/register\");\n\n int statusCode = response.getStatusCode();\n // Assert.assertEquals(statusCode, \"201\");\n System.out.println(\"the status code is : \"+ statusCode);\n\n String successCode= response.jsonPath().get(\"SuccessCode\");\n System.out.println(successCode);\n\n }", "@Test\n\tpublic void testWithPathParameters() {\n\t\tgiven().accept(ContentType.JSON).and().params(\"limit\",100)\n\t\t.and().pathParams(\"id\", 110)\n\t\t.when().get(ConfigurationReader.getProperty(\"hrapp.baseurl\")+\"/employees/{id}\") //when we send e request this id will be replaced with 110\n\t\t.then().statusCode(200)\n\t\t.and().assertThat().contentType(ContentType.JSON)\n\t\t.and().body(\"employee_id\", equalTo(110),\n\t\t\t\t\"first_name\",equalTo(\"John\"),\n\t\t\t\t\"last_name\",equalTo(\"Chen\"),\n\t\t\t\t\"email\",equalTo(\"JCHEN\"));\n\t\t\n\t}", "@Test\n\tpublic void testPersonGETMethod() {\n\n\t\tString emailId = \"[email protected]\";\n\t\tPerson person = null;\n\t\tClient client = Client.create();\n\t\tWebResource webResource2 = client\n\t\t\t\t.resource(\"http://localhost:8080/MeetingSchedulerProject/meeting/personservice/\"\n\t\t\t\t\t\t+ emailId);\n\t\tClientResponse response2 = webResource2.accept(\n\t\t\t\tMediaType.APPLICATION_JSON).get(ClientResponse.class);\n\t\tperson = response2.getEntity(Person.class);\n\t\tassertEquals(person.getEmailId(), \"[email protected]\");\n\t}", "@Test\r\n\tpublic void getAllIncidents() {\n\t\tRestAssured.baseURI = \"https://dev49243.service-now.com/api/now/table/incident\";\r\n\t\t\r\n\t\t// Step 2: Authentication (basic)\r\n\t\tRestAssured.authentication = RestAssured.basic(\"admin\", \"Tuna@123\");\r\n\t\t\r\n\t\t// Step 3: Request type - Get -> Response\r\n\t\tResponse response = RestAssured.get();\r\n\t\t\r\n\t\t// Step 4: Validate (Response -> Status Code : 200)\r\n\t\tSystem.out.println(response.getStatusCode());\r\n\t\t\r\n\t\t// Print the response time as well \r\n\t\t\r\n\t\t// Check what is the response format\r\n\t\tSystem.out.println(response.getContentType());\r\n\t\t\r\n\t\t// print the response\r\n\t\tresponse.prettyPrint();\r\n\t\t\r\n\t}", "@Test\n public void testGetStudent() {\n System.out.println(\"getStudent\");\n \n given()\n .contentType(\"application/json\")\n .when()\n .get(\"/generel/student/\" + s2.getName()).then()\n .statusCode(200)\n .assertThat()\n .body(\"email\", hasItems(\"[email protected]\"), \"signedup\", hasSize(1), \"signedup.passedDate\", hasSize(1));\n\n \n }", "String getEEapi(String url, Map<String, String> params, int expectedStatus);", "@Test\n public void GETProductService_ProductCall() {\n givenHeaders().\n when().\n get(_url_prodservice).//.body().prettyPrint();\n then().\n using().defaultParser(Parser.JSON).\n log().ifError().\n statusCode(200).\n body(\"response\", not(isEmptyString()));\n System.out.print(\"GETProductService_ProductCall Test Run Result\");\n }", "public static void main(String[] args) {\n\n\t\t\n\t\t\n\t\t\nRestAssured.baseURI=\"https://petstore.swagger.io\";\n\t\t\n\t\tSystem.out.println(\"_______________Add Pet API_______________________________________________________________________________________________\");\n\t\t\n\t\tString AddPetResponse=\tgiven().log().all().header(\"accept\",\"application/json\").header(\"Content-Type\",\"application/json\").\t\n\t\t\t\tbody(PetStorePayloads.AddPetApiPayload(\"1234567890\", \"bb\",\"available\")). \n\t\t\t\twhen().post(\"/v2/pet\"). \n\t\t\t\tthen().log().all().assertThat().statusCode(200).extract().response().asString();\n \n\t\n\t //System.out.println(AddPetResponse);\n\t System.out.println();\n\t\n\t\n\t JsonPath path=new JsonPath(AddPetResponse);\n\t\n\t PetID=path.getString(\"id\");\n\t\n\t System.out.println(PetID);\n\t\n\tSystem.out.println(\"_______________update Pet API_______________________________________________________________________________________________\");\n\t\n\t\n\tString UpdatePetResponse=\tgiven().log().all().header(\"accept\",\"application/json\").header(\"Content-Type\",\"application/json\").\t\n\t\t\tbody(PetStorePayloads.UpdatePetApiPayload(\"22\", \"binitab\",\"sold\")). \n\t\t\twhen().put(\"/v2/pet\"). \n\t\t\tthen().log().all().assertThat().statusCode(200).extract().response().asString();\n\t\t\n\t\t\n\t\t\n\t\t//System.out.println(UpdatePetResponse); \n\t\tSystem.out.println();\n\t JsonPath pathh=new JsonPath(UpdatePetResponse);\n\t\t\n\t PetID=pathh.getString(\"id\");\n\t\n\t System.out.println(PetID);\n\t\n\t\n\tSystem.out.println(\"__________________Get Pet By ID API __________________________________________________________________________________________________________________________________\");\n\t \n\t\n\t\n\t String FindPetByIDResponse=given().log().all().header(\"Content-Type\",\"application/json\").\n pathParam(\"id\", PetID).\n\t\t when().get(\"/v2/pet/{id}\").\n\t\t then().log().all().assertThat().statusCode(200).extract().response().asString();\n\t\n\t\n //System.out.println(FindPetByIDResponse);\t\n\n JsonPath path2=new JsonPath(FindPetByIDResponse);\n \n System.out.println(path2.get(\"id\") +\" Pet is get successfully \");\n\n\nSystem.out.println(\"__________________Delete pet API __________________________________________________________________________________________________________________________________\");\n\n\n\n String DeletePetResponse=given().log().all().header(\"Content-Type\",\"application/json\").\n pathParam(\"id\", PetID).\n\t when().delete(\"/v2/pet/{id}\").\n\t then().log().all().assertThat().statusCode(200).extract().response().asString();\n\n \n JsonPath path3=new JsonPath(FindPetByIDResponse);\n\n //System.out.println(DeletePetResponse);\t\t \n System.out.println();\n \n \n System.out.println(path3.get(\"id\") +\" Pet is delete successfully \");\n\n\n\n\n\n\n\n\t\t\n\t\t\n\t\t\n\t}", "@Test\n public void GetMEthod() {\n\n RestAssured.baseURI = \"http://www.omdbapi.com/\";\n\n RequestSpecification request = RestAssured\n\n .given()\n .config(RestAssured.config().sslConfig(new SSLConfig().allowAllHostnames()));\n\n Response response = request\n\n .when()\n\n .get(\"/?apikey=5148dbc1&s=Harry Potter\")\n .then()\n .statusCode(200)\n\n\n .extract().response();\n\n int responseCode = response.getStatusCode();\n ResponseBody responseBody = response.getBody();\n ArrayList<String> list=new ArrayList<String>();\n\n //System.out.println(response.asString());\n Gson gson=new Gson();\n String json=response.asString();\n Search obj=gson.fromJson(json,Search.class);\n String imdb=\"\";\n for (Element e:obj.Search\n ) {\n String title=e.getTitle();\n if (title.equals(\"Harry Potter and the Sorcerer's Stone\")){\n imdb=e.getimdbID();\n }\n }\n System.out.println(\"imdbID:\"+imdb);\n //http://www.omdbapi.com/?apikey=5148dbc1&i=tt0241527&type=movie\n RequestSpecification request1 = RestAssured\n\n .given()\n .config(RestAssured.config().sslConfig(new SSLConfig().allowAllHostnames()));\n\n Response response1 = request1\n\n .when()\n\n .get(\"/?apikey=5148dbc1&i=\"+imdb+\"&type=movie\")\n .then()\n .statusCode(200)\n\n\n .extract().response();\n\n String json1=response1.asString();\n Movie obj1=gson.fromJson(json1,Movie.class);\n\n System.out.println(\"Title:\" +obj1.getTitle() + \" Year: \" + obj1.getYear()+ \" Released: \"+obj1.getReleased());\n\n System.out.println(\"---------------------\");\n\n\n\n\n\n }", "@Test\r\n\tpublic void test_getAllEmployeesPage2() {\r\n\t\tgiven()\r\n\t\t\t\t.contentType(ContentType.JSON)//\r\n\t\t\t\t.queryParam(\"page\", \"2\")//\r\n\t\t\t\t.when()//\r\n\t\t\t\t.get(\"/api/v1/employees\")//\r\n\t\t\t\t.then()//\r\n\t\t\t\t.log()//\r\n\t\t\t\t.body()//\r\n\t\t\t\t.statusCode(200)//\r\n\t\t\t\t.body(\"number\", equalTo(2))//\r\n\t\t\t\t.body(\"content.size()\", equalTo(10));\r\n\r\n\t}", "@Test\n public void testReceiverAgeEndpointCombo() {\n ResponseEntity response = dataController.getReceiverDataAge(\"M\", null, \"Canterbury\");\n assertNotNull(response.getBody());\n assertEquals(HttpStatus.OK, response.getStatusCode());\n }", "@Test\r\n\tpublic void givenResourceUrl_whenSendGetForRequestEntity_thenStatusOk() throws IOException {\n\r\n\t\tfinal Logger log = LoggerFactory.getLogger(UserDataRestTemplateTest.class);\r\n\r\n\t\tRestTemplate restTemplate = new RestTemplate();\r\n\t\tMap<String, String> response = (Map<String, String>) restTemplate\r\n\t\t\t\t.getForObject(\"http://services.groupkt.com/country/get/iso2code/IN\", Map.class);\r\n\t\tlog.info(\"==== RESTful API Response using Spring RESTTemplate START =======\");\r\n\t\tlog.info(response.toString());\r\n\t\tlog.info(\"==== RESTful API Response using Spring RESTTemplate END =======\");\r\n\r\n\t}", "@GET\n @Produces(MediaType.APPLICATION_JSON)\n public Response getEmployee( @NotNull(message = \"Employee ID cannnot be null\")\n @QueryParam(\"empId\") String empId) {\n return null;\n }", "@Test\n\tvoid RegistrationSuccessful() {\n\t\t\n\t// Specify Base URI\n\t\tRestAssured.basePath = \"https://restapi.demoqa.com/customer\";\n\t\t\n\t// Request object \n\tRequestSpecification httpRequest = RestAssured.given();\n\t\n\t// response Object\n\t// Request payload sending along with post\n\t\n\tJSONObject requestParams = new JSONObject();// JSONObject is a json-simple jar class\n\t\n\trequestParams.put(\"FirstName\", \"arif\");\n\trequestParams.put(\"LastName\",\"mod\");\n\trequestParams.put(\"UserName\", \"Arif212\");\n\trequestParams.put(\"Password\", \"mod415\");\n\trequestParams.put(\"Email\",\"[email protected]\");\n\t\n\thttpRequest.header(\"Content-Type\",\"application/json\");\n\t\t\n\thttpRequest.body(requestParams.toJSONString());// this method will convert above info into json format\n\t // and then attach above data to the request\n\t\t\n\t\t\n\t// ABOVE WE WERE PREPARING OUR REQUEST DETAILS AND CONVERTING TO JSON METHOD.\n\t// NOW BELOW WE WILL ACTUALLY SEND THE REQUEST.\n\t\n\t// Response object [ sending request with object]\n\tResponse response = httpRequest.request(Method.POST, \"/register\");// this is post method means create new\n\t\n\t// print response in console window\n\tString responseBody = response.getBody().asString();// will turn json response into String & store into responsebody\n\tSystem.out.println(\"Response body is: \"+ responseBody);\n\t\n\t// status code validation using assert from testng\n\tint statusCode = response.getStatusCode();\n\tSystem.out.println(\"Status code is:\"+ statusCode);\n\tAssert.assertEquals(statusCode, 201); // 201 is a sucessful post code \n\t\n\t// this method will get the value of SuccessCode from Json response and add it the variable \n\tString successCode = response.jsonPath().get(\"SuccessCode\");\n\tAssert.assertEquals(successCode, \"OPERATION_SUCCESS\"); // asserting to compare the successcodes\n\t\n\t\n\t\t\n\t}", "@Test\n\t \n\t public void getApi() {\n\t\t \n\t\t Response getIt=get(\"https://reqres.in/api/users?page=2\");\n\t\t getIt.prettyPrint();\n\t\t System.out.println(getIt.getStatusCode());\n\t\t System.out.println(getIt.getTime());\n\t\t \n\t\t //to validate\n\t\t int validGstatus=getIt.getStatusCode();\n\t\t Assert.assertEquals(validGstatus,200);\n\t\t \n\t }", "@Test\n\tpublic void latest_Client() throws ClientProtocolException, IOException\n {\n CloseableHttpClient httpclinet2=HttpClientBuilder.create().build();\n \n // 2 Url purpose\n HttpGet httpget= new HttpGet(\"https://reqres.in\");\n \n // 3 Add Header\n\t httpget.addHeader(\"Authorization\",\"Bearer_ HGHKHGKHGKGKHGHGHJGKHGK\");\n\t \n\t /*********4 execute the API and store response************/ \n\t CloseableHttpResponse response= httpclinet2.execute(httpget);\n\t \n\t // Read the status code\n\t int i= response.getStatusLine().getStatusCode();\n\t System.out.println(i);\n\t Assert.assertEquals(200, i);\n\t \n\t //Print the response and store the response in string, here you cannot directly store the response and print.\n\t HttpEntity entity= response.getEntity();\n\t String data=EntityUtils.toString(entity);\n\t System.out.println(data);\n\t \n\t //GetJson value using Rest Assured Jsonpath value\n\t JsonPath json=new JsonPath(data);\n\t String dataapi=json.getString(\"Meta_.id\");\n\t System.out.println(dataapi);\n\t \n\t //working on Jway API alternative of jpath to retrieve the value.\n\t \n\t \n\t \n\t \n\t \n\t \n\t \n\t \n\t \n\t \n\t \n }", "@Test\n\tpublic void testWithQueryParametersAndList() {\n\t\tgiven().accept(ContentType.JSON)\n\t\t.and().params(\"limit\",100)\n\t\t.when().get(ConfigurationReader.getProperty(\"hrapp.baseurl\")+\"/employees\")\n\t\t.then().assertThat().statusCode(200)\n\t\t.and().contentType(ContentType.JSON)\n\t\t.and().assertThat().body(\"items.employee_id\", hasSize(100));\n\t\t\n\t}", "@Test\n public void testComponentExecutionWithJsonpathAndHttpGet() throws ParseException\n {\n try (MockedStatic<WebServiceUtils> mock = Mockito.mockStatic(WebServiceUtils.class))\n {\n mock.when(() -> WebServiceUtils.getAsString(URL_EMPLOYEE1)).thenReturn(JSON_EMPLOYEE1);\n ExpressionEvaluator evaluator = new ExpressionEvaluator(EXPRESSION_JSONPATH_HTTP_GET);\n assertEquals(JSON_EMPLOYEE1_NAME, evaluator.evaluate(Collections.emptyMap()));\n }\n }", "@Test\n public void Task3() {\n given()\n .when()\n .get(\"https://jsonplaceholder.typicode.com/todos/2\")\n .then()\n .statusCode(200)\n .contentType(ContentType.JSON)\n .body(\"title\",equalTo(\"quis ut nam facilis et officia qui\"))\n ;\n }", "@Test\n public void testResponseWithDateStartDateAndEndDate() throws HTTPException, HttpServerErrorException{\n String startDate = \"1997-02-20\";\n String endDate = \"2021-01-09\";\n String date = LocalDate.now().toString();\n String dateParamExtension = \"&start_date=\" + startDate + \"&end_date=\" + endDate + \"&date=\" + date;\n try {\n response = restTemplate.getForObject(templateUrl + apiKey + dateParamExtension, String.class);\n } catch (HttpClientErrorException ex) {\n Assert.assertEquals(\"Bad request response code should be returned from server\", 400, ex.getRawStatusCode());\n }\n }", "@Test\n public void GETProduct_ProductInventoryCall() {\n\n givenHeaders().\n when().\n get(_url_product).//.body().prettyPrint();\n then().\n using().defaultParser(Parser.JSON).\n log().ifError().\n statusCode(200).\n body(\"response\", not(isEmptyString()));\n System.out.print(\"GETPRODUCT_Inventory Test Run Result\");\n }", "@Test\n\tpublic void trial01() {\n\t\tspec1.pathParam(\"id\", 3);\n\t\tResponse response =given().spec(spec1).get(\"/{id}\");\n\t\tresponse.prettyPrint();\n\t\t\n\t\tresponse.then().assertThat().statusCode(200).contentType(ContentType.JSON).statusLine(\"HTTP/1.1 200 OK\");\n\t}", "@Test(priority=2)\r\n\t\tpublic void getStudentIDSerialization() {\r\n\t\t\tgiven()\r\n\t\t\t\t.contentType(ContentType.JSON)\r\n\t\t\t.when()\r\n\t\t\t\t.get(\"http://localhost:8085/student/102\")\r\n\t\t\t.then()\r\n\t\t\t\t.statusCode(200)\r\n\t\t\t\t.assertThat()\r\n\t\t\t\t.body(\"id\",equalTo(\"102\"));\r\n\t\t\t\t\r\n\t\t}", "private static ValidatableResponse exectuteRequestMethodJson(DataDriverModel ddm, Response source, ValidatableResponse rs) {\n\t\tif(ddm.getAction().contains(\"status\")){\n\t\t\treturn rs.statusCode(Integer.parseInt((String)ddm.getValidation()));\n\t\t} else if (ddm.getAction().length() >= \".contains\".length() && ddm.getAction()\n\t\t\t\t.substring(ddm.getAction().length() - \".contains\".length()).equalsIgnoreCase(\".contains\")) {\n\t\t\tString jsonPath = ddm.getAction().substring(ddm.getAction().indexOf(\"(\\\"\")+2, ddm.getAction().indexOf(\"\\\")\"));\n\t\t\tSystem.out.println(\"jsonPath: \"+jsonPath);\n\t\t\tif(!(source.path(jsonPath) instanceof String)){\n\t\t\t\tAssert.fail(\"Error, the 'contains' check only use for String type\");\n\t\t\t}\n\t\t\treturn rs.body(jsonPath, org.hamcrest.Matchers.containsString((String)ddm.getValidation()));\n\t\t} else if (ddm.getAction().length() >= \".equalTo\".length() && ddm.getAction()\n\t\t\t\t.substring(ddm.getAction().length() - \".equalTo\".length()).equalsIgnoreCase(\".equalTo\")) {\n\t\t\tString jsonPath = ddm.getAction().substring(ddm.getAction().indexOf(\"(\\\"\")+2, ddm.getAction().indexOf(\"\\\")\"));\n\t\t\tSystem.out.println(\"jsonPath: \"+jsonPath);\n\t\t\tif(source.path(jsonPath) instanceof String){\n\t\t\t\treturn rs.body(jsonPath, equalTo((String)ddm.getValidation()));\n\t\t\t} else if(source.path(jsonPath) instanceof Integer){\n\t\t\t\treturn rs.body(jsonPath, equalTo(Integer.parseInt((String)ddm.getValidation())));\n\t\t\t} else if(source.path(jsonPath) instanceof Float){\n\t\t\t\treturn rs.body(jsonPath, equalTo(Float.parseFloat((String)ddm.getValidation())));\n\t\t\t} else if(source.path(jsonPath) instanceof Boolean){\n\t\t\t\treturn rs.body(jsonPath, equalTo(Boolean.parseBoolean((String)ddm.getValidation())));\n\t\t\t} else {\n\t\t\t\tAssert.fail(\"Error, the 'equalTo' check only String, Integer or Float type\");\n\t\t\t\treturn null;\n\t\t\t}\n\t\t} else if (ddm.getAction().length() >= \".isNull\".length() && ddm.getAction()\n\t\t\t\t.substring(ddm.getAction().length() - \".isNull\".length()).equalsIgnoreCase(\".isNull\")) {\n\t\t\tString jsonPath = ddm.getAction().substring(ddm.getAction().indexOf(\"(\\\"\")+2, ddm.getAction().indexOf(\"\\\")\"));\n\t\t\tSystem.out.println(\"jsonPath: \"+jsonPath);\n\t\t\tif(Boolean.parseBoolean((String)ddm.getValidation())){\n\t\t\t\tAssert.assertNull(source.path(jsonPath));\n\t\t\t} else if(((String)ddm.getValidation()).equalsIgnoreCase(\"false\")){\n\t\t\t\tAssert.assertNotNull(source.path(jsonPath));\n\t\t\t} else {\n\t\t\t\tAssert.fail(\"Error, the 'VALIDATION' should be either false or true where check 'isNull'\");\n\t\t\t}\n\t\t\treturn null;\n\t\t} else {\n\t\t\treturn rs;\n\t\t}\n\t}", "@Test\r\n\tpublic void createProductDetails() {\r\n\t\tRestAssured.baseURI = \"http://localhost:9000/products\";\r\n\t\tRequestSpecification request = RestAssured.given();\r\n\t\tJSONObject requestParams = new JSONObject();\r\n\t\trequestParams.put(\"id\", \"7\"); // Cast\r\n\t\trequestParams.put(\"name\", \"Mangao\");\r\n\t\trequest.header(\"Content-Type\", \"application/json\");\r\n\t\trequest.body(requestParams.toString());\r\n\t\tResponse response = request.post(\"\");\r\n\t\tSystem.out.println(\"POST Responce Body ----->\" + response.asString());\r\n\t\tint statusCode = response.getStatusCode();\r\n\t\tAssert.assertEquals(statusCode, 201);\r\n\r\n\t}", "public String getAPI()\n {\n ResponseEntity<String> person;\n\n /*\n\t\t * Headers for the response type if we want to return JSON response then we\n\t\t * require to add.\n */\n HttpHeaders headers = new HttpHeaders();\n\n /*\n\t\t * Adding of the response header with application/json type\n */\n headers.add(\"Accept\", \"application/json\");\n\n /*\n\t\t * Creation of the Entity object for the adding the headers into request.\n */\n entity = new HttpEntity<>(headers);\n\n /*\n\t\t * Creation of REST TEMPLET object for the executing of the REST calls.\n */\n restTemplate = new RestTemplate();\n\n /*\n\t\t * Adding the basic type of authentication on the REST TEMPLETE.\n */\n restTemplate.getInterceptors()\n .add(new BasicAuthorizationInterceptor(\"Administrator\", \"Oneeight@admin18\"));\n\n /*\n\t\t * Execution of the REST call with basic authentication and JSON response type\n */\n person = restTemplate.exchange(\"http://52.172.222.197:8080/versa/login?username=Administrator&password=Oneeight@admin18\", HttpMethod.POST, entity, String.class);\n System.out.println(\"\"+person.toString());\n //headers.add(\"Cookie\", \"JSESSIONID=0FC37952D64B545C46969EFEC0E4FD12\");\n headers.add(\"Cookie\", person.getHeaders().getFirst(HttpHeaders.SET_COOKIE));\n entity = new HttpEntity<>(headers);\n person = restTemplate.exchange(\"http://52.172.222.197:8080/versa/analytics/v1.0.0/data/provider/tenants/OneEight/features/SDWAN/?qt=summary&start-date=1daysAgo&end-date=today&q=linkusage(site)&metrics=volume-rx&metrics=volume-tx&metrics=volume-rx&metrics=volume-tx&metrics=bandwidth&ds=aggregate&count=10\", HttpMethod.GET, entity, String.class);\n\n /*\n\t\t * Returning the response body with string format that easily readable.\n */\n return person.getBody();\n }", "@Test\n public void testGetJsonPayload() {\n System.out.println(\"getJsonPayload\");\n String expResult = (\"{\\n\"\n + \" \\\"iss\\\": \\\"https://ConsumerSystemURL\\\",\\n\"\n + \" \\\"sub\\\": \\\"1\\\",\\n\"\n + \" \\\"aud\\\": \\\"https://authorize.fhir.nhs.net/token\\\",\\n\"\n + \" \\\"exp\\\": 1503995882,\\n\"\n + \" \\\"iat\\\": 1503995582,\\n\"\n + \" \\\"reason_for_request\\\": \\\"directcare\\\",\\n\"\n + \" \\\"requesting_device\\\": {\\n\"\n + \" \\\"resourceType\\\": \\\"Device\\\",\\n\"\n + \" \\\"id\\\": \\\"1\\\",\\n\"\n + \" \\\"identifier\\\": [\\n\"\n + \" {\\n\"\n + \" \\\"system\\\": \\\"GPConnectTestSystem\\\",\\n\"\n + \" \\\"value\\\": \\\"Client\\\"\\n\"\n + \" }\\n\"\n + \" ],\\n\"\n + \" \\\"type\\\": {\\n\"\n + \" \\\"coding\\\": [\\n\"\n + \" {\\n\"\n + \" \\\"system\\\": \\\"DeviceIdentifierSystem\\\",\\n\"\n + \" \\\"code\\\": \\\"DeviceIdentifier\\\"\\n\"\n + \" }\\n\"\n + \" ]\\n\"\n + \" },\\n\"\n + \" \\\"model\\\": \\\"v1\\\",\\n\"\n + \" \\\"version\\\": \\\"1.1\\\"\\n\"\n + \" },\\n\"\n + \" \\\"requesting_organization\\\": {\\n\"\n + \" \\\"resourceType\\\": \\\"Organization\\\",\\n\"\n + \" \\\"id\\\": \\\"1\\\",\\n\"\n + \" \\\"identifier\\\": [\\n\"\n + \" {\\n\"\n + \" \\\"system\\\": \\\"http://fhir.nhs.net/Id/ods-organization-code\\\",\\n\"\n + \" \\\"value\\\": \\\"GPCA0001\\\"\\n\"\n + \" }\\n\"\n + \" ],\\n\"\n + \" \\\"name\\\": \\\"GP Connect Assurance\\\"\\n\"\n + \" },\\n\"\n + \" \\\"requesting_practitioner\\\": {\\n\"\n + \" \\\"resourceType\\\": \\\"Practitioner\\\",\\n\"\n + \" \\\"id\\\": \\\"1\\\",\\n\"\n + \" \\\"identifier\\\": [\\n\"\n + \" {\\n\"\n + \" \\\"system\\\": \\\"http://fhir.nhs.net/sds-user-id\\\",\\n\"\n + \" \\\"value\\\": \\\"GCASDS0001\\\"\\n\"\n + \" },\\n\"\n + \" {\\n\"\n + \" \\\"system\\\": \\\"LocalIdentifierSystem\\\",\\n\"\n + \" \\\"value\\\": \\\"1\\\"\\n\"\n + \" }\\n\"\n + \" ],\\n\"\n + \" \\\"name\\\": {\\n\"\n + \" \\\"family\\\": [\\n\"\n + \" \\\"AssurancePractitioner\\\"\\n\"\n + \" ],\\n\"\n + \" \\\"given\\\": [\\n\"\n + \" \\\"AssuranceTest\\\"\\n\"\n + \" ],\\n\"\n + \" \\\"prefix\\\": [\\n\"\n + \" \\\"Mr\\\"\\n\"\n + \" ]\\n\"\n + \" },\\n\"\n + \" \\\"practitionerRole\\\": [\\n\"\n + \" {\\n\"\n + \" \\\"role\\\": {\\n\"\n + \" \\\"coding\\\": [\\n\"\n + \" {\\n\"\n + \" \\\"system\\\": \\\"http://fhir.nhs.net/ValueSet/sds-job-role-name-1\\\",\\n\"\n + \" \\\"code\\\": \\\"AssuranceJobRole\\\"\\n\"\n + \" }\\n\"\n + \" ]\\n\"\n + \" }\\n\"\n + \" }\\n\"\n + \" ]\\n\"\n + \" },\\n\"\n + \" \\\"requested_scope\\\": \\\"patient/*.read\\\",\\n\"\n + \" \\\"requested_record\\\": {\\n\"\n + \" \\\"resourceType\\\": \\\"Patient\\\",\\n\"\n + \" \\\"identifier\\\": [\\n\"\n + \" {\\n\"\n + \" \\\"system\\\": \\\"https://fhir.nhs.uk/Id/nhs-number\\\",\\n\"\n + \" \\\"value\\\": \\\"9476719931\\\"\\n\"\n + \" }\\n\"\n + \" ]\\n\"\n + \" }\\n\"\n + \"}\\n\").replaceAll(\"\\n\", \"\\r\\n\");\n String result = instance.getJsonPayload();\n assertEquals(expResult, result);\n }", "@Test\n\tpublic static void TC1() throws IOException {\n\t\t// TODO Auto-generated method stub\n \n\t\tInteger n = RandomDataGeneration.randomNumber();\n\n\t\tProperties pr = PropertiesFile.readProperties(\"../APIAutomationFW/URI.properties\");\n\t\tString requestpayload = JsonFile.readJson(\"../APIAutomationFW/src/test/java/org/testing/resources/BodyData.json\");\n\t\trequestpayload = JsonVariableReplacement.jsonReplace(requestpayload, \"id\", n.toString());\n\t\tHttpMethods http = new HttpMethods(pr);\nResponse res =\thttp.postRequest(requestpayload, \"QA_URI\");\nresponseIdValue = JsonParsingUsingOrgJson.jsonParse(res.asString(), \"id\"); \t\n\nSystem.out.println(\"Response code is\" + responseIdValue);\n\t\n\t}", "@Test\n public void employeeGetsAllTransactionsWithOffsetAndLimitShouldReturnOk() throws Exception{\n mvc.perform(get(\"/transactions?offset=1&limit=4\")\n .header(\"ApiKeyAuth\", \"1234-abcd-5678-efgh\"))\n .andExpect(status().isOk());\n }", "@Test\n public void Task5() {\n given()\n .when()\n .get(\"https://jsonplaceholder.typicode.com/todos\")\n .then()\n .statusCode(200)\n .contentType(ContentType.JSON)\n // .log().body()\n .body(\"userId[2]\", equalTo(1))\n .body(\"title[2]\", equalTo(\"fugiat veniam minus\"))\n ;\n }", "@Test\r\n\tpublic void test_getAllEmployeesPage_notfound() {\r\n\t\tgiven()\r\n\t\t\t\t.contentType(ContentType.JSON)//\r\n\t\t\t\t.queryParam(\"page\", \"6\")//\r\n\t\t\t\t.when()//\r\n\t\t\t\t.get(\"/api/v1/employees\")//\r\n\t\t\t\t.then()//\r\n\t\t\t\t.log()//\r\n\t\t\t\t.body()//\r\n\t\t\t\t.statusCode(404);\r\n\t}", "@Test\r\n public void testCreateReadUpdate() {\r\n // Setting test employee object details\r\n Employee testEmployee = new Employee();\r\n testEmployee.setEmployeeId(\"abc123\");\r\n testEmployee.setFirstName(\"John\");\r\n testEmployee.setLastName(\"Doe\");\r\n testEmployee.setDepartment(\"Engineering\");\r\n testEmployee.setPosition(\"Developer\");\r\n\r\n //Creating test employee direct report\r\n List<Employee> directReports = new ArrayList<>();\r\n Employee testDirectEmployee = new Employee();\r\n Employee directReport = restTemplate.postForEntity(employeeUrl, testDirectEmployee, Employee.class).getBody();\r\n directReports.add(directReport);\r\n testEmployee.setDirectReports(directReports);\r\n\r\n // Creating test employee object\r\n Employee createdEmployee = restTemplate.postForEntity(employeeUrl, testEmployee, Employee.class).getBody();\r\n\r\n // Creating reporting structure test object\r\n ReportingStructure testReportStruct = new ReportingStructure();\r\n testReportStruct.setEmployee(createdEmployee);\r\n testReportStruct.setNumberOfReports(1);\r\n\r\n\r\n // Read checks for reporting structure\r\n ReportingStructure readReportStruct = restTemplate.getForEntity(reportStructEmployeeIdUrl, ReportingStructure.class,\r\n testReportStruct.getEmployee().getEmployeeId()).getBody();\r\n assertNotNull(readReportStruct.getEmployee().getEmployeeId());\r\n assertEquals(testReportStruct.getEmployee().getEmployeeId(), readReportStruct.getEmployee().getEmployeeId());\r\n assertReportStructEquivalence(testReportStruct, readReportStruct);\r\n }", "@Test\n public void f() {\n\t \n\t RestAssured.baseURI = \"http://restapi.demoqa.com/authentication/CheckForAuthentication\";\n\t PreemptiveBasicAuthScheme authScheme = new PreemptiveBasicAuthScheme();\n\t authScheme.setUserName(\"ToolsQA\");\n\t authScheme.setPassword(\"TestPassword\");\n\t RestAssured.authentication = authScheme;\n\t \n\t RequestSpecification request = RestAssured.given();\n\t \n\t Response response = request.get();\n\t System.out.println(\"Status code: \" + response.getStatusCode());\n\t System.out.println(\"Status message \" + response.body().asString());\n\t \n\t //System.out.println(\"Hai\");\n\t \n }", "@GET\n @Path(\"/getEmployeeById/{empId}\")\n @Produces(MediaType.APPLICATION_JSON)\n public String getEmployeeById(@PathParam(\"empId\") String empId){\n String output = \"\";\n try {\n Employee employee = new Employee();\n employee = EmployeeFacade.getInstance().getEmployeeById(empId);\n output = gson.toJson(employee);\n \n } catch (IOException e) {\n output = \"Error\";\n }\n return output;\n }", "@Test\n\tpublic void testPatient() {\n\t\tHttpHeaders headers = new HttpHeaders();\n\t\tHttpEntity<String> entity = new HttpEntity<String>(null, headers);\n\t\tResponseEntity<String> response = restTemplate.exchange(getRootUrl() + \"/edit-patient?id=4\",HttpMethod.GET, entity, String.class);\n\t\tassertEquals(200,response.getStatusCodeValue());\n\t}", "@Test(priority=28)\n\tpublic void campaign_user_with_invalid_filter_operetor_for_camp_status() throws URISyntaxException, ClientProtocolException, IOException, ParseException{\n\t\ttest = extent.startTest(\"campaign_user_with_invalid_filter_operetor_for_camp_status\", \"To validate whether user is able to get campaign and its users through campaign/user api with invalid filter operator for campaign_status\");\n\t\ttest.assignCategory(\"CFA GET /campaign/user API\");\n\t\ttest_data = HelperClass.readTestData(class_name, \"campaign_user_with_invalid_filter_operetor_for_camp_status\");\n\t\tString campaign_status = test_data.get(4);\n\t\t\tString[] operators = {\"+\",\"!\",\"~\",\"#\",\"@\",\"$\",\"%\",\"^\",\"&\",\"*\",\"-\",\"/\",\":\"};\n\t\t\tString encoded_operator = \"\";\n\t\t\tfor(String operator:operators){\n\t\t\t\tencoded_operator = java.net.URLEncoder.encode(operator, \"UTF-8\");\n\t\t\t\tList<NameValuePair> list = new ArrayList<NameValuePair>();\n\t\t\t\tlist.add(new BasicNameValuePair(\"filter\", \"campaign_status\"+encoded_operator+campaign_status));\n\t\t\t\tCloseableHttpResponse response = HelperClass.make_get_request(\"/v2/campaign/user\", access_token, list);\n\t\t\t\tAssert.assertTrue(!(response.getStatusLine().getStatusCode() == 500 || response.getStatusLine().getStatusCode() == 401), \"Invalid status code is displayed. \"+ \"Returned Status: \"+response.getStatusLine().getStatusCode()+\" \"+response.getStatusLine().getReasonPhrase());\n\t\t\t\ttest.log(LogStatus.INFO, \"Execute campaign/user api method with \"+ operator +\" filter operator for campaign_status\");\n\t\t\t\tSystem.out.println(\"Execute campaign/user api method with \"+ operator +\" filter operator for campaign_status\");\n\t\t\t\tBufferedReader rd = new BufferedReader(new InputStreamReader(response.getEntity().getContent()));\n\t\t\t\tString line = \"\";\n\t\t\t\twhile ((line = rd.readLine()) != null) {\n\t\t\t\t // Convert response to JSON object\t\n\t\t\t\t JSONParser parser = new JSONParser();\n\t\t\t\t JSONObject json = (JSONObject) parser.parse(line);\n\t\t\t\t String result_data = json.get(\"result\").toString(); \n\t\t\t\t Assert.assertEquals(result_data, \"error\", \"Invalid result value is in resonse\");\n\t\t\t\t String err_data = json.get(\"err\").toString();\n\t\t\t\t Assert.assertEquals(err_data, \"Unsupported comparator used in filter on rule 1 : campaign_status\"+operator+campaign_status);\n\t\t\t\t test.log(LogStatus.PASS, \"Check whether proper validation message is displayed when \"+ operator +\" filter operator is used for campaign_status\");\n\t\t\t\t}\t \n\t\t\t}\t\n\t}", "@Test(priority=58)\n\tpublic void campaign_user_with_invalid_filter_operator_for_first_name() throws URISyntaxException, ClientProtocolException, IOException, ParseException{\n\t\ttest = extent.startTest(\"campaign_user_with_invalid_filter_operator_for_first_name\", \"To validate whether user is able to get campaign and its users through campaign/user api with invalid filter operator for first_name\");\n\t\ttest.assignCategory(\"CFA GET /campaign/user API\");\n\t\ttest_data = HelperClass.readTestData(class_name, \"campaign_user_with_invalid_filter_operator_for_first_name\");\n\t\tString first_name = test_data.get(4);\n\t\tString[] operators = {\"+\",\"!\",\"~\",\"#\",\"@\",\"$\",\"%\",\"^\",\"&\",\"*\",\"-\",\"/\",\":\"};\n\t\tString encoded_operator = \"\";\n\t\tfor(String operator:operators){\n\t\t\tencoded_operator = java.net.URLEncoder.encode(operator, \"UTF-8\");\n\t\t\tList<NameValuePair> list = new ArrayList<NameValuePair>();\n\t\t\tlist.add(new BasicNameValuePair(\"filter\", \"first_name\"+encoded_operator+first_name));\n\t\t\tCloseableHttpResponse response = HelperClass.make_get_request(\"/v2/campaign/user\", access_token, list);\n\t\t\tAssert.assertTrue(!(response.getStatusLine().getStatusCode() == 500 || response.getStatusLine().getStatusCode() == 401), \"Invalid status code is displayed. \"+ \"Returned Status: \"+response.getStatusLine().getStatusCode()+\" \"+response.getStatusLine().getReasonPhrase());\n\t\t\ttest.log(LogStatus.INFO, \"Execute campaign/user api method with \"+ operator +\" filter operator for first_name\");\n\t\t\tSystem.out.println(\"Execute campaign/user api method with \"+ operator +\" filter operator for first_name\");\n\t\t\tBufferedReader rd = new BufferedReader(new InputStreamReader(response.getEntity().getContent()));\n\t\t\tString line = \"\";\n\t\t\twhile ((line = rd.readLine()) != null) {\n\t\t\t // Convert response to JSON object\t\n\t\t\t JSONParser parser = new JSONParser();\n\t\t\t JSONObject json = (JSONObject) parser.parse(line);\n\t\t\t String result_data = json.get(\"result\").toString(); \n\t\t\t Assert.assertEquals(result_data, \"error\", \"Invalid result value is in resonse\");\n\t\t\t String err_data = json.get(\"err\").toString();\n\t\t\t Assert.assertEquals(err_data, \"Unsupported comparator used in filter on rule 1 : first_name\"+operator+first_name);\n\t\t\t test.log(LogStatus.PASS, \"Check whether proper validation message is displayed when \"+ operator +\" filter operator is used for first_name\");\n\t\t\t}\t \n\t\t}\t\n\t}", "@Test\n void getTransactionList() throws JsonProcessingException {\n\n String idAccount = \"14537780\";\n String fromAccountingDate = \"2019-01-01\";\n String toAccountingDate = \"2019-12-01\";\n\n Response response = greetingWebClient.getTransactionList(idAccount, fromAccountingDate, toAccountingDate);\n assertTrue(response.getPayload().getList().size()>0 && response.getStatus().equals(\"OK\"));\n\n }", "public EmployeeDto getEmployee(Long employeeId) throws ApiDemoBusinessException;", "@Test(priority=67)\n\tpublic void campaign_user_with_invalid_filter_operator_for_user_status() throws URISyntaxException, ClientProtocolException, IOException, ParseException{\n\t\ttest = extent.startTest(\"campaign_user_with_invalid_filter_operator_for_user_status\", \"To validate whether user is able to get campaign and its users through campaign/user api with invalid filter operator for user_status\");\n\t\ttest.assignCategory(\"CFA GET /campaign/user API\");\n\t\ttest_data = HelperClass.readTestData(class_name, \"campaign_user_with_invalid_filter_operator_for_user_status\");\n\t\tString user_status = this.user_status;\n\t\tString[] operators = {\"+\",\"!\",\"~\",\"#\",\"@\",\"$\",\"%\",\"^\",\"&\",\"*\",\"-\",\"/\",\":\"};\n\t\tString encoded_operator = \"\";\n\t\tfor(String operator:operators){\n\t\t\tencoded_operator = java.net.URLEncoder.encode(operator, \"UTF-8\");\n\t\t\tList<NameValuePair> list = new ArrayList<NameValuePair>();\n\t\t\tlist.add(new BasicNameValuePair(\"filter\", \"user_status\"+encoded_operator+user_status));\n\t\t\tCloseableHttpResponse response = HelperClass.make_get_request(\"/v2/campaign/user\", access_token, list);\n\t\t\tAssert.assertTrue(!(response.getStatusLine().getStatusCode() == 500 || response.getStatusLine().getStatusCode() == 401), \"Invalid status code is displayed. \"+ \"Returned Status: \"+response.getStatusLine().getStatusCode()+\" \"+response.getStatusLine().getReasonPhrase());\n\t\t\ttest.log(LogStatus.INFO, \"Execute campaign/user api method with \"+ operator +\" filter operator for user_status\");\n\t\t\tSystem.out.println(\"Execute campaign/user api method with \"+ operator +\" filter operator for user_status\");\n\t\t\tBufferedReader rd = new BufferedReader(new InputStreamReader(response.getEntity().getContent()));\n\t\t\tString line = \"\";\n\t\t\twhile ((line = rd.readLine()) != null) {\n\t\t\t // Convert response to JSON object\t\n\t\t\t JSONParser parser = new JSONParser();\n\t\t\t JSONObject json = (JSONObject) parser.parse(line);\n\t\t\t String result_data = json.get(\"result\").toString(); \n\t\t\t Assert.assertEquals(result_data, \"error\", \"Invalid result value is in resonse\");\n\t\t\t String err_data = json.get(\"err\").toString();\n\t\t\t Assert.assertEquals(err_data, \"Unsupported comparator used in filter on rule 1 : user_status\"+operator+user_status);\n\t\t\t test.log(LogStatus.PASS, \"Check whether proper validation message is displayed when \"+ operator +\" filter operator is used for user_status\");\n\t\t\t}\t \n\t\t}\t\n\t}", "@Test(priority=61)\n\tpublic void campaign_user_with_invalid_filter_operator_for_last_name() throws URISyntaxException, ClientProtocolException, IOException, ParseException{\n\t\ttest = extent.startTest(\"campaign_user_with_invalid_filter_operator_for_last_name\", \"To validate whether user is able to get campaign and its users through campaign/user api with invalid filter operator for last_name\");\n\t\ttest.assignCategory(\"CFA GET /campaign/user API\");\n\t\ttest_data = HelperClass.readTestData(class_name, \"campaign_user_with_invalid_filter_operator_for_last_name\");\n\t\tString last_name = test_data.get(4);\n\t\tString[] operators = {\"+\",\"!\",\"~\",\"#\",\"@\",\"$\",\"%\",\"^\",\"&\",\"*\",\"-\",\"/\",\":\"};\n\t\tString encoded_operator = \"\";\n\t\tfor(String operator:operators){\n\t\t\tencoded_operator = java.net.URLEncoder.encode(operator, \"UTF-8\");\n\t\t\tList<NameValuePair> list = new ArrayList<NameValuePair>();\n\t\t\tlist.add(new BasicNameValuePair(\"filter\", \"last_name\"+encoded_operator+last_name));\n\t\t\tCloseableHttpResponse response = HelperClass.make_get_request(\"/v2/campaign/user\", access_token, list);\n\t\t\tAssert.assertTrue(!(response.getStatusLine().getStatusCode() == 500 || response.getStatusLine().getStatusCode() == 401), \"Invalid status code is displayed. \"+ \"Returned Status: \"+response.getStatusLine().getStatusCode()+\" \"+response.getStatusLine().getReasonPhrase());\n\t\t\ttest.log(LogStatus.INFO, \"Execute campaign/user api method with \"+ operator +\" filter operator for last_name\");\n\t\t\tSystem.out.println(\"Execute campaign/user api method with \"+ operator +\" filter operator for last_name\");\n\t\t\tBufferedReader rd = new BufferedReader(new InputStreamReader(response.getEntity().getContent()));\n\t\t\tString line = \"\";\n\t\t\twhile ((line = rd.readLine()) != null) {\n\t\t\t // Convert response to JSON object\t\n\t\t\t JSONParser parser = new JSONParser();\n\t\t\t JSONObject json = (JSONObject) parser.parse(line);\n\t\t\t String result_data = json.get(\"result\").toString(); \n\t\t\t Assert.assertEquals(result_data, \"error\", \"Invalid result value is in resonse\");\n\t\t\t String err_data = json.get(\"err\").toString();\n\t\t\t Assert.assertEquals(err_data, \"Unsupported comparator used in filter on rule 1 : last_name\"+operator+last_name);\n\t\t\t test.log(LogStatus.PASS, \"Check whether proper validation message is displayed when \"+ operator +\" filter operator is used for last_name\");\n\t\t\t}\t \n\t\t}\t\n\t}", "public static void main(String[] args) {\n\r\n\t\tRestAssured.baseURI=\"https://www.boredapi.com/api/activity\";\r\n\t\tString getUserResponse=given()\r\n\t\t\t\t.when().get()\r\n\t\t\t\t.then().assertThat().log().all().statusCode(200).extract().response().asString();\r\n\t\tSystem.out.println(getUserResponse);\r\n\t\t\r\n\t\r\n\r\n}", "@Test(priority=42)\t\n\tpublic void campaign_user_with_filter_for_nonexisting_camp_end_date() throws URISyntaxException, ClientProtocolException, IOException, ParseException{\n\t\ttest = extent.startTest(\"campaign_user_with_filter_for_nonexisting_camp_end_date\", \"To validate whether user is able to get campaign and its users through campaign/user api with filter for non existing campaign_end_date\");\n\t\ttest.assignCategory(\"CFA GET /campaign/user API\");\n\t\ttest_data = HelperClass.readTestData(class_name, \"campaign_user_with_filter_for_nonexisting_camp_end_date\");\n\t\tString campaign_end_date = test_data.get(4);\n\t\tList<NameValuePair> list = new ArrayList<NameValuePair>();\n\t\tlist.add(new BasicNameValuePair(\"filter\", \"campaign_end_date%3d\"+campaign_end_date));\n\t\tCloseableHttpResponse response = HelperClass.make_get_request(\"/v2/campaign/user\", access_token, list);\n\t\tAssert.assertTrue(!(response.getStatusLine().getStatusCode() == 500 || response.getStatusLine().getStatusCode() == 401), \"Invalid status code is displayed. \"+ \"Returned Status: \"+response.getStatusLine().getStatusCode()+\" \"+response.getStatusLine().getReasonPhrase());\n\t\ttest.log(LogStatus.INFO, \"Execute campaign/user api method with valid filter for campaign_end_date\");\n\t\tBufferedReader rd = new BufferedReader(new InputStreamReader(response.getEntity().getContent()));\n\t\tString line = \"\";\n\t\twhile ((line = rd.readLine()) != null) {\n\t\t // Convert response to JSON object\t\n\t\t JSONParser parser = new JSONParser();\n\t\t JSONObject json = (JSONObject) parser.parse(line);\n\t\t String result_data = json.get(\"result\").toString();\n\t\t Assert.assertEquals(result_data, \"error\", \"API is returning success when non existing campaign_end_date is entered for filter\");\n\t\t test.log(LogStatus.PASS, \"API is returning error when non existing campaign_end_date is entered for filter\");\n\t\t Assert.assertEquals(json.get(\"err\").toString(), \"no records found\", \"Proper validation is not displayed when non existing campaign_end_date is passed.\");\n\t\t test.log(LogStatus.PASS, \"Proper validation is displayed when non existing campaign_end_date is passed.\");\n\t\t}\n\t}", "@Test\n void getAllProfessors() throws Exception{\n MvcResult result = mvc.perform(get(\"/api/v1/professors\")).andExpect(status().isOk()).andExpect(content().contentTypeCompatibleWith(MediaType.APPLICATION_JSON)).andReturn();\n System.out.println(result.getResponse().getContentAsString());\n\n }", "@DisplayName(\"Spartan /api/hello Endpoint Test\")\n @Test\n public void TestHello(){\n Response response = get(\"http://3.95.214.153:8000/api/hello\");\n\n // get status code out of this Response object\n System.out.println(\"response.statusCode() = \" + response.statusCode());//200\n\n // assert the status code is 200\n assertThat(response.statusCode(),is(200));\n\n // how to pretty print entire \"response body\"\n // prettyPrint() -- print and return the body as String\n String responseBodyAsString = response.prettyPrint();//print the body as a String\n\n System.out.println(\"==========================\");\n\n // assertThat the body is Hello from Sparta\n assertThat(responseBodyAsString,is(\"Hello from Sparta\"));\n\n // get the header called ContentType from the response\n //three ways of getting content-Type header in restAssure\n System.out.println(\"response.getHeader(\\\"Content-Type\\\") = \" + response.getHeader(\"Content-Type\"));//text/plain;charset=UTF-8 as String\n System.out.println(\"response.getContentType() = \" + response.getContentType());//text/plain;charset=UTF-8 as String\n System.out.println(\"response.contentType() = \" + response.contentType());//returns text/plain;charset=UTF-8 as String\n System.out.println(\"response.header(\\\"Content-Type\\\") = \" + response.header(\"Content-Type\"));//text/plain;charset=UTF-8\n\n\n // assert That Content-Type is text/plain;charset=UTF-8\n assertThat(response.contentType() , is(\"text/plain;charset=UTF-8\") );\n // assert That Content-Type startWith text\n assertThat(response.contentType(),startsWith(\"text\"));\n\n\n // Easy way to work with Content-type without typing much\n // We can use \"ContentType Enum\" from RestAssured to easily get \"main\" part content-type\n // ContentType.TEXT -->> returns text/plain as Enum(Object) not as String\n // startWith accept a String object\n // so use toString method to convert ContentType.TEXT to String so we can use it startWith\n //response.contentType() ===returns you String\n assertThat(response.contentType(),startsWith(ContentType.TEXT.toString()));// /api/hello end point returns us ONLY plain text\n\n assertThat(response.contentType() , is( not(ContentType.JSON) ) );//since end point does not return us JSON we can assert that this endpoint does not return JSON\n\n\n\n }", "@Test(priority=22)\n\tpublic void campaign_user_with_invalid_filter_operator_for_camp_ext_id() throws URISyntaxException, ClientProtocolException, IOException, ParseException{\n\t\ttest = extent.startTest(\"campaign_user_with_invalid_filter_operator_for_camp_ext_id\", \"To validate whether user is able to get campaign through campaign/user api with invalid filter operator for campaign_ext_id\");\n\t\ttest.assignCategory(\"CFA GET /campaign/user API\");\n\t\ttest_data = HelperClass.readTestData(class_name, \"campaign_user_with_invalid_filter_operator_for_camp_ext_id\");\n\t\tString camp_ext_id = test_data.get(4);\n\t\tString[] operators = {\"+\",\"!\",\"~\",\"#\",\"@\",\"$\",\"%\",\"^\",\"&\",\"*\",\"-\",\"/\",\":\"};\n\t\tString encoded_operator = \"\";\n\t\tfor(String operator:operators){\n\t\t\tencoded_operator = java.net.URLEncoder.encode(operator, \"UTF-8\");\n\t\t\tList<NameValuePair> list = new ArrayList<NameValuePair>();\n\t\t\tlist.add(new BasicNameValuePair(\"filter\", \"campaign_ext_id\"+encoded_operator+camp_ext_id));\n\t\t\tCloseableHttpResponse response = HelperClass.make_get_request(\"/v2/campaign/user\", access_token, list);\n\t\t\tAssert.assertTrue(!(response.getStatusLine().getStatusCode() == 500 || response.getStatusLine().getStatusCode() == 401), \"Invalid status code is displayed. \"+ \"Returned Status: \"+response.getStatusLine().getStatusCode()+\" \"+response.getStatusLine().getReasonPhrase());\n\t\t\ttest.log(LogStatus.INFO, \"Execute campaign/user api method with \"+ operator +\" filter operator for campaign_ext_id\");\n\t\t\tSystem.out.println(\"Execute campaign/user api method with \"+ operator +\" filter operator for campaign_ext_id\");\n\t\t\tBufferedReader rd = new BufferedReader(new InputStreamReader(response.getEntity().getContent()));\n\t\t\tString line = \"\";\n\t\t\twhile ((line = rd.readLine()) != null) {\n\t\t\t // Convert response to JSON object\t\n\t\t\t JSONParser parser = new JSONParser();\n\t\t\t JSONObject json = (JSONObject) parser.parse(line);\n\t\t\t String result_data = json.get(\"result\").toString(); \n\t\t\t Assert.assertEquals(result_data, \"error\", \"Invalid result value is in resonse\");\n\t\t\t String err_data = json.get(\"err\").toString();\n\t\t\t Assert.assertEquals(err_data, \"Unsupported comparator used in filter on rule 1 : campaign_ext_id\"+operator+camp_ext_id);\n\t\t\t test.log(LogStatus.PASS, \"Check whether proper validation message is displayed when \"+ operator +\" filter operator is used for campaign_ext_id\");\n\t\t\t}\t \n\t\t}\n\t}", "@Test\r\n\tpublic void UpdatebookingTest()\r\n\t{\n\t\t\r\n\t\tResponse responsecreate = createBooking(); \r\n\t\tresponsecreate.print();\r\n\t\t//get bookingid of booking\r\n\t\tint bookingid=responsecreate.jsonPath().getInt(\"bookingid\");\r\n\t\t\r\n\t\t//update \r\n\t\t//\r\n\t\t\r\n\t\tJSONObject body=new JSONObject();\r\n\t\tbody.put(\"firstname\", \"Devaaa\");\r\n\t\tbody.put(\"lastname\", \"Dadhavjadhav\");\r\n\t\tbody.put(\"totalprice\", 125);\r\n\t\tbody.put(\"depositpaid\", false);\r\n\r\n \r\n\t\tJSONObject bookingdates=new JSONObject();\r\n\t\tbookingdates.put(\"checkin\", \"2021-08-16\");\r\n\t\tbookingdates.put(\"checkout\", \"2021-09-17\");\r\n\t\t\r\n\t\tbody.put(\"bookingdates\", bookingdates);\r\n\t\tbody.put(\"additionalneeds\", \"Breakfast\");\r\n\t\t\r\n\t\t// update booking //username and password add\r\n\r\n\t\tResponse responseUpdate=RestAssured.given().auth().preemptive().basic(\"admin\", \"password123\").contentType(ContentType.JSON)\r\n\t\t\t\t.body(body.toString()).put(\"https://restful-booker.herokuapp.com/booking/\"+ bookingid);\r\n\t\t\r\n\t\tresponseUpdate.print();\r\n\t\tresponseUpdate.getStatusCode();\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t// verify response 200\r\n\t\tAssert.assertEquals(responseUpdate.getStatusCode(), 200);\r\n//\t\t\t//verify all field\r\n//\t\t\tSoftAssert softassert=new SoftAssert();\r\n//\t\t\t\r\n//\t\t\tString actualfirstname=response.jsonPath().getString(\"firstname\");\r\n//\t\t\tsoftassert.assertEquals(actualfirstname, \"deva\");\r\n//\t\t\t\r\n//\t\t\tString actuallastname=response.jsonPath().getString(\"lastname\");\r\n//\t\t\tsoftassert.assertEquals(actuallastname, \"jadhav\");\r\n//\t\t\t\r\n//\t\t\tint actualtotalprice=response.jsonPath().getInt(\"totalprice\");\r\n//\t\t\tsoftassert.assertEquals(actualtotalprice, 255);\r\n//\t\t\t\r\n//\t\t\tboolean actualdepositpaid=response.jsonPath().getBoolean(\"depositpaid\");\r\n//\t\t\tsoftassert.assertFalse(actualdepositpaid, \"false\");\r\n//\t\t\t \r\n//\t\t\tString actualcheckin=response.jsonPath().getString(\"bookingdates.checkin\");\r\n//\t\t\tsoftassert.assertEquals(actualcheckin, \"2021-08-14\");\r\n//\t\t\t\r\n//\t\t\tString actualcheckout=response.jsonPath().getString(\"bookingdates.checkout\");\r\n//\t\t\tsoftassert.assertEquals(actualcheckout, \"2021-09-07\");\r\n//\t\t\t\r\n//\t\t\tString actualadditionalneeds=response.jsonPath().getString(\"additionalneeds\");\r\n//\t\t\tsoftassert.assertEquals(actualadditionalneeds, \"c\");\r\n//\t\t\tsoftassert.assertAll();\r\n//\t\r\n\r\n}", "@Then(\"List Employee specific details\")\r\n\tpublic void list_Employee_specific_details() {\n\t\trestTester.getSpecificEmployeeIdRecord(generatedEmployeeId);\r\n\t\tSystem.out.println(restTester.returnResponseAsString());\r\n\t\tassertTrue(restTester.returnResponseAsString().contains(\"false\"));\r\n\t}", "@Test\n\tpublic void testGetcompanyDetailsApi() {\n\t\tCompany company = new Company(\"DataSolutions\", \"Marthahalli\",\n\t\t\t\t\"Bangalore\", \"India\", \"9880440671\");\n\t\tcompanyRepository.save(company);\n\n\t\tInteger companyId = company.getCompanyId();\n\n\t\t// Now make a call to the API to get details of the company\n\t\tCompany apiResponse = restTemplate.getForObject(\n\t\t\t\t\"http://localhost:8888/companies/\" + companyId, Company.class);\n\n\t\t// Verify that the data from the API and data saved in the DB are same\n\t\tassertNotNull(apiResponse);\n\t\tassertEquals(company.getName(), apiResponse.getName());\n\t\tassertEquals(company.getCompanyId(), apiResponse.getCompanyId());\n\t\tassertEquals(company.getAdress(), apiResponse.getAdress());\n\t\tassertEquals(company.getCountry(), apiResponse.getCountry());\n\n\t\t// Delete the Test data created\n\t\tcompanyRepository.delete(apiResponse.getCompanyId());\n\t}", "@Test\n public void testAccountGET() {\n Response response = webTarget\n .path(\"account/1\")\n .request(APPLICATION_JSON)\n .get();\n ChequingAccount c = response.readEntity(ChequingAccount.class);\n assertThat(response.getStatus(), is(200));\n assertEquals(1000.00, c.getBalance(),0.01);\n }", "public interface EmployeeResource {\n\n /**\n * Retrieves the {@link Employee} resource by id.\n *\n * @param id employee id.\n * @return {@link Employee} resource.\n */\n @GetMapping(value = \"/v1/bfs/employees/{id}\", produces = MediaType.APPLICATION_JSON_VALUE)\n ResponseEntity<Employee> employeeGetById(@PathVariable(\"id\") String id) throws EmployeeNotFoundException;\n\n // ----------------------------------------------------------\n // TODO - add a new operation for creating employee resource.\n // ----------------------------------------------------------\n \n\t/**\n * Inserts employee record.\n * \n * @Valid annotation helps to validate \n * the javax validations on the employee POJO\n *\n * @param uuid the uuid\n * @param employee the employee\n * @return the response entity\n * @throws BadRequestException the bad request exception\n */\n @PostMapping(value = \"/v1/bfs/employees\", consumes = MediaType.APPLICATION_JSON_VALUE, produces = MediaType.APPLICATION_JSON_VALUE)\n ResponseEntity<Employee> insertEmployee(\n \t\t@RequestHeader String uuid,\n \t\t@Valid @RequestBody Employee employee) throws BadRequestException;\n}", "@Test(priority=38)\n\tpublic void campaign_user_with_invalid_filter_operetor_for_camp_start_date() throws URISyntaxException, ClientProtocolException, IOException, ParseException{\n\t\ttest = extent.startTest(\"campaign_list_with_invalid_filter_operetor_for_camp_start_date\", \"To validate whether user is able to get campaign and its users through campaign/user api with invalid filter operator for campaign_start_date\");\n\t\ttest.assignCategory(\"CFA GET /campaign/user API\");\n\t\tString campaign_start_date = camp_start_date;\n\t\t\tString[] operators = {\"+\",\"!\",\"~\",\"#\",\"@\",\"$\",\"%\",\"^\",\"&\",\"*\",\"-\",\"/\",\":\"};\n\t\t\tString encoded_operator = \"\";\n\t\t\tfor(String operator:operators){\n\t\t\t\tencoded_operator = java.net.URLEncoder.encode(operator, \"UTF-8\");\n\t\t\t\tList<NameValuePair> list = new ArrayList<NameValuePair>();\n\t\t\t\tlist.add(new BasicNameValuePair(\"filter\", \"campaign_start_date\"+encoded_operator+campaign_start_date));\n\t\t\t\tCloseableHttpResponse response = HelperClass.make_get_request(\"/v2/campaign/user\", access_token, list);\n\t\t\t\tAssert.assertTrue(!(response.getStatusLine().getStatusCode() == 500 || response.getStatusLine().getStatusCode() == 401), \"Invalid status code is displayed. \"+ \"Returned Status: \"+response.getStatusLine().getStatusCode()+\" \"+response.getStatusLine().getReasonPhrase());\n\t\t\t\ttest.log(LogStatus.INFO, \"Execute campaign/user api method with \"+ operator +\" filter operator for campaign_start_date\");\n\t\t\t\tSystem.out.println(\"Execute campaign/user api method with \"+ operator +\" filter operator for campaign_start_date\");\n\t\t\t\tBufferedReader rd = new BufferedReader(new InputStreamReader(response.getEntity().getContent()));\n\t\t\t\tString line = \"\";\n\t\t\t\twhile ((line = rd.readLine()) != null) {\n\t\t\t\t // Convert response to JSON object\t\n\t\t\t\t JSONParser parser = new JSONParser();\n\t\t\t\t JSONObject json = (JSONObject) parser.parse(line);\n\t\t\t\t String result_data = json.get(\"result\").toString(); \n\t\t\t\t Assert.assertEquals(result_data, \"error\", \"Invalid result value is in resonse\");\n\t\t\t\t String err_data = json.get(\"err\").toString();\n\t\t\t\t Assert.assertEquals(err_data, \"Unsupported comparator used in filter on rule 1 : campaign_start_date\"+operator+campaign_start_date);\n\t\t\t\t test.log(LogStatus.PASS, \"Check whether proper validation message is displayed when \"+ operator +\" filter operator is used for campaign_start_date\");\n\t\t\t\t}\t \n\t\t\t}\t\n\t}", "@Test(priority=41)\n\tpublic void campaign_user_with_invalid_filter_operator_for_camp_end_date() throws URISyntaxException, ClientProtocolException, IOException, ParseException{\n\t\ttest = extent.startTest(\"campaign_user_with_invalid_filter_operator_for_camp_end_date\", \"To validate whether user is able to get campaign and its users through campaign/user api with invalid filter operator for campaign_end_date\");\n\t\ttest.assignCategory(\"CFA GET /campaign/user API\");\n\t\ttest_data = HelperClass.readTestData(class_name, \"campaign_user_with_invalid_filter_operator_for_camp_end_date\");\n\t\tString campaign_end_date = test_data.get(4);\n\t\tString[] operators = {\"+\",\"!\",\"~\",\"#\",\"@\",\"$\",\"%\",\"^\",\"&\",\"*\",\"-\",\"/\",\":\"};\n\t\tString encoded_operator = \"\";\n\t\tfor(String operator:operators){\n\t\t\tencoded_operator = java.net.URLEncoder.encode(operator, \"UTF-8\");\n\t\t\tList<NameValuePair> list = new ArrayList<NameValuePair>();\n\t\t\tlist.add(new BasicNameValuePair(\"filter\", \"campaign_end_date\"+encoded_operator+campaign_end_date));\n\t\t\tCloseableHttpResponse response = HelperClass.make_get_request(\"/v2/campaign/user\", access_token, list);\n\t\t\tAssert.assertTrue(!(response.getStatusLine().getStatusCode() == 500 || response.getStatusLine().getStatusCode() == 401), \"Invalid status code is displayed. \"+ \"Returned Status: \"+response.getStatusLine().getStatusCode()+\" \"+response.getStatusLine().getReasonPhrase());\n\t\t\ttest.log(LogStatus.INFO, \"Execute campaign/user api method with \"+ operator +\" filter operator for campaign_end_date\");\n\t\t\tSystem.out.println(\"Execute campaign/user api method with \"+ operator +\" filter operator for campaign_end_date\");\n\t\t\tBufferedReader rd = new BufferedReader(new InputStreamReader(response.getEntity().getContent()));\n\t\t\tString line = \"\";\n\t\t\twhile ((line = rd.readLine()) != null) {\n\t\t\t // Convert response to JSON object\t\n\t\t\t JSONParser parser = new JSONParser();\n\t\t\t JSONObject json = (JSONObject) parser.parse(line);\n\t\t\t String result_data = json.get(\"result\").toString(); \n\t\t\t Assert.assertEquals(result_data, \"error\", \"Invalid result value is in resonse\");\n\t\t\t String err_data = json.get(\"err\").toString();\n\t\t\t Assert.assertEquals(err_data, \"Unsupported comparator used in filter on rule 1 : campaign_end_date\"+operator+campaign_end_date);\n\t\t\t test.log(LogStatus.PASS, \"Check whether proper validation message is displayed when \"+ operator +\" filter operator is used for campaign_end_date\");\n\t\t\t}\t \n\t\t}\t\n\t}", "@Test(priority=55)\n\tpublic void campaign_user_with_invalid_filter_operator_for_user_ext_id() throws URISyntaxException, ClientProtocolException, IOException, ParseException{\n\t\ttest = extent.startTest(\"campaign_user_with_invalid_filter_operator_for_user_ext_id\", \"To validate whether user is able to get campaign and its users through campaign/user api with invalid filter operator for user_ext_id\");\n\t\ttest.assignCategory(\"CFA GET /campaign/user API\");\n\t\ttest_data = HelperClass.readTestData(class_name, \"campaign_user_with_invalid_filter_operator_for_user_ext_id\");\n\t\tString user_ext_id = \"\";\n\t\tString[] operators = {\"+\",\"!\",\"~\",\"#\",\"@\",\"$\",\"%\",\"^\",\"&\",\"*\",\"-\",\"/\",\":\"};\n\t\tString encoded_operator = \"\";\n\t\tfor(String operator:operators){\n\t\t\tencoded_operator = java.net.URLEncoder.encode(operator, \"UTF-8\");\n\t\t\tList<NameValuePair> list = new ArrayList<NameValuePair>();\n\t\t\tlist.add(new BasicNameValuePair(\"filter\", \"user_ext_id\"+encoded_operator+user_ext_id));\n\t\t\tCloseableHttpResponse response = HelperClass.make_get_request(\"/v2/campaign/user\", access_token, list);\n\t\t\tAssert.assertTrue(!(response.getStatusLine().getStatusCode() == 500 || response.getStatusLine().getStatusCode() == 401), \"Invalid status code is displayed. \"+ \"Returned Status: \"+response.getStatusLine().getStatusCode()+\" \"+response.getStatusLine().getReasonPhrase());\n\t\t\ttest.log(LogStatus.INFO, \"Execute campaign/user api method with \"+ operator +\" filter operator for user_ext_id\");\n\t\t\tSystem.out.println(\"Execute campaign/user api method with \"+ operator +\" filter operator for user_ext_id\");\n\t\t\tBufferedReader rd = new BufferedReader(new InputStreamReader(response.getEntity().getContent()));\n\t\t\tString line = \"\";\n\t\t\twhile ((line = rd.readLine()) != null) {\n\t\t\t // Convert response to JSON object\t\n\t\t\t JSONParser parser = new JSONParser();\n\t\t\t JSONObject json = (JSONObject) parser.parse(line);\n\t\t\t String result_data = json.get(\"result\").toString(); \n\t\t\t Assert.assertEquals(result_data, \"error\", \"Invalid result value is in resonse\");\n\t\t\t String err_data = json.get(\"err\").toString();\n\t\t\t Assert.assertEquals(err_data, \"Unsupported comparator used in filter on rule 1 : user_ext_id\"+operator+user_ext_id);\n\t\t\t test.log(LogStatus.PASS, \"Check whether proper validation message is displayed when \"+ operator +\" filter operator is used for user_ext_id\");\n\t\t\t}\t \n\t\t}\t\n\t}", "@Test\n public void testService()\n {\n final JsonSchemaValidator jsonValidator =\n JsonSchemaValidator.matchesJsonSchemaInClasspath(\"costcenters-schema.json\");\n\n // HTTP GET response OK, JSON header and valid schema\n given().get(\"/costcenters\").then().assertThat().statusCode(200).contentType(ContentType.JSON).body(\n jsonValidator);\n }", "@Test(priority=39)\t\n\tpublic void campaign_user_with_filter_for_nonexisting_camp_start_date() throws URISyntaxException, ClientProtocolException, IOException, ParseException{\n\t\ttest = extent.startTest(\"campaign_user_with_filter_for_nonexisting_camp_start_date\", \"To validate whether user is able to get campaign and its users through campaign/user api with filter for non existing campaign_start_date\");\n\t\ttest.assignCategory(\"CFA GET /campaign/user API\");\n\t\ttest_data = HelperClass.readTestData(class_name, \"campaign_user_with_filter_for_nonexisting_camp_start_date\");\n\t\tString campaign_start_date = test_data.get(4);\n\t\tList<NameValuePair> list = new ArrayList<NameValuePair>();\n\t\tlist.add(new BasicNameValuePair(\"filter\", \"campaign_start_date%3d\"+campaign_start_date));\n\t\tCloseableHttpResponse response = HelperClass.make_get_request(\"/v2/campaign/user\", access_token, list);\n\t\tAssert.assertTrue(!(response.getStatusLine().getStatusCode() == 500 || response.getStatusLine().getStatusCode() == 401), \"Invalid status code is displayed. \"+ \"Returned Status: \"+response.getStatusLine().getStatusCode()+\" \"+response.getStatusLine().getReasonPhrase());\n\t\ttest.log(LogStatus.INFO, \"Execute campaign/user api method with valid filter for campaign_start_date\");\n\t\tBufferedReader rd = new BufferedReader(new InputStreamReader(response.getEntity().getContent()));\n\t\tString line = \"\";\n\t\twhile ((line = rd.readLine()) != null) {\n\t\t // Convert response to JSON object\t\n\t\t JSONParser parser = new JSONParser();\n\t\t JSONObject json = (JSONObject) parser.parse(line);\n\t\t String result_data = json.get(\"result\").toString();\n\t\t Assert.assertEquals(result_data, \"error\", \"API is returning success when non existing campaign_start_date is entered for filter\");\n\t\t test.log(LogStatus.PASS, \"API is returning error when non existing campaign_start_date is entered for filter\");\n\t\t Assert.assertEquals(json.get(\"err\").toString(), \"no records found\", \"Proper validation is not displayed when non existing campaign_start_date is passed.\");\n\t\t test.log(LogStatus.PASS, \"Proper validation is displayed when non existing campaign_start_date is passed.\");\n\t\t}\n\t}", "@Test\n\tpublic void test_04() {\n\n\t\t//Json data configuration\n\t\tcomplexobjectinformationclass childdataobject = new complexobjectinformationclass();\n\t\tcomplexobjectclass dataobject = new complexobjectclass();\n\n\t\tchilddataobject.setEmail(\"[email protected]\");\n\t\tchilddataobject.setPhone(\"12300000\");\n\t\tchilddataobject.setAddress(\"Bangladesh\");\n\n\t\tdataobject.setId(\"2\");\n\t\tdataobject.setAuthor(\"ataure\");\n\t\tdataobject.setTitle(\"This is title\");\n\t\tdataobject.setinformation(childdataobject);\n\n\n\t\t//Request body\n\t\tResponse reponse = given().\n\t\t\t\twhen().\n\t\t\t\tcontentType(ContentType.JSON).\n\t\t\t\tbody(dataobject).\n\t\t\t\tpost(\"http://localhost:3000/posts\");\n\n\t\tSystem.out.println(\"updated response data \"+ reponse.asString());\t\t\n\t}", "@Test\n public void negativeScenario(){\n // when().get(\"http://34.223.219.142:1212/ords/hr/employees/1234\")\n // .then().statusCode(404);\n Response response = when().get(\"http://34.223.219.142:1212/ords/hr/employees/1234\");\n assertEquals(response.statusCode(),404);\n assertTrue(response.asString().contains(\"Not Found\"));\n response.prettyPrint();\n\n }", "@Test\n public void Task6() {\n Body body= given()\n .when()\n .get(\"https://jsonplaceholder.typicode.com/todos/2\")\n .then()\n .statusCode(200)\n .log().body()\n .extract().as(Body.class)\n \n\n ;\n System.out.println(\"body = \" + body);\n\n }", "@Test(priority=32)\n\tpublic void campaign_user_with_invalid_filter_operetor_for_camp_created() throws URISyntaxException, ClientProtocolException, IOException, ParseException{\n\t\ttest = extent.startTest(\"campaign_user_with_invalid_filter_operetor_for_camp_created\", \"To validate whether user is able to get campaign through campaign/user api with invalid filter operator for campaign_created\");\n\t\ttest.assignCategory(\"CFA GET /campaign/user API\");\n\t\tString camp_created = campaign_created;\n\t\t\tString[] operators = {\"+\",\"!\",\"~\",\"#\",\"@\",\"$\",\"%\",\"^\",\"&\",\"*\",\"-\",\"/\",\":\"};\n\t\t\tString encoded_operator = \"\";\n\t\t\tfor(String operator:operators){\n\t\t\t\tencoded_operator = java.net.URLEncoder.encode(operator, \"UTF-8\");\n\t\t\t\tList<NameValuePair> list = new ArrayList<NameValuePair>();\n\t\t\t\tlist.add(new BasicNameValuePair(\"filter\", \"campaign_created\"+encoded_operator+camp_created));\n\t\t\t\tCloseableHttpResponse response = HelperClass.make_get_request(\"/v2/campaign/user\", access_token, list);\n\t\t\t\tAssert.assertTrue(!(response.getStatusLine().getStatusCode() == 500 || response.getStatusLine().getStatusCode() == 401), \"Invalid status code is displayed. \"+ \"Returned Status: \"+response.getStatusLine().getStatusCode()+\" \"+response.getStatusLine().getReasonPhrase());\n\t\t\t\ttest.log(LogStatus.INFO, \"Execute campaign/user api method with \"+ operator +\" filter operator for campaign_created\");\n\t\t\t\tSystem.out.println(\"Execute campaign/user api method with \"+ operator +\" filter operator for campaign_created\");\n\t\t\t\tBufferedReader rd = new BufferedReader(new InputStreamReader(response.getEntity().getContent()));\n\t\t\t\tString line = \"\";\n\t\t\t\twhile ((line = rd.readLine()) != null) {\n\t\t\t\t // Convert response to JSON object\t\n\t\t\t\t JSONParser parser = new JSONParser();\n\t\t\t\t JSONObject json = (JSONObject) parser.parse(line);\n\t\t\t\t String result_data = json.get(\"result\").toString(); \n\t\t\t\t Assert.assertEquals(result_data, \"error\", \"Invalid result value is in resonse\");\n\t\t\t\t String err_data = json.get(\"err\").toString();\n\t\t\t\t Assert.assertEquals(err_data, \"Unsupported comparator used in filter on rule 1 : campaign_created\"+operator+camp_created);\n\t\t\t\t test.log(LogStatus.PASS, \"Check whether proper validation message is displayed when \"+ operator +\" filter operator is used for campaign_created\");\n\t\t\t\t}\t \n\t\t\t}\t\n\t}", "@Test\n public void testGetTravel() throws Exception{\n mockMVC.perform(get(\"/user/1/travel/1\")\n .header(\"Authorization\", \"1\"))\n .andExpect(status().isOk())\n .andExpect(content().contentType(TestUtil.APPLICATION_JSON_UTF8))\n .andExpect(jsonPath(\"$.id\", is(\"1\")))\n .andExpect(jsonPath(\"$.name\", is(\"travel1\")))\n .andExpect(jsonPath(\"$.time_interval[0]\", is(\"10:15:30\")))\n .andExpect(jsonPath(\"$.time_interval[1]\", is(\"12:15:30\")))\n .andExpect(jsonPath(\"$.is_arrival_time\", is(false)))\n .andExpect(jsonPath(\"$.recurring[0]\", is(false)))\n .andExpect(jsonPath(\"$.recurring[1]\", is(false)))\n .andExpect(jsonPath(\"$.recurring[2]\", is(false)))\n .andExpect(jsonPath(\"$.recurring[3]\", is(false)))\n .andExpect(jsonPath(\"$.recurring[4]\", is(false)))\n .andExpect(jsonPath(\"$.recurring[5]\", is(false)))\n .andExpect(jsonPath(\"$.recurring[6]\", is(false)))\n .andExpect(jsonPath(\"$.startpoint.street\", is(\"teststreet\")))\n .andExpect(jsonPath(\"$.startpoint.housenumber\", is(\"1\")))\n .andExpect(jsonPath(\"$.startpoint.city\", is(\"testcity\")))\n .andExpect(jsonPath(\"$.startpoint.country\", is(\"BE\")))\n .andExpect(jsonPath(\"$.startpoint.postal_code\", is(\"1234\")))\n .andExpect(jsonPath(\"$.startpoint.coordinates.lat\", is(50.0)))\n .andExpect(jsonPath(\"$.startpoint.coordinates.lon\", is(60.0)))\n .andExpect(jsonPath(\"$.endpoint.street\", is(\"teststreet\")))\n .andExpect(jsonPath(\"$.endpoint.housenumber\", is(\"5\")))\n .andExpect(jsonPath(\"$.endpoint.city\", is(\"testcity\")))\n .andExpect(jsonPath(\"$.endpoint.country\", is(\"BE\")))\n .andExpect(jsonPath(\"$.endpoint.postal_code\", is(\"1234\")))\n .andExpect(jsonPath(\"$.endpoint.coordinates.lat\", is(55.0)))\n .andExpect(jsonPath(\"$.endpoint.coordinates.lon\", is(65.0)));\n \n verify(databaseMock, times(1)).getUser(anyInt());\n verifyNoMoreInteractions(databaseMock);\n }", "public static void main(String[] args) throws IOException {\n\tRestAssured.baseURI=\"https://rahulshettyacademy.com\";\n\tString response=given().log().all().queryParam(\"key\", \"qaclick123\").header(\"Content-Type\",\"application/json\")\n\t//.body(Payload.AddPlace()).when().post(\"maps/api/place/add/json\")\n\t/*This will help to convert the file to an byte format first and then it coverts the byte format to String */\n\t.body(new String(Files.readAllBytes(Paths.get(\"C:\\\\Users\\\\swath\\\\eclipse-workspace\\\\RestAssured_Rahul\\\\InputFiles\\\\Files.json\"))))\n\t.when().post(\"maps/api/place/add/json\")\n\t.then().assertThat().statusCode(200).body(\"scope\",equalTo(\"APP\"))\n\t.header(\"Server\", \"Apache/2.4.18 (Ubuntu)\").extract().response().asString();\n\t\n\tSystem.out.println(response);\n\tJsonPath js=new JsonPath(response);//JsonPath is used for Parsing JSON\n\tString placeid=js.getString(\"place_id\");\n\tString id=js.getString(\"id\");\n\tSystem.out.println(\"Placeid is :\"+placeid);\n\tSystem.out.println(\"Id is\"+id);\n\t\n\t//Update Place\n\tString newAddress=\"Summer Walk, Africa\";\n\tgiven().log().all().queryParam(\"Key\", \"qaclick123\").header(\"Content-Type\",\"application/json\")\n\t.body(\"{\\r\\n\"\n\t\t\t+ \"\\\"place_id\\\":\\\"\"+placeid+\"\\\",\\r\\n\"\n\t\t\t+ \"\\\"address\\\":\\\"\"+newAddress+\"\\\",\\r\\n\"\n\t\t\t+ \"\\\"key\\\":\\\"qaclick123\\\"\\r\\n\"\n\t\t\t+ \"}\\r\\n\"\n\t\t\t+ \"\")\n\t.when().put(\"maps/api/place/update/json\")\n\t.then().assertThat().log().all().statusCode(200).body(\"msg\", equalTo(\"Address successfully updated\"));\n\n\t//Get Place\n\tString getPlaceResponse=given().log().all().queryParam(\"key\", \"qaclick123\")\n\t.queryParam(\"place_id\",placeid)\n\t.when().get(\"maps/api/place/get/json\")\n\t.then().assertThat().log().all().statusCode(200).extract().response().asString();\n\tSystem.out.println(\"GetPlaceResponse\"+getPlaceResponse);\n\t\n\tJsonPath js1=ReUsableMethods.rawToJson(getPlaceResponse);\n\tString actual=js1.getString(\"address\");\n\tSystem.out.println(\"Actualaddress\"+actual);\n\tAssert.assertEquals(actual, newAddress);\n\t\n\t\t\t\n\t\n\t\n}", "@Test(priority=25)\n\tpublic void campaign_user_with_invalid_filter_operetor_for_camp_name() throws URISyntaxException, ClientProtocolException, IOException, ParseException{\n\t\ttest = extent.startTest(\"campaign_user_with_invalid_filter_operetor_for_camp_name\", \"To validate whether user is able to get campaign through campaign/user api with invalid filter operator for campaign_name\");\n\t\ttest.assignCategory(\"CFA GET /campaign/user API\");\n\t\tString camp_name = campaign_name;\n\t\tString[] operators = {\"+\",\"!\",\"~\",\"#\",\"@\",\"$\",\"%\",\"^\",\"&\",\"*\",\"-\",\"/\",\":\"};\n\t\tString encoded_operator = \"\";\n\t\tfor(String operator:operators){\n\t\t\tencoded_operator = java.net.URLEncoder.encode(operator, \"UTF-8\");\n\t\t\tList<NameValuePair> list = new ArrayList<NameValuePair>();\n\t\t\tlist.add(new BasicNameValuePair(\"filter\", \"campaign_name\"+encoded_operator+camp_name));\n\t\t\tCloseableHttpResponse response = HelperClass.make_get_request(\"/v2/campaign/user\", access_token, list);\n\t\t\tAssert.assertTrue(!(response.getStatusLine().getStatusCode() == 500 || response.getStatusLine().getStatusCode() == 401), \"Invalid status code is displayed. \"+ \"Returned Status: \"+response.getStatusLine().getStatusCode()+\" \"+response.getStatusLine().getReasonPhrase());\n\t\t\ttest.log(LogStatus.INFO, \"Execute campaign/user api method with \"+ operator +\" filter operator for campaign_name\");\n\t\t\tSystem.out.println(\"Execute campaign/user api method with \"+ operator +\" filter operator for campaign_name\");\n\t\t\tBufferedReader rd = new BufferedReader(new InputStreamReader(response.getEntity().getContent()));\n\t\t\tString line = \"\";\n\t\t\twhile ((line = rd.readLine()) != null) {\n\t\t\t // Convert response to JSON object\t\n\t\t\t JSONParser parser = new JSONParser();\n\t\t\t JSONObject json = (JSONObject) parser.parse(line);\n\t\t\t String result_data = json.get(\"result\").toString(); \n\t\t\t Assert.assertEquals(result_data, \"error\", \"Invalid result value is in resonse\");\n\t\t\t String err_data = json.get(\"err\").toString();\n\t\t\t Assert.assertEquals(err_data, \"Unsupported comparator used in filter on rule 1 : campaign_name\"+operator+camp_name);\n\t\t\t test.log(LogStatus.PASS, \"Check whether proper validation message is displayed when \"+ operator +\" filter operator is used for campaign_name\");\n\t\t\t}\t \n\t\t}\n\t}", "public Response getRequestForGetAPI(String endpoint) {\n response = given().contentType(ContentType.JSON)\n .when()\n .get(endpoint)\n .then()\n .extract().response();\n\n System.out.println(\"Response of API :\"+response.getBody().asString());\n\n String body = response.getBody().asString();\n JSONArray responseArray= new JSONArray(body);\n comment.setBody(responseArray);\n return response;\n\n }", "@Test(priority=56)\t\n\tpublic void campaign_user_with_filter_for_nonexisting_user_ext_id() throws URISyntaxException, ClientProtocolException, IOException, ParseException{\n\t\ttest = extent.startTest(\"campaign_user_with_filter_for_nonexisting_user_ext_id\", \"To validate whether user is able to get campaign and its users through campaign/user api with filter for non existing user_ext_id\");\n\t\ttest.assignCategory(\"CFA GET /campaign/user API\");\n\t\ttest_data = HelperClass.readTestData(class_name, \"campaign_user_with_filter_for_nonexisting_user_ext_id\");\n\t\tString user_ext_id = test_data.get(4);\n\t\tList<NameValuePair> list = new ArrayList<NameValuePair>();\n\t\tlist.add(new BasicNameValuePair(\"filter\", \"user_ext_id%3d\"+user_ext_id));\n\t\tCloseableHttpResponse response = HelperClass.make_get_request(\"/v2/campaign/user\", access_token, list);\n\t\tAssert.assertTrue(!(response.getStatusLine().getStatusCode() == 500 || response.getStatusLine().getStatusCode() == 401), \"Invalid status code is displayed. \"+ \"Returned Status: \"+response.getStatusLine().getStatusCode()+\" \"+response.getStatusLine().getReasonPhrase());\n\t\ttest.log(LogStatus.INFO, \"Execute campaign/user api method with valid filter for non existing user_ext_id\");\n\t\tBufferedReader rd = new BufferedReader(new InputStreamReader(response.getEntity().getContent()));\n\t\tString line = \"\";\n\t\twhile ((line = rd.readLine()) != null) {\n\t\t // Convert response to JSON object\t\n\t\t JSONParser parser = new JSONParser();\n\t\t JSONObject json = (JSONObject) parser.parse(line);\n\t\t String result_data = json.get(\"result\").toString();\n\t\t Assert.assertEquals(result_data, \"error\", \"API is returning success when non existing user_ext_id is entered for filter\");\n\t\t test.log(LogStatus.PASS, \"API is returning error when non existing user_ext_id is entered for filter\");\n\t\t Assert.assertEquals(json.get(\"err\").toString(), \"no records found\", \"Proper validation is not displayed when non existing user_ext_id is passed.\");\n\t\t test.log(LogStatus.PASS, \"Proper validation is displayed when non existing user_ext_id is passed.\");\n\t\t}\n\t}", "@Test\n public void testInfoEndpoints() throws Exception {\n List<QueryFormat> qfs = new ArrayList<>();\n\n wireMockRule.stubFor(any(anyUrl())\n .willReturn(aResponse()\n .withStatus(200)\n .withBody(objectMapper.writeValueAsString(qfs))));\n\n String uri = composeURL(endpointUrl, \"/info/\" + resourceId);\n\n\n HttpResponse response = retrievePostResponse(uri, headers, \"\");\n assertEquals(\"Missing credentials should return 401\", 401, response.getStatusLine().getStatusCode());\n\n QueryRequest infoRequest = new QueryRequest();\n Map<String, String> clientCredentials = new HashMap<String, String>();\n //TODO I guess we need some way to identify the token key? Maybe V1.4_BEARER_TOKEN\n clientCredentials.put(IRCTResourceRS.IRCT_BEARER_TOKEN_KEY, \"testToken\");\n infoRequest.setResourceCredentials(clientCredentials);\n String body = objectMapper.writeValueAsString(infoRequest);\n\n response = retrievePostResponse(uri, headers, body);\n assertEquals(\"Response status code should be 200\", 200, response.getStatusLine().getStatusCode());\n ResourceInfo responseInfo = HttpClientUtil.readObjectFromResponse(response, ResourceInfo.class);\n assertNotNull(\"Resource response should not be null\", responseInfo);\n assertNotNull(\"Resource response should have queryFormats\", responseInfo.getQueryFormats());\n assertNotNull(\"Resource response should have a name\", responseInfo.getName());\n\n //Try with a non-existent id\n uri = composeURL(endpointUrl , \"/info/3b2437fe-df56-4360-8156-27bcf0b1a467\");\n response = retrievePostResponse(uri, headers, body);\n assertEquals(\"Incorrect resource Id should return 500\", 500, response.getStatusLine().getStatusCode());\n }", "@Test\n public void Task2() {\n String text=\n given()\n .when()\n .get(\"https://httpstat.us/203\")\n .then()\n .statusCode(203)\n .contentType(ContentType.TEXT)\n // .body(equalTo(\"203 Non-Authoritative Information\")) // aslinda böyle yapmaliyiz\n .extract().body().asString()\n ;\n Assert.assertEquals(text,\"203 Non-Authoritative Information\");\n // 2 yol\n given()\n .when()\n .get(\"https://httpstat.us/203\")\n .then()\n .statusCode(203)\n .contentType(ContentType.TEXT)\n .body(equalTo(\"203 Non-Authoritative Information\")) // aslinda böyle yapmaliyiz\n ;\n }", "@Test\n public void testFindDietStatusById() throws Exception{\n String URI = \"/healthreminder/followup_dietstatus_find/{patientId}\";\n FollowUpDietStatusInfo followUpDietStatusInfo = new FollowUpDietStatusInfo();\n followUpDietStatusInfo.setPatientId(1);\n followUpDietStatusInfo.setDietStatus(true);\n\t\t\n\t\tString jsonInput = this.converttoJson(followUpDietStatusInfo);\n\n Mockito.when(followUpDietStatusInfoServices.findDietStatusById(Mockito.anyInt())).thenReturn(followUpDietStatusInfo);\n MvcResult mvcResult = this.mockMvc.perform(MockMvcRequestBuilders.get(URI, 1).accept(MediaType.APPLICATION_JSON))\n .andReturn();\n MockHttpServletResponse mockHttpServletResponse = mvcResult.getResponse();\n String jsonOutput = mockHttpServletResponse.getContentAsString();\n\n assertThat(jsonInput).isEqualTo(jsonOutput);\n }", "@Test(priority=47)\n\tpublic void campaign_user_with_invalid_filter_operator_for_camp_owner_id() throws URISyntaxException, ClientProtocolException, IOException, ParseException{\n\t\ttest = extent.startTest(\"campaign_user_with_invalid_filter_operator_for_camp_owner_id\", \"To validate whether user is able to get campaign through campaign/user api with invalid filter operator for campaign_owner_user_id\");\n\t\ttest.assignCategory(\"CFA GET /campaign/user API\");\n\t\tString camp_owner_user_id = campaign_owner_user_id;\n\t\tString[] operators = {\"+\",\"!\",\"~\",\"#\",\"@\",\"$\",\"%\",\"^\",\"&\",\"*\",\"-\",\"/\",\":\"};\n\t\tString encoded_operator = \"\";\n\t\tfor(String operator:operators){\n\t\t\tencoded_operator = java.net.URLEncoder.encode(operator, \"UTF-8\");\n\t\t\tList<NameValuePair> list = new ArrayList<NameValuePair>();\n\t\t\tlist.add(new BasicNameValuePair(\"filter\", \"campaign_owner_user_id\"+encoded_operator+camp_owner_user_id));\n\t\t\tCloseableHttpResponse response = HelperClass.make_get_request(\"/v2/campaign/user\", access_token, list);\n\t\t\tAssert.assertTrue(!(response.getStatusLine().getStatusCode() == 500 || response.getStatusLine().getStatusCode() == 401), \"Invalid status code is displayed. \"+ \"Returned Status: \"+response.getStatusLine().getStatusCode()+\" \"+response.getStatusLine().getReasonPhrase());\n\t\t\ttest.log(LogStatus.INFO, \"Execute campaign/user api method with \"+ operator +\" filter operator for campaign_owner_user_id\");\n\t\t\tSystem.out.println(\"Execute campaign/user api method with \"+ operator +\" filter operator for campaign_owner_user_id\");\n\t\t\tBufferedReader rd = new BufferedReader(new InputStreamReader(response.getEntity().getContent()));\n\t\t\tString line = \"\";\n\t\t\twhile ((line = rd.readLine()) != null) {\n\t\t\t // Convert response to JSON object\t\n\t\t\t JSONParser parser = new JSONParser();\n\t\t\t JSONObject json = (JSONObject) parser.parse(line);\n\t\t\t String result_data = json.get(\"result\").toString(); \n\t\t\t Assert.assertEquals(result_data, \"error\", \"Invalid result value is in resonse\");\n\t\t\t String err_data = json.get(\"err\").toString();\n\t\t\t Assert.assertEquals(err_data, \"Unsupported comparator used in filter on rule 1 : campaign_owner_user_id\"+operator+camp_owner_user_id);\n\t\t\t test.log(LogStatus.PASS, \"Check whether proper validation message is displayed when \"+ operator +\" filter operator is used for campaign_owner_user_id\");\n\t\t\t}\t \n\t\t}\t\n\t}", "@Test\n void getTest() {\n URI uri = URI.create(endBody + \"/get\");\n\n // get the response\n HttpResponse<String> response = HttpMethods.get(uri);\n\n // check if it received OK\n assertEquals(200, response.statusCode());\n }", "@Test\n\t\tpublic void testRestSuccessfulResponse() throws Exception {\n\n\t\t\tString responseBody = TestUtils.getValidResponse();\n\t\t\t\n\t\t\t\ttry {\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tResponseEntity<ResponseWrapper> responseEntity= prepareReponseEntity(responseBody);\n\t\t\t\t\n\t\t\t\tboolean flag=weatherService.checkForErrors(responseEntity);\n\t\t\t\tassertFalse(flag);\n\t\t\t\n\t\t\t\tthis.mockServer.verify();\n\t\t\t} catch (Exception e) {\n\t\t\t\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}", "@Test(priority=64)\n\tpublic void campaign_user_with_invalid_filter_operator_for_user_title() throws URISyntaxException, ClientProtocolException, IOException, ParseException{\n\t\ttest = extent.startTest(\"campaign_user_with_invalid_filter_operator_for_user_title\", \"To validate whether user is able to get campaign and its users through campaign/user api with invalid filter operator for user_title\");\n\t\ttest.assignCategory(\"CFA GET /campaign/user API\");\n\t\tString user_title = \"\";\n\t\tString[] operators = {\"+\",\"!\",\"~\",\"#\",\"@\",\"$\",\"%\",\"^\",\"&\",\"*\",\"-\",\"/\",\":\"};\n\t\tString encoded_operator = \"\";\n\t\tfor(String operator:operators){\n\t\t\tencoded_operator = java.net.URLEncoder.encode(operator, \"UTF-8\");\n\t\t\tList<NameValuePair> list = new ArrayList<NameValuePair>();\n\t\t\tlist.add(new BasicNameValuePair(\"filter\", \"user_title\"+encoded_operator+user_title));\n\t\t\tCloseableHttpResponse response = HelperClass.make_get_request(\"/v2/campaign/user\", access_token, list);\n\t\t\tAssert.assertTrue(!(response.getStatusLine().getStatusCode() == 500 || response.getStatusLine().getStatusCode() == 401), \"Invalid status code is displayed. \"+ \"Returned Status: \"+response.getStatusLine().getStatusCode()+\" \"+response.getStatusLine().getReasonPhrase());\n\t\t\ttest.log(LogStatus.INFO, \"Execute campaign/user api method with \"+ operator +\" filter operator for user_title\");\n\t\t\tSystem.out.println(\"Execute campaign/user api method with \"+ operator +\" filter operator for user_title\");\n\t\t\tBufferedReader rd = new BufferedReader(new InputStreamReader(response.getEntity().getContent()));\n\t\t\tString line = \"\";\n\t\t\twhile ((line = rd.readLine()) != null) {\n\t\t\t // Convert response to JSON object\t\n\t\t\t JSONParser parser = new JSONParser();\n\t\t\t JSONObject json = (JSONObject) parser.parse(line);\n\t\t\t String result_data = json.get(\"result\").toString(); \n\t\t\t Assert.assertEquals(result_data, \"error\", \"Invalid result value is in resonse\");\n\t\t\t String err_data = json.get(\"err\").toString();\n\t\t\t Assert.assertEquals(err_data, \"Unsupported comparator used in filter on rule 1 : user_title\"+operator+user_title);\n\t\t\t test.log(LogStatus.PASS, \"Check whether proper validation message is displayed when \"+ operator +\" filter operator is used for user_title\");\n\t\t\t}\t \n\t\t}\t\n\t}", "@Override\n public ResponseEntity<BirthCaseStatus> birthCasesBirthCaseIdSubmitPost(\n @ApiParam(value = \"ID of the Birth Case to return\",required=true)\n @PathVariable(\"birthCaseId\") Long birthCaseId) {\n\n HttpStatus httpStatus=null;\n\n // ?? Is anything passed in, beyond the ID ??\n // Just acknowledge\n BirthCaseStatus status = new BirthCaseStatus();\n BirthCase birth = null;\n\n // Try creating a BirthCaseEntity and mapping to BirthCase domain object\n Optional<BirthCaseEntity> optionalBirthCaseEntity = birthRepository.findById( birthCaseId );\n if( optionalBirthCaseEntity.isPresent() ) {\n\n // Grab what we can\n birth = modelMapper.map(optionalBirthCaseEntity.get(), BirthCase.class);\n List<EnrichmentEntity> enrichments = enrichmentRepository.findByBirthId( birthCaseId );\n\n // Work what we have in database to the desired response (and dump to console)\n BirthCaseEnrichment bce=enrichmentEntityListAsBirthCaseEnrichment(enrichments);\n\n\n // Experiment with serialisation etc\n ObjectMapper mapper = new ObjectMapper();\n String bceStr = \"\";\n BirthCaseEnrichment bceObj = null;\n\n // Serialise a nested object\n try {\n // The string generated by serialisation not terribly close to object's toString\n bceStr = mapper.writeValueAsString(bce);\n System.out.println(bceStr);\n } catch (Exception ex) {\n System.out.println(\"Serialisation not so good\");\n System.out.println(ex.getStackTrace());\n }\n\n // Deserialise a nested object\n if (bceStr != null ) {\n try{\n bceObj = mapper.readValue(bceStr, BirthCaseEnrichment.class);\n System.out.println(bceObj.toString());\n } catch (Exception ex) {\n System.out.println(\"DEserialisation not so good\");\n System.out.println(ex.getStackTrace());\n }\n }\n\n System.out.println(bce.equals(bceObj));\n\n\n\n System.out.println(\"=== SUBMISSION ==========================================\");\n System.out.println(birth.toString());\n System.out.println(bce.toString());\n\n// status.setStatus(\"Submitted\");\n httpStatus = HttpStatus.OK;\n\n } else {\n\n// status.setStatus(\"Not found\");\n httpStatus = HttpStatus.NOT_FOUND;\n }\n\n // Attempt to get something to a queue. Minimalist for now but entry could have case + organisations + lots\n// sqs.sendMessage( \"{CaseId : \" + birthCaseId + \"}\",\"testing\" );\n\n // Pass something back\n return new ResponseEntity<BirthCaseStatus>(status, httpStatus);\n }", "@Test(priority=35)\n\tpublic void campaign_user_with_invalid_filter_operetor_for_camp_modified() throws URISyntaxException, ClientProtocolException, IOException, ParseException{\n\t\ttest = extent.startTest(\"campaign_user_with_invalid_filter_operetor_for_camp_modified\", \"To validate whether user is able to get campaign and its users through campaign/user api with invalid filter operator for campaign_created\");\n\t\ttest.assignCategory(\"CFA GET /campaign/user API\");\n\t\ttest_data = HelperClass.readTestData(class_name, \"campaign_user_with_invalid_filter_operetor_for_camp_modified\");\n\t\tString campaign_modified = test_data.get(4);\n\t\tString[] operators = {\"+\",\"!\",\"~\",\"#\",\"@\",\"$\",\"%\",\"^\",\"&\",\"*\",\"-\",\"/\",\":\"};\n\t\tString encoded_operator = \"\";\n\t\tfor(String operator:operators){\n\t\t\tencoded_operator = java.net.URLEncoder.encode(operator, \"UTF-8\");\n\t\t\tList<NameValuePair> list = new ArrayList<NameValuePair>();\n\t\t\tlist.add(new BasicNameValuePair(\"filter\", \"campaign_modified\"+encoded_operator+campaign_modified));\n\t\t\tCloseableHttpResponse response = HelperClass.make_get_request(\"/v2/campaign/user\", access_token, list);\n\t\t\tAssert.assertTrue(!(response.getStatusLine().getStatusCode() == 500 || response.getStatusLine().getStatusCode() == 401), \"Invalid status code is displayed. \"+ \"Returned Status: \"+response.getStatusLine().getStatusCode()+\" \"+response.getStatusLine().getReasonPhrase());\n\t\t\ttest.log(LogStatus.INFO, \"Execute campaign/user api method with \"+ operator +\" filter operator for campaign_modified\");\n\t\t\tSystem.out.println(\"Execute campaign/user api method with \"+ operator +\" filter operator for campaign_modified\");\n\t\t\tBufferedReader rd = new BufferedReader(new InputStreamReader(response.getEntity().getContent()));\n\t\t\tString line = \"\";\n\t\t\twhile ((line = rd.readLine()) != null) {\n\t\t\t // Convert response to JSON object\t\n\t\t\t JSONParser parser = new JSONParser();\n\t\t\t JSONObject json = (JSONObject) parser.parse(line);\n\t\t\t String result_data = json.get(\"result\").toString(); \n\t\t\t Assert.assertEquals(result_data, \"error\", \"Invalid result value is in resonse\");\n\t\t\t String err_data = json.get(\"err\").toString();\n\t\t\t Assert.assertEquals(err_data, \"Unsupported comparator used in filter on rule 1 : campaign_modified\"+operator+campaign_modified);\n\t\t\t test.log(LogStatus.PASS, \"Check whether proper validation message is displayed when \"+ operator +\" filter operator is used for campaign_modified\");\n\t\t\t}\t \n\t\t}\t\n\t}", "@Test\n public void shouldRetrieveAPaymentViaGet() throws Exception {\n ResponseEntity<String> response = postTestPaymentAndGetResponse();\n String location = getLocationHeader(response);\n\n //when: the payment is fetched via get:\n ResponseEntity<Payment> getResponse = restTemplate.getForEntity(location, Payment.class);\n //then: the response status code should be OK:\n assertEquals(HttpStatus.OK, getResponse.getStatusCode());\n //and: the data on the response should be correct, e.g. check the orgainsation_id field:\n Payment payment = getResponse.getBody();\n assertEquals(testPaymentAsObject.getOrganisationId(), payment.getOrganisationId());\n }", "public static void main(String[] args) {\n\t\tRestAssured.baseURI = \"https://dev54285.service-now.com/api/now/table/change_request\";\r\n\r\n//\t\tS2: Authentication (basic)\r\n\t\tRestAssured.authentication = RestAssured.basic(\"admin\", \"EnterPwd123!\");\r\n\t\t\r\n//\t\tS3: request type (get) { ctrl+2 , l }\r\n\t\tResponse response = RestAssured.given().queryParam(\"sysparm_fields\", \"sys_id,type,number\")\r\n\t\t\t\t.accept(ContentType.JSON).get();\r\n\t\t\r\n//\t\tS4: print response body\r\n\t\tresponse.prettyPrint();\r\n\t\t\r\n//\t\tS5: print status code\r\n\t\tSystem.out.println(response.statusCode());\r\n\t\t\r\n//\t\tResponse Body Parse\r\n\t\tJsonPath jsonPath = response.jsonPath();\r\n\t\t\r\n// \t\tGet Customized values\r\n\t\tList<String> responseList = jsonPath.getList(\"response.result.number\");\r\n\t\t\r\n\t\t/*\r\n\t\t * System.out.println(responseList.size());\r\n\t\t * System.out.println(responseList.get(responseList.size()-1));\r\n\t\t * \r\n\t\t * for (String result : responseList) { System.out.println(result); }\r\n\t\t */\r\n\t\t\r\n\t}", "@Test\n public void testGetExample() throws Exception{\n this.mockMvc.perform(get(\"/api/example/{id}\", 10))\n .andDo(print())\n .andExpect(status().isNotFound());\n\n // Fetching one that exists\n this.mockMvc.perform(get(\"/api/example/{id}\", 50))\n .andDo(print())\n .andExpect(status().is2xxSuccessful())\n .andExpect(jsonPath(\"$.name\", equalTo(\"Test\")));\n }", "@Test\n public void testUserGET() {\n Response response = webTarget\n .path(\"user/1\")\n .request(APPLICATION_JSON)\n .get();\n User u = response.readEntity(User.class);\n assertThat(response.getStatus(), is(200));\n assertEquals(\"One\", u.getName());\n }", "@Test\n public void given_devEnvironmentWithParamPageAndSizeIsNegativeInteger_when_callEndPointStudentByPage_then_returnStatus400AndMessageDetail() throws Exception {\n String url = \"/students/paging\";\n String jsonResult = \"{\\n\" +\n \" \\\"message\\\": \\\"Valid param!\\\",\\n\" +\n \" \\\"status\\\": false,\\n\" +\n \" \\\"details\\\": {\\n\" +\n \" \\\"size\\\": \\\"must be greater than or equal to 0\\\",\\n\" +\n \" \\\"page\\\": \\\"must be greater than or equal to 1\\\"\\n\" +\n \" }\\n\" +\n \"}\";\n RequestBuilder request = MockMvcRequestBuilders\n .get(url)\n .accept(MediaType.APPLICATION_JSON)\n .param(\"page\", \"-1\")\n .param(\"size\", \"-1\");\n\n mockMvc.perform(request)\n .andExpect(MockMvcResultMatchers.status().isBadRequest())\n .andExpect(MockMvcResultMatchers.content().json(jsonResult, true))\n .andDo(MockMvcResultHandlers.print())\n .andReturn();\n }", "@Test\n @OperateOnDeployment(\"server\")\n public void shouldGetResourceMatchingId() {\n given().header(\"Authorization\", \"Bearer access_token\").expect().statusCode(200).and().expect().body(\"name\",\n equalTo(\"Audiences\")).and().expect().body(\"sort\", equalTo(15)).when().get(getBaseTestUrl() + \"/1/category/get/json/1\");\n }", "@Test\n public void testReceiverAgeReturns() {\n ResponseEntity response = dataController.getReceiverDataByOrgans(\"N\", null, null, \"20\");\n assertNotNull(response.getBody());\n assertEquals(HttpStatus.OK, response.getStatusCode());\n }" ]
[ "0.7399467", "0.7350815", "0.7120112", "0.7023286", "0.69951046", "0.6981241", "0.6949683", "0.69256926", "0.6873746", "0.6786718", "0.6677579", "0.66737133", "0.6616488", "0.65414256", "0.65169555", "0.651464", "0.6493486", "0.6489301", "0.6456364", "0.6441954", "0.6437493", "0.64217514", "0.64052725", "0.63942486", "0.6382004", "0.6327177", "0.6318564", "0.6260618", "0.6254887", "0.6244755", "0.6239916", "0.6236645", "0.62349415", "0.62106925", "0.6193686", "0.6192789", "0.6188765", "0.6174944", "0.61313665", "0.61210287", "0.6103823", "0.6093525", "0.6092302", "0.60915315", "0.60782725", "0.60654056", "0.6048093", "0.60411566", "0.6040163", "0.603649", "0.6036159", "0.6025135", "0.60231113", "0.6012849", "0.60023713", "0.59985864", "0.5997941", "0.59965485", "0.5992684", "0.5977937", "0.5973147", "0.59722495", "0.59717745", "0.59545505", "0.5943474", "0.59254485", "0.59214985", "0.59173286", "0.5905831", "0.59043604", "0.59007716", "0.5899958", "0.5888114", "0.58852345", "0.5866383", "0.586581", "0.58653396", "0.58628386", "0.58589107", "0.5857546", "0.5856777", "0.58551943", "0.58531237", "0.58503944", "0.58488244", "0.58476114", "0.58447397", "0.5839325", "0.5832945", "0.5832251", "0.58310646", "0.58159876", "0.5811664", "0.58092046", "0.58088636", "0.58060914", "0.58056414", "0.5803217", "0.5801848", "0.5799825" ]
0.7246649
2
Adds the specified string to this set if it is not already present. More formally, adds the specified string s to this set if the set contains no element s2 such that s.equals(s2). If this set already contains the element, the call leaves the set unchanged and returns false.
boolean add(String s, int depth) { // First case: we are at the end of the string and this is the correct node if(depth >= s.length() || (s.charAt(depth) == character.get()) && depth == s.length() - 1) { AtomicBoolean result = absent; absent.set(false); return result.get(); } // Second case: the next character in the string was found, but this is not the end of the string // We continue in member "suffix" if(s.charAt(depth) == character.get()) { if (suffix == null || suffix.get().character.get() > s.charAt(depth+1)) suffix = new AtomicReference<Node>(new Node(s.charAt(depth+1), suffix.get())); return suffix.get().add(s, depth+1); } // Third case: the next character in the string was not found // We continue in member "next" // To maintain the order, we may have to add a new node before "next" first if (next == null || next.get().character.get() > s.charAt(depth)) next.set(new Node(s.charAt(depth), next.get())); return next.get().add(s, depth); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean add(String s) {\n\t\tif (s != \"\") return start.get().add(s, 0);\n\t\tAtomicBoolean result = emptyAbsent;\n\t\temptyAbsent.set(false);\n\t\treturn result.get();\n\t}", "public boolean addString(String string) {\r\n\t\tboolean added = false;\r\n\t\tif (string != null && !string.trim().equals(\"\")) {\r\n\t\t\tif (this.strings == null) {\r\n\t\t\t\tthis.strings = new HashSet<String>();\r\n\t\t\t}\r\n\t\t\tString stringTrimmedLowercase = string.trim().toLowerCase();\r\n\t\t\tadded = this.strings.add(stringTrimmedLowercase);\r\n\t\t}\r\n\t\treturn added;\r\n\t}", "public boolean add(String string){\r\n if(string == null) {\r\n return false;\r\n }\r\n int hash = string.hashCode(),index = 0;\r\n int i = 0;\r\n boolean found = false;\r\n while(!found){\r\n index = (hash + (i*i+i)/2) & (this.capacity()-1);\r\n if(this.hashTable[index] == null || this.hashTable[index] == this.deleted){\r\n found = true;\r\n }\r\n else if(this.hashTable[index].equals(string)){\r\n return false;\r\n }\r\n i ++;\r\n }\r\n this.hashTable[index] = string;\r\n this.size +=1;\r\n this.checkForReHash(1);\r\n return true;\r\n\r\n }", "public boolean add(String s){\n if(count == contents.length) {\n return false;\n }\n contents[count] = s;\n count++;\n return true;\n }", "public boolean add(String newValue) {\n if (!collection.contains(newValue) && collection.add(newValue)) {\n return true;\n }\n return false;\n }", "public boolean addString(final String memberString) {\n if (!strings.contains(memberString)) {\n strings.add(memberString);\n return true;\n }\n return false;\n }", "public boolean\tadd(String e) {\n\t\tboolean notExist = false;\n\t\tif (map.put(e, PRESENT)==null) {\n\t\t\tnotExist = true;\n\t\t}\n\t\treturn notExist;\n\t}", "public boolean add(String element) {\n if (element == null) {\n throw new IllegalArgumentException(\"Null string!\");\n }\n\n Node addNode = getNodeByString(element, true);\n\n if (addNode.isTerminal()) {\n return false;\n }\n\n addNode.setTerminal(true);\n\n return true;\n }", "public void addElement(String s) throws DuplicateElementException {\n\tif (elements.contains(s)) {\n\t throw new DuplicateElementException(\"The Element \"+s+\" is already in the Alias \"+this.toString());\n\t}\n\telements.add(s);\n }", "public boolean add(String s)\n\t{\n\t\t// adds a new string to the list and returns true if there is a change: O(n).\n\t\tif (head == null)\n\t\t{\n\t\t\thead = new node(s,null);\n\t\t\thead.setNext(tail);\n\t\t\ttail = head;\t\n\t\t\treturn true;\t\n\t\t\n\t\t}\n\t\telse\n\t\t{\t\n\t\t\tnode temp = new node(s,null);\n\t\t\ttail.setNext(temp);\n\t\t\ttail = tail.getNext();\n\t\t\t\n\t\t\treturn true;\n\t\t}\n\t\t\n\t}", "public boolean add(String value){\n int index=findIndexBinary(value);\n super.add(index,value);\n return true;\n }", "public boolean add(java.lang.String newValue) {\n\n int loc = indexValue(newValue);\n\n if (loc == -1) {\n\n if ((numOfElements + 1) / (double)capacity > upperLoadFactor) {\n changeHashSetSize(openHashSetArray, 1);\n }\n\n openHashSetArray[this.clamp(newValue.hashCode())].myList.add(newValue);\n numOfElements++;\n return true;\n }\n return false;\n }", "@Override\n\tpublic boolean add(String s) {\n\t\t\n\t\tif(s.compareTo(value)<0) {\n\t\t\tif(left==null) {\n\t\t\t\tleft=new Node(s);\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\treturn left.add(s);\n\t\t\t\n\t\t}\n\t\telse {\n\t\t\tif(right==null) {\n\t\t\t\tright=new Node(s);\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\treturn right.add(s);\n\t\t\t\n\t\t}\n\t\n\n\t}", "public boolean add(E element){\n Object result = map.put(element, \"\");\n return (result == null);\n }", "static void add(String s) {\n if (s != null) {\n a.add(s);\n }\n }", "@Test\r\n public void addAllFromSetWithStrings() throws Exception {\r\n TreeSet<String> s = new TreeSet<>();\r\n s.addAll(sStr);\r\n assertTrue(s.contains(\"kek\"));\r\n assertTrue(s.contains(\"lel\"));\r\n assertTrue(s.contains(\"lol\"));\r\n }", "public boolean equalsOrContainsStr(String string) {\n return toString().equals(string);\n }", "@Override\n public boolean add(X x) {\n if (!allowElementsWithoutIdentification)\n throw new IllegalArgumentException(\"It is not allowed to put Elements without Identification in this Set\");\n\n return map.put(x, placeholder) == null;\n }", "public boolean add(String s) {\n s = s.trim().toLowerCase();\n\n TrieNode current = root;\n\n for (int i = 0; i < s.length(); i++) {\n char c = s.charAt(i);\n if (Character.isLowerCase(c)) {\n TrieNode child = current.children.get(c);\n if (child == null) {\n child = new TrieNode();\n current.children.put(c, child);\n }\n current = child;\n }\n }\n if(current.isWord){\n \tcurrent.word = s;\n }\n if (current.isWord)\n return false;\n \n current.isWord = true;\n return true;\n }", "public boolean add(String value){\n\t//add to the correct spot.\n\t//you may still use super.add(index,value)\n\tif (size() == getData().length) {\n\t resize();\n\t}\n\t//index = findIndex(value);\n\tint index = findIndexBinary(value);\n\tsuper.add(index,value);\n\treturn true;\n }", "public static boolean isUniqueUsingHashing(String str) {\n\t\tSet<Character> set = new HashSet<>();\n\t\tfor (int i = 0; i < str.length(); i++) {\n\t\t\tchar c = str.charAt(i);\n\t\t\t// Checks if set already contains given character. If yes return false else add\n\t\t\t// to the set.\n\t\t\tif (set.contains(c)) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\tset.add(c);\n\t\t}\n\t\treturn true;\n\t}", "public boolean isUnique(String id) {\n Objects.requireNonNull(id, \"ID is required\");\n // this set returns false when a value is inserted\n return setOnDisk.add(id);\n }", "protected abstract Set<String> _addToSet(String key, Collection<String> str);", "public static boolean isUnique1(String str) {\n HashSet<Character> set = new HashSet<>();\n for (int i = 0; i < str.length(); i++) {\n if (set.contains(str.charAt(i)))\n return false;\n set.add(str.charAt(i));\n }\n return true;\n }", "public static boolean isAllUnique(String string) {\n\n // Let's create a new HashSet to cache the characters.\n HashSet<Character> set = new HashSet<>();\n\n for (char c : string.toCharArray()) {\n if (set.contains(c)) {\n return false;\n } else {\n set.add(c);\n }\n }\n\n return true;\n }", "boolean add(String val);", "public static /* synthetic */ boolean m93354a(HashSet hashSet, String str) {\n if (!hashSet.contains(str)) {\n return false;\n }\n hashSet.remove(str);\n return true;\n }", "public boolean addState(String state) {\n\t\tif (!states.contains(state)) {\n\t\t\tstates.add(state);\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "public boolean add(String e) {\r\n \tSystem.out.println(e + \" \" + PRESENT);\r\n return map.put(e, PRESENT)==null;\r\n }", "@Override\n\tpublic boolean add(Character e) {\n\t\tif (!this.contains(e)) {\n\t\t\treturn super.add(e);\n\t\t} else\n\t\t\treturn false;\n\t}", "@Override\n public boolean addItem(T item) {\n //Make sure the Set does not already contain the item\n if(!this.contains(item)) {\n //Make sure there is enough room for the item. If there isn't\n //resize the array\n if(numItems == arr.length)\n this.ensureCap();\n //Add the item to the end and increment numItems\n arr[numItems++] = item;\n //return true\n return true;\n }\n //if item was already in set, return false\n return false;\n }", "public boolean addAllStrings(final Collection<String> memberStrings) {\n return strings.addAll(memberStrings);\n }", "public boolean add(String newValue) {\n if (newValue == null)\n return false;\n if (contains(newValue))\n return false;\n\n\n if ((float)(size() + MINIMAL_CHANGE) / (capacity()) > getUpperLoadFactor()) {\n\n int oldCapacity = capacity();\n capacity *= SIZE_CHANGE;\n LinkedListString[] newLinked = new LinkedListString[capacity()];\n rehash(newLinked, oldCapacity);\n\n linkedListStrings = newLinked;\n\n }\n\n int index = clamp(newValue);\n\n if (linkedListStrings[index] == null){\n linkedListStrings[index] = new LinkedListString();\n }\n\n linkedListStrings[index].add(newValue);\n\n sizeCounter++;\n return true;\n\n }", "@Test\r\n public void addToStringSet() throws Exception {\r\n TreeSet<String> s = new TreeSet<>();\r\n assertTrue(s.add(\"kek\"));\r\n assertTrue(s.contains(\"kek\"));\r\n }", "@Override\n\tpublic boolean contains(String s) {\n\t\tif(s.contentEquals(value)) {\n\t\t\treturn true;\n\t\t}\n\t\tif(s.compareTo(value)<0) {\n\t\t\tif(left==null) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\treturn left.contains(s);\n\t\t}\n\t\telse {\n\t\t\tif(right==null) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\treturn right.contains(s);\n\t\t}\n\t\t\n\t\t\n\t}", "private boolean has(String s) {\n\t\tboolean result = false;\n\t\tMyStack newBurger = new MyStack();\n\t\twhile (myBurger.size() != 0) {\n\t\t\tif (myBurger.peek().equals(s)) {\n\t\t\t\tresult = true;\n\t\t\t\tbreak;\n\t\t\t} else {\n\t\t\t\tnewBurger.push(myBurger.pop());\n\t\t\t}\n\t\t}\n\t\twhile (newBurger.size() != 0) {\n\t\t\tmyBurger.push(newBurger.pop());\n\t\t}\n\t\treturn result;\n\t}", "public boolean add(String word) {\r\n\t\treturn dict.add(word);\r\n\t}", "public void add(Location s) {\n\t\t//nothing gets added\n\t\tif (s == null){\n\t\t\treturn;\n\t\t}\n\t\tNode addedLocation = new Node();\n\t\taddedLocation.setElement(s);\n\t\tif (head == null){ //adding to an empty set\n\t\t\thead = addedLocation;\n\t\t\tsize ++;\n\t\t} else{ \n\t\t\t//adding to the top of a set that has at least one element stored in it\n\t\t\taddedLocation.next = head;\n\t\t\thead = addedLocation;\n\t\t\tsize ++;\n\t\t}\n\t}", "public static boolean uniqueString(String s) {\n java.util.HashSet<Character> hash = new java.util.HashSet<>();\n\n for (Character c : s.toCharArray()) {\n if (!hash.add(c)) return false;\n }\n return true;\n }", "@Override // java.util.List, java.util.Collection\n public /* synthetic */ boolean add(String str) {\n throw new UnsupportedOperationException(\"Operation is not supported for read-only collection\");\n }", "public final boolean add(ArraySet<T> source) {\n final T[] sourceArraySet = source.getArray();\n\n if (sourceArraySet == null) {\n return false;\n }\n\n synchronized (sync) {\n if (array == null) {\n array = Arrays.copyOf(sourceArraySet, sourceArraySet.length);\n return true;\n }\n\n boolean result = false;\n\n for (int i = 0; i < sourceArraySet.length; i++) {\n final T element = sourceArraySet[i];\n\n final T[] oldArray = array;\n array = ArrayUtils.addUnique(array, element, replaceElementIfEquals);\n\n result |= (oldArray != array);\n }\n\n return result;\n }\n }", "void add(String str) {\n assertEquals(!words.contains(str), trie.add(str));\n words.add(str);\n dictionary.add(str);\n assertEquals(words.size(), trie.size());\n checkConsistency();\n }", "public static boolean isUnique(String s) {\n if (s.length() > 128) return false;\n\n // we dont need to check the last element\n for (int i = 0; i < s.length() - 1; i++){\n String current = \"\";\n current += s.charAt(i);\n// System.out.println(current);\n if (s.substring(i + 1).contains(current))\n return false;\n }\n return true;\n }", "public void add(String element){\n\t\tif(!contains(element)){\n\t\t\tlist.addLast(element);\n\t\t}\n\t}", "private static boolean addToExistGroup(Map<String, List<String>> map, String str) {\n for (String key : map.keySet()) {\n if (isIsomorphic(str, key)) {\n map.get(key).add(str);\n\n return true;\n }\n }\n\n return false;\n }", "public boolean addWord(String word) {\n return false;\n }", "public void validAdd(String element){\n\t\tlist.addLast(element);\n\t}", "public boolean push(String string) {\n // Is there room in the stack?\n boolean roomForOneMore = this.usage < this.foundation.length;\n if (roomForOneMore) {\n // Insert the new string to the topmost position\n this.foundation[this.foundation.length - this.usage - 1] = string;\n // Increase the usage of the stack\n usage++;\n }\n return roomForOneMore;\n }", "void contains(String str) {\n dictionary.add(str);\n assertEquals(words.contains(str), trie.contains(str));\n assertEquals(words.size(), trie.size());\n }", "public static boolean isUnique(String st) {\n\t\tif(st == null || st==\"\") {\n\t\t\treturn true;\n\t\t}\n\t\tfor(int i=0; i< st.length()-1; i++) {\n\t\t\tif(st.substring(i+1).indexOf(st.substring(i,i+1)) !=-1) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}", "private static boolean m879a(Set<String> set) {\n return set.isEmpty() || (set.size() == 1 && set.contains(\"\"));\n }", "boolean hasUniqueCharactersTimeEfficient(String s) {\n Set<Character> characterSet = new HashSet<Character>();\n for(int i=0; i < s.length();i++) {\n if(characterSet.contains(s.charAt(i))) {\n return false;\n } else {\n characterSet.add(s.charAt(i));\n }\n }\n return true;\n }", "public boolean addAll(ISet<E> otherSet) {\n\t\tif (otherSet == null)\n\t\t\tthrow new IllegalArgumentException(\"The given set is null.\");\n\t\tboolean result = false;\n\t\tfor (E obj: otherSet) {\n\t\t\tif (!this.contains(obj)) {\n\t\t\t\tthis.add(obj);\n\t\t\t\tresult = true;\n\t\t\t}\n\t\t}\n\t\treturn result;\n\t}", "public boolean verificaDuplicidade(String s) {\n\t\tfor (Compromisso c : this.compromisso) {\n\t\t\tif (c.getDataInicio().equals(s)) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "public boolean add(IntSet add){\n\t\tif(contains(add)==-1){\n\t\t\tcontents.addElement(add);\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "@Override\n public boolean addItem(T item) {\n //Make sure the item is not already in the set\n if(!this.contains(item)){\n //create a new node with the item, and the current first node\n Node n = new Node(item, first);\n //update first node reference\n first = n;\n //increment numItems\n numItems++;\n return true;\n }\n //if item is already in the set return false\n return false;\n }", "protected void addToStoredStrings(String s) {\n \tif (debug) debug(\n \t\t\"addToStoredStrings(s=\", StringUtil.toString(s), \") at index=\",\n \t\tString.valueOf(storedStrings.size())\n \t);\n storedStrings.add(s);\n }", "public boolean enqueue(String s) {\n\t\tif ( isFull() )\n\t\t\treturn false;\n\t\t//is this the first insert?\n\t\tif ( isEmpty() )\n\t\t\tdata[++head] = s;\n\t\t//otherwise, move the tail to the new position\n\t\telse\n\t\t\tdata[(head+numElements)%data.length] = s;\n\t\tnumElements++;\n\t\treturn true;\n\t}", "@Override\r\n\tpublic boolean contains(Object o) {\n\t\treturn set.contains(o);\r\n\t}", "public boolean enqueue(String s) {\n return false;\n }", "public boolean add(E key)\r\n {\r\n if(this.contains(key))\r\n {\r\n return false;\r\n }\r\n\r\n else\r\n {\r\n super.add(key);\r\n }\r\n return true;\r\n }", "boolean alreadyAdded(char c) {\n for (char x :_chars) {\n if (x == c) {\n return true;\n }\n }\n return false;\n }", "public boolean testAllUniqueInplace(String string) {\n\t\tif (string.length() > 128) {\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\tfor (int i = 0; i < string.length(); i++) {\n\t\t\tfor (int j = i + 1; j < string.length(); j++) {\n\t\t\t\tchar ith = string.charAt(i);\n\t\t\t\tchar jth = string.charAt(j);\n\n\t\t\t\tif (ith == jth) {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}", "public boolean add(E x) {\n\t\taddLast(x);\n\t\treturn true;\n\t}", "public boolean add ( Object o ){\n\n try{\n\n String check = o.toString();\n if(!check.equals(o)){\n return false;\n }\n\n }\n\n catch(Exception e){\n return false;\n }\n\n if(o == null){\n return false;\n }\n\n else{\n\n \t try{\n String s = o.toString();\n list.add(s);\n return true;\n \t }\n \t\n \t catch (Exception e){\n \t\t return false;\n \t }\n\n }\n\n }", "public boolean addSong(Song s) {\n\t\tthis.songList.add(this.songList.size(), s);\n\t\treturn true;\n\t}", "public boolean contains(String s)\n {\n if(s==null)\n return false;\n\n if(s.isEmpty()) //base case\n return true;\n\n char first = s.charAt(0); //find next character\n if(childrenAdded.contains(first)) //if there is a trie for the character\n return children.get(first).contains(s.substring(1)); //search for the rest of the string in that trie\n else\n return false;\n }", "public boolean addTag(String newTag) {\n if (tags.contains(newTag)){\n return false;\n }\n tags.add(newTag);\n saveTags();\n return true;\n }", "public boolean add(Object x)\n {\n if (loadFactor() > 1)\n {\n resize(nearestPrime(2 * buckets.length - 1));\n }\n\n int h = x.hashCode();\n h = h % buckets.length;\n if (h < 0) { h = -h; }\n\n Node current = buckets[h];\n while (current != null)\n {\n if (current.data.equals(x))\n {\n return false; // Already in the set\n }\n current = current.next;\n }\n Node newNode = new Node();\n newNode.data = x;\n newNode.next = buckets[h];\n buckets[h] = newNode;\n currentSize++;\n return true;\n }", "public void add(String value) {\n add(value, false);\n }", "public static boolean hasDuplicates(String s) {\n\t\tif (StringUtils.isEmpty(s)) {\n\t\t\treturn false;\n\t\t}\n\t\tchar[] c = s.toCharArray();\n\t\tArrays.sort(c);\n\t\tfor (int i = 0; i < c.length - 1; i++) {\n\t\t\tif (c[i] == c[i+1]) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "public boolean add(E o) {\r\n if (o == null)\r\n return false;\r\n if (this.map.containsKey(o.hashCode())) {\r\n return false;\r\n }\r\n return this.map.put(o.hashCode(), o) == null;\r\n }", "public boolean isSetStr()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n return get_store().count_elements(STR$0) != 0;\r\n }\r\n }", "@Override\n public boolean add(Set<E> e) {\n throw new UnsupportedOperationException(\"Add not supported\");\n }", "public boolean add (Object o) {return addLast(o);}", "@Override\r\n\tpublic boolean addHS(String hs) {\n\t\treturn adi.addHS(hs);\r\n\t}", "public static boolean checkUnique(String s) {\n\t\tif (s == null || s.length() == 0)\n\t\t\treturn true;\n\t\tHashMap<Character, Integer> map = new HashMap<Character, Integer>();\n\t\tchar[] arr = new char[s.length()];\n\t\tfor (int i = 0; i < s.length(); i++) {\n\t\t\tif (!map.containsKey(s.charAt(i)))\n\t\t\t\tmap.put(s.charAt(i), 1);\n\t\t\telse if (map.containsKey(s.charAt(i))) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}", "@Override\n public boolean hasDuplicates() {\n ArrayList<String> itemList = new ArrayList(Arrays.asList(\"\"));\n Node currNode = this.head;\n while(true){\n if(itemList.contains(currNode.getItem())){ // need to edit\n return true;\n }else{\n itemList.add(currNode.getItem());\n }\n if(currNode.getNextNode() == null){\n break;\n }\n currNode = currNode.getNextNode();\n }\n return false;\n }", "@Test\r\n public void testHashSetInsert()\r\n {\r\n Square s0 = new Square(1, -1),\r\n s1 = new Square(1, -1);\r\n HashSet<Square> hs = new HashSet<>();\r\n hs.add(s0);\r\n assertEquals(1, hs.size());\r\n hs.add(s1);\r\n assertEquals(1, hs.size());\r\n assertTrue(hs.contains(s0));\r\n assertTrue(hs.contains(s1));\r\n }", "public static boolean isUnique(String input) {\r\n // Create a Set to insert characters\r\n Set<Character> set = new HashSet<>();\r\n\r\n // get all characters form String\r\n char[] characters = input.toCharArray();\r\n\r\n for (Character c : characters) {\r\n if (!set.add(c)) {\r\n return false;\r\n }\r\n }\r\n return true;\r\n }", "public static boolean isUniqueUsingBitVector(String str) {\n\t\tInstant begin = Instant.now();\n\t\tint vector = 0;\n\t\tfor (int i = 0; i < str.length(); i++) {\n\t\t\tint j = str.charAt(i) - 'a';\n\t\t\t// if condition checks if bit at index j is set or not. If bit is set, means\n\t\t\t// already duplicate character in string\n\t\t\tif ((vector & (1 << j)) > 0) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\t// Setting the bit at index j if already not set, which means character appeared\n\t\t\t// first time\n\t\t\tvector |= 1 << j;\n\t\t}\n\t\tSystem.out.println(\"UniqueUsingBitVector took: \" + Duration.between(Instant.now(), begin).toMillis() + \" ms\");\n\t\treturn true;\n\t}", "public boolean contains(String string){\r\n if(string == null) {\r\n return false;\r\n }\r\n int i = 0;\r\n int hash = string.hashCode(),index = 0;\r\n boolean found = false;\r\n while(!found){\r\n index = (hash + (i*i+i)/2) & (this.capacity()-1);\r\n if(this.hashTable[index] == null){\r\n return false;\r\n }\r\n else if(this.hashTable[index].equals(string)){\r\n found = true;\r\n }\r\n i++;\r\n }\r\n return true;\r\n }", "public Boolean isUniqueUsingAPI(String value) {\n\t\t// We put each character of our value in a Set that don't allows duplicated values\n\t\tSet<String> items = new HashSet<String>(Arrays.asList(value.toUpperCase().replaceAll(\"\\\\s\",\"\").split(\"\")));\n\t\t\n\t\t// If the size of our set is different that the length of our string that means that on the string are duplicated values.\n\t\treturn value.length() == items.size();\n\t}", "private boolean equals(AccessPath that, HashSet s) {\n // Relies on the fact that the iterators are stable for equivalent sets.\n // Otherwise, it is an n^2 algorithm.\n for (Iterator i = this.succ.iterator(), j = that.succ.iterator(); i.hasNext(); ) {\n IdentityHashCodeWrapper a = (IdentityHashCodeWrapper)i.next();\n IdentityHashCodeWrapper b = (IdentityHashCodeWrapper)j.next();\n AccessPath p = (AccessPath)a.getObject();\n AccessPath q = (AccessPath)b.getObject();\n if (!p.oneEquals(q)) return false;\n if (s.contains(a)) continue;\n s.add(a);\n if (!p.equals(q, s)) return false;\n }\n return true;\n }", "public void add(String str);", "public void add(String str);", "public static boolean hasAllUniqueChars2(String string) {\n HashSet<Character> characters = new HashSet<>();\n\n for(Character character : string.toCharArray()) {\n if (characters.contains(character)) return false;\n else characters.add(character);\n }\n\n return true;\n }", "private void add(String thestring) {\n\t\t\n\t}", "private void reHashAdd(String string){\r\n if(string != null && string != this.deleted) {\r\n // if the string is Deleted there is no need to put it in the new hash table\r\n int hash = string.hashCode(),index = 0;\r\n int i = 0;\r\n boolean found = false;\r\n while(!found){\r\n index = (hash + (i*i+i)/2) & (this.capacity()-1);\r\n if(this.hashTable[index] == null){\r\n found = true;\r\n this.hashTable[index] = string;\r\n }\r\n i ++;\r\n }\r\n }\r\n }", "public boolean isContainedBy(final String testedString) {\n if (testedString.indexOf(SEPARATOR) < 0) {\n return false;\n }\n return testedString.contains(key);\n }", "@Test(timeout=1000)\n\tpublic void testSimpleAdd() {\n\t\thashmap.add(s1);\n\t\tStudent[] array = hashmap.getArray();\n\t\tboolean success = false;\n\t\tfor (int i = 0; i < array.length; i++) {\n\t\t\tStudent s = array[i];\n\t\t\tif (s1.equals(s)){\n\t\t\t\tsuccess = true;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tassertTrue(\"add() failed. Element not found in array\", success);\n\t}", "public boolean add(Object value)\r\n {\r\n if (contains(value))\r\n return false;\r\n root = add(root, value);\r\n return true;\r\n }", "private static boolean isUnique(String str) {\n\t\tif(str.length() > 256)\n\t\t\treturn false;\n\t\tboolean [] char_set = new boolean[256];\n\t\tfor(int i =0; i<str.length();i++) {\n\t\t\tint value = str.charAt(i);\n\t\t\tif(char_set[value])\n\t\t\t{\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\tchar_set[value] = true;\n\t\t}\n\t\treturn true;\n\t}", "public void addPartOfSet(java.lang.String value) {\r\n\t\tBase.add(this.model, this.getResource(), PARTOFSET, value);\r\n\t}", "public boolean add(Object o) {\n\t\treturn map.put(o, PRESENT) == null;\n\t}", "public boolean add(String key) {\n char[] characters = key.trim().toCharArray();\n\n TrieNode trieNode = root; // current trie node\n\n boolean alreadyExists = true;\n\n for (char ch : characters) {\n // get the character represent index from the current trie node\n int index = ch - 'a';\n if (trieNode.offsprings[index] == null) {\n trieNode.offsprings[index] = new TrieNode();\n alreadyExists = false;\n }\n\n trieNode = trieNode.offsprings[index];\n }\n\n trieNode.isRepresentACompleteWord = true;\n\n return alreadyExists;\n }", "public void add(String piece) {\n\tif(!pieces.contains(piece))\n\t pieces.add(piece);\n\tupdate();\n }", "private static boolean duplicateSetName(String setName){\n boolean duplicate = false;\n for (Set set : SetManager.getInstance().getSets()) {\n if (set.getName() != null) {\n if (set.getName().equals(setName)) {\n duplicate = true;\n }\n }\n }\n return duplicate;\n }", "public static boolean uniqueCharStringNoDS(String s){\r\n for (int i = 0; i < s.length(); i++){\r\n for (int j = i+1; j < s.length(); j++){\r\n char temp = s.charAt(i);\r\n if (temp == s.charAt(j)){\r\n return false;\r\n }\r\n }\r\n }\r\n return true;\r\n }", "@Test\r\n public void addWorks() throws Exception {\r\n TreeSet<Integer> s = new TreeSet<>();\r\n assertTrue(s.add(1));\r\n assertTrue(s.contains(1));\r\n assertFalse(s.add(1));\r\n }" ]
[ "0.71908844", "0.7039032", "0.6625445", "0.6563639", "0.65617925", "0.6416976", "0.63023007", "0.6254019", "0.6158007", "0.6104158", "0.60371405", "0.60277474", "0.6025304", "0.60070294", "0.59781986", "0.59480494", "0.58977646", "0.58891636", "0.58848125", "0.58830404", "0.5819136", "0.5810993", "0.5763312", "0.5761416", "0.57420605", "0.5732858", "0.57307446", "0.57160735", "0.5692572", "0.56769556", "0.5660589", "0.56523937", "0.56451124", "0.56168956", "0.5612184", "0.56024283", "0.55969435", "0.5571347", "0.55594593", "0.55354637", "0.55325615", "0.5519857", "0.55046093", "0.5474756", "0.5472445", "0.54642445", "0.54320675", "0.54301417", "0.5427729", "0.5427493", "0.5408958", "0.5405395", "0.53825694", "0.5364295", "0.53569686", "0.53534156", "0.5353393", "0.53380466", "0.5322081", "0.5305441", "0.52844745", "0.5282375", "0.5277001", "0.52649754", "0.5250598", "0.52389145", "0.5238086", "0.52320236", "0.52184796", "0.5210779", "0.52002347", "0.51990396", "0.5198229", "0.5183809", "0.5181109", "0.5176411", "0.51640004", "0.51601624", "0.51486564", "0.5145361", "0.51384", "0.5131009", "0.5131003", "0.5127368", "0.51228744", "0.51228744", "0.5118191", "0.5114766", "0.5112716", "0.5111468", "0.51080304", "0.5102248", "0.50916606", "0.5086103", "0.5084791", "0.50815046", "0.5080107", "0.5077199", "0.50743353", "0.50689715" ]
0.52109694
69
Adds the specified string to this set if it is not already present. More formally, adds the specified string s to this set if the set contains no element s2 such that s.equals(s2). If this set already contains the element, the call leaves the set unchanged and returns false.
public boolean add(String s) { if (s != "") return start.get().add(s, 0); AtomicBoolean result = emptyAbsent; emptyAbsent.set(false); return result.get(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean addString(String string) {\r\n\t\tboolean added = false;\r\n\t\tif (string != null && !string.trim().equals(\"\")) {\r\n\t\t\tif (this.strings == null) {\r\n\t\t\t\tthis.strings = new HashSet<String>();\r\n\t\t\t}\r\n\t\t\tString stringTrimmedLowercase = string.trim().toLowerCase();\r\n\t\t\tadded = this.strings.add(stringTrimmedLowercase);\r\n\t\t}\r\n\t\treturn added;\r\n\t}", "public boolean add(String string){\r\n if(string == null) {\r\n return false;\r\n }\r\n int hash = string.hashCode(),index = 0;\r\n int i = 0;\r\n boolean found = false;\r\n while(!found){\r\n index = (hash + (i*i+i)/2) & (this.capacity()-1);\r\n if(this.hashTable[index] == null || this.hashTable[index] == this.deleted){\r\n found = true;\r\n }\r\n else if(this.hashTable[index].equals(string)){\r\n return false;\r\n }\r\n i ++;\r\n }\r\n this.hashTable[index] = string;\r\n this.size +=1;\r\n this.checkForReHash(1);\r\n return true;\r\n\r\n }", "public boolean add(String s){\n if(count == contents.length) {\n return false;\n }\n contents[count] = s;\n count++;\n return true;\n }", "public boolean add(String newValue) {\n if (!collection.contains(newValue) && collection.add(newValue)) {\n return true;\n }\n return false;\n }", "public boolean addString(final String memberString) {\n if (!strings.contains(memberString)) {\n strings.add(memberString);\n return true;\n }\n return false;\n }", "public boolean\tadd(String e) {\n\t\tboolean notExist = false;\n\t\tif (map.put(e, PRESENT)==null) {\n\t\t\tnotExist = true;\n\t\t}\n\t\treturn notExist;\n\t}", "public boolean add(String element) {\n if (element == null) {\n throw new IllegalArgumentException(\"Null string!\");\n }\n\n Node addNode = getNodeByString(element, true);\n\n if (addNode.isTerminal()) {\n return false;\n }\n\n addNode.setTerminal(true);\n\n return true;\n }", "public void addElement(String s) throws DuplicateElementException {\n\tif (elements.contains(s)) {\n\t throw new DuplicateElementException(\"The Element \"+s+\" is already in the Alias \"+this.toString());\n\t}\n\telements.add(s);\n }", "public boolean add(String s)\n\t{\n\t\t// adds a new string to the list and returns true if there is a change: O(n).\n\t\tif (head == null)\n\t\t{\n\t\t\thead = new node(s,null);\n\t\t\thead.setNext(tail);\n\t\t\ttail = head;\t\n\t\t\treturn true;\t\n\t\t\n\t\t}\n\t\telse\n\t\t{\t\n\t\t\tnode temp = new node(s,null);\n\t\t\ttail.setNext(temp);\n\t\t\ttail = tail.getNext();\n\t\t\t\n\t\t\treturn true;\n\t\t}\n\t\t\n\t}", "public boolean add(String value){\n int index=findIndexBinary(value);\n super.add(index,value);\n return true;\n }", "public boolean add(java.lang.String newValue) {\n\n int loc = indexValue(newValue);\n\n if (loc == -1) {\n\n if ((numOfElements + 1) / (double)capacity > upperLoadFactor) {\n changeHashSetSize(openHashSetArray, 1);\n }\n\n openHashSetArray[this.clamp(newValue.hashCode())].myList.add(newValue);\n numOfElements++;\n return true;\n }\n return false;\n }", "@Override\n\tpublic boolean add(String s) {\n\t\t\n\t\tif(s.compareTo(value)<0) {\n\t\t\tif(left==null) {\n\t\t\t\tleft=new Node(s);\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\treturn left.add(s);\n\t\t\t\n\t\t}\n\t\telse {\n\t\t\tif(right==null) {\n\t\t\t\tright=new Node(s);\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\treturn right.add(s);\n\t\t\t\n\t\t}\n\t\n\n\t}", "public boolean add(E element){\n Object result = map.put(element, \"\");\n return (result == null);\n }", "static void add(String s) {\n if (s != null) {\n a.add(s);\n }\n }", "@Test\r\n public void addAllFromSetWithStrings() throws Exception {\r\n TreeSet<String> s = new TreeSet<>();\r\n s.addAll(sStr);\r\n assertTrue(s.contains(\"kek\"));\r\n assertTrue(s.contains(\"lel\"));\r\n assertTrue(s.contains(\"lol\"));\r\n }", "public boolean equalsOrContainsStr(String string) {\n return toString().equals(string);\n }", "@Override\n public boolean add(X x) {\n if (!allowElementsWithoutIdentification)\n throw new IllegalArgumentException(\"It is not allowed to put Elements without Identification in this Set\");\n\n return map.put(x, placeholder) == null;\n }", "public boolean add(String s) {\n s = s.trim().toLowerCase();\n\n TrieNode current = root;\n\n for (int i = 0; i < s.length(); i++) {\n char c = s.charAt(i);\n if (Character.isLowerCase(c)) {\n TrieNode child = current.children.get(c);\n if (child == null) {\n child = new TrieNode();\n current.children.put(c, child);\n }\n current = child;\n }\n }\n if(current.isWord){\n \tcurrent.word = s;\n }\n if (current.isWord)\n return false;\n \n current.isWord = true;\n return true;\n }", "public boolean add(String value){\n\t//add to the correct spot.\n\t//you may still use super.add(index,value)\n\tif (size() == getData().length) {\n\t resize();\n\t}\n\t//index = findIndex(value);\n\tint index = findIndexBinary(value);\n\tsuper.add(index,value);\n\treturn true;\n }", "public static boolean isUniqueUsingHashing(String str) {\n\t\tSet<Character> set = new HashSet<>();\n\t\tfor (int i = 0; i < str.length(); i++) {\n\t\t\tchar c = str.charAt(i);\n\t\t\t// Checks if set already contains given character. If yes return false else add\n\t\t\t// to the set.\n\t\t\tif (set.contains(c)) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\tset.add(c);\n\t\t}\n\t\treturn true;\n\t}", "public boolean isUnique(String id) {\n Objects.requireNonNull(id, \"ID is required\");\n // this set returns false when a value is inserted\n return setOnDisk.add(id);\n }", "protected abstract Set<String> _addToSet(String key, Collection<String> str);", "public static boolean isUnique1(String str) {\n HashSet<Character> set = new HashSet<>();\n for (int i = 0; i < str.length(); i++) {\n if (set.contains(str.charAt(i)))\n return false;\n set.add(str.charAt(i));\n }\n return true;\n }", "public static boolean isAllUnique(String string) {\n\n // Let's create a new HashSet to cache the characters.\n HashSet<Character> set = new HashSet<>();\n\n for (char c : string.toCharArray()) {\n if (set.contains(c)) {\n return false;\n } else {\n set.add(c);\n }\n }\n\n return true;\n }", "public static /* synthetic */ boolean m93354a(HashSet hashSet, String str) {\n if (!hashSet.contains(str)) {\n return false;\n }\n hashSet.remove(str);\n return true;\n }", "boolean add(String val);", "public boolean addState(String state) {\n\t\tif (!states.contains(state)) {\n\t\t\tstates.add(state);\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "public boolean add(String e) {\r\n \tSystem.out.println(e + \" \" + PRESENT);\r\n return map.put(e, PRESENT)==null;\r\n }", "@Override\n\tpublic boolean add(Character e) {\n\t\tif (!this.contains(e)) {\n\t\t\treturn super.add(e);\n\t\t} else\n\t\t\treturn false;\n\t}", "@Override\n public boolean addItem(T item) {\n //Make sure the Set does not already contain the item\n if(!this.contains(item)) {\n //Make sure there is enough room for the item. If there isn't\n //resize the array\n if(numItems == arr.length)\n this.ensureCap();\n //Add the item to the end and increment numItems\n arr[numItems++] = item;\n //return true\n return true;\n }\n //if item was already in set, return false\n return false;\n }", "public boolean addAllStrings(final Collection<String> memberStrings) {\n return strings.addAll(memberStrings);\n }", "public boolean add(String newValue) {\n if (newValue == null)\n return false;\n if (contains(newValue))\n return false;\n\n\n if ((float)(size() + MINIMAL_CHANGE) / (capacity()) > getUpperLoadFactor()) {\n\n int oldCapacity = capacity();\n capacity *= SIZE_CHANGE;\n LinkedListString[] newLinked = new LinkedListString[capacity()];\n rehash(newLinked, oldCapacity);\n\n linkedListStrings = newLinked;\n\n }\n\n int index = clamp(newValue);\n\n if (linkedListStrings[index] == null){\n linkedListStrings[index] = new LinkedListString();\n }\n\n linkedListStrings[index].add(newValue);\n\n sizeCounter++;\n return true;\n\n }", "@Test\r\n public void addToStringSet() throws Exception {\r\n TreeSet<String> s = new TreeSet<>();\r\n assertTrue(s.add(\"kek\"));\r\n assertTrue(s.contains(\"kek\"));\r\n }", "@Override\n\tpublic boolean contains(String s) {\n\t\tif(s.contentEquals(value)) {\n\t\t\treturn true;\n\t\t}\n\t\tif(s.compareTo(value)<0) {\n\t\t\tif(left==null) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\treturn left.contains(s);\n\t\t}\n\t\telse {\n\t\t\tif(right==null) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\treturn right.contains(s);\n\t\t}\n\t\t\n\t\t\n\t}", "private boolean has(String s) {\n\t\tboolean result = false;\n\t\tMyStack newBurger = new MyStack();\n\t\twhile (myBurger.size() != 0) {\n\t\t\tif (myBurger.peek().equals(s)) {\n\t\t\t\tresult = true;\n\t\t\t\tbreak;\n\t\t\t} else {\n\t\t\t\tnewBurger.push(myBurger.pop());\n\t\t\t}\n\t\t}\n\t\twhile (newBurger.size() != 0) {\n\t\t\tmyBurger.push(newBurger.pop());\n\t\t}\n\t\treturn result;\n\t}", "public boolean add(String word) {\r\n\t\treturn dict.add(word);\r\n\t}", "public void add(Location s) {\n\t\t//nothing gets added\n\t\tif (s == null){\n\t\t\treturn;\n\t\t}\n\t\tNode addedLocation = new Node();\n\t\taddedLocation.setElement(s);\n\t\tif (head == null){ //adding to an empty set\n\t\t\thead = addedLocation;\n\t\t\tsize ++;\n\t\t} else{ \n\t\t\t//adding to the top of a set that has at least one element stored in it\n\t\t\taddedLocation.next = head;\n\t\t\thead = addedLocation;\n\t\t\tsize ++;\n\t\t}\n\t}", "public static boolean uniqueString(String s) {\n java.util.HashSet<Character> hash = new java.util.HashSet<>();\n\n for (Character c : s.toCharArray()) {\n if (!hash.add(c)) return false;\n }\n return true;\n }", "@Override // java.util.List, java.util.Collection\n public /* synthetic */ boolean add(String str) {\n throw new UnsupportedOperationException(\"Operation is not supported for read-only collection\");\n }", "public final boolean add(ArraySet<T> source) {\n final T[] sourceArraySet = source.getArray();\n\n if (sourceArraySet == null) {\n return false;\n }\n\n synchronized (sync) {\n if (array == null) {\n array = Arrays.copyOf(sourceArraySet, sourceArraySet.length);\n return true;\n }\n\n boolean result = false;\n\n for (int i = 0; i < sourceArraySet.length; i++) {\n final T element = sourceArraySet[i];\n\n final T[] oldArray = array;\n array = ArrayUtils.addUnique(array, element, replaceElementIfEquals);\n\n result |= (oldArray != array);\n }\n\n return result;\n }\n }", "void add(String str) {\n assertEquals(!words.contains(str), trie.add(str));\n words.add(str);\n dictionary.add(str);\n assertEquals(words.size(), trie.size());\n checkConsistency();\n }", "public static boolean isUnique(String s) {\n if (s.length() > 128) return false;\n\n // we dont need to check the last element\n for (int i = 0; i < s.length() - 1; i++){\n String current = \"\";\n current += s.charAt(i);\n// System.out.println(current);\n if (s.substring(i + 1).contains(current))\n return false;\n }\n return true;\n }", "public void add(String element){\n\t\tif(!contains(element)){\n\t\t\tlist.addLast(element);\n\t\t}\n\t}", "private static boolean addToExistGroup(Map<String, List<String>> map, String str) {\n for (String key : map.keySet()) {\n if (isIsomorphic(str, key)) {\n map.get(key).add(str);\n\n return true;\n }\n }\n\n return false;\n }", "public boolean addWord(String word) {\n return false;\n }", "public void validAdd(String element){\n\t\tlist.addLast(element);\n\t}", "public boolean push(String string) {\n // Is there room in the stack?\n boolean roomForOneMore = this.usage < this.foundation.length;\n if (roomForOneMore) {\n // Insert the new string to the topmost position\n this.foundation[this.foundation.length - this.usage - 1] = string;\n // Increase the usage of the stack\n usage++;\n }\n return roomForOneMore;\n }", "public static boolean isUnique(String st) {\n\t\tif(st == null || st==\"\") {\n\t\t\treturn true;\n\t\t}\n\t\tfor(int i=0; i< st.length()-1; i++) {\n\t\t\tif(st.substring(i+1).indexOf(st.substring(i,i+1)) !=-1) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}", "void contains(String str) {\n dictionary.add(str);\n assertEquals(words.contains(str), trie.contains(str));\n assertEquals(words.size(), trie.size());\n }", "private static boolean m879a(Set<String> set) {\n return set.isEmpty() || (set.size() == 1 && set.contains(\"\"));\n }", "boolean hasUniqueCharactersTimeEfficient(String s) {\n Set<Character> characterSet = new HashSet<Character>();\n for(int i=0; i < s.length();i++) {\n if(characterSet.contains(s.charAt(i))) {\n return false;\n } else {\n characterSet.add(s.charAt(i));\n }\n }\n return true;\n }", "public boolean addAll(ISet<E> otherSet) {\n\t\tif (otherSet == null)\n\t\t\tthrow new IllegalArgumentException(\"The given set is null.\");\n\t\tboolean result = false;\n\t\tfor (E obj: otherSet) {\n\t\t\tif (!this.contains(obj)) {\n\t\t\t\tthis.add(obj);\n\t\t\t\tresult = true;\n\t\t\t}\n\t\t}\n\t\treturn result;\n\t}", "public boolean verificaDuplicidade(String s) {\n\t\tfor (Compromisso c : this.compromisso) {\n\t\t\tif (c.getDataInicio().equals(s)) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "public boolean add(IntSet add){\n\t\tif(contains(add)==-1){\n\t\t\tcontents.addElement(add);\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "protected void addToStoredStrings(String s) {\n \tif (debug) debug(\n \t\t\"addToStoredStrings(s=\", StringUtil.toString(s), \") at index=\",\n \t\tString.valueOf(storedStrings.size())\n \t);\n storedStrings.add(s);\n }", "@Override\n public boolean addItem(T item) {\n //Make sure the item is not already in the set\n if(!this.contains(item)){\n //create a new node with the item, and the current first node\n Node n = new Node(item, first);\n //update first node reference\n first = n;\n //increment numItems\n numItems++;\n return true;\n }\n //if item is already in the set return false\n return false;\n }", "public boolean enqueue(String s) {\n\t\tif ( isFull() )\n\t\t\treturn false;\n\t\t//is this the first insert?\n\t\tif ( isEmpty() )\n\t\t\tdata[++head] = s;\n\t\t//otherwise, move the tail to the new position\n\t\telse\n\t\t\tdata[(head+numElements)%data.length] = s;\n\t\tnumElements++;\n\t\treturn true;\n\t}", "@Override\r\n\tpublic boolean contains(Object o) {\n\t\treturn set.contains(o);\r\n\t}", "public boolean enqueue(String s) {\n return false;\n }", "public boolean add(E key)\r\n {\r\n if(this.contains(key))\r\n {\r\n return false;\r\n }\r\n\r\n else\r\n {\r\n super.add(key);\r\n }\r\n return true;\r\n }", "boolean alreadyAdded(char c) {\n for (char x :_chars) {\n if (x == c) {\n return true;\n }\n }\n return false;\n }", "public boolean testAllUniqueInplace(String string) {\n\t\tif (string.length() > 128) {\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\tfor (int i = 0; i < string.length(); i++) {\n\t\t\tfor (int j = i + 1; j < string.length(); j++) {\n\t\t\t\tchar ith = string.charAt(i);\n\t\t\t\tchar jth = string.charAt(j);\n\n\t\t\t\tif (ith == jth) {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}", "public boolean add(E x) {\n\t\taddLast(x);\n\t\treturn true;\n\t}", "public boolean add ( Object o ){\n\n try{\n\n String check = o.toString();\n if(!check.equals(o)){\n return false;\n }\n\n }\n\n catch(Exception e){\n return false;\n }\n\n if(o == null){\n return false;\n }\n\n else{\n\n \t try{\n String s = o.toString();\n list.add(s);\n return true;\n \t }\n \t\n \t catch (Exception e){\n \t\t return false;\n \t }\n\n }\n\n }", "public boolean contains(String s)\n {\n if(s==null)\n return false;\n\n if(s.isEmpty()) //base case\n return true;\n\n char first = s.charAt(0); //find next character\n if(childrenAdded.contains(first)) //if there is a trie for the character\n return children.get(first).contains(s.substring(1)); //search for the rest of the string in that trie\n else\n return false;\n }", "public boolean addSong(Song s) {\n\t\tthis.songList.add(this.songList.size(), s);\n\t\treturn true;\n\t}", "public boolean addTag(String newTag) {\n if (tags.contains(newTag)){\n return false;\n }\n tags.add(newTag);\n saveTags();\n return true;\n }", "public boolean add(Object x)\n {\n if (loadFactor() > 1)\n {\n resize(nearestPrime(2 * buckets.length - 1));\n }\n\n int h = x.hashCode();\n h = h % buckets.length;\n if (h < 0) { h = -h; }\n\n Node current = buckets[h];\n while (current != null)\n {\n if (current.data.equals(x))\n {\n return false; // Already in the set\n }\n current = current.next;\n }\n Node newNode = new Node();\n newNode.data = x;\n newNode.next = buckets[h];\n buckets[h] = newNode;\n currentSize++;\n return true;\n }", "boolean add(String s, int depth) {\n\n\t\t\t// First case: we are at the end of the string and this is the correct node\n\t\t\tif(depth >= s.length() || (s.charAt(depth) == character.get()) && depth == s.length() - 1) {\n\t\t\t\tAtomicBoolean result = absent;\n\t\t\t\tabsent.set(false);\n\t\t\t\treturn result.get();\n\t\t\t}\n\n\t\t\t// Second case: the next character in the string was found, but this is not the end of the string\n\t\t\t// We continue in member \"suffix\"\n\t\t\tif(s.charAt(depth) == character.get()) {\n\t\t\t\tif (suffix == null || suffix.get().character.get() > s.charAt(depth+1)) \n\t\t\t\t\tsuffix = new AtomicReference<Node>(new Node(s.charAt(depth+1), suffix.get()));\n\t\t\t\treturn suffix.get().add(s, depth+1);\n\t\t\t}\n\n\t\t\t// Third case: the next character in the string was not found\n\t\t\t// We continue in member \"next\"\n\t\t\t// To maintain the order, we may have to add a new node before \"next\" first\n\t\t\tif (next == null || next.get().character.get() > s.charAt(depth))\n\t\t\t\tnext.set(new Node(s.charAt(depth), next.get()));\n\t\n\t\t\treturn next.get().add(s, depth);\n\t\t}", "public void add(String value) {\n add(value, false);\n }", "public static boolean hasDuplicates(String s) {\n\t\tif (StringUtils.isEmpty(s)) {\n\t\t\treturn false;\n\t\t}\n\t\tchar[] c = s.toCharArray();\n\t\tArrays.sort(c);\n\t\tfor (int i = 0; i < c.length - 1; i++) {\n\t\t\tif (c[i] == c[i+1]) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "public boolean isSetStr()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n return get_store().count_elements(STR$0) != 0;\r\n }\r\n }", "public boolean add(E o) {\r\n if (o == null)\r\n return false;\r\n if (this.map.containsKey(o.hashCode())) {\r\n return false;\r\n }\r\n return this.map.put(o.hashCode(), o) == null;\r\n }", "@Override\n public boolean add(Set<E> e) {\n throw new UnsupportedOperationException(\"Add not supported\");\n }", "public boolean add (Object o) {return addLast(o);}", "@Override\r\n\tpublic boolean addHS(String hs) {\n\t\treturn adi.addHS(hs);\r\n\t}", "public static boolean checkUnique(String s) {\n\t\tif (s == null || s.length() == 0)\n\t\t\treturn true;\n\t\tHashMap<Character, Integer> map = new HashMap<Character, Integer>();\n\t\tchar[] arr = new char[s.length()];\n\t\tfor (int i = 0; i < s.length(); i++) {\n\t\t\tif (!map.containsKey(s.charAt(i)))\n\t\t\t\tmap.put(s.charAt(i), 1);\n\t\t\telse if (map.containsKey(s.charAt(i))) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}", "@Override\n public boolean hasDuplicates() {\n ArrayList<String> itemList = new ArrayList(Arrays.asList(\"\"));\n Node currNode = this.head;\n while(true){\n if(itemList.contains(currNode.getItem())){ // need to edit\n return true;\n }else{\n itemList.add(currNode.getItem());\n }\n if(currNode.getNextNode() == null){\n break;\n }\n currNode = currNode.getNextNode();\n }\n return false;\n }", "@Test\r\n public void testHashSetInsert()\r\n {\r\n Square s0 = new Square(1, -1),\r\n s1 = new Square(1, -1);\r\n HashSet<Square> hs = new HashSet<>();\r\n hs.add(s0);\r\n assertEquals(1, hs.size());\r\n hs.add(s1);\r\n assertEquals(1, hs.size());\r\n assertTrue(hs.contains(s0));\r\n assertTrue(hs.contains(s1));\r\n }", "public static boolean isUnique(String input) {\r\n // Create a Set to insert characters\r\n Set<Character> set = new HashSet<>();\r\n\r\n // get all characters form String\r\n char[] characters = input.toCharArray();\r\n\r\n for (Character c : characters) {\r\n if (!set.add(c)) {\r\n return false;\r\n }\r\n }\r\n return true;\r\n }", "public static boolean isUniqueUsingBitVector(String str) {\n\t\tInstant begin = Instant.now();\n\t\tint vector = 0;\n\t\tfor (int i = 0; i < str.length(); i++) {\n\t\t\tint j = str.charAt(i) - 'a';\n\t\t\t// if condition checks if bit at index j is set or not. If bit is set, means\n\t\t\t// already duplicate character in string\n\t\t\tif ((vector & (1 << j)) > 0) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\t// Setting the bit at index j if already not set, which means character appeared\n\t\t\t// first time\n\t\t\tvector |= 1 << j;\n\t\t}\n\t\tSystem.out.println(\"UniqueUsingBitVector took: \" + Duration.between(Instant.now(), begin).toMillis() + \" ms\");\n\t\treturn true;\n\t}", "public Boolean isUniqueUsingAPI(String value) {\n\t\t// We put each character of our value in a Set that don't allows duplicated values\n\t\tSet<String> items = new HashSet<String>(Arrays.asList(value.toUpperCase().replaceAll(\"\\\\s\",\"\").split(\"\")));\n\t\t\n\t\t// If the size of our set is different that the length of our string that means that on the string are duplicated values.\n\t\treturn value.length() == items.size();\n\t}", "public boolean contains(String string){\r\n if(string == null) {\r\n return false;\r\n }\r\n int i = 0;\r\n int hash = string.hashCode(),index = 0;\r\n boolean found = false;\r\n while(!found){\r\n index = (hash + (i*i+i)/2) & (this.capacity()-1);\r\n if(this.hashTable[index] == null){\r\n return false;\r\n }\r\n else if(this.hashTable[index].equals(string)){\r\n found = true;\r\n }\r\n i++;\r\n }\r\n return true;\r\n }", "private boolean equals(AccessPath that, HashSet s) {\n // Relies on the fact that the iterators are stable for equivalent sets.\n // Otherwise, it is an n^2 algorithm.\n for (Iterator i = this.succ.iterator(), j = that.succ.iterator(); i.hasNext(); ) {\n IdentityHashCodeWrapper a = (IdentityHashCodeWrapper)i.next();\n IdentityHashCodeWrapper b = (IdentityHashCodeWrapper)j.next();\n AccessPath p = (AccessPath)a.getObject();\n AccessPath q = (AccessPath)b.getObject();\n if (!p.oneEquals(q)) return false;\n if (s.contains(a)) continue;\n s.add(a);\n if (!p.equals(q, s)) return false;\n }\n return true;\n }", "public void add(String str);", "public void add(String str);", "public static boolean hasAllUniqueChars2(String string) {\n HashSet<Character> characters = new HashSet<>();\n\n for(Character character : string.toCharArray()) {\n if (characters.contains(character)) return false;\n else characters.add(character);\n }\n\n return true;\n }", "private void add(String thestring) {\n\t\t\n\t}", "private void reHashAdd(String string){\r\n if(string != null && string != this.deleted) {\r\n // if the string is Deleted there is no need to put it in the new hash table\r\n int hash = string.hashCode(),index = 0;\r\n int i = 0;\r\n boolean found = false;\r\n while(!found){\r\n index = (hash + (i*i+i)/2) & (this.capacity()-1);\r\n if(this.hashTable[index] == null){\r\n found = true;\r\n this.hashTable[index] = string;\r\n }\r\n i ++;\r\n }\r\n }\r\n }", "public boolean isContainedBy(final String testedString) {\n if (testedString.indexOf(SEPARATOR) < 0) {\n return false;\n }\n return testedString.contains(key);\n }", "@Test(timeout=1000)\n\tpublic void testSimpleAdd() {\n\t\thashmap.add(s1);\n\t\tStudent[] array = hashmap.getArray();\n\t\tboolean success = false;\n\t\tfor (int i = 0; i < array.length; i++) {\n\t\t\tStudent s = array[i];\n\t\t\tif (s1.equals(s)){\n\t\t\t\tsuccess = true;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tassertTrue(\"add() failed. Element not found in array\", success);\n\t}", "public boolean add(Object value)\r\n {\r\n if (contains(value))\r\n return false;\r\n root = add(root, value);\r\n return true;\r\n }", "private static boolean isUnique(String str) {\n\t\tif(str.length() > 256)\n\t\t\treturn false;\n\t\tboolean [] char_set = new boolean[256];\n\t\tfor(int i =0; i<str.length();i++) {\n\t\t\tint value = str.charAt(i);\n\t\t\tif(char_set[value])\n\t\t\t{\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\tchar_set[value] = true;\n\t\t}\n\t\treturn true;\n\t}", "public void addPartOfSet(java.lang.String value) {\r\n\t\tBase.add(this.model, this.getResource(), PARTOFSET, value);\r\n\t}", "public boolean add(Object o) {\n\t\treturn map.put(o, PRESENT) == null;\n\t}", "public boolean add(String key) {\n char[] characters = key.trim().toCharArray();\n\n TrieNode trieNode = root; // current trie node\n\n boolean alreadyExists = true;\n\n for (char ch : characters) {\n // get the character represent index from the current trie node\n int index = ch - 'a';\n if (trieNode.offsprings[index] == null) {\n trieNode.offsprings[index] = new TrieNode();\n alreadyExists = false;\n }\n\n trieNode = trieNode.offsprings[index];\n }\n\n trieNode.isRepresentACompleteWord = true;\n\n return alreadyExists;\n }", "public void add(String piece) {\n\tif(!pieces.contains(piece))\n\t pieces.add(piece);\n\tupdate();\n }", "private static boolean duplicateSetName(String setName){\n boolean duplicate = false;\n for (Set set : SetManager.getInstance().getSets()) {\n if (set.getName() != null) {\n if (set.getName().equals(setName)) {\n duplicate = true;\n }\n }\n }\n return duplicate;\n }", "public static boolean uniqueCharStringNoDS(String s){\r\n for (int i = 0; i < s.length(); i++){\r\n for (int j = i+1; j < s.length(); j++){\r\n char temp = s.charAt(i);\r\n if (temp == s.charAt(j)){\r\n return false;\r\n }\r\n }\r\n }\r\n return true;\r\n }", "@Test\r\n public void addWorks() throws Exception {\r\n TreeSet<Integer> s = new TreeSet<>();\r\n assertTrue(s.add(1));\r\n assertTrue(s.contains(1));\r\n assertFalse(s.add(1));\r\n }" ]
[ "0.7037065", "0.6623844", "0.6562001", "0.6559328", "0.64150095", "0.62998223", "0.6251928", "0.6157978", "0.61029726", "0.60342866", "0.60255235", "0.6023788", "0.60057694", "0.59776765", "0.59468985", "0.5897853", "0.5888279", "0.5883316", "0.5880542", "0.58181673", "0.58100855", "0.5762319", "0.57607675", "0.5741806", "0.5731296", "0.57306945", "0.57134515", "0.5689935", "0.56752366", "0.5658835", "0.56500167", "0.5643052", "0.561587", "0.5612066", "0.5602446", "0.5594861", "0.5570954", "0.5559506", "0.55346894", "0.55310315", "0.5518258", "0.550489", "0.5473362", "0.5470392", "0.5462915", "0.5430601", "0.5429627", "0.5427451", "0.5426006", "0.54097456", "0.54053766", "0.5380753", "0.5364005", "0.5355378", "0.5352489", "0.5351462", "0.5337486", "0.5321267", "0.53051376", "0.5281787", "0.5280922", "0.5276998", "0.52628046", "0.52485424", "0.52371305", "0.5236814", "0.52303034", "0.5215956", "0.52098626", "0.52093124", "0.5199941", "0.51989824", "0.5196983", "0.5182768", "0.5179289", "0.517438", "0.5163971", "0.5158919", "0.5148572", "0.514446", "0.51387835", "0.51307875", "0.51300657", "0.51273656", "0.5121307", "0.5121307", "0.5117945", "0.511325", "0.5112246", "0.5110069", "0.51062584", "0.509954", "0.5091788", "0.5085513", "0.5082425", "0.5079151", "0.50785005", "0.5076987", "0.5075571", "0.50674623" ]
0.71894795
0
Returns a sequence that creates an object of type compatible with the given class. Wraps the object in a list, and returns the list. CURRENTLY, will return a sequence (i.e. a nonempty list) only if cls is an array.
public static SimpleList<Sequence> createSequence(ComponentManager components, ConcreteType type) { final int MAX_LENGTH = 7; if (!type.isArray()) { return new ArrayListSimpleList<Sequence>(); } ConcreteArrayType arrayType = (ConcreteArrayType) type; ConcreteType elementType = arrayType.getElementType(); Sequence s = null; SimpleList<Sequence> candidates = components.getSequencesForType(elementType, false); if (candidates.isEmpty()) { // No sequences that produce appropriate component values found, and if (GenInputsAbstract.forbid_null) { // use of null is forbidden. So, return the empty array. s = new Sequence().extend(ConcreteOperation.createArrayCreation(arrayType, 0)); } else { // null is allowed. s = new Sequence(); List<Variable> ins = new ArrayList<>(); ConcreteOperation declOp; if (Randomness.weighedCoinFlip(0.5)) { declOp = ConcreteOperation.createArrayCreation(arrayType, 0); } else { s = s.extend(ConcreteOperation.createNullOrZeroInitializationForType(elementType)); ins.add(s.getVariable(0)); declOp = ConcreteOperation.createArrayCreation(arrayType, 1); } s = s.extend(declOp, ins); } } else { int length = Randomness.nextRandomInt(MAX_LENGTH); s = createAnArray(candidates, elementType, length); } assert s != null; ArrayListSimpleList<Sequence> l = new ArrayListSimpleList<>(); l.add(s); return l; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@SuppressWarnings(\"unchecked\")\n protected static <V> V[] toVarArgs(List<V> list, Class<V> cls) {\n return list != null ? list.toArray((V[]) Array.newInstance(cls, list.size())) : (V[]) null;\n }", "public static List m149887a(Class cls) {\n if (cls == null) {\n return null;\n }\n ArrayList arrayList = new ArrayList();\n while (cls != null) {\n Class[] interfaces = cls.getInterfaces();\n for (int i = 0; i < interfaces.length; i++) {\n if (!arrayList.contains(interfaces[i])) {\n arrayList.add(interfaces[i]);\n }\n for (Class cls2 : m149887a(interfaces[i])) {\n if (!arrayList.contains(cls2)) {\n arrayList.add(cls2);\n }\n }\n }\n cls = cls.getSuperclass();\n }\n return arrayList;\n }", "public abstract <T> List<T> list(Class<T> aClass);", "public static Class<?> wrapperArrayOf(Class<?> clazz) {\n String arrayClassName = getClassNameAfterWrapperArrayOf(clazz);\n try {\n return Class.forName(arrayClassName);\n } catch (ClassNotFoundException e) {\n // the new class must be found!\n throw new RuntimeException(e);\n }\n }", "public static <T> FixtureBuilder<List<T>> listOf(final Class<T> cls) {\n\t\treturn new FixtureBuilder.FixtureListBuilder<T>(cls);\n\t}", "public static <T> List<T> toObjectList(String body, Class<T> cls) {\n\t\ttry {\n\t\t\tList<Object> list = fullMapper.readValue(body,\n\t\t\t\t\tnew TypeReference<List<?>>() {\n\t\t\t\t\t});\n\t\t\tList<T> result = new ArrayList<T>();\n\t\t\tfor (Object o : list) {\n\t\t\t\tresult.add(fullMapper.convertValue(o, cls));\n\t\t\t}\n\t\t\treturn result;\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t\treturn null;\n\t\t}\n\t}", "default <A> A getItemsAs( Class<A> arrayTypeClass ) {\n return DataConverter.get().convert( getRawItems(), arrayTypeClass );\n }", "private Object createArray(Class<?> clazz)\n\t{\n\t\tObject mockValue;\n\t\tClass<?> componentType = clazz.getComponentType();\n\t\tmockValue = createInstanceOfType(componentType);\n\t\tObject array = Array.newInstance(componentType, MOCK_ARRAY_SIZE);\n\t\tfor (int ctr = 0; ctr < MOCK_ARRAY_SIZE; ctr++)\n\t\t{\n\t\t\tArray.set(array, ctr, mockValue);\n\t\t}\n\t\tmockValue = array;\n\t\treturn mockValue;\n\t}", "private List<IClass> getChildren(IClass cls) {\n\t\tList<IClass> subclasses = new ArrayList<IClass>();\n\t\tCollections.addAll(subclasses, cls.getDirectSubClasses());\n\t\treturn subclasses;\n\t}", "public static <E extends F, F> F[] asAList(List<E> l, Class<F> theClass) {\n F[] res = (F[]) Array.newInstance(theClass, l.size());\n for (int i = 0; i < l.size(); i++) {\n res[i] = l.get(i);\n }\n return res;\n }", "public Collection getExtent(Class cls)\n{\n\tVector extent = new Vector();\n\t\n\tIterator i = objects.iterator();\n\t\n\twhile ( i.hasNext() )\n\t{\n\t\tObject o = i.next();\n\t\t\n\t\tif ( o.getClass().equals(cls) )\n\t\t\textent.add(o);\n\t}\n\t\n\treturn extent;\n}", "public static Object get(Class cls) \n\t{\n\treturn getRecycler(cls).getObject();\n\t}", "public boolean isArray(Class cls) {\n return cls != null && (cls.isArray() || Collection.class.isAssignableFrom(cls) || Externalizable.class.isAssignableFrom(cls) || Map.class.isAssignableFrom(cls) || Map.Entry.class.isAssignableFrom(cls));\n }", "<T> IList<T> getObjects(Class<T> type);", "@SuppressWarnings(\"unchecked\")\n\tpublic List<DeclaredType> getClassArrayFromAnnotationMethod(Supplier<Class<?>[]> supplier) {\n\t\ttry {\n\t\t\tsupplier.get();\n\t\t} catch (MirroredTypesException e) {\n\t\t\t// types WILL be declared\n\t\t\treturn (List<DeclaredType>) e.getTypeMirrors();\n\t\t}\n\t\treturn Collections.emptyList();\n\t}", "public List<Object> selectAllToObject(Class clazz) {\n Connection connection = ConnectionPoll.getConnection();\n CRUDService crudService = new CRUDService(connection, clazz);\n ConnectionPoll.releaseConnection(connection);\n return crudService.selectAll(clazz);\n }", "public static Class<?>[] objectToTypeArray(final Object... array) {\n if (array.length == 0) return new Class<?>[0];\n List<Class<?>> list = new ArrayList<>(array.length);\n for (Object obj : array) {\n list.add(obj.getClass());\n }\n return list.toArray(new Class<?>[list.size()]);\n }", "public static Recycler getRecycler(Class cls) \n\t{\n\tfor (int i = 0; i < gAllTop; i++)\n\t\t{\n\t\tif (gAllRecyclers[i].fClass == cls)\n\t\t\treturn gAllRecyclers[i];\n\t\t}\n\t\t\n\t// wasn't found, so create a new Recycler\n\tRecycler r = new Recycler(cls);\n\n\t// make sure the list of recyclers is big enough\n\tif (gAllTop == gAllRecyclers.length)\n\t\t{\n\t\tRecycler[] newArray = new Recycler[gAllTop+16];\n\t\tSystem.arraycopy(gAllRecyclers, 0, newArray, 0, gAllTop);\n\t\tgAllRecyclers = newArray;\n\t\t}\n\n\t// add new Recycler to list\n\tgAllRecyclers[gAllTop++] = r;\n\n\t// return the new Recycler\n\treturn r;\n\t}", "public static <T> List<T> instantiateAll(String[] classes, ClassLoader classLoader) {\n List<T> clazzes = new ArrayList<>();\n for (String clazz : classes) {\n if (StringUtils.hasLength(clazz)) {\n clazzes.add(ClassUtils.<T>instantiate(clazz, classLoader));\n }\n }\n return clazzes;\n }", "public boolean isArray(Class paramClass) {\n/* 140 */ boolean bool = false;\n/* */ \n/* 142 */ if (paramClass == null) {\n/* 143 */ throw new IllegalArgumentException();\n/* */ }\n/* */ \n/* 146 */ if (paramClass.isArray()) {\n/* 147 */ Class<?> clazz = paramClass.getComponentType();\n/* */ \n/* */ \n/* */ \n/* 151 */ bool = (isPrimitive(clazz) || isRemoteInterface(clazz) || isEntity(clazz) || isException(clazz) || isValue(clazz) || isObjectReference(clazz)) ? true : false;\n/* */ } \n/* */ \n/* 154 */ return bool;\n/* */ }", "public abstract Class<?>[] getCoClasses();", "@SuppressWarnings(\"unchecked\")\r\n public static final <U> DataTypeDescription<U> list(Class<U> clazz){\r\n for (DataTypeDescription<?> entry : list()) {\r\n if (entry.getWrappedClass() == clazz) {\r\n return (DataTypeDescription<U>)entry;\r\n }\r\n }\r\n return null;\r\n }", "public ObjectArrayTemplateElement()\n {\n super(Object[].class, obj -> {\n if (obj instanceof Collection)\n {\n return ((Collection) obj).toArray();\n }\n throw new UnsupportedOperationException(\"Can't convert object (\" + obj.getClass().getName() + \") to Object[]: \" + obj);\n }, Collection.class::isAssignableFrom);\n }", "private static String getClassNameAfterWrapperArrayOf(Class<?> clazz) {\n if(clazz.isPrimitive()) {\n String baseTypeDescriptor = DescriptorUtils.primitiveClass2BaseTypeDescriptor(clazz);\n return \"[\" + baseTypeDescriptor;\n } else if(clazz.isArray()) {\n return \"[\" + clazz.getName();\n } else {\n // normal object\n return \"[L\" + clazz.getName() + \";\";\n }\n }", "public <T extends Control> T[] getComponents(Class<T> clazz) {\r\n final List<Node> lst = new ArrayList<>(10);\r\n spatial.breadthFirstTraversal(new SceneGraphVisitorAdapter() {\r\n @Override\r\n public void visit(Node node) {\r\n if (node.getControl(clazz) != null) {\r\n lst.add(node);\r\n }\r\n }\r\n });\r\n return (T[]) lst.toArray();\r\n }", "private <T> List<T> getListFromJsonArray(Class<T> clazz, JSONArray response, CustomRepoListListener<T> listener) throws JSONException, IOException {\n List<T> t = new ArrayList<T>();\n int c = 0;\n\n while (c < response.length()) {\n\n t.add(getObjectFromJsonObject(response.getJSONObject(c), clazz));\n\n c++;\n }\n return t;\n }", "public static final Type m12301d(Class<?> cls, List<C6743p> list) {\n Class<?> declaringClass = cls.getDeclaringClass();\n if (declaringClass == null) {\n ArrayList arrayList = new ArrayList(C5266a.m9892V(list, 10));\n for (C6743p e : list) {\n arrayList.add(m12302e(e));\n }\n return new C6746r(cls, (Type) null, arrayList);\n } else if (Modifier.isStatic(cls.getModifiers())) {\n ArrayList arrayList2 = new ArrayList(C5266a.m9892V(list, 10));\n for (C6743p e2 : list) {\n arrayList2.add(m12302e(e2));\n }\n return new C6746r(cls, declaringClass, arrayList2);\n } else {\n int length = cls.getTypeParameters().length;\n Type d = m12301d(declaringClass, list.subList(length, list.size()));\n List<C6743p> subList = list.subList(0, length);\n ArrayList arrayList3 = new ArrayList(C5266a.m9892V(subList, 10));\n for (C6743p e3 : subList) {\n arrayList3.add(m12302e(e3));\n }\n return new C6746r(cls, d, arrayList3);\n }\n }", "@Nullable\n @Override\n public PyType getGenericType(@NotNull PyClass cls, @NotNull TypeEvalContext context) {\n final PyFunction init = cls.findInitOrNew(true, context);\n if (init != null) {\n final PyCallableType callableType = PyUtil.as(context.getType(init), PyCallableType.class);\n if (callableType != null) {\n final PyType returnType = PyUtil.as(callableType.getReturnType(context), PyCollectionType.class);\n if (returnType != null) {\n return returnType;\n }\n }\n }\n\n return null;\n }", "protected abstract <T> Collection<T> createCollection(Class<T> clazz);", "@SuppressWarnings(\"unchecked\")\n public static <T> T[] alloc(Class<T> cls, int n) {\n return (T[])Array.newInstance(cls, n);\n }", "public GTUIterator(GTUContainer <T> object,Class<T[]> classtype){\r\n position=0;\r\n sizeArr=object.size();\r\n itrArr=classtype.cast(Array.newInstance(classtype.getComponentType(),sizeArr));\r\n for(int i=0;i<object.size();i++) {\r\n itrArr[i]= (T)object.getArrayElement(i);\r\n }\r\n }", "public abstract <T extends ReferenceAnnotation> List<ReferenceMetadata<T>> getAvailableVersions(Class<T> cls);", "public <T> List<T> get(Class<T> clz) {\n\t\treturn get(clz, null, null, null, null, null, null);\n\t}", "<T> List<T> getAll(Class<T> clazz);", "@NotNull\n List<? extends ClassInfo> getClasses();", "@ZenCodeType.Caster\n @ZenCodeType.Method\n default List<IData> asList() {\n \n return notSupportedCast(\"IData[]\");\n }", "public static <T> List<T> getList(Cursor cursor, Class<? extends T> clazz) {\n if (cursor.moveToFirst()) {\n final List<T> result = new ArrayList<T>(cursor.getCount());\n final TypeAdapter adapter = getAdapter(clazz);\n do {\n final T newObject = (T) adapter.newObject();\n adapter.map(cursor, newObject);\n result.add(newObject);\n } while (cursor.moveToNext());\n return result;\n }\n return null;\n }", "public ListItemsData getListItemsData(Class beanClass) throws SQLException,\n\tInstantiationException, IllegalAccessException {\n\t\tListItemsData result = new ListItemsData();\n\t\tresult.setTotalCount(this.totalCount);\n\t\t\n\t\tthis.beanMapper = new BeanMapper(beanClass);\n\t\t\n\t\tList itemRange = new ArrayList();\n\t\t//XXX add capacity\n\t\t\n\t\twhile (this.itemRangeResultSet.next()) {\n\t\t\tObject record = beanClass.newInstance();\n\t\t\treadBeanFields(this.itemRangeResultSet, record);\n\t\t\titemRange.add(record);\n\t\t}\n\t\t\n\t\tresult.setItemRange(itemRange);\n\t\t\n\t\treturn result;\n\t}", "private List<ClassNode> createClsRelList(ClassNode clsNode, Map classes) {\n ClassNode currClsNode = clsNode;\n Map<String, ClassNode> classMap = classes;\n\n List<ClassNode> clsRel = new LinkedList<ClassNode>();\n clsRel.add(clsNode);\n\n while(currClsNode instanceof ClassWithParentNode) {\n ClassNode nextClsNode = classMap.get(((ClassWithParentNode)\n currClsNode).getParent());\n clsRel.add(0, nextClsNode);\n currClsNode = nextClsNode;\n }\n return clsRel;\n }", "@SuppressWarnings(\"ObjectEquality\")\n public static Class<?> getArrayClass(Class<?> clazz)\n {\n if (clazz.isPrimitive())\n {\n if (clazz == boolean.class)\n {\n return boolean[].class;\n }\n if (clazz == byte.class)\n {\n return byte[].class;\n }\n if (clazz == short.class)\n {\n return short[].class;\n }\n if (clazz == char.class)\n {\n return char[].class;\n }\n if (clazz == int.class)\n {\n return int[].class;\n }\n if (clazz == long.class)\n {\n return long[].class;\n }\n if (clazz == float.class)\n {\n return float[].class;\n }\n if (clazz == double.class)\n {\n return double[].class;\n }\n }\n if (clazz.isArray())\n {\n return getCanonicalClass(\"[\" + clazz.getName());\n }\n return getCanonicalClass(\"[L\" + clazz.getName() + \";\");\n }", "private Class<?> getArrayList(Field f) {\n f.setAccessible(true);//将访问权限设置为true\n if (f.getType() == java.util.List.class) {\n // 如果是List类型,得到其Generic的类型\n Type genericType = f.getGenericType();\n if (genericType == null) return null;\n // 如果是泛型参数的类型\n if (genericType instanceof ParameterizedType) {\n ParameterizedType pt = (ParameterizedType) genericType;\n //得到泛型里的class类型对象\n Class<?> genericClazz = (Class<?>) pt.getActualTypeArguments()[0];\n return genericClazz;\n }\n }\n return null;\n }", "private static Object m2173b(Class cls) {\n try {\n return C0713a.m2494a(cls);\n } catch (Exception e) {\n Throwable e2 = e;\n try {\n C0714b a = C0713a.m2491a(cls, new Class[0]);\n a.m2498a();\n return a.m2497a(new Object[0]);\n } catch (SecurityException e3) {\n throw new SerializationException(\"Error constructing instance of class: \" + cls.getName(), e2);\n } catch (ReflectionException e4) {\n if (Enum.class.isAssignableFrom(cls)) {\n if (cls.getEnumConstants() == null) {\n cls = cls.getSuperclass();\n }\n return cls.getEnumConstants()[0];\n } else if (cls.isArray()) {\n throw new SerializationException(\"Encountered JSON object when expected array of type: \" + cls.getName(), e2);\n } else if (!cls.isMemberClass() || Modifier.isStatic(cls.getModifiers())) {\n throw new SerializationException(\"Class cannot be created (missing no-arg constructor): \" + cls.getName(), e2);\n } else {\n throw new SerializationException(\"Class cannot be created (non-static member class): \" + cls.getName(), e2);\n }\n } catch (Exception e5) {\n e2 = e5;\n throw new SerializationException(\"Error constructing instance of class: \" + cls.getName(), e2);\n }\n }\n }", "public COSArray toList() \n {\n return array;\n }", "@SuppressWarnings({ \"unchecked\"})\n\tpublic<T extends SubdocumentoIva<?, ?, ?>> List<T> getListaSubdocumentoIva(Class<T> classifClazz) {\n\t\t\n\t\tfinal List<T> result = new ArrayList<T>();\n\t\t\n\t\tfor (SDI c : listaSubdocumentoIva) {\n\t\t\tif(classifClazz.isInstance(c)){\n\t\t\t\tresult.add((T)c);\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn result;\n\t}", "public Object loadArray(Class<?> clazz, Field field) throws Exception {\n int length = readInt();\n Object array = Array.newInstance(clazz.getComponentType(), length);\n populateArray(array, field);\n return array;\n }", "public abstract <T> List<T> loadAll(Class<T> paramClass);", "final Class<?>[] classes() {\n if (classes instanceof Class[]) {\n return (Class[]) classes;\n } else {\n return new Class[] { (Class) classes };\n }\n }", "public Reflector mo27136a(Class<?>... clsArr) throws C3885b {\n try {\n this.f17270c = this.f17268a.getDeclaredConstructor(clsArr);\n this.f17270c.setAccessible(true);\n this.f17271d = null;\n this.f17272e = null;\n return this;\n } catch (Throwable th) {\n throw new C3885b(\"Oops!\", th);\n }\n }", "public <T extends Base> List<T> list(Class<T> T) throws IOException,\n\t\t\tClassNotFoundException {\n\t\treturn Core.list(T, getHttpMethodExecutor());\n\t}", "public ClassType[] getArray(){\n\t\t\tClassType[] temp = new ClassType[count];\n\t\t\tfor (int i = 0; i < count; i++){\n\t\t\t\ttemp[i] = new ClassType(anArray[i]);\n\t\t\t}\n\t\t\treturn temp;\n\t\t}", "@Override\n\tpublic List<?> forFilterList(Class<?> clazz) {\n\t\treturn null;\n\t}", "private static <T extends BaseAdvertBean> List<T> getAdvertList(Class<T> tClass, String[] info) {\n\n List<T> list = new ArrayList<>();\n BaseAdvertBean base = new BaseAdvertBean();\n AdvertTypeBean bb = new AdvertTypeBean();\n bb.setAdvert_type(\"123\");\n base.setAdvertTypeBean(bb);\n list.add((T) base);\n\n return list;\n }", "private static Class[] toHelperParameters(Class[] cls, Class helper) {\n Class[] params = new Class[cls.length + 1];\n params[0] = helper;\n System.arraycopy(cls, 0, params, 1, cls.length);\n return params;\n }", "<T> T mo19025a(Object obj, Class<T> cls);", "private Recycler(Class cls) \n\t{\n\tfClass = cls;\n\n\t// create an array with the initial bin size\n\tcreateBin(BIN_GROW_SIZE);\n\t}", "protected List findAll(Class clazz) {\r\n\r\n try {\r\n Query q = entityManager.createNamedQuery(clazz.getSimpleName() + \".findAll\");\r\n return q.getResultList();\r\n } catch (Exception e) {\r\n //Nao e um erro :)\r\n }\r\n return null;\r\n }", "public static Object fromJSON(quark.reflect.Class cls, Object result, io.datawire.quark.runtime.JSONObject json) {\n if (((json)==(null) || ((Object)(json) != null && ((Object) (json)).equals(null))) || ((json).isNull())) {\n return null;\n }\n Integer idx = 0;\n if ((result)==(null) || ((Object)(result) != null && ((Object) (result)).equals(null))) {\n if (((cls).name)==(\"quark.String\") || ((Object)((cls).name) != null && ((Object) ((cls).name)).equals(\"quark.String\"))) {\n String s = (json).getString();\n return s;\n }\n if (((cls).name)==(\"quark.float\") || ((Object)((cls).name) != null && ((Object) ((cls).name)).equals(\"quark.float\"))) {\n Double flt = (json).getNumber();\n return flt;\n }\n if (((cls).name)==(\"quark.int\") || ((Object)((cls).name) != null && ((Object) ((cls).name)).equals(\"quark.int\"))) {\n Integer i = ((int) Math.round((json).getNumber()));\n return i;\n }\n if (((cls).name)==(\"quark.bool\") || ((Object)((cls).name) != null && ((Object) ((cls).name)).equals(\"quark.bool\"))) {\n Boolean b = (json).getBool();\n return b;\n }\n result = (cls).construct(new java.util.ArrayList(java.util.Arrays.asList(new Object[]{})));\n }\n if (((cls).name)==(\"quark.List\") || ((Object)((cls).name) != null && ((Object) ((cls).name)).equals(\"quark.List\"))) {\n java.util.ArrayList<Object> list = (java.util.ArrayList<Object>) (result);\n while ((idx) < ((json).size())) {\n (list).add(Functions.fromJSON(((cls).getParameters()).get(0), null, (json).getListItem(idx)));\n idx = (idx) + (1);\n }\n return list;\n }\n java.util.ArrayList<quark.reflect.Field> fields = (cls).getFields();\n while ((idx) < ((fields).size())) {\n quark.reflect.Field f = (fields).get(idx);\n idx = (idx) + (1);\n if (Boolean.valueOf(((f).name).startsWith(\"_\"))) {\n continue;\n }\n if (!(((json).getObjectItem((f).name)).isNull())) {\n ((io.datawire.quark.runtime.QObject) (result))._setField((f).name, Functions.fromJSON((f).getType(), null, (json).getObjectItem((f).name)));\n }\n }\n return result;\n }", "public abstract <T> List<T> list(List<Criteria> criterias, Class<T> aClass);", "@SuppressWarnings(\"unchecked\")\n\tpublic List<T> list() {\n\t\treturn sessionFactory.getCurrentSession().createCriteria(clazz).addOrder(org.hibernate.criterion.Order.asc(\"id\")).list();\n\t}", "private <T> List<T> filterList(Iterable<?> iterable, Class<T> clazz) {\n List<T> result = new ArrayList<>();\n for (Object object : iterable) {\n if (clazz.isInstance(object)) {\n @SuppressWarnings(\"unchecked\")\n // Checked using clazz.isInstance\n T tObject = (T) object;\n result.add(tObject);\n }\n }\n return result;\n }", "@Override\n public List recuperarTodosLosElementos(Class clase) {\n Query query = database.query();\n query.constrain(clase);\n ObjectSet result = query.execute();\n return result;\n }", "public <T> Set<T> mo31990d(Class<T> cls) {\n return (Set) mo32007c(cls).get();\n }", "private static String [] init(String className, TypeTree tree) {\n // Use a Linked to avoid resizing.\n Collection<String> types = new LinkedList<String>();\n String [] typearray;\n\t if (className.equals(EntryRep.matchAnyClassName())) {\n\t\t// handle \"match any\" specially\" -- search from ROOT\n\t\t// Simplification suggested by \n\t\t// Lutz Birkhahn <[email protected]>\n\t\tclassName = ROOT;\n\t } else {\n\t\t// add this class\n\t\ttypes.add(className);\n\t }\n\n\t // add all subclasses\n\t walkTree(tree.classSet(className), types, tree);\n\n\t // Convert it to an array and then randomize\n\t typearray = types.toArray(new String[types.size()]);\n\t int randnum = 0;\n\t String tmpobj = null;\n int length = typearray.length;\n\t for (int i = 0; i < length; i++) {\n\t\trandnum = numgen.nextInt(length - i);\n\t\ttmpobj = typearray[i];\n\t\ttypearray[i] = typearray[randnum];\n\t\ttypearray[randnum] = tmpobj;\n\t }\n return typearray;\n\t}", "@SuppressWarnings(\"unchecked\")\r\n\t@Override\r\n\tpublic List<T> getList() {\r\n\t\tgetEntityManager().flush();\r\n\t\treturn getEntityManager().createQuery(\r\n\t\t\t\t\"select OBJECT(o) from \" + getClassType().getSimpleName() + \" o order by o.id\")\r\n\t\t\t\t.getResultList();\r\n\t}", "@SuppressWarnings(\"unchecked\")\r\n public static <T> Class<T> magicClass(final Class<? extends T> cls) {\r\n assert cls != null;\r\n return Class.class.cast(cls);\r\n }", "@Test\n public void testToArray_GenericType() {\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>(2, 2);\n instance.add(1);\n instance.add(2);\n instance.add(3);\n instance.add(4);\n instance.add(5);\n instance.add(6);\n\n Integer[] expResult = { 1, 2, 3, 4, 5, 6 };\n Integer[] result = instance.toArray(new Integer[] {});\n assertArrayEquals(expResult, result);\n }", "public static <T extends IJsonObject> JsonResultArray<T> getJsonAsArrayOf(\r\n final String url,\r\n final Class<T> newClass)\r\n {\r\n JsonResultArray<T> json = new JsonResultArray<T>();\r\n json = getJson(url, json);\r\n\r\n // populate the result's string array\r\n ArrayList<T> array = json.getArray();\r\n\r\n // clear the string array\r\n array.clear();\r\n\r\n if (json.getJsonArray() != null)\r\n {\r\n for (int i = 0; i < json.getJsonArray().length(); i++)\r\n {\r\n JSONObject jsonObject = null;\r\n\r\n try\r\n {\r\n jsonObject = json.getJsonArray().getJSONObject(i);\r\n }\r\n catch (final JSONException e)\r\n {\r\n Log.e(TAG, \"getJsonAsArrayOf getJsonArray\", e);\r\n }\r\n\r\n if (jsonObject != null)\r\n {\r\n T newObject = null;\r\n\r\n try\r\n {\r\n newObject = newClass.newInstance();\r\n }\r\n catch (final Exception e)\r\n {\r\n Log.e(TAG, \"Could not create the new class instance.\", e);\r\n }\r\n\r\n if (newObject != null)\r\n {\r\n newObject.initialize(jsonObject);\r\n array.add(newObject);\r\n }\r\n }\r\n }\r\n }\r\n\r\n return json;\r\n }", "default <T extends SimpleInventory> List<T> getInventories(Class<T> clazz) {\n return this.getInventories().stream()\n .filter(inventory -> inventory.getClass().equals(clazz))\n .map(clazz::cast)\n .collect(Collectors.toList());\n }", "public void doSomethingWithListOfSerializables(\r\n\t\t\tClass<? extends List<? extends Serializable>> listClass) {\r\n\r\n\t\t// Capture '? extends Serializable' as 'T extends Serializable'\r\n\t\t// The line does not compile with javac 7\r\n//\t\tcaptureTheWildcard(listClass);\r\n\t}", "public static Object createArray(TypeList type) {\n\t\tList<Integer> listDimensions = type.getDimensions();\n\t\tint[] dimensions = new int[listDimensions.size()];\n\t\tfor (int i = 0; i < dimensions.length; i++) {\n\t\t\tdimensions[i] = listDimensions.get(i);\n\t\t}\n\n\t\tType eltType = type.getInnermostType();\n\t\treturn createArray(eltType, dimensions);\n\t}", "@SuppressWarnings(\"unchecked\")\n\tpublic T[] asArray() {\n\t\t// have to use explicit cast because we cannot use the alternative signature of toArray(T[]), as you cannot instantiate an array of a\n\t\t// type parameter (not even an empty array)\n\t\treturn (T[]) this.itemList.toArray();\n\t}", "public <T> List<T> getResultList(Class<T> clz,String sql){\n\t\treturn new ArrayList<T>();\r\n\t}", "public ArrayList<T> getAsList(){\r\n return arrayList;\r\n }", "@SuppressWarnings(\"unchecked\")\n\tpublic synchronized <T extends EventListener> T[] getListeners(Class<T> t) {\n \tList<T> list = Util.newList(0);\n \tfor (EventListener l : listeners) {\n \t\tif (t.isInstance(l)) list.add((T)l);\n \t}\n \t\n \tT[] array = Util.newArray(t, list.size());\n \tfor (int i = 0; i < list.size(); i++) array[i] = list.get(i);\n \t\n \treturn array;\n }", "private static String getTypeName(Class cls) {\n if (!cls.isArray()) {\n return cls.getName();\n } else {\n return getTypeName(cls.getComponentType()) + \"[]\";\n }\n }", "public IClass getType() {\n IClass result = null;\n if (_javaMethod.getReturnType().isArray()) {\n result = new ArrayDef(new ExternalClass(_javaMethod.getReturnType().getComponentType()));\n }\n else {\n result = new ExternalClass(_javaMethod.getReturnType());\n }\n\n return result;\n }", "ArrayProxyValue createArrayProxyValue();", "ListType createListType();", "Object[] toArray();", "Object[] toArray();", "Object[] toArray();", "public final static List<String> create(String clsName)\n\t{\n\t\tMap<String, Object> params = new HashMap<String, Object>();\n\t\tparams.put(\"CommandType\", CommandType.CREATE.name());\n\t\tparams.put(\"ClassName\", clsName);\n\n\t\tList<String> result = executeFunction(params);\n\t\treturn result;\n\n\t}", "@OneToMany(mappedBy=\"classRoom\")\n @OrderBy(\"className ASC\")\n public Collection<Class> getClasses() {\n return classes;\n }", "public static Method[] getInstanceMethods(Class<?> cls) {\n List<Method> instanceMethods = new ArrayList<>();\n for (Class<?> c = cls; c != null; c = c.getSuperclass()) {\n Method[] methods = c.getDeclaredMethods();\n for (Method method : methods)\n if (!Modifier.isStatic(method.getModifiers()))\n instanceMethods.add(method);\n }\n Method[] ims = new Method[instanceMethods.size()];\n for (int j = 0; j < instanceMethods.size(); j++)\n ims[j] = instanceMethods.get(j);\n return ims;\n }", "private RubyArray(Ruby runtime, RubyClass klass, int length) {\n super(runtime, klass);\n values = new IRubyObject[length];\n }", "private static Class[] toHelperAfterParameters(Class[] cls, Class ret,\n Class beforeRet) {\n if (ret == void.class && beforeRet == void.class)\n return cls;\n int len = cls.length;\n if (ret != void.class)\n len++;\n if (beforeRet != void.class)\n len++;\n Class[] params = new Class[len];\n System.arraycopy(cls, 0, params, 0, cls.length);\n int pos = cls.length;\n if (ret != void.class)\n params[pos++] = ret;\n if (beforeRet != void.class)\n params[pos++] = beforeRet;\n return params;\n }", "protected boolean isArray(Class clazz) {\n\n return clazz.isArray();\n }", "public static Array<Gizmo> makeGizmosFor (AComponent component) {\n Array<Gizmo> list = new Array<>();\n if(map.containsKey(component.getClass())) {\n Array<Class<? extends Gizmo>> classes = map.get(component.getClass());\n\n for(Class clazz: classes) {\n try {\n Gizmo instance = (Gizmo) ClassReflection.newInstance(clazz);\n list.add(instance);\n } catch (ReflectionException e) {\n return list;\n }\n }\n }\n\n return list;\n }", "static private PowerlessArray<String>\n types(final Class<?> actual) {\n final Class<?> end =\n Struct.class.isAssignableFrom(actual) ? Struct.class : Object.class;\n final PowerlessArray.Builder<String> r = PowerlessArray.builder(4);\n for (Class<?> i=actual; end!=i; i=i.getSuperclass()) { ifaces(i, r); }\n return r.snapshot();\n }", "public static Class getComponentClass (Object array)\n\t{\n\t\tClass c = array.getClass();\n\t\twhile (c.isArray())\n\t\t{\n\t\t\tc = c.getComponentType();\n\t\t}\n\t\t\n\t\treturn c;\n\t}", "@SuppressWarnings(\"rawtypes\")\r\n\tpublic List getAll(Class className) {\r\n\t\tQuery q = em.createNativeQuery(\r\n\t\t\t\t\"select * from \" + className.getSimpleName(), className);\r\n\t\treturn q.getResultList();\r\n\t}", "private static final <R> List<R> m65272q(@C6003d Object[] objArr) {\n ArrayList arrayList = new ArrayList();\n for (Object obj : objArr) {\n C14445h0.m62450a(3, \"R\");\n if (obj instanceof Object) {\n arrayList.add(obj);\n }\n }\n return arrayList;\n }", "public Class<? extends T> getClassToInstantiate() {\r\n return classToInstantiate;\r\n }", "public <T> T[] getNodes(String expression, Class<T> cls) {\n return getNodes(expression, CastUtils.cast(Collections.emptyMap(), String.class, String.class), cls);\n }", "private static void m32222ao(Class<? extends C37393a> cls) {\n AppMethodBeat.m2504i(135865);\n kOz.add(cls);\n AppMethodBeat.m2505o(135865);\n }", "Class<?> getComponentType();", "public <T> List<T> query(Class<T> clazz, int offset, int size) {\r\n\t\treturn query(clazz, offset, size, new Object[0]);\r\n\t}", "@SuppressWarnings(\"WeakerAccess\")\n @NonNull\n protected List<T> convert(@NonNull final Object data) {\n final List<Object> objects = CoreReflection.getObjects(data, false);\n if (objects == null) return Collections.singletonList(convertSingle(data));\n\n final ArrayList<T> list = new ArrayList<>();\n for (final Object object: objects)\n if (!CoreReflection.isNotSingle(object))\n list.add(convertSingle(object));\n\n return list;\n }", "@Override\n\tpublic <T> T unwrap(Class<T> cls) {\n\t\treturn null;\n\t}", "public abstract <T> T mo33265b(Class<T> cls) throws Exception;" ]
[ "0.6127863", "0.6109539", "0.6076781", "0.59497607", "0.5882027", "0.58503264", "0.58241993", "0.5707163", "0.5651926", "0.56194353", "0.5595795", "0.55236906", "0.5499144", "0.54679185", "0.5420846", "0.53340805", "0.5308286", "0.5274605", "0.5227735", "0.52228725", "0.521538", "0.5173274", "0.5163656", "0.5149213", "0.51350814", "0.5115418", "0.5110003", "0.5088277", "0.5083022", "0.5081704", "0.5081585", "0.50507766", "0.5037111", "0.5021467", "0.5003779", "0.49943626", "0.499354", "0.4979902", "0.49762928", "0.49751866", "0.49582466", "0.4956171", "0.49459243", "0.4937191", "0.49362448", "0.492455", "0.49136645", "0.49114144", "0.4905403", "0.48988798", "0.48898742", "0.48708895", "0.48629126", "0.48571208", "0.48331898", "0.48125184", "0.4809653", "0.48020357", "0.47939968", "0.47903678", "0.47878155", "0.47811225", "0.47743845", "0.47731096", "0.47689247", "0.47537023", "0.47525814", "0.47332162", "0.4723559", "0.47094002", "0.4709329", "0.47090438", "0.47024888", "0.47007373", "0.46989027", "0.46913248", "0.46798944", "0.4676998", "0.46755326", "0.46755326", "0.46755326", "0.46698374", "0.4663726", "0.46597683", "0.46574676", "0.4655523", "0.46535784", "0.4652849", "0.4649024", "0.4640937", "0.4635462", "0.46351206", "0.463421", "0.46341306", "0.46283308", "0.46235695", "0.46149528", "0.46115372", "0.46111187", "0.4609984" ]
0.4809414
57
Creates a sequence that builds an array of the given element type using sequences from the given list of candidates.
private static Sequence createAnArray(SimpleList<Sequence> candidates, ConcreteType elementType, int length) { int totStatements = 0; List<Sequence> inputSequences = new ArrayList<>(); List<Integer> variables = new ArrayList<>(); for (int i = 0; i < length; i++) { Sequence inputSeq = candidates.get(Randomness.nextRandomInt(candidates.size())); Variable inputVar = inputSeq.randomVariableForTypeLastStatement(elementType); assert inputVar != null; variables.add(totStatements + inputVar.index); inputSequences.add(inputSeq); totStatements += inputSeq.size(); } Sequence inputSequence = Sequence.concatenate(inputSequences); List<Variable> inputs = new ArrayList<>(); for (Integer inputIndex : variables) { Variable v = inputSequence.getVariable(inputIndex); inputs.add(v); } return inputSequence.extend(ConcreteOperation.createArrayCreation(new ConcreteArrayType(elementType), length), inputs); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static SimpleList<Sequence> createSequence(ComponentManager components, ConcreteType type) {\n\n\t\tfinal int MAX_LENGTH = 7;\n\n\t\tif (!type.isArray()) {\n\t\t\treturn new ArrayListSimpleList<Sequence>();\n\t\t}\n\n\t\tConcreteArrayType arrayType = (ConcreteArrayType) type;\n\t\tConcreteType elementType = arrayType.getElementType();\n\n\t\tSequence s = null;\n\t\tSimpleList<Sequence> candidates = components.getSequencesForType(elementType, false);\n\t\tif (candidates.isEmpty()) {\n\t\t\t// No sequences that produce appropriate component values found, and\n\t\t\tif (GenInputsAbstract.forbid_null) {\n\t\t\t\t// use of null is forbidden. So, return the empty array.\n\t\t\t\ts = new Sequence().extend(ConcreteOperation.createArrayCreation(arrayType, 0));\n\t\t\t} else {\n\t\t\t\t// null is allowed.\n\t\t\t\ts = new Sequence();\n\t\t\t\tList<Variable> ins = new ArrayList<>();\n\t\t\t\tConcreteOperation declOp;\n\t\t\t\tif (Randomness.weighedCoinFlip(0.5)) {\n\t\t\t\t\tdeclOp = ConcreteOperation.createArrayCreation(arrayType, 0);\n\t\t\t\t} else {\n\t\t\t\t\ts = s.extend(ConcreteOperation.createNullOrZeroInitializationForType(elementType));\n\t\t\t\t\tins.add(s.getVariable(0));\n\t\t\t\t\tdeclOp = ConcreteOperation.createArrayCreation(arrayType, 1);\n\t\t\t\t}\n\t\t\t\ts = s.extend(declOp, ins);\n\t\t\t}\n\t\t} else {\n\t\t\tint length = Randomness.nextRandomInt(MAX_LENGTH);\n\t\t\ts = createAnArray(candidates, elementType, length);\n\t\t}\n\t\tassert s != null;\n\t\tArrayListSimpleList<Sequence> l = new ArrayListSimpleList<>();\n\t\tl.add(s);\n\t\treturn l;\n\t}", "public static NewArrayExpression newArrayInit(Class type, Iterable<Expression> expressions) { throw Extensions.todo(); }", "public static Object createArray(TypeList type) {\n\t\tList<Integer> listDimensions = type.getDimensions();\n\t\tint[] dimensions = new int[listDimensions.size()];\n\t\tfor (int i = 0; i < dimensions.length; i++) {\n\t\t\tdimensions[i] = listDimensions.get(i);\n\t\t}\n\n\t\tType eltType = type.getInnermostType();\n\t\treturn createArray(eltType, dimensions);\n\t}", "Array createArray();", "public static NewArrayExpression newArrayInit(Class type, Expression[] expressions) { throw Extensions.todo(); }", "public static int[] generateSequence(String arguments[]){\n int size = Integer.parseInt(arguments[1]);\n int i;\n int primeArray[] = new int[size];\n PrimeSequence prime = new PrimeSequence(Integer.parseInt(arguments[0]));\n \n for(i = 0; i < size; i++){\n primeArray[i] = prime.next();\n } \n return primeArray;\n \n }", "public int[] CreatePermutations(int[] seq){\n \n return seq;\n }", "@Test\n public void testToArray_GenericType() {\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>(2, 2);\n instance.add(1);\n instance.add(2);\n instance.add(3);\n instance.add(4);\n instance.add(5);\n instance.add(6);\n\n Integer[] expResult = { 1, 2, 3, 4, 5, 6 };\n Integer[] result = instance.toArray(new Integer[] {});\n assertArrayEquals(expResult, result);\n }", "public abstract Case[][] generate();", "ArrayValue createArrayValue();", "Sequence createSequence();", "HdbSequenceElements createHdbSequenceElements();", "public Stmt\ninitiateArray(\n Exp pArray, Exp pInitExp,\n Exp pFrom, Exp pTo, Subp pSubp );", "private void readArray(TypeImpl type, Attributes attrs) throws SAXParseException {\n String attrName, attrVal;\n // No entries in indexRep means not indexed\n IntVector indexRep = new IntVector();\n int size = 0;\n int id = -1;\n for (int i = 0; i < attrs.getLength(); i++) {\n attrName = attrs.getQName(i);\n attrVal = attrs.getValue(i);\n if (attrName.equals(XCASSerializer.ID_ATTR_NAME)) {\n try {\n id = Integer.parseInt(attrVal);\n } catch (NumberFormatException e) {\n throw createException(XCASParsingException.ILLEGAL_ID, attrVal);\n }\n } else if (attrName.equals(XCASSerializer.ARRAY_SIZE_ATTR)) {\n try {\n size = Integer.parseInt(attrVal);\n if (size < 0) {\n throw createException(XCASParsingException.ILLEGAL_ARRAY_SIZE, attrVal);\n }\n } catch (NumberFormatException e) {\n throw createException(XCASParsingException.INTEGER_EXPECTED, attrVal);\n }\n } else if (attrName.equals(XCASSerializer.INDEXED_ATTR_NAME)) {\n String[] arrayvals = parseArray(attrVal);\n for (int s = 0; s < arrayvals.length; s++) {\n indexRep.add(Integer.parseInt(arrayvals[s]));\n }\n } else {\n throw createException(XCASParsingException.ILLEGAL_ARRAY_ATTR, attrName);\n }\n }\n final int finalSize = size;\n TOP fs = maybeCreateWithV2Id(fsId, () -> cas.createArray(type, finalSize));\n // TOP fs = cas.createArray(type, size);\n\n FSInfo fsInfo = new FSInfo(fs, indexRep);\n if (id >= 0) {\n fsTree.put(id, fsInfo);\n } else {\n idLess.add(fsInfo);\n }\n // Hang on to those for setting array values.\n this.currentFs = fs;\n this.arrayPos = 0;\n\n this.state = ARRAY_ELE_STATE;\n }", "private Countable[] generateArray(int rank){\n var numbers = new Countable[rank];\n for (int i = 0; i < rank; i++) {\n numbers[i] = getRandomCountable();\n }\n return numbers;\n }", "private Sequence makeSequence(String[] sList, int index) {\r\n\t\tSequence s = new Sequence();\r\n\t\tfor(int i = 0; i<sList.length; i++) {\r\n\t\t\ts.addAfter(sList[i]);\r\n\t\t}\r\n\t\ts.start();\r\n\t\tfor(int i=0; i<index; i++) {\r\n\t\t\ts.advance();\r\n\t\t}\r\n\t\treturn s;\r\n\t}", "@Test\n public void testToArray_0args() {\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>(2, 2);\n instance.add(1);\n instance.add(2);\n instance.add(3);\n instance.add(4);\n instance.add(5);\n instance.add(6);\n\n Integer[] expResult = { 1, 2, 3, 4, 5, 6 };\n Object[] result = instance.toArray();\n assertArrayEquals(expResult, result);\n\n }", "@Override\r\n\t\tpublic Array createArrayOf(String typeName, Object[] elements)\r\n\t\t\t\tthrows SQLException {\n\t\t\treturn null;\r\n\t\t}", "Object createArray(int capacity);", "private static int[][] make_subtypes(Type[] alltypes) {\n int[][] subs = new int[alltypes.length][];\n int[] tmp = new int[alltypes.length];\n for( int i=0; i<subs.length; i++ ) {\n int len=0;\n for( int j=0; j<subs.length; j++ )\n if( i!=j && alltypes[i].isa(alltypes[j]) )\n tmp[len++]=j; // isa numbers are sorted by increasing 'j'\n subs[i] = Arrays.copyOfRange(tmp,0,len);\n }\n return subs;\n }", "public static NewArrayExpression newArrayBounds(Class type, Iterable<Expression> expressions) { throw Extensions.todo(); }", "ArrayTypeRule createArrayTypeRule();", "private Sequence createSequence(String[] newArray, int capacity, int currentIndex){\n Sequence sq = new Sequence(capacity);\n for(String element:newArray){\n sq.addAfter(element);\n }\n sq.start();\n for(int i = 0; i < currentIndex; i++){\n sq.advance();\n }\n return sq;\n\n }", "private Object createArray(Class<?> clazz)\n\t{\n\t\tObject mockValue;\n\t\tClass<?> componentType = clazz.getComponentType();\n\t\tmockValue = createInstanceOfType(componentType);\n\t\tObject array = Array.newInstance(componentType, MOCK_ARRAY_SIZE);\n\t\tfor (int ctr = 0; ctr < MOCK_ARRAY_SIZE; ctr++)\n\t\t{\n\t\t\tArray.set(array, ctr, mockValue);\n\t\t}\n\t\tmockValue = array;\n\t\treturn mockValue;\n\t}", "private static int[] generateArray(int size, int startRange, int endRange) {\n\t\tint[] array = new int[size];\n\t\tfor(int i = 0; i < array.length; i++) {\n\t\t\tarray[i] = (int)((Math.random()*(endRange - startRange + 1)) + startRange);\n\t\t}\n\t\treturn array;\n\t}", "public interface ArrayBuilder<E> {\n /** \n * Appends an element to the Array\n * @param element the element to append\n */\n void append(E element);\n\n /** \n * Appends all elements from a Java array to the Array\n * @param elements the element to append\n */\n void append(E[] elements);\n\n /** \n * Appends a range of elements from a Java array to the Array\n * @param elements the source array\n * @param off the index of the first element to append\n * @param len the number of elements to append\n */\n void append(E[] elements, int off, int len);\n \n /** \n * Gets the current number of elements in the Array\n * @return the number of elements that have been appended\n */\n int length();\n \n /**\n * Create a snapshot of the current content.\n * @return a <code>ConstArray<E></code> containing the elements written\n * so far\n */\n ConstArray<E> snapshot();\n}", "@SuppressWarnings(\"unchecked\")\n protected static <V> V[] toVarArgs(List<V> list, Class<V> cls) {\n return list != null ? list.toArray((V[]) Array.newInstance(cls, list.size())) : (V[]) null;\n }", "private static String [] init(String className, TypeTree tree) {\n // Use a Linked to avoid resizing.\n Collection<String> types = new LinkedList<String>();\n String [] typearray;\n\t if (className.equals(EntryRep.matchAnyClassName())) {\n\t\t// handle \"match any\" specially\" -- search from ROOT\n\t\t// Simplification suggested by \n\t\t// Lutz Birkhahn <[email protected]>\n\t\tclassName = ROOT;\n\t } else {\n\t\t// add this class\n\t\ttypes.add(className);\n\t }\n\n\t // add all subclasses\n\t walkTree(tree.classSet(className), types, tree);\n\n\t // Convert it to an array and then randomize\n\t typearray = types.toArray(new String[types.size()]);\n\t int randnum = 0;\n\t String tmpobj = null;\n int length = typearray.length;\n\t for (int i = 0; i < length; i++) {\n\t\trandnum = numgen.nextInt(length - i);\n\t\ttmpobj = typearray[i];\n\t\ttypearray[i] = typearray[randnum];\n\t\ttypearray[randnum] = tmpobj;\n\t }\n return typearray;\n\t}", "@Test\r\n public void testGenericArray()\r\n {\r\n Type t0 = Types.create(List.class).withType(Number.class).build();\r\n Type arrayType = Types.createGenericArrayType(t0);\r\n test(arrayType);\r\n }", "E[] toArray();", "private Object getArray0(int type, int depth, String[] heads, Class elementType) throws MathLinkException {\n Object resultArray = null;\n if (type == -14) {\n Object firstInstance;\n Class<?> leafClass;\n int actualDepth;\n block15 : {\n firstInstance = null;\n long mark = this.createMark();\n try {\n int tok;\n MLFunction mf = this.getFunction();\n if (mf.argCount == 0) {\n firstInstance = new Object();\n break block15;\n }\n for (actualDepth = 1; actualDepth < 5 && (tok = this.getNext()) == 70; ++actualDepth) {\n this.getFunction();\n }\n firstInstance = this.getObject();\n }\n finally {\n this.seekMark(mark);\n this.destroyMark(mark);\n }\n }\n Class<?> class_ = leafClass = elementType != null ? elementType : firstInstance.getClass();\n if (actualDepth < depth) {\n throw new MathLinkException(1002);\n }\n if (depth == 1) {\n MLFunction func = this.getFunction();\n resultArray = Array.newInstance(leafClass, func.argCount);\n for (int i = 0; i < func.argCount; ++i) {\n Array.set(resultArray, i, this.getObject());\n }\n if (heads != null) {\n heads[0] = func.name;\n }\n } else {\n String compClassName = \"L\" + leafClass.getName() + \";\";\n for (int i = 1; i < actualDepth; ++i) {\n compClassName = \"[\" + compClassName;\n }\n Class<?> componentClass = null;\n try {\n componentClass = Class.forName(compClassName, true, leafClass.getClassLoader());\n }\n catch (ClassNotFoundException e) {\n // empty catch block\n }\n resultArray = this.getArraySlices(type, depth, heads, 0, componentClass);\n }\n } else {\n resultArray = super.getArray(type, depth, heads);\n }\n return resultArray;\n }", "RangeContainer createContainer(long[] data, RangeContainerStrategy strategy);", "private static int[] arrayInitializer(int length) {\n int[] myArray = new int[length];\n Random rand = new Random();\n for (int i = 0; i < length; i++) {\n myArray[i] = rand.nextInt(1000);\n }\n return myArray;\n }", "@Test\r\n\tpublic void testToArrayType() {\r\n\t\tMunitions[] sample1 = new Munitions[5];\r\n\t\tsample1 = list.toArray(sample1);\r\n\t\tAssert.assertEquals(15, sample1.length);\r\n\t\tfor (int i = 0; i < sample1.length; i++) {\r\n\t\t\tAssert.assertNotNull(sample1[i]);\r\n\t\t}\r\n\t\tMunitions[] sample2 = new Munitions[20];\r\n\t\tsample2 = list.toArray(sample2);\r\n\t\tAssert.assertEquals(20, sample2.length);\r\n\t\tfor (int i = 0; i < sample2.length - list.size(); i++) {\r\n\t\t\tAssert.assertNotNull(sample1[i]);\r\n\t\t}\r\n\t}", "@Test\n @IncludeIn(POSTGRESQL)\n public void array2() {\n Expression<int[]> expr = Expressions.template(int[].class, \"'{1,2,3}'::int[]\");\n int[] result = firstResult(expr);\n Assert.assertEquals(3, result.length);\n Assert.assertEquals(1, result[0]);\n Assert.assertEquals(2, result[1]);\n Assert.assertEquals(3, result[2]);\n }", "public List<E> createAll(AnnotatedElement element) {\n List<E> result = new ArrayList<>();\n for (Annotation annotation : element.getAnnotations()) {\n create(annotation).ifPresent(result::add);\n }\n return result;\n }", "public ZYArraySet(){\n elements = (ElementType[])new Object[DEFAULT_INIT_LENGTH];\n }", "public static String generateSubarrays(int[] sequence)\n {\n String result = \"\";\n List<String> list = new ArrayList<>();\n list.add(\"[\"+sequence[0]+\"]\");\n return generateSubarraysUsingRecursion(sequence,list,1);\n }", "public static Base[] stringsToBases(String[] seqInput)\n {\n Base[] seqBases = new Base[seqInput.length];\n for (int i = 0; i < seqInput.length; i++)\n {\n try\n {\n seqBases[i] = Base.valueOf(seqInput[i]);\n }\n catch (IllegalArgumentException e)\n {\n seqBases[i] = Base.X;\n }\n }\n \n return seqBases;\n }", "public GTUIterator(GTUContainer <T> object,Class<T[]> classtype){\r\n position=0;\r\n sizeArr=object.size();\r\n itrArr=classtype.cast(Array.newInstance(classtype.getComponentType(),sizeArr));\r\n for(int i=0;i<object.size();i++) {\r\n itrArr[i]= (T)object.getArrayElement(i);\r\n }\r\n }", "@SuppressWarnings(\"unchecked\")\n private T[] createArray(int size) {\n return (T[]) Array.newInstance(type, size);\n }", "@Test\n public void rnatest2(){\n AminoAcidLL first = AminoAcidLL.createFromRNASequence(b);\n char[] firstArr = new char[4];\n char[] answer = {'T','S', 'V', 'F'};\n for(int i = 0; i < firstArr.length; i++){\n firstArr[i] = first.aminoAcid;\n System.out.println(first.aminoAcid);\n first = first.next;\n }\n assertArrayEquals(answer,firstArr);\n }", "private List<AnchorCandidate> mockCandidates(List<Integer[]> features, int[] nCandidates, int[] positives) {\n List<AnchorCandidate> result = new ArrayList<>();\n for (int i = 0; i < features.size(); i++) {\n AnchorCandidate candidate = createFakeParentCandidate(Arrays.asList(features.get(i)));\n candidate.registerSamples(nCandidates[i], positives[i]);\n result.add(candidate);\n }\n return result;\n }", "private static ArrayList<String>[] buildArrayNumbers(int size,int numbers) {\n\n\t\tString digits = Integer.toString(numbers);\n\t\tArrayList<String>[] digitsArreglo= new ArrayList[digits.length()];\n\n\t\tfor (int i = 0; i < digitsArreglo.length; i++) {\n\t\t\tString[] plantilla1=getTemplate(Integer.parseInt(digits.charAt(i)+\"\"));\n\t\t\tArrayList<String> resultado;\n\t\t\tif(size==1){\n\t\t\t\tresultado=transmit(plantilla1);\n\t\t\t\tdigitsArreglo[i]=resultado;\n\t\t\t}else {\n\t\t\t\tresultado=expandColumns(size,plantilla1);\n\t\t\t\tresultado=expandRows(size, resultado);\n\t\t\t\tdigitsArreglo[i]=resultado;\n\t\t\t}\n\t\t}\n\t\treturn digitsArreglo;\n\t}", "private void handleArrayElementFeature(XMLStreamReader reader, int attributeIndex, String attrName, String typeName, Type nodeType, Feature feature, ByteArrayOutputStream baos, TypeSystem ts) {\n final String[] valueSplit = reader.getAttributeValue(attributeIndex).split(\" \");\n writeInt(valueSplit.length, baos);\n Stream<String> arrayValues = Stream.of(valueSplit);\n // The list subtype names have already been resolved at the calling method\n String arrayTypeName = XmiSplitUtilities.isMultiValuedFeatureAttribute(nodeType, attrName) ? typeName : feature.getRange().getName();\n Type arrayType = ts.getType(arrayTypeName);\n if (ts.subsumes(ts.getType(CAS.TYPE_NAME_DOUBLE_ARRAY), arrayType) || ts.subsumes(ts.getType(CAS.TYPE_NAME_FLOAT_LIST), arrayType)) {\n arrayValues.mapToDouble(Double::valueOf).forEach(d -> writeDouble(d, baos));\n } else if (ts.subsumes(ts.getType(CAS.TYPE_NAME_SHORT_ARRAY), arrayType)) {\n arrayValues.mapToInt(Integer::valueOf).forEach(i -> writeShort((short) i, baos));\n } else if (ts.subsumes(ts.getType(CAS.TYPE_NAME_BYTE_ARRAY), arrayType)) {\n arrayValues.mapToInt(Integer::valueOf).forEach(baos::write);\n } else if (ts.subsumes(ts.getType(CAS.TYPE_NAME_BOOLEAN_ARRAY), arrayType)) {\n arrayValues.map(s -> Boolean.valueOf(s) ? 1 : 0).forEach(baos::write);\n } else if (ts.subsumes(ts.getType(CAS.TYPE_NAME_INTEGER_ARRAY), arrayType) || ts.subsumes(ts.getType(CAS.TYPE_NAME_INTEGER_LIST), arrayType)) {\n arrayValues.mapToInt(Integer::valueOf).forEach(i -> writeInt(i, baos));\n } else if (ts.subsumes(ts.getType(CAS.TYPE_NAME_LONG_ARRAY), arrayType)) {\n arrayValues.mapToLong(Long::valueOf).forEach(l -> writeLong(l, baos));\n } else if (ts.subsumes(ts.getType(CAS.TYPE_NAME_STRING_ARRAY), arrayType)) {\n // String arrays should only be embedded into the element if they are empty\n if (arrayValues.filter(Predicate.not(String::isBlank)).count() > 0)\n throw new IllegalArgumentException(\"Unhandled case of a StringArray that is embedded into the type element but is not empty for feature '\" + attrName + \"' of type '\" + typeName + \"'.\");\n // String of length 0\n writeInt(0, baos);\n } else throw new IllegalArgumentException(\"Unhandled feature '\" + attrName + \"' of type '\" + typeName + \"'.\");\n }", "public static JavaType createForCArray(Type elementType) {\n return new JavaType(elementType);\n }", "public void testCreateArray() {\n System.out.println(\"createArray\");// NOI18N\n \n TypeID type = new TypeID(TypeID.Kind.PRIMITIVE, \"javacode\");// NOI18N\n PrimitiveDescriptor arrayDescriptor = new PrimitiveDescriptor() {\n public Object deserialize(String serialized) {\n return \"array\"; //NOI18N\n }\n public boolean isValidInstance(Object object) {\n return true;\n }\n public String serialize(Object value) {\n return \"array\"; // NOI18N\n }\n };\n \n PropertyValue arrayPropertyValue = PropertyValue.createValue( arrayDescriptor, type, DesignComponentTest.PROPERTY3_VALUE_STRING);// NOI18N\n List<PropertyValue> array = new ArrayList();\n array.add(arrayPropertyValue);\n \n PropertyValue result = PropertyValue.createArray(type, array);\n \n assertEquals(PropertyValue.Kind.ARRAY, result.getKind());\n type = type.getArrayType();\n assertEquals(type,result.getType());\n assertNotNull(result.getArray());\n }", "private static int[] buildArray(int num) {\n\t\t// TODO build an array with num elements\n\t\tif(num ==0) return null;\n\t\t\n\t\tint[] array = new int[num];\n\t\tfor(int i=0; i<num; i++){\n\t\t\t\n\t\t\tarray[i] = (int)(Math.random()*15);\n\t\t}\n\t\t\n\t\treturn array;\n\t}", "public abstract Animal[] createGeneration (int count, Animal[] lastGeneration);", "private final <T> Object parseTypeArr(Converter<T> converter, Class<T> valType, String[] arr) throws Exception {\n\t\tObject objArr = Array.newInstance(valType, arr.length);\n\t\tfor (int i = 0; i < arr.length; i++) {\n\t\t\tT item = converter.parseFromString(valType, null, null, arr[i]);\n\t\t\tArray.set(objArr, i, item);\n\t\t}\n\t\treturn objArr;\n\t}", "public Integer[] createArray() {\n Integer[] value = new Integer[defaultLaenge];\n\n for (int i = 0; i < value.length; i++) {\n value[i] = (int)(value.length*Math.random());\n }\n\n return value;\n }", "@Test\n public void rnatest1(){\n AminoAcidLL first = AminoAcidLL.createFromRNASequence(a);\n char[] firstArr = new char[3];\n char[] answer = {'P','L','A'};\n for(int i = 0; i < firstArr.length; i++){\n firstArr[i] = first.aminoAcid;\n System.out.println(first.aminoAcid);\n first = first.next;\n }\n assertArrayEquals(answer, firstArr);\n }", "@Test\n public void testArrayCreationWithDifferentTypes() {\n final Number[] array = ArrayUtils.<Number>toArray(Integer.valueOf(42), Double.valueOf(Math.PI));\n assertEquals(2, array.length);\n assertEquals(Integer.valueOf(42), array[0]);\n assertEquals(Double.valueOf(Math.PI), array[1]);\n }", "public static Object[] nextSequence(int size, Object values[]) {\n int i, index;\n Random generator = new Random();\n Object elements[] = new Object[size];\n for (i = 0; i < elements.length; i++) {\n index = generator.nextInt(values.length);\n elements[i] = values[index];\n }\n return elements;\n }", "public static CommandElement seq(CommandElement... elements) {\n return new SequenceCommandElement(ImmutableList.copyOf(elements));\n }", "public List<Candidate> convertRowsToCandidateList(List<String[]> rowCandidates, Affiliation affiliation) {\n\t\tint initialDisplayOrder = candidateRepository.findByAffiliation(affiliation.getPk()).size() + 1;\n\t\tMaritalStatus maritalStatus = candidateRepository.findMaritalStatusById(MaritalStatus.UOPPGITT);\n\t\treturn new CandidateFileRowConverter().convertRowsToCandidateList(rowCandidates, affiliation, initialDisplayOrder, maritalStatus);\n\t}", "private static int[] createArray() {\n\t\trnd = new Random();\r\n\t\trandomArray = new int[8];\r\n\t\tfor (int i = 0; i < 8; i++) {\r\n\t\t\trandomArray[i] = rnd.nextInt(45);\r\n\t\t}\r\n\t\treturn randomArray;\r\n\t}", "private void buildArray() throws VerificationException\n {\n \tindices = new int[length];\n \tcommonality = new int[length];\n \n \tcommonality[0] = -1;\n \tfor( int i=0; i<indices.length; i++ ){\n \t indices[i] = i;\n \t}\n \n sort();\n }", "Exp getArrayExp();", "private Function1<Seq<String>, String[]> arrayFunction() {\n return new AbstractFunction1<Seq<String>, String[]>() {\n @Override\n public String[] apply(Seq<String> v1) {\n String[] array = new String[v1.size()];\n v1.copyToArray(array);\n return array;\n }\n };\n }", "public int[] Version1(int[] seq){\n \n return seq;\n \n }", "public static Person[] createList(Person... persons){\n Person[] people = persons;\n return people;\n }", "@Test\n public void testIndirectArrayCreation() {\n final String[] array = toArrayPropagatingType(\"foo\", \"bar\");\n assertEquals(2, array.length);\n assertEquals(\"foo\", array[0]);\n assertEquals(\"bar\", array[1]);\n }", "org.landxml.schema.landXML11.BridgeElementDocument.BridgeElement[] getBridgeElementArray();", "public Combinatorics(T[] values) {\n this.values = values;\n this.size = -1;\n this.result = new ArrayList<T>();\n }", "public static <T> T[] createArray (T... args) {\n\tif (args == null) { return (T[]) new Object[0]; };\n\treturn args;\n }", "public static void createArrays() {\r\n\t\tRandom rand = new Random();\r\n\t\tfor (int i = 0; i < N; i++) {\r\n\t\t\tint size = rand.nextInt(5) + 5;\r\n\t\t\tTOTAL += size;\r\n\t\t\tArrayList<Integer> numList = new ArrayList<>();\r\n\t\t\tfor (int j = 0; j < size; j++) {\r\n\t\t\t\tint value = rand.nextInt(1000) + 1;\r\n\t\t\t\tnumList.add(value);\r\n\t\t\t}\r\n\t\t\tCollections.sort(numList);\r\n\t\t\tarrayMap.put(i + 1, numList);\r\n\t\t}\r\n\t}", "Iterable<CtElement> asIterable();", "@jdk.Exported\npublic interface ArrayType extends ReferenceType {\n\n /**\n * Creates a new instance of this array class in the target VM.\n * The array is created with the given length and each component\n * is initialized to is standard default value.\n *\n * @param length the number of components in the new array\n * @return the newly created {@link ArrayReference} mirroring\n * the new object in the target VM.\n *\n * @throws VMCannotBeModifiedException if the VirtualMachine is read-only - see {@link VirtualMachine#canBeModified()}.\n */\n ArrayReference newInstance(int length);\n\n /**\n * Gets the JNI signature of the components of this\n * array class. The signature\n * describes the declared type of the components. If the components\n * are objects, their actual type in a particular run-time context\n * may be a subclass of the declared class.\n *\n * @return a string containing the JNI signature of array components.\n */\n String componentSignature();\n\n /**\n * Returns a text representation of the component\n * type of this array.\n *\n * @return a text representation of the component type.\n */\n String componentTypeName();\n\n /**\n * Returns the component type of this array,\n * as specified in the array declaration.\n * <P>\n * Note: The component type of a array will always be\n * created or loaded before the array - see\n * <cite>The Java&trade; Virtual Machine Specification</cite>,\n * section 5.3.3 - Creating Array Classes.\n * However, although the component type will be loaded it may\n * not yet be prepared, in which case the type will be returned\n * but attempts to perform some operations on the returned type\n * (e.g. {@link ReferenceType#fields() fields()}) will throw\n * a {@link ClassNotPreparedException}.\n * Use {@link ReferenceType#isPrepared()} to determine if\n * a reference type is prepared.\n *\n * @see Type\n * @see Field#type() Field.type() - for usage examples\n * @return the {@link Type} of this array's components.\n */\n Type componentType() throws ClassNotLoadedException;\n}", "public int[] createTokenTypeIdsFromSequences(int[] tokenIds0, int[] tokenIds1) {\n\t\tint[] arr;\n\t\tif (null == tokenIds1) {\n\t\t\tarr = new int[tokenIds0.length];\n\t\t\tArrays.fill(arr, 0);\n\t\t} else {\n\t\t\tarr = new int[tokenIds0.length + tokenIds1.length];\n\t\t\tArrays.fill(arr, 0, tokenIds0.length, 0);\n\t\t\tArrays.fill(arr, tokenIds0.length, tokenIds0.length + tokenIds1.length, 1);\n\t\t}\n\t\treturn arr;\n\t}", "@Test\n @IncludeIn(POSTGRESQL)\n public void array() {\n Expression<Integer[]> expr = Expressions.template(Integer[].class, \"'{1,2,3}'::int[]\");\n Integer[] result = firstResult(expr);\n Assert.assertEquals(3, result.length);\n Assert.assertEquals(1, result[0].intValue());\n Assert.assertEquals(2, result[1].intValue());\n Assert.assertEquals(3, result[2].intValue());\n }", "public ZYArraySet(int initLength){\n if(initLength<0)\n throw new IllegalArgumentException(\"The length cannot be nagative\");\n elements = (ElementType[])new Object[initLength];\n }", "private static ArrayList<Box> generateBoxes(ArrayList<String[]> arr){\r\n ArrayList<Box> result = new ArrayList<>();\r\n for (String[] box : arr) {\r\n result.add(new Box(box));\r\n }\r\n\r\n Collections.sort(result);\r\n\r\n return result;\r\n }", "private void makeArrays()\n\t{\n\t\tfor (String key : sub.keySet())\n\t\t\tsub.put(key, ((List<String>) sub.get(key)).toArray(s0));\n\t\tfor (String key : attrs.keySet())\n\t\t\tattrs.put(key, ((List<String>) attrs.get(key)).toArray(s0));\n\t\tfor (String key : defs.keySet())\n\t\t\tdefs.put(key, ((List<String>) defs.get(key)).toArray(s0));\n\t\tfor (String key : smodes.keySet())\n\t\t{\n\t\t\tList<Integer> list = (List<Integer>) smodes.get(key);\n\t\t\tint[] array = new int[list.size()];\n\t\t\tfor (int i = 0; i < list.size(); i++)\n\t\t\t\tarray[i] = list.get(i);\n\t\t\tsmodes.put(key, array);\n\t\t}\n\t\tfor (String key : amodes.keySet())\n\t\t{\n\t\t\tList<Integer> list = (List<Integer>) amodes.get(key);\n\t\t\tint[] array = new int[list.size()];\n\t\t\tfor (int i = 0; i < list.size(); i++)\n\t\t\t\tarray[i] = list.get(i);\n\t\t\tamodes.put(key, array);\n\t\t}\n\t}", "Object[] elements(Object[] destination) {\n return elements.toArray(destination);\n }", "@SuppressWarnings(\"unchecked\")\n\tpublic List<DeclaredType> getClassArrayFromAnnotationMethod(Supplier<Class<?>[]> supplier) {\n\t\ttry {\n\t\t\tsupplier.get();\n\t\t} catch (MirroredTypesException e) {\n\t\t\t// types WILL be declared\n\t\t\treturn (List<DeclaredType>) e.getTypeMirrors();\n\t\t}\n\t\treturn Collections.emptyList();\n\t}", "LLVMValueRef createTableArray(CodeGenEnv env){\n var type = tableType();\n var tb = LLVMAddGlobal(env.module, type, \"VT_\" + class_.name.str);\n var pointers = new PointerPointer<LLVMValueRef>( members.size() );\n int j = 0;\n for (var i:members){\n var v = i.funRef;\n // convert to char *\n var v2 = LLVMConstBitCast(v, env.char_star);\n pointers.put(j, v2);\n j += 1;\n }\n var const_arr = LLVMConstArray(CodeGenEnv.char_star, pointers , members.size());\n LLVMSetInitializer(tb, const_arr);\n return tb;\n }", "@SuppressWarnings( \"rawtypes\" )\n private XmlElement toXmlArray(List list)\n {\n XmlElement array = new XmlElement(\"array\");\n for (Object o : list)\n {\n array.add(objectToXml(o));\n }\n return array;\n }", "public E[] values(){\n\t\tE[] output = (E[]) new Object[howMany];\n\t\tint j = 0;\n\t\tfor (int i = 0; i < elem.length; i++)\n\t\t\tif (elem[i] != null){\n\t\t\t\toutput[j] = elem[i];\n\t\t\t\tj = j + 1;\n\t\t\t}\n\t\treturn output;\n\t}", "private Object arrayToSPLArray(String name, JSONArray jarr, Type ptype) throws Exception {\n\t\tif(l.isLoggable(TraceLevel.DEBUG)) {\n\t\t\tl.log(TraceLevel.DEBUG, \"Creating Array: \" + name);\n\t\t}\n\t\tCollectionType ctype = (CollectionType) ptype;\n\t\tint cnt=0;\n\t\tString cname = \"List: \" + name;\n\n\t\tswitch(ctype.getElementType().getMetaType()) {\n\t\tcase INT8:\n\t\tcase UINT8: \n\t\t{\n\t\t\tList<Object> lst = new ArrayList<Object>();\n\t\t\tfor(Object jsonObj : jarr) {\n\t\t\t\tObject obj =jsonToAttribute(cname, ctype.getElementType(), jsonObj, ptype);\n\t\t\t\tif(obj!=null) lst.add(obj);\n\t\t\t}\n\n\t\t\tbyte[] arr= new byte[lst.size()];\n\t\t\tfor(Object val : lst)\n\t\t\t\tarr[cnt++] = (Byte)val;\n\t\t\treturn arr;\n\t\t} \n\t\tcase INT16:\n\t\tcase UINT16:\n\t\t{\n\t\t\tList<Object> lst = new ArrayList<Object>();\n\t\t\tfor(Object jsonObj : jarr) {\n\t\t\t\tObject obj =jsonToAttribute(cname, ctype.getElementType(), jsonObj, ptype);\n\t\t\t\tif(obj!=null) lst.add(obj);\n\t\t\t}\n\n\t\t\tshort[] arr= new short[lst.size()];\n\t\t\tfor(Object val : lst)\n\t\t\t\tarr[cnt++] = (Short)val;\n\t\t\treturn arr;\n\t\t} \n\t\tcase INT32:\n\t\tcase UINT32:\n\t\t{\n\t\t\tList<Object> lst = new ArrayList<Object>();\n\t\t\tfor(Object jsonObj : jarr) {\n\t\t\t\tObject obj =jsonToAttribute(cname, ctype.getElementType(), jsonObj, ptype);\n\t\t\t\tif(obj!=null) lst.add(obj);\n\t\t\t}\n\n\t\t\tint[] arr= new int[lst.size()];\n\t\t\tfor(Object val : lst)\n\t\t\t\tarr[cnt++] = (Integer)val;\n\t\t\treturn arr;\n\t\t} \n\n\t\tcase INT64:\n\t\tcase UINT64:\n\t\t{\n\t\t\tList<Object> lst = new ArrayList<Object>();\n\t\t\tfor(Object jsonObj : jarr) {\n\t\t\t\tObject obj =jsonToAttribute(cname, ctype.getElementType(), jsonObj, ptype);\n\t\t\t\tif(obj!=null) lst.add(obj);\n\t\t\t}\n\n\t\t\tlong[] arr= new long[lst.size()];\n\t\t\tfor(Object val : lst)\n\t\t\t\tarr[cnt++] = (Long)val;\n\t\t\treturn arr;\n\t\t} \n\n\t\tcase BOOLEAN:\n\t\t{\n\t\t\tList<Object> lst = new ArrayList<Object>();\n\t\t\tfor(Object jsonObj : jarr) {\n\t\t\t\tObject obj =jsonToAttribute(cname, ctype.getElementType(), jsonObj, ptype);\n\t\t\t\tif(obj!=null) lst.add(obj);\n\t\t\t}\n\n\t\t\tboolean[] arr= new boolean[lst.size()];\n\t\t\tfor(Object val : lst)\n\t\t\t\tarr[cnt++] = (Boolean)val;\n\t\t\treturn arr;\n\t\t} \n\n\t\tcase FLOAT32:\n\t\t{\n\t\t\tList<Object> lst = new ArrayList<Object>();\n\t\t\tfor(Object jsonObj : jarr) {\n\t\t\t\tObject obj =jsonToAttribute(cname, ctype.getElementType(), jsonObj, ptype);\n\t\t\t\tif(obj!=null) lst.add(obj);\n\t\t\t}\n\n\t\t\tfloat[] arr= new float[lst.size()];\n\t\t\tfor(Object val : lst)\n\t\t\t\tarr[cnt++] = (Float)val;\n\t\t\treturn arr;\n\t\t} \n\n\t\tcase FLOAT64:\n\t\t{\n\t\t\tList<Object> lst = new ArrayList<Object>();\n\t\t\tfor(Object jsonObj : jarr) {\n\t\t\t\tObject obj =jsonToAttribute(cname, ctype.getElementType(), jsonObj, ptype);\n\t\t\t\tif(obj!=null) lst.add(obj);\n\t\t\t}\n\n\t\t\tdouble[] arr= new double[lst.size()];\n\t\t\tfor(Object val : lst)\n\t\t\t\tarr[cnt++] = (Double)val;\n\t\t\treturn arr;\n\t\t} \n\n\t\tcase USTRING:\n\t\t{\n\t\t\tList<String> lst = new ArrayList<String>();\n\t\t\tfor(Object jsonObj : jarr) {\n\t\t\t\tObject obj =jsonToAttribute(cname, ctype.getElementType(), jsonObj, ptype);\n\t\t\t\tif(obj != null) \n\t\t\t\t\tlst.add((String)obj);\n\t\t\t}\n\t\t\treturn lst.toArray(new String[lst.size()]);\n\t\t} \n\n\t\tcase BSTRING:\n\t\tcase RSTRING:\n\t\t{\n\t\t\tList<RString> lst = new ArrayList<RString>(); \n\t\t\tfor(Object jsonObj : jarr) {\n\t\t\t\tObject obj =jsonToAttribute(cname, ctype.getElementType(), jsonObj, ptype);\n\t\t\t\tif(obj != null) \n\t\t\t\t\tlst.add((RString)obj);\n\t\t\t}\n\t\t\treturn lst;\n\t\t}\n\n\t\tcase TUPLE:\n\t\t{\n\t\t\tList<Tuple> lst = new ArrayList<Tuple>(); \n\t\t\tfor(Object jsonObj : jarr) {\n\t\t\t\tObject obj =jsonToAttribute(cname, ctype.getElementType(), jsonObj, ptype);\n\t\t\t\tif(obj != null) \n\t\t\t\t\tlst.add((Tuple)obj);\n\t\t\t}\n\t\t\treturn lst;\n\t\t}\n\n\t\tcase LIST:\n\t\tcase BLIST:\n\t\t{\n\t\t\tList<Object> lst = new ArrayList<Object>(); \n\t\t\tfor(Object jsonObj : jarr) {\n\t\t\t\tObject obj =jsonToAttribute(cname, ctype.getElementType(), jsonObj, ptype);\n\t\t\t\tif(obj != null) \n\t\t\t\t\tlst.add(obj);\n\t\t\t}\n\t\t\treturn lst;\n\t\t}\n\t\tcase SET:\n\t\tcase BSET:\n\t\t{\n\t\t\tSet<Object> lst = new HashSet<Object>(); \n\t\t\tfor(Object jsonObj : jarr) {\n\t\t\t\tObject obj =jsonToAttribute(cname, ctype.getElementType(), jsonObj, ptype);\n\t\t\t\tif(obj != null) \n\t\t\t\t\tlst.add(obj);\n\t\t\t}\n\t\t\treturn lst;\n\t\t}\n\t\tcase DECIMAL32:\n\t\tcase DECIMAL64:\n\t\tcase DECIMAL128:\n\t\t{\n\t\t\tList<BigDecimal> lst = new ArrayList<BigDecimal>(); \n\t\t\tfor(Object jsonObj : jarr) {\n\t\t\t\tObject obj =jsonToAttribute(cname, ctype.getElementType(), jsonObj, ptype);\n\t\t\t\tif(obj != null) \n\t\t\t\t\tlst.add((BigDecimal)obj);\n\t\t\t}\n\t\t\treturn lst;\n\t\t}\n\t\tcase TIMESTAMP:\n\t\t{\n\t\t\tList<Timestamp> lst = new ArrayList<Timestamp>(); \n\t\t\tfor(Object jsonObj : jarr) {\n\t\t\t\tObject obj =jsonToAttribute(cname, ctype.getElementType(), jsonObj, ptype);\n\t\t\t\tif(obj != null) \n\t\t\t\t\tlst.add((Timestamp)obj);\n\t\t\t}\n\t\t\treturn lst;\n\t\t}\n\n\n\t\t//TODO -- not yet supported types\n\t\tcase BLOB:\n\t\tcase MAP:\n\t\tcase BMAP:\n\t\tcase COMPLEX32:\n\t\tcase COMPLEX64:\n\t\tdefault:\n\t\t\tthrow new Exception(\"Unhandled array type: \" + ctype.getElementType().getMetaType());\n\t\t}\n\n\t}", "void append(E[] elements);", "public static <E extends F, F> F[] asAList(List<E> l, Class<F> theClass) {\n F[] res = (F[]) Array.newInstance(theClass, l.size());\n for (int i = 0; i < l.size(); i++) {\n res[i] = l.get(i);\n }\n return res;\n }", "Chromosome from(List<Chromosome> population);", "public Distributor[] toDistributorArray()\r\n {\r\n Distributor[] a = new Distributor[count];\r\n \r\n VectorItem<O> vi = first;\r\n \r\n for (int i=0;i<=count-1;i++)\r\n {\r\n a[i] = (Distributor) vi.getObject();\r\n vi = vi.getNext();\r\n }\r\n\r\n return a; \r\n }", "public RingBuffer(Class<T> element_type, int capacity) {\n int c=Util.getNextHigherPowerOfTwo(capacity); // power of 2 for faster mod operation\n buf=(T[])Array.newInstance(element_type, c);\n }", "public static IntegerVarArray make(int count) {\n\t\treturn new IntegerVarArray(count);\n\t}", "public ArraySpliterator(Object[] param1ArrayOfObject, int param1Int1, int param1Int2, int param1Int3) {\n/* 926 */ this.array = param1ArrayOfObject;\n/* 927 */ this.index = param1Int1;\n/* 928 */ this.fence = param1Int2;\n/* 929 */ this.characteristics = param1Int3 | 0x40 | 0x4000;\n/* */ }", "void visitArray(Object array, Type componentType);", "public OOPGenericProgram(E[] element) {\n this.element = element;\n }", "public void testConstructorWithMultiDimensionSimpleTypeArray() throws Exception {\r\n root.addChild(createArray(\"array1\", TYPE_INT, \"2\", \"{{0,1}, {2,3}}\"));\r\n\r\n specificationFactory = new ConfigurationObjectSpecificationFactory(root);\r\n\r\n ObjectSpecification array = specificationFactory.getObjectSpecification(\"array1\", null);\r\n\r\n assertEquals(\"SpecType should be array.\", ObjectSpecification.ARRAY_SPECIFICATION, array\r\n .getSpecType());\r\n assertNull(\"Identifier should be null.\", array.getIdentifier());\r\n assertEquals(\"Type should be 'int'.\", TYPE_INT, array.getType());\r\n assertEquals(\"Dimension should be 2.\", 2, array.getDimension());\r\n\r\n Object[] array1 = array.getParameters();\r\n Object[] subArray1 = (Object[]) array1[0];\r\n Object[] subArray2 = (Object[]) array1[1];\r\n\r\n ObjectSpecification[] values = {(ObjectSpecification) subArray1[0],\r\n (ObjectSpecification) subArray1[1], (ObjectSpecification) subArray2[0],\r\n (ObjectSpecification) subArray2[1]};\r\n\r\n assertEquals(\"Array should have 2 elements.\", 2, array1.length);\r\n assertEquals(\"Array[0] should have 2 elements.\", 2, subArray1.length);\r\n assertEquals(\"Array[1] should have 2 elements.\", 2, subArray2.length);\r\n\r\n for (int i = 0; i < 4; i++) {\r\n assertEquals(\"SpecType of array elements should be simple.\",\r\n ObjectSpecification.SIMPLE_SPECIFICATION, values[i].getSpecType());\r\n assertEquals(\"Elements should be 'int'.\", TYPE_INT, values[i].getType());\r\n assertEquals(\"Wrong element value.\", (String) (\"\" + i), values[i].getValue());\r\n }\r\n }", "public Card[][] createArray() {\n //Reset the random number array\n numsArray = new int[]{1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16};\n\n //Initialize a 4x4 array of cards and an integer to hold the random number\n Card[][] cArr = new Card[4][4];\n int randNum;\n\n //Iterate through the array of cards and assign each card a random number\n //and location in the surface view\n for (int i = 0; i < 4; i++) {\n for (int j = 0; j < 4; j++) {\n randNum = randNums();\n cArr[i][j] = new Card((j * 350) + 250,(i * 350) + 20, randNum);\n }\n }\n\n //Return the 2D array of cards\n return cArr;\n }", "ISequence sequence();", "static private PowerlessArray<String>\n types(final Class<?> actual) {\n final Class<?> end =\n Struct.class.isAssignableFrom(actual) ? Struct.class : Object.class;\n final PowerlessArray.Builder<String> r = PowerlessArray.builder(4);\n for (Class<?> i=actual; end!=i; i=i.getSuperclass()) { ifaces(i, r); }\n return r.snapshot();\n }", "private Number[] arrayFinalFormation(Number[] array, int countOfElements) {\n Number[] completedArrayVersion = new Number[countOfElements];\n for (int index = 0; index < completedArrayVersion.length; index++) {\n completedArrayVersion[index] = array[index];\n }\n return completedArrayVersion;\n }", "public static int[] createZeroBasedSequence(int length) {\n\t\tint[] sequence = new int[length];\n\t\tfor (int i = 0; i < sequence.length; i++) {\n\t\t\tsequence[i] = i;\n\t\t}\n\t\treturn sequence;\n\t}", "private Sequence makeSequenceWithCapacity(String[] sList, int index, int cap) {\r\n\t\tSequence s = new Sequence(cap);\r\n\t\tfor(int i = 0; i<sList.length; i++) {\r\n\t\t\ts.addAfter(sList[i]);\r\n\t\t}\r\n\t\ts.start();\r\n\t\tfor(int i=0; i<index; i++) {\r\n\t\t\ts.advance();\r\n\t\t}\r\n\t\treturn s;\r\n\t}", "public static void fillPossiblesWithResults()\n\t{\n\t\tfor(int i = 0; i < nextMatch; i++)\n\t\t{\n\t\t\tpossibleResults[i] = new String[1];\n\t\t\tpossibleResults[i][0] = results[i];\n\t\t}\n\t}", "public RubyArray(Ruby ruby) {\n \t\tthis(ruby, new ArrayList());\n \t}", "public <T> void createArray(T sample){\n ArrayList<T> list = new ArrayList<T>();\n list.add(sample);\n }", "public MersenneTwister[] getMersennePRGNArray(int size){\n MersenneTwister[] generators = new MersenneTwister[size];\n for(int i = 0; i < size; i++){\n long seed = mersennePRNG.nextLong();\n generators[i] = new MersenneTwister(seed);\n }\n return generators;\n }" ]
[ "0.57560486", "0.55131423", "0.5456273", "0.51600665", "0.51433945", "0.49546978", "0.48682642", "0.48068622", "0.48053443", "0.4797916", "0.4782492", "0.47670463", "0.47522965", "0.4736261", "0.46714914", "0.46450067", "0.46068034", "0.45895132", "0.4588369", "0.45728445", "0.45430452", "0.45140108", "0.44958997", "0.448943", "0.4454127", "0.44423512", "0.44340685", "0.44085026", "0.43685895", "0.43478954", "0.43302238", "0.43241963", "0.43050474", "0.42860487", "0.42775148", "0.42769718", "0.4275879", "0.42584735", "0.4254425", "0.42514715", "0.42436463", "0.42167714", "0.42144275", "0.42120588", "0.4202418", "0.41797414", "0.41618258", "0.4160074", "0.41491935", "0.4146377", "0.41456324", "0.41424194", "0.41403672", "0.4115436", "0.41143942", "0.41141838", "0.41071475", "0.41070804", "0.41060245", "0.41038683", "0.4103452", "0.40973103", "0.40923405", "0.40880796", "0.40873596", "0.40830225", "0.40818334", "0.40806207", "0.40749204", "0.40559766", "0.40442663", "0.4044027", "0.40404093", "0.4040052", "0.40392423", "0.4038357", "0.4037572", "0.4029992", "0.40218386", "0.40192348", "0.40160432", "0.40153727", "0.4009569", "0.4004563", "0.4003116", "0.4000555", "0.3999374", "0.399653", "0.3996206", "0.39940834", "0.39910117", "0.39899564", "0.39897475", "0.39897174", "0.39870164", "0.39867333", "0.398673", "0.39839232", "0.3983217", "0.39724717" ]
0.7294399
0
Starts up the internal Agenda Object. Disables unwanted inbuilt functions of agenda. Adds the agenda Control into the scene.
private void initAgenda() { agenda = new Agenda(); appointmentGroup = new Agenda.AppointmentGroupImpl().withStyleClass(STYLE_CLASS); // this actionCallBack is called when the user double clicks on an appointment in the display // Opens a dialog containing the details of the clicked event agenda.actionCallbackProperty().set(param -> { logger.info("User double clicked on " + param.toString()); CalendarEventDialog dialog = new CalendarEventDialog((CalendarEvent) param); displayPopUp(dialog.getRoot()); return null; }); agenda.setAllowDragging(false); agenda.setAppointmentChangedCallback(param -> null); agenda.setEditAppointmentCallback(param -> null); agenda.setSkin(new AgendaWeekSkin(agenda)); agenda.setId("agenda"); calendarDisplayBox.getChildren().add(agenda); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Agenda() {\n initComponents();\n \n Deshabilitar();\n LlenarTabla();\n \n }", "public void start() {\n enableEvents = true;\n reset();\n }", "@Override\r\n\t public void onCreate() {\n\t super.onCreate();\r\n\t ACRA.init(this);\r\n\t aaw.start();\r\n\r\n\t }", "@Override\n\tpublic void start()\n\t{\n\t\tarena = \"scenarios/boxpushing/arena/pioneer.controller.arena.txt\"; \n\n\t\t\n\t\tschedule.reset();\n\n\t\tsuper.start();\n\n\t\tresetBehavior();\n\n\t}", "@Override\n public void teleopInit() {\n if (autonomousCommand != null) \n {\n autonomousCommand.cancel();\n }\n\n new ArcadeDrive().start();\n\n new BackElevatorControl().start();\n\n new IntakeControl().start();\n\n new FrontElevatorManual().start();\n\n new ElevatorAutomatic().start();\n }", "public void startScene()\r\n\t{\r\n\t\tthis.start();\r\n\t}", "public void startApplication() {\n\t\tgameView = new GameGUI(this);\n\t\t\n\t\t/*\n\t\t * Create bonus GUI now.\n\t\t * TODO: Use swing worker thread to create bonus GUI\n\t\t * \t\t that way if GUI had more bells and whistles to it\n\t\t * \t\t the bonus GUI creation wouldn't take up processing time\n\t\t * \t\t on the main thread.\n\t\t */\n\t\tcreateBonusGUI();\n\t\t\n\t\t//GUI created and ready to show to the user\n\t\tgameView.allowVisibility();\n\t\tGameSounds.startBackgroundMusic();\n\t}", "public void start()\n\t{\n\t\tview.showWindow();\n\t\taddListeners();\n\t}", "public void GameGuiStart(){\n\t\ttgs = new TamaGUIStart();\n\t\ttgs.TamaStartGUIStarter(ge);\n\t}", "public void activate() {\n\t\t\t\n\t\t//Prior to activation add objects to Community\n\t\tthis.buildings = new ArrayList<>();\t//setup buildings\n \tBuilding[] buildings = control.buildings();\n\t\tCollections.addAll(this.buildings, buildings);\n \t\n\t\t//Timer for animation\n\t\t//Argument 1: timerValue is a period in milliseconds to fire event\n\t\t//Argument 2:t any class that \"implements ActionListener\"\n\t\ttimer = new Timer(control.timerValue, this); //timer constructor\n\t\ttimer.restart(); //restart or start\n\t\t\n\t\t// frame becomes visible\n\t\tframe.setVisible(true);\t\t\n\t}", "public void start() {\r\n view.addListener(this);\r\n view.makeVisible();\r\n view.display();\r\n }", "@Override\n public void onStart() {\n GuiMain gui = new GuiMain(this);\n gui.setVisible(true);\n log(\"Script is starting!\");\n\n }", "@Override\n public void autonomousInit() {\n\n autonomousCommand = new Autonomous(start.getSelected(), chooser.getSelected());\n \n autonomousCommand.start();\n }", "public void start() {\r\n\t\tsetupWWD();\r\n\t\tsetupStatusBar();\r\n\t\tsetupViewControllers();\r\n\t\tsetupSky();\r\n\t\t//setupAnnotationToggling();\r\n\r\n\t\t// Center the application on the screen.\r\n\t\tWWUtil.alignComponent(null, this, AVKey.CENTER);\r\n\t\t\r\n\t\tgetLayerEnableCmd().run(); // Enable/disable the desired layers.\r\n\t}", "public void start() {\n animator.start();\n setVisible(true);\n requestFocus();\n }", "@Override\n public void simpleInitApp() {\n this.viewPort.setBackgroundColor(ColorRGBA.LightGray);\n im = new InteractionManager();\n setEdgeFilter();\n initEnemies();\n initCamera();\n initScene();\n initPlayer();\n initCrossHairs();\n }", "private void agendaFrame() {\n\t\tEventQueue.invokeLater(new Runnable() {\n\t\t\t@Override\n\t\t\tpublic void run() {\n\t\t\t\tfinal JFrame frame = new JFrame(\"Please select a time period.\");\n\t\t\t\tframe.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);\n\t\t\t\ttry {\n\t\t\t\t\tUIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tJPanel panel = new JPanel();\n\t\t\t\tpanel.setLayout(new GridLayout(1, 4));\n\t\t\t\t//JTextField d = new JTextField(\"\" + year + \"/\" + month + \"/\" + day);\n\t\t\t\tfinal JTextField startDate = new JTextField(\"1\" + \"/1\" + \"/2016\");\n\t\t\t\tJTextField to = new JTextField(\"to\");\n\t\t\t\tto.setEditable(false);\n\t\t\t\tfinal JTextField endDate = new JTextField(\"1\" + \"/2\" + \"/2016\");\n\t\t\t\tJButton go = new JButton(\"Go\");\n\t\t\t\t\n\t\t\t\tgo.addActionListener(new ActionListener() {\n\t\t\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\t\teventsRender = new AgendaViewRender();\n\t\t\t\t\t\tAgendaViewRender.setStartDate(startDate.getText());\n\t\t\t\t\t\tAgendaViewRender.setEndDate(endDate.getText());\n\t\t\t\t\t\tupdateEventsView(eventsRender);\n\t\t\t\t\t\tframe.dispatchEvent(new WindowEvent(frame, WindowEvent.WINDOW_CLOSING));\n\t\t\t\t\t}\n\t\t\t\t});\n\n\t\t\t\tpanel.add(startDate);\n\t\t\t\tpanel.add(to);\n\t\t\t\tpanel.add(endDate);\n\t\t\t\tpanel.add(go);\n\t\t\t\t\n\t\t\t\tframe.setSize(500, 100);\n\t\t\t\tframe.setLayout(new GridLayout(2, 1));\n\t\t\t\tframe.add(panel);\n\t\t\t\tframe.setLocationByPlatform(true);\n\t\t\t\tframe.setVisible(true);\n\n\t\t\t}\n\t\t});\n\t}", "@Override\n\tpublic void autonomousInit() {\n\t\tselectedAutonomousCommand = new AutoModeCommandGroup(autoChooser.getSelected());\n\t\tif (selectedAutonomousCommand!=null) {\n\t\t\tselectedAutonomousCommand.start();\n\t\t}\n\t}", "@Override\r\n\tpublic void startEvent() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void startEvent() {\n\t\t\r\n\t}", "public void onStart() {\n super.onStart();\n this.eventDelegate.onStart();\n }", "public void start() {\n m_enabled = true;\n }", "public void start(){\n\t\tsuper.start();\n\t}", "public void autonomousInit() {\n if (autonomousCommand != null) autonomousCommand.start();\n }", "@Override\n\tpublic void onStart() {\n\t\tsuper.onStart();\n\t\tdisplayEvent();\n\t}", "private void initialSetup() {\n\t\tcaretTimer = new Timeline(new KeyFrame(Duration.millis(GlobalAppSettings.caretBlinkRate), new EventHandler<ActionEvent>(){\r\n\t\t\t@Override\r\n\t\t public void handle(ActionEvent event) {\r\n\t\t\t\tisCaretVisible = !isCaretVisible;\t\t\t\t\r\n\t\t\t\tif(caretParagraph!= null && caretIndex == anchor) {\r\n\t\t\t\t\ttextModifyFacade.getLineViewWithIndex(caretIndex).getColumnView().getDocumentView().refreshOverlay();\r\n\t\t\t\t}\r\n\t\t }\r\n\t\t}));\r\n\t\tcaretTimer.setCycleCount(-1);\r\n\t\tcaretTimer.play();\r\n\t\t\r\n\t\tcaretMovementTimer = new Timeline(new KeyFrame(Duration.millis(GlobalAppSettings.fastDeviceFrameMillis), new EventHandler<ActionEvent>(){\r\n\t\t\t@Override\r\n\t\t public void handle(ActionEvent event) {\r\n\t\t\t\ttotalDestination += GlobalAppSettings.fastDeviceFrameMillis;\r\n\t\t\t\tscreenX = interpolation.apply(startX, destinationX, totalDestination / GlobalAppSettings.caretMovementTime);\r\n\t\t\t\tscreenY = interpolation.apply(startY, destinationY, totalDestination / GlobalAppSettings.caretMovementTime);\r\n\t\t\t\tif(totalDestination > GlobalAppSettings.caretMovementTime){\r\n\t\t\t\t\tscreenX = destinationX;\r\n\t\t\t\t\tscreenY = destinationY;\r\n\t\t\t\t\tcaretMovementTimer.stop();\r\n\t\t\t\t\ttotalDestination = 0;\r\n\t\t\t\t}\r\n\t\t\t\tif(caretParagraph!= null && caretIndex == anchor) {\r\n\t\t\t\t\ttextModifyFacade.getLineViewWithIndex(caretIndex).getColumnView().getDocumentView().refreshOverlay();\r\n\t\t\t\t}\r\n\t\t }\r\n\t\t}));\r\n\t\tcaretMovementTimer.setCycleCount(-1);\r\n\t\t\r\n\t\tcaretIndex = 0;\r\n\t\tanchor = 0;\r\n\t}", "public void autonomousInit() {\n\t\tautonomousCommand.start();\r\n\t}", "@Override protected void startup() {\n show(new FFTView(this));\n }", "public void start() {\n SetupGUI setup = new SetupGUI();\n }", "public final void begin() {\n Thread.setDefaultUncaughtExceptionHandler(new UncaughtExceptionHandler() {\n public void uncaughtException(Thread t, Throwable e) {\n\t\t\t\t/*\n\t\t\t\t * Thread interruptions will always throw a thread death exception, and since thread.stop()\n\t\t\t\t * is called from another thread, this default exception handler always receives the throwable, even if thread.stop is surrounded\n\t\t\t\t * by a try-catch.\n\t\t\t\t * TLDR; dont print em...\n\t\t\t\t */\n if (e instanceof ThreadDeath) return;\n log(Level.SEVERE, e.getClass().getSimpleName() + \" caught in thread \" + t.getName() + \": \" + e.getMessage());\n for (StackTraceElement ste : e.getStackTrace()) {\n log(Level.SEVERE, ste.toString());\n }\n }\n });\n\t\t/*\n\t\t * Load the random event pool\n\t\t */\n if (!(this instanceof RandomEvent)) {\n context.randomEvents = new RandomEventPool(context);\n }\n\t\t\n\t\t/*\n\t\t * Check if the script wants to execute\n\t\t */\n boolean initialized = false;\n try {\n initialized = init();\n } catch (Exception exc) {\n //ignore it\n }\n if (!initialized) {\n log(Level.WARNING, \"Script \" + manifest.name() + \" refused to start.\");\n context.getBot().popScript();\n }\n }", "public start() {\n\t\tsuper();\n\t}", "private void start() {\r\n\t\t// Clear the log file.\r\n\t\tBPCC_Logger.clearLogFile();\r\n\t\t\r\n\t\t// Initialize BPCC_Util static fields.\r\n\t\tBPCC_Util.initStaticFields();\r\n\t\t\r\n\t\t// Set logging level desired for test.\r\n\t\tBPCC_Util.setLogLevel(LogLevelEnum.DEBUG);\r\n\t\t\r\n\t\t// Initialize class global variables.\r\n\t\tinitVars();\r\n\t\t\r\n\t\tcreateAndShowGUI();\r\n\t}", "public void startAlarm(){\r\n\t\tAlarm alarm = new Alarm(\"magAanvallen\", 1 / aanvallenPerSeconden);\r\n\t\talarm.addTarget(this);\r\n\t\talarm.start();\r\n\t}", "public void start(){\n JmeFormatter formatter = new JmeFormatter();\n\n Handler consoleHandler = new ConsoleHandler();\n consoleHandler.setFormatter(formatter);\n\n Logger.getLogger(\"\").removeHandler(Logger.getLogger(\"\").getHandlers()[0]);\n Logger.getLogger(\"\").addHandler(consoleHandler);\n \n createCanvas(appClass);\n \n try {\n Thread.sleep(500);\n } catch (InterruptedException ex) {\n }\n \n SwingUtilities.invokeLater(new Runnable(){\n public void run(){\n JPopupMenu.setDefaultLightWeightPopupEnabled(false);\n\n createFrame();\n \n //currentPanel.add(canvas, BorderLayout.CENTER);\n mMainFrame.pack();\n startApp();\n mMainFrame.setLocationRelativeTo(null);\n mMainFrame.setVisible(true);\n }\n });\n \n \n }", "public synchronized void start() {\r\n\t\tif(type == TYPE_DELAY) {\r\n\t\t\tdate = new Date(System.currentTimeMillis() + delay);\r\n\t\t}\r\n\t\tif(started) {\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tstarted = true;\r\n\t\ttm.addStartedTimers(this);\t\t\r\n//\t\ttm.getHandler().post(new Runnable() {\r\n//\t\t\tpublic void run() {\r\n//\t\t\t\tdoCancel();\r\n//\t\t\t\tdoStart();\r\n//\t\t\t}\r\n//\t\t});\r\n\t}", "protected void start() {\n }", "@Override\n public void onCreate() {\n super.onCreate();\n ACRA.init(this);\n }", "public void initialize() {\n while (il == null)\n try {\n Thread.sleep(1);\n } catch (InterruptedException e) {\n continue;\n }\n\n // Set up command manager (undo and redo)\n commandManager = new ModifySongManager(staff, this);\n \n // Set up staff.\n HBox[] staffLedgerLines = { staffExtLinesHighC, staffExtLinesHighA,\n staffExtLinesLowC, staffExtLinesLowA };\n staff = new Staff(staffLedgerLines, this, il, arrangementList);\n controlPanel = new Controls(staff, this, il, arrangementList);\n staff.setControlPanel(controlPanel);\n \n // HACK\n staffInstrumentEventHandler = new StaffInstrumentEventHandler(staff, il, commandManager);\n \n commandManager.setStaff(staff);\n \n // Set up top line.\n instBLine = new ButtonLine(instLine, selectedInst, il, staff);\n selectedInst.setImage(il.getSpriteFX(ImageIndex.MARIO));\n\n topPanel = new PanelButtons(staff, this, il, instBLine);\n staff.setTopPanel(topPanel);\n\n arrangementList.setEditable(true);\n arrangementList.setStyle(\"-fx-font: 8pt \\\"Arial\\\";\");\n // Hide all arranger features for now.\n arrangementList.setVisible(false);\n addButton.setVisible(false);\n deleteButton.setVisible(false);\n upButton.setVisible(false);\n downButton.setVisible(false);\n \n // Set up clipboard.\n rubberBand = new StaffRubberBand();\n clipboard = new StaffClipboard(rubberBand, staff, this, il);\t\n \n // Fix TextField focus problems.\n new SongNameController(songName, this);\n \n }", "public void start() {\n\tanimator = new Thread(this);\n\tanimator.setName(\"erly_boid:::swarm intelligence\");\n\terlang =new Thread(co);\n\terlang.start();\n\tanimator.start();\n \n \n \t\n }", "public void start() {\r\n\t\tdiscoverTopology();\r\n\t\tsetUpTimer();\r\n\t}", "public void teleopInit() {\n\t\tif (autonomousCommand != null)\n\t\t\tautonomousCommand.cancel();\n\t\t\n//\t\tif ((intake.intakeIsUp() || intake.intakeSolenoidIsOff()) && shooterArm.getAngle() > 45) {\n//\t\t\traiseArm90.start();\t\t\t\n//\t\t}\n\t\tshooterArm.setBrakeOff();\n\t\t\n\t\tvision.enableCameraSaving();\n\t\tvision.setCameraPeriod(1);\n\t}", "public void start() {\n\t\t setVisible(true);\n\t}", "@Override\n public void init(){\n setStartIn18Inches(false);\n super.init();\n //start\n programStage = progStates.allowingUserControl1.ordinal();\n\n //since we are measuring, start at 0,0,0\n setStartingPosition(0,0,Math.toRadians(0));\n }", "public void autonomousInit(){\n\t \t//resetAndDisableSystems();\n\t\t \n\t \tautonomousCommand = (Command) autoChooser.getSelected();\n\t \tautonomousCommand.start();\n\t \t\n\t \t\n\t }", "static public void activate() {\n instance.buildTree();\n instance.show();\n }", "public void onStart() {\r\n\t\tLog.w(LOG_TAG, \"Simple iMeeting base view = \" + this\r\n\t\t\t\t+ \" onStart method not implement\");\r\n\t}", "@Override\n public void disabledInit() {\n\t// new SetElevator(0).start();\n\tif (autonomousCommand != null)\n\t autonomousCommand.cancel();\n\tScheduler.getInstance().removeAll();\n }", "public AulaView() {\n initComponents();\n }", "public void autonomousInit() {\n\t\tSystem.out.println(\"Auto Init\");\n//\t\tint autonStep = 0;\t//step that autonomous is executing\n\t\tclaw = new Claw();\n\t\televator = new Elevator();\n//\t\televator.elevator();\n\t\tdecode = new Decode();\n//\t\tdecode.decode();\n\t}", "private void setupUI(){\n this.setupTimerSchedule(controller, 0, 500);\n this.setupFocusable(); \n this.setupSensSlider();\n this.setupInitEnable();\n this.setupDebugger();\n }", "public void start() {\n background.playMusic();\n createTimer();\n timer.start();\n }", "@Override \n protected void startup() {\n GretellaView view = new GretellaView(this);\n show( view );\n view.initView(); \n }", "protected void setupUI() {\n\t\t\n\t\tcontentPane = new JPanel();\n\t\tlayerLayout = new CardLayout();\n\t\tcontentPane.setLayout(layerLayout);\n\t\tControlAgendaViewPanel agendaViewPanel = new ControlAgendaViewPanel(layerLayout,contentPane);\n\t\tagendaPanelFactory = new AgendaPanelFactory();\n\t\tdayView = agendaPanelFactory.getAgendaView(ActiveView.DAY_VIEW);\n\t\tweekView = agendaPanelFactory.getAgendaView(ActiveView.WEEK_VIEW);\n\t\tmonthView = agendaPanelFactory.getAgendaView(ActiveView.MONTH_VIEW);\n\t\t\n\t\tcontentPane.add(dayView,ActiveView.DAY_VIEW.name());\n\t\tcontentPane.add(weekView,ActiveView.WEEK_VIEW.name());\n\t\tcontentPane.add(monthView,ActiveView.MONTH_VIEW.name());\n\t\n\t\tJSplitPane splitPane = new JSplitPane(JSplitPane.HORIZONTAL_SPLIT,agendaViewPanel, contentPane);\n\t\tthis.setContentPane(splitPane);\n\t\t\n\t\tJMenuBar menuBar = new JMenuBar();\n\t\t\n\t\t//MENU\n\t\tJMenu file, edit, help, view;\n\t\t\n\t\t//ITEM DE MENU\n\t\tJMenuItem load, quit, save;\n\t\tJMenuItem display, about;\n\t\tJMenuItem month, week, day;\n\t\t\n\t\t/* File Menu */\n\t\t/** EX4 : MENU : UTILISER L'AIDE FOURNIE DANS LE TP**/\n\t\t//Classe pour les listener des parties non implémentés\n\t\tclass MsgError implements ActionListener {\n\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tJOptionPane.showMessageDialog(null, ApplicationSession.instance().getString(\"info\"), \"info\", JOptionPane.INFORMATION_MESSAGE, null);\t\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t//Menu File\t\n\t\tfile = new JMenu(ApplicationSession.instance().getString(\"file\"));\n\t\t\n\t\tmenuBar.add(file);\n\t\tfile.setMnemonic(KeyEvent.VK_A);\n\t\tfile.getAccessibleContext().setAccessibleDescription(\n\t\t \"The only menu in this program that has menu items\");\n\t\tmenuBar.add(file);\n\t\t\n\n\t\t//a group of JMenuItems\n\t\tload = new JMenuItem(ApplicationSession.instance().getString(\"load\"),KeyEvent.VK_T);\n\t\tload.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_1, ActionEvent.ALT_MASK));\n\t\tload.getAccessibleContext().setAccessibleDescription(\"This doesn't really do anything\");\n\t\tfile.add(load);\n\t\tload.addActionListener(new MsgError());\n\t\t\n\t\tquit = new JMenuItem(ApplicationSession.instance().getString(\"quit\"),KeyEvent.VK_T);\n\t\tquit.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_1, ActionEvent.ALT_MASK));\n\t\tquit.getAccessibleContext().setAccessibleDescription(\"This doesn't really do anything\");\n\t\tfile.add(quit);\n\t\t\n\t\t//LISTENER QUIT\n\t\tquit.addActionListener(new ActionListener() {\n\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\n\t\t\t\t//message box yes/no pour le bouton quitter\n\t\t\t\tint dialogButton = JOptionPane.YES_NO_OPTION;\n\t\t\t\tint dialogResult = JOptionPane.showConfirmDialog (null, new String(ApplicationSession.instance().getString(\"quit?\")),\"Warning\",dialogButton);\n\t\t\t\tif(dialogResult == JOptionPane.YES_OPTION){\n\t\t\t\tSystem.exit(0);\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t});\n\t\t\n\t\tsave = new JMenuItem(new String(ApplicationSession.instance().getString(\"save\")),KeyEvent.VK_T);\n\t\tsave.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_1, ActionEvent.ALT_MASK));\n\t\tsave.getAccessibleContext().setAccessibleDescription(\"This doesn't really do anything\");\n\t\tfile.add(save);\n\t\tsave.addActionListener(new MsgError());\n\t\t\n\t\t\n\t//Menu Edit \n\t\tedit = new JMenu(new String(ApplicationSession.instance().getString(\"edit\")));\n\t\t\n\t\tmenuBar.add(edit);\n\t\tedit.setMnemonic(KeyEvent.VK_A);\n\t\tedit.getAccessibleContext().setAccessibleDescription(\n\t\t \"The only menu in this program that has menu items\");\n\t\t\n\t\t//Sous menu View\n\t\t\n\t\tview = new JMenu(new String(ApplicationSession.instance().getString(\"view\")));\n\t\tview.setMnemonic(KeyEvent.VK_A);\n\t\tview.getAccessibleContext().setAccessibleDescription(\n\t\t \"The only menu in this program that has menu items\");\n\t\tedit.add(view);\n\t\t\n\t\tmonth = new JMenuItem(new String(ApplicationSession.instance().getString(\"month\")),KeyEvent.VK_T);\n\t\tmonth.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_1, ActionEvent.ALT_MASK));\n\t\tmonth.getAccessibleContext().setAccessibleDescription(\"This doesn't really do anything\");\n\t\tview.add(month);\n\t\t\t\t\n\t\tweek = new JMenuItem(new String(ApplicationSession.instance().getString(\"week\")),KeyEvent.VK_T);\n\t\tweek.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_1, ActionEvent.ALT_MASK));\n\t\tweek.getAccessibleContext().setAccessibleDescription(\"This doesn't really do anything\");\n\t\tview.add(week);\n\t\t\n\t\tday = new JMenuItem(new String(ApplicationSession.instance().getString(\"day\")),KeyEvent.VK_T);\n\t\tday.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_1, ActionEvent.ALT_MASK));\n\t\tday.getAccessibleContext().setAccessibleDescription(\"This doesn't really do anything\");\n\t\tview.add(day);\n\t\t\n\t\t//LISTENER VIEW\n\t\t\n\t\t\n\t\tmonth.addActionListener(new ActionListener() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\n\t\t\t\tlayerLayout.last(contentPane);\t\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t});\n\t\t\n\t\tweek.addActionListener(new ActionListener() {\n\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tlayerLayout.first(contentPane);\t\n\t\t\t\tlayerLayout.next(contentPane);\t\n\t\t\t\t}\n\t\t\t\n\t\t\t\n\t\t});\n\t\tday.addActionListener(new ActionListener() {\n\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\n\t\t\t\tlayerLayout.first(contentPane);\t\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t});\n\t\t\n\t\t\n\t//Menu Help\n\t\thelp = new JMenu(new String(ApplicationSession.instance().getString(\"help\")));\n\t\t\n\t\tmenuBar.add(help);\n\t\thelp.setMnemonic(KeyEvent.VK_A);\n\t\thelp.getAccessibleContext().setAccessibleDescription(\n\t\t \"The only menu in this program that has menu items\");\n\t\tmenuBar.add(help);\n\t\t\n\t\tdisplay = new JMenuItem(new String(ApplicationSession.instance().getString(\"display\")),KeyEvent.VK_T);\n\t\tdisplay.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_1, ActionEvent.ALT_MASK));\n\t\tdisplay.getAccessibleContext().setAccessibleDescription(\"This doesn't really do anything\");\n\t\thelp.add(display);\n\t\tdisplay.addActionListener(new MsgError());\n\t\t\n\t\tabout = new JMenuItem(new String(ApplicationSession.instance().getString(\"about\")),KeyEvent.VK_T);\n\t\tabout.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_1, ActionEvent.ALT_MASK));\n\t\tabout.getAccessibleContext().setAccessibleDescription(\"This doesn't really do anything\");\n\t\thelp.add(about);\n\t\tabout.addActionListener(new MsgError());\n\t\t\n\t\t\n\n\t\tthis.setJMenuBar(menuBar);\n\t\tthis.pack();\n\t\tlayerLayout.next(contentPane);\n\t}", "public AutoEvents() {\n super();\n _autoEventList = new ArrayList();\n }", "public void start() {\r\n if (ticks != 0) {\r\n if (uiCreator.isPresent()) {\r\n uiCreator.get().createUI(simulator);\r\n } else {\r\n simulator.start();\r\n }\r\n }\r\n }", "public void start()\n {\n animator = new Thread(this);\n animator.start();\n }", "public Start() {\n initComponents();\n }", "public Start() {\n initComponents();\n }", "private void start() {\n\n\t}", "public void start()\n {\n }", "public void start() {\n }", "@Override protected void startup() {\n BlaiseGraphicsTestFrameView view = new BlaiseGraphicsTestFrameView(this);\n canvas1 = view.canvas1;\n root1 = view.canvas1.getGraphicRoot();\n canvas1.setSelectionEnabled(true);\n show(view);\n }", "@Override\n public void start() {\n swerveDebug(500, \"SwerveAutoTEST::start\", \"START\");\n\n // Call the super/base class start method.\n super.start();\n\n\n // *************************************************\n // *************************************************\n // ****** set debugging on or off and options ******\n // *************************************************\n // *************************************************\n debugActive = Boolean.TRUE;\n // always add one for the state set in init below\n debugStates = 2;\n debugStartState = autoStates.SWERVE_AUTO_TESTING_TURN_BACK;\n // *************************************************\n // *************************************************\n \n\n swerveDebug( 500, \"SwerveAutoTEST::start\", \"DONE\");\n }", "@Override\r\n protected void start() throws StartException {\n\r\n if (!Main.INIT_COMPLETE.isReached()) startServer();\r\n new EDTRunner() {\r\n\r\n @Override\r\n protected void runInEDT() {\r\n initGUI();\r\n }\r\n };\r\n\r\n }", "@Override\r\n\tpublic void start() {\n\t\tsuper.start();\r\n\t\t\r\n\t}", "private AppTimer() {\n\t\tstart();\n\t}", "@Override\n public void start (Stage startStage) {\n\n// loads all Scenes from FXML files, shows error if unsuccessful\n try {\n mainScene = new Scene(FXMLLoader.load(getClass().getResource(\"windows/mainWindow.fxml\")));\n mainScene.setFill(Color.TRANSPARENT);\n menuScene = new Scene(FXMLLoader.load(getClass().getResource(\"windows/menuWindow.fxml\")));\n menuScene.setFill(Color.TRANSPARENT);\n addEventScene = new Scene(FXMLLoader.load(getClass().getResource(\"windows/addEventWindow.fxml\")));\n addTimelineScene = new Scene(FXMLLoader.load(getClass().getResource(\"windows/addTimelineWindow.fxml\")));\n } catch (Exception exception) {\n showError(\"loading GUI\", exception.toString());\n }\n\n// loads visuals (CSS stylesheet and logo)\n stylesheet = new Stylesheet(\"stylesheet.css\");\n logo = new Image(\"/images/icon-main.png\");\n\n// links all JavaFX Nodes defined as static variables, binds Listeners\n loadFXMLElements();\n createListeners();\n\n// starts the main Stage (window) on menu (menuScene)\n window = startStage;\n// window.setTitle(\"Timelines: Menu\");\n window.setScene(menuScene);\n// window.getIcons().add(logo);\n window.initStyle(StageStyle.TRANSPARENT);\n\n window.show();\n\n// creates a new App (back-end), attempts to load data from file, creates success / error user feedback\n try {\n app = new App();\n setMessage(app.loadFromFile() + \": \" + app.timelines.size() + \" Timelines loaded\", false);\n } catch (Exception exception) {\n showError(\"loading data from file\", exception.toString() + \"\\n(Expected file data.txt in the same directory)\");\n }\n\n// draws all Elements in menu\n drawMenuElements(false);\n\n// creates all default back-end variables\n visibleNodes = new LinkedList<>();\n axes = new LinkedList<>();\n shift = 0;\n stretch = 1;\n }", "public void Start(){\n\t\t\n\t\tif(!_martMenuVisible && !_pcVisible && !completionCheck && textTimer !=null && !textTimer.isRunning() && !_approachTimer.isRunning() && !escapeTimerEnter.isRunning() && !escapeTimerLeave.isRunning()){\n\t\t\tif(!_busy && !_menuVisible){\n\t\t\t\t_busy = true;\n\t\t\t\t_menuVisible = true;\n\t\t\t}\n\t\t\telse{\n\t\t\t\tif(!getCurrentMenu().isVisible()){\n\t\t\t\t\t_busy = false;\n\t\t\t\t\tcompletionCheck = false;\n\t\t\t\t\t_menuVisible = false;\n\t\t\t\t\t_menuCursor.y = 23;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\t\n\t\tthis.repaint();\n\t}", "public void start() {\n\n\t}", "@Override\n public void simpleInitApp()\n {\n makeInitialWorld();\n \tAudio audio = new Audio(assetManager, rootNode);\n inputManager.setCursorVisible(false);\n \trootNode.attachChild(overlayNode);\n\n \tflyCam.setEnabled(true);\n flyCam.setMoveSpeed(25);\n\n setDisplayFps(true);\n setDisplayStatView(true);\n\n GUIInfo guiInfo = new GUIInfo(guiNode, assetManager.loadFont(\"Interface/Fonts/Console.fnt\"));\n guiNode.addControl(guiInfo);\n }", "public void start() {\n \t\tgui.initialize();\n \t\t// DEBUG mode\n\t\tbman.get(0).boostSpeed(2);\n \n \t\tloop();\n \t}", "public void autonomousInit() {\n //autonomousCommand = (Command) chooser.getSelected();\n autoLoopCounter = 0; //This resets the loop counter to 0\n //if (autonomousCommand != null) autonomousCommand.start();\n }", "public void start() {\n \n convertLabelsToInt();\n executor = Executors.newSingleThreadExecutor();\n executor.submit(this);\n active = true;\n \n tSec.setEditable(false);\n tMin.setEditable(false);\n tHours.setEditable(false);\n }", "public Venda() {\n initComponents();\n }", "public Venda() {\n initComponents();\n }", "public adivinaGUI() {\n initComponents();\n }", "public void start() {\n\n\t\t// There will be no established screen at startup.\n\t\tif (screen != null)\n\t\t\tthrow new RuntimeException(\"Multiple instances of the game cannot be run.\");\n\n\t\t// Fire up the main menu screen.\n\t\tsetCurrentScreen(new MainMenuScreen());\n\t}", "public AgendaController(){\n setService(new JavaServiceFacade());\n setActividadRegistrar(new CalendarActivityClinica());\n setModel(new CalendarModelClinica());\n if(this.isPermisoAgendaPersonal()){\n setUsuarioAgenda(LoginController.getUsuarioLogged());\n }\n generarActividades();\n setListaPacientes(service.getPacienteFindAll());\n setListaUsuarios(service.getUsuarioFindAll());\n setMensajeRegistrar(\"\");\n setMensajeEditar(\"\");\n }", "public void start(){\n }", "void doManualStart();", "public void start() {\n enemyTimeline.play();\n }", "public void start() {\n mStateMachine.sendMessage(SoftApStateMachine.CMD_START, mApConfig);\n }", "@FXML\n void startEvent(ActionEvent event) throws EnvironmentException, EmitterException {\n \t// Hide the start button and show the stop button\n \tstartButton.setVisible(false);\n \tstopButton.setVisible(true);\n \t//Create a new particle manager\n\t\tmanager = new ParticleManager(windSpeed, angle);\n\t\tstartTime = System.currentTimeMillis() / 1000.0;\n\t\tmanager.start(0);\n\n\t\t//Create a frame that runs the drawFireworks() to display the updated launch value.\n\t\tKeyFrame frame = new KeyFrame(Duration.ZERO, actionEvent ->\n\t\t\t\t{\n\t\t\t\t\ttry\n\t\t\t\t\t{\n\t\t\t\t\t\tdrawFireworks();\n\t\t\t\t\t}\n\t\t\t\t\tcatch(Exception e)\n\t\t\t\t\t{\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t//Create a timeline and run it.\n\t\ttimeline = new Timeline( frame,\n\t\t\t\tnew KeyFrame(Duration.millis(1000 / 60)));\n\t\ttimeline.setCycleCount(Timeline.INDEFINITE);\n\t\ttimeline.playFromStart();\n }", "public void start() {\n\n }", "@Override\n public void begin() {\n\n Objects.requireNonNull(this.model);\n Objects.requireNonNull(this.view);\n initiateKeyboard();\n initiateMouse();\n view.showView();\n\n }", "public void start()\r\n\t{\r\n\t\t//build scene\r\n\t\tsetupWorld();\r\n\t \r\n\t\t//setup interfae\r\n\t RightClickMenuListener rightClickMenuListener = new RightClickMenuListener();\r\n\t\trightClickMenu = new JPopupMenu();\r\n\t\tJMenuItem menuItem = new JMenuItem(\"Delete Node\");\r\n\t menuItem.addActionListener(this);\r\n\t rightClickMenu.add(menuItem);\r\n\t \r\n\t this.addMouseListener(rightClickMenuListener);\r\n\t\tthis.addMouseListener(this);\r\n\t this.addMouseMotionListener(this);\r\n\t\tthis.addKeyListener(this);\r\n\t\tthis.setFocusable(true);\r\n\t\tthis.requestFocus();\r\n\t\t\r\n\t\t\r\n\t\t//start the game loop\r\n\t\tint delay = 16;//16ms = 60fps\r\n\t\tlastTime = System.nanoTime();\r\n\t\twhile(GameVars.isRunning)\r\n\t\t{\r\n\t\t\t//update fps once per second\r\n\t\t\t//http://stackoverflow.com/a/20769932 for fps counter\r\n\t\t\tif(System.nanoTime()-lastTime > 1000000000)\r\n\t\t\t{\r\n\t\t\t\tfps = (int)(fpsCounter*1000000000./(System.nanoTime() - lastTime));\r\n\t\t\t\tlastTime = System.nanoTime();\r\n\t\t\t\tfpsCounter = 0;\r\n\t\t\t\t//delay = (int)(1000./fps - 1.);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//delay simulation to set fps\r\n\t\t\ttry {\r\n\t\t\t\tThread.sleep(delay);\r\n\t\t\t} catch (InterruptedException e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t//update motion and interactions\r\n\t\t\tupdateMotion();\r\n\t\t\tcheckForCollisions();\r\n\t\t\t//aSquare.checkForInteractions();\r\n\t\t\t\t\r\n\t\t\tfor(Person p:people)\r\n\t\t\t\tp.updatePhysics();\r\n\t\t\t\r\n\t\t\t//redraw image each frame\r\n\t\t\tthis.repaint();\r\n\t\t}\r\n\t}", "public Builder autostart() {\n this.autostart = true;\n return this;\n }", "public void start();", "public void start();", "public void start();", "public void start();", "public void start();", "public void start();", "public void start();", "public void start();", "public void start();", "public void start();", "public void start();", "public void start();", "protected abstract void initTimeline();" ]
[ "0.6713311", "0.6416886", "0.63242686", "0.6003997", "0.5967144", "0.5872118", "0.58718956", "0.5863063", "0.58628964", "0.58309925", "0.58243805", "0.57841235", "0.57671326", "0.575263", "0.5706128", "0.5702656", "0.56742084", "0.56670594", "0.56528467", "0.56528467", "0.56511253", "0.564982", "0.56452674", "0.5637306", "0.56249195", "0.5610614", "0.5610255", "0.56093365", "0.5607401", "0.56042916", "0.5604025", "0.56035584", "0.55902165", "0.5588889", "0.557103", "0.55670893", "0.5562346", "0.5558841", "0.55569106", "0.55555266", "0.55440104", "0.5542947", "0.55402523", "0.5536967", "0.55347836", "0.55303276", "0.5527653", "0.5522854", "0.55179614", "0.55176675", "0.55170625", "0.55143315", "0.5514164", "0.55081284", "0.5494555", "0.54760605", "0.5470834", "0.5470834", "0.5467846", "0.5458778", "0.5457812", "0.545625", "0.5444492", "0.5444129", "0.54419756", "0.54409957", "0.54399675", "0.5439544", "0.54259604", "0.54212624", "0.54133004", "0.5407678", "0.54057425", "0.54024583", "0.54024583", "0.5401805", "0.54002553", "0.53972226", "0.5392747", "0.5386148", "0.53752786", "0.5368263", "0.5366112", "0.53601724", "0.53534156", "0.5351588", "0.5350995", "0.535014", "0.535014", "0.535014", "0.535014", "0.535014", "0.535014", "0.535014", "0.535014", "0.535014", "0.535014", "0.535014", "0.535014", "0.5347879" ]
0.69854105
0
Creates a new window to display root. CalendarDisplay will block until the new window is closed.
private void displayPopUp(Parent root) { Scene scene = new Scene(root, 300, 200); Stage stage = new Stage(); stage.initModality(Modality.APPLICATION_MODAL); stage.setScene(scene); stage.showAndWait(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void createWindow();", "private static void createWindow(){\n try{\n\n displayMode = new DisplayMode(1600 ,900);\n Display.setDisplayMode(displayMode);\n\n /*\n Display.setDisplayMode(getDisplayMode(1920 ,1080,false));\n if(displayMode.isFullscreenCapable()){\n Display.setFullscreen(true);\n }else{\n Display.setFullscreen(false);\n }\n */\n Display.setTitle(\"CubeKraft\");\n Display.create();\n }catch (Exception e){\n for(StackTraceElement s: e.getStackTrace()){\n System.out.println(s.toString());\n }\n }\n }", "public void createWindow(int x, int y, int width, int height, int bgColor, String title, String displayText) {\r\n\t\tWindow winnie = new Window(x, y, width, height, bgColor, title);\r\n\t\twinnie.add(displayText);\r\n\t\twindows.add(winnie);\r\n\t}", "private void createWindow() throws Exception {\r\n Display.setFullscreen(false);\r\n Display.setDisplayMode(new DisplayMode(WIDTH, HEIGHT));\r\n Display.setTitle(\"Program 2\");\r\n Display.create();\r\n }", "NativeWindow createWindow(CreationParams p);", "public void newWindow() {\n\t\tJMenuTest frame1 = new JMenuTest();\n\t\tframe1.setBounds(100, 100, 400, 400);\n\t\tframe1.setVisible(true);\n\t}", "public void createNewWindow(String winType) {\n if (!SwingUtilities.isEventDispatchThread()) {\n throw new RuntimeException(\"createNewWindow: called on non-event thread\");\n }\n\n final Parameters params = (Parameters)parameters.clone();\n if (!windowName.equals(\"\")) params.setWindowName(windowName);\n if (!winType.equals(\"\")) params.setWindowName(winType);\n\n manager.showDisplayUI(params);\n }", "public void createPopupWindow() {\r\n \t//\r\n }", "public void createWindow(int x, int y, int width, int height, int bgColor, String title, int n) {\r\n\t\tWindow winnie = new Window(x, y, width, height, bgColor, title);\r\n\t\twinnie.type = n;\r\n\t\twindows.add(winnie);\r\n\t}", "void buildWindow()\n { main.gui.gralMng.selectPanel(\"primaryWindow\");\n main.gui.gralMng.setPosition(-30, 0, -47, 0, 'r'); //right buttom, about half less display width and hight.\n int windProps = GralWindow.windConcurrently;\n GralWindow window = main.gui.gralMng.createWindow(\"windStatus\", \"Status - The.file.Commander\", windProps);\n windStatus = window; \n main.gui.gralMng.setPosition(3.5f, GralPos.size -3, 1, GralPos.size +5, 'd');\n widgCopy = main.gui.gralMng.addButton(\"sCopy\", main.copyCmd.actionConfirmCopy, \"copy\");\n widgEsc = main.gui.gralMng.addButton(\"dirBytes\", actionButton, \"esc\");\n }", "@Listen(\"onClick=#createEntryButton\")\n public void createEntryButtonOnClick(){\n Window window = (Window) Executions.createComponents(\"entry.zul\", phonePageWindow, new HashMap());\n window.doModal();\n }", "@Override\n\tpublic Window createWindow() {\n\t\tLightVisualThemeWindow lightVisualThemeWindow = new LightVisualThemeWindow();\n\t\treturn lightVisualThemeWindow;\n\t}", "public void openWindow()\r\n {\r\n myWindow = new TraderWindow(this);\r\n while(!mailbox.isEmpty())\r\n {\r\n myWindow.showMessage( mailbox.remove() );\r\n }\r\n }", "public void open() {\n popupWindow = new Window(getTypeCaption());\n popupWindow.addStyleName(\"e-export-form-window\");\n popupWindow.addStyleName(\"opaque\");\n VerticalLayout layout = (VerticalLayout) popupWindow.getContent();\n layout.setMargin(true);\n layout.setSpacing(true);\n layout.setSizeUndefined();\n popupWindow.setSizeUndefined();\n popupWindow.setModal(false);\n popupWindow.setClosable(true);\n\n popupWindow.addComponent(this);\n getMainApplication().getMainWindow().addWindow(popupWindow);\n\n onDisplay();\n }", "private static void createAndShowGUI() {\n\t\tJFrame window = MainWindow.newInstance();\n\t\t\n //Display the window.\n window.pack();\n window.setVisible(true);\n \n }", "private static void createAndShowGUI() {\n JFrame frame = new JFrame(\"Firma digital\");\r\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n frame.setLocationRelativeTo(null);\r\n\r\n //Create and set up the content pane.\r\n final FirmaDigital newContentPane = new FirmaDigital(frame);\r\n newContentPane.setOpaque(true); //content panes must be opaque\r\n frame.setContentPane(newContentPane);\r\n\r\n //Make sure the focus goes to the right component\r\n //whenever the frame is initially given the focus.\r\n frame.addWindowListener(new WindowAdapter() {\r\n public void windowActivated(WindowEvent e) {\r\n newContentPane.resetFocus();\r\n }\r\n });\r\n\r\n //Display the window.\r\n frame.pack();\r\n frame.setVisible(true);\r\n }", "private void createContents() {\r\n\t\tshell = new Shell(getParent(), SWT.TITLE);\r\n\r\n\t\tgetParent().setEnabled(false);\r\n\r\n\t\tshell.addShellListener(new ShellAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void shellClosed(ShellEvent e) {\r\n\t\t\t\tgetParent().setEnabled(true);\r\n\t\t\t}\r\n\t\t});\r\n\t\tshell.setImage(SWTResourceManager.getImage(LoginInfo.class, \"/javax/swing/plaf/metal/icons/ocean/warning.png\"));\r\n\r\n\t\tsetMidden(397, 197);\r\n\r\n\t\tshell.setText(this.windows_name);\r\n\t\tshell.setLayout(null);\r\n\r\n\t\tLabel label = new Label(shell, SWT.NONE);\r\n\t\tlabel.setFont(SWTResourceManager.getFont(\"Microsoft YaHei UI\", 11, SWT.NORMAL));\r\n\t\tlabel.setBounds(79, 45, 226, 30);\r\n\t\tlabel.setAlignment(SWT.CENTER);\r\n\t\tlabel.setText(this.label_show);\r\n\r\n\t\tButton button = new Button(shell, SWT.NONE);\r\n\t\tbutton.setBounds(150, 107, 86, 30);\r\n\t\tbutton.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\tshell.close();\r\n\t\t\t}\r\n\t\t});\r\n\t\tbutton.setText(\"确定\");\r\n\r\n\t}", "public void showWindow() {\n Stage stage = new Stage();\n stage.setScene(new Scene(this.root));\n stage.setAlwaysOnTop(true);\n//\t\tstage.initStyle(StageStyle.UTILITY);\n stage.setOnCloseRequest((e) -> onCancelButtonClick());\n LOGGER.info(\"Show HydraulicSimulationResultWindow.\");\n\n stage.show();\n stage.setTitle(\"Result of execution\");\n Platform.runLater(() -> {\n this.window.setMinWidth(this.root.getWidth());\n this.window.setMinHeight(this.root.getHeight());\n });\n this.window = stage;\n }", "private void createDisplay()\n {\n // Creates frame based off of the parameters passed in Display constructor\n frame = new JFrame(title); \n frame.setSize(width, height);\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n frame.setResizable(false); \n frame.setLocationRelativeTo(null);\n frame.setVisible(true);\n // Creates the canvas that is drawn on\n canvas = new Canvas();\n canvas.setPreferredSize(new Dimension(width,height));\n canvas.setMaximumSize(new Dimension(width,height));\n canvas.setMinimumSize(new Dimension(width,height));\n canvas.setFocusable(false);\n //add the canvas to the window\n frame.add(canvas);\n //pack the window (kinda like sealing it off)\n frame.pack();\n }", "@Override\r\n\tprotected final void createAppWindows() {\r\n \t//Instantiate only DD-specific windows. SFDC-scope windows (such as mainWindow) are static\r\n \t// objects in the EISTestBase class\r\n \tmyDocumentsPopUp = createWindow(\"WINDOW_MY_DOCUMENTS_POPUP_PROPERTIES_FILE\");\r\n }", "public void launchNormalWindow() {\n\t\t\n\t\ttry {\n\t\t\tdbRoot = new DBController(this);\n\t\t\tScene scene = new Scene(dbRoot.getRootView(), 640, 480);\n\t\t\tmainStage.setScene(scene);\n\t\t\t\n\t\t} catch (IOException e) {\n\t\t\tsendConnectionError(e.toString(), true);\n\t\t}\n\t}", "public static void createAndShowStartWindow() {\n\n\t\t// Create and set up the window.\n\n\t\tstartMenu.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\n\t\t// panel will hold the buttons and text\n\t\tJPanel panel = new JPanel() {\n\n\t\t\tprivate static final long serialVersionUID = 1L;\n\n\t\t\t// Fills the panel with a red/black gradient\n\t\t\tprotected void paintComponent(Graphics grphcs) {\n\t\t\t\tGraphics2D g2d = (Graphics2D) grphcs;\n\t\t\t\tg2d.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);\n\n\t\t\t\tColor color1 = new Color(119, 29, 29);\n\t\t\t\tColor color2 = Color.BLACK;\n\t\t\t\tGradientPaint gp = new GradientPaint(0, 0, color1, 0, getHeight() - 100, color2);\n\t\t\t\tg2d.setPaint(gp);\n\t\t\t\tg2d.fillRect(0, 0, getWidth(), getHeight());\n\n\t\t\t\tsuper.paintComponent(grphcs);\n\t\t\t}\n\t\t};\n\n\t\tpanel.setOpaque(false);\n\n\t\tpanel.setLayout(new BoxLayout(panel, BoxLayout.Y_AXIS));\n\n\t Font customFont = null;\n\t \n\n\t\ttry {\n\t\t customFont = Font.createFont(Font.TRUETYPE_FONT, ClassLoader.getSystemClassLoader().getResourceAsStream(\"data/AlegreyaSC-Medium.ttf\")).deriveFont(32f);\n\n\t\t GraphicsEnvironment ge = GraphicsEnvironment.getLocalGraphicsEnvironment();\n\t\t ge.registerFont(Font.createFont(Font.TRUETYPE_FONT, ClassLoader.getSystemClassLoader().getResourceAsStream(\"data/AlegreyaSC-Medium.ttf\")));\n\t\t\n\n\t\t} catch (IOException|FontFormatException e) {\n\t\t //Handle exception\n\t\t}\n\t\t\n\n\t\t\n\t\t// Some info text at the top of the window\n\t\tJLabel welcome = new JLabel(\"<html><center><font color='white'> Welcome to <br> Ultimate Checkers! </font></html>\",\n\t\t\t\tSwingConstants.CENTER);\n\t\twelcome.setFont(customFont);\n\t\n\n\t\twelcome.setPreferredSize(new Dimension(200, 25));\n\t\twelcome.setAlignmentX(Component.CENTER_ALIGNMENT);\n\n\n\t\t// \"Rigid Area\" is used to align everything\n\t\tpanel.add(Box.createRigidArea(new Dimension(0, 40)));\n\t\tpanel.add(welcome);\n\t\tpanel.add(Box.createRigidArea(new Dimension(0, 50)));\n\t\t//panel.add(choose);\n\t\tpanel.add(Box.createRigidArea(new Dimension(0, 20)));\n\n\t\t// The start Window will have four buttons\n\t\t// Button1 will open a new window with a standard checkers board\n\t\tJButton button1 = new JButton(\"New Game (Standard Setup)\");\n\n\t\tbutton1.addActionListener(new ActionListener() {\n\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tjavax.swing.SwingUtilities.invokeLater(new Runnable() {\n\t\t\t\t\tpublic void run() {\n\n\t\t\t\t\t\tNewGameSettings.createAndShowGameSettings();\n\t\t\t\t\t\tstartMenu.dispose();\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t}\n\n\t\t});\n\t\t// Setting up button1\n\t\tbutton1.setAlignmentX(Component.CENTER_ALIGNMENT);\n\t\tbutton1.setMaximumSize(new Dimension(250, 40));\n\n\t\t// Button2 will open a new window where a custom setup can be created\n\t\tJButton button2 = new JButton(\"New Game (Custom Setup)\");\n\t\tbutton2.addActionListener(new ActionListener() {\n\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tjavax.swing.SwingUtilities.invokeLater(new Runnable() {\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t// Begin creating custom game board setup for checkers\n\t\t\t\t\t\tNewCustomWindow.createAndShowCustomGame();\n\t\t\t\t\t\t// Close the start menu window and remove it from memory\n\t\t\t\t\t\tstartMenu.dispose();\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t}\n\n\t\t});\n\n\t\t// Setting up button2\n\t\tbutton2.setAlignmentX(Component.CENTER_ALIGNMENT);\n\t\tbutton2.setMaximumSize(new Dimension(250, 40));\n\n\t\t// Button3 is not implemented yet, it will be used to load a saved game\n\t\tJButton button3 = new JButton(\"Load A Saved Game\");\n\t\tbutton3.setAlignmentX(Component.CENTER_ALIGNMENT);\n\t\tbutton3.setMaximumSize(new Dimension(250, 40));\n\t\tbutton3.addActionListener(new ActionListener() {\n\n\t\t\tfinal JFrame popupWrongFormat = new PopupFrame(\n\t\t\t\t\t\"Wrong Format!\",\n\t\t\t\t\t\"<html><center>\"\n\t\t\t\t\t\t\t+ \"The save file is in the wrong format! <br><br>\"\n\t\t\t\t\t\t\t+ \"Please make sure the load file is in csv format with an 8x8 table, \"\n\t\t\t\t\t\t\t+ \"followed by whose turn it is, \"\n\t\t\t\t\t\t\t+ \"the white player type and the black player type.\"\n\t\t\t\t\t\t\t+ \"</center></html>\");\n\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tjavax.swing.SwingUtilities.invokeLater(new Runnable() {\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t// This will create the file chooser\n\t\t\t\t\t\tJFileChooser chooser = new JFileChooser();\n\n\t\t\t\t\t\tFileNameExtensionFilter filter = new FileNameExtensionFilter(\"CSV Files\", \"csv\");\n\t\t\t\t\t\tchooser.setFileFilter(filter);\n\n\t\t\t\t\t\tint returnVal = chooser.showOpenDialog(startMenu);\n\t\t\t\t\t\tif (returnVal == JFileChooser.APPROVE_OPTION) {\n\t\t\t\t\t\t\tFile file = chooser.getSelectedFile();\n\n\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\tcheckAndPlay(file);\n\t\t\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t\t\tpopupWrongFormat.setVisible(true);\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t// Do nothing. Load cancelled by user.\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t});\n\t\t\t}\n\n\t\t});\n\n\t\t// Button4 closes the game\n\t\tJButton button4 = new JButton(\"Exit Ultimate Checkers\");\n\t\tbutton4.addActionListener(new ActionListener() {\n\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tjavax.swing.SwingUtilities.invokeLater(new Runnable() {\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t// Close the start menu window and remove it from memory\n\t\t\t\t\t\tstartMenu.dispose();\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t}\n\n\t\t});\n\n\t\t// Setting up button4\n\t\tbutton4.setAlignmentX(Component.CENTER_ALIGNMENT);\n\t\tbutton4.setMaximumSize(new Dimension(250, 40));\n\n\t\t// The four buttons are added to the panel and aligned\n\t\tpanel.add(button1);\n\t\tpanel.add(Box.createRigidArea(new Dimension(0, 20)));\n\t\tpanel.add(button2);\n\t\tpanel.add(Box.createRigidArea(new Dimension(0, 20)));\n\t\tpanel.add(button3);\n\t\tpanel.add(Box.createRigidArea(new Dimension(0, 80)));\n\t\tpanel.add(button4);\n\n\t\t// Setting up the start Menu\n\t\tstartMenu.setSize(400, 600);\n\t\tstartMenu.setResizable(false);\n\n\t\t// Centers the window with respect to the user's screen resolution\n\t\tDimension dimension = Toolkit.getDefaultToolkit().getScreenSize();\n\t\tint x = (int) ((dimension.getWidth() - startMenu.getWidth()) / 2);\n\t\tint y = (int) ((dimension.getHeight() - startMenu.getHeight()) / 2);\n\t\tstartMenu.setLocation(x, y);\n\n\t\tstartMenu.add(panel, BorderLayout.CENTER);\n\t\tstartMenu.setVisible(true);\n\n\t}", "public void show() {\n Container parent = this.parent;\n if (parent != null && parent.peer == null) {\n parent.addNotify();\n }\n if (peer == null) {\n addNotify();\n }\n validate();\n if (visible) {\n toFront();\n } else {\n // 6182409: Window.pack does not work correctly.\n beforeFirstShow = false;\n super.show();\n }\n // If first time shown, generate WindowOpened event\n if ((state & OPENED) == 0) {\n //postWindowEvent(WindowEvent.WINDOW_OPENED);\n WindowEvent e = new WindowEvent(this, WindowEvent.WINDOW_OPENED);\n Toolkit.getEventQueue().postEvent(e);\n state |= OPENED;\n }\n }", "private JFrame buildWindow() {\n frame = WindowFactory.mainFrame()\n .title(\"VISNode\")\n .menu(VISNode.get().getActions().buildMenuBar())\n .size(1024, 768)\n .maximized()\n .interceptClose(() -> {\n new UserPreferencesPersistor().persist(model.getUserPreferences());\n int result = JOptionPane.showConfirmDialog(panel, Messages.get().singleMessage(\"app.closing\"), null, JOptionPane.YES_NO_OPTION);\n return result == JOptionPane.YES_OPTION;\n })\n .create((container) -> {\n panel = new MainPanel(model);\n container.add(panel);\n });\n return frame;\n }", "protected JRootPane createRootPane()\r\n {\r\n //----------------------------------------------------------\r\n // Create a new JRootPane. We're going to modify it a bit\r\n // and then return it.\r\n //---------------------------------------------------------- \r\n JRootPane rootPane = new JRootPane();\r\n\r\n //----------------------------------------------------------\r\n // Retrieve the KeyStroke for the escape key.\r\n //---------------------------------------------------------- \r\n KeyStroke keyStroke = KeyStroke.getKeyStroke(\"ESCAPE\");\r\n\r\n //----------------------------------------------------------\r\n // Create an action that disposes of this dialog when \r\n // invoked.\r\n //---------------------------------------------------------- \r\n Action al = new AbstractAction()\r\n {\r\n public void actionPerformed(ActionEvent ae)\r\n {\r\n AboutDialog.this.dispose();\r\n }\r\n };\r\n\r\n //----------------------------------------------------------\r\n // Retrieve the InputMap for the JRootPane.\r\n //---------------------------------------------------------- \r\n InputMap im = rootPane.getInputMap(JComponent.WHEN_IN_FOCUSED_WINDOW);\r\n\r\n //----------------------------------------------------------\r\n // Tie the escape KeyStroke to the action string 'ESCAPE'.\r\n //---------------------------------------------------------- \r\n im.put(keyStroke, \"ESCAPE\");\r\n\r\n //----------------------------------------------------------\r\n // In the action map for the root pane, tie the 'ESCAPE' \r\n // action string to the Action we defined above.\r\n //---------------------------------------------------------- \r\n rootPane.getActionMap().put(\"ESCAPE\", al);\r\n\r\n //----------------------------------------------------------\r\n // Return the JRootPane.\r\n //---------------------------------------------------------- \r\n return rootPane;\r\n }", "public void createWindow() throws IOException {\n\t\tFXMLLoader loader = new FXMLLoader(getClass().getResource(\"adminEditorWindow.fxml\"));\n AnchorPane root = (AnchorPane) loader.load();\n Scene scene = new Scene(root);\n Stage stage = new Stage();\n stage.setResizable(false);\n stage.setScene(scene);\n stage.setTitle(\"Administrative Password Editor\");\n stage.getIcons().add(new Image(\"resources/usm seal icon.png\"));\n stage.show();\n\t}", "private void buildAndShowWindow() {\n SwingUtilities.invokeLater(() -> {\n buildWindow().setVisible(true);\n });\n }", "public static void showNew() {\n\t\tif (DIALOG == null) {\n\t\t\tDIALOG = new NewDialog();\n\t\t}\n\t\tDIALOG.setVisible(true);\n\t\tDIALOG.toFront();\n\t}", "public void selectRootWindow() {\n\t\tList<String> listOfWindows = new ArrayList<>(SharedSD.getDriver().getWindowHandles());\n\t\tSharedSD.getDriver().switchTo().window(listOfWindows.get(0));\n\t}", "private static void createWindow(final Serializable object) {\n\t\tDIALOG.setVisible(false);\n\t\tFrameFactory.createFrame(object);\n\t}", "public void initAndShowStage(Parent root) {\n Scene scene = new Scene(root);\n Stage stage = new Stage();\n stage.initModality(Modality.APPLICATION_MODAL);\n stage.setScene(scene);\n stage.setTitle(\"Ayuda para la Gestion de Usuarios\");\n stage.setResizable(false);\n stage.setMinWidth(800);\n stage.setMinHeight(600);\n stage.setOnShowing(this::handleWindowShowing);\n stage.show();\n }", "@Override\n public void show() {\n displayWindow.addWindowFocusListener(this);\n displayWindow.setVisible(true);\n }", "public void makeWindow(Container pane)\r\n\t{\r\n\t\tboard.display(pane, fieldArray);\r\n\t}", "public ClockWindow() {\r\n\t\tsuper(\"Clock Window\");\r\n\t\ttimeFrame = new CurrentTimePanel();\r\n\t\tSystem.out.println(timeFrame.isVisible());\r\n\t\tmenubar = new ClockMenuBar(this, timeFrame);\r\n\t\tsetSize(500, 500);\r\n\t\t\r\n\t\t\r\n\t\tthis.add(timeFrame);\r\n\t\tthis.setMenuBar(menubar);\r\n\t\tthis.setVisible(true);\r\n\t\taddWindowListener(new WindowAdapter() {\r\n\t\t\tpublic void windowClosing(WindowEvent evt) {\r\n\t\t\t\tdispose();\r\n\t\t\t\tSystem.exit(0);\r\n\t\t\t}\r\n\t\t});\r\n\t}", "private void openClientManagementWindow() {\r\n\t\tnew JFrameClient();\r\n\t}", "public static void ShowCreateSchedule(){\n ToggleVisibility(CreateSchedule.window);\n }", "private void buildWindow(){\r\n\t\tthis.setSize(new Dimension(600, 400));\r\n\t\tFunctions.setDebug(true);\r\n\t\tbackendConnector = new BackendConnector(this);\r\n\t\tguiManager = new GUIManager(this);\r\n\t\tmainCanvas = new MainCanvas(this);\r\n\t\tadd(mainCanvas);\r\n\t}", "public void showWindow() {\n\t\tupdate();\n\t\tsetVisible(true);\n\t}", "NativeWindow attachWindow(long nativeWindowId);", "public void mainWindow(MainController group)\n {\n desktop.shell(group, _this());\n }", "protected void createContents() {\r\n\t\tshell = new Shell();\r\n\t\tshell.setSize(450, 300);\r\n\t\tshell.setText(\"SWT Application\");\r\n\r\n\t}", "public void createUI() {\r\n\t\ttry {\r\n\t\t\tJPanel centerPanel = this.createCenterPane();\r\n\t\t\tJPanel westPanel = this.createWestPanel();\r\n\t\t\tm_XONContentPane.add(westPanel, BorderLayout.WEST);\r\n\t\t\tm_XONContentPane.add(centerPanel, BorderLayout.CENTER);\r\n\t\t\tm_XONContentPane.revalidate();\r\n\t\t} catch (Exception ex) {\r\n\t\t\tRGPTLogger.logToFile(\"Exception at createUI \", ex);\r\n\t\t}\r\n\t}", "public interface WindowFactory {\r\n /**\r\n * Creates and returns NativeWindow with desired\r\n * creation params\r\n *\r\n * @param p - initial window properties\r\n * @return created window\r\n */\r\n NativeWindow createWindow(CreationParams p);\r\n /**\r\n * Create NativeWindow instance connected to existing native resource\r\n * @param nativeWindowId - id of existing window\r\n * @return created NativeWindow instance\r\n */\r\n NativeWindow attachWindow(long nativeWindowId);\r\n /**\r\n * Returns NativeWindow instance if created by this instance of\r\n * WindowFactory, otherwise null\r\n *\r\n * @param id - HWND on Windows xwindow on X\r\n * @return NativeWindow or null if unknown\r\n */\r\n NativeWindow getWindowById(long id);\r\n /**\r\n * Returns NativeWindow instance of the top-level window\r\n * that contains a specified point and was\r\n * created by this instance of WindowFactory\r\n * @param p - Point to check\r\n * @return NativeWindow or null if the point is\r\n * not within a window created by this WindowFactory\r\n */\r\n NativeWindow getWindowFromPoint(Point p);\r\n\r\n /**\r\n * Returns whether native system supports the state for windows.\r\n * This method tells whether the UI concept of, say, maximization or iconification is supported.\r\n * It will always return false for \"compound\" states like Frame.ICONIFIED|Frame.MAXIMIZED_VERT.\r\n * In other words, the rule of thumb is that only queries with a single frame state\r\n * constant as an argument are meaningful.\r\n *\r\n * @param state - one of named frame state constants.\r\n * @return true is this frame state is supported by this Toolkit implementation, false otherwise.\r\n */\r\n boolean isWindowStateSupported(int state);\r\n\r\n /**\r\n * @see org.apache.harmony.awt.ComponentInternals\r\n */\r\n void setCaretPosition(int x, int y);\r\n\r\n /**\r\n * Request size of arbitrary native window\r\n * @param id - window ID\r\n * @return window size\r\n */\r\n Dimension getWindowSizeById(long id);\r\n}", "private void createWindow() {\r\n\t\t// Create the picture frame and initializes it.\r\n\t\tthis.createAndInitPictureFrame();\r\n\r\n\t\t// Set up the menu bar.\r\n\t\tthis.setUpMenuBar();\r\n\r\n\t\t// Create the information panel.\r\n\t\t//this.createInfoPanel();\r\n\r\n\t\t// Create the scrollpane for the picture.\r\n\t\tthis.createAndInitScrollingImage();\r\n\r\n\t\t// Show the picture in the frame at the size it needs to be.\r\n\t\tthis.pictureFrame.pack();\r\n\t\tthis.pictureFrame.setVisible(true);\r\n\t\tpictureFrame.setSize(728,560);\r\n\t}", "private void openManagementWindow() {\n\n\t\tWindowManager.getInstance().openManagementWindow();\n\t\t// Close the current window\n\t\tthis.close();\n\t}", "public void run() {\n\t\t\t\t\t\tNewCustomWindow.createAndShowCustomGame();\n\t\t\t\t\t\t// Close the start menu window and remove it from memory\n\t\t\t\t\t\tstartMenu.dispose();\n\t\t\t\t\t}", "public void startWindow() {\r\n \r\n \tfirstBorderWindow = new BorderPane();\r\n \tScene scene = new Scene(firstBorderWindow,600,600);\r\n\t\tstage.setScene(scene);\r\n\t\t\r\n\t\t//MenuBar\r\n\t\tMenuBar mb = new MenuBar();\r\n\t\tMenu topMenu = new Menu(\"Impostazioni\");\r\n\t\t\r\n\t\tMenuItem regole = new MenuItem(\"Regole\");\r\n\t\tMenuItem esci = new MenuItem(\"Esci\");\r\n\t\ttopMenu.getItems().addAll(esci, regole);\r\n\t\tmb.getMenus().add(topMenu);\r\n\t\t\r\n\t\tEventHandler<ActionEvent> MEHandler = new EventHandler<ActionEvent>() {\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void handle(ActionEvent event) {\r\n\t\t\t\tString nome = ((MenuItem)event.getTarget()).getText();\r\n\t\t\t\tif (nome.equals(\"Esci\")) Platform.exit();\r\n\t\t\t}\r\n\t\t};\r\n\t\t\r\n\t\tesci.setOnAction(MEHandler);\r\n\t\t\r\n\t\tfirstBorderWindow.setTop(mb);\r\n\t\t// Show the scene\r\n\t\tstage.show();\r\n }", "private static void createAndShowGUI() {\n JFrame frame = new JFrame(\"FEEx v. \"+VERSION);\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n \n //Create and set up the content pane.\n Main p = new Main();\n p.addComponentToPane(frame.getContentPane());\n\n frame.addWindowListener(new java.awt.event.WindowAdapter() {\n @Override\n public void windowClosing(java.awt.event.WindowEvent windowEvent) {\n \tstopPolling();\n \tstopMPP();\n p.port.close();\n Utils.storeSizeAndPosition(frame);\n }\n });\n \n //Display the window.\n frame.pack();\n Utils.restoreSizeAndPosition(frame);\n frame.setVisible(true);\n }", "public NewDialog() {\n\t\t\t// super((java.awt.Frame)null, \"New Document\");\n\t\t\tsuper(\"JFLAP 7.0\");\n\t\t\tgetContentPane().setLayout(new GridLayout(0, 1));\n\t\t\tinitMenu();\n\t\t\tinitComponents();\n\t\t\tsetResizable(false);\n\t\t\tpack();\n\t\t\tthis.setLocation(50, 50);\n\n\t\t\taddWindowListener(new WindowAdapter() {\n\t\t\t\t@Override\n\t\t\t\tpublic void windowClosing(final WindowEvent event) {\n\t\t\t\t\tif (Universe.numberOfFrames() > 0) {\n\t\t\t\t\t\tNewDialog.this.setVisible(false);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tQuitAction.beginQuit();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t});\n\t\t}", "public void displayTestPane() {\n mainWindow.setContent(new TestPane());\n console = null;\n }", "private void createSchedulePanel()\n\t{\n\t\t//newWeek=new Week(selectedId);\n\t\t//contentPane.add(newWeek,BorderLayout.SOUTH);\n\t\t//System.out.println(\"first time load:\"+selectedId);\n\t\tschedule=new Schedule(selectedId, isSprinklerSelected);\n\t\tschedulePane=new JPanel();\n\t\tschedulePane.setLayout(new FlowLayout(FlowLayout.CENTER));\n\t\tschedulePane.add(schedule);\n\t\tcontentPane.add(schedulePane,BorderLayout.CENTER);//add to content pane\n\t}", "private void createFrame() {\n\t\tEventQueue.invokeLater(new Runnable() {\n\t\t\t@Override\n\t\t\tpublic void run() {\n\t\t\t\tfinal JFrame frame = new JFrame(\"Create Event\");\n\t\t\t\tframe.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);\n\t\t\t\ttry {\n\t\t\t\t\tUIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t\tfinal JTextArea textArea = new JTextArea(15, 50);\n\t\t\t\ttextArea.setText(\"Untitled Event\");\n\t\t\t\ttextArea.setWrapStyleWord(true);\n\t\t\t\ttextArea.setEditable(true);\n\t\t\t\ttextArea.setFont(Font.getFont(Font.SANS_SERIF));\n\n\t\t\t\tJPanel panel = new JPanel();\n\t\t\t\tpanel.setLayout(new GridLayout(1, 4));\n\t\t\t\tfinal JTextField d = new JTextField(\"\" + year + \"/\" + month + \"/\" + day);\n\t\t\t\tfinal JTextField startTime = new JTextField(\"1:00am\");\n\t\t\t\tJTextField t = new JTextField(\"to\");\n\t\t\t\tt.setEditable(false);\n\t\t\t\tfinal JTextField endTime = new JTextField(\"2:00am\");\n\t\t\t\tJButton save = new JButton(\"Save\");\n\t\t\t\tpanel.add(d);\n\t\t\t\tpanel.add(startTime);\n\t\t\t\tpanel.add(t);\n\t\t\t\tpanel.add(endTime);\n\t\t\t\tpanel.add(save);\n\n\t\t\t\tsave.addActionListener(new ActionListener() {\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\teventsData.addEvent(new Event(YYYYMMDD(d.getText().trim()), startTime.getText(),\n\t\t\t\t\t\t\t\t\tendTime.getText(), textArea.getText()));\n\t\t\t\t\t\t\tupdateEventsView(eventsRender);\n\t\t\t\t\t\t} catch (Exception ex) {\n\t\t\t\t\t\t\tif (ex instanceof IllegalArgumentException)\n\t\t\t\t\t\t\t\tpromptMsg(ex.getMessage(), \"Error\");\n\t\t\t\t\t\t\telse promptMsg(ex.getMessage(), \"Error\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\tframe.dispatchEvent(new WindowEvent(frame, WindowEvent.WINDOW_CLOSING));\n\t\t\t\t\t}\n\t\t\t\t});\n\n\t\t\t\tframe.setSize(500, 100);\n\t\t\t\tframe.setLayout(new GridLayout(2, 1));\n\t\t\t\tframe.add(textArea);\n\t\t\t\tframe.add(panel);\n\t\t\t\tframe.setLocationByPlatform(true);\n\t\t\t\tframe.setVisible(true);\n\t\t\t}\n\t\t});\n\t}", "public void showLifeCycleDialog() {\n\t\t\tlifeCycleDialogBox = new DialogBox(true);\n\t\t\tlifeCycleDialogBox.setGlassEnabled(true);\n\t\t\tlifeCycleDialogBox.setText(\"Seguimiento del Documento\");\n\n\t\t\t// Vertical Panel\n\t\t\tVerticalPanel vp = new VerticalPanel();\n\t\t\tvp.setSize(\"100%\", \"100%\");\n\t\t\tvp.add(lifeCycleCellTree);\n\t\t\tvp.add(new HTML(\"&nbsp;\"));\n\t\t\tvp.add(lifeCycleCloseButton);\n\n\t\t\t// Scroll Panel\n\t\t\tScrollPanel scrollPanel = new ScrollPanel();\n\t\t\tif (getUiParams().isMobile())\n\t\t\t\tscrollPanel.setSize(Window.getClientWidth() + \"px\", Window.getClientHeight() + \"px\");\n\t\t\telse\n\t\t\t\tscrollPanel.setSize(Window.getClientWidth() * .4 + \"px\", Window.getClientHeight() * .3 + \"px\");\n\t\t\tscrollPanel.setWidget(vp);\n\t\t\tlifeCycleDialogBox.setWidget(scrollPanel);\n\n\t\t\tDouble d = Window.getClientWidth() * .3;\n\t\t\tif (!getUiParams().isMobile()) \n\t\t\t\tlifeCycleDialogBox.setPopupPosition(d.intValue(), UiTemplate.NORTHSIZE * 3);\n\n\t\t\tlifeCycleDialogBox.show();\n\t\t}", "public void showModalWindow() {\n Stage dialog = new Stage();\n dialog.initOwner(stage);\n dialog.initModality(Modality.WINDOW_MODAL); \n dialog.showAndWait();\n }", "public Scene Window(){\n Area.setPrefHeight(177);\n Area.setPrefWidth(650);\n Area.setOpacity(0.5);\n Area.setEditable(false);\n Area.setText(\"\\n\\nThe application is used for PV(photovoltaics) sizing to power a RO(Reverse osmosis) desalination unit\" +\n \"\\nThe system depends on batteries to store energy.\" +\n \"\\n\\nTo use this application without problems, you must have the following information\\n\" +\n \"\\t*The location of the desalination unit;\\n\" +\n \"\\t*Amount of power required to operate the unit in kilowatts;\\n\" +\n \"\\t*Time of operating for RO;\\n\" +\n \"\\t*Detailed specification information of the pv modules;\\n\" +\n \"\\t*The number of people the Ro unit will provide water for,and the average water consumption for regular person\");\n\n boxPane.setPrefHeight(44);\n boxPane.setPrefWidth(650);\n\n //Go user map selection interface\n nextWindow.setPrefHeight(30);\n nextWindow.setPrefWidth(300);\n nextWindow.setMnemonicParsing(false);\n nextWindow.setText(\"NEXT\");\n\n\n //HBox.setMargin(nextWindow, new Insets(5,0,5,0));\n // boxPane.getChildren().addAll(nextWindow);\n boxPane.setAlignment(Pos.CENTER);\n\n //Load text area and button to the container\n rootPane.setCenter(Area);\n rootPane.setBottom(boxPane);\n\n scene = new Scene(rootPane,640,300);\n return scene;\n }", "protected void createContents() {\n\t\tMonitor primary = this.getDisplay().getPrimaryMonitor();\n\t\tRectangle bounds = primary.getBounds();\n\t\tRectangle rect = getBounds();\n\t\tint x = bounds.x + (bounds.width - rect.width) / 2;\n\t\tint y = bounds.y + (bounds.height - rect.height) / 2;\n\t\tsetLocation(x, y);\n\t}", "private static void createAndShowGUI() {\n //\n // Use the normal window decorations as defined by the look-and-feel\n // schema\n //\n JFrame.setDefaultLookAndFeelDecorated(true);\n //\n // Create the main application window\n //\n mainWindow = new MainWindow();\n //\n // Show the application window\n //\n mainWindow.pack();\n mainWindow.setVisible(true);\n }", "public native void createRenderWindow(final int width, final int height, final long handle);", "public void createWindow(int x, int y, int width, int height, int bgColor, String title) {\r\n\t\tcreateWindow(x, y, width, height, bgColor, false, title);\r\n\t}", "@FXML\n void openAddTimelineWindow() {\n\n// replaces Element list with Add Timeline window\n menuPane.setContent(addTimelineScene.getRoot());\n\n// removes unnecessary buttons, shows cancel button\n toggleMenuButtonVisibility(false);\n cancelTimelineButton.setVisible(true);\n\n window.setTitle(\"Timelines: Add Timeline\");\n }", "@Override\r\n\tprotected void pack() {\r\n\r\n\t\tRectangle displayarea = shell.getDisplay().getPrimaryMonitor().getBounds();\r\n\t\tRectangle windowarea = shell.getBounds();\r\n\t\tshell.setBounds((displayarea.width - windowarea.width) / 2,\r\n\t\t\t\t(displayarea.height - windowarea.height) / 2,\r\n\t\t\t\twindowarea.width, windowarea.height);\r\n\t}", "private static void createAndShowMainWindow() {\n //Create and set up the window.\n JFrame frame = new JFrame(\"HelloWorld - Swing\");\n frame.setSize(DEFAULT_WIDTH, DEFAULT_HEIGHT);\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\n //Add the \"Hello World\" label.\n JLabel label = new JLabel(\"Hello World!\");\n frame.getContentPane().setBackground(new Color(240, 240, 240));\n frame.getContentPane().add(label);\n\n //Display the window.\n frame.setVisible(true);\n }", "static public void make() {\n\t\tif (window != null)\n\t\t\treturn;\n\n\t\twindow = new JFrame();\n\t\twindow.setTitle(\"Finecraft\");\n\t\twindow.setMinimumSize(new Dimension(500, 300));\n\t\twindow.setSize(asInteger(WINDOW_WIDTH), asInteger(WINDOW_HEIGHT));\n\t\twindow.setResizable(asBoolean(WINDOW_RESIZE));\n\t\twindow.setLocationRelativeTo(null);\n\t\twindow.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t}", "private void configureWindow() {\n\tsetDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n background.setBackground(Color.BLACK);\n setSize(initialWindowWidth, initialWindowHeight);\n setVisible(true);\n }", "public void display() {\r\n try {\r\n if( mdiForm.getFrame(CoeusGuiConstants.SPONSORHIERARCHY_BASE_WINDOW) == null ){\r\n mdiForm.putFrame(CoeusGuiConstants.SPONSORHIERARCHY_BASE_WINDOW, maintainSponsorHierarchyBaseWindow);\r\n mdiForm.getDeskTopPane().add(maintainSponsorHierarchyBaseWindow);\r\n maintainSponsorHierarchyBaseWindow.setSelected(true);\r\n maintainSponsorHierarchyBaseWindow.setVisible(true);\r\n }\r\n }catch (java.beans.PropertyVetoException propertyVetoException) {\r\n propertyVetoException.printStackTrace();\r\n }\r\n }", "public void launchProcWindow() {\n\t\t\n\t\ttry {\n\t\t\tdbProcRoot = new ProcController(this);\n\t\t\tScene scene = new Scene(dbProcRoot.getRootView(), 640, 480);\n\t\t\tmainStage.setScene(scene);\n\t\t} catch(IOException e ) {\n\t\t\tsendConnectionError(e.toString(), true);\n\t\t}\n\t}", "private static void createAndShowGUI() {\n //Make sure we have nice window decorations.\n JFrame.setDefaultLookAndFeelDecorated(true);\n\n //Create and set up the window.\n JFrame frame = new JFrame(\"TreeExpandEventDemo2\");\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\n //Create and set up the content pane.\n JComponent newContentPane = new TreeExpandEventDemo2();\n newContentPane.setOpaque(true); //content panes must be opaque\n frame.setContentPane(newContentPane);\n\n //Display the window.\n frame.pack();\n frame.setVisible(true);\n }", "public static void createGui() {\r\n\t\tEventQueue.invokeLater( new Runnable() {\r\n\t\t\tpublic void run() {\r\n\t\t\t\ttry {\r\n\t\t\t\t\tGui window = new Gui();\r\n\t\t\t\t\twindow.frame.setVisible( true );\r\n\t\t\t\t\twindow.videoFrame.addKeyListener( window );\r\n\t\t\t\t} catch ( Exception e ) {\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} );\r\n\t}", "private void insertNewInternalFrame(JInternalFrame treeDisplay) {\n jInternalFrameTree = treeDisplay;\n jLayeredPane1.add(jInternalFrameTree, JLayeredPane.PALETTE_LAYER);\n jInternalFrameTree.setMaximizable(true);\n jInternalFrameTree.setDefaultCloseOperation(JInternalFrame.DISPOSE_ON_CLOSE);\n jInternalFrameTree.setIconifiable(true);\n jInternalFrameTree.setClosable(true);\n jInternalFrameTree.setVisible(true);\n jInternalFrameTree.addMouseListener(new MouseAdapter(){\n public void mouseClicked(MouseEvent event){\n doMouseClicked(event);\n }\n\n private void doMouseClicked(MouseEvent event) {\n if(event.getButton() == MouseEvent.BUTTON3 && event.getComponent().getParent().getParent() instanceof JSplitPane){\n jInternalFrameTree = ((JInternalFrame)event.getComponent());\n JPopupMenu jPopupMenu = new JPopupMenu();\n JMenuItem jMenuItem = new JMenuItem(\"Window Preview\");\n jPopupMenu.add(jMenuItem);\n jMenuItem.addActionListener(new ActionListener() {\n public void actionPerformed(ActionEvent e) {\n setNewWindowEnabled(false);\n }\n\n private void setNewWindowEnabled(boolean b) {\n JFrame frame = new JFrame();\n JMenuBar jMenuBar = new JMenuBar();\n JMenu jMenu = new JMenu(\"Restore size\");\n jMenu.addMouseListener(new MouseAdapter() {\n public void mouseClicked(MouseEvent event){\n jMenuSelected(event);\n }\n\n private void jMenuSelected(MouseEvent event) {\n if(event.getComponent() instanceof JMenu){\n Container container = event.getComponent().getParent().getParent().getParent();\n jInternalFrameTree = new JInternalFrame(((JFrame)event.getComponent().getParent().getParent().getParent().getParent()).getTitle());\n jInternalFrameTree.setToolTipText(\"teste\");\n //jInternalFrameTree.add(null);\n insertNewInternalFrame(jInternalFrameTree);\n }\n }\n });\n jMenuBar.add(jMenu);\n frame.setJMenuBar(jMenuBar);\n frame.setTitle(jInternalFrameTree.getTitle());\n frame.add(jInternalFrameTree.getContentPane());\n try {\n jInternalFrameTree.setClosed(true);\n } catch (PropertyVetoException ex) {\n Logger.getLogger(Tool.class.getName()).log(Level.SEVERE, null, ex);\n }\n //jInternalFrameTree.dispose();\n //jInternalFrameTree = null;\n frame.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);\n frame.setSize(800, 800);\n frame.setVisible(true);\n }\n });\n jPopupMenu.show(event.getComponent(), event.getX(), event.getY());\n }\n }\n });\n }", "@Override\n\tpublic void create() {\n\t\twithdrawFrame = new JFrame();\n\t\tthis.constructContent();\n\t\twithdrawFrame.setSize(800,500);\n\t\twithdrawFrame.show();\n\t\twithdrawFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\t\n\t}", "public void open() {\n\t\ttry {\n\t\t\tdisplay = Display.getDefault();\n\t\t\tcreateContents();\n\t\t\tcreateTray(display);\t//system tray\n\t\t\tshell.open();\n\t\t\tshell.layout();\n\t\t\twhile (!shell.isDisposed()) {\n\t\t\t\tthis.setAppEnd(true);\n\t\t\t\tif (!display.readAndDispatch()) {\n\t\t\t\t\tdisplay.sleep();\n\t\t\t\t}\n\t\t\t}\n\t\t\tterminarPWs(); //cerrar todos los trabajos de impresion que hay dando vueltas por ahi.\n\t\t}catch(Exception e){\n\t\t\te.printStackTrace();\n\t\t\tSystem.out.print(e.getMessage());\n\t\t}\n\t}", "private void initDialog() {\n Window subWindow = new Window(\"Sub-window\");\n \n FormLayout nameLayout = new FormLayout();\n TextField code = new TextField(\"Code\");\n code.setPlaceholder(\"Code\");\n \n TextField description = new TextField(\"Description\");\n description.setPlaceholder(\"Description\");\n \n Button confirm = new Button(\"Save\");\n confirm.addClickListener(listener -> insertRole(code.getValue(), description.getValue()));\n\n nameLayout.addComponent(code);\n nameLayout.addComponent(description);\n nameLayout.addComponent(confirm);\n \n subWindow.setContent(nameLayout);\n \n // Center it in the browser window\n subWindow.center();\n\n // Open it in the UI\n UI.getCurrent().addWindow(subWindow);\n\t}", "protected void createContents() {\n\t\tshell = new Shell();\n\t\tshell.setSize(450, 300);\n\t\tshell.setText(\"SWT Application\");\n\t\t\n\t\tButton btnNewButton = new Button(shell, SWT.NONE);\n\t\tbtnNewButton.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t}\n\t\t});\n\t\tbtnNewButton.setBounds(41, 226, 75, 25);\n\t\tbtnNewButton.setText(\"Limpiar\");\n\t\t\n\t\tButton btnGuardar = new Button(shell, SWT.NONE);\n\t\tbtnGuardar.setBounds(257, 226, 75, 25);\n\t\tbtnGuardar.setText(\"Guardar\");\n\t\t\n\t\ttext = new Text(shell, SWT.BORDER);\n\t\ttext.setBounds(25, 181, 130, 21);\n\t\t\n\t\ttext_1 = new Text(shell, SWT.BORDER);\n\t\ttext_1.setBounds(230, 181, 130, 21);\n\t\t\n\t\ttext_2 = new Text(shell, SWT.BORDER);\n\t\ttext_2.setBounds(25, 134, 130, 21);\n\t\t\n\t\ttext_3 = new Text(shell, SWT.BORDER);\n\t\ttext_3.setBounds(25, 86, 130, 21);\n\t\t\n\t\ttext_4 = new Text(shell, SWT.BORDER);\n\t\ttext_4.setBounds(25, 42, 130, 21);\n\t\t\n\t\tButton btnNewButton_1 = new Button(shell, SWT.NONE);\n\t\tbtnNewButton_1.setBounds(227, 130, 75, 25);\n\t\tbtnNewButton_1.setText(\"Buscar\");\n\t\t\n\t\tLabel label = new Label(shell, SWT.NONE);\n\t\tlabel.setBounds(25, 21, 55, 15);\n\t\tlabel.setText(\"#\");\n\t\t\n\t\tLabel lblFechaYHora = new Label(shell, SWT.NONE);\n\t\tlblFechaYHora.setBounds(25, 69, 75, 15);\n\t\tlblFechaYHora.setText(\"Fecha y Hora\");\n\t\t\n\t\tLabel lblPlaca = new Label(shell, SWT.NONE);\n\t\tlblPlaca.setBounds(25, 113, 55, 15);\n\t\tlblPlaca.setText(\"Placa\");\n\t\t\n\t\tLabel lblMarca = new Label(shell, SWT.NONE);\n\t\tlblMarca.setBounds(25, 161, 55, 15);\n\t\tlblMarca.setText(\"Marca\");\n\t\t\n\t\tLabel lblColor = new Label(shell, SWT.NONE);\n\t\tlblColor.setBounds(230, 161, 55, 15);\n\t\tlblColor.setText(\"Color\");\n\n\t}", "@Override protected void configureWindow(java.awt.Window root) {\n }", "@Override protected void configureWindow(java.awt.Window root) {\n }", "@Override protected void configureWindow(java.awt.Window root) {\n }", "@Override protected void configureWindow(java.awt.Window root) {\n }", "@Override protected void configureWindow(java.awt.Window root) {\n }", "@Override protected void configureWindow(java.awt.Window root) {\n }", "public static Window createFullScreenWindow() {\n GraphicsEnvironment env = GraphicsEnvironment\n .getLocalGraphicsEnvironment();\n GraphicsDevice device = env.getDefaultScreenDevice();\n GraphicsConfiguration gc = device.getDefaultConfiguration();\n Frame f = new Frame(gc);\n f.setUndecorated(true);\n f.setIgnoreRepaint(true);\n device.setFullScreenWindow(f);\n //f.setSize(200,200);\n //f.setVisible(true);\n\n //f.createBufferStrategy(2);\n\n /*\n * mainFrame.createBufferStrategy(numBuffers); BufferStrategy\n * bufferStrategy = mainFrame.getBufferStrategy(); Graphics g =\n * bufferStrategy.getDrawGraphics(); \n * if (!bufferStrategy.contentsLost()) { //\n * render here!\n * \n * bufferStrategy.show(); g.dispose();\n */\n\n return f;\n }", "public abstract void newWindow(ReFrame newFrame);", "private void createContents() {\r\n\t\tshlEventBlocker = new Shell(getParent(), getStyle());\r\n\t\tshlEventBlocker.setSize(167, 135);\r\n\t\tshlEventBlocker.setText(\"Event Blocker\");\r\n\t\t\r\n\t\tLabel lblRunningEvent = new Label(shlEventBlocker, SWT.NONE);\r\n\t\tlblRunningEvent.setBounds(10, 10, 100, 15);\r\n\t\tlblRunningEvent.setText(\"Running Event:\");\r\n\t\t\r\n\t\tLabel lblevent = new Label(shlEventBlocker, SWT.NONE);\r\n\t\tlblevent.setFont(SWTResourceManager.getFont(\"Segoe UI\", 15, SWT.BOLD));\r\n\t\tlblevent.setBounds(20, 31, 129, 35);\r\n\t\tlblevent.setText(eventName);\r\n\t\t\r\n\t\tButton btnFinish = new Button(shlEventBlocker, SWT.NONE);\r\n\t\tbtnFinish.addMouseListener(new MouseAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void mouseUp(MouseEvent e) {\r\n\t\t\t\tshlEventBlocker.dispose();\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnFinish.setBounds(10, 72, 75, 25);\r\n\t\tbtnFinish.setText(\"Finish\");\r\n\r\n\t}", "@Override\r\n\tvoid start() {\n\t\tButton btnPayed = new Button(\"Paid\");\r\n\t\tButton btnCanceled = new Button(\"Canceled\");\r\n\t\t// Set button action events to the event methods of this class\r\n\t\tsetControlButton(btnPayed, \"Paid\");\r\n\t\tsetControlButton(btnCanceled, \"Canceled\");\r\n\r\n\t\ttextLabelDisplayed = new Label(\"\");\r\n\t\ttextLabelDisplayed.setPrefWidth(120);\r\n\r\n\t\tGridPane gridPaneAll = new GridPane();\r\n\t\tgridPaneAll.setVgap(10);\r\n\t\tGridPane gridPaneOrder = new GridPane();\r\n\t\tgridPaneOrder.setHgap(10);\r\n\t\tgridPaneOrder.add(btnPayed, 0, 0);\r\n\t\tgridPaneOrder.add(btnCanceled, 1, 0);\r\n\t\tgridPaneAll.add(gridPaneOrder, 0, 0);\r\n\t\tgridPaneAll.add(textLabelDisplayed, 0, 1);\r\n\r\n\t\twindow.addNodesAsChildrenToRoot(gridPaneAll);\r\n\r\n\t\t// Put the final touches and display the window.\r\n\t\twindow.start();\r\n\r\n\t\trefreshDisplay();\r\n\t}", "private void openUserManagementWindow() {\r\n\t\tnew JFrameUser();\r\n\t}", "private void createAndShowGUI() {\n setSize(300, 200);\n setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\n addContent(getContentPane());\n\n //pack();\n setVisible(true);\n }", "public SettingsWindow()\n {\n House.seed = System.currentTimeMillis();\n initWindow();\n showWindows();\n }", "public GameWindow() {\n\t\tthis.initWindow();\n\t}", "private void createTray(Display display) \n\t{\n Tray tray;\n TrayItem item;\n tray = display.getSystemTray();\n\n if (tray == null) {\n System.out.println(\"The system tray is not available\");\n } else {\n item = new TrayItem(tray, SWT.NONE);\n item.setToolTipText(\"Arper Express\");\n item.addListener(SWT.Show, new Listener() {\n public void handleEvent(Event event) {\n System.out.println(\"show\");\n }\n });\n\n item.addListener(SWT.Hide, new Listener() {\n public void handleEvent(Event event) {\n System.out.println(\"hide\");\n }\n });\n\n item.addListener(SWT.Selection, new Listener() {\n public void handleEvent(Event event) {\n System.out.println(\"selection\");\n }\n });\n\n item.addListener(SWT.DefaultSelection, new Listener() {\n public void handleEvent(Event event) {\n System.out.println(\"default selection\");\n }\n });\n\n final Menu menu = new Menu(shell, SWT.POP_UP);\n\n MenuItem openMenuItem = new MenuItem(menu, SWT.PUSH);\n openMenuItem.setText(\"Mostrar\");\n openMenuItem.addListener(SWT.Selection, new Listener() {\n\n public void handleEvent(Event event) {\n shell.setVisible(true);\n shell.setMaximized(true);\n }\n });\n\n MenuItem exitMenuItem = new MenuItem(menu, SWT.PUSH);\n exitMenuItem.setText(\"Salir\");\n exitMenuItem.addListener(SWT.Selection, new Listener() {\n public void handleEvent(Event event) {\n System.exit(0);\n }\n });\n\n item.addListener(SWT.MenuDetect, new Listener() {\n public void handleEvent(Event event) {\n menu.setVisible(true);\n }\n });\n\n // image = SWTResourceManager.getImage(MakeBreak.class, \"Backup-Green-Button-icon.png\");\n // image = SWTResourceManager.getImage(WpCommenter.class, \"images/mb4.png\");\n// ImageData imageData = new ImageData(\"lib/impresora.png\");\n ImageData imageData = new ImageData(Home.class.getClassLoader().getResourceAsStream(\"impresora.png\"));\n //ImageData imageData = new ImageData(getClass().getResourceAsStream(\"impresora.png\"));\n\n item.setImage(new Image(display,imageData));\n \n shell.addShellListener(new ShellListener() {\n \tpublic void shellActivated(ShellEvent event) {\n\n \t}\n\n \tpublic void shellClosed(ShellEvent event) {\n \t\tevent.doit = false; //!! for this code i looked long time\n shell.setVisible(false);\n }\n\n public void shellDeactivated(ShellEvent event) {\n \n }\n\n public void shellDeiconified(ShellEvent event) {\n\n }\n\n public void shellIconified(ShellEvent event) {\n //shell.setVisible(false);\n }\n });\n \n }\n }", "private void createCableWindow(Cable cable){\r\n\t\t// Create text labels\r\n\t\tLabel mailingListLabel = new Label(cable.getMailingList());\r\n\t\tmailingListLabel.setWrapText(true);\r\n\t\tLabel cableStringLabel = new Label(cable.getCableString());\r\n\t\tcableStringLabel.setWrapText(true);\r\n\t\t\r\n\t\t// Make labels scrollable\r\n\t\tScrollPane scrollableMailingList = new ScrollPane(mailingListLabel);\r\n\t\tscrollableMailingList.setPrefHeight(100);\r\n\t\tScrollPane scrollableCableString = new ScrollPane(cableStringLabel);\r\n\t\tscrollableCableString.setPrefHeight(500);\r\n\t\t\r\n\t\t// Join them in a pane\r\n\t\tBorderPane rootPane = new BorderPane();\r\n\t\trootPane.setTop(scrollableMailingList);\r\n\t\trootPane.setCenter(scrollableCableString);\r\n\t\t\r\n\t\t// Create and display the stage\r\n\t\tStage stage = new Stage();\r\n\t\tString title = cable.getCableID() + \" - \" + cable.getCableNumber() + \" \" + cable.getClassification();\r\n\t\tstage.setTitle(title);\r\n\t\tstage.setScene(new Scene(rootPane, 600, 600));\r\n\t\tstage.show();\r\n\t}", "public JInternalFrame createAndShow() {\r\n /** Create and set up the window. */\r\n JInternalFrame frame = new JInternalFrame(\"About\");\r\n frame.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);\r\n \r\n frame.putClientProperty(\"JInternalFrame.isPallete\", Boolean.TRUE);\r\n\r\n /** Add content to the window. */\r\n frame.add(new About());\r\n \r\n frame.setClosable(true);\r\n\r\n /** Display the window. */\r\n frame.pack();\r\n frame.setVisible(true);\r\n \r\n return frame;\r\n }", "public void makeNew() {\n\t\towner.switchMode(WindowMode.ITEMCREATE);\n\t}", "private void createContents() {\r\n\t\tshlOProgramie = new Shell(getParent().getDisplay(), SWT.DIALOG_TRIM\r\n\t\t\t\t| SWT.RESIZE);\r\n\t\tshlOProgramie.setBackground(SWTResourceManager.getColor(255, 255, 255));\r\n\t\tshlOProgramie.setText(\"O programie\");\r\n\t\tshlOProgramie.setSize(386, 221);\r\n\t\tint x = 386;\r\n\t\tint y = 221;\r\n\t\t// Get the resolution\r\n\t\tRectangle pDisplayBounds = shlOProgramie.getDisplay().getBounds();\r\n\r\n\t\t// This formulae calculate the shell's Left ant Top\r\n\t\tint nLeft = (pDisplayBounds.width - x) / 2;\r\n\t\tint nTop = (pDisplayBounds.height - y) / 2;\r\n\r\n\t\t// Set shell bounds,\r\n\t\tshlOProgramie.setBounds(nLeft, nTop, x, y);\r\n\t\tsetText(\"O programie\");\r\n\r\n\t\tbtnZamknij = new Button(shlOProgramie, SWT.PUSH | SWT.BORDER_SOLID);\r\n\t\tbtnZamknij.addMouseListener(new MouseAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void mouseUp(MouseEvent e) {\r\n\t\t\t\tshlOProgramie.dispose();\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnZamknij.setBounds(298, 164, 68, 23);\r\n\t\tbtnZamknij.setText(\"Zamknij\");\r\n\r\n\t\tText link = new Text(shlOProgramie, SWT.READ_ONLY);\r\n\t\tlink.setBackground(SWTResourceManager.getColor(230, 230, 250));\r\n\t\tlink.setBounds(121, 127, 178, 13);\r\n\t\tlink.setText(\"Kontakt: [email protected]\");\r\n\r\n\t\tCLabel lblNewLabel = new CLabel(shlOProgramie, SWT.BORDER\r\n\t\t\t\t| SWT.SHADOW_IN | SWT.SHADOW_OUT | SWT.SHADOW_NONE);\r\n\t\tlblNewLabel.setBackground(SWTResourceManager.getColor(230, 230, 250));\r\n\t\tlblNewLabel.setBounds(118, 20, 248, 138);\r\n\t\tlblNewLabel\r\n\t\t\t\t.setText(\" Kalkulator walut ver 0.0.2 \\r\\n -------------------------------\\r\\n Program umo\\u017Cliwiaj\\u0105cy pobieranie\\r\\n aktualnych kurs\\u00F3w walut ze strony nbp.pl\\r\\n\\r\\n Copyright by Wojciech Trocki.\\r\\n\");\r\n\r\n\t\tLabel lblNewLabel_1 = new Label(shlOProgramie, SWT.NONE);\r\n\t\tlblNewLabel_1.setBackground(SWTResourceManager.getColor(255, 255, 255));\r\n\t\tlblNewLabel_1.setImage(SWTResourceManager.getImage(\"images/about.gif\"));\r\n\t\tlblNewLabel_1.setBounds(10, 20, 100, 138);\r\n\t}", "public void windowCreated()\n {\n return;\n }", "public void createAndShowGUI() {\n this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n this.addWindowListener(new WindowAdapter() {\n @Override\n public void windowClosing(WindowEvent e) {\n super.windowClosing(e);\n System.out.println(\"closing server...\");\n }\n });\n this.addComponentsToPane(this.getContentPane());\n this.pack();\n this.centreFrameInScreen();\n this.setVisible(true);\n }", "public static MainFrame createNewFrame(Display display, Document doc)\n {\n Shell shell = new Shell(display);\n\n MainFrame frame = new MainFrame(shell, doc);\n frame.initComponents(null);\n\n shell.open();\n\n return frame;\n }", "static private Screen createScreen() {\n Screen test = new Screen();\n //These values below, don't change\n test.addWindow(1,1,64, 12);\n test.addWindow(66,1,64,12);\n test.addWindow(1,14,129,12);\n test.setWidthAndHeight();\n test.makeBoarders();\n test.setWindowsType();\n test.draw();\n return test;\n }", "@Override\n public void windowOpened(WindowEvent e) {\n this.mostrar();\n }", "@FXML\n void openAddEventWindow() {\n\n// replaces Element list with Add Timeline window\n menuPane.setContent(addEventScene.getRoot());\n\n// adds Timelines to timeline ChoiceBox\n timelineChoice.getItems().clear();\n for (Timeline timeline : app.timelines)\n timelineChoice.getItems().add(timeline.name);\n\n// removes unnecessary buttons, shows cancel button\n toggleMenuButtonVisibility(false);\n cancelEventButton.setVisible(true);\n\n window.setTitle(\"Timelines: Add Event\");\n }", "@FXML\n void openMenuWindow() {\n window.setTitle(\"Timelines: Menu\");\n window.setScene(menuScene);\n window.show();\n window.requestFocus();\n\n messageLabel.setVisible(true);\n }", "protected void createInternalFrame() {\n\t\tJInternalFrame frame = new JInternalFrame();\n\t\tframe.setVisible(true);\n\t\tframe.setClosable(true);\n\t\tframe.setResizable(true);\n\t\tframe.setFocusable(true);\n\t\tframe.setSize(new Dimension(300, 200));\n\t\tframe.setLocation(100, 100);\n\t\tdesktop.add(frame);\n\t\ttry {\n\t\t\tframe.setSelected(true);\n\t\t} catch (java.beans.PropertyVetoException e) {\n\t\t}\n\t}" ]
[ "0.6779705", "0.6636302", "0.66037875", "0.6576167", "0.6341376", "0.63357604", "0.62942344", "0.62607324", "0.6127108", "0.60546356", "0.603192", "0.6016436", "0.6014654", "0.59515655", "0.58923984", "0.5867363", "0.58568835", "0.58364844", "0.5817632", "0.581173", "0.5808443", "0.5801137", "0.5796334", "0.5774369", "0.5771098", "0.5769632", "0.5764535", "0.5764355", "0.5756524", "0.57151943", "0.57121855", "0.57050925", "0.5682408", "0.56787", "0.56433207", "0.5630178", "0.56205547", "0.5605247", "0.55992997", "0.5596217", "0.5575746", "0.5575517", "0.5571023", "0.555565", "0.5554189", "0.5547418", "0.5542682", "0.5532624", "0.55309546", "0.5529232", "0.5511484", "0.5508685", "0.5506738", "0.5480317", "0.5468422", "0.5464097", "0.54576427", "0.5450514", "0.54422045", "0.54322577", "0.5426081", "0.54179853", "0.5416221", "0.54097164", "0.5404727", "0.54028183", "0.5399747", "0.5397033", "0.53950095", "0.5391335", "0.5387993", "0.5381397", "0.53761184", "0.5371883", "0.5371883", "0.5371883", "0.5371883", "0.5371883", "0.5371883", "0.5363515", "0.5355816", "0.53555745", "0.5351933", "0.5340933", "0.5339803", "0.53390944", "0.5338108", "0.5337175", "0.5336067", "0.5335011", "0.5318564", "0.5316098", "0.53152364", "0.5312003", "0.5299453", "0.5294795", "0.52921087", "0.5291425", "0.5288936", "0.52884495" ]
0.57966393
22
Sync the list of CalendarEvents to the calendar display.
private void setConnections(ObservableList<CalendarEvent> calendarEventList) { // populate the calendar // setting the appointment group applies the correct CSS to it calendarEventList.forEach((calendarEvent -> calendarEvent.setAppointmentGroup(appointmentGroup))); agenda.appointments().addAll(calendarEventList); // push the changes to agenda calendarEventList.addListener(this::forwardChanges); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void refresh(){\n\t\tlong d = calendar.getDate();\n\t\tDate todayDate = new Date(d);\n\t\tdateText.setText(\"Events for \" + todayDate);\n\t\tArrayList<String> events = new ArrayList<String>();\n\t\t\n\t\tfor (int i =0; i < 5; i++){\n\t\t\tevents.add(\"Sample event \" + i + \" for \" + todayDate);\n\t\t}\n\t\t\n\t\tArrayAdapter<String> eventArrayAdapter = new ArrayAdapter<String>(this, android.R.layout.simple_list_item_1, events);\n\t\teventList.setAdapter(eventArrayAdapter);\n\t}", "public static void eventList() {\n\t\tfor (Map.Entry<Calendar, TreeSet<Event>> entry : calendarToEvent.entrySet()) {\n\t\t\tTreeSet<Event> value = entry.getValue();\n\t\t\tfor (Event e: value) {\n\t\t\t\tSystem.out.println(e.toString());\n\t\t\t}\n\t\t}\n\t}", "protected void listEvents(Calendar calendar) {\n List<Event> events = calendar.getEvents();\n List<String> list = new ArrayList<>();\n\n for (Event event : events) {\n list.add(event.getName());\n }\n\n listItem(list);\n }", "public void deleteAllEventsInCalendar() {\n \n //Variable that holds the name of the current calendar\n String calName = Model.getInstance().calendar_name;\n \n //Query that will delete all events that belong to the selected calendar\n String deleteAllEventsQuery = \"DELETE FROM EVENTS \"\n + \"WHERE EVENTS.CalendarName='\" + calName + \"'\";\n \n //Execute query that deletes all events associated to the selected calendar\n boolean eventsWereDeleted = databaseHandler.executeAction(deleteAllEventsQuery);\n \n //Check if events were successfully deleted and indicate the user if so\n if (eventsWereDeleted)\n {\n //Update the calendar. Show that events were actually deleted\n repaintView();\n \n //Show message indicating that the selected calendar was deleted\n Alert alertMessage = new Alert(Alert.AlertType.INFORMATION);\n alertMessage.setHeaderText(null);\n alertMessage.setContentText(\"All events were successfully deleted\");\n alertMessage.showAndWait();\n }\n else\n {\n //Show message indicating that the calendar could not be deleted\n Alert alertMessage = new Alert(Alert.AlertType.ERROR);\n alertMessage.setHeaderText(null);\n alertMessage.setContentText(\"Deleting Events Failed!\");\n alertMessage.showAndWait();\n }\n }", "public void run() {\n\t\t\t\t\tListAdapter adapter = new SimpleAdapter(CalendarController.this, eventList, R.layout.calendar_item,\r\n\t\t\t\t\t\t\t\t\tnew String[] { TAG_EVENTID, TAG_EVENTDATE, TAG_EVENTTIME, TAG_EVENT }, new int[] { R.id.EVENTID,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tR.id.EVENTDATE, R.id.EVENTTIME, R.id.EVENT });\r\n\r\n\t\t\t\t\t// Update the listview\r\n\t\t\t\t\tListView calenderList = (ListView) findViewById(android.R.id.list);\r\n\r\n\t\t\t\t\t// Make the list clickable and view the selected event detail\r\n\t\t\t\t\t// information by executing GetEvent().\r\n\t\t\t\t\tcalenderList.setOnItemClickListener(new AdapterView.OnItemClickListener() {\r\n\r\n\t\t\t\t\t\t@Override\r\n\t\t\t\t\t\tpublic void onItemClick(AdapterView<?> parent, View view, int position, long id) {\r\n\t\t\t\t\t\t\ttv_eventId = (TextView) view.findViewById(R.id.EVENTID);\r\n\t\t\t\t\t\t\tnew GetEvent().execute();\r\n\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t});\r\n\t\t\t\t\tcalenderList.setAdapter(adapter);\r\n\t\t\t\t}", "@Override\n public void onChanged(List<Event> events) {\n if(mScheduler == null){\n mScheduler = new Scheduler(events, Calendar.getInstance(), null);\n } else mScheduler.setEvents(events);\n }", "private void refreshEvents() {\r\n\t\ttry {\r\n\t\t\tif (SimpleSetting.ShowAlerts.getBoolean(true)) {\r\n\t\t\t\tloadUpcomingEvents();\r\n\t\t\t}\r\n\t\t} catch(Exception e) {\r\n\t\t\tRTeamLog.i(SUFFIX, \"Exception while refreshing events: %s\", e.getMessage());\r\n\t\t}\r\n\t}", "public void displayEvents() {\n List<EventModel> day1List=new ArrayList<>();\n List<EventModel> day2List=new ArrayList<>();\n List<EventModel> day3List=new ArrayList<>();\n List<EventModel> day4List=new ArrayList<>();\n\n// noEventsPreRevels = findViewById(R.id.cat_pre_revels_no_events);\n noEventsDay1 = findViewById(R.id.cat_day_1_no_events);\n noEventsDay2 = findViewById(R.id.cat_day_2_no_events);\n noEventsDay3 = findViewById(R.id.cat_day_3_no_events);\n noEventsDay4 = findViewById(R.id.cat_day_4_no_events);\n\n if (mDatabase == null)\n return;\n\n RealmResults<ScheduleModel> scheduleResultsRealm = mDatabase.where(ScheduleModel.class).equalTo(\"catId\", cat_id).findAll().sort(\"startTime\");\n scheduleResults = mDatabase.copyFromRealm(scheduleResultsRealm);\n for (ScheduleModel schedule : scheduleResults) {\n// if (schedule.getIsRevels().contains(\"0\")) {\n// Log.d(TAG, \"displayEvents: PreRevels\");\n// EventDetailsModel eventDetails = mDatabase.where(EventDetailsModel.class).equalTo(\"eventID\", schedule.getEventID()).findFirst();\n// EventModel event = new EventModel(eventDetails, schedule);\n// preRevelsList.add(event);\n// } else {\n\n Log.d(TAG, schedule.toString());\n EventDetailsModel eventDetails = mDatabase.where(EventDetailsModel.class).equalTo(\"eventId\", schedule.getEventId()).findFirst();\n EventModel event = new EventModel(eventDetails, schedule);\n switch (event.getDay()) {\n case \"1\":\n day1List.add(event);\n break;\n case \"2\":\n day2List.add(event);\n break;\n case \"3\":\n day3List.add(event);\n break;\n case \"4\":\n day4List.add(event);\n break;\n }\n// }\n }\n// preRevelsEventSort(preRevelsList);\n eventSort(day1List);\n eventSort(day2List);\n eventSort(day3List);\n eventSort(day4List);\n\n// RecyclerView recyclerViewDayPreRevels = findViewById(R.id.category_pre_revels_recycler_view);\n// if (preRevelsList.isEmpty()) {\n// noEventsPreRevels.setVisibility(View.VISIBLE);\n// recyclerViewDayPreRevels.setVisibility(View.GONE);\n// } else {\n// recyclerViewDayPreRevels.setAdapter(new CategoryEventsAdapter(preRevelsList, this, getBaseContext(), false));\n// recyclerViewDayPreRevels.setNestedScrollingEnabled(false);\n// recyclerViewDayPreRevels.setLayoutManager(new LinearLayoutManager(this, LinearLayoutManager.HORIZONTAL, false));\n// }\n\n RecyclerView recyclerViewDay1 = findViewById(R.id.category_day_1_recycler_view);\n if(day1List.isEmpty()){\n noEventsDay1.setVisibility(View.VISIBLE);\n recyclerViewDay1.setVisibility(View.GONE);\n }\n else{\n recyclerViewDay1.setAdapter(new CategoryEventsAdapter(day1List, this, getBaseContext(), true, this));\n recyclerViewDay1.setNestedScrollingEnabled(false);\n recyclerViewDay1.setLayoutManager(new LinearLayoutManager(this, LinearLayoutManager.HORIZONTAL, false));\n }\n\n RecyclerView recyclerViewDay2 = findViewById(R.id.category_day_2_recycler_view);\n if(day2List.isEmpty()){\n noEventsDay2.setVisibility(View.VISIBLE);\n recyclerViewDay2.setVisibility(View.GONE);\n }\n else{\n recyclerViewDay2.setAdapter(new CategoryEventsAdapter(day2List, this, getBaseContext(), true, this));\n recyclerViewDay2.setNestedScrollingEnabled(false);\n recyclerViewDay2.setLayoutManager(new LinearLayoutManager(this, LinearLayoutManager.HORIZONTAL, false));\n }\n\n RecyclerView recyclerViewDay3 = findViewById(R.id.category_day_3_recycler_view);\n if(day3List.isEmpty()){\n noEventsDay3.setVisibility(View.VISIBLE);\n recyclerViewDay3.setVisibility(View.GONE);\n }\n else {\n recyclerViewDay3.setAdapter(new CategoryEventsAdapter(day3List, this, getBaseContext(), true, this));\n recyclerViewDay3.setNestedScrollingEnabled(false);\n recyclerViewDay3.setLayoutManager(new LinearLayoutManager(this, LinearLayoutManager.HORIZONTAL, false));\n }\n\n RecyclerView recyclerViewDay4 = findViewById(R.id.category_day_4_recycler_view);\n if(day4List.isEmpty()){\n noEventsDay4.setVisibility(View.VISIBLE);\n recyclerViewDay4.setVisibility(View.GONE);\n }\n else {\n recyclerViewDay4.setAdapter(new CategoryEventsAdapter(day4List, this, getBaseContext(), true, this));\n recyclerViewDay4.setNestedScrollingEnabled(false);\n recyclerViewDay4.setLayoutManager(new LinearLayoutManager(this, LinearLayoutManager.HORIZONTAL, false));\n }\n }", "public void setCalendarForModel(Calendar calend) {\n this.cal = calend;\n //fireTableDataChanged();\n refresh();\n}", "private void loadScheduleList() {\n\n if (listTbagendamentos != null && !listTbagendamentos.isEmpty()) {\n scheduleAgendamento.clear();\n\n for (Tbagendamento agendamento : listTbagendamentos) {\n DefaultScheduleEvent defaultScheduleEvent = new DefaultScheduleEvent();\n defaultScheduleEvent.setTitle(agendamento.getIdcliente().getNmcliente());\n\n Calendar dtDataInicial = new GregorianCalendar();\n dtDataInicial.setTime(agendamento.getTmdataagendamento());\n\n defaultScheduleEvent.setStartDate(dtDataInicial.getTime());\n\n Calendar dtDataFinal = new GregorianCalendar();\n dtDataFinal.setTime(agendamento.getTmdataagendamento());\n dtDataFinal.set(Calendar.MINUTE, dtDataFinal.get(Calendar.MINUTE) + 30);\n\n defaultScheduleEvent.setEndDate(dtDataFinal.getTime());\n defaultScheduleEvent.setData(agendamento.getIdagendamento());\n scheduleAgendamento.addEvent(defaultScheduleEvent);\n }\n }\n }", "private void onAddToCalendarSuccess() {\r\n database.eventDao().update(event);\r\n updateSpeedDialActionItems();\r\n showToast(getString(R.string.event_calendar_add_event_sucess), Toast.LENGTH_LONG);\r\n }", "private void forwardChanges(ListChangeListener.Change<? extends CalendarEvent> c) {\n while (c.next()) {\n if (c.wasRemoved()) {\n for (CalendarEvent removedEvent : c.getRemoved()) {\n agenda.appointments().remove(removedEvent);\n }\n }\n if (c.wasAdded()) {\n for (CalendarEvent addedEvent : c.getAddedSubList()) {\n addedEvent.setAppointmentGroup(appointmentGroup);\n agenda.appointments().add(c.getFrom(), addedEvent);\n }\n }\n }\n }", "protected void listSchedules(Calendar calendar) {\n List<Schedule> schedules = calendar.getSchedules();\n List<String> list = new ArrayList<>();\n\n for (Schedule schedule : schedules) {\n list.add(schedule.getName());\n }\n listItem(list);\n }", "public static void reload() {\n try {\n lstEvents = getEventFromDB();\n } catch (SQLException ex) {\n mLog.error(ex.getMessage(), ex);\n }\n }", "public void add_events_screen(View view) {\n Calendar calendar = Calendar.getInstance();\n calendar.set(selectedYear, selectedMonth, selectedDay);\n\n Intent intent = new Intent(Intent.ACTION_EDIT);\n intent.setType(\"vnd.android.cursor.item/event\");\n intent.putExtra(CalendarContract.Events.TITLE, \"\");\n intent.putExtra(CalendarContract.EXTRA_EVENT_BEGIN_TIME, calendar.getTimeInMillis());\n intent.putExtra(CalendarContract.EXTRA_EVENT_END_TIME, calendar.getTimeInMillis());\n intent.putExtra(CalendarContract.Events.ALL_DAY, false);\n intent.putExtra(CalendarContract.Events.DESCRIPTION,\"\");\n startActivity(intent);\n }", "private CalendarModel() {\n events = new ArrayList<>();\n }", "public void setEventList(List<EventSource> events) {\n this.eventList.reset(events);\n notifyEventListListeners();\n }", "public ArrayList<Pair<String,String>> getCalendarList() {\n ArrayList<Pair<String,String>> calendars = new ArrayList<>();\n if (ActivityCompat.checkSelfPermission(\n App.getContext(), Manifest.permission.READ_CALENDAR\n ) != PackageManager.PERMISSION_GRANTED) {\n return calendars;\n }\n\n String projection[] = {CalendarContract.Calendars._ID, CalendarContract.Calendars.CALENDAR_DISPLAY_NAME};\n\n Uri calendarQuery;\n calendarQuery = CalendarContract.Calendars.CONTENT_URI;\n\n ContentResolver contentResolver = App.getContext().getContentResolver();\n\n Cursor cursor = contentResolver.query(calendarQuery, projection, null, null, null);\n\n if(cursor == null) return calendars;\n\n if(cursor.moveToFirst()) {\n int calendarIdIndex = cursor.getColumnIndex(projection[0]);\n int calendarNameIndex = cursor.getColumnIndex(projection[1]);\n\n do {\n calendars.add(\n new Pair<>(\n cursor.getString(calendarIdIndex),\n cursor.getString(calendarNameIndex)\n )\n );\n } while(cursor.moveToNext());\n }\n\n cursor.close();\n\n return calendars;\n }", "public void refreshAllDateDescriptions(){\n for(int position=0;position<reminderItems.size();position++){\n refreshDateDescription(position);\n }\n }", "public String arrangeEvents() throws Exception {\n JSONArray scheduledEventList = calObj.retrieveEvents(\"primary\").getJSONArray(\"items\");\n JSONArray unScheduledEventList = calObj.retrieveEvents(this.user.getCalId()).getJSONArray(\"items\");\n\n //Filter events for this week\n\n\n //Make a list of all events\n\n //Prioritise all unscheduled events\n\n\n //Send the list to client to display\n String events = \"\";\n for (int i = 0; i < scheduledEventList.length(); i++) {\n org.json.JSONObject jsonLineItem = scheduledEventList.getJSONObject(i);\n events += jsonLineItem.getString(\"summary\") + \" \" + jsonLineItem.getJSONObject(\"start\").getString(\"dateTime\") + \"\\n\";\n }\n // Unscheduled events set in bot created aPAS calendar\n for (int i = 0; i < unScheduledEventList.length(); i++) {\n org.json.JSONObject jsonLineItem = unScheduledEventList.getJSONObject(i);\n events += jsonLineItem.getString(\"summary\") + \" \" + jsonLineItem.getJSONObject(\"start\").getString(\"dateTime\") + \"\\n\";\n }\n return events;\n }", "public void pullData() {\n // Listener for changes in the database\n ValueEventListener postListener = new ValueEventListener() {\n @Override\n public void onDataChange(DataSnapshot dataSnapshot) {\n Log.d(TAG, \"Preparing to update the Calendar\");\n\n Object o = dataSnapshot.child(TAG).getValue();\n\n if (o == null)\n return;\n\n // We don't know what type object will be\n List <Map<String, Object>> list = new ArrayList<>();\n\n if (o.getClass().isInstance(list))\n list = (List<Map<String, Object>>) o;\n\n for (int i = 0; i < list.size(); i++) {\n Map<String, Object> map = list.get(i);\n\n // Get name of the list from the map\n String date;\n if (map.get(\"date\") == null)\n ; // Purposely empty because\n // We don't want to add a ToDoList\n // with a null name.\n else {// Otherwise, we translate the map data to create an event list\n date = (String) map.get(\"date\");\n\n // Get List of bools from the map\n List<Object> event = new ArrayList<>();\n if (map.get(\"eventList\") != null) {\n event = (List<Object>) map.get(\"eventList\");\n\n EventList eventList = new EventList(date);\n\n for (int j = 0; j < event.size(); j++) {\n Map<String, Object> eventMap = (Map<String, Object>) event.get(j);\n\n String end;\n String start;\n String eventName;\n\n if (eventMap.get(\"end\") != null) {\n end = (String) eventMap.get(\"end\");\n }\n else\n end = \"\";\n if (eventMap.get(\"start\") != null) {\n start = (String) eventMap.get(\"start\");\n }\n else\n start = \"\";\n if (eventMap.get(\"eventName\") != null) {\n eventName = (String) eventMap.get(\"eventName\");\n }\n else\n eventName = \"\";\n\n eventList.add(new Event(eventName, start, end));\n }\n\n events.add(eventList);\n }\n }\n }\n\n Log.d(TAG, \"Calendar has been updated\");\n }\n\n @Override\n public void onCancelled(DatabaseError databaseError) {\n // Getting Post failed, log a message\n Log.w(TAG, \"onCancelled\", databaseError.toException());\n }\n };\n\n // Add the database listeners (I hope this works here *fingers crossed*)\n databaseRef.addListenerForSingleValueEvent(postListener);\n }", "public void updateListView(List<Event> list) {\n this.eventsList = list;\n notifyDataSetChanged();\n }", "public void setEvents(List<TimelineEvent> events) {\n this.events = events;\n }", "void parseEventList() {\n\t\tfor (int eventsId : events.keySet()) {\n\t\t\tfinal Event event = events.get(eventsId);\n\t\t\tif (users.get(event.getUser().getName()).isActiveStatus()\n\t\t\t\t\t&& !event.isViewed()\n\t\t\t\t\t&& event.getInnerSisdate().compareTo(\n\t\t\t\t\t\t\tnew GregorianCalendar()) >= 0) {\n\t\t\t\tevent.setViewed(true);\n\t\t\t\tfinal SimpleDateFormat fm = new SimpleDateFormat(\n\t\t\t\t\t\t\"dd.MM.yyyy-HH:mm:ss\");\n\t\t\t\tt.schedule(new TimerTask() {\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\tif (event.isActive()) {\n\t\t\t\t\t\t\tgenerateEventMessage(\"User \"\n\t\t\t\t\t\t\t\t\t+ event.getUser().getName()\n\t\t\t\t\t\t\t\t\t+ \" \"\n\t\t\t\t\t\t\t\t\t+ fm.format(event.getInnerSisdate()\n\t\t\t\t\t\t\t\t\t\t\t.getTime()) + \" \" + event.getText());\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}, event.getInnerSisdate().getTime());\n\n\t\t\t}\n\t\t}\n\n\t}", "public void refreshAllRepeatReminderDates(){\n for(int position=0;position<reminderItems.size();position++){\n refreshRepeatReminder(position);\n }\n }", "public String viewAllCalendars() throws RemoteException {\n\t\tSystem.out.println(\"Server: Message > \" + \"viewAllCalendars() invoked\");\n\t\tStringBuilder sb = new StringBuilder();\n\t\tif (!names.isEmpty()) {\n\t\t\tfor (String name : userCalendar.keySet()) {\n\t\t\t\tsb.append(\"\\t\\t\\t \" + name + \"'s CALENDAR\\n\");\n\t\t\t\tsb.append(\".......................................................................\\n\");\n\t\t\t\tsb.append(\"TIME \\t\\t EVENT \\t\\t\\t ACCESS\\n\");\n\t\t\t\tsb.append(\".......................................................................\\n\");\n\t\t\t\tArrayList<Event> list = userCalendar.get(name);\n\t\t\t\tif (name.equalsIgnoreCase(userName)) {\n\t\t\t\t\tArrayList<Event> apptList = userCalendar.get(name); // gets the list of events for the current user (name)\n\t\t\t\t\tfor (Event event : apptList) {\n\t\t\t\t\t\t// Check if the user is the group member\n\t\t\t\t\t\tif(event.getAccess().equalsIgnoreCase(\"Group\") && !event.getDescription().contains(userName)) {\n\t\t\t\t\t\t\tsb.append(event.getTime() + \"\\t\\t\" +\n\t\t\t\t\t\t\t\"---------\" + \"\\t\\t\" +\n\t\t\t\t\t\t\tevent.getAccess() + \"\\n\");\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tsb.append(event.getTime() + \"\\t\\t\" +\n\t\t\t\t\t\t\tevent.getDescription() + \"\\t\\t\" +\n\t\t\t\t\t\t\tevent.getAccess() + \"\\n\");\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\t// Do not display \"private\" events if the !this.userName\n\t\t\t\t\tArrayList<Event> apptList = userCalendar.get(name); // gets the list of events for the current user (name)\n\t\t\t\t\tfor (Event event : apptList) {\n\t\t\t\t\t\tif (!event.getAccess().equalsIgnoreCase(\"Private\")) {\n\t\t\t\t\t\t\tif(event.getAccess().equalsIgnoreCase(\"Group\") && !event.getDescription().contains(userName)) {\n\t\t\t\t\t\t\t\tsb.append(event.getTime() + \"\\t\\t\" +\n\t\t\t\t\t\t\t\t\"---------\" + \"\\t\\t\" +\n\t\t\t\t\t\t\t\tevent.getAccess() + \"\\n\");\n\t\t\t\t\t\t\t} else { \n\t\t\t\t\t\t\t\tsb.append(event.getTime() + \"\\t\\t\" +\n\t\t\t\t\t\t\t\t\tevent.getDescription() + \"\\t\\t\" +\n\t\t\t\t\t\t\t\t\tevent.getAccess() + \"\\n\");\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\tsb.append(\"***********************************************************************\\n\\n\");\n\t\t\t\tsb.append(\"\\n\");\n\t\t\t}\n\t\t}\n\t\treturn sb.toString();\n\t}", "@Override\n public void onCreate(Bundle savedInstanceState)\n {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.main);\n \n calendarReader = new CalendarReader();\n \n int calendarId = getCalendarIdFromPreferences();\n \n eventAdapter = new EventAdapter(this, R.layout.list_event, new ArrayList<Event>());\n fillEventAdapterFromCalendar(calendarId);\n \n setListAdapter(eventAdapter);\n \n setupButtons();\n }", "public void setEvents(AbstractList<Event> events) {\r\n\t\tthis.events = (ArrayList<Event>) events;\r\n\t}", "@Override\n\tpublic List getCalendars() {\n\t return null;\n\t}", "public static void main(String[] args) {\n\n CalendarEvent b = new CalendarEvent(\"assignment2\",29,11,2014,\"14:00\",\"20:00\",\"Test1\");\n\n CalendarEvent c = new CalendarEvent(\"assignment3\",27,2,2010,\"2:00\",\"20:00\",\"Test2\");\n\n CalendarEvent d = new CalendarEvent(\"assignment4\",12,7,2013,\"14:00\",\"20:00\",\"Test3\");\n\n CalendarEvent e = new CalendarEvent(\"assignment5\",29,11,2014,\"12:00\",\"20:00\",\"Test4\");\n\n\n CalendarEvent l = new CalendarEvent(\"assignment1a\",30,9,2014,\"14:00\",\"20:00\",\"Test\");\n CalendarEvent f = new CalendarEvent(\"assignment1\",31,9,2014,\"14:00\",\"20:00\",\"Test\");\n CalendarEvent g = new CalendarEvent(\"assignment1\",21,9,2014,\"14:00\",\"20:00\",\"Test\");\n CalendarEvent h = new CalendarEvent(\"assignment1\",21,9,2014,\"14:00\",\"20:00\",\"Test\");\n CalendarEvent i = new CalendarEvent(\"assignment1\",29,9,2014,\"14:00\",\"20:00\",\"Test\");\n CalendarEvent j = new CalendarEvent(\"assignment1\",18,9,2014,\"14:00\",\"20:00\",\"Test\");\n CalendarEvent k = new CalendarEvent(\"assignment1\",1,9,2014,\"14:00\",\"20:00\",\"Test\");\n\n \n \n \n ArrayList<CalendarEvent> listOfEvents = new ArrayList<CalendarEvent>();\n // listOfEvents.add(a);\n listOfEvents.add(b);\n listOfEvents.add(c);\n listOfEvents.add(d);\n listOfEvents.add(e);\n\n Display myDisObject = new Display();\n //myDisObject.displayAssignments(listOfEvents);\n\n \n \n listOfEvents.add(f);\n listOfEvents.add(g);\n listOfEvents.add(h);\n listOfEvents.add(i);\n listOfEvents.add(j);\n listOfEvents.add(k);\n listOfEvents.add(l);\n \n //myDisObject.displayAssignments(listOfEvents);\n myDisObject.displayMonth(10, listOfEvents);\n }", "public void updateEventsView(ViewRender eventsRender) {\n\t\tDefaultTableModel eventsTableModel = eventsRender.getTableModel(eventsData);\n\t\teventsTable.setModel(eventsTableModel);\n\t\teventsRender.setTableFormate(eventsTable);\n\t}", "public EventsListAdapter(List<Event> events) {\n this.events = events;\n }", "public int createCalendarEntries(List cals, boolean inMainCalendar) throws Exception, ServiceException, IOException {\n int createdCount = 0;\n\n for (int i = 0; i < cals.size(); i++) {\n NotesCalendarEntry cal = (NotesCalendarEntry) cals.get(i);\n CalendarEventEntry event = new CalendarEventEntry();\n event.setTitle(new PlainTextConstruct(cal.getSubject()));\n\n Where location = new Where();\n location.setValueString(cal.getLocation());\n event.addLocation(location);\n\n DateTime startTime, endTime;\n if (cal.getEntryType() == NotesCalendarEntry.EntryType.TASK ||\n cal.getAppointmentType() == NotesCalendarEntry.AppointmentType.ALL_DAY_EVENT ||\n cal.getAppointmentType() == NotesCalendarEntry.AppointmentType.ANNIVERSARY )\n {\n // Create a Google all-day event. All-day events are created by\n // setting start/end dates the same and having no time portion.\n startTime = DateTime.parseDate(cal.getStartDateGoogle());\n endTime = DateTime.parseDate(cal.getStartDateGoogle());\n }\n else if (cal.getAppointmentType() == NotesCalendarEntry.AppointmentType.APPOINTMENT ||\n cal.getAppointmentType() == NotesCalendarEntry.AppointmentType.MEETING)\n {\n // Create a standard event\n startTime = DateTime.parseDateTime(cal.getStartDateTimeGoogle());\n endTime = DateTime.parseDateTime(cal.getEndDateTimeGoogle());\n }\n else if (cal.getAppointmentType() == NotesCalendarEntry.AppointmentType.REMINDER)\n {\n // Create a standard event with the start and end times the same\n startTime = DateTime.parseDateTime(cal.getStartDateTimeGoogle());\n endTime = DateTime.parseDateTime(cal.getStartDateTimeGoogle());\n }\n else\n {\n throw new Exception(\"Couldn't determine Lotus Notes event type.\\nEvent subject: \" + cal.getSubject() +\n \"\\nEntry Type: \" + cal.getEntryType() +\n \"\\nAppointment Type: \" + cal.getAppointmentType());\n }\n\n When eventTimes = new When();\n eventTimes.setStartTime(startTime);\n eventTimes.setEndTime(endTime);\n event.addTime(eventTimes);\n\n try {\n if (inMainCalendar) {\n service.insert(privateCalendarFeedUrl, event);\n } else {\n service.insert(getDestinationCalendarUrl(), event);\n }\n\n createdCount++;\n } catch (Exception ex) {\n throw ex;\n }\n }\n\n return createdCount;\n }", "void updateMonthAndData(int i) {\n c.getFirstDayOfWeek();\n //compute change in month and year. Note we are operating on the calendar range of 0-11\n month = month + i;\n if (month < 0) {\n year--;\n month = 11;\n } else if (month > 11) {\n year++;\n month = 0;\n }\n //set the new date in calendar\n c.set(Calendar.YEAR, year);\n c.set(Calendar.MONTH, month);\n monthName = c.getDisplayName(Calendar.MONTH, Calendar.LONG, Locale.getDefault());\n daysInMonth = c.getActualMaximum(Calendar.DAY_OF_MONTH);\n dayOfWeek = c.get(Calendar.DAY_OF_WEEK_IN_MONTH);\n\n //notify the adapter of new date. This will also change the selected date in the grid part\n //and pull new data if necessary.\n calendarAdapter.update(year, month);\n //this is fact also passes the calendarAdapter new list of days with events\n // and calls notifyDataSetChanged on it!\n listEvents.update(year, month);\n //so that events are displayed for the first day of month or, if the month is the current one,\n //for \"today\"\n listEvents.setmSelectedDayOfMonth(calendarAdapter.getDayNumber(calendarAdapter.getCurrentlySelected()));\n //ask listEvents to redraw. Note that calendarAdapter already did that when we updated listEvents!\n listEvents.notifyDataSetChanged();\n //set the proper name of month at the header of the calendar\n ((TextView) ((RelativeLayout) (((RelativeLayout) rootView).getChildAt(0))).getChildAt(1)).setText(monthName);\n }", "public void displayCalendar(Resident res, CalendarService cal){\n \tLog.d(UI_MODE_SERVICE, \"Entered displayCalendar\");\n \t\n \t// Get the list of times that each medication needs to be taken at...\n \tmedApts = cal.getResidentMedications(res);\n \t\n \t// Sort medApts by time...\n \tsortMedApts(medApts);\n \t\n \t// Lets just get the names from the medApts and put it into an ArrayList?\n \tArrayList<String> strMedApts = new ArrayList<String>();\n \tfor(int i = 0; i < medApts.size(); i++){\n \t\tstrMedApts.add(medApts.toString());\n \t\tLog.d(UI_MODE_SERVICE, \"MedApt\" + i + \": \" + strMedApts.get(i));\n \t}\n \t\n \t\n \tLog.d(UI_MODE_SERVICE, \"Updating the listView?\");\n \t// Send this to the list view to see it\n \t//ListView listview = (ListView) findViewById(R.id.residentListView);\n \n \tLog.d(UI_MODE_SERVICE, \"Updating Adapter?\");\n \taddList(strMedApts);\n }", "private void initEventList(){\r\n\t\t/*\r\n\t\t * we save a valid event list in internal storage so we can load them in\r\n\t\t * our main activity. So we make sure there is either a valid one alreay in storage\r\n\t\t * or we get a fresh one from our server and save it in storage.\r\n\t\t */\r\n\t\t\r\n\t\t// first try to get an existing eventlist from storage\r\n\t\tJSONObject eventList = FileUtils.readEventListFromStorage(this);\r\n\t\t\r\n\t\tif(eventList != null) {\r\n\t\t\tif(eventListIsValid(eventList)){\r\n\t\t\t\tstartMuseek();\r\n\t\t\t} else {\r\n\t\t\t\tServerConnector.getEventListFromServer(mServerListener, mLocation);\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\tServerConnector.getEventListFromServer(mServerListener, mLocation);\r\n\t\t}\r\n\t\t\r\n\t}", "public void updateAlarmListView() {\n AlarmListViewUpdater alarmListViewUpdater = new AlarmListViewUpdater();\n alarmListViewUpdater.execute();\n\n\n }", "public DefaultListModel<Event> getAllEventsFromDateDLM(Calendar date)\r\n\t{\r\n\t\tDefaultListModel<Event> eventsList = new DefaultListModel<Event>();\r\n\t\t\r\n\t\tArrayList<Event> list = this.getAllEventsFromDate(date);\r\n\t\tlist.sort(null);\r\n\t\t\r\n\t\tfor(Event event : list )\r\n\t\t{\t\t\t\r\n\t\t\teventsList.addElement(event);\r\n\t\t}\r\n\t\t\r\n\t\treturn eventsList;\r\n\t}", "@Override\n public void onChanged(@Nullable List<Event> events) {\n adapter.setEvents(events);\n for (Event event:events) {\n Log.e(\"** EVENT **\", \"CATEGORY: \" +event.getCategoryId() + \", Event : \" + event.getName());\n }\n }", "@FXML\n void OnActionViewAllAppointments(ActionEvent event) {\n getTableData();\n MSAppointmentsTableView.setItems(allAppointments);\n }", "private void refreshList() {\n\t\tfor (int i = 0; i < service.getAllTimesheetRows(currentTimesheet.getTimesheetId()).size(); i++) {\n\t\t\ttimesheetRowList.add(service.getAllTimesheetRows(currentTimesheet.getTimesheetId()).get(i));\n\t\t}\n\t\ttimesheetRowList.add(new TimesheetRow(currentTimesheet.getTimesheetId()));\n\t}", "public static void updateData(Context context) {\n if (context == null) {\n throw new IllegalArgumentException();\n }\n if (isNetworkConnected(context)) {\n List<Event> allEvents = new ArrayList<>();\n List<Registration> registrations = new ArrayList<>();\n String userName = MainActivity.getPreferences().getString(USERNAME.get(), \"\");\n try {\n allEvents.addAll(getEventClient().fetchAll());\n registrations.addAll(getEventClient().fetchForUser(userName));\n } catch (EventClientException e) {\n Log.e(\"FetchEvent\", e.getMessage());\n }\n Collections.sort(allEvents);\n REGISTRATIONS.clear();\n REGISTRATIONS.addAll(registrations);\n ALL_EVENTS.clear();\n ALL_EVENTS.addAll(allEvents);\n }\n }", "@Override\n @Transactional(value = \"transactionManager\")\n public void update(Calendar calendar, boolean neo4jSynchronize) {\n Calendar currentInDb = get(calendar.getId());\n if(currentInDb.getCalendarDates() != null) {\n for(CalendarDate calendarDate : currentInDb.getCalendarDates()) {\n calendarDateService.delete(calendarDate.getId());\n }\n }\n\n //pak provedu update calendar zaznamu\n dao.update(calendar);\n\n //a nakonec ulozim vsechny calendarDates znovu\n if(calendar.getCalendarDates() != null) {\n for(CalendarDate calendarDate : calendar.getCalendarDates()) {\n calendarDate.setId(null);\n calendarDateService.create(calendarDate);\n }\n }\n\n if(neo4jSynchronize) {\n //update take v neo4j!\n //smazu vsechny calendarDateNodes k tomuto calendar z neo4j\n calendarDateNodeService.deleteByCalendarId(calendar.getId());\n\n //vytvorim si novy objekt calendarNode\n CalendarNode calendarNode = getCalendarNodeFromCalendar(calendar);\n //nasetuji mu id z neo4j, pokud uz tam existuje (aby se provedl update)\n CalendarNode calendarNodeInNeo4j = calendarNodeService.findByCalendarId(calendar.getId());\n if (calendarNodeInNeo4j != null) {\n calendarNode.setId(calendarNodeInNeo4j.getId());\n }\n\n //a calendarNode ulozim i se vsemi calendarDates\n calendarNodeService.save(calendarNode, -1);\n\n //aktualizace datumu v neo4j\n calendarNodeService.initCalendarDates();\n }\n }", "@SuppressLint(\"MissingPermission\")\n @Nullable\n public static List<CalendarItem> getCalendarsList(Context context) {\n List<CalendarItem> ids = new ArrayList<>();\n ids.clear();\n Uri uri = CalendarContract.Calendars.CONTENT_URI;\n String[] mProjection = new String[]{\n CalendarContract.Calendars._ID, // 0\n CalendarContract.Calendars.ACCOUNT_NAME, // 1\n CalendarContract.Calendars.CALENDAR_DISPLAY_NAME, // 2\n CalendarContract.Calendars.OWNER_ACCOUNT // 3\n };\n Cursor c = null;\n try {\n c = context.getContentResolver().query(uri, mProjection, null, null, null);\n } catch (Exception e) {\n e.printStackTrace();\n }\n if (c != null && c.moveToFirst()) {\n do {\n int mID = c.getInt(c.getColumnIndex(mProjection[0]));\n String title = c.getString(c.getColumnIndex(mProjection[2]));\n ids.add(new CalendarItem(title, mID));\n } while (c.moveToNext());\n }\n if (c != null) {\n c.close();\n }\n if (ids.size() == 0) {\n return null;\n } else {\n return ids;\n }\n }", "public UpdateEventsTask(Context context, RecyclerView rvList, ContentResolver cr) {\n super();\n this.cr = cr;\n this.context = context;\n this.rvList = rvList;\n }", "public void sortEvents() {\n\t\tCollections.sort(events);\n\t}", "public Map<String, List<CalendarEvent>> getEvents(){ return _safeEvents; }", "public static void printAllEventListInSortedOrder(){\n sortEvents();\n for(int i=0;i<events.size();i++){\n System.out.println((events.get(i).getMonth()+1)+\"/\"+events.get(i).getDate()+\"/\"+events.get(i).getYear()+\" \"+events.get(i).getStringStartandFinish()+\" \"+events.get(i).getEventTitle());\n }\n }", "public void sortEventsByValue() {\n for (OrgEvent event : events) {\n event.setCompareByTime(false);\n }\n Collections.sort(events);\n }", "public SyncFirebaseToCalendar (GoogleAccountCredential credential, Context context) {\n System.err.println(\"SYNCING FIREBASE TO CALENDAR\");\n\n\n final String[] SCOPES = {CalendarScopes.CALENDAR};\n mContext = context;\n mActivity = (Activity) context;\n HttpTransport transport = AndroidHttp.newCompatibleTransport();\n JsonFactory jsonFactory = JacksonFactory.getDefaultInstance();\n mCredential = GoogleAccountCredential.usingOAuth2(\n context.getApplicationContext(), Arrays.asList(SCOPES))\n .setBackOff(new ExponentialBackOff());\n mService = new com.google.api.services.calendar.Calendar.Builder(\n transport, jsonFactory, credential)\n .setApplicationName(\"Quick Calendar\")\n .build();\n\n android_id = Settings.Secure.getString(context.getContentResolver(), Settings.Secure.ANDROID_ID); //Device ID\n\n mAuth = FirebaseAuth.getInstance();\n\n mAuthListener = new FirebaseAuth.AuthStateListener() {\n @Override\n public void onAuthStateChanged(@NonNull FirebaseAuth firebaseAuth) {\n FirebaseUser user = firebaseAuth.getCurrentUser();\n if (user != null) {\n // User is signed in\n Log.d(TAG, \"onAuthStateChanged:signed_in:\" + user.getUid());\n } else {\n // User is signed out\n Log.d(TAG, \"onAuthStateChanged:signed_out\");\n }\n }\n };\n\n db = FirebaseDatabase.getInstance().getReference();\n }", "public ArrayList<CampusEvent> fetchEvents() {\n SQLiteDatabase dbObj = getReadableDatabase();\n ArrayList<CampusEvent> entryList = new ArrayList<CampusEvent>();\n\n Cursor cursor = dbObj.query(TABLE_EVENT_ENTRIES, mColumnList, null,\n null, null, null, null);\n\n while (cursor.moveToNext()) {\n CampusEvent event = cursorToEvent(cursor);\n entryList.add(event);\n }\n\n cursor.close();\n dbObj.close();\n\n return entryList;\n }", "private void refreshEvent() {\n DatabaseReference databaseEventsRef = firebaseDatabase.getReference(\"Events\");\n databaseEventsRef.addListenerForSingleValueEvent(new ValueEventListener() {\n @Override\n public void onDataChange(@NonNull DataSnapshot dataSnapshot) {\n for (DataSnapshot snapshot : dataSnapshot.getChildren()) {\n EventsItem selected = snapshot.getValue(EventsItem.class);\n if (occaID.equals(selected.getEventID())) {\n titleView.setText(selected.getTitle());\n dateView.setText(DateFormat.getDateInstance(DateFormat.MEDIUM, Locale.UK)\n .format(selected.getDateInfo()));\n updatedDate = selected.getDateInfo();\n timeView.setText(selected.getTimeInfo());\n locationView.setText(selected.getLocationInfo());\n descView.setText(selected.getDescription());\n break;\n }\n }\n }\n\n @Override\n public void onCancelled(@NonNull DatabaseError databaseError) {\n\n }\n });\n }", "private void getDataFromApi() throws IOException {\n DateTime now = new DateTime(System.currentTimeMillis());\n Events events = mService.events().list(\"primary\")\n .setTimeMin(now)\n .setOrderBy(\"startTime\")\n .setSingleEvents(true)\n .execute();\n List<Event> items = events.getItems();\n ScheduledEvents scheduledEvents;\n EventsList.clear();\n for (Event event : items) {\n DateTime start = event.getStart().getDateTime();\n if (start == null) {\n start = event.getStart().getDate();\n }\n DateTime end = event.getEnd().getDateTime();\n if (end == null) {\n end = event.getStart().getDate();\n }\n scheduledEvents = new ScheduledEvents();\n scheduledEvents.setEventId(event.getId());\n scheduledEvents.setDescription(event.getDescription());\n scheduledEvents.setEventSummery(event.getSummary());\n scheduledEvents.setLocation(event.getLocation());\n scheduledEvents.setStartDate(dateTimeToString(start));\n scheduledEvents.setEndDate(dateTimeToString(end));\n StringBuffer stringBuffer = new StringBuffer();\n if(event.getAttendees()!=null) {\n for (EventAttendee eventAttendee : event.getAttendees()) {\n if(eventAttendee.getEmail()!=null)\n stringBuffer.append(eventAttendee.getEmail() + \" \");\n }\n scheduledEvents.setAttendees(stringBuffer.toString());\n }\n else{\n scheduledEvents.setAttendees(\"\");\n }\n EventsList.add(scheduledEvents);\n }\n }", "@FXML\r\n void onActionAll(ActionEvent event) {\r\n\r\n appointmentListType();\r\n\r\n }", "public void calendarListener(CalendarEvent ce){\n Date triggerDate = (Date)ce.getTriggerDate().clone();\n setInicioRegistrar(triggerDate);\n setFinRegistrar(triggerDate);\n }", "private void notifyEventListListeners() {\n this.eventListListeners.forEach(listener -> listener.onEventListChange(this.getEventList()));\n }", "public void setList(ScheduleInterface<Schedule> scheduleList){\n this.scheduleList = scheduleList;\n }", "@Override\n\tpublic void valueChanged(ListSelectionEvent ls) {\n\t\tString s = (String)((JList)ls.getSource()).getSelectedValue();\n\t\tif(s!=null && !s.isEmpty()){\n\t\t\tif(!SelectEventFromCalendarListener.currentCal.equals(s)){\n\t\t\t\tSelectEventFromCalendarListener.currentCal = s;\n\t\t\t\t\n\t\t\t\tVector<Event> v = new Vector<Event>();\n\t\t\t\tfor(Event e : Main.myCals.getCalendar(SelectEventFromCalendarListener.currentCal).getAllEvent()){\n\t\t\t\t\tv.add(e);\n\t\t\t\t}\n\t\t\t\tthis.evList.setListData(v);\n\t\t\t\tRefreshList rl = new RefreshList(false);\n\t\t\t\trl.refresh();\n\t\t\t}\n\t\t}\n\t\t\n\t\t//Activer la fonction creer evenement\n\t}", "private void populateUserEvents() {\n\n AsyncHttpClient client = new AsyncHttpClient();\n client.addHeader(\"Authorization\", \"Token token=\" + user.getToken().getAccess_token());\n client.get(LoginActivity.API_ROOT + \"events\", new BaseJsonHttpResponseHandler<Event[]>() {\n @Override\n public void onSuccess(int statusCode, Header[] headers, String rawJsonResponse,\n Event[] response) {\n// ListView events_lv = (ListView) findViewById(R.id.events_lv);\n eventsArr = response;\n\n // Make an \"empty\" Event in the case that there are no Events.\n if (eventsArr.length == 0) {\n eventsArr = new Event[1];\n eventsArr[0] = new Event(-1, \"(No events. Please see an admin for help.)\", null,\n null, null, null, null, null, null);\n events_lv.setAdapter(new EventAdapter(SelectionActivity.this,\n eventsArr));\n } else {\n events_lv.setAdapter(new EventAdapter(SelectionActivity.this,\n eventsArr));\n events_lv.setOnItemClickListener(new EventClickListener());\n }\n\n Log.d(\"GET EVENTS\", \"success\");\n }\n\n @Override\n public void onFailure(int statusCode, Header[] headers, Throwable error,\n String rawJsonData, Event[] errorResponse) {\n Log.d(\"GET EVENTS\", \"failure\");\n }\n\n @Override\n protected Event[] parseResponse(String rawJsonData, boolean isFailure)\n throws Throwable {\n\n if (!isFailure) {\n // Need to extract array from the first/outer JSON object\n JSONArray eventsJSONArr = new JSONObject(rawJsonData).getJSONArray(\"events\");\n return new Gson().fromJson(eventsJSONArr.toString(), Event[].class);\n } else return null;\n }\n });\n }", "public void setEvents(final Collection<SapEvent> value)\n\t{\n\t\tsetEvents( getSession().getSessionContext(), value );\n\t}", "public List<Events> getAllSystemEventsListForAll();", "private void updateList() {\r\n\t\tlistaStaff.setItems(FXCollections.observableArrayList(service\r\n\t\t\t\t.getStaff()));\r\n\t}", "public Calendar (String name) {\n this.calendarName = name;\n this.events = new ArrayList<>();\n this.alerts = new ArrayList<>();\n }", "private void onPressCalendarEntry() {\r\n if (event.hasCalendarEntry())\r\n onPressRemoveFromCalendar();\r\n else\r\n onPressAddToCalendar();\r\n }", "private void pushAllEvents() {\n boolean location = !config.ignoreLocation();\n double lat = location? LocationUtil.getInstance().getLatitude() : 0;\n double lon = location? LocationUtil.getInstance().getLongitude() : 0;\n PluriLockPackageBuilder eventPackage = new PluriLockPackageBuilder()\n .ip(PluriLockNetworkUtil.getIPAddress(context))\n .countryCode(PhoneDataManager.getCountry())\n .model(PhoneDataManager.getHardwareModel())\n .manufacturer(PhoneDataManager.getManufacturer())\n .userID(this.userID)\n .domain(this.config.getDomain())\n .language(PhoneDataManager.getDisplayLanguage())\n .timeZone(PhoneDataManager.getTimeZone())\n .appVersion(this.config.getAppVersion())\n .latitude(lat)\n .longitude(lon)\n .screenWidth(PhoneDataManager.getScreenWidth(context))\n .screenHeight(PhoneDataManager.getScreenHeight(context))\n .cpuCores(PhoneDataManager.getNumberOfCPUCores())\n .appName(PhoneDataManager.getAppName(context))\n .dateTime(PhoneDataManager.getDateTime())\n .sdkVersion(PhoneDataManager.getSDKVersion())\n .setEvents(pluriLockEvents.toArray(new PluriLockEvent[pluriLockEvents.size()]));\n networkUtil.sendEvent(eventPackage.buildPackage());\n pluriLockEvents.clear();\n }", "public void displayAllEvents()\r\n {\r\n \r\n List<Event> list;\r\n \r\n list=fillArrayList();\r\n \r\n List list2=new ArrayList();\r\n list2.add(\"Id\");\r\n list2.add(\"Event name\");\r\n list2.add(\"Organizer\");\r\n list2.add(\"date\");\r\n list2.add(\"fees\");\r\n \r\n \r\n String output = \"\";\r\n output=\"Id \"+\"Event Name \"+\"Organizer \"+\"Date \"+\" Fees($)\"+\"\\n\";\r\n System.out.println();\r\n for(int i = 0; i<list.size(); i++){\r\n \r\n String everything2 = list.get(i).toString();\r\n\r\n output += everything2+\"\\n\"+\"\\n\"; \r\n }\r\n JOptionPane.showMessageDialog(null,output,\"AllEvents\",JOptionPane.INFORMATION_MESSAGE);\r\n allMenuClass.mainMenu();\r\n }", "Collection<CalendarEvent> getActiveEvents(long when)\n{\n List<CalendarEvent> rslt = new ArrayList<CalendarEvent>();\n try {\n getAllEvents(when);\n rslt.addAll(cal_events);\n }\n catch (Exception e) {\n BasisLogger.logE(\"GOOGLECAL: problem getting events\",e);\n }\n return rslt;\n}", "private void setNotifications() {\n RealmManager realmManager = new RealmManager();\n realmManager.open();\n RecurringDao recurringDao = realmManager.createRecurringDao();\n\n List<Recurring> recurringTransactions = recurringDao.getAllRecurringTransactions();\n NotificationScheduler notificationScheduler = new NotificationScheduler(this);\n\n for (Recurring recurring : recurringTransactions) {\n notificationScheduler.schedule(recurring);\n }\n realmManager.close();\n }", "@SuppressWarnings(\"deprecation\")\r\n\tprivate void createCalendarEntry(){\r\n\t\t\r\n\t\tUri calendars = Uri.parse(CALENDAR_URI);\r\n\t\t \r\n\t\tCursor managedCursor = managedQuery(calendars, projection, null, null, null);\r\n\t\tString calName = \"\"; \r\n\t\tString calId = \"\"; \r\n\t\tif (managedCursor.moveToFirst()) {\r\n\t\t\t \r\n\t\t\t int idColumn = managedCursor.getColumnIndex(projection[0]);\r\n\t\t\t int nameColumn = managedCursor.getColumnIndex(projection[1]); \r\n\t\t\t \r\n\t\t\t do {\r\n\t\t\t calName = managedCursor.getString(nameColumn);\r\n\t\t\t calId = managedCursor.getString(idColumn);\r\n\t\t\t if (calName.contains(\"gmail\"))\r\n\t\t\t \tbreak;\r\n\t\t\t } while (managedCursor.moveToNext());\r\n\t }\r\n\t\t\r\n\t\tlong start = System.currentTimeMillis() + 120000;\r\n\t\tlong duration = DURATION + start;\r\n\t\t\r\n\t\tContentValues values = new ContentValues();\r\n\t\tvalues.put(DATE_START, start);\r\n\t\tvalues.put(DATE_END, duration);\r\n\t\tvalues.put(EVENT_TITLE, ocrData.getMedicine().getMedicine());\r\n\t\tvalues.put(EVENT_DESCRIPTION, \"Take \" + ocrData.getPatient2Medicine().getFrequencyOfIntake() \r\n\t\t\t\t+ \" by \" + ocrData.getPatient2Medicine().getMode());\r\n\t\tvalues.put(CALENDAR_ID, calId);\r\n\t\tvalues.put(EVENT_RULE, \"FREQ=\" + ocrData.getPatient2Medicine().getFrequencyOfIntake() + \";\");\r\n\t\tvalues.put(HAS_ALARM, 1);\r\n\t\t\r\n\t\tContentResolver cr = getContentResolver();\r\n\t\tUri event = cr.insert(Uri.parse(EVENT_URI), values);\r\n\t\t\r\n\t\tvalues = new ContentValues();\r\n\t\tvalues.put(\"event_id\", Long.parseLong(event.getLastPathSegment()));\r\n\t\tvalues.put(\"method\", 1);\r\n\t\tvalues.put(\"minutes\", 10 );\r\n\t\tcr.insert(Uri.parse(REMINDER_URI), values);\r\n\t}", "private void displayTasks(List<Task> taskList) {\n\n adapter.setTaskList(taskList);\n adapter.notifyDataSetChanged();\n }", "@Override\n public void run() {\n List<Event> events = mDatabase.eventDao().getEventsFromToTimeList(\n Calendar.getInstance().getTimeInMillis(), mDueDateCalendar.getTimeInMillis());\n mScheduler.setEvents(events); //sets events to mScheduler\n Event eventWithTime = mScheduler.scheduleEvent(event, timeLengthInMillis);\n// //if an event couldn't be scheduled\n if(eventWithTime == null){\n toast.show();\n }\n //if a new event is being created\n else if (mEventId == DEFAULT_EVENT_ID) {\n // insert new event\n mDatabase.eventDao().insertEvent(eventWithTime);\n } else {\n //update event\n eventWithTime.setId(mEventId);\n mDatabase.eventDao().updateEvent(eventWithTime);\n }\n finish(); //closes activity\n }", "private void syncListFromTodo() {\r\n DefaultListModel<String> dlm = new DefaultListModel<>();\r\n for (Task task : myTodo.getTodo().values()) {\r\n if (!task.isComplete() || showCompleted) {\r\n String display = String.format(\"%1s DueDate: %10s %s %3s\", task.getName(), task.getDueDate(),\r\n task.isComplete() ? \" Completed!\" : \" Not Completed\", task.getPriority());\r\n dlm.addElement(display);\r\n list.setFont(new Font(\"TimesRoman\", Font.PLAIN, 15));\r\n }\r\n }\r\n list.setModel(dlm);\r\n }", "private void refresh() {\n ArrayList<Note> notes = db.getAllNotes();\n ArrayList<Note> notesWithNotification = new ArrayList<Note>();\n\n for (int index = 0; index < notes.size(); index++) {\n if (notes.get(index).getNotification() != null) {\n notesWithNotification.add(notes.get(index));\n }\n }\n\n mNoteWithNotificationList = notesWithNotification;\n }", "private void updateUI() {\n /* Making an array of strings to store tasks entered by the user. */\n ArrayList<String> taskList = new ArrayList<>();\n SQLiteDatabase db = OpenDB.getReadableDatabase();\n Cursor cursor = db.query(AccessData.ToDoEntry.table,\n new String[]{AccessData.ToDoEntry._ID, AccessData.ToDoEntry.todo_title},\n null, null, null, null, null);\n while (cursor.moveToNext()) {\n int idx = cursor.getColumnIndex(AccessData.ToDoEntry.todo_title);\n taskList.add(cursor.getString(idx));\n }\n\n /* Check if array adapter is created. */\n if (listAdapter == null) {\n /* If adapter is not created i.e. NULL, create a new adapter */\n listAdapter = new ArrayAdapter<>(this,\n R.layout.todo_item,\n R.id.task_title,\n taskList);\n /* Set the above created adapter as the todoListView adapter */\n todoListView.setAdapter(listAdapter);\n } else {\n /* If created: it is assigned to the todoListView */\n listAdapter.clear(); // clear it\n listAdapter.addAll(taskList); // re-populate it\n listAdapter.notifyDataSetChanged(); // notify view to refresh with new data values\n }\n\n cursor.close();\n db.close();\n }", "private void launchSelectClearableCalendars() {\n Intent intent = new Intent(Intent.ACTION_VIEW);\n intent.setClass(mContext, SelectClearableCalendarsActivity.class);\n intent.setFlags(Intent.FLAG_ACTIVITY_REORDER_TO_FRONT | Intent.FLAG_ACTIVITY_SINGLE_TOP);\n mContext.startActivity(intent);\n }", "private void setList() {\n Log.i(LOG,\"+++ setList\");\n txtCount.setText(\"\" + projectTaskList.size());\n if (projectTaskList.isEmpty()) {\n return;\n }\n\n projectTaskAdapter = new ProjectTaskAdapter(projectTaskList, darkColor, getActivity(), new ProjectTaskAdapter.TaskListener() {\n @Override\n public void onTaskNameClicked(ProjectTaskDTO projTask, int position) {\n projectTask = projTask;\n mListener.onStatusUpdateRequested(projectTask,position);\n }\n\n\n });\n\n mRecyclerView.setAdapter(projectTaskAdapter);\n mRecyclerView.scrollToPosition(selectedIndex);\n\n }", "public ArrayList<Event> getCalendarEventsByDay()\n {\n ArrayList<Event> dayListOfEvents = new ArrayList<>();\n\n for(int i = 0; i < events.size(); i++)\n {\n if( (events.get(i).getCalendar().get(Calendar.YEAR) == currentCalendar.get(Calendar.YEAR)) &&\n (events.get(i).getCalendar().get(Calendar.MONTH) == currentCalendar.get(Calendar.MONTH)) &&\n (events.get(i).getCalendar().get(Calendar.DAY_OF_MONTH) == currentCalendar.get(Calendar.DAY_OF_MONTH)))\n {\n dayListOfEvents.add(events.get(i));\n }\n }\n\n return dayListOfEvents;\n }", "private void setDataListReminder() {\n mReminderAdapter = new ReminderAdapter(mReminderDtoList, BaseActivity.this);\n RecyclerView.LayoutManager mLayoutManager = new LinearLayoutManager(BaseActivity.this, LinearLayoutManager.VERTICAL, false);\n mRecyclerViewReminder.setLayoutManager(mLayoutManager);\n mReminderAdapter.notifyDataSetChanged();\n mRecyclerViewReminder.setAdapter(mReminderAdapter);\n }", "public ArrayList<Event> getEvents(){return new ArrayList<Event>(events);}", "public void refreshListView() {\n \n \tLog.i(\"refresh list view\", \"Enter\");\n \ttry {\n \t\tif(taskListCursor != null) {\n\t \t\ttaskListCursor.close();\n\t \t\ttaskListCursor = null;\n \t\t}\n FileDbAdapter fda = new FileDbAdapter();\n fda.open();\n \t\ttaskListCursor = fda.fetchTasksForSource(getSource(), true);\n \tfda.close();\n \t} catch (Exception e) {\n \t\te.printStackTrace(); \t// TODO handle exception\n \t}\n \ttasks.changeCursor(taskListCursor);\n \tstartManagingCursor(taskListCursor);\n \ttasks.notifyDataSetChanged();\n\n }", "public void syncState() {\n if (mValidVisiblePosition > 0) {\n if (mCurrentView == MONTH_AND_DAY_VIEW) {\n mDayPickerView.postSetSelection(mValidVisiblePosition);\n } else if (mCurrentView == YEAR_VIEW) {\n mYearPickerView.postSetSelectionFromTop(mValidVisiblePosition,\n mValidVisiblePositionOffset);\n }\n } else {\n onDateChanged(false, false);\n }\n }", "public void updateData() {\n\t\tcal = eventsData.getCalendar();\n\t\tfirstDayOfWeek = eventsData.getFirstDayOfWeek();\n\t\tcurrentDayOfMonth = eventsData.getDayNumber();\n\t\tnumberOfDays = eventsData.getNumberOfDays();\n\t\tnumberOfWeeks = eventsData.getNumberOfWeeks();\n\t\tyear = eventsData.getYearNumber();\n\t\tmonth = eventsData.getMonthNumber();\n\t\tday = eventsData.getDayNumber();\n\t\tweek = eventsData.getDayOfWeek();\n\t}", "@FXML\n public void OADefault(ActionEvent event) {\n Appointments.setItems(Appointment.getAllAppointments());\n }", "CalendarFrame(EventModel eM) {\n\t\tsetDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tsetTitle(\"CS151Project\");\n\t\tsetSize(1200, 400);\n\t\tsetVisible(true);\n\t\tsetLayout(new GridLayout(1, 2));\n\t\taddWindowListener(new WindowAdapter()\n\t\t{\n\t\t public void windowClosing(WindowEvent e)\n\t\t {\n\t\t \tObjectOutputStream out = null;\n\t\t\t\ttry {\n\t\t\t\t\tout = new ObjectOutputStream(new FileOutputStream(\"events.data\"));\n\t\t\t\t\tout.writeObject(eventsData.getAllEvents());\n\t\t\t\t\tout.close();\n\t\t\t\t} catch (FileNotFoundException e1) {\n\t\t\t\t\tpromptMsg(e1.getMessage(), \"Message\");\n\t\t\t\t} catch (IOException e1) {\n\t\t\t\t\tpromptMsg(e1.getMessage(), \"Message\");\n\t\t\t\t}\n\t\t }\n\t\t});\n\n\t\teventsData = eM;\n\t\teventsRender = new DayViewRender();\n\n\t\teventsData.attach(new ChangeListener() {\n\n\t\t\t@Override\n\t\t\tpublic void stateChanged(ChangeEvent e) {\n\t\t\t\tupdateData();\n\t\t\t\tupdateTableView();\n\t\t\t\tupdateEventsView(eventsRender);\n\t\t\t}\n\t\t});\n\n\t\t// previous day button\n\t\tJButton preDay = new JButton(\"<-\");\n\t\tpreDay.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent ae) {\n\t\t\t\tcal.add(Calendar.DAY_OF_MONTH, -1);\n\t\t\t\teventsData.updateDate(cal);\n\t\t\t}\n\t\t});\n\n\t\t// current day button\n\t\tJButton today = new JButton(\"Today\");\n\t\ttoday.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent ae) {\n\t\t\t\tcal = new GregorianCalendar();\n\t\t\t\teventsData.updateDate(cal);\n\t\t\t}\n\t\t});\n\n\t\t// next day button\n\t\tJButton nextDay = new JButton(\"->\");\n\t\tnextDay.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent ae) {\n\t\t\t\tcal.add(Calendar.DAY_OF_MONTH, +1);\n\t\t\t\teventsData.updateDate(cal);\n\t\t\t}\n\t\t});\n\n\t\t// Top1 left: panel1\n\t\tJPanel panel1 = new JPanel();\n\t\tpanel1.setLayout(new BorderLayout());\n\t\tpanel1.add(preDay, BorderLayout.WEST);\n\t\tpanel1.add(today, BorderLayout.CENTER);\n\t\tpanel1.add(nextDay, BorderLayout.EAST);\n\n\t\t// previous month button\n\t\tJButton b1 = new JButton(\"<-\");\n\t\tb1.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent ae) {\n\t\t\t\tcal.add(Calendar.MONTH, -1);\n\t\t\t\teventsData.updateDate(cal);\n\t\t\t}\n\t\t});\n\n\t\t// next month button\n\t\tJButton b2 = new JButton(\"->\");\n\t\tb2.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent ae) {\n\t\t\t\tcal.add(Calendar.MONTH, +1);\n\t\t\t\teventsData.updateDate(cal);\n\t\t\t}\n\t\t});\n\n\t\t// Month year label\n\t\tlabel = new JLabel();\n\t\tlabel.setHorizontalAlignment(SwingConstants.CENTER);\n\n\t\t// Top2 left: panel2\n\t\tJPanel panel2 = new JPanel();\n\t\tpanel2.setLayout(new BorderLayout());\n\t\tpanel2.add(b1, BorderLayout.WEST);\n\t\tpanel2.add(label, BorderLayout.CENTER);\n\t\tpanel2.add(b2, BorderLayout.EAST);\n\n\t\tJPanel topLeft = new JPanel();\n\t\ttopLeft.setLayout(new GridLayout(2, 1));\n\t\ttopLeft.add(panel1);\n\t\ttopLeft.add(panel2);\n\n\t\t// Calendar model\n\t\tString[] columns = { \"Sun\", \"Mon\", \"Tue\", \"Wed\", \"Thu\", \"Fri\", \"Sat\" };\n\t\tmodel = new DefaultTableModel(null, columns) {\n\t\t\tpublic boolean isCellEditable(int row, int column) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t};\n\n\t\t// Calendar table\n\t\ttable = new JTable(model) {\n\t\t\tpublic TableCellRenderer getCellRenderer(int row, int column) {\n\t\t\t\treturn new CellRenderer();\n\t\t\t}\n\t\t};\n\t\ttable.setCellSelectionEnabled(true);\n\t\ttable.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);\n\t\ttable.addMouseListener(new MouseAdapter() {\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\tint rowCal = table.getSelectedRow();\n\t\t\t\tint columnCal = table.getSelectedColumn();\n\t\t\t\tint val = (int) model.getValueAt(rowCal, columnCal);\n\t\t\t\tcal.set(Calendar.DAY_OF_MONTH, val);\n\t\t\t\teventsData.updateDate(cal);\n\t\t\t}\n\t\t});\n\n\t\t// middle left: pane1\n\t\tJScrollPane pane1 = new JScrollPane(table);\n\n\t\t// bottom left: create\n\t\tJButton create = new JButton(\"Create\");\n\t\tcreate.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tcreateFrame();\n\t\t\t}\n\t\t});\n\n\t\t// left: paneLeft\n\t\tJPanel panelLeft = new JPanel();\n\t\tpanelLeft.setLayout(new BorderLayout());\n\t\tpanelLeft.add(topLeft, BorderLayout.NORTH);\n\t\tpanelLeft.add(pane1, BorderLayout.CENTER);\n\t\tpanelLeft.add(create, BorderLayout.SOUTH);\n\n\t\t// top right\n\t\tJButton dayView = new JButton(\"Day\");\n\t\tdayView.addActionListener(eventsViewListener(DAY));\n\t\tJButton weekView = new JButton(\"Week\");\n\t\tweekView.addActionListener(eventsViewListener(WEEK));\n\t\tJButton monthView = new JButton(\"Month\");\n\t\tmonthView.addActionListener(eventsViewListener(MONTH));\n\t\tJButton agendaView = new JButton(\"Agenda\");\n\t\tagendaView.addActionListener(eventsViewListener(AGENDA));\n\t\tJButton inputFile = new JButton(\"From File\");\n\t\tinputFile.addActionListener(loadFile());\n\t\tJPanel topRightPanel = new JPanel();\n\t\ttopRightPanel.setLayout(new GridLayout(1, 5));\n\t\ttopRightPanel.add(dayView);\n\t\ttopRightPanel.add(weekView);\n\t\ttopRightPanel.add(monthView);\n\t\ttopRightPanel.add(agendaView);\n\t\ttopRightPanel.add(inputFile);\n\n\t\t// Events table\n\t\teventsTable = new JTable() {\n\t\t\tpublic Component prepareRenderer(TableCellRenderer renderer, int row, int column) {\n\t\t\t\tComponent result = super.prepareRenderer(renderer, row, column);\n\t\t\t\tif (result instanceof JComponent) {\n\t\t\t\t\t((JComponent) result).setBorder(new MatteBorder(1, 1, 0, 0, Color.BLACK));\n\t\t\t\t}\n\t\t\t\treturn result;\n\t\t\t}\n\t\t};\n\n\t\tJScrollPane pane2 = new JScrollPane(eventsTable);\n\n\t\tJPanel panelRight = new JPanel();\n\t\tpanelRight.setLayout(new BorderLayout());\n\t\tpanelRight.add(topRightPanel, BorderLayout.NORTH);\n\t\tpanelRight.add(pane2, BorderLayout.CENTER);\n\n\t\tadd(panelLeft);\n\t\tadd(panelRight);\n\n\t\teventsRender = new DayViewRender();\n\t\tupdateData();\n\t\tupdateTableView();\n\t\tupdateEventsView(eventsRender);\n\n\t}", "@Override\n public void onClick(View v) {\n \tToast.makeText(TaskActivity.this, \"Gathering Logs!\", Toast.LENGTH_SHORT).show();\n \t\n \tif(mStartGatherTime == 0) {\n\t \tmCalendarDates = ReadCalendar.readCalendarEvent(getApplicationContext());\n\t \tmLogText.setText(\"Events found over all time: \" + Integer.toString(mCalendarDates.size()));\n \t}\n \telse\n \t{\n \t\tmCalendarDates = ReadCalendar.readCalendarEvent(getApplicationContext(), mStartGatherTime, System.currentTimeMillis());\n \t\tString displayDate = String.valueOf(mSelectedDay) + \"/\" + \n\t \t\t\t\t\tString.valueOf(mSelectedMonth + 1) + \"/\" + String.valueOf(mSelectedYear);\n\t \tmLogText.setText(\"Events found since \" + displayDate + \": \" + Integer.toString(mCalendarDates.size()));\n \t}\n \t\n \t//DEBUG ONLY, REMOVE LATER\n \tfor(String dates : mCalendarDates)\n \t{\n \t\tLog.e(\"CALENDAR\", dates);\n \t}\n }", "void storeEvents()\n {\n this.storedPresences = new ArrayList<Presence>();\n this.storeEvents = true;\n }", "@NonNull\n public static List<EventItem> getEvents(Context context, int id) throws SecurityException {\n List<EventItem> list = new ArrayList<>();\n if (!Permissions.checkPermission(context, Permissions.READ_CALENDAR, Permissions.WRITE_CALENDAR)) {\n return list;\n }\n ContentResolver contentResolver = context.getContentResolver();\n Cursor c = contentResolver.query(CalendarContract.Events.CONTENT_URI,\n new String[]{CalendarContract.Events.TITLE,\n CalendarContract.Events.DESCRIPTION,\n CalendarContract.Events.DTSTART,\n CalendarContract.Events.DTEND,\n CalendarContract.Events.RRULE,\n CalendarContract.Events.RDATE,\n CalendarContract.Events._ID,\n CalendarContract.Events.CALENDAR_ID,\n CalendarContract.Events.ALL_DAY},\n CalendarContract.Events.CALENDAR_ID + \"='\" + id + \"'\",\n null, \"dtstart ASC\");\n if (c != null && c.moveToFirst()) {\n do {\n String title = c.getString(c.getColumnIndex(CalendarContract.Events.TITLE));\n String description = c.getString(c.getColumnIndex(CalendarContract.Events.DESCRIPTION));\n String rrule = c.getString(c.getColumnIndex(CalendarContract.Events.RRULE));\n String rDate = c.getString(c.getColumnIndex(CalendarContract.Events.RDATE));\n int calendarId = c.getInt(c.getColumnIndex(CalendarContract.Events.CALENDAR_ID));\n int allDay = c.getInt(c.getColumnIndex(CalendarContract.Events.ALL_DAY));\n long dtStart = c.getLong(c.getColumnIndex(CalendarContract.Events.DTSTART));\n long dtEnd = c.getLong(c.getColumnIndex(CalendarContract.Events.DTEND));\n long eventID = c.getLong(c.getColumnIndex(CalendarContract.Events._ID));\n list.add(new EventItem(title, description, rrule, rDate,\n calendarId, allDay, dtStart, dtEnd, eventID));\n } while (c.moveToNext());\n c.close();\n }\n return list;\n }", "public void displayCoursFromCalendar(){\n\n getAllData(new ListPlanningCallback() {\n @Override\n public void onCallback(List<Planning> listPlanning) {\n Collections.sort(listPlanning, new SortHdebut() );\n\n int indexCalendar = getIntent().getIntExtra(\"indiceCalendar\", 0);\n\n for (int i = 0; i < listPlanning.size(); i++) {\n\n Double calendarLatitude = Double.parseDouble(listPlanning.get(indexCalendar).getLatitude());\n Double calendarLongitude = Double.parseDouble(listPlanning.get(indexCalendar).getLongitude());\n\n String nomCalendar = listPlanning.get(indexCalendar).getNom();\n String enseignantCalendar = listPlanning.get(indexCalendar).getEnseignant();\n String salleCalendar = listPlanning.get(indexCalendar).getSalle();\n String hDebutCalendar = listPlanning.get(indexCalendar).getHdebut();\n String hFinCalendar = listPlanning.get(indexCalendar).getHfin();\n String mDebutCalendar = listPlanning.get(indexCalendar).getMdebut();\n String mFinCalendar = listPlanning.get(indexCalendar).getMfin();\n String horaireCalendar = hDebutCalendar + \"h\" + mDebutCalendar + \" - \" + hFinCalendar + \"h\" + mFinCalendar;\n\n LatLng latLngCalendar = new LatLng(calendarLatitude, calendarLongitude);\n\n CameraPosition position = new CameraPosition.Builder()\n .target(latLngCalendar)\n .zoom(18)\n .tilt(0) // inclinaison de la camera max:60\n .build();\n\n mapboxMap.animateCamera(CameraUpdateFactory.newCameraPosition(position), 500);\n\n markerView = annotations(nomCalendar, enseignantCalendar, salleCalendar, horaireCalendar, calendarLatitude, calendarLongitude);\n markerViewManager.addMarker(markerView);\n }\n }\n });\n\n\n }", "private void fetchAllEvents() {\n progressDialog.show();\n StringRequest stringRequest = new StringRequest(Request.Method.GET,\n Constants.URL_ALL_EVENTS,\n new Response.Listener<String>() {\n @Override\n public void onResponse(String response) {\n try {\n progressDialog.dismiss();\n\n // response is a JSONArray\n JSONArray jArray = new JSONArray(response);\n\n // extracting JSONObjects from each element of JSONArray\n for (int i = 0; i < jArray.length(); i++) {\n JSONObject jb = jArray.getJSONObject(i);\n int id = jb.getInt(\"id\");\n String name = jb.getString(\"name\");\n String venue = jb.getString(\"venue\");\n String event_date = jb.getString(\"event_date\");\n String reg_deadline = jb.getString(\"reg_deadline\");\n String description = jb.getString(\"description\");\n int organizer_id = jb.getInt(\"organizer_id\");\n\n // creating a new Event object\n Event event = new Event(id, name, venue, event_date,\n reg_deadline, description, organizer_id);\n\n // add object to the array list\n arrayList.add(event);\n // notifying the adapter for the change\n adapter.notifyDataSetChanged();\n\n }\n } catch (JSONException e) {\n Toast.makeText(getApplicationContext(), e.getMessage(), Toast.LENGTH_LONG).show();\n e.printStackTrace();\n }\n }\n },\n new Response.ErrorListener() {\n @Override\n public void onErrorResponse(VolleyError error) {\n progressDialog.hide();\n Toast.makeText(getApplicationContext(), error.getMessage(), Toast.LENGTH_LONG).show();\n }\n }) {\n\n };\n RequestHandler.getInstance(this).addToRequestQueue(stringRequest);\n }", "public void appendToReminders(List<Date> reminders);", "@Override\n\tpublic void commitCalendar(CalendarEdit edit) {\n\t\t\n\t}", "public void repaintView(){\n \n loadCalendarLabels();\n if (!checkBoxesHaveBeenClicked)\n {\n populateMonthWithEvents();\n }\n else\n {\n ActionEvent actionEvent = new ActionEvent();\n handleCheckBoxAction(actionEvent);\n }\n //populateMonthWithEvents();\n }", "private EventController()\n {\n events = new ArrayList<>();\n currentCalendar = Calendar.getInstance();\n }", "private void updateAppointments(Appointment[] appointments) {\n\t\tif (appointments == null) { // Retrieve from Storage\n\t\t\ttry {\n\t\t\t\tappointments = AppointmentUtil.retrieve(getContext());\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\n\t\t\tif (appointments == null) { // When there are still no menus -> Update from Server\n\t\t\t\tonRefresh();\n\t\t\t}\n\t\t} else { // Store\n\t\t\ttry {\n\t\t\t\tAppointmentUtil.store(appointments, getContext());\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\n\t\tif (appointments != null) {\n\t\t\t// Only add apointments which are in the current month or future.\n\t\t\tList<Appointment> appointmentList = new ArrayList<>();\n\n\t\t\tCalendar now = Calendar.getInstance();\n\t\t\tresetCalendarToMonth(now);\n\n\t\t\tfor (Appointment appointment : appointments) {\n\t\t\t\tCalendar appointmentMonth = appointment.getDate();\n\t\t\t\tresetCalendarToMonth(appointmentMonth);\n\n\t\t\t\tif (appointmentMonth.getTimeInMillis() - now.getTimeInMillis() >= 0) { // Check if present or future month\n\t\t\t\t\tappointmentList.add(appointment);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// Apply appointments\n\t\t\tappointmentAdapter.clear();\n\t\t\tappointmentAdapter.addAll(appointmentList);\n\t\t}\n\t}", "private void updateUI() {\n ArrayList<String> taskList = new ArrayList<>();\n\n //a read-only database object will be returned\n SQLiteDatabase db = dbHelper.getReadableDatabase();\n\n //query the table, returning a cursor over the set with all the columns\n Cursor cursor = db.query(TaskContract.TaskEntry.TABLE,\n new String[]{TaskContract.TaskEntry._ID, TaskContract.TaskEntry.COL_TASK_TITLE},\n null, null, null, null, null);\n\n //Place the items in an ArrayList of Strings\n while (cursor.moveToNext()) {\n int columnIndex = cursor.getColumnIndex(TaskContract.TaskEntry.COL_TASK_TITLE);\n taskList.add(cursor.getString(columnIndex));\n }\n\n //If the adapter is not created or null, then set it as the adapter of the ListView\n if (arrayAdapterToDo == null) {\n arrayAdapterToDo = new ArrayAdapter<String>(this,\n R.layout.item_todo, //what view to user for the items\n R.id.taskTitle, //where to put the String of data\n taskList); //where to get all the data\n listView.setAdapter(arrayAdapterToDo); //set it as the adapter of the ListView Instance\n } else {\n arrayAdapterToDo.clear(); //remove all the elements from the list\n arrayAdapterToDo.addAll(taskList); //add all the items from the database, came from the while loop populating taskList\n arrayAdapterToDo.notifyDataSetChanged(); //alert the ListView that the data changed and it should refresh itself\n }\n cursor.close(); //close the cursor object\n db.close(); //close the database object\n }", "private void queryEvents() {\n ParseQuery<Event> query = ParseQuery.getQuery(Event.class);\n // include data referred by user key\n query.include(Event.KEY_HOST);\n // limit query to latest 20 items\n query.setLimit(30);\n // order posts by creation date (newest first)\n query.addDescendingOrder(\"createdAt\");\n // start an asynchronous call for events\n query.findInBackground(new FindCallback<Event>() {\n @Override\n public void done(List<Event> events, com.parse.ParseException e) {\n\n // check for errors\n if (e != null) {\n Log.e(TAG, \"Issue with getting posts\", e);\n return;\n }\n\n // for debugging purposes let's print every event description to logcat\n for (Event event : events) {\n Log.i(TAG, \"Event: \" + event.getDescription() + \", username: \" + event.getHost().getUsername());\n }\n\n // save received events to list and notify adapter of new data\n allEvents.addAll(events);\n }\n\n });\n }", "public void addEvents(List<TimelineEvent> events) {\n this.events.addAll(events);\n }", "public CarritoListAdapter(List<ItemCarrito> list, CarritoHolder.Events events){\n this.list = list;\n this.events = events;\n idEditable=new ArrayList<>();\n }", "public void update_list_view() {\n\n Collections.sort(mA.alarms);\n\n // make array adapter to bind arraylist to listview with new custom item layout\n AlarmsAdapter aa = new AlarmsAdapter(mA, R.layout.alarm_entry, mA.alarms);\n alarm_list_view.setAdapter(aa);\n registerForContextMenu(alarm_list_view);\n aa.notifyDataSetChanged(); // to refresh items in the list\n }", "public void refreshAllRssFeeds()\n {\n Vector rssContactList = new Vector();\n rssContactList = opSetPersPresence.getContactListRoot().\n getRssURLList(rssContactList);\n Iterator rssContact = rssContactList.iterator();\n while(rssContact.hasNext())\n {\n ContactRssImpl contact = (ContactRssImpl)rssContact.next();\n try\n {\n \n submitRssQuery(contact, false);\n }\n catch (Exception ex)\n {\n logger.error(\"Failed to refresh feed for \" + contact, ex);\n }\n }\n }" ]
[ "0.61922646", "0.6084261", "0.5930331", "0.58071715", "0.57671237", "0.5715787", "0.5703122", "0.5697259", "0.5692788", "0.5645479", "0.56288356", "0.5598522", "0.5584245", "0.5568958", "0.5552112", "0.5535976", "0.5515396", "0.55134803", "0.5496196", "0.5490261", "0.5472444", "0.54706025", "0.5468782", "0.5467092", "0.5434006", "0.54087174", "0.53919715", "0.5376778", "0.5361895", "0.5351558", "0.5317905", "0.5301209", "0.52988625", "0.52979815", "0.5284949", "0.5275165", "0.52738965", "0.5265177", "0.5256824", "0.5245455", "0.52271", "0.5221914", "0.5221675", "0.5192891", "0.51480985", "0.51480806", "0.51379716", "0.511624", "0.5092919", "0.5087716", "0.50837517", "0.50825", "0.50674677", "0.5066578", "0.50658727", "0.5059198", "0.5059071", "0.505566", "0.50550944", "0.50466883", "0.5040807", "0.50334936", "0.5025596", "0.50218046", "0.4995619", "0.49950874", "0.49899912", "0.4989775", "0.49882478", "0.49826714", "0.49817488", "0.49592417", "0.49548483", "0.4954174", "0.4945002", "0.49421036", "0.49383095", "0.49379426", "0.4937861", "0.49376252", "0.49371496", "0.4935581", "0.49187443", "0.49146855", "0.4905026", "0.4903729", "0.489315", "0.4892996", "0.48893252", "0.4885293", "0.48798603", "0.48701185", "0.48687562", "0.4868673", "0.48580933", "0.4856177", "0.48536032", "0.48491737", "0.48440757", "0.48407757" ]
0.6387455
0
Forward changes in calendar event list to agenda
private void forwardChanges(ListChangeListener.Change<? extends CalendarEvent> c) { while (c.next()) { if (c.wasRemoved()) { for (CalendarEvent removedEvent : c.getRemoved()) { agenda.appointments().remove(removedEvent); } } if (c.wasAdded()) { for (CalendarEvent addedEvent : c.getAddedSubList()) { addedEvent.setAppointmentGroup(appointmentGroup); agenda.appointments().add(c.getFrom(), addedEvent); } } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void onAddToCalendarSuccess() {\r\n database.eventDao().update(event);\r\n updateSpeedDialActionItems();\r\n showToast(getString(R.string.event_calendar_add_event_sucess), Toast.LENGTH_LONG);\r\n }", "private void setConnections(ObservableList<CalendarEvent> calendarEventList) {\n // populate the calendar\n // setting the appointment group applies the correct CSS to it\n calendarEventList.forEach((calendarEvent -> calendarEvent.setAppointmentGroup(appointmentGroup)));\n agenda.appointments().addAll(calendarEventList);\n\n // push the changes to agenda\n calendarEventList.addListener(this::forwardChanges);\n }", "public void add_events_screen(View view) {\n Calendar calendar = Calendar.getInstance();\n calendar.set(selectedYear, selectedMonth, selectedDay);\n\n Intent intent = new Intent(Intent.ACTION_EDIT);\n intent.setType(\"vnd.android.cursor.item/event\");\n intent.putExtra(CalendarContract.Events.TITLE, \"\");\n intent.putExtra(CalendarContract.EXTRA_EVENT_BEGIN_TIME, calendar.getTimeInMillis());\n intent.putExtra(CalendarContract.EXTRA_EVENT_END_TIME, calendar.getTimeInMillis());\n intent.putExtra(CalendarContract.Events.ALL_DAY, false);\n intent.putExtra(CalendarContract.Events.DESCRIPTION,\"\");\n startActivity(intent);\n }", "void parseEventList() {\n\t\tfor (int eventsId : events.keySet()) {\n\t\t\tfinal Event event = events.get(eventsId);\n\t\t\tif (users.get(event.getUser().getName()).isActiveStatus()\n\t\t\t\t\t&& !event.isViewed()\n\t\t\t\t\t&& event.getInnerSisdate().compareTo(\n\t\t\t\t\t\t\tnew GregorianCalendar()) >= 0) {\n\t\t\t\tevent.setViewed(true);\n\t\t\t\tfinal SimpleDateFormat fm = new SimpleDateFormat(\n\t\t\t\t\t\t\"dd.MM.yyyy-HH:mm:ss\");\n\t\t\t\tt.schedule(new TimerTask() {\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\tif (event.isActive()) {\n\t\t\t\t\t\t\tgenerateEventMessage(\"User \"\n\t\t\t\t\t\t\t\t\t+ event.getUser().getName()\n\t\t\t\t\t\t\t\t\t+ \" \"\n\t\t\t\t\t\t\t\t\t+ fm.format(event.getInnerSisdate()\n\t\t\t\t\t\t\t\t\t\t\t.getTime()) + \" \" + event.getText());\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}, event.getInnerSisdate().getTime());\n\n\t\t\t}\n\t\t}\n\n\t}", "public static void eventList() {\n\t\tfor (Map.Entry<Calendar, TreeSet<Event>> entry : calendarToEvent.entrySet()) {\n\t\t\tTreeSet<Event> value = entry.getValue();\n\t\t\tfor (Event e: value) {\n\t\t\t\tSystem.out.println(e.toString());\n\t\t\t}\n\t\t}\n\t}", "public void calendarListener(CalendarEvent ce){\n Date triggerDate = (Date)ce.getTriggerDate().clone();\n setInicioRegistrar(triggerDate);\n setFinRegistrar(triggerDate);\n }", "private void refreshEvents() {\r\n\t\ttry {\r\n\t\t\tif (SimpleSetting.ShowAlerts.getBoolean(true)) {\r\n\t\t\t\tloadUpcomingEvents();\r\n\t\t\t}\r\n\t\t} catch(Exception e) {\r\n\t\t\tRTeamLog.i(SUFFIX, \"Exception while refreshing events: %s\", e.getMessage());\r\n\t\t}\r\n\t}", "protected void listEvents(Calendar calendar) {\n List<Event> events = calendar.getEvents();\n List<String> list = new ArrayList<>();\n\n for (Event event : events) {\n list.add(event.getName());\n }\n\n listItem(list);\n }", "protected abstract void createHistoryEvents();", "public void activityListener(CalendarActivityEvent ae){\n CalendarActivity activity = ae.getCalendarActivity();\n \n if(activity != null){\n setActividadEditar((CalendarActivityClinica)activity);\n if(actividadEditar.getTimeType().equals(CalendarActivity.TimeType.ALLDAY)){\n setTodoElDiaEditar(true);\n }else{\n setTodoElDiaEditar(false);\n }\n setInicioEditar(actividadEditar.getStartDate(null));\n setFinEditar(actividadEditar.getEndDate(null));\n }else{\n System.out.println(\"No activity with event \" + ae.toString());\n }\n }", "EventChannel refresh();", "@Override\n\tprotected void addItineraryToCalendar() {\n\t\tstartActivity(generateHotelCalendarIntent(false));\n\t\tstartActivity(generateHotelCalendarIntent(true));\n\n\t\tOmnitureTracking.trackHotelConfirmationAddToCalendar();\n\t}", "public void setEvents(List<TimelineEvent> events) {\n this.events = events;\n }", "@Override\n public void onChanged(@Nullable List<Event> events) {\n adapter.setEvents(events);\n for (Event event:events) {\n Log.e(\"** EVENT **\", \"CATEGORY: \" +event.getCategoryId() + \", Event : \" + event.getName());\n }\n }", "public void refresh(){\n\t\tlong d = calendar.getDate();\n\t\tDate todayDate = new Date(d);\n\t\tdateText.setText(\"Events for \" + todayDate);\n\t\tArrayList<String> events = new ArrayList<String>();\n\t\t\n\t\tfor (int i =0; i < 5; i++){\n\t\t\tevents.add(\"Sample event \" + i + \" for \" + todayDate);\n\t\t}\n\t\t\n\t\tArrayAdapter<String> eventArrayAdapter = new ArrayAdapter<String>(this, android.R.layout.simple_list_item_1, events);\n\t\teventList.setAdapter(eventArrayAdapter);\n\t}", "public void setEvents(Event[] event) {\n\n setEventID(event[0].getEventID());\n\n //Store keys as EventID for later use to put it all in order\n Map<String, ArrayList<Event>> listMap = new HashMap<>();\n\n for (int i = 0; i < event.length; i++) {\n\n events.put(event[i].getEventID(), event[i]);\n eventTypes.add(event[i].getEventType().toLowerCase());\n\n if(!listMap.containsKey(event[i].getPersonID())) {\n ArrayList<Event> newEventList = new ArrayList<>();\n listMap.put(event[i].getPersonID(), newEventList);\n }\n listMap.get(event[i].getPersonID()).add(event[i]);\n }\n\n // Chronologically order for events\n for (String key : listMap.keySet()) {\n Set birthSet = new HashSet<>(); // birth events come first\n Set deathSet = new HashSet<>(); // death events come last (obviously)\n ArrayList<Event> eventList = new ArrayList<Event>();\n\n // Adding events in chronological order based on events\n for(int i = 0; i < listMap.get(key).size(); i++) {\n Event currEvent = listMap.get(key).get(i);\n\n if(currEvent.getEventType().toLowerCase().equals(\"birth\")) {\n birthSet.add(currEvent);\n } else if (currEvent.getEventType().toLowerCase().equals(\"death\")) {\n deathSet.add(currEvent);\n } else { // get events by year and sort them\n if(eventList.size() > 0) {\n if (currEvent.getYear() < eventList.get(0).getYear()) {\n eventList.add(0, currEvent);\n } else if (currEvent.getYear() >= eventList.get(eventList.size() - 1).getYear()) {\n eventList.add(currEvent);\n } else {\n for (int j = 0; j < eventList.size() - 1; j++) {\n if(eventList.get(j).getYear() <= currEvent.getYear() && eventList.get(j + 1).getYear() > currEvent.getYear()) {\n eventList.add(j + 1, currEvent);\n }\n }\n }\n } else {\n eventList.add(currEvent);\n }\n }\n }\n\n ArrayList<Event> orderedList = new ArrayList<Event>(); // will store ordered list for events\n\n orderedList.addAll(birthSet);\n orderedList.addAll(eventList);\n orderedList.addAll(deathSet);\n\n personEvents.put(key, orderedList);\n }\n }", "public void pullData() {\n // Listener for changes in the database\n ValueEventListener postListener = new ValueEventListener() {\n @Override\n public void onDataChange(DataSnapshot dataSnapshot) {\n Log.d(TAG, \"Preparing to update the Calendar\");\n\n Object o = dataSnapshot.child(TAG).getValue();\n\n if (o == null)\n return;\n\n // We don't know what type object will be\n List <Map<String, Object>> list = new ArrayList<>();\n\n if (o.getClass().isInstance(list))\n list = (List<Map<String, Object>>) o;\n\n for (int i = 0; i < list.size(); i++) {\n Map<String, Object> map = list.get(i);\n\n // Get name of the list from the map\n String date;\n if (map.get(\"date\") == null)\n ; // Purposely empty because\n // We don't want to add a ToDoList\n // with a null name.\n else {// Otherwise, we translate the map data to create an event list\n date = (String) map.get(\"date\");\n\n // Get List of bools from the map\n List<Object> event = new ArrayList<>();\n if (map.get(\"eventList\") != null) {\n event = (List<Object>) map.get(\"eventList\");\n\n EventList eventList = new EventList(date);\n\n for (int j = 0; j < event.size(); j++) {\n Map<String, Object> eventMap = (Map<String, Object>) event.get(j);\n\n String end;\n String start;\n String eventName;\n\n if (eventMap.get(\"end\") != null) {\n end = (String) eventMap.get(\"end\");\n }\n else\n end = \"\";\n if (eventMap.get(\"start\") != null) {\n start = (String) eventMap.get(\"start\");\n }\n else\n start = \"\";\n if (eventMap.get(\"eventName\") != null) {\n eventName = (String) eventMap.get(\"eventName\");\n }\n else\n eventName = \"\";\n\n eventList.add(new Event(eventName, start, end));\n }\n\n events.add(eventList);\n }\n }\n }\n\n Log.d(TAG, \"Calendar has been updated\");\n }\n\n @Override\n public void onCancelled(DatabaseError databaseError) {\n // Getting Post failed, log a message\n Log.w(TAG, \"onCancelled\", databaseError.toException());\n }\n };\n\n // Add the database listeners (I hope this works here *fingers crossed*)\n databaseRef.addListenerForSingleValueEvent(postListener);\n }", "private void doEvents() {\n\t\tapplyEvents(generateEvents());\t\t\n\t}", "public void setCalendarForModel(Calendar calend) {\n this.cal = calend;\n //fireTableDataChanged();\n refresh();\n}", "public void updateListView(List<Event> list) {\n this.eventsList = list;\n notifyDataSetChanged();\n }", "@Override\n public void onChanged(List<Event> events) {\n if(mScheduler == null){\n mScheduler = new Scheduler(events, Calendar.getInstance(), null);\n } else mScheduler.setEvents(events);\n }", "@Override\n\tpublic void commitCalendar(CalendarEdit edit) {\n\t\t\n\t}", "private void onPressCalendarEntry() {\r\n if (event.hasCalendarEntry())\r\n onPressRemoveFromCalendar();\r\n else\r\n onPressAddToCalendar();\r\n }", "public static void Ref_EventDay_Event(IDMap map, ArrayList<EventDay> EDlist, ArrayList<Event> Elist) {\n while (map.hasNext()) {\n Pair mapping = map.NextPair();\n if (mapping.notNull()) {\n EDlist.get(mapping.First()).setEvent(Elist.get(mapping.Second()));\n }\n }\n map.Reset();\n }", "@Override\n\tpublic void eventDate(Date newDate) {\n\t\t\n\t}", "@Override\n\tpublic void valueChanged(ListSelectionEvent ls) {\n\t\tString s = (String)((JList)ls.getSource()).getSelectedValue();\n\t\tif(s!=null && !s.isEmpty()){\n\t\t\tif(!SelectEventFromCalendarListener.currentCal.equals(s)){\n\t\t\t\tSelectEventFromCalendarListener.currentCal = s;\n\t\t\t\t\n\t\t\t\tVector<Event> v = new Vector<Event>();\n\t\t\t\tfor(Event e : Main.myCals.getCalendar(SelectEventFromCalendarListener.currentCal).getAllEvent()){\n\t\t\t\t\tv.add(e);\n\t\t\t\t}\n\t\t\t\tthis.evList.setListData(v);\n\t\t\t\tRefreshList rl = new RefreshList(false);\n\t\t\t\trl.refresh();\n\t\t\t}\n\t\t}\n\t\t\n\t\t//Activer la fonction creer evenement\n\t}", "private void refreshEvent() {\n DatabaseReference databaseEventsRef = firebaseDatabase.getReference(\"Events\");\n databaseEventsRef.addListenerForSingleValueEvent(new ValueEventListener() {\n @Override\n public void onDataChange(@NonNull DataSnapshot dataSnapshot) {\n for (DataSnapshot snapshot : dataSnapshot.getChildren()) {\n EventsItem selected = snapshot.getValue(EventsItem.class);\n if (occaID.equals(selected.getEventID())) {\n titleView.setText(selected.getTitle());\n dateView.setText(DateFormat.getDateInstance(DateFormat.MEDIUM, Locale.UK)\n .format(selected.getDateInfo()));\n updatedDate = selected.getDateInfo();\n timeView.setText(selected.getTimeInfo());\n locationView.setText(selected.getLocationInfo());\n descView.setText(selected.getDescription());\n break;\n }\n }\n }\n\n @Override\n public void onCancelled(@NonNull DatabaseError databaseError) {\n\n }\n });\n }", "@Test\n public void testStartAndEndDateChange() throws Exception {\n EventData deltaEvent = prepareDeltaEvent(createdEvent);\n Calendar date = Calendar.getInstance();\n date.setTimeInMillis(date.getTimeInMillis() + TimeUnit.HOURS.toMillis(2));\n deltaEvent.setStartDate(DateTimeUtil.getDateTime(date));\n date.setTimeInMillis(date.getTimeInMillis() + TimeUnit.HOURS.toMillis(2));\n deltaEvent.setEndDate(DateTimeUtil.getDateTime(date));\n\n updateEventAsOrganizer(deltaEvent);\n\n /*\n * Check that dates has been updated\n */\n AnalyzeResponse analyzeResponse = receiveUpdateAsAttendee(PartStat.NEEDS_ACTION, CustomConsumers.ACTIONS);\n AnalysisChange change = assertSingleChange(analyzeResponse);\n assertSingleDescription(change, \"The appointment was rescheduled.\");\n }", "public AddOrEditCalendarEvent(LocalDate date, TermCalendarController controller) {\n\t\tthis.date = date;\n\t\tthis.controller = controller;\n\t\tdisplay();\n\t}", "@FXML\n void editEvent (Event event) {\n\n// removes the event and then creates a new one\n// (ensures Events stay sorted chronologically even if dates are changed)\n event.timeline.events.remove(event);\n addEvent();\n\n// exits the add window\n cancelEventEdit();\n\n setMessage(\"Successfully edited Event.\", false);\n }", "public void setEvents(AbstractList<Event> events) {\r\n\t\tthis.events = (ArrayList<Event>) events;\r\n\t}", "public String arrangeEvents() throws Exception {\n JSONArray scheduledEventList = calObj.retrieveEvents(\"primary\").getJSONArray(\"items\");\n JSONArray unScheduledEventList = calObj.retrieveEvents(this.user.getCalId()).getJSONArray(\"items\");\n\n //Filter events for this week\n\n\n //Make a list of all events\n\n //Prioritise all unscheduled events\n\n\n //Send the list to client to display\n String events = \"\";\n for (int i = 0; i < scheduledEventList.length(); i++) {\n org.json.JSONObject jsonLineItem = scheduledEventList.getJSONObject(i);\n events += jsonLineItem.getString(\"summary\") + \" \" + jsonLineItem.getJSONObject(\"start\").getString(\"dateTime\") + \"\\n\";\n }\n // Unscheduled events set in bot created aPAS calendar\n for (int i = 0; i < unScheduledEventList.length(); i++) {\n org.json.JSONObject jsonLineItem = unScheduledEventList.getJSONObject(i);\n events += jsonLineItem.getString(\"summary\") + \" \" + jsonLineItem.getJSONObject(\"start\").getString(\"dateTime\") + \"\\n\";\n }\n return events;\n }", "public void displayEvents() {\n List<EventModel> day1List=new ArrayList<>();\n List<EventModel> day2List=new ArrayList<>();\n List<EventModel> day3List=new ArrayList<>();\n List<EventModel> day4List=new ArrayList<>();\n\n// noEventsPreRevels = findViewById(R.id.cat_pre_revels_no_events);\n noEventsDay1 = findViewById(R.id.cat_day_1_no_events);\n noEventsDay2 = findViewById(R.id.cat_day_2_no_events);\n noEventsDay3 = findViewById(R.id.cat_day_3_no_events);\n noEventsDay4 = findViewById(R.id.cat_day_4_no_events);\n\n if (mDatabase == null)\n return;\n\n RealmResults<ScheduleModel> scheduleResultsRealm = mDatabase.where(ScheduleModel.class).equalTo(\"catId\", cat_id).findAll().sort(\"startTime\");\n scheduleResults = mDatabase.copyFromRealm(scheduleResultsRealm);\n for (ScheduleModel schedule : scheduleResults) {\n// if (schedule.getIsRevels().contains(\"0\")) {\n// Log.d(TAG, \"displayEvents: PreRevels\");\n// EventDetailsModel eventDetails = mDatabase.where(EventDetailsModel.class).equalTo(\"eventID\", schedule.getEventID()).findFirst();\n// EventModel event = new EventModel(eventDetails, schedule);\n// preRevelsList.add(event);\n// } else {\n\n Log.d(TAG, schedule.toString());\n EventDetailsModel eventDetails = mDatabase.where(EventDetailsModel.class).equalTo(\"eventId\", schedule.getEventId()).findFirst();\n EventModel event = new EventModel(eventDetails, schedule);\n switch (event.getDay()) {\n case \"1\":\n day1List.add(event);\n break;\n case \"2\":\n day2List.add(event);\n break;\n case \"3\":\n day3List.add(event);\n break;\n case \"4\":\n day4List.add(event);\n break;\n }\n// }\n }\n// preRevelsEventSort(preRevelsList);\n eventSort(day1List);\n eventSort(day2List);\n eventSort(day3List);\n eventSort(day4List);\n\n// RecyclerView recyclerViewDayPreRevels = findViewById(R.id.category_pre_revels_recycler_view);\n// if (preRevelsList.isEmpty()) {\n// noEventsPreRevels.setVisibility(View.VISIBLE);\n// recyclerViewDayPreRevels.setVisibility(View.GONE);\n// } else {\n// recyclerViewDayPreRevels.setAdapter(new CategoryEventsAdapter(preRevelsList, this, getBaseContext(), false));\n// recyclerViewDayPreRevels.setNestedScrollingEnabled(false);\n// recyclerViewDayPreRevels.setLayoutManager(new LinearLayoutManager(this, LinearLayoutManager.HORIZONTAL, false));\n// }\n\n RecyclerView recyclerViewDay1 = findViewById(R.id.category_day_1_recycler_view);\n if(day1List.isEmpty()){\n noEventsDay1.setVisibility(View.VISIBLE);\n recyclerViewDay1.setVisibility(View.GONE);\n }\n else{\n recyclerViewDay1.setAdapter(new CategoryEventsAdapter(day1List, this, getBaseContext(), true, this));\n recyclerViewDay1.setNestedScrollingEnabled(false);\n recyclerViewDay1.setLayoutManager(new LinearLayoutManager(this, LinearLayoutManager.HORIZONTAL, false));\n }\n\n RecyclerView recyclerViewDay2 = findViewById(R.id.category_day_2_recycler_view);\n if(day2List.isEmpty()){\n noEventsDay2.setVisibility(View.VISIBLE);\n recyclerViewDay2.setVisibility(View.GONE);\n }\n else{\n recyclerViewDay2.setAdapter(new CategoryEventsAdapter(day2List, this, getBaseContext(), true, this));\n recyclerViewDay2.setNestedScrollingEnabled(false);\n recyclerViewDay2.setLayoutManager(new LinearLayoutManager(this, LinearLayoutManager.HORIZONTAL, false));\n }\n\n RecyclerView recyclerViewDay3 = findViewById(R.id.category_day_3_recycler_view);\n if(day3List.isEmpty()){\n noEventsDay3.setVisibility(View.VISIBLE);\n recyclerViewDay3.setVisibility(View.GONE);\n }\n else {\n recyclerViewDay3.setAdapter(new CategoryEventsAdapter(day3List, this, getBaseContext(), true, this));\n recyclerViewDay3.setNestedScrollingEnabled(false);\n recyclerViewDay3.setLayoutManager(new LinearLayoutManager(this, LinearLayoutManager.HORIZONTAL, false));\n }\n\n RecyclerView recyclerViewDay4 = findViewById(R.id.category_day_4_recycler_view);\n if(day4List.isEmpty()){\n noEventsDay4.setVisibility(View.VISIBLE);\n recyclerViewDay4.setVisibility(View.GONE);\n }\n else {\n recyclerViewDay4.setAdapter(new CategoryEventsAdapter(day4List, this, getBaseContext(), true, this));\n recyclerViewDay4.setNestedScrollingEnabled(false);\n recyclerViewDay4.setLayoutManager(new LinearLayoutManager(this, LinearLayoutManager.HORIZONTAL, false));\n }\n }", "public void addEvents(List<TimelineEvent> events) {\n this.events.addAll(events);\n }", "Collection<CalendarEvent> getActiveEvents(long when)\n{\n List<CalendarEvent> rslt = new ArrayList<CalendarEvent>();\n try {\n getAllEvents(when);\n rslt.addAll(cal_events);\n }\n catch (Exception e) {\n BasisLogger.logE(\"GOOGLECAL: problem getting events\",e);\n }\n return rslt;\n}", "@FXML\r\n void onActionWeek(ActionEvent event) {\r\n\r\n appointmentListType();\r\n\r\n }", "private void createEvents() {\n\t}", "protected void listEvents(Activity activity) {\n List<Event> events = activity.getEvents();\n List<String> list = new ArrayList<>();\n\n for (Event event : events) {\n list.add(event.getName());\n }\n\n listItem(list);\n }", "@FXML\r\n void onActionAll(ActionEvent event) {\r\n\r\n appointmentListType();\r\n\r\n }", "@Override\n public void updatedResource( ResourceEvent event )\n {\n if ( event.getTypeResource( ).equals( Appointment.APPOINTMENT_RESOURCE_TYPE ) )\n {\n IndexingAppointmentService.getService( ).indexAppointmentStateAndHistory( _appointmentDataSource, _appointmentHistoryDataSource,\n Integer.parseInt( event.getIdResource( ) ) );\n }\n\n }", "public void addItemToCalendar(AgendaItem item) {\n if(!addAgendaEventViaProvider(item)) addAgendaEventViaIntention(item);\n }", "public void appendToReminders(List<Date> reminders);", "public void iterateEventList();", "private void loadScheduleList() {\n\n if (listTbagendamentos != null && !listTbagendamentos.isEmpty()) {\n scheduleAgendamento.clear();\n\n for (Tbagendamento agendamento : listTbagendamentos) {\n DefaultScheduleEvent defaultScheduleEvent = new DefaultScheduleEvent();\n defaultScheduleEvent.setTitle(agendamento.getIdcliente().getNmcliente());\n\n Calendar dtDataInicial = new GregorianCalendar();\n dtDataInicial.setTime(agendamento.getTmdataagendamento());\n\n defaultScheduleEvent.setStartDate(dtDataInicial.getTime());\n\n Calendar dtDataFinal = new GregorianCalendar();\n dtDataFinal.setTime(agendamento.getTmdataagendamento());\n dtDataFinal.set(Calendar.MINUTE, dtDataFinal.get(Calendar.MINUTE) + 30);\n\n defaultScheduleEvent.setEndDate(dtDataFinal.getTime());\n defaultScheduleEvent.setData(agendamento.getIdagendamento());\n scheduleAgendamento.addEvent(defaultScheduleEvent);\n }\n }\n }", "public static void main(String[] args) {\n\n CalendarEvent b = new CalendarEvent(\"assignment2\",29,11,2014,\"14:00\",\"20:00\",\"Test1\");\n\n CalendarEvent c = new CalendarEvent(\"assignment3\",27,2,2010,\"2:00\",\"20:00\",\"Test2\");\n\n CalendarEvent d = new CalendarEvent(\"assignment4\",12,7,2013,\"14:00\",\"20:00\",\"Test3\");\n\n CalendarEvent e = new CalendarEvent(\"assignment5\",29,11,2014,\"12:00\",\"20:00\",\"Test4\");\n\n\n CalendarEvent l = new CalendarEvent(\"assignment1a\",30,9,2014,\"14:00\",\"20:00\",\"Test\");\n CalendarEvent f = new CalendarEvent(\"assignment1\",31,9,2014,\"14:00\",\"20:00\",\"Test\");\n CalendarEvent g = new CalendarEvent(\"assignment1\",21,9,2014,\"14:00\",\"20:00\",\"Test\");\n CalendarEvent h = new CalendarEvent(\"assignment1\",21,9,2014,\"14:00\",\"20:00\",\"Test\");\n CalendarEvent i = new CalendarEvent(\"assignment1\",29,9,2014,\"14:00\",\"20:00\",\"Test\");\n CalendarEvent j = new CalendarEvent(\"assignment1\",18,9,2014,\"14:00\",\"20:00\",\"Test\");\n CalendarEvent k = new CalendarEvent(\"assignment1\",1,9,2014,\"14:00\",\"20:00\",\"Test\");\n\n \n \n \n ArrayList<CalendarEvent> listOfEvents = new ArrayList<CalendarEvent>();\n // listOfEvents.add(a);\n listOfEvents.add(b);\n listOfEvents.add(c);\n listOfEvents.add(d);\n listOfEvents.add(e);\n\n Display myDisObject = new Display();\n //myDisObject.displayAssignments(listOfEvents);\n\n \n \n listOfEvents.add(f);\n listOfEvents.add(g);\n listOfEvents.add(h);\n listOfEvents.add(i);\n listOfEvents.add(j);\n listOfEvents.add(k);\n listOfEvents.add(l);\n \n //myDisObject.displayAssignments(listOfEvents);\n myDisObject.displayMonth(10, listOfEvents);\n }", "public ArrayList<Event> getEvents(){return new ArrayList<Event>(events);}", "public void setEventList(List<EventSource> events) {\n this.eventList.reset(events);\n notifyEventListListeners();\n }", "private void addAgendaEventViaIntention(AgendaItem item) {\n Intent intent = new Intent(Intent.ACTION_INSERT);\n intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n intent.setType(\"vnd.android.cursor.item/event\");\n intent.putExtra(CalendarContract.EXTRA_EVENT_BEGIN_TIME, item.getStart().getMillis());\n intent.putExtra(CalendarContract.EXTRA_EVENT_END_TIME, item.getEnd().getMillis());\n intent.putExtra(Events.TITLE, item.getTitle());\n intent.putExtra(Events.DESCRIPTION, getAgendaItemDescription(item));\n intent.putExtra(Events.EVENT_TIMEZONE, \"Europe/Amsterdam\");\n intent.putExtra(Events.EVENT_LOCATION, item.getLocation());\n intent.putExtra(Events.ACCESS_LEVEL, Events.ACCESS_PUBLIC);\n intent.putExtra(Events.AVAILABILITY, Events.AVAILABILITY_BUSY);\n\n App.getContext().startActivity(intent);\n }", "@Override\n protected void initializeEventList()\n {\n }", "public void addEvent(String date, String name, String start, String end) {\n\n // Create event based on the parameters\n Event event = new Event(name, start, end);\n\n Boolean foundEventList = false;\n\n for (EventList e : events) {\n if (e.getDate().equals(date)) {\n e.add(event);\n foundEventList = true;\n break;\n }\n }\n\n if (!foundEventList) {\n EventList eventList = new EventList(date);\n eventList.add(event);\n events.add(eventList);\n }\n\n update();\n }", "public void onEvent(EventIterator events) {\n\n }", "@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tAddEvent.currentDateCalendar=(Calendar) c.clone();\n\t\t\t\tstartActivity(new Intent(\"com.calendar.ADDEVENT\"));\n\t\t\t}", "public void invokeEvents() {\n\t\tIntent i = alertMe.createIntentFromSession();\n\t\ti.setClass(this, AlertMeEventHistory.class);\n\t\ti.putExtra(AlertMeConstants.INTENT_REQUEST_KEY, AlertMeConstants.INVOKE_HISTORY);\n startActivityForResult(i, AlertMeConstants.INVOKE_HISTORY);\n }", "public void onAdd(TimelineAddEvent e) {\n\t\tevent = new TimelineEvent(new Booking(), e.getStartDate(), e.getEndDate(), true, e.getGroup());\n\n\t\t// add the new event to the model in case if user will close or cancel the \"Add dialog\"\n\t\t// without to update details of the new event. Note: the event is already added in UI.\n\t\tmodel.add(event);\n\t}", "public void addEvent(View v){\n\t\tif(applicationDB.getCalendarList().size() < 1){\n\t\t\tIntent toCalendarEditor = new Intent(this, CalendarEditor.class);\n\t\t\tnew AppDialogs(this).noCalendarDialog(\"No calendar exists. Create one before adding events.\", toCalendarEditor, this);\n\t\t}\n\t\telse{\n\t\t\tIntent addEvent = new Intent(this, EventEditor.class);\n\t \tEventEditor.setIsModify(false);\n\t \tstartActivity(addEvent);\n\t\t}\n }", "private final void updateEvent(Feed feed) {\n\t ContentValues values = new ContentValues();\n\t // values.put(NotePad.Notes.COLUMN_NAME_MODIFICATION_DATE, System.currentTimeMillis());\n\n\t // This puts the desired notes text into the map.\n\t values.put(FeedingEventsContract.Feeds.column_timeStamp, feed.ts.toString());\n\t values.put(FeedingEventsContract.Feeds.column_leftDuration, Integer.toString(feed.lDuration) );\n\t values.put(FeedingEventsContract.Feeds.column_rightDuration, Integer.toString(feed.rDuration));\n\t values.put(FeedingEventsContract.Feeds.column_bottleFeed, Double.toString(feed.BFQuantity));\n\t values.put(FeedingEventsContract.Feeds.column_expressFeed, Double.toString(feed.EFQuantity));\n\t values.put(FeedingEventsContract.Feeds.column_note, feed.note);\n\t \n\t /*\n\t * Updates the provider with the new values in the map. The ListView is updated\n\t * automatically. The provider sets this up by setting the notification URI for\n\t * query Cursor objects to the incoming URI. The content resolver is thus\n\t * automatically notified when the Cursor for the URI changes, and the UI is\n\t * updated.\n\t * Note: This is being done on the UI thread. It will block the thread until the\n\t * update completes. In a sample app, going against a simple provider based on a\n\t * local database, the block will be momentary, but in a real app you should use\n\t * android.content.AsyncQueryHandler or android.os.AsyncTask.\n\t */\n\t getContentResolver().update(\n\t mUri, // The URI for the record to update.\n\t values, // The map of column names and new values to apply to them.\n\t null, // No selection criteria are used, so no where columns are necessary.\n\t null // No where columns are used, so no where arguments are necessary.\n\t );\n\n\n\t }", "public void setEvents(final Collection<SapEvent> value)\n\t{\n\t\tsetEvents( getSession().getSessionContext(), value );\n\t}", "public void setData(List<Event> data) {\n this.data = data;\n }", "public final void loadEvents() {\n\n if (selectedUser == null || selectedUser.equals(\"All\")) {\n for (Absence a : AbsenceService.getAllUnacknowledged()) {\n\n AbsenceEvent e = new AbsenceEvent(a.getUser().getUsername() + \" \" + a.getAbsenceType(), TimeConverterService.convertLocalDateTimeToDate(a.getStartTime()), TimeConverterService.convertLocalDateTimeToDate(a.getEndTime()), a);\n\n switch (e.getAbsence().getAbsenceType()) {\n\n case MEDICAL_LEAVE:\n e.setStyleClass(\"medical_leave\");\n break;\n case HOLIDAY:\n e.setStyleClass(\"holiday\");\n e.setAllDay(true);\n break;\n case TIME_COMPENSATION:\n e.setStyleClass(\"time_compensation\");\n break;\n case BUSINESSRELATED_ABSENCE:\n e.setStyleClass(\"business-related_absence\");\n break;\n default:\n }\n\n this.addEvent(e);\n }\n } else {\n for (Absence a : AbsenceService.getAbsenceByUserAndUnacknowledged(BenutzerverwaltungService.getUser(selectedUser))) {\n\n AbsenceEvent e = new AbsenceEvent(a.getUser().getUsername() + \" \" + a.getAbsenceType() + \" \" + a.getReason(), TimeConverterService.convertLocalDateTimeToDate(a.getStartTime()), TimeConverterService.convertLocalDateTimeToDate(a.getEndTime()), a);\n\n switch (e.getAbsence().getAbsenceType()) {\n\n case MEDICAL_LEAVE:\n e.setStyleClass(\"medical_leave\");\n break;\n case HOLIDAY:\n e.setStyleClass(\"holiday\");\n e.setAllDay(true);\n break;\n case TIME_COMPENSATION:\n e.setStyleClass(\"time_compensation\");\n break;\n case BUSINESSRELATED_ABSENCE:\n e.setStyleClass(\"business-related_absence\");\n break;\n default:\n }\n\n this.addEvent(e);\n }\n }\n\n DefaultScheduleEvent holidayevent;\n\n for (Holiday h : HolidayService.getList()) {\n holidayevent = new DefaultScheduleEvent(h.getHolidayComment(), TimeConverterService.convertLocalDateToDate(h.getHolidayDate()), TimeConverterService.convertLocalDateToDate(h.getHolidayDate()));\n holidayevent.setAllDay(true);\n holidayevent.setStyleClass(\"feiertag\");\n\n this.addEvent(holidayevent);\n }\n }", "public void addToReminders(List<Date> reminders);", "@FXML\n public void OAWeekView(ActionEvent event) {\n Appointment.clearWeeklyAppointments();\n Appointment.setWeekAppointments();\n Appointments.setItems(Appointment.getWeekAppointments());\n }", "private void notifyEventListListeners() {\n this.eventListListeners.forEach(listener -> listener.onEventListChange(this.getEventList()));\n }", "@Override\r\n public List<? extends WeekViewEvent> onMonthChange(int newYear, int newMonth) {\n int[] colors = this.getColors(calendarTheme);\r\n List<WeekViewEvent> events = new ArrayList<>();\r\n int id = 0;\r\n for(EventIncomingStruct event: eventList) {\r\n String eventStartTime = event.getStartTime();\r\n String eventStartDate = event.getStartDate();\r\n String eventEndTime = event.getEndTime();\r\n String eventEndDate = event.getEndDate();\r\n String[] strStTime = eventStartTime.split(\":\");\r\n String[] strStDate = eventStartDate.split(\"/\");\r\n String[] strEndTime = eventEndTime.split(\":\");\r\n String[] strEndDate = eventEndDate.split(\"/\");\r\n Log.i(\"Calendar\", eventStartDate);\r\n if (Integer.parseInt(strStDate[2]) == newYear\r\n && Integer.parseInt(strStDate[1]) == newMonth) {\r\n WeekViewEvent wkEvent = new WeekViewEvent(id, event.getName(),\r\n Integer.parseInt(strStDate[2]),\r\n Integer.parseInt(strStDate[1]),\r\n Integer.parseInt(strStDate[0]),\r\n Integer.parseInt(strStTime[0]),\r\n Integer.parseInt(strStTime[1]),\r\n Integer.parseInt(strEndDate[2]),\r\n Integer.parseInt(strEndDate[1]),\r\n Integer.parseInt(strEndDate[0]),\r\n Integer.parseInt(strEndTime[0]),\r\n Integer.parseInt(strEndTime[1]));\r\n wkEvent.setColor(colors[id % 5]);\r\n events.add(wkEvent);\r\n }\r\n id++;\r\n }\r\n\r\n return events;\r\n }", "public void insert(List<Event> eventsList);", "public interface EventView {\n void Arrived(List<EventModel> list);\n void NoEvents(String error);\n //void ArrivedAllEvents(List<EventModel> list);\n //void NoAllEvents(String error);\n\n}", "public void separateEvents(EventList eventList, int year, int semester) throws PacException {\n ArrayList<Event> semesterList = getSemesterEvents(eventList, semester);\n ArrayList<Event> yearList = getAcademicYearEvents(semesterList, year);\n ArrayList<ArrayList<String>> monthList = getMonthEvents(yearList);\n displayCalendar(monthList, year, semester);\n }", "private void initEventList(){\r\n\t\t/*\r\n\t\t * we save a valid event list in internal storage so we can load them in\r\n\t\t * our main activity. So we make sure there is either a valid one alreay in storage\r\n\t\t * or we get a fresh one from our server and save it in storage.\r\n\t\t */\r\n\t\t\r\n\t\t// first try to get an existing eventlist from storage\r\n\t\tJSONObject eventList = FileUtils.readEventListFromStorage(this);\r\n\t\t\r\n\t\tif(eventList != null) {\r\n\t\t\tif(eventListIsValid(eventList)){\r\n\t\t\t\tstartMuseek();\r\n\t\t\t} else {\r\n\t\t\t\tServerConnector.getEventListFromServer(mServerListener, mLocation);\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\tServerConnector.getEventListFromServer(mServerListener, mLocation);\r\n\t\t}\r\n\t\t\r\n\t}", "public void setCurrentListToBeDoneList();", "@FXML\n public void OADefault(ActionEvent event) {\n Appointments.setItems(Appointment.getAllAppointments());\n }", "private void removeFromCalendar() {\r\n CalendarUtil.deleteEntry(this, event);\r\n database.eventDao().update(event);\r\n updateSpeedDialActionItems();\r\n showToast(getString(R.string.event_calendar_remove_event_success), Toast.LENGTH_LONG);\r\n }", "public void onChange(TimelineModificationEvent e) {\n\t\tevent = e.getTimelineEvent();\n\n\t\t// update booking in DB...\n\n\t\t// if everything was ok, no UI update is required. Only the model should be updated\n\t\tmodel.update(event);\n\n\t\tFacesMessage msg =\n\t\t new FacesMessage(FacesMessage.SEVERITY_INFO, \"The booking dates \" + getRoom() + \" have been updated\", null);\n\t\tFacesContext.getCurrentInstance().addMessage(null, msg);\n\n\t\t// otherwise (if DB operation failed) a rollback can be done with the same response as follows:\n\t\t// TimelineEvent oldEvent = model.getEvent(model.getIndex(event));\n\t\t// TimelineUpdater timelineUpdater = TimelineUpdater.getCurrentInstance(\":mainForm:timeline\");\n\t\t// model.update(oldEvent, timelineUpdater);\n\t}", "private void updateAppointments(Appointment[] appointments) {\n\t\tif (appointments == null) { // Retrieve from Storage\n\t\t\ttry {\n\t\t\t\tappointments = AppointmentUtil.retrieve(getContext());\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\n\t\t\tif (appointments == null) { // When there are still no menus -> Update from Server\n\t\t\t\tonRefresh();\n\t\t\t}\n\t\t} else { // Store\n\t\t\ttry {\n\t\t\t\tAppointmentUtil.store(appointments, getContext());\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\n\t\tif (appointments != null) {\n\t\t\t// Only add apointments which are in the current month or future.\n\t\t\tList<Appointment> appointmentList = new ArrayList<>();\n\n\t\t\tCalendar now = Calendar.getInstance();\n\t\t\tresetCalendarToMonth(now);\n\n\t\t\tfor (Appointment appointment : appointments) {\n\t\t\t\tCalendar appointmentMonth = appointment.getDate();\n\t\t\t\tresetCalendarToMonth(appointmentMonth);\n\n\t\t\t\tif (appointmentMonth.getTimeInMillis() - now.getTimeInMillis() >= 0) { // Check if present or future month\n\t\t\t\t\tappointmentList.add(appointment);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// Apply appointments\n\t\t\tappointmentAdapter.clear();\n\t\t\tappointmentAdapter.addAll(appointmentList);\n\t\t}\n\t}", "private void updateEvents(boolean isFirst) {\r\n\t\tSystem.out.println(\"[DEBUG LOG/Game.java] Updating events\");\r\n\t\tEmbedBuilder embed = new EmbedBuilder();\r\n\t\tString eventMsg = \"\";\r\n\t\tfor (int i = 0; i < events.size(); i++) {\r\n\t\t\teventMsg += events.get(i) + \"\\n\";\r\n\t\t}\r\n\t\tembed.setColor(Color.GRAY);\r\n\t\tif (isFirst) {\r\n\t\t\tembed.setTitle(\"Events\");\r\n\t\t\tgameChannel.sendMessage(embed.build()).queueAfter(100, TimeUnit.MILLISECONDS);\r\n\t\t} else {\r\n\t\t\tembed.setTitle(null);\r\n\t\t\t// Game breaks if eventMsg and title is \"\"\r\n\t\t\tif (eventMsg.contentEquals(\"\")) {\r\n\t\t\t\tembed.setDescription(\"Empty\");\r\n\t\t\t} else {\r\n\t\t\t\tembed.setDescription(eventMsg);\r\n\t\t\t}\r\n\t\t\tgameChannel.editMessageById(eventsID, embed.build()).queue();\r\n\t\t}\r\n\t}", "@FXML\r\n void onActionMonth(ActionEvent event) {\r\n appointmentListType();\r\n }", "public void processOffers(List<OfferPublishedEvent> events) {\n }", "@Override\n public void onClick(View view) {\n Intent intent = new Intent(Intent.ACTION_INSERT).setData(CalendarContract.Events.CONTENT_URI);\n startActivity(intent);\n }", "@Override\n public void onReceiveEventFromAdapter(Event event) {\n selectedEvent = event;\n String doneDatePref = prefs.getString(\"default_done_today\", \"0\");\n\n // Mark event as done\n if (doneDatePref.equalsIgnoreCase(getResources()\n .getStringArray(R.array.pref_default_date_values)[0])) {\n showDatePickerDialog(getCurrentFocus());\n } else if (doneDatePref.equalsIgnoreCase(getResources()\n .getStringArray(R.array.pref_default_date_values)[1])) {\n // Mark currently opened event as done today\n databaseHandler.markEventDone(event, new DateHandler().getTodayDate());\n\n prepareData();\n }\n }", "public String eventList() {\n\n\t\tString str = \"\";\n\t\tif(map.isEmpty()) {\n\t\t\tstr = \"No Events Scheduled Yet\";\n\t\t\treturn str;\n\t\t}\n\t\tstr = \"One Time Events: \\n\";\n\t\tstr = str + \"________________ \\n2020\\n\";\n\n\t\tfor(Map.Entry<LocalDate, ArrayList<Event>> entry: map.entrySet() ) {\n\n\t\t\tLocalDate currentDate = entry.getKey();\n\t\t\tArrayList<Event> list = map.get(currentDate);\n\t\t\tDateTimeFormatter formatter = DateTimeFormatter.ofPattern(\"EEEE MMMM dd\");\n\t\t\tDateTimeFormatter timeFormatter = DateTimeFormatter.ofPattern(\"HH:mm a\");\n\t\t\tfor(int i = 0;i<list.size();i++) {\n\t\t\t\tEvent e = list.get(i);\n\t\t\t\tif(e.recurring == false) {\n\t\t\t\t\tstr = str + \" \"+formatter.format(currentDate) +\" \" + timeFormatter.format(e.sTime) + \" - \" + timeFormatter.format(e.eTime) + \" \" + e.name + \"\\n\";\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t//for recurring events, add this later\n\t\t/*\n\t\tstr = str + \"\\nRecurring Events:\\n\";\n\t\tstr = str + \"________________ \\n\";\n\t\tif(recurringEvents.size()==0) {\n\t\t\tstr = str + \"No Recurring Event Scheduled\\n\";\n\t\t\treturn str;\n\t\t}\n\t\tfor(int i = 0; i<recurringEvents.size(); i++) {\n\t\t\tEvent e = recurringEvents.get(i);\n\t\t\tstr = str + e.name +\"\\n\";\n\t\t\tstr = str + e.rdays + \" \" + e.sTime + \" \" + e.eTime + \" \" + e.recurringStartDate + \" \" + e.eDate +\"\\n\";\n\t\t}\n\t\t */\n\t\treturn str;\n\n\t}", "public interface OnCalendarPageChangeListener {\n void onChange(Calendar newDate);\n}", "public void refreshAllDateDescriptions(){\n for(int position=0;position<reminderItems.size();position++){\n refreshDateDescription(position);\n }\n }", "public List<GameEvents> saveGameEvents(List<GameEvents> gameEvents);", "public static void printAllEventListInSortedOrder(){\n sortEvents();\n for(int i=0;i<events.size();i++){\n System.out.println((events.get(i).getMonth()+1)+\"/\"+events.get(i).getDate()+\"/\"+events.get(i).getYear()+\" \"+events.get(i).getStringStartandFinish()+\" \"+events.get(i).getEventTitle());\n }\n }", "public Boolean updateEventToCalendar(String[] str) throws Exception {\n\t\tcom.google.api.services.calendar.Calendar service = getCalendarService(UserUtils.getInstance().getCredential());\n\t\tString calendarId = \"primary\";\n\t\tEvent event = service.events().get(calendarId, str[5]).execute();\n\n\t\tevent.setDescription(str[4]);\n\t\tDateTime startDateTime = new DateTime(str[1]);\n\t\tEventDateTime start = new EventDateTime().setDateTime(startDateTime);\n\t\tevent.setStart(start);\n\n\t\tDateTime endDateTime = new DateTime(str[2]);\n\t\tEventDateTime end = new EventDateTime().setDateTime(endDateTime);\n\t\tevent.setEnd(end);\n\n\t\tevent.setLocation(str[3]);\n\t\tevent.setSummary(str[0]);\n\n\t\tservice.events().update(\"primary\", event.getId(), event).execute();\n\t\tcreateCalendarEvents();\n\n\t\treturn true;\n\t}", "public synchronized void triggerEvents(E e){\n Iterator<T> iterator = callbackList.listIterator();\n while(iterator.hasNext()){\n iterator.next().onEvent(e);\n }\n }", "@Override\r\n\tpublic void eventReceived(TaskEvent event) \r\n\t{\r\n\t\t//Add new Item\r\n\t\tif (event.getOperationType() == TaskEvent.ADD_NEW_TASK_EVENT)\r\n\t\t{\r\n\t\t\tSystem.out.println(\"Add a new item to the List\");\r\n\t\t\tModelLocator.getInstance().getTaskList().add((makeTaskFromArray((String[]) event.parametersToCommand())));\r\n\t\t\tSystem.out.println(ModelLocator.getInstance().getTaskList());\r\n\t\t}\r\n\t\telse if (event.getOperationType() == TaskEvent.REMOVE_TASK_EVENT)\r\n\t\t{\r\n\t\t\tSystem.out.println(\"Remove Item from the List\");\r\n\t\t\tModelLocator.getInstance().getTaskList().removeElementAt(Integer.parseInt((String)(event.parametersToCommand())));\r\n\t\t\tSystem.out.println(ModelLocator.getInstance().getTaskList());\r\n\t\t}\r\n\t\telse if(event.getOperationType() == TaskEvent.SET_TASK_DONE_EVENT)\r\n\t\t{\r\n\t\t\t//To be implemented\r\n\t\t\t\r\n\t\t}\r\n\t\telse\r\n\t\t\tSystem.out.println(\"Error!!!!!\");\r\n\t\t\r\n\t}", "@Override\n\tpublic void onApplicationEvent(BeforeStoreEvent event) {\n\t\tList<? extends DomainObject<?>> domainObjects = event.getStoreContext().getDomainObjects();\n\n\t\tdomainObjects.forEach(domainObject -> {\n\t\t\tif (!domainObject.isNew() && (domainObject instanceof Task)) {\n\t\t\t\tTask task = (Task) domainObject;\n\n\t\t\t\tfinal Authentication authentication = SecurityContextHolder.getContext().getAuthentication();\n\t\t\t\tfinal CustomUserDetails principal = ((CustomUserDetails) authentication.getPrincipal());\n\t\t\t\t@SuppressWarnings(\"unused\")\n\t\t\t\tString author = principal.getUsername();\n\t\t\t\ttask.setLastEditor(principal.getUser());\n\n\t\t\t\tif (!task.getStatus().equals(Status.CLOSED)) {\n\t\t\t\t\tPeriod period = Period.between(LocalDateTime.now().toLocalDate(),\n\t\t\t\t\t\t\ttask.getStartline().toLocalDate());\n\t\t\t\t\ttask.setWastedTime(period.getYears() + \"y \" + period.getMonths() + \"m \" + period.getDays() + \"d\");\n\t\t\t\t}\n\n\t\t\t}\n\t\t});\n\n\t}", "@Override\n\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\tCalendar cal = Calendar.getInstance();\n\t\t\t\t\t\tIntent intent = new Intent(Intent.ACTION_EDIT);\n\t\t\t\t\t\tintent.setType(\"vnd.android.cursor.item/event\");\n\t\t\t\t\t\tintent.putExtra(\"beginTime\", cal.getTimeInMillis());\n\t\t\t\t\t\tintent.putExtra(\"allDay\", true);\n\t\t\t\t\t\tcontext.startActivity(intent);\n\t\t\t\t\t}", "@Override\n\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\tCalendar cal = Calendar.getInstance();\n\t\t\t\t\t\tIntent intent = new Intent(Intent.ACTION_EDIT);\n\t\t\t\t\t\tintent.setType(\"vnd.android.cursor.item/event\");\n\t\t\t\t\t\tintent.putExtra(\"beginTime\", cal.getTimeInMillis());\n\t\t\t\t\t\tintent.putExtra(\"allDay\", true);\n\t\t\t\t\t\tcontext.startActivity(intent);\n\t\t\t\t\t}", "@Override\n\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\tCalendar cal = Calendar.getInstance();\n\t\t\t\t\t\tIntent intent = new Intent(Intent.ACTION_EDIT);\n\t\t\t\t\t\tintent.setType(\"vnd.android.cursor.item/event\");\n\t\t\t\t\t\tintent.putExtra(\"beginTime\", cal.getTimeInMillis());\n\t\t\t\t\t\tintent.putExtra(\"allDay\", true);\n\t\t\t\t\t\tcontext.startActivity(intent);\n\t\t\t\t\t}", "public static void main(String[] args) {\n List<Evento> listadoEventos = Evento.createShortList();\n List<Expositor> listadoExpositores = Expositor.createShortList();\n List<Asistente> Asistentes = Asistente.createShortList();\n //Asigno a los eventos sus expositores\n listadoEventos.get(0).setExpositor(listadoExpositores.get(0));\n listadoEventos.get(1).setExpositor(listadoExpositores.get(1));\n listadoEventos.get(2).setExpositor(listadoExpositores.get(2));\n listadoEventos.get(3).setExpositor(listadoExpositores.get(3));\n listadoEventos.get(4).setExpositor(listadoExpositores.get(4));\n listadoEventos.get(5).setExpositor(listadoExpositores.get(5));\n //Asigno los asistentes a los eventos\n listadoEventos.get(0).getListaAsistentes().add(Asistentes.get(0));\n listadoEventos.get(0).getListaAsistentes().add(Asistentes.get(1));\n\n listadoEventos.get(1).getListaAsistentes().add(Asistentes.get(2));\n\n listadoEventos.get(2).getListaAsistentes().add(Asistentes.get(3));\n\n listadoEventos.get(3).getListaAsistentes().add(Asistentes.get(4));\n listadoEventos.get(3).getListaAsistentes().add(Asistentes.get(5));\n\n listadoEventos.get(4).getListaAsistentes().add(Asistentes.get(6));\n\n listadoEventos.get(5).getListaAsistentes().add(Asistentes.get(7));\n listadoEventos.get(5).getListaAsistentes().add(Asistentes.get(8));\n listadoEventos.get(5).getListaAsistentes().add(Asistentes.get(9));\n\n //2A: Listado de manera ordenado por titulo descendiente, expositor y asistentes.\n\n Comparator<Integer> comparador = Collections.reverseOrder();\n\n //Ordenar de forma descendente por titulo\n Collections.sort(listadoEventos, (o1, o2) -> o2.getTitulo().compareTo(o1.getTitulo()));\n\n System.out.println(\"======Prueba 01 - Listado de eventos======\");\n for(Evento e:listadoEventos){\n System.out.println(\"****************************************\");\n System.out.println(\"Evento: \"+e.getTitulo());\n System.out.println(\"Expositor: \"+e.getExpositor().getNombre());\n System.out.println(\"Asistentes:\");\n for(Asistente a : e.getListaAsistentes()){\n System.out.println(a.getCodigo()+\"\\t\"+a.getNombre()+\"\\t\"+a.getApellidos());\n }\n }\n\n }", "ArrayList<HabitEvent> getHabitEvents();", "@FXML\n public void OAMonthView(ActionEvent event) {\n Appointment.clearMonthlyAppointment();\n Appointment.setMonthAppointments();\n Appointments.setItems(Appointment.getMonthAppointments());\n\n }", "@Test\n public void testEndDateChange() throws Exception {\n EventData deltaEvent = prepareDeltaEvent(createdEvent);\n Calendar date = Calendar.getInstance();\n date.setTimeInMillis(date.getTimeInMillis() + TimeUnit.HOURS.toMillis(4));\n deltaEvent.setEndDate(DateTimeUtil.getDateTime(date));\n\n updateEventAsOrganizer(deltaEvent);\n\n /*\n * Check that end date has been updated\n */\n AnalyzeResponse analyzeResponse = receiveUpdateAsAttendee(PartStat.NEEDS_ACTION, CustomConsumers.ACTIONS);\n AnalysisChange change = assertSingleChange(analyzeResponse);\n assertSingleDescription(change, \"The appointment was rescheduled.\");\n }", "public static void reload() {\n try {\n lstEvents = getEventFromDB();\n } catch (SQLException ex) {\n mLog.error(ex.getMessage(), ex);\n }\n }", "@Test\n public void testStartDateChange() throws Exception {\n EventData deltaEvent = prepareDeltaEvent(createdEvent);\n Calendar date = Calendar.getInstance();\n date.setTimeInMillis(date.getTimeInMillis() + TimeUnit.HOURS.toMillis(1));\n deltaEvent.setStartDate(DateTimeUtil.getDateTime(date));\n\n updateEventAsOrganizer(deltaEvent);\n\n /*\n * Check that start date has been updated\n * Note: Due internal handling of a shortened Event, no rescheduling will happen. Thus the participant status is\n * unchanged. For details see com.openexchange.chronos.impl.Utils.coversDifferentTimePeriod(Event, Event) or\n * http://documentation.open-xchange.com/latest/middleware/calendar/implementation_details.html#reset-of-participation-status\n */\n AnalyzeResponse analyzeResponse = receiveUpdateAsAttendee(PartStat.ACCEPTED, CustomConsumers.ACTIONS);\n AnalysisChange change = assertSingleChange(analyzeResponse);\n assertSingleDescription(change, \"The appointment was rescheduled.\");\n }", "@Override\n public void actionPerformed(NetworkEvent evt) {\n JSONParser jsonp = new JSONParser();\n \n try {\n //renvoi une map avec clé = root et valeur le reste\n Map<String, Object> tasks = jsonp.parseJSON(new CharArrayReader(new String(con.getResponseData()).toCharArray()));\n System.out.println(\"roooooot:\" +tasks.get(\"root\"));\n \n\n List<Map<String, Object>> list = (List<Map<String, Object>>) tasks.get(\"root\");\n \n\n for (Map<String, Object> obj : list) {\n Evenement event = new Evenement();\n SimpleDateFormat format= new SimpleDateFormat(\"yyyy/MM/dd\");\n Date dateDb= format.parse(obj.get(\"dateDebut\").toString());\n System.out.println(dateDb);\n Date dateF= format.parse(obj.get(\"dateFin\").toString());\n System.out.println(dateF);\n int nbp = Integer.parseInt(obj.get(\"nb_place\").toString());\n int nbpp = Integer.parseInt(obj.get(\"nbParticipants\").toString());\n event.setIdEvt(id);\n event.setCinUser(obj.get(\"cin\").toString());\n event.setLieu(obj.get(\"lieu\").toString());\n event.setDateDebut(dateDb);\n event.setDateFin(dateF);\n event.setType(obj.get(\"type\").toString());\n event.setTitre(obj.get(\"titre\").toString());\n event.setDescription(obj.get(\"description\").toString());\n event.setImageEvt(obj.get(\"image_evt\").toString());\n event.setNbPlace(nbp);\n event.setNbParticipants(nbpp);\n \n \n \n listEvent.add(event);\n\n }\n } catch (IOException ex) {\n } catch (ParseException ex) {\n \n }\n\n }", "@FXML\n void addEvent () {\n\n// checks if ChoiceBox has a selected Timeline\n if (timelineChoice.getSelectionModel().getSelectedItem() == null)\n return;\n\n// loads data from ChoiceBox and TextField(s)\n try {\n\n boolean singleDate = false;\n\n Timeline timeline = app.timelines.get(timelineChoice.getSelectionModel().getSelectedIndex());\n\n String name = event_nameField.getText().trim();\n String startDay = event_startDayField.getText().trim();\n String startMonth = event_startMonthField.getText().trim();\n String startYear = event_startYearField.getText().trim();\n String endDay = event_endDayField.getText().trim();\n String endMonth = event_endMonthField.getText().trim();\n String endYear = event_endYearField.getText().trim();\n String notes = event_notesField.getText().trim();\n\n// checks if all TextFields have correct contents in them\n if (name.isEmpty()) {\n setMessage(\"Event creation failed: Invalid Event name\", false);\n return;\n }\n\n if (startDay.isEmpty() || startDay.length() > 2 || !startDay.matches(\"[0-9]+\") || Integer.parseInt(startDay) > 31) {\n setMessage(\"Event creation failed: Invalid Event start day\", false);\n return;\n }\n\n if (startMonth.isEmpty() || startMonth.length() > 2 || !startMonth.matches(\"[0-9]+\") || Integer.parseInt(startMonth) > 12) {\n setMessage(\"Event creation failed: Invalid Event start month\", false);\n return;\n }\n\n if (startYear.isEmpty() || !startYear.matches(\"-?\\\\d+\")) {\n setMessage(\"Event creation failed: Invalid Event start year\", false);\n return;\n }\n\n// if all end date fields are empty, start date values are copied\n if (endDay.isEmpty() && endMonth.isEmpty() && endYear.isEmpty()) {\n\n singleDate = true;\n\n } else {\n\n if (endDay.isEmpty() || endDay.length() > 2 || !endDay.matches(\"[0-9]+\") || Integer.parseInt(endDay) > 31) {\n setMessage(\"Event creation failed: Invalid Event end day\", false);\n return;\n }\n\n if (endMonth.isEmpty() || endMonth.length() > 2 || !endMonth.matches(\"[0-9]+\") || Integer.parseInt(endMonth) > 12) {\n setMessage(\"Event creation failed: Invalid Event end month\", false);\n return;\n }\n\n if (endYear.isEmpty() || !endYear.matches(\"-?\\\\d+\")) {\n setMessage(\"Event creation failed: Invalid Event end year\", false);\n return;\n }\n }\n\n // creates start date\n int[] startDate = new int[]{\n Integer.parseInt(startDay),\n Integer.parseInt(startMonth),\n Integer.parseInt(startYear)};\n\n if (singleDate) {\n\n// adds Event to selected Timeline with single-date mode\n timeline.addEvent(name, startDate, startDate, false, notes);\n\n } else {\n\n// creates end date\n int[] endDate = new int[]{\n Integer.parseInt(endDay),\n Integer.parseInt(endMonth),\n Integer.parseInt(endYear)};\n\n// checks whether endDate is later than startDate\n if (!timeline.wasSooner(startDate, endDate)) {\n setMessage(\"Event creation failed: End Date is sooner than Start Date\", false);\n return;\n }\n\n// adds Event to selected Timeline with both start- and end-date\n timeline.addEvent(name, startDate, endDate, false, notes);\n }\n\n// exits the Add window, loads Menu\n cancelEventEdit();\n\n setMessage(\"Successfully created Event: \" + name, false);\n\n } catch (Exception e) {\n setMessage(\"Event creation failed: Invalid Timeline\", false);\n }\n }", "public UpdateEventsTask(Context context, RecyclerView rvList, ContentResolver cr) {\n super();\n this.cr = cr;\n this.context = context;\n this.rvList = rvList;\n }", "void addEvent(String name, int[] startDate, int[] endDate, boolean visible, String notes) {\n\n// index of the current node (event)\n int current = 0;\n\n// loops through Events until it has an earlier date than the next Event, adds new Event\n for (Event event : events) {\n if (wasSooner(startDate, event.startDate)) {\n events.add(current, new Event(this, name, startDate, endDate, visible, notes));\n return;\n }\n current++;\n }\n events.add(current, new Event(this, name, startDate, endDate, visible, notes));\n }", "protected void enhanceEventAttendanceList(\n SmartList<EventAttendance> eventAttendanceList, Map<String, Object> options) {\n }" ]
[ "0.62929523", "0.6137652", "0.6068539", "0.59975815", "0.59485304", "0.5872978", "0.5867717", "0.5856448", "0.5818997", "0.57963544", "0.5749044", "0.5685999", "0.56818336", "0.56785995", "0.5669453", "0.5658427", "0.5653476", "0.56494683", "0.5608642", "0.5600747", "0.5600351", "0.55891776", "0.55686474", "0.5553147", "0.554306", "0.55426747", "0.5537582", "0.55313444", "0.5530899", "0.55112535", "0.55049956", "0.5494267", "0.5487018", "0.5486113", "0.546824", "0.5441229", "0.5431784", "0.54274297", "0.5424947", "0.54219276", "0.541431", "0.54069275", "0.5403101", "0.5394401", "0.53889114", "0.5385028", "0.53831846", "0.53700024", "0.536721", "0.53633803", "0.53615683", "0.5350379", "0.5332405", "0.53287816", "0.5326756", "0.5322739", "0.5321669", "0.53208435", "0.5318556", "0.53176486", "0.53161365", "0.531061", "0.52855146", "0.52853566", "0.5285145", "0.5279983", "0.52788013", "0.52705884", "0.5269493", "0.5268272", "0.52509606", "0.52498347", "0.52497834", "0.5247965", "0.52475554", "0.5238637", "0.5232511", "0.5231871", "0.5228915", "0.52288663", "0.5227805", "0.52258223", "0.52188325", "0.52172774", "0.5216803", "0.52147365", "0.52146477", "0.52146477", "0.52146477", "0.5213346", "0.5204764", "0.52034354", "0.5195587", "0.51952696", "0.51908636", "0.5183034", "0.5177362", "0.5170664", "0.5163044", "0.51628715" ]
0.7407343
0
Set up the controls for interacting with the calendar display. The calendarDisplay must be in focus.
private void setControls() { calendarDisplayBox.addEventFilter(KEY_PRESSED, event -> { switch (event.getCode()) { case LEFT: logger.info("LEFT arrow Pressed."); displayPreviousWeek(); indicateCalendarDisplayTimeChanged(); break; case RIGHT: logger.info("RIGHT arrow Pressed."); displayNextWeek(); indicateCalendarDisplayTimeChanged(); break; default: } }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void init() {\n initComponents();\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 .addComponent(calendarPanel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE));\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(calendarPanel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE));\n setVisible(true);\n setLocationRelativeTo(null);\n }", "private void init() {\r\n setLayout(new BorderLayout());\r\n\r\n // the embedded table\r\n calendarTable = new JCalendarTable();\r\n // catch property change event and forward them\r\n calendarTable.addPropertyChangeListener(new PropertyChangeListener() {\r\n public void propertyChange(PropertyChangeEvent evt) {\r\n firePropertyChange(evt.getPropertyName(), evt.getOldValue(),\r\n evt.getOldValue());\r\n }\r\n });\r\n // put the calendar table in a scroll pane in this component\r\n JScrollPane x = new JScrollPane(calendarTable);\r\n x.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_NEVER);\r\n x.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_NEVER);\r\n add(x, BorderLayout.CENTER);\r\n\r\n // the controls panel\r\n controlsPanel = new JPanel();\r\n add(controlsPanel,\r\n (controlsPosition == TOP ? BorderLayout.NORTH : BorderLayout.SOUTH));\r\n controlsPanel.setLayout(new BoxLayout(controlsPanel, BoxLayout.X_AXIS));\r\n\r\n // add controls\r\n controlsPanel.add(createControlButton(Calendar.YEAR, -1, 2));\r\n controlsPanel.add(createControlButton(Calendar.MONTH, -1));\r\n\r\n //the today button\r\n// JButton todayButton = new JButton(\"*\") {\r\n// public String getToolTipText(MouseEvent e) {\r\n// return getTooltipDateFormat().format(new Date());\r\n// }\r\n// };\r\n// todayButton.setToolTipText(\"Today\");\r\n// todayButton.setBorder(BorderFactory.createEmptyBorder(2, 2, 2, 2));\r\n// todayButton.setMargin(new Insets(0, 0, 0, 0));\r\n// todayButton.addActionListener(new ActionListener() {\r\n// public void actionPerformed(ActionEvent e) {\r\n// setTodayDate();\r\n// }\r\n// });\r\n// controlsPanel.add(todayButton);\r\n\r\n controlsPanel.add(Box.createHorizontalGlue());\r\n\r\n initMonthControl();\r\n controlsPanel.add(monthControl);\r\n\r\n controlsPanel.add(Box.createHorizontalStrut(3));\r\n\r\n initYearControl();\r\n controlsPanel.add(yearControl);\r\n\r\n controlsPanel.add(Box.createHorizontalGlue());\r\n\r\n controlsPanel.add(createControlButton(Calendar.MONTH, 1));\r\n\r\n controlsPanel.add(createControlButton(Calendar.YEAR, 1, 2));\r\n\r\n updateControlsFromTable();\r\n }", "protected void addCalendarWidgets() {\n\n calendarMenu = new MenuBar();\n clubName = new Label();\n nameLayout = new EVerticalLayout(clubName);\n clubNamePanel = new Panel(nameLayout);\n\n addCalendarMenuItems();\n\n addComponents(calendarMenu, clubNamePanel, calendar);\n clubNamePanel.setSizeUndefined();\n\n clubName.setStyleName(ValoTheme.LABEL_BOLD);\n setComponentAlignment(clubNamePanel, Alignment.MIDDLE_CENTER);\n setComponentAlignment(calendarMenu, Alignment.MIDDLE_CENTER);\n\n addComponents(calendarMenu, clubNamePanel, calendar);\n // nameLayout.setComponentAlignment(clubName, Alignment.MIDDLE_CENTER);\n clubNamePanel.setSizeUndefined();\n\n clubName.setStyleName(ValoTheme.LABEL_BOLD);\n setComponentAlignment(clubNamePanel, Alignment.MIDDLE_CENTER);\n setComponentAlignment(calendarMenu, Alignment.MIDDLE_CENTER);\n }", "private void setupUI(){\n this.setupTimerSchedule(controller, 0, 500);\n this.setupFocusable(); \n this.setupSensSlider();\n this.setupInitEnable();\n this.setupDebugger();\n }", "protected void setupUI() {\n\t\t\n\t\tcontentPane = new JPanel();\n\t\tlayerLayout = new CardLayout();\n\t\tcontentPane.setLayout(layerLayout);\n\t\tControlAgendaViewPanel agendaViewPanel = new ControlAgendaViewPanel(layerLayout,contentPane);\n\t\tagendaPanelFactory = new AgendaPanelFactory();\n\t\tdayView = agendaPanelFactory.getAgendaView(ActiveView.DAY_VIEW);\n\t\tweekView = agendaPanelFactory.getAgendaView(ActiveView.WEEK_VIEW);\n\t\tmonthView = agendaPanelFactory.getAgendaView(ActiveView.MONTH_VIEW);\n\t\t\n\t\tcontentPane.add(dayView,ActiveView.DAY_VIEW.name());\n\t\tcontentPane.add(weekView,ActiveView.WEEK_VIEW.name());\n\t\tcontentPane.add(monthView,ActiveView.MONTH_VIEW.name());\n\t\n\t\tJSplitPane splitPane = new JSplitPane(JSplitPane.HORIZONTAL_SPLIT,agendaViewPanel, contentPane);\n\t\tthis.setContentPane(splitPane);\n\t\t\n\t\tJMenuBar menuBar = new JMenuBar();\n\t\t\n\t\t//MENU\n\t\tJMenu file, edit, help, view;\n\t\t\n\t\t//ITEM DE MENU\n\t\tJMenuItem load, quit, save;\n\t\tJMenuItem display, about;\n\t\tJMenuItem month, week, day;\n\t\t\n\t\t/* File Menu */\n\t\t/** EX4 : MENU : UTILISER L'AIDE FOURNIE DANS LE TP**/\n\t\t//Classe pour les listener des parties non implémentés\n\t\tclass MsgError implements ActionListener {\n\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tJOptionPane.showMessageDialog(null, ApplicationSession.instance().getString(\"info\"), \"info\", JOptionPane.INFORMATION_MESSAGE, null);\t\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t//Menu File\t\n\t\tfile = new JMenu(ApplicationSession.instance().getString(\"file\"));\n\t\t\n\t\tmenuBar.add(file);\n\t\tfile.setMnemonic(KeyEvent.VK_A);\n\t\tfile.getAccessibleContext().setAccessibleDescription(\n\t\t \"The only menu in this program that has menu items\");\n\t\tmenuBar.add(file);\n\t\t\n\n\t\t//a group of JMenuItems\n\t\tload = new JMenuItem(ApplicationSession.instance().getString(\"load\"),KeyEvent.VK_T);\n\t\tload.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_1, ActionEvent.ALT_MASK));\n\t\tload.getAccessibleContext().setAccessibleDescription(\"This doesn't really do anything\");\n\t\tfile.add(load);\n\t\tload.addActionListener(new MsgError());\n\t\t\n\t\tquit = new JMenuItem(ApplicationSession.instance().getString(\"quit\"),KeyEvent.VK_T);\n\t\tquit.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_1, ActionEvent.ALT_MASK));\n\t\tquit.getAccessibleContext().setAccessibleDescription(\"This doesn't really do anything\");\n\t\tfile.add(quit);\n\t\t\n\t\t//LISTENER QUIT\n\t\tquit.addActionListener(new ActionListener() {\n\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\n\t\t\t\t//message box yes/no pour le bouton quitter\n\t\t\t\tint dialogButton = JOptionPane.YES_NO_OPTION;\n\t\t\t\tint dialogResult = JOptionPane.showConfirmDialog (null, new String(ApplicationSession.instance().getString(\"quit?\")),\"Warning\",dialogButton);\n\t\t\t\tif(dialogResult == JOptionPane.YES_OPTION){\n\t\t\t\tSystem.exit(0);\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t});\n\t\t\n\t\tsave = new JMenuItem(new String(ApplicationSession.instance().getString(\"save\")),KeyEvent.VK_T);\n\t\tsave.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_1, ActionEvent.ALT_MASK));\n\t\tsave.getAccessibleContext().setAccessibleDescription(\"This doesn't really do anything\");\n\t\tfile.add(save);\n\t\tsave.addActionListener(new MsgError());\n\t\t\n\t\t\n\t//Menu Edit \n\t\tedit = new JMenu(new String(ApplicationSession.instance().getString(\"edit\")));\n\t\t\n\t\tmenuBar.add(edit);\n\t\tedit.setMnemonic(KeyEvent.VK_A);\n\t\tedit.getAccessibleContext().setAccessibleDescription(\n\t\t \"The only menu in this program that has menu items\");\n\t\t\n\t\t//Sous menu View\n\t\t\n\t\tview = new JMenu(new String(ApplicationSession.instance().getString(\"view\")));\n\t\tview.setMnemonic(KeyEvent.VK_A);\n\t\tview.getAccessibleContext().setAccessibleDescription(\n\t\t \"The only menu in this program that has menu items\");\n\t\tedit.add(view);\n\t\t\n\t\tmonth = new JMenuItem(new String(ApplicationSession.instance().getString(\"month\")),KeyEvent.VK_T);\n\t\tmonth.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_1, ActionEvent.ALT_MASK));\n\t\tmonth.getAccessibleContext().setAccessibleDescription(\"This doesn't really do anything\");\n\t\tview.add(month);\n\t\t\t\t\n\t\tweek = new JMenuItem(new String(ApplicationSession.instance().getString(\"week\")),KeyEvent.VK_T);\n\t\tweek.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_1, ActionEvent.ALT_MASK));\n\t\tweek.getAccessibleContext().setAccessibleDescription(\"This doesn't really do anything\");\n\t\tview.add(week);\n\t\t\n\t\tday = new JMenuItem(new String(ApplicationSession.instance().getString(\"day\")),KeyEvent.VK_T);\n\t\tday.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_1, ActionEvent.ALT_MASK));\n\t\tday.getAccessibleContext().setAccessibleDescription(\"This doesn't really do anything\");\n\t\tview.add(day);\n\t\t\n\t\t//LISTENER VIEW\n\t\t\n\t\t\n\t\tmonth.addActionListener(new ActionListener() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\n\t\t\t\tlayerLayout.last(contentPane);\t\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t});\n\t\t\n\t\tweek.addActionListener(new ActionListener() {\n\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tlayerLayout.first(contentPane);\t\n\t\t\t\tlayerLayout.next(contentPane);\t\n\t\t\t\t}\n\t\t\t\n\t\t\t\n\t\t});\n\t\tday.addActionListener(new ActionListener() {\n\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\n\t\t\t\tlayerLayout.first(contentPane);\t\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t});\n\t\t\n\t\t\n\t//Menu Help\n\t\thelp = new JMenu(new String(ApplicationSession.instance().getString(\"help\")));\n\t\t\n\t\tmenuBar.add(help);\n\t\thelp.setMnemonic(KeyEvent.VK_A);\n\t\thelp.getAccessibleContext().setAccessibleDescription(\n\t\t \"The only menu in this program that has menu items\");\n\t\tmenuBar.add(help);\n\t\t\n\t\tdisplay = new JMenuItem(new String(ApplicationSession.instance().getString(\"display\")),KeyEvent.VK_T);\n\t\tdisplay.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_1, ActionEvent.ALT_MASK));\n\t\tdisplay.getAccessibleContext().setAccessibleDescription(\"This doesn't really do anything\");\n\t\thelp.add(display);\n\t\tdisplay.addActionListener(new MsgError());\n\t\t\n\t\tabout = new JMenuItem(new String(ApplicationSession.instance().getString(\"about\")),KeyEvent.VK_T);\n\t\tabout.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_1, ActionEvent.ALT_MASK));\n\t\tabout.getAccessibleContext().setAccessibleDescription(\"This doesn't really do anything\");\n\t\thelp.add(about);\n\t\tabout.addActionListener(new MsgError());\n\t\t\n\t\t\n\n\t\tthis.setJMenuBar(menuBar);\n\t\tthis.pack();\n\t\tlayerLayout.next(contentPane);\n\t}", "public void setUpComponents() {\n for (int i = 1; i <= 31; i++) {\n cmbDay.addItem(String.format(\"%02d\", i));\n }\n\n for (int i = 0; i <= 11; i++) {\n cmbMonth.addItem(monthNames[i]);\n }\n\n updateTimeComboBox();\n\n updateDurationComboBox();\n\n cmbDay.setSelectedIndex(initialDay.getDay() - 1);\n cmbMonth.setSelectedIndex(initialDay.getMonth());\n\n if (formType.equals(\"Edit\")) {\n txtName.setText(eventToEdit.getName());\n cmbTime.setSelectedIndex(eventToEdit.getStartTime() - usedTimes.size());\n cmbDuration.setSelectedIndex(eventToEdit.getDuration() - 1);\n }\n\n cmbTime.addItemListener(new MyItemListener());\n cmbDay.addItemListener(new MyItemListener());\n cmbMonth.addItemListener(new MyItemListener());\n radAutoTime.addActionListener(new TimeHandler());\n radSelectTime.addActionListener(new TimeHandler());\n\n buttonGroup.add(radSelectTime);\n buttonGroup.add(radAutoTime);\n\n frame.setLayout(new GridBagLayout());\n gbc.insets = new Insets(5, 5, 5, 5);\n addComponents();\n\n btnSubmit.addActionListener(new EventHandler());\n frame.getRootPane().setDefaultButton(btnSubmit);\n\n buildFrame();\n }", "private void showCalendarPanel() {\n browserPanelPlaceholder.setVisible(false);\n dashboardPanelPlaceholder.setVisible(false);\n calendarPlaceholder.setVisible(true);\n calendarPlaceholder.toFront();\n }", "private void initializeCalendarTab() {\r\n\r\n calTab = new JPanel(new GridBagLayout());\r\n calTab.setBackground(MainGUI.backgroundColor);\r\n calTab.setBorder(BorderFactory.createLineBorder(Color.BLACK, 1));\r\n calendarConstraints = new GridBagConstraints();\r\n\r\n // calendar\r\n cal_calendarLabel = new JLabel(\"Search Appointments\");\r\n cal_chooseDateLabel = new JLabel(\"Choose Date\");\r\n cal_calendarDisplayLabel = new JLabel(\"Calendar\");\r\n cal_chooseDateButton = new JButton(\"Look Up\");\r\n cal_datePicker = createDatePicker(false);\r\n\r\n // set font\r\n cal_calendarLabel.setFont(new Font((cal_calendarLabel.getFont().getFontName()), Font.PLAIN, 40));\r\n\r\n cal_calendarLabel.setForeground(MainGUI.fontColor);\r\n cal_chooseDateLabel.setForeground(MainGUI.fontColor);\r\n cal_calendarDisplayLabel.setForeground(MainGUI.fontColor);\r\n cal_chooseDateLabel.setForeground(MainGUI.fontColor);\r\n\r\n // create table\r\n\r\n String[] columnNames = {\"Time\", \"Patient\"};\r\n String[][] data = {\r\n {cal_datePicker.getText(), \"\"},\r\n {\"9:00am\", \"\"}, {\"10:00am\", \"\"},\r\n {\"11:00am\", \"\"}, {\"12:00pm\", \"\"},\r\n {\"1:00pm\", \"\"}, {\"2:00pm\", \"\"},\r\n {\"3:00pm\", \"\"}, {\"4:00pm\", \"\"}};\r\n\r\n cal_table = new JTable(data, columnNames);\r\n cal_table.setRowHeight(20);\r\n DefaultTableCellRenderer centerRenderer = new DefaultTableCellRenderer();\r\n centerRenderer.setHorizontalAlignment(JLabel.CENTER);\r\n cal_table.getColumnModel().getColumn(0).setCellRenderer(centerRenderer);\r\n cal_table.getColumnModel().getColumn(1).setCellRenderer(centerRenderer);\r\n\r\n cal_scrollPane = new JScrollPane(cal_table);\r\n cal_scrollPane.setPreferredSize(new Dimension(220, 203));\r\n\r\n // add calendar label\r\n calendarConstraints.gridx = 10;\r\n calendarConstraints.gridy = 10;\r\n calendarConstraints.weighty = 0.2;\r\n calendarConstraints.gridwidth = 20;\r\n calendarConstraints.anchor = GridBagConstraints.NORTH;\r\n calendarConstraints.insets = new Insets(30, 0, 0, 0);\r\n\r\n calTab.add(cal_calendarLabel, calendarConstraints);\r\n\r\n // add chooseDateLabel\r\n calendarConstraints.gridy = 20;\r\n calendarConstraints.weightx = 1;\r\n calendarConstraints.weighty = 0.1;\r\n calendarConstraints.gridwidth = 10;\r\n calendarConstraints.anchor = GridBagConstraints.NORTHEAST;\r\n calendarConstraints.insets = new Insets(30, 0, 0, 100);\r\n\r\n calTab.add(cal_chooseDateLabel, calendarConstraints);\r\n\r\n // add datePicker\r\n calendarConstraints.anchor = GridBagConstraints.EAST;\r\n calendarConstraints.insets = new Insets(0, 0, 215, 50);\r\n\r\n calTab.add(cal_datePicker, calendarConstraints);\r\n\r\n // add choose date button\r\n calendarConstraints.weighty = 1;\r\n calendarConstraints.ipady = 5;\r\n calendarConstraints.insets = new Insets(0, 0, 115, 100);\r\n\r\n calTab.add(cal_chooseDateButton, calendarConstraints);\r\n\r\n // add calendar label\r\n calendarConstraints.gridx = 20;\r\n calendarConstraints.ipady = 0;\r\n calendarConstraints.weighty = 0.2;\r\n calendarConstraints.anchor = GridBagConstraints.NORTHWEST;\r\n calendarConstraints.insets = new Insets(30, 135, 0, 0);\r\n\r\n calTab.add(cal_calendarDisplayLabel, calendarConstraints);\r\n\r\n // add calendar table\r\n calendarConstraints.weighty = 1;\r\n calendarConstraints.anchor = GridBagConstraints.WEST;\r\n calendarConstraints.insets = new Insets(0, 50, 35, 0);\r\n\r\n calTab.add(cal_scrollPane, calendarConstraints);\r\n }", "public void setupCalendar() { \n\t\tcal = whenIsIt();\n\t\tLocale here = Locale.US;\n\t\tthisMonth = cal.getDisplayName(2, Calendar.LONG_STANDALONE, here);\n\t\tdate = cal.get(5); //lesson learned: if it's a number do this\n\t\t//ADD CODE FOR ORDINALS HERE\n\t\tyear = cal.get(1);\n\t\tthisHour = cal.get(10);\n\t\tthisMinute = cal.get(12);\n\t\tthisSecond = cal.get(13);\n\t\tamPm = cal.getDisplayName(9, Calendar.SHORT, here);\n\t\tthisDay = thisMonth +\" \"+ addOrdinal(date) + \", \" + year;\n\t\tcurrentTime = fix.format(thisHour) + \":\" + fix.format(thisMinute) + \":\" + fix.format(thisSecond) + \" \" + amPm;\n\t}", "private void initView() {\n sdf = SimpleDateFormat.getInstance();\n\n /**\n * 自定义设置相关\n */\n MNCalendarVerticalConfig mnCalendarVerticalConfig = new MNCalendarVerticalConfig.Builder()\n .setMnCalendar_showWeek(true) //是否显示星期栏\n .setMnCalendar_showLunar(true) //是否显示阴历\n .setMnCalendar_colorWeek(\"#000000\") //星期栏的颜色\n .setMnCalendar_titleFormat(\"yyyy-MM\") //每个月的标题样式\n .setMnCalendar_colorTitle(\"#000000\") //每个月标题的颜色\n .setMnCalendar_colorSolar(\"#000000\") //阳历的颜色\n .setMnCalendar_colorLunar(\"#dcdcdc\") //阴历的颜色\n .setMnCalendar_colorBeforeToday(\"#dcdcdc\") //今天之前的日期的颜色\n .setMnCalendar_colorRangeBg(\"#A0E0BE\") //区间中间的背景颜色\n .setMnCalendar_colorRangeText(\"#FFFFFF\") //区间文字的颜色\n .setMnCalendar_colorStartAndEndBg(\"#5DC381\") //开始结束的背景颜色\n .setMnCalendar_countMonth(6) //显示多少月(默认6个月)\n .build();\n mnCalendar.setConfig(mnCalendarVerticalConfig);\n //设置导航图标要在setSupportActionBar方法之后\n setSupportActionBar(mToolbar);\n }", "public TCalGUI() {\n\t\tthis.topFrame = new JFrame(\"TCalendar\");\n\t\tthis.calendar = new TCalendar();\n\t\tthis.currentWeek = 0; // Cursor, 0 = current week, negative for past,\n\t\t// positive for future weeks.\n\n\t\t// Initialize a monday to which weeks can be added and subtracted.\n\t\tthisMonday = new GregorianCalendar();\n\t\tthisMonday = DateCalc.startOf(thisMonday, Calendar.WEEK_OF_YEAR);\n\t\tthis.currentMonday = (GregorianCalendar) thisMonday.clone();\n\t\tJSeparator separator;\n\n\t\t// Create the menu bar.\n\t\tJMenuBar menu = new JMenuBar();\n\t\tmenu.setLayout(new BoxLayout(menu, BoxLayout.X_AXIS));\n\n\t\tseparator = new JSeparator(JSeparator.VERTICAL);\n\t\tseparator.setPreferredSize(new Dimension(10, menu.getHeight()));\n\t\tmenu.add(separator);\n\n\t\tJMenu file = new JMenu(\"File\");\n\t\tMENU_NEW = new JMenuItem(\"New Event\");\n\t\tMENU_IMPORT = new JMenuItem(\"Import Events\");\n\t\tMENU_LOAD = new JMenuItem(\"Load Calendar\");\n\t\tMENU_SAVE = new JMenuItem(\"Save Calendar\");\n\t\t// Set the action commands for the menu items.\n\t\tMENU_NEW.addActionListener(this);\n\t\tMENU_IMPORT.addActionListener(this);\n\t\tMENU_LOAD.addActionListener(this);\n\t\tMENU_SAVE.addActionListener(this);\n\n\t\tfile.add(MENU_NEW);\n\t\tfile.add(MENU_IMPORT);\n\t\tfile.add(MENU_LOAD);\n\t\tfile.add(MENU_SAVE);\n\t\tmenu.add(file);\n\n\t\tseparator = new JSeparator(JSeparator.VERTICAL);\n\t\tseparator.setPreferredSize(new Dimension(20, menu.getHeight()));\n\t\tmenu.add(separator);\n\n\t\t// Create navigation buttons for the week view.\n\t\tPREVIOUS_BUTTON = new JButton(\"Previous\");\n\t\tCURRENT_BUTTON = new JButton(\"Current\");\n\t\tNEXT_BUTTON = new JButton(\"Next\");\n\t\tPREVIOUS_BUTTON.addActionListener(this);\n\t\tCURRENT_BUTTON.addActionListener(this);\n\t\tNEXT_BUTTON.addActionListener(this);\n\n\t\t// Add to menuBar\n\t\tmenu.add(PREVIOUS_BUTTON);\n\t\tmenu.add(CURRENT_BUTTON);\n\t\tmenu.add(NEXT_BUTTON);\n\n\t\tseparator = new JSeparator(JSeparator.VERTICAL);\n\t\tseparator.setPreferredSize(new Dimension(70, menu.getHeight()));\n\t\tmenu.add(separator);\n\n\t\t// Create the GoTo textfield.\n\t\tJLabel goToLabel = new JLabel(\"Go To Date: \");\n\t\tGOTO = new JTextField();\n\t\tGOTO.addActionListener(this);\n\n\t\tmenu.add(goToLabel);\n\t\tmenu.add(GOTO);\n\n\t\tseparator = new JSeparator(JSeparator.VERTICAL);\n\t\tseparator.setPreferredSize(new Dimension(50, menu.getHeight()));\n\t\tmenu.add(separator);\n\n\t\t// Create the Month View button.\n\t\tMONTH_VIEW = new JButton(\"Month View\");\n\t\tMONTH_VIEW.addActionListener(this);\n\n\t\tmenu.add(MONTH_VIEW);\n\n\t\tseparator = new JSeparator(JSeparator.VERTICAL);\n\t\tseparator.setPreferredSize(new Dimension(50, menu.getHeight()));\n\t\tmenu.add(separator);\n\n\t\tthis.currentYear = new JLabel(\"\" + this.currentMonday.get(Calendar.YEAR));\n\t\tmenu.add(this.currentYear);\n\n\t\tseparator = new JSeparator(JSeparator.VERTICAL);\n\t\tseparator.setPreferredSize(new Dimension(300, menu.getHeight()));\n\t\tmenu.add(separator);\n\n\t\tthis.weekdates = new JToolBar();\n\t\tthis.weekdates.setLayout(new GridLayout(1, 0));\n\t\tthis.weekdates.setEnabled(false);\n\t\tthis.weekDateUpdate(new GregorianCalendar());\n\n\t\t// Create the week view with empty JTimeBlocks\n\t\tthis.weekPanel = new JPanel(new GridLayout(1, 8));\n\t\tthis.weekPanel.setBackground(Color.WHITE);\n\n\t\tJTimeBlock unit;\n\t\tJTimeBlock previousBlock = null;\n\t\tfor (int i = 1; i < 8; i++) {\n\t\t\tJPanel current = new JPanel();\n\t\t\tfor (int j = 1; j <= 24 * BLOCKS_IN_HOUR; j++) { // TimeBlocks are\n\t\t\t\t// set to be 15\n\t\t\t\t// min long.\n\t\t\t\tunit = new JTimeBlock(previousBlock);\n\t\t\t\tunit.setPreferredSize(new Dimension(50, 45));\n\t\t\t\t// Mark hours with light grey borders\n\t\t\t\tif (j % BLOCKS_IN_HOUR == 0) {\n\t\t\t\t\tunit.setBorder(BorderFactory.createMatteBorder(0, 1, 1, 1,\n\t\t\t\t\t\t\tColor.LIGHT_GRAY));\n\t\t\t\t} else {\n\t\t\t\t\tunit.setBorder(BorderFactory.createMatteBorder(0, 1, 0, 1,\n\t\t\t\t\t\t\tColor.LIGHT_GRAY));\n\t\t\t\t}\n\t\t\t\t// Add a MouseListener that processes clicks\n\t\t\t\tunit.addMouseListener(new MouseListener() {\n\n\t\t\t\t\t// Process the click\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t\t\tprocessClick(e.getComponent());\n\t\t\t\t\t}\n\n\t\t\t\t\t// The rest intentionally left blank.\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void mouseReleased(MouseEvent e) {\n\t\t\t\t\t}\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void mousePressed(MouseEvent e) {\n\t\t\t\t\t}\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void mouseExited(MouseEvent e) {\n\t\t\t\t\t}\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void mouseEntered(MouseEvent e) {\n\t\t\t\t\t}\n\t\t\t\t});\n\n\t\t\t\tcurrent.add(unit);\n\t\t\t\tpreviousBlock = unit;\n\t\t\t}\n\t\t\tcurrent.setLayout(new BoxLayout(current, BoxLayout.Y_AXIS));\n\t\t\tthis.weekPanel.add(current);\n\t\t}\n\n\t\t// Put the weekpanel, with the timeblocks, into scrollpane\n\t\tJScrollPane scrollPane = new JScrollPane(weekPanel,\n\t\t\t\tJScrollPane.VERTICAL_SCROLLBAR_ALWAYS,\n\t\t\t\tJScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED);\n\t\tscrollPane.setLayout(new ScrollPaneLayout());\n\t\tscrollPane.getVerticalScrollBar().setUnitIncrement(SCROLL_SPEED);\n\n\t\t// Add the toolPane into its own scrollpane\n\t\tthis.toolPane = new JPanel();\n\t\tJScrollPane toolScroll = new JScrollPane(this.toolPane,\n\t\t\t\tJScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED,\n\t\t\t\tJScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED);\n\t\ttoolScroll.getVerticalScrollBar().setUnitIncrement(SCROLL_SPEED);\n\t\tJPanel week = new JPanel();\n\t\tweek.setLayout(new BoxLayout(week, BoxLayout.Y_AXIS));\n\t\tweek.add(this.weekdates);\n\t\tweek.add(scrollPane);\n\n\t\t// Add the week and tool scrollpanes to a splitpane\n\t\tJSplitPane splitPane = new JSplitPane(JSplitPane.HORIZONTAL_SPLIT,\n\t\t\t\tweek, toolScroll);\n\t\tsplitPane.setResizeWeight(SPLIT_PANE_WEIGHT);\n\n\t\t// Add all the components to the frame and show the GUI\n\t\tthis.topFrame.add(splitPane);\n\t\tthis.topFrame.setJMenuBar(menu);\n\t\tthis.topFrame.setSize(1200, 800);\n\t\tthis.topFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tthis.topFrame.setVisible(true);\n\n\t}", "public void initComponents() {\n\t\taddButton = new JButton(addFlightText);\n\t\tdelayButton = new JButton(delayFlightText);\n\t\tquitButton = new JButton(quitText);\n\t\t// TODO: Add button instanciations for other operations\n\n\t\t// Initialize display area\n\t\tdisplayArea = new JTextArea(LINE_COUNT, LINE_SIZE);\n\t\tdisplayArea.setEditable(false);\n\t\tscrollPane = new JScrollPane(displayArea, JScrollPane.VERTICAL_SCROLLBAR_ALWAYS,\n\t\t\t\tJScrollPane.HORIZONTAL_SCROLLBAR_ALWAYS);\n\t}", "private void initComponents() {\r\n\r\n setLayout(new java.awt.BorderLayout());\r\n }", "private void makeDisplay() {\n\n\t\t// setLayout to be a BoxLayout\n\t\tsetLayout(new BoxLayout(this, BoxLayout.Y_AXIS));\n\t\t// call these methods ???? to be defined later\n\n\t\taddOscServerAddressPanel();\n\t\taddGlobalControlPanel();\n\t\taddFirstSynthPanel();\n\t\taddSecondSynthPanel();\n\t\taddThirdSynthPanel();\n\t}", "private void initComponents() {\n\n setLayout(new java.awt.BorderLayout());\n }", "private void initAgenda() {\n agenda = new Agenda();\n appointmentGroup = new Agenda.AppointmentGroupImpl().withStyleClass(STYLE_CLASS);\n\n // this actionCallBack is called when the user double clicks on an appointment in the display\n // Opens a dialog containing the details of the clicked event\n agenda.actionCallbackProperty().set(param -> {\n logger.info(\"User double clicked on \" + param.toString());\n CalendarEventDialog dialog = new CalendarEventDialog((CalendarEvent) param);\n displayPopUp(dialog.getRoot());\n return null;\n });\n\n agenda.setAllowDragging(false);\n agenda.setAppointmentChangedCallback(param -> null);\n agenda.setEditAppointmentCallback(param -> null);\n agenda.setSkin(new AgendaWeekSkin(agenda));\n agenda.setId(\"agenda\");\n\n calendarDisplayBox.getChildren().add(agenda);\n }", "private void initControls() {\n txtFirstName.setDocument(new clsTextFieldLimit(255));\n txtMiddleName.setDocument(new clsTextFieldLimit(255));\n txtLastName.setDocument(new clsTextFieldLimit(255));\n txtStreet.setDocument(new clsTextFieldLimit(255));\n txtPostcode.setDocument(new clsTextFieldLimit(255));\n txtCity.setDocument(new clsTextFieldLimit(255));\n txtCountry.setDocument(new clsTextFieldLimit(255));\n \n //Only allow JTable the selection of one single row.\n tblContacts.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);\n //Make next column head auto-resizable.\n tblContacts.setAutoResizeMode(JTable.AUTO_RESIZE_NEXT_COLUMN);\n //Define a contact listener for handling row changes.\n this.pContactSelectionModel = tblContacts.getSelectionModel();\n this.pContactSelectionModel.addListSelectionListener(new tblContactsListSelectionHandler());\n tblContacts.setSelectionModel(pContactSelectionModel);\n //Set the mouse scroll speed of the JScrollPane.\n scrRight.getVerticalScrollBar().setUnitIncrement(10);\n }", "private void init() {\r\n\t\tthis.setBackground(Color.decode(\"#c5dfed\"));\r\n\r\n\t\tthis.initPanelButtons();\r\n\r\n\t\tUtilityClass.addBorder(this, 20, 20, 20, 20);\r\n\t\t\r\n\t\tthis.title.setFont(ConstantView.FONT_TITLE_CRUD);\r\n\t\tthis.title.setHorizontalAlignment(JLabel.CENTER);\r\n\t\tthis.add(title, BorderLayout.NORTH);\r\n\t\t\r\n\t\tthis.add(panelButtons, BorderLayout.SOUTH);\r\n\t\tthis.jPanelFormClient.setOpaque(false);\r\n\t\tthis.add(jPanelFormClient, BorderLayout.CENTER);\r\n\t}", "private void initUI() {\r\n\t\t//Äußeres Panel\r\n\t\tContainer pane = getContentPane();\r\n\t\tGroupLayout gl = new GroupLayout(pane);\r\n\t\tpane.setLayout(gl);\r\n\t\t//Abstende von den Containern und dem äußeren Rand\r\n\t\tgl.setAutoCreateContainerGaps(true);\r\n\t\tgl.setAutoCreateGaps(true);\r\n\t\t//TextFeld für die Ausgabe\r\n\t\tJTextField output = view.getTextField();\r\n\t\t//Die jeweiligen Panels für die jeweiigen Buttons\r\n\t\tJPanel brackets = view.getBracketPanel();\r\n\t\tJPanel remove = view.getTop2Panel();\r\n\t\tJPanel numbers = view.getNumbersPanel();\r\n\t\tJPanel last = view.getBottomPanel();\r\n\t\t//Anordnung der jeweiligen Panels durch den Layout Manager\r\n\t\tgl.setHorizontalGroup(gl.createParallelGroup().addComponent(output).addComponent(brackets).addComponent(remove).addComponent(numbers).addComponent(last));\r\n\t\tgl.setVerticalGroup(gl.createSequentialGroup().addComponent(output).addComponent(brackets).addComponent(remove).addComponent(numbers).addComponent(last));\r\n\t\tpack();\r\n\t\tsetTitle(\"Basic - Taschenrechner\");\r\n\t\tsetDefaultCloseOperation(EXIT_ON_CLOSE);\r\n\t\tsetResizable(false);\r\n\t}", "protected void initControls() {\n\t\tbind(true);\n\t}", "public MyCalender() {\n initComponents();\n }", "public CalendarFrame()\n\t{\n\t\tmodel = new Model();\n\t\tcontroller = new ControllerPanel(model);\n\t\tview = new MonthlyView(model);\n\t\tmodel.attach(view);\n\n\t\tthis.setSize(1500, 700);\n\t\tadd(controller, BorderLayout.NORTH);\n\t\tadd(view, BorderLayout.CENTER);\n\t\tsetBackground(Color.WHITE);\n\n\t\tsetDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\t// pack();\n\t\tsetVisible(true);\n\t}", "public CalendarPage() {\n\t\t\n\t\tPageFactory.initElements(driver, this);\n\t}", "public CalendarView(CalendarModel model) \n\t{\n\t\t//make no date be selected by giving it an impossible number\n\t\tbordered = -1;\n\t\t\n\t\tframe.setSize(700, 270);\n\t\tcModel = model;\n\t\tmonthMaxDays = cModel.getMonthMaxDays();\n\t\t\n\t\t//initialize all buttons\n\t\tnextMonth = new JButton(\"Month>\");\n\t\tprevMonth = new JButton(\"<Month\");\n\t\tnextDay = new JButton(\">\");\n\t\tprevDay = new JButton(\"<\");\n\t\tcreateButton = new JButton(\"Create\");\n\t\tcreateButton.setBackground(Color.GREEN);\n\t\tcreateButton.setFont(new Font(\"newFont\", Font.BOLD, 18));\n\t\t\n\t\tquitButton = new JButton(\"Quit\");\n\t\tquitButton.setBackground(Color.RED);\n\t\tquitButton.setForeground(Color.WHITE);\n\t\tquitButton.setFont(new Font(\"newFont\", Font.BOLD, 18));\n\t\t\n\t\t//part where all the dates are on\n\t\tnumberPanel.setLayout(new GridLayout(0,7));\n\t\t\n\t\t//box that contains the events\n\t\tDimension dim = new Dimension(300, 140);\n\t\teventsPane.setPreferredSize(dim);\n\t\teventsPane.setEditable(false);\n\t\t\n\t\t//make the new number buttons\n\t\t\n\t\tmakeDayButtons();\n\t\t\n\t\t//put in the empty buttons\n\t\tfor (int i = 1; i < cModel.findDayOfWeek(1); i++) \n\t\t{\n\t\t\tJButton emptyButton = new JButton();\n\t\t\t\n\t\t\t//these buttons will not work\n\t\t\temptyButton.setEnabled(false);\n\t\t\tnumberPanel.add(emptyButton); //add to panel\n\t\t}\n\t\t\n\t\t//add each button from ArrayList to the panel\n\t\tfor (JButton day : buttonArray) \n\t\t{\n\t\t\tnumberPanel.add(day);\n\t\t}\n\t\t\n\t\t//highlightEvents();\n\t\twriteEvents(cModel.getSelectedDate());\n\t\tborderSelected(cModel.getSelectedDate() - 1);\n\t\t\n\t\t//start adding actionListeners to the buttons\n\t\t\n\t\tnextDay.addActionListener(new \n\t\t\t\tActionListener() \n\t\t\t\t{\n\t\t\t\t\tpublic void actionPerformed(ActionEvent e) \n\t\t\t\t\t{\n\t\t\t\t\t\tmodel.nextDay();\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\n\t\tprevDay.addActionListener(new \n\t\t\t\tActionListener() \n\t\t\t\t{\n\t\t\t\t\tpublic void actionPerformed(ActionEvent e) \n\t\t\t\t\t{\n\t\t\t\t\t\tmodel.previousDay();\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\n\t\tnextMonth.addActionListener(new \n\t\t\t\tActionListener() \n\t\t\t\t{\n\t\t\t\t\tpublic void actionPerformed(ActionEvent e) \n\t\t\t\t\t{\n\t\t\t\t\t\tcModel.nextMonth();\n\t\t\t\t\t\tcreateButton.setEnabled(false);\n\t\t\t\t\t\teventsPane.setText(\"\");\n\t\t\t\t\t\t\n\t\t\t\t\t\t//can't switch to next date unless you select one\n\t\t\t\t\t\tnextDay.setEnabled(false);\n\t\t\t\t\t\tprevDay.setEnabled(false);\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\n\t\tprevMonth.addActionListener(new \n\t\t\t\tActionListener() \n\t\t\t\t{\n\t\t\t\t\tpublic void actionPerformed(ActionEvent e) \n\t\t\t\t\t{\n\t\t\t\t\t\tcModel.previousMonth();\n\t\t\t\t\t\tcreateButton.setEnabled(false);\n\t\t\t\t\t\teventsPane.setText(\"\");\n\t\t\t\t\t\t\n\t\t\t\t\t\t//can't switch to next date unless you select one\n\t\t\t\t\t\tnextDay.setEnabled(false);\n\t\t\t\t\t\tprevDay.setEnabled(false);\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\n\t\tcreateButton.addActionListener(new ActionListener() \n\t\t{\n\t\t\tpublic void actionPerformed(ActionEvent e) \n\t\t\t{\n\t\t\t\tshowEventWindow();\n\t\t\t}\n\t\t});\n\t\t\n\t\tquitButton.addActionListener(new \n\t\t\t\tActionListener() \n\t\t\t\t{\n\t\t\t\t\tpublic void actionPerformed(ActionEvent e) \n\t\t\t\t\t{\n\t\t\t\t\t\t//save everything and exit screen\n\t\t\t\t\t\tcModel.saveData();\n\t\t\t\t\t\tSystem.exit(0);\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\n\t\t\n\t\tleftContainer.setLayout(new BorderLayout());\n\t\tmonthYearLabel.setText(monthArray[cModel.getCalMonth()] + \" \" + model.getCalYear());;\n\t\tSMTWTFS.setText(\" S M T W T F S\");\n\t\t\n\t\tJPanel monthYearSMTWTFS = new JPanel();\n\t\tmonthYearSMTWTFS.setLayout(new BorderLayout());\n\t\tmonthYearSMTWTFS.add(monthYearLabel,BorderLayout.NORTH);\n\t\tmonthYearSMTWTFS.add(SMTWTFS,BorderLayout.SOUTH);\n\t\t\n\t\tJPanel createAndNextDays = new JPanel();\n\t\tcreateAndNextDays.add(createButton);\n\t\tcreateAndNextDays.add(prevDay);\n\t\tcreateAndNextDays.add(nextDay);\n\t\t\n\t\tleftContainer.add(createAndNextDays, BorderLayout.NORTH);\n\t\tleftContainer.add(monthYearSMTWTFS, BorderLayout.CENTER);\n\t\tleftContainer.add(numberPanel, BorderLayout.SOUTH);\n\t\t\n\t\t\n\t\trightContainer.setLayout(new BorderLayout());\n\t\tJScrollPane eventScroller = new JScrollPane(eventsPane);\n\t\teventScroller.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_AS_NEEDED);\n\t\t\n\t\tJPanel nextMonthsAndQuit = new JPanel();\n\t\tnextMonthsAndQuit.add(prevMonth);\n\t\tnextMonthsAndQuit.add(nextMonth);\n\t\tnextMonthsAndQuit.add(quitButton);\n\t\t\n\t\tdayDateLabel.setText(dayArray[cModel.findDayOfWeek(cModel.getSelectedDate()) - 1] + \" \" + cModel.getCalMonth() + \"/\" + cModel.getCalDate());\n\t\t\n\t\trightContainer.add(nextMonthsAndQuit, BorderLayout.NORTH);\n\t\trightContainer.add(dayDateLabel, BorderLayout.CENTER);\n\t\trightContainer.add(eventScroller, BorderLayout.SOUTH);\n\t\t\n\t\t\n\t\t//add everything to the frame\n\t\tframe.setLayout(new FlowLayout());\n\t\tframe.add(leftContainer);\n\t\tframe.add(rightContainer);\n\t\t\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\t//frame.pack();\n\t\tframe.setVisible(true);\n\t}", "private void initComponents() {\r\n\r\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\r\n setTitle(title());\r\n setMinimumSize(new java.awt.Dimension(1000, 500));\r\n\r\n toolsPanel.setLayout(new java.awt.FlowLayout(java.awt.FlowLayout.LEFT));\r\n\r\n channelComboBox.setMinimumSize(new java.awt.Dimension(75, 20));\r\n channelComboBox.setPreferredSize(new java.awt.Dimension(100, 20));\r\n channelComboBox.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n channelComboBox_actionPerformed(evt);\r\n }\r\n });\r\n toolsPanel.add(channelComboBox);\r\n\r\n getContentPane().add(toolsPanel, java.awt.BorderLayout.NORTH);\r\n getContentPane().add(tabsPanel, java.awt.BorderLayout.CENTER);\r\n\r\n valuesPanel.setLayout(new javax.swing.BoxLayout(valuesPanel, javax.swing.BoxLayout.Y_AXIS));\r\n getContentPane().add(valuesPanel, java.awt.BorderLayout.EAST);\r\n\r\n pack();\r\n }", "private void initComponents() {\n\n jButton2 = new javax.swing.JButton();\n jButton1 = new javax.swing.JButton();\n jPanel1 = new javax.swing.JPanel();\n jLabel1 = new javax.swing.JLabel();\n jComboBox1 = new javax.swing.JComboBox();\n jLabel2 = new javax.swing.JLabel();\n jLabel3 = new javax.swing.JLabel();\n jLabel15 = new javax.swing.JLabel();\n jLabel16 = new javax.swing.JLabel();\n jTextField16 = new javax.swing.JTextField();\n jTextField17 = new javax.swing.JTextField();\n jPanel2 = new javax.swing.JPanel();\n jLabel4 = new javax.swing.JLabel();\n jLabel5 = new javax.swing.JLabel();\n jLabel6 = new javax.swing.JLabel();\n jTextField1 = new javax.swing.JTextField();\n jTextField3 = new javax.swing.JTextField();\n jTextField2 = new javax.swing.JTextField();\n jLabel17 = new javax.swing.JLabel();\n jPanel3 = new javax.swing.JPanel();\n jLabel7 = new javax.swing.JLabel();\n jLabel13 = new javax.swing.JLabel();\n jLabel14 = new javax.swing.JLabel();\n jLabel8 = new javax.swing.JLabel();\n jLabel9 = new javax.swing.JLabel();\n jLabel10 = new javax.swing.JLabel();\n jLabel11 = new javax.swing.JLabel();\n jLabel12 = new javax.swing.JLabel();\n jLabel18 = new javax.swing.JLabel();\n jTextField4 = new javax.swing.JTextField();\n jTextField5 = new javax.swing.JTextField();\n jTextField6 = new javax.swing.JTextField();\n jTextField7 = new javax.swing.JTextField();\n jTextField8 = new javax.swing.JTextField();\n jTextField9 = new javax.swing.JTextField();\n jTextField10 = new javax.swing.JTextField();\n jTextField11 = new javax.swing.JTextField();\n jTextField12 = new javax.swing.JTextField();\n jTextField13 = new javax.swing.JTextField();\n jTextField14 = new javax.swing.JTextField();\n jTextField15 = new javax.swing.JTextField();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);\n setTitle(\"Schedule Setup\");\n setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));\n\n jButton2.setFont(new java.awt.Font(\"Arial\", 0, 11));\n jButton2.setText(\"Save\");\n jButton2.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton2ActionPerformed(evt);\n }\n });\n\n jButton1.setFont(new java.awt.Font(\"Arial\", 0, 11));\n jButton1.setText(\"Cancel\");\n jButton1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton1ActionPerformed(evt);\n }\n });\n\n jPanel1.setBorder(javax.swing.BorderFactory.createTitledBorder(null, \"Semester Information\", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font(\"Tahoma\", 1, 12), new java.awt.Color(0, 0, 255)));\n\n jLabel1.setFont(new java.awt.Font(\"Arial\", 0, 12));\n jLabel1.setText(\"Semester:\");\n\n jComboBox1.setFont(new java.awt.Font(\"Arial\", 0, 11));\n jComboBox1.setModel(new javax.swing.DefaultComboBoxModel(new String[] { \"Select Semester\", \"Fall\", \"Spring\", \"Summer A\", \"Summer B\", \"Summer C\" }));\n jComboBox1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jComboBox1ActionPerformed(evt);\n }\n });\n\n jLabel2.setFont(new java.awt.Font(\"Arial\", 0, 12));\n jLabel2.setText(\"Start Date:\");\n\n jLabel3.setFont(new java.awt.Font(\"Arial\", 0, 12));\n jLabel3.setText(\"End Date:\");\n\n jLabel15.setFont(new java.awt.Font(\"Arial\", 2, 10));\n jLabel15.setText(\"(mm/dd/yy)\");\n\n jLabel16.setFont(new java.awt.Font(\"Arial\", 2, 10));\n jLabel16.setText(\"(mm/dd/yy)\");\n\n org.jdesktop.layout.GroupLayout jPanel1Layout = new org.jdesktop.layout.GroupLayout(jPanel1);\n jPanel1.setLayout(jPanel1Layout);\n jPanel1Layout.setHorizontalGroup(\n jPanel1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\n .add(jPanel1Layout.createSequentialGroup()\n .addContainerGap()\n .add(jPanel1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\n .add(jLabel1)\n .add(jLabel2))\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\n .add(jPanel1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\n .add(jPanel1Layout.createSequentialGroup()\n .add(jTextField16, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 88, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.UNRELATED)\n .add(jLabel15)\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED, 67, Short.MAX_VALUE)\n .add(jLabel3)\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\n .add(jTextField17, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 100, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.UNRELATED)\n .add(jLabel16)\n .addContainerGap(41, Short.MAX_VALUE))\n .add(jPanel1Layout.createSequentialGroup()\n .add(jComboBox1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 105, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(351, Short.MAX_VALUE))))\n );\n jPanel1Layout.setVerticalGroup(\n jPanel1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\n .add(jPanel1Layout.createSequentialGroup()\n .addContainerGap()\n .add(jPanel1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)\n .add(jLabel1)\n .add(jComboBox1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED, 17, Short.MAX_VALUE)\n .add(jPanel1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)\n .add(jLabel2)\n .add(jLabel15)\n .add(jLabel16)\n .add(jLabel3)\n .add(jTextField16, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\n .add(jTextField17, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))\n .add(11, 11, 11))\n );\n\n jPanel2.setBorder(javax.swing.BorderFactory.createTitledBorder(null, \"Class Information\", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font(\"Tahoma\", 1, 12), new java.awt.Color(0, 0, 255)));\n\n jLabel4.setFont(new java.awt.Font(\"Arial\", 0, 12));\n jLabel4.setText(\"Subject:\");\n\n jLabel5.setFont(new java.awt.Font(\"Arial\", 0, 12));\n jLabel5.setText(\"Course Name:\");\n\n jLabel6.setFont(new java.awt.Font(\"Arial\", 0, 12));\n jLabel6.setText(\"Course Number:\");\n\n jTextField1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jTextField1ActionPerformed(evt);\n }\n });\n\n jTextField2.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jTextField2ActionPerformed(evt);\n }\n });\n\n jLabel17.setFont(new java.awt.Font(\"Arial\", 2, 10));\n jLabel17.setText(\"(XXX)\");\n\n org.jdesktop.layout.GroupLayout jPanel2Layout = new org.jdesktop.layout.GroupLayout(jPanel2);\n jPanel2.setLayout(jPanel2Layout);\n jPanel2Layout.setHorizontalGroup(\n jPanel2Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\n .add(jPanel2Layout.createSequentialGroup()\n .addContainerGap()\n .add(jPanel2Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\n .add(jPanel2Layout.createSequentialGroup()\n .add(jLabel4)\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.UNRELATED)\n .add(jTextField1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 41, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\n .add(jLabel17)\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED, 41, Short.MAX_VALUE)\n .add(jLabel6)\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.UNRELATED)\n .add(jTextField3, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 99, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))\n .add(jPanel2Layout.createSequentialGroup()\n .add(jLabel5)\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.UNRELATED)\n .add(jTextField2, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 277, Short.MAX_VALUE)))\n .add(149, 149, 149))\n );\n jPanel2Layout.setVerticalGroup(\n jPanel2Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\n .add(jPanel2Layout.createSequentialGroup()\n .add(jPanel2Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)\n .add(jLabel4)\n .add(jLabel6)\n .add(jTextField3, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\n .add(jTextField1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\n .add(jLabel17))\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\n .add(jPanel2Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)\n .add(jLabel5)\n .add(jTextField2, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))\n .addContainerGap())\n );\n\n jPanel3.setBorder(javax.swing.BorderFactory.createTitledBorder(null, \"Class Times\", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font(\"Tahoma\", 1, 12), new java.awt.Color(0, 0, 255)));\n\n jLabel7.setFont(new java.awt.Font(\"Arial\", 0, 11));\n jLabel7.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel7.setText(\"Monday\");\n\n jLabel13.setFont(new java.awt.Font(\"Arial\", 0, 11));\n jLabel13.setText(\"Start Time:\");\n\n jLabel14.setFont(new java.awt.Font(\"Arial\", 0, 11));\n jLabel14.setText(\"End Time:\");\n\n jLabel8.setFont(new java.awt.Font(\"Arial\", 0, 11));\n jLabel8.setText(\"Tuesday\");\n\n jLabel9.setFont(new java.awt.Font(\"Arial\", 0, 11));\n jLabel9.setText(\"Wednesday\");\n\n jLabel10.setFont(new java.awt.Font(\"Arial\", 0, 11));\n jLabel10.setText(\"Thursday\");\n\n jLabel11.setFont(new java.awt.Font(\"Arial\", 0, 11));\n jLabel11.setText(\"Friday\");\n\n jLabel12.setFont(new java.awt.Font(\"Arial\", 0, 11));\n jLabel12.setText(\"Saturday\");\n\n jLabel18.setFont(new java.awt.Font(\"Arial\", 2, 11));\n jLabel18.setText(\"(In Military Time hh:mm)\");\n\n jTextField7.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jTextField7ActionPerformed(evt);\n }\n });\n\n jTextField9.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jTextField9ActionPerformed(evt);\n }\n });\n\n jTextField10.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jTextField10ActionPerformed(evt);\n }\n });\n\n jTextField11.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jTextField11ActionPerformed(evt);\n }\n });\n\n jTextField12.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jTextField12ActionPerformed(evt);\n }\n });\n\n jTextField13.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jTextField13ActionPerformed(evt);\n }\n });\n\n jTextField14.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jTextField14ActionPerformed(evt);\n }\n });\n\n jTextField15.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jTextField15ActionPerformed(evt);\n }\n });\n\n org.jdesktop.layout.GroupLayout jPanel3Layout = new org.jdesktop.layout.GroupLayout(jPanel3);\n jPanel3.setLayout(jPanel3Layout);\n jPanel3Layout.setHorizontalGroup(\n jPanel3Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\n .add(jPanel3Layout.createSequentialGroup()\n .add(jPanel3Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\n .add(jPanel3Layout.createSequentialGroup()\n .add(jPanel3Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\n .add(jLabel13)\n .add(jLabel14))\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\n .add(jPanel3Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.CENTER)\n .add(jTextField10, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 70, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\n .add(jTextField5, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 70, Short.MAX_VALUE)\n .add(jLabel7))\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\n .add(jPanel3Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.CENTER)\n .add(jTextField11, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 73, Short.MAX_VALUE)\n .add(jLabel8)\n .add(jTextField6, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 73, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\n .add(jPanel3Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.CENTER)\n .add(jTextField12, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 72, Short.MAX_VALUE)\n .add(jLabel9)\n .add(jTextField7, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 72, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\n .add(jPanel3Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.CENTER)\n .add(jTextField13, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 70, Short.MAX_VALUE)\n .add(jLabel10)\n .add(jTextField8, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 70, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\n .add(jPanel3Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.CENTER)\n .add(jTextField14, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 75, Short.MAX_VALUE)\n .add(jLabel11)\n .add(jTextField9, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 75, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\n .add(jPanel3Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.CENTER)\n .add(jTextField15, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 72, Short.MAX_VALUE)\n .add(jLabel12)\n .add(jTextField4, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 72, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)))\n .add(jPanel3Layout.createSequentialGroup()\n .addContainerGap()\n .add(jLabel18)))\n .addContainerGap())\n );\n jPanel3Layout.setVerticalGroup(\n jPanel3Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\n .add(jPanel3Layout.createSequentialGroup()\n .add(jPanel3Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)\n .add(jLabel7)\n .add(jLabel9)\n .add(jLabel10)\n .add(jLabel11)\n .add(jLabel12)\n .add(jLabel8))\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\n .add(jPanel3Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)\n .add(jLabel13)\n .add(jTextField5, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\n .add(jTextField6, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\n .add(jTextField7, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\n .add(jTextField8, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\n .add(jTextField9, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\n .add(jTextField4, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\n .add(jLabel18)\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\n .add(jPanel3Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)\n .add(jLabel14)\n .add(jTextField15, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\n .add(jTextField14, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\n .add(jTextField13, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\n .add(jTextField12, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\n .add(jTextField11, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\n .add(jTextField10, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))\n .addContainerGap(org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n\n org.jdesktop.layout.GroupLayout layout = new org.jdesktop.layout.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\n .add(layout.createSequentialGroup()\n .addContainerGap()\n .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\n .add(org.jdesktop.layout.GroupLayout.TRAILING, layout.createSequentialGroup()\n .add(jButton2, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 67, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.UNRELATED)\n .add(jButton1)\n .add(8, 8, 8))\n .add(jPanel1, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .add(jPanel2, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .add(jPanel3, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addContainerGap())\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\n .add(layout.createSequentialGroup()\n .addContainerGap()\n .add(jPanel1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\n .add(18, 18, 18)\n .add(jPanel2, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.UNRELATED)\n .add(jPanel3, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.UNRELATED)\n .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)\n .add(jButton1)\n .add(jButton2))\n .addContainerGap())\n );\n\n pack();\n }", "private void initControlsPage()\r\n {\n \tString keyTitleString = \"KEYBOARD\";\r\n \tkeyTitleText = new OText(25, 200, 300, keyTitleString);\r\n \tkeyTitleText.setFont(\"Courier New\", 20, 1.0, 'C', Settings.themes.textColor);\r\n \t\r\n \t//Initialize the keyboard movement text\r\n \tString keyMoveString = \"Move Optimus with the WASD keys \"\r\n \t\t\t + \" <br> \"\r\n \t\t\t + \"as if they were the arrow keys.\";\r\n \tkeyMoveText = new OText(25, 225, 300, keyMoveString);\r\n \tkeyMoveText.setFont(\"Courier New\", 14, 1.0, 'C', Settings.themes.textColor);\r\n \t\r\n \t\r\n \t//Initialize the mouse title text\r\n \tString mouseTitleString = \"MOUSE\";\r\n \tmouseTitleText = new OText(375, 200, 300, mouseTitleString);\r\n \tmouseTitleText.setFont(\"Courier New\", 20, 1.0, 'C', Settings.themes.textColor);\r\n \t\r\n \t//Initialize the mouse text\r\n \tString mouseMoveString = \"Aim by moving the mouse and shoot bullets from Optimus in the direction of the cursor using both clicks. \";\r\n \tmouseText = new OText(375, 225, 300, mouseMoveString);\r\n \tmouseText.setFont(\"Courier New\", 14, 1.0, 'C', Settings.themes.textColor);\r\n }", "private void setupVariables() {\n mCalendarView = findViewById(R.id.calendarView);\n mTextView = findViewById(R.id.eventsView);\n }", "private void initLayoutComponents()\n {\n viewPaneWrapper = new JPanel(new CardLayout());\n viewPane = new JTabbedPane();\n crawlPane = new JPanel(new BorderLayout());\n transitionPane = new JPanel();\n searchPane = new BGRenderer(Color.WHITE, WINDOW_WIDTH, WINDOW_HEIGHT);\n resultsPane = new BGRenderer(Color.WHITE, WINDOW_WIDTH, WINDOW_HEIGHT);\n }", "private void init() {\n\t\tcreateSubjectField();\n\t\tcreateTextField();\n\t\tcreateButton();\n\t\tsetupSubjectPanel();\n\t\tsetupToDoPanel();\n\n\t\tsetBorder(BorderFactory.createTitledBorder(\"To Do List\"));\n\t\tsetLayout(new BorderLayout());\n\t\tadd(pnlSubject, BorderLayout.NORTH);\n\t\tadd(scroll, BorderLayout.CENTER);\n\t\tadd(pnlButton, BorderLayout.SOUTH);\n\t}", "protected void setupViewControllers() {\r\n\t\tViewControlsLayer viewControlsLayer = new ViewControlsLayer();\r\n\t\t@SuppressWarnings(\"unused\")\r\n\t\tToolTipController toolTipController = new ToolTipController(getWWD(),\r\n\t\t\t\tAVKey.DISPLAY_NAME, null);\r\n\t\t@SuppressWarnings(\"unused\")\r\n\t\tHighlightController highlightController = new HighlightController(getWWD(),\r\n\t\t\t\tSelectEvent.ROLLOVER);\r\n\r\n\t\tinsertBeforeCompass(viewControlsLayer);\r\n\t\tgetWWD().addSelectListener(new ViewControlsSelectListener(getWWD(),\r\n\t\t\t\tviewControlsLayer));\r\n\t}", "public void initializeCalendarGrid(){\n int rows = 6;\n int cols = 7;\n for (int i = 0; i < rows; i++){\n for (int j = 0; j < cols; j++){\n \n // Add VBox and style it\n VBox vPane = new VBox();\n vPane.getStyleClass().add(\"calendar_pane\");\n vPane.setMinWidth(weekdayHeader.getPrefWidth()/7);\n \n vPane.addEventHandler(MouseEvent.MOUSE_CLICKED, (e)->{\n addEvent(vPane);\n });\n \n GridPane.setVgrow(vPane, Priority.ALWAYS);\n \n // Add it to the grid\n calendarGrid.add(vPane, j, i); \n }\n } \n \n // Set up Row Constraints\n for (int i = 0; i < 7; i++) {\n RowConstraints row = new RowConstraints();\n row.setMinHeight(scrollPane.getHeight()/7);\n calendarGrid.getRowConstraints().add(row);\n }\n }", "private void init() {\n setLayout(new BorderLayout());\n setBackground(ProgramPresets.COLOR_BACKGROUND);\n add(getTitlePanel(), BorderLayout.NORTH);\n add(getTextPanel(), BorderLayout.CENTER);\n add(getLinkPanel(), BorderLayout.SOUTH);\n }", "private void loadDefaultCalendar() {\n ICalendarAgenda iCalendarAgenda = new ICalendarAgenda();\n borderPane.setCenter(iCalendarAgenda);\n\n // block events on calendar\n EventHandler<MouseEvent> handler = MouseEvent::consume;\n borderPane.getCenter().addEventFilter(MouseEvent.ANY, handler);\n setUpBorderPane(iCalendarAgenda);\n }", "private void setupPanel()\n\t{\n\t\tthis.setLayout(baseLayout);\n\t\tqueryButton = new JButton(\"query\");\n\t\tthis.add(queryButton);\n\t\tthis.add(displayPane);\n\t\tdisplayArea = new JTextArea(10,30);\n\t\tadd(displayArea);\n\t\t\n\t\t\n\t}", "public CalendarDemo() {\r\n super();\r\n JPanel tmpPanel = new JPanel();\r\n tmpPanel.setLayout( new GridBagLayout() );\r\n GridBagConstraints c = new GridBagConstraints();\r\n\r\n c.fill = GridBagConstraints.BOTH;\r\n c.gridx = 0;\r\n c.gridy = 0;\r\n c.weightx = 1;\r\n c.weighty = 1;\r\n c.gridheight = 2;\r\n tmpPanel.add(chart[0], c);\r\n\r\n c.gridx = 1;\r\n c.gridy = 0;\r\n c.weightx = 0.4;\r\n c.weighty = 0.4;\r\n c.gridheight = 1;\r\n tmpPanel.add(chart[1], c);\r\n\r\n c.gridx = 1;\r\n c.gridy = 1;\r\n c.weightx = 0.3;\r\n c.weighty = 0.6;\r\n c.gridheight = 1;\r\n tmpPanel.add(chart[2], c);\r\n\r\n setSamplePane(tmpPanel);\r\n\r\n weekDaysButton.addItemListener(this);\r\n monthNameButton.addItemListener(this);\r\n editButton.addActionListener(this);\r\n }", "private void initComponents() {\n\n\t\tpanelVirtualKeyboard = new PanelVirtualKeyboardReal(flipped);\n\n\t\tsetDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);\n\t\taddWindowFocusListener(new java.awt.event.WindowFocusListener() {\n\t\t\tpublic void windowGainedFocus(java.awt.event.WindowEvent evt) {\n\t\t\t}\n\t\t\tpublic void windowLostFocus(java.awt.event.WindowEvent evt) {\n\t\t\t\tformWindowLostFocus(evt);\n\t\t\t}\n\t\t});\n\t\tgetContentPane().add(panelVirtualKeyboard, java.awt.BorderLayout.CENTER);\n\n\t\tpack();\n\t}", "private void initialize() throws LogicLayerException {\n\t\tframe = new JFrame();\n\t\tframe.setBounds(100, 100, 450, 300);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tframe.getContentPane().setLayout(new BorderLayout(0, 0));\n\t\tframe.setSize(900, 700);\n\t\t\n\t\tCalendar calendar = new Calendar();\n\t\tStateContainer container = new StateContainer();\n\t\tcalendar.setStateContainer(container);\n\t\tframe.getContentPane().add(calendar);\n\t}", "private void initComponents() {\n wizardManager = new JPanel();\n\n //======== this ========\n setTitle(\"Create New Event\");\n setResizable(false);\n setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);\n Container contentPane = getContentPane();\n contentPane.setLayout(new CardLayout(10, 10));\n\n //======== wizardManager ========\n {\n wizardManager.setBorder(new EmptyBorder(0, 0, 0, 0));\n wizardManager.setLayout(new CardLayout());\n }\n contentPane.add(wizardManager, \"card1\");\n pack();\n setLocationRelativeTo(getOwner());\n // JFormDesigner - End of component initialization //GEN-END:initComponents\n }", "protected void setupUI() {\n textView = (TextView) findViewById(R.id.textView);\n viewGradeButton = (Button) findViewById(R.id.viewAllBillsButton);\n viewDash = (Button) findViewById(R.id.viewDash);\n\n //Listen if the buttons is clicked\n viewGradeButton.setOnClickListener(onClickViewGradeButton);\n viewDash.setOnClickListener(onClickViewDash);\n\n }", "protected void initControl() {\n\t\t\r\n\t}", "private void initialize() {\r\n\r\n\t\ttitleFont = new Font(\"宋体\", Font.BOLD + Font.PLAIN, 16);\r\n\t\tfont = new Font(\"宋体\", Font.PLAIN, 12);\r\n\t\ttry {\r\n\t\t\tcolor = new Color(Integer.parseInt(\"D3D3D3\", 16));\r\n\t\t} catch (NumberFormatException e) {\r\n\t\t\t// codes to deal with this exception\r\n\t\t}\r\n\t\tdaojLabel = new JLabel();\r\n\t\tdaojLabel.setBounds(new Rectangle(255, 33, 15, 18));\r\n\t\tdaojLabel.setText(\"到\");\r\n\t\tdaojLabel.setFont(font);\r\n\t\tdaojLabel.setForeground(color);\r\n\t\tcxsjjLabel = new JLabel();\r\n\t\tcxsjjLabel.setBounds(new Rectangle(92, 33, 59, 18));\r\n\t\tcxsjjLabel.setText(\"查询时间:\");\r\n\t\tcxsjjLabel.setFont(font);\r\n\t\tcxsjjLabel.setForeground(color);\r\n\t\t// 设置导航panel\r\n\t\tnavigatePanel = new JPanel();\r\n\t\tnavigatePanel.setLayout(null);\r\n\t\tnavigatePanel.add(this.getProjButton());\r\n\t\tnavigatePanel.add(this.getNextjButton());\r\n\t\tnavigatePanel.setBounds(new Rectangle(95, 510, 788, 20));\r\n\t\tColor color = new Color(35, 35, 35);\r\n\t\t// navigatePanel.setBackground(Color.GRAY);\r\n\t\tnavigatePanel.setBackground(color);\r\n\t\tthis.add(navigatePanel);\r\n\r\n\t\tthis.setSize(976, 601);\r\n\t\tthis.setLayout(null);\r\n\t\tthis.add(cxsjjLabel, null);\r\n\t\tthis.add(getBegjTextField(), null);\r\n\t\tthis.add(daojLabel, null);\r\n\t\tthis.add(getEndjTextField(), null);\r\n\t\tthis.add(getCxjButton(), null);\r\n\r\n\t\tgetylcs = new GetYlcs();\r\n\t\tthis.add(getMainjPanel(), null);\r\n\r\n\t}", "public void init()\n {\n buildUI(getContentPane());\n }", "private DisplayPanel(){\r\n\t\t\t\tControlActionListenter cal = new ControlActionListenter();\r\n\t\t\t\tsetLayout(new BorderLayout());\r\n\t\t\t\tfinal JButton btn1 = new JButton(\"First\");\r\n\t\t\t\tbtn1.setFocusable(false);\r\n \t \tbtn1.addActionListener(cal);\r\n \t\t\tfinal JButton btn2 = new JButton(\"Next\");\r\n \t\t\tbtn2.addActionListener(cal);\r\n \t\t\t\tfinal JButton btn3 = new JButton(\"Previous\");\r\n \t\t \tbtn3.addActionListener(cal);\r\n \t\t final JButton btn4 = new JButton(\"Last\");\r\n \t\tbtn4.addActionListener(cal);\r\n \t\tbtn2.setFocusable(false);\r\n \t\tbtn3.setFocusable(false);\r\n \t\tbtn4.setFocusable(false);\r\n \t\t \tJPanel controlButtons = new JPanel(new GridLayout(2,2,5,5));\r\n \t\t \tcontrolButtons.add(btn3);\r\n \t\t \tcontrolButtons.add(btn2);\r\n \t\t \tcontrolButtons.add(btn1);\r\n \t\tcontrolButtons.add(btn4);\r\n \t\tcontrolButtons.setBorder(BorderFactory.createEmptyBorder(10, 10, 10, 10));\r\n \t\tadd(controlButtons, BorderLayout.PAGE_END);\r\n\t\t\t}", "private void initMonthControl() {\r\n monthMenu = new JPopupMenu();\r\n updateMonthMenu();\r\n\r\n monthControl = new JLabel();\r\n monthControl.setBorder(null);\r\n monthControl.addMouseListener(new MouseAdapter() {\r\n public void mousePressed(MouseEvent e) {\r\n int month = getMonth();\r\n int y = 0;\r\n for (int i = 0; i < month; i++) {\r\n y -= monthMenu.getComponent(i).getPreferredSize().getHeight();\r\n }\r\n monthMenu.show(monthControl, 0, y);\r\n }\r\n });\r\n }", "public CalendarViewBase() {\r\n super();\r\n this.events = new ArrayList<>();\r\n this.windowControls = new WindowControls(0, 0, this.getWidth(), this.getHeight(), false);\r\n this.currentViewDate = CalendarMath.getCurrentDate();\r\n\r\n this.weekScrollPane = new ScrollPane();\r\n this.weekScrollPane.setHbarPolicy(ScrollBarPolicy.NEVER);\r\n this.weekScrollPane.setVbarPolicy(ScrollBarPolicy.ALWAYS);\r\n\r\n WeekControls weekControls = new WeekControls(this.currentViewDate,\r\n event -> this.features.addEvent(event), this::refresh);\r\n\r\n LiveClock liveClock = new LiveClock(this::refresh, this.currentViewDate);\r\n\r\n StackPane topBar = new TopBar(weekControls, liveClock, this.windowControls);\r\n topBar.setOnMouseClicked(e -> {\r\n if (e.getClickCount() == 2) {\r\n this.windowControls.toggleMaximize();\r\n }\r\n });\r\n\r\n this.setTop(topBar);\r\n this.updateWeekView();\r\n }", "private void initComponents() {\n java.awt.GridBagConstraints gridBagConstraints;\n\n specifyGroupRadioBtn = new javax.swing.ButtonGroup();\n buttonsPanel = new javax.swing.JPanel();\n cancelBtn = new javax.swing.JButton();\n previewBtn = new javax.swing.JButton();\n sectionPanel = new javax.swing.JPanel();\n wardNutResultsLbl = new javax.swing.JLabel();\n sectionCbx = new javax.swing.JComboBox();\n sectionLbl = new javax.swing.JLabel();\n datePanel = new javax.swing.JPanel();\n wardNutNameBDLbl = new javax.swing.JLabel();\n wardNutNameEDLbl = new javax.swing.JLabel();\n beginDatePicker = new com.afrisoftech.lib.DatePicker();\n endDatePicker = new com.afrisoftech.lib.DatePicker();\n departmentPanel = new javax.swing.JPanel();\n departmentLabel = new javax.swing.JLabel();\n departmentCmbx = new javax.swing.JComboBox();\n selectOptionPanel = new javax.swing.JPanel();\n departmentChckBox = new javax.swing.JCheckBox();\n sectionChckBox = new javax.swing.JCheckBox();\n divisionChkBx = new javax.swing.JCheckBox();\n divisionPanel = new javax.swing.JPanel();\n divisionLabel = new javax.swing.JLabel();\n divisionCmbx = new javax.swing.JComboBox();\n specifyTypePanel = new javax.swing.JPanel();\n generalLeaveRBtn = new javax.swing.JRadioButton();\n specificLeaveRBtn = new javax.swing.JRadioButton();\n\n setTitle(\"Leave Taken Report - Select Begin & End Date\");\n setResizable(false);\n addWindowListener(new java.awt.event.WindowAdapter() {\n public void windowClosing(java.awt.event.WindowEvent evt) {\n closeDialog(evt);\n }\n });\n getContentPane().setLayout(new java.awt.GridBagLayout());\n\n buttonsPanel.setBorder(javax.swing.BorderFactory.createEtchedBorder());\n buttonsPanel.setLayout(new java.awt.GridBagLayout());\n\n cancelBtn.setMnemonic('n');\n cancelBtn.setText(\"Cancel\");\n cancelBtn.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n cancelBtnActionPerformed(evt);\n }\n });\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 1;\n gridBagConstraints.gridy = 3;\n gridBagConstraints.weightx = 1.0;\n gridBagConstraints.weighty = 1.0;\n buttonsPanel.add(cancelBtn, gridBagConstraints);\n\n previewBtn.setMnemonic('o');\n previewBtn.setText(\"Preview Report\");\n previewBtn.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n previewBtnActionPerformed(evt);\n }\n });\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 3;\n gridBagConstraints.weightx = 1.0;\n gridBagConstraints.weighty = 1.0;\n buttonsPanel.add(previewBtn, gridBagConstraints);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 6;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n gridBagConstraints.weightx = 1.0;\n gridBagConstraints.weighty = 1.0;\n gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5);\n getContentPane().add(buttonsPanel, gridBagConstraints);\n\n sectionPanel.setBorder(javax.swing.BorderFactory.createTitledBorder(\"Select Section Here\"));\n sectionPanel.setLayout(new java.awt.GridBagLayout());\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 1;\n gridBagConstraints.gridy = 1;\n gridBagConstraints.gridwidth = 4;\n gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;\n gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;\n gridBagConstraints.weightx = 1.0;\n gridBagConstraints.weighty = 1.0;\n sectionPanel.add(wardNutResultsLbl, gridBagConstraints);\n\n sectionCbx.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n sectionCbxActionPerformed(evt);\n }\n });\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 1;\n gridBagConstraints.gridy = 0;\n gridBagConstraints.gridwidth = 3;\n gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;\n gridBagConstraints.ipadx = 20;\n gridBagConstraints.weightx = 1.0;\n gridBagConstraints.weighty = 1.0;\n gridBagConstraints.insets = new java.awt.Insets(0, 0, 0, 10);\n sectionPanel.add(sectionCbx, gridBagConstraints);\n\n sectionLbl.setText(\"Section Name\");\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 0;\n gridBagConstraints.weightx = 1.0;\n gridBagConstraints.weighty = 1.0;\n sectionPanel.add(sectionLbl, gridBagConstraints);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 4;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n gridBagConstraints.weightx = 1.0;\n gridBagConstraints.weighty = 1.0;\n gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5);\n getContentPane().add(sectionPanel, gridBagConstraints);\n\n datePanel.setBorder(javax.swing.BorderFactory.createTitledBorder(\"Select Dates\"));\n datePanel.setLayout(new java.awt.GridBagLayout());\n\n wardNutNameBDLbl.setText(\"Begin Date\");\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.weightx = 1.0;\n gridBagConstraints.weighty = 1.0;\n gridBagConstraints.insets = new java.awt.Insets(0, 10, 0, 10);\n datePanel.add(wardNutNameBDLbl, gridBagConstraints);\n\n wardNutNameEDLbl.setText(\"End Date\");\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 1;\n gridBagConstraints.insets = new java.awt.Insets(0, 10, 0, 10);\n datePanel.add(wardNutNameEDLbl, gridBagConstraints);\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;\n gridBagConstraints.weightx = 1.0;\n gridBagConstraints.weighty = 1.0;\n gridBagConstraints.insets = new java.awt.Insets(0, 10, 0, 10);\n datePanel.add(beginDatePicker, gridBagConstraints);\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 1;\n gridBagConstraints.gridy = 1;\n gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;\n gridBagConstraints.weightx = 1.0;\n gridBagConstraints.weighty = 1.0;\n gridBagConstraints.insets = new java.awt.Insets(0, 10, 0, 10);\n datePanel.add(endDatePicker, gridBagConstraints);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 5;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n gridBagConstraints.weightx = 1.0;\n gridBagConstraints.weighty = 1.0;\n gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5);\n getContentPane().add(datePanel, gridBagConstraints);\n\n departmentPanel.setBorder(javax.swing.BorderFactory.createTitledBorder(\"Select the Department Here\"));\n departmentPanel.setLayout(new java.awt.GridBagLayout());\n\n departmentLabel.setText(\"Department Name\");\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 0;\n gridBagConstraints.weightx = 1.0;\n gridBagConstraints.weighty = 1.0;\n gridBagConstraints.insets = new java.awt.Insets(10, 10, 0, 0);\n departmentPanel.add(departmentLabel, gridBagConstraints);\n\n departmentCmbx.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n departmentCmbxActionPerformed(evt);\n }\n });\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 1;\n gridBagConstraints.gridy = 0;\n gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;\n gridBagConstraints.weightx = 1.0;\n gridBagConstraints.weighty = 1.0;\n gridBagConstraints.insets = new java.awt.Insets(10, 0, 0, 10);\n departmentPanel.add(departmentCmbx, gridBagConstraints);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 3;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n gridBagConstraints.weightx = 1.0;\n gridBagConstraints.weighty = 1.0;\n gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5);\n getContentPane().add(departmentPanel, gridBagConstraints);\n\n selectOptionPanel.setBorder(javax.swing.BorderFactory.createTitledBorder(\"Select Report Options Below\"));\n selectOptionPanel.setLayout(new java.awt.GridBagLayout());\n\n departmentChckBox.setText(\"Department\");\n departmentChckBox.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n departmentChckBoxActionPerformed(evt);\n }\n });\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 1;\n gridBagConstraints.gridy = 0;\n gridBagConstraints.weightx = 1.0;\n gridBagConstraints.weighty = 1.0;\n selectOptionPanel.add(departmentChckBox, gridBagConstraints);\n\n sectionChckBox.setText(\"Section\");\n sectionChckBox.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n sectionChckBoxActionPerformed(evt);\n }\n });\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 2;\n gridBagConstraints.gridy = 0;\n gridBagConstraints.weightx = 1.0;\n gridBagConstraints.weighty = 1.0;\n selectOptionPanel.add(sectionChckBox, gridBagConstraints);\n\n divisionChkBx.setText(\"Division\");\n divisionChkBx.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n divisionChkBxActionPerformed(evt);\n }\n });\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 0;\n gridBagConstraints.weightx = 1.0;\n gridBagConstraints.weighty = 1.0;\n selectOptionPanel.add(divisionChkBx, gridBagConstraints);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 1;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n gridBagConstraints.weightx = 1.0;\n gridBagConstraints.weighty = 1.0;\n gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5);\n getContentPane().add(selectOptionPanel, gridBagConstraints);\n\n divisionPanel.setBorder(javax.swing.BorderFactory.createTitledBorder(\"Select the Division Here\"));\n divisionPanel.setLayout(new java.awt.GridBagLayout());\n\n divisionLabel.setText(\"Division Name\");\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 0;\n gridBagConstraints.weightx = 1.0;\n gridBagConstraints.weighty = 1.0;\n gridBagConstraints.insets = new java.awt.Insets(10, 10, 0, 0);\n divisionPanel.add(divisionLabel, gridBagConstraints);\n\n divisionCmbx.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n divisionCmbxActionPerformed(evt);\n }\n });\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 1;\n gridBagConstraints.gridy = 0;\n gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;\n gridBagConstraints.weightx = 1.0;\n gridBagConstraints.weighty = 1.0;\n gridBagConstraints.insets = new java.awt.Insets(10, 0, 0, 10);\n divisionPanel.add(divisionCmbx, gridBagConstraints);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 2;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n gridBagConstraints.weightx = 1.0;\n gridBagConstraints.weighty = 1.0;\n gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5);\n getContentPane().add(divisionPanel, gridBagConstraints);\n\n specifyTypePanel.setBorder(javax.swing.BorderFactory.createTitledBorder(\"Specify the Type of Report\"));\n specifyTypePanel.setLayout(new java.awt.GridBagLayout());\n\n specifyGroupRadioBtn.add(generalLeaveRBtn);\n generalLeaveRBtn.setSelected(true);\n generalLeaveRBtn.setText(\"General Leave Report\");\n generalLeaveRBtn.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n generalLeaveRBtnActionPerformed(evt);\n }\n });\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 0;\n gridBagConstraints.ipadx = 1;\n gridBagConstraints.weightx = 1.0;\n gridBagConstraints.weighty = 1.0;\n gridBagConstraints.insets = new java.awt.Insets(0, 10, 0, 10);\n specifyTypePanel.add(generalLeaveRBtn, gridBagConstraints);\n\n specifyGroupRadioBtn.add(specificLeaveRBtn);\n specificLeaveRBtn.setText(\"Specific Leave Report\");\n specificLeaveRBtn.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n specificLeaveRBtnActionPerformed(evt);\n }\n });\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 1;\n gridBagConstraints.gridy = 0;\n gridBagConstraints.ipadx = 1;\n gridBagConstraints.weightx = 1.0;\n gridBagConstraints.weighty = 1.0;\n gridBagConstraints.insets = new java.awt.Insets(0, 10, 0, 10);\n specifyTypePanel.add(specificLeaveRBtn, gridBagConstraints);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 0;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n gridBagConstraints.weightx = 1.0;\n gridBagConstraints.weighty = 1.0;\n gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5);\n getContentPane().add(specifyTypePanel, gridBagConstraints);\n\n setSize(new java.awt.Dimension(681, 416));\n setLocationRelativeTo(null);\n }", "public void setupWindowButtons(){\n focusPropertyButton(btnExitProgramPlannerPlanPane);\n focusPropertyButton(btnExitProgramPlannerShoppingListPane);\n focusPropertyButton(btnExitProgramPlannerCupboardPane);\n focusPropertyButton(btnMinimiseProgramPlannerPlanPlane);\n focusPropertyButton(btnMinimiseProgramPlannerShoppingListPane);\n focusPropertyButton(btnMinimiseProgramPlannerCupboardPane);\n focusPropertyButton(btnExitProgramMealsBrowsePane);\n focusPropertyButton(btnMinimiseProgramMealsBrowsePane);\n focusPropertyButton(btnExitProgramMealsAddPane);\n focusPropertyButton(btnMinimiseProgramMealsAddPane);\n focusPropertyButton(btnExitProgramIngredBrowse);\n focusPropertyButton(btnMinimiseProgramIngredBrowse);\n focusPropertyButton(btnExitProgramIngredAdd);\n focusPropertyButton(btnMinimiseProgramIngredAdd);\n\n }", "@Override\n public final void initGui() {\n \tKeyboard.enableRepeatEvents(true);\n\t\t\n \tif(components == null) {\n \t\tcomponents = Lists.newArrayList();\n \t\t\n \t\ttry {\n \t\t\tbuildGui();\n \t\t} catch(Throwable e) {\n \t\t\te.printStackTrace();\n \t\t}\n \t}\n \t\n \t// XXX: Untested. Might lead to crash. Leaving it in for now.\n \tif(this.behindScreen != null) {\n \t\tthis.behindScreen.width = this.width;\n \t\tthis.behindScreen.height = this.height;\n \t\tthis.behindScreen.initGui();\n \t}\n \t\n \tlayoutGui();\n }", "private void initComponents() {\r\n\t\temulator = new Chip8();\r\n\t\tpanel = new DisplayPanel(emulator);\r\n\t\tregisterPanel = new EmulatorInfoPanel(emulator);\r\n\t\t\r\n\t\tcontroller = new Controller(this, emulator, panel, registerPanel);\r\n\t}", "private void initializeComponents()\r\n\t{\n\t\tmain = (JPanel) this.getContentPane();\r\n\t\tmain.setLayout(new BorderLayout());\r\n\t\t\r\n\t\tpanelNorth = new JPanel(new FlowLayout());\r\n\t\tpanelSouth = new JPanel(new FlowLayout());\r\n\t\t\r\n\t\tlbKiez = new JLabel(\"Kiez quiz lijst\");\r\n\t\tcbxRapporten = new JComboBox<String>(new String[]{\"OpdrachtenPerCategorie\", \"QuizzenSorteerd\"});\r\n\t\ttxtRapport = new JTextArea();\r\n\t\tchbDatumDecor = new JCheckBox(\"Add datum\");\r\n\t\tchbAuteurDecor = new JCheckBox(\"Add auteur\");\r\n\t\t\r\n\t\tpanelNorth.add(lbKiez);\r\n\t\tpanelNorth.add(cbxRapporten);\r\n\t\t\r\n\t\tpanelSouth.add(chbDatumDecor);\r\n\t\tpanelSouth.add(chbAuteurDecor);\r\n\t\t\r\n\t\tmain.add(panelNorth, BorderLayout.NORTH);\r\n\t\tmain.add(txtRapport, BorderLayout.CENTER);\r\n\t\tmain.add(panelSouth, BorderLayout.SOUTH);\r\n\t}", "private void $$$setupUI$$$() {\n\t\tpanel_overview = new JPanel();\n\t\tpanel_overview.setLayout(new BorderLayout(0, 0));\n\t\twebView = new WebbrowserPanel();\n\t\tpanel_overview.add(webView, BorderLayout.CENTER);\n\t}", "public EventsGUI() {\n\t\t// ******** << DEBUGGING MENU FOR EVENTS ONLY >> ******** //\n\t\t// Source: https://docs.oracle.com/javase/tutorial/uiswing/layout/card.html\n\t\tJPanel eventMenuPane = new JPanel(new FlowLayout());\n String menuOptions[] = { SWITCH, BUTTON, LEVER };\n JComboBox<String> eventMenu = new JComboBox<>(menuOptions);\n eventMenu.setEditable(false);\n eventMenu.addItemListener(eventsMain);\n eventMenuPane.add(eventMenu);\n eventMenuPane.setOpaque(false);\n eventMenuPane.setVisible(false); // REMOVE THIS LINE TO ACTIVATE EVENT DEBUGGING\n // ^^*****************************************************************^^ //\n\t\t\n // call methods which generate each event space's GUI\n createImageFiles();\n\t\tcreateSwitchSpace();\n\t\tcreateButtonGrid();\n\t\tcreateLeverSpace();\n\t\tcreateMessageWindow();\n\t\t\n\t\t// add each event's panel to the event main panel\n\t\teventPanel.setOpaque(false);\n\t\teventPanel.add(switchPanel, SWITCH);\n\t\teventPanel.add(buttonPanel, BUTTON);\n\t\teventPanel.add(leverPanel, LEVER);\n\n\t\t// add the event main panel and its background to the event container\n\t\teventsWindow = new JLabel(eventsBG);\n\t\teventsWindow.setBounds(0, 0, getEventsBG().getIconWidth(), getEventsBG().getIconHeight());\n\t\teventPanel.setBounds(0, 0, getEventsBG().getIconWidth(), getEventsBG().getIconHeight());\n\t\teventMenuPane.setBounds(150, 450, 300, 30);\n\t\t\n\t\t// add the close button for events\n\t\tcloseEventButton.addMouseListener(eventsMain);\n\t\tcloseEventButton.setBounds(540, 0, closeButton.getIconWidth(), closeButton.getIconHeight()); // close button position\n\t\t \n\t\t// assemble event components in the main event container\n\t\teventContainer.add(eventsWindow, new Integer(0));\n\t\teventContainer.add(eventPanel, new Integer(1));\n\t\teventContainer.add(closeEventButton, new Integer(2));\n\t\teventContainer.add(eventMenuPane, new Integer(2));\n\n\t\teventContainer.setOpaque(false);\n\t}", "private void setupUI() \n\t{\n\t\t\n\t\tthis.setLayout( new FormLayout() );\n\t\tmyInterfaceContainer = new Composite( this, SWT.NONE );\n\t\tmyInterfaceContainer.setLayoutData( FormDataMaker.makeFullFormData());\n\t\t\n\t\tsetupInterfaceContainer();\n\t}", "private void initUI() {\n\t\tthis.horizontalLayout = new XdevHorizontalLayout();\n\t\tthis.gridLayout = new XdevGridLayout();\n\t\tthis.button = new XdevButton();\n\t\tthis.button2 = new XdevButton();\n\t\tthis.label = new XdevLabel();\n\n\t\tthis.button.setCaption(\"go to HashdemoView\");\n\t\tthis.button2.setCaption(\"go to CommonView\");\n\t\tthis.label.setValue(\"Go into code tab to view comments\");\n\n\t\tthis.gridLayout.setColumns(2);\n\t\tthis.gridLayout.setRows(2);\n\t\tthis.button.setWidth(200, Unit.PIXELS);\n\t\tthis.button.setHeight(-1, Unit.PIXELS);\n\t\tthis.gridLayout.addComponent(this.button, 0, 0);\n\t\tthis.button2.setWidth(200, Unit.PIXELS);\n\t\tthis.button2.setHeight(-1, Unit.PIXELS);\n\t\tthis.gridLayout.addComponent(this.button2, 1, 0);\n\t\tthis.label.setWidth(100, Unit.PERCENTAGE);\n\t\tthis.label.setHeight(-1, Unit.PIXELS);\n\t\tthis.gridLayout.addComponent(this.label, 0, 1, 1, 1);\n\t\tthis.gridLayout.setComponentAlignment(this.label, Alignment.TOP_CENTER);\n\t\tthis.gridLayout.setSizeUndefined();\n\t\tthis.horizontalLayout.addComponent(this.gridLayout);\n\t\tthis.horizontalLayout.setComponentAlignment(this.gridLayout, Alignment.MIDDLE_CENTER);\n\t\tthis.horizontalLayout.setExpandRatio(this.gridLayout, 10.0F);\n\t\tthis.horizontalLayout.setSizeFull();\n\t\tthis.setContent(this.horizontalLayout);\n\t\tthis.setSizeFull();\n\n\t\tthis.button.addClickListener(event -> this.button_buttonClick(event));\n\t\tthis.button2.addClickListener(event -> this.button2_buttonClick(event));\n\t}", "public Onview() {\r\n initComponents();\r\n loadDisplayScreen();\r\n jcbX_Axis.setModel(new DefaultComboBoxModel(new String[]{}));\r\n jcbX_Axis.setEnabled(false);\r\n jcbY_Axis.setModel(new DefaultComboBoxModel(new String[]{}));\r\n jcbY_Axis.setEnabled(false);\r\n setResizable(false);\r\n }", "private void $$$setupUI$$$ ()\n {\n contentPane = new JPanel();\n contentPane.setLayout(new BorderLayout(0, 0));\n contentPane.setBackground(new Color(-16777216));\n contentPane.setPreferredSize(new Dimension(300, 100));\n contentPane.setRequestFocusEnabled(false);\n final JPanel panel1 = new JPanel();\n panel1.setLayout(new FlowLayout(FlowLayout.CENTER, 5, 5));\n panel1.setBackground(new Color(-16777216));\n panel1.setPreferredSize(new Dimension(200, 50));\n contentPane.add(panel1, BorderLayout.SOUTH);\n buttonOK = new JButton();\n buttonOK.setPreferredSize(new Dimension(100, 31));\n buttonOK.setText(\"OK\");\n panel1.add(buttonOK);\n final JLabel label1 = new JLabel();\n label1.setPreferredSize(new Dimension(30, 10));\n label1.setText(\"\");\n panel1.add(label1);\n buttonCancel = new JButton();\n buttonCancel.setPreferredSize(new Dimension(100, 31));\n buttonCancel.setText(\"Cancel\");\n panel1.add(buttonCancel);\n textField1 = new JTextField();\n textField1.setBackground(new Color(-15987184));\n Font textField1Font = Tools.getFont(\"Arial\", -1, 20, textField1.getFont());\n if (textField1Font != null)\n {\n textField1.setFont(textField1Font);\n }\n textField1.setForeground(new Color(-1));\n textField1.setHorizontalAlignment(0);\n textField1.setOpaque(false);\n textField1.setPreferredSize(new Dimension(300, 50));\n contentPane.add(textField1, BorderLayout.CENTER);\n final JLabel label2 = new JLabel();\n label2.setPreferredSize(new Dimension(11, 11));\n label2.setText(\" \");\n contentPane.add(label2, BorderLayout.WEST);\n final JLabel label3 = new JLabel();\n label3.setPreferredSize(new Dimension(11, 11));\n label3.setText(\" \");\n contentPane.add(label3, BorderLayout.EAST);\n final JLabel label4 = new JLabel();\n label4.setPreferredSize(new Dimension(11, 11));\n label4.setText(\"\");\n contentPane.add(label4, BorderLayout.NORTH);\n }", "private void initComponents() {\n rootLayout = new Grid();\n rootLayout.setWidth(new Extent(100, Extent.PERCENT));\n rootLayout.setSize(2);\n add(rootLayout);\n Empsn_Label= new nextapp.echo2.app.Label();\n Empsn_Label.setText(\"N_TIME_BEAR.EMPSN\");\n rootLayout.add(Empsn_Label);\n \n Empsn_DscField = new dsc.echo2app.component.DscField();\n Empsn_DscField.setId(\"Empsn_DscField\");\n Empsn_DscField.setWidth(new Extent(4, Extent.CM));\n rootLayout.add(Empsn_DscField);\n \n\t}", "private void initUI() {\n\t\tStage stage = Stage.createStage();\n\n\t\tControl formPanel = buildFormTestTab();\n\n\t\tControl cellPanel = buildCellTestTab();\n\t\t\n\t\tTabPanel tabbedPane = new TabPanel();\n\t\ttabbedPane.add(\"Form Test\", formPanel);\n\t\ttabbedPane.add(\"Cell Layout Test\", cellPanel);\n\n\t\tstage.setContent(tabbedPane);\n\t}", "private void initComponents() {\n // Create the RGB and the HSB radio buttons.\n createRgbHsbButtons();\n\n \n \n ColorData initial = new ColorData(new RGB(255, 255, 255), 255);\n\n // Create the upper color wheel for the display.\n upperColorWheel = new ColorWheelComp(shell, this, upperWheelTitle);\n // upperColorWheel.setColor(colorArray.get(0));\n upperColorWheel.setColor(initial);\n\n // Create the color bar object that is displayed\n // in the middle of the dialog.\n colorBar = new ColorBarViewer(shell, this, sliderText, cmapParams);\n\n // Create the lower color wheel for the display.\n lowerColorWheel = new ColorWheelComp(shell, this, lowerWheelTitle);\n // lowerColorWheel.setColor(colorArray.get(colorArray.size() - 1));\n lowerColorWheel.setColor(initial);\n\n // Create the bottom control buttons.\n createBottomButtons();\n }", "private void initComponents() {//GEN-BEGIN:initComponents\n\n\n aDate1 = new srcastra.astra.gui.components.date.aDate.ADate();\n\n\n aTextField1 = new srcastra.astra.gui.components.textFields.ATextField();\n\n\n aDate21 = new srcastra.astra.gui.components.date.aDate.ADate2();\n\n\n getContentPane().setLayout(new java.awt.FlowLayout());\n\n\n addWindowListener(new java.awt.event.WindowAdapter() {\n\n\n public void windowClosing(java.awt.event.WindowEvent evt) {\n\n\n exitForm(evt);\n\n\n }\n\n\n });\n\n\n aDate1.setGrp_Comp_nextComponent(aTextField1);\n\n\n getContentPane().add(aDate1);\n\n\n getContentPane().add(aTextField1);\n\n\n getContentPane().add(aDate21);\n\n\n pack();\n\n\n }", "private void $$$setupUI$$$() {\n adminSelectFunctionPanel = new JPanel();\n adminSelectFunctionPanel.setLayout(new GridLayoutManager(4, 3, new Insets(30, 30, 30, 30), 10, 30, true, false));\n adminSelectFunctionPanel.setBackground(new Color(-1));\n adminSelectFunctionPanel.setForeground(new Color(-1));\n adminSelectFunctionPanel.setMinimumSize(new Dimension(800, 600));\n adminSelectFunctionPanel.setPreferredSize(new Dimension(800, 600));\n changeATMBalanceButton = new JButton();\n changeATMBalanceButton.setBackground(new Color(-10592674));\n Font changeATMBalanceButtonFont = this.$$$getFont$$$(null, -1, 20, changeATMBalanceButton.getFont());\n if (changeATMBalanceButtonFont != null) changeATMBalanceButton.setFont(changeATMBalanceButtonFont);\n changeATMBalanceButton.setForeground(new Color(-1));\n changeATMBalanceButton.setText(\"Change ATM Balance\");\n adminSelectFunctionPanel.add(changeATMBalanceButton, new GridConstraints(2, 1, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_WANT_GROW, null, new Dimension(150, 100), null, 0, false));\n changeLocaleButton = new JButton();\n changeLocaleButton.setBackground(new Color(-10592674));\n Font changeLocaleButtonFont = this.$$$getFont$$$(null, -1, 20, changeLocaleButton.getFont());\n if (changeLocaleButtonFont != null) changeLocaleButton.setFont(changeLocaleButtonFont);\n changeLocaleButton.setForeground(new Color(-1));\n changeLocaleButton.setText(\"Change Locale\");\n adminSelectFunctionPanel.add(changeLocaleButton, new GridConstraints(2, 2, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_WANT_GROW, null, new Dimension(150, 100), null, 0, false));\n addAdminButton = new JButton();\n addAdminButton.setBackground(new Color(-10592674));\n Font addAdminButtonFont = this.$$$getFont$$$(null, -1, 20, addAdminButton.getFont());\n if (addAdminButtonFont != null) addAdminButton.setFont(addAdminButtonFont);\n addAdminButton.setForeground(new Color(-1));\n addAdminButton.setText(\"Add Admin\");\n adminSelectFunctionPanel.add(addAdminButton, new GridConstraints(1, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_WANT_GROW, null, new Dimension(150, 100), null, 0, false));\n atmStateLabel = new JLabel();\n atmStateLabel.setBackground(new Color(-15024996));\n Font atmStateLabelFont = this.$$$getFont$$$(null, -1, 24, atmStateLabel.getFont());\n if (atmStateLabelFont != null) atmStateLabel.setFont(atmStateLabelFont);\n atmStateLabel.setForeground(new Color(-1));\n atmStateLabel.setHorizontalAlignment(0);\n atmStateLabel.setHorizontalTextPosition(0);\n atmStateLabel.setOpaque(true);\n atmStateLabel.setText(\"\");\n adminSelectFunctionPanel.add(atmStateLabel, new GridConstraints(0, 2, 1, 1, GridConstraints.ANCHOR_EAST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(100, -1), null, 0, false));\n removeAdminButton = new JButton();\n removeAdminButton.setBackground(new Color(-10592674));\n Font removeAdminButtonFont = this.$$$getFont$$$(null, -1, 20, removeAdminButton.getFont());\n if (removeAdminButtonFont != null) removeAdminButton.setFont(removeAdminButtonFont);\n removeAdminButton.setForeground(new Color(-1));\n removeAdminButton.setText(\"Remove Admin\");\n adminSelectFunctionPanel.add(removeAdminButton, new GridConstraints(2, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_WANT_GROW, null, new Dimension(150, 100), null, 0, false));\n queryATMBalanceButton = new JButton();\n queryATMBalanceButton.setBackground(new Color(-10592674));\n Font queryATMBalanceButtonFont = this.$$$getFont$$$(null, -1, 20, queryATMBalanceButton.getFont());\n if (queryATMBalanceButtonFont != null) queryATMBalanceButton.setFont(queryATMBalanceButtonFont);\n queryATMBalanceButton.setForeground(new Color(-1));\n queryATMBalanceButton.setText(\"Query ATM Balance\");\n adminSelectFunctionPanel.add(queryATMBalanceButton, new GridConstraints(1, 1, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_WANT_GROW, null, new Dimension(150, 100), null, 0, false));\n toggleStateButton = new JButton();\n toggleStateButton.setBackground(new Color(-10592674));\n Font toggleStateButtonFont = this.$$$getFont$$$(null, -1, 20, toggleStateButton.getFont());\n if (toggleStateButtonFont != null) toggleStateButton.setFont(toggleStateButtonFont);\n toggleStateButton.setForeground(new Color(-1));\n toggleStateButton.setText(\"Toggle State\");\n adminSelectFunctionPanel.add(toggleStateButton, new GridConstraints(1, 2, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_WANT_GROW, null, new Dimension(150, 100), null, 0, false));\n logoutButton = new JButton();\n logoutButton.setBackground(new Color(-10592674));\n Font logoutButtonFont = this.$$$getFont$$$(null, -1, 20, logoutButton.getFont());\n if (logoutButtonFont != null) logoutButton.setFont(logoutButtonFont);\n logoutButton.setForeground(new Color(-1));\n logoutButton.setText(\"Logout\");\n adminSelectFunctionPanel.add(logoutButton, new GridConstraints(3, 2, 1, 1, GridConstraints.ANCHOR_EAST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, new Dimension(150, 50), null, 0, false));\n }", "public void InitializeComponents(){\n\n\n screen = new JPanel();\n screen.setLayout(null);\n screen.setBackground(Color.BLUE);\n this.getContentPane().add(screen);\n ScreenComps();\n\n }", "private void $$$setupUI$$$() {\n createUIComponents();\n content.setLayout(new BorderLayout(0, 0));\n content.setMinimumSize(new Dimension(1024, 576));\n content.setPreferredSize(new Dimension(1024, 576));\n panel1.setLayout(new BorderLayout(0, 0));\n content.add(panel1, BorderLayout.SOUTH);\n panel1.setBorder(BorderFactory.createTitledBorder(null, \"\", TitledBorder.DEFAULT_JUSTIFICATION, TitledBorder.DEFAULT_POSITION, null, null));\n dwadawdTextField = new JTextField();\n dwadawdTextField.setText(\"dwadawd\");\n panel1.add(dwadawdTextField, BorderLayout.CENTER);\n button1 = new JButton();\n button1.setText(\"Button\");\n panel1.add(button1, BorderLayout.EAST);\n panel2 = new JPanel();\n panel2.setLayout(new BorderLayout(0, 0));\n content.add(panel2, BorderLayout.CENTER);\n final JScrollPane scrollPane1 = new JScrollPane();\n panel2.add(scrollPane1, BorderLayout.CENTER);\n textPane1 = new JTextPane();\n scrollPane1.setViewportView(textPane1);\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jCalendar1 = new com.toedter.calendar.JCalendar();\n jPanel1 = new javax.swing.JPanel();\n cboArticulos = new javax.swing.JComboBox<>();\n jLabel1 = new javax.swing.JLabel();\n dtDesde = new com.toedter.calendar.JDateChooser();\n dtHasta = new com.toedter.calendar.JDateChooser();\n jLabel2 = new javax.swing.JLabel();\n jLabel3 = new javax.swing.JLabel();\n jLabel4 = new javax.swing.JLabel();\n txtDias = new javax.swing.JTextField();\n btGuardar = new javax.swing.JButton();\n btCancelar = new javax.swing.JButton();\n jLabel5 = new javax.swing.JLabel();\n jLabel6 = new javax.swing.JLabel();\n jLabel7 = new javax.swing.JLabel();\n\n setTitle(\"Artículos\");\n setAlwaysOnTop(true);\n setBackground(new java.awt.Color(255, 255, 255));\n setUndecorated(true);\n\n jPanel1.setBackground(new java.awt.Color(255, 254, 253));\n jPanel1.setBorder(new javax.swing.border.LineBorder(new java.awt.Color(30, 129, 53), 1, true));\n jPanel1.setForeground(new java.awt.Color(255, 255, 255));\n\n jLabel1.setForeground(new java.awt.Color(247, 165, 41));\n jLabel1.setText(\"Artículo:\");\n\n dtDesde.addPropertyChangeListener(new java.beans.PropertyChangeListener() {\n public void propertyChange(java.beans.PropertyChangeEvent evt) {\n dtDesdePropertyChange(evt);\n }\n });\n\n dtHasta.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusLost(java.awt.event.FocusEvent evt) {\n dtHastaFocusLost(evt);\n }\n });\n dtHasta.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mousePressed(java.awt.event.MouseEvent evt) {\n dtHastaMousePressed(evt);\n }\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n dtHastaMouseClicked(evt);\n }\n public void mouseExited(java.awt.event.MouseEvent evt) {\n dtHastaMouseExited(evt);\n }\n });\n dtHasta.addPropertyChangeListener(new java.beans.PropertyChangeListener() {\n public void propertyChange(java.beans.PropertyChangeEvent evt) {\n dtHastaPropertyChange(evt);\n }\n });\n\n jLabel2.setForeground(new java.awt.Color(247, 165, 41));\n jLabel2.setText(\"Desde:\");\n\n jLabel3.setForeground(new java.awt.Color(247, 165, 41));\n jLabel3.setText(\"Hasta:\");\n\n jLabel4.setForeground(new java.awt.Color(247, 165, 41));\n jLabel4.setText(\"Cantidad de días:\");\n\n txtDias.setEditable(false);\n txtDias.setText(\"1\");\n\n btGuardar.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Archivos/disk.png\"))); // NOI18N\n btGuardar.setText(\"Guardar\");\n btGuardar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btGuardarActionPerformed(evt);\n }\n });\n\n btCancelar.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Archivos/cancel.png\"))); // NOI18N\n btCancelar.setText(\"Cancelar\");\n btCancelar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btCancelarActionPerformed(evt);\n }\n });\n\n jLabel5.setForeground(new java.awt.Color(247, 165, 41));\n jLabel5.setText(\"Información de la operación:\");\n\n jLabel6.setBorder(javax.swing.BorderFactory.createEtchedBorder(java.awt.Color.white, java.awt.Color.red));\n\n javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);\n jPanel1.setLayout(jPanel1Layout);\n jPanel1Layout.setHorizontalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(jLabel1)\n .addGap(18, 18, 18)\n .addComponent(cboArticulos, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(jLabel2)\n .addGap(27, 27, 27)\n .addComponent(dtDesde, javax.swing.GroupLayout.PREFERRED_SIZE, 162, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(jLabel3)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(dtHasta, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addComponent(jLabel5)\n .addComponent(jLabel6, javax.swing.GroupLayout.PREFERRED_SIZE, 472, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(282, 282, 282)\n .addComponent(jLabel4)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(txtDias, javax.swing.GroupLayout.PREFERRED_SIZE, 33, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGap(0, 6, Short.MAX_VALUE)))\n .addContainerGap())\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(btGuardar, javax.swing.GroupLayout.PREFERRED_SIZE, 140, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(btCancelar, javax.swing.GroupLayout.PREFERRED_SIZE, 110, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(17, 17, 17))\n );\n\n jPanel1Layout.linkSize(javax.swing.SwingConstants.HORIZONTAL, new java.awt.Component[] {dtDesde, dtHasta});\n\n jPanel1Layout.linkSize(javax.swing.SwingConstants.HORIZONTAL, new java.awt.Component[] {btCancelar, btGuardar});\n\n jPanel1Layout.setVerticalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel1)\n .addComponent(cboArticulos, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel2)\n .addComponent(jLabel3)\n .addComponent(dtDesde, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(dtHasta, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel4)\n .addComponent(txtDias, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jLabel5)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jLabel6, javax.swing.GroupLayout.PREFERRED_SIZE, 22, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(btCancelar)\n .addComponent(btGuardar))\n .addGap(70, 70, 70))\n );\n\n jLabel7.setFont(new java.awt.Font(\"Ubuntu\", 1, 18)); // NOI18N\n jLabel7.setForeground(new java.awt.Color(9, 146, 231));\n jLabel7.setText(\"Ingreso de Artículos\");\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 .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jLabel7)\n .addGap(169, 169, 169))\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jLabel7, javax.swing.GroupLayout.PREFERRED_SIZE, 23, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, 232, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n\n pack();\n }", "private void init()\n {\n // Add listeners to the view\n addEventListeners();\n addSelectionChangeListeners();\n\n // Add listeners to the model\n addBackgroundImageHandler();\n addFrameWidgetHandler();\n addWidgetShapeChangeHandler();\n\n project.addHandler(this,\n Project.DesignChange.class,\n new AlertHandler()\n {\n\n public void handleAlert(EventObject alert)\n {\n Project.DesignChange chg =\n (Project.DesignChange) alert;\n\n if ((! chg.isAdd) &&\n (chg.element == design))\n {\n closeOpenController();\n }\n }\n });\n\n design.addHandler(this,\n Design.FrameChange.class,\n new AlertHandler()\n {\n\n public void handleAlert(EventObject alert)\n {\n Design.FrameChange chg =\n (Design.FrameChange) alert;\n\n if ((! chg.isAdd) &&\n (chg.element == frame))\n {\n closeOpenController();\n }\n }\n });\n\n design.addHandler(this,\n Design.DeviceTypeChange.class,\n new AlertHandler()\n {\n\n public void handleAlert(EventObject alert)\n {\n Set<DeviceType> dts =\n design.getDeviceTypes();\n int deviceTypes =\n DeviceType.buildDeviceSet(dts);\n\n view.resetDeviceTypes(deviceTypes);\n }\n });\n\n // Add listeners to rename events on project and design\n frame.addHandler(this, NameChangeAlert.class, renameHandler);\n design.addHandler(this,\n NameChangeAlert.class,\n renameHandler);\n\n // Some items should always be enabled.\n // Should be the last call in the constructor\n setInitiallyEnabled(true);\n }", "private void initialize() {\n\t\tChoiceScreen = new JFrame();\n\t\tChoiceScreen.setFont(new Font(\"Silom\", Font.PLAIN, 12));\n\t\tChoiceScreen.setType(Type.POPUP);\n\t\tChoiceScreen.setTitle(\"Bank of Programmers - Services\");\n\t\tChoiceScreen.getContentPane().setBackground(new Color(30, 144, 255));\n\t\tChoiceScreen.getContentPane().setLayout(null);\n\t\t\n\t\t\n\t\tJLabel lblBankNameLabel = new JLabel(\"BANK OF PROGRAMMERS\");\n\t\tlblBankNameLabel.setBounds(0, 0, 517, 52);\n\t\tlblBankNameLabel.setForeground(new Color(255, 255, 255));\n\t\tlblBankNameLabel.setFont(new Font(\"Silom\", Font.PLAIN, 40));\n\t\tlblBankNameLabel.setHorizontalAlignment(SwingConstants.CENTER);\n\t\tChoiceScreen.getContentPane().add(lblBankNameLabel);\n\t\t\n\t\tJButton btnAtm = new JButton(\"ATM\");\n\t\tbtnAtm.setForeground(new Color(30, 144, 255));\n\t\tbtnAtm.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\tChoiceScreen.dispose();\n\t\t\t\tATM atm = new ATM();\n\t\t\t\tatm.ATMLogIn.setVisible(true);\n\t\t\t}\n\t\t});\n\t\tbtnAtm.setFont(new Font(\"Silom\", Font.PLAIN, 22));\n\t\tbtnAtm.setBounds(89, 129, 337, 92);\n\t\tChoiceScreen.getContentPane().add(btnAtm);\n\t\t\n\t\tJButton btnBank = new JButton(\"BANK (Create an Account!)\");\n\t\tbtnBank.setForeground(new Color(30, 144, 255));\n\t\tbtnBank.setFont(new Font(\"Silom\", Font.PLAIN, 22));\n\t\tbtnBank.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tChoiceScreen.dispose();\n\t\t\t\tAccountTypes acty = new AccountTypes();\n\t\t\t\tacty.AccountType.setVisible(true);\n\t\t\t}\n\t\t});\n\t\tbtnBank.setBounds(89, 270, 337, 92);\n\t\tChoiceScreen.getContentPane().add(btnBank);\n\t\tChoiceScreen.getContentPane().setFocusTraversalPolicy(new FocusTraversalOnArray(new Component[]{lblBankNameLabel, btnAtm, btnBank}));\n\t\tChoiceScreen.setBounds(100, 100, 517, 475);\n\t\tChoiceScreen.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\t\n\t\tDimension dim = Toolkit.getDefaultToolkit().getScreenSize();\n\t\tChoiceScreen.setLocation(dim.width/2-ChoiceScreen.getSize().width/2, dim.height/2-ChoiceScreen.getSize().height/2);\n\t\t\n\t}", "protected void initControls()\n {\n glfwSetKeyCallback(windowID, new KeyboardInput());\n MouseInput.init(windowID);\n }", "private void postInit() {\n // start with compact form\n detailledToggleButtonActionPerformed(null);\n\n colorMappingComboBox.setRenderer(ColorMappingListCellRenderer.getListCellRenderer());\n\n // Fill colorMapping combobox\n for (ColorMapping cm : ColorMapping.values()) {\n if (cm != ColorMapping.OBSERVATION_DATE) { // not implemented\n colorMappingComboBox.addItem(cm);\n }\n }\n\n xAxisEditor = new AxisEditor(this);\n xAxisPanel.add(xAxisEditor);\n\n if (ENABLE_EXPRESSION_EDITOR) {\n expressionEditor = new ExpressionEditor(this);\n expressionEditor.setVisible(false);\n\n this.jPanelOtherEditors.add(expressionEditor, BorderLayout.CENTER);\n } else {\n jToggleButtonExprEditor.setVisible(false);\n }\n\n // Adjust fonts:\n final Font fixedFont = new Font(Font.MONOSPACED, Font.PLAIN, SwingUtils.adjustUISize(12));\n this.jToggleButtonAuto.setFont(fixedFont);\n this.jToggleButtonDefault.setFont(fixedFont);\n this.jToggleButtonFixed.setFont(fixedFont);\n }", "private void layoutControls()\n {\n getChildren().addAll(\n new Label(\"Abfahrt\"),\n departureTimeField,\n new Label(\"Bahnhof\"),\n destinationField\n );\n }", "public FrontScreen() {\n\t\tsetLayout(null);\n\t\tsetBounds(0, 0, 1024, 768);\n\n\n\t\tController mycontroller = new Controller();\n\t\tbtnCalendar.setIcon(new ImageIcon(FrontScreen.class.getResource(\"/images/calendarbtn.png\")));\n\t\tbtnCalendar.setBounds(342, 74, 153, 41);\n\t\tadd(btnCalendar);\n\t\tbtnEventlist.setIcon(new ImageIcon(FrontScreen.class.getResource(\"/images/eventbtn.png\")));\n\t\tbtnEventlist.setBounds(550, 74, 153, 41);\n\t\tadd(btnEventlist);\n\t\tbtnLogOut.setIcon(new ImageIcon(FrontScreen.class.getResource(\"/images/Logout.png\")));\n\t\tbtnLogOut.setBounds(10, 22, 153, 41);\n\t\tadd(btnLogOut);\n\t\tbtnExit.setIcon(new ImageIcon(FrontScreen.class.getResource(\"/images/exit.png\")));\n\t\tbtnExit.setBounds(10, 74, 153, 41);\n\t\tadd(btnExit);\n\t\tlblgetUserName.setBounds(821, 59, 76, 14);\n\t\tSystem.out.println();\n\n\t\tadd(lblgetUserName);\n\t\tlblQotd.setFont(new Font(\"Snap ITC\", Font.PLAIN, 18));\n\t\tlblQotd.setBounds(342, 138, 415, 50);\n\n\t\tadd(lblQotd);\n\n\t\tBorder border = BorderFactory.createLineBorder(Color.BLUE, 3);\n\t\tlblWeatherInfo.setBounds(10, 420, 985, 247);\n\n\t\tString forecast = mycontroller.userControls(\"getWeather\");\n\t\tforecast = forecast.replace(\"},\", \"<br/>\");\n\t\tforecast = forecast.replace(\"[\", \"\");\n\t\tforecast = forecast.replace(\"{date='\", \" Date: \");\n\t\tforecast = forecast.replace(\"12:00:00 CET\", \"\");\n\t\tforecast = forecast.replace(\", desc=\", \" Description: \");\n\t\tforecast = forecast.replace(\"Forecast{date=\", \"\");\n\t\tforecast = forecast.replace(\", celsius='\", \" Temperature: \");\n\n\n\t\tlblWeatherInfo.setText(\"<html><body><p>\" + forecast + \"</body></p></html>\");\n\t\tlblWeatherInfo.setBorder(border);\n\t\tadd(lblWeatherInfo);\n\n\n\t\tlblWeather.setFont(new Font(\"Snap ITC\", Font.PLAIN, 18));\n\t\tlblWeather.setBounds(328, 379, 294, 50);\n\n\t\tadd(lblWeather);\n\n\n\n\t\tString qotd = mycontroller.userControls(\"qotd\");\n\t\tString[] qotdparts = qotd.split(\":\");\n\t\tString quotedontuse = qotdparts[0]; \n\t\tString quote = qotdparts[1];\n\t\tString author = qotdparts[2]; \n\t\tString topic = qotdparts[3];\n\n\t\t// Trying to remove {}:\n\t\tString quoteF = quote;\n\t\tquoteF = quoteF.replace(\"{\", \"\");\n\t\tquoteF = quoteF.replace(\"quote\", \"\");\n\t\tquoteF = quoteF.replace(\"author\", \"\");\n\n\t\tString authorF = author;\n\t\tauthorF = authorF.replace(\"{\", \"\");\n\t\tauthorF = authorF.replace(\"topic\", \"\");\n\n\t\tString topicF = topic;\n\t\ttopicF = topicF.replace(\"{\", \"\");\n\t\ttopicF = topicF.replace(\"}\", \"\");\n\n\n\n\n\t\tlblQuote.setBounds(81, 248, 914, 41);\n\n\n\t\tlblQuote.setText(quoteF);\n\n\t\tadd(lblQuote);\n\t\tlblAuthor.setBounds(81, 300, 816, 20);\n\t\tlblAuthor.setText(authorF);\n\n\t\tadd(lblAuthor);\n\t\tlblgetQotd.setBounds(10, 187, 985, 203);\n\n\t\tlblgetQotd.setBorder(border);\n\n\t\tadd(lblgetQotd);\n\t\tlblCategory.setBounds(81, 336, 816, 14);\n\n\t\tlblCategory.setText(topicF);\n\n\t\tadd(lblCategory);\n\t\tlblIconAuthor.setIcon(new ImageIcon(FrontScreen.class.getResource(\"/images/author.png\")));\n\t\tlblIconAuthor.setBounds(26, 295, 32, 32);\n\n\t\tadd(lblIconAuthor);\n\t\tlblIconQuote.setIcon(new ImageIcon(FrontScreen.class.getResource(\"/images/quote.png\")));\n\t\tlblIconQuote.setBounds(26, 258, 32, 32);\n\n\t\tadd(lblIconQuote);\n\t\tlblIconCategory.setIcon(new ImageIcon(FrontScreen.class.getResource(\"/images/Nuvola_apps_bookcase.png\")));\n\t\tlblIconCategory.setBounds(27, 338, 32, 32);\n\n\t\tadd(lblIconCategory);\n\n\n\t\tlblBackground.setIcon(new ImageIcon(FrontScreen.class.getResource(\"/images/login-mainframe.jpg\")));\n\t\tlblBackground.setBounds(0, 0, 1024, 768);\n\n\t\tadd(lblBackground);\n\n\t}", "private void setupUI() {\n\t\tpanel1 = new JPanel();\n\t\tpanel1.setLayout(new BorderLayout(0, 0));\n\t\tfinal JPanel panel2 = new JPanel();\n\t\tpanel2.setLayout(new FlowLayout(FlowLayout.LEFT, 2, 2));\n\t\tpanel2.setBackground(Color.BLACK);\n\t\tpanel2.setPreferredSize(new Dimension(800, 34));\n\t\tpanel1.add(panel2, BorderLayout.SOUTH);\n\t\tstopButton = new JButton();\n\t\tstopButton.setText(\"STOP\");\n\t\tstopButton.setPreferredSize(new Dimension(82, 30));\n\t\tpanel2.add(stopButton);\n\t\tclsButton = new JButton();\n\t\tclsButton.setPreferredSize(new Dimension(82, 30));\n\t\tclsButton.setText(\"CLS\");\n\t\tpanel2.add(clsButton);\n\t\trunButton = new JButton();\n\t\trunButton.setPreferredSize(new Dimension(82, 30));\n\t\trunButton.setText(\"RUN\");\n\t\tpanel2.add(runButton);\n\t\tcaretLabel = new JLabel();\n\t\tcaretLabel.setPreferredSize(new Dimension(82, 30));\n\t\tcaretLabel.setForeground(Color.pink);\n\t\tpanel2.add(caretLabel);\n\t\tmainTextArea = new ShellTextComponent(this);\n\t\tmainTextArea.setCaretColor(new Color(Colors.COLORS[14]));\n\t\tfinal JScrollPane scrollPane1 = new JScrollPane(mainTextArea);\n\n\t\tpanel1.add(scrollPane1, BorderLayout.CENTER);\n\t\tpanel1.setPreferredSize(new Dimension(800, 600));\n\t}", "private void initComponents() {\n xActionBar1 = new com.rameses.rcp.control.XActionBar();\n jPanel1 = new javax.swing.JPanel();\n formPanel1 = new com.rameses.rcp.util.FormPanel();\n xNumberField1 = new com.rameses.rcp.control.XNumberField();\n jTabbedPane1 = new javax.swing.JTabbedPane();\n jPanel2 = new javax.swing.JPanel();\n xDataTable5 = new com.rameses.rcp.control.XDataTable();\n xDataTable4 = new com.rameses.rcp.control.XDataTable();\n xLabel1 = new com.rameses.rcp.control.XLabel();\n jPanel3 = new javax.swing.JPanel();\n jPanel4 = new javax.swing.JPanel();\n xDataTable6 = new com.rameses.rcp.control.XDataTable();\n jTabbedPane2 = new javax.swing.JTabbedPane();\n jPanel5 = new javax.swing.JPanel();\n xDataTable7 = new com.rameses.rcp.control.XDataTable();\n xDataTable8 = new com.rameses.rcp.control.XDataTable();\n jPanel6 = new javax.swing.JPanel();\n xDataTable9 = new com.rameses.rcp.control.XDataTable();\n xLabel2 = new com.rameses.rcp.control.XLabel();\n jPanel7 = new javax.swing.JPanel();\n xButton2 = new com.rameses.rcp.control.XButton();\n xButton3 = new com.rameses.rcp.control.XButton();\n xButton4 = new com.rameses.rcp.control.XButton();\n xDataTable10 = new com.rameses.rcp.control.XDataTable();\n\n setLayout(new java.awt.BorderLayout());\n\n xActionBar1.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 5, 0, 0));\n xActionBar1.setDepends(new String[] {\"selectedItem\"});\n xActionBar1.setName(\"formActions\");\n add(xActionBar1, java.awt.BorderLayout.NORTH);\n\n com.rameses.rcp.control.border.XTitledBorder xTitledBorder1 = new com.rameses.rcp.control.border.XTitledBorder();\n xTitledBorder1.setTitle(\"Land RY Setting\");\n jPanel1.setBorder(xTitledBorder1);\n\n formPanel1.setCaptionWidth(100);\n xNumberField1.setEditable(false);\n xNumberField1.setCaption(\"Revision Year\");\n xNumberField1.setCaptionWidth(100);\n xNumberField1.setEnabled(false);\n xNumberField1.setFieldType(Integer.class);\n xNumberField1.setName(\"entity.ry\");\n xNumberField1.setPreferredSize(new java.awt.Dimension(80, 19));\n xNumberField1.setRequired(true);\n formPanel1.add(xNumberField1);\n\n com.rameses.rcp.control.border.XTitledBorder xTitledBorder2 = new com.rameses.rcp.control.border.XTitledBorder();\n xTitledBorder2.setTitle(\"If not Special, the applicable Assessment Levels\");\n xDataTable5.setBorder(xTitledBorder2);\n xDataTable5.setDepends(new String[] {\"selectedAssessLevel\"});\n xDataTable5.setDynamic(true);\n xDataTable5.setHandler(\"rangeLevelListHandler\");\n xDataTable5.setImmediate(true);\n xDataTable5.setName(\"selectedRangeLevel\");\n\n xDataTable4.setHandler(\"assessLevelListHandler\");\n xDataTable4.setImmediate(true);\n xDataTable4.setName(\"selectedAssessLevel\");\n\n xLabel1.setBorder(javax.swing.BorderFactory.createEtchedBorder());\n xLabel1.setForeground(new java.awt.Color(153, 0, 0));\n xLabel1.setFont(new java.awt.Font(\"Arial\", 1, 12));\n xLabel1.setName(\"assessLevelMsg\");\n xLabel1.setPreferredSize(new java.awt.Dimension(104, 22));\n\n org.jdesktop.layout.GroupLayout jPanel2Layout = new org.jdesktop.layout.GroupLayout(jPanel2);\n jPanel2.setLayout(jPanel2Layout);\n jPanel2Layout.setHorizontalGroup(\n jPanel2Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\n .add(jPanel2Layout.createSequentialGroup()\n .addContainerGap()\n .add(jPanel2Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\n .add(jPanel2Layout.createSequentialGroup()\n .add(xDataTable4, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 399, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\n .add(xDataTable5, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 363, Short.MAX_VALUE))\n .add(xLabel1, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 768, Short.MAX_VALUE))\n .addContainerGap())\n );\n jPanel2Layout.setVerticalGroup(\n jPanel2Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\n .add(jPanel2Layout.createSequentialGroup()\n .addContainerGap()\n .add(jPanel2Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING)\n .add(xDataTable5, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 412, Short.MAX_VALUE)\n .add(xDataTable4, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 412, Short.MAX_VALUE))\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\n .add(xLabel1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\n .addContainerGap())\n );\n jTabbedPane1.addTab(\"Assessment Levels\", jPanel2);\n\n jPanel3.setLayout(new java.awt.BorderLayout());\n\n xDataTable6.setHandler(\"lcuvListHandler\");\n xDataTable6.setImmediate(true);\n xDataTable6.setName(\"selectedLCUV\");\n\n com.rameses.rcp.control.border.XTitledBorder xTitledBorder3 = new com.rameses.rcp.control.border.XTitledBorder();\n xTitledBorder3.setTitle(\"Specific Class\");\n xDataTable7.setBorder(xTitledBorder3);\n xDataTable7.setHandler(\"specificClassListHandler\");\n xDataTable7.setImmediate(true);\n xDataTable7.setName(\"selectedSpecificClass\");\n\n com.rameses.rcp.control.border.XTitledBorder xTitledBorder4 = new com.rameses.rcp.control.border.XTitledBorder();\n xTitledBorder4.setTitle(\"Sub Class\");\n xDataTable8.setBorder(xTitledBorder4);\n xDataTable8.setHandler(\"subClassListHandler\");\n xDataTable8.setImmediate(true);\n xDataTable8.setName(\"selectedSubClass\");\n\n org.jdesktop.layout.GroupLayout jPanel5Layout = new org.jdesktop.layout.GroupLayout(jPanel5);\n jPanel5.setLayout(jPanel5Layout);\n jPanel5Layout.setHorizontalGroup(\n jPanel5Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\n .add(org.jdesktop.layout.GroupLayout.TRAILING, jPanel5Layout.createSequentialGroup()\n .addContainerGap()\n .add(xDataTable7, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 293, Short.MAX_VALUE)\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\n .add(xDataTable8, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 275, Short.MAX_VALUE)\n .addContainerGap())\n );\n jPanel5Layout.setVerticalGroup(\n jPanel5Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\n .add(org.jdesktop.layout.GroupLayout.TRAILING, jPanel5Layout.createSequentialGroup()\n .addContainerGap()\n .add(jPanel5Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING)\n .add(org.jdesktop.layout.GroupLayout.LEADING, xDataTable7, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 373, Short.MAX_VALUE)\n .add(org.jdesktop.layout.GroupLayout.LEADING, xDataTable8, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 373, Short.MAX_VALUE))\n .addContainerGap())\n );\n jTabbedPane2.addTab(\"Specific and Sub Classes\", jPanel5);\n\n com.rameses.rcp.control.border.XTitledBorder xTitledBorder5 = new com.rameses.rcp.control.border.XTitledBorder();\n xTitledBorder5.setTitle(\"Stripping\");\n xDataTable9.setBorder(xTitledBorder5);\n xDataTable9.setHandler(\"strippingListHandler\");\n xDataTable9.setImmediate(true);\n xDataTable9.setName(\"selectedStripping\");\n\n org.jdesktop.layout.GroupLayout jPanel6Layout = new org.jdesktop.layout.GroupLayout(jPanel6);\n jPanel6.setLayout(jPanel6Layout);\n jPanel6Layout.setHorizontalGroup(\n jPanel6Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\n .add(jPanel6Layout.createSequentialGroup()\n .addContainerGap()\n .add(xDataTable9, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 297, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(287, Short.MAX_VALUE))\n );\n jPanel6Layout.setVerticalGroup(\n jPanel6Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\n .add(jPanel6Layout.createSequentialGroup()\n .addContainerGap()\n .add(xDataTable9, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 373, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n jTabbedPane2.addTab(\"Stripping\", jPanel6);\n\n xLabel2.setBorder(javax.swing.BorderFactory.createEtchedBorder());\n xLabel2.setForeground(new java.awt.Color(153, 0, 0));\n xLabel2.setFont(new java.awt.Font(\"Arial\", 1, 12));\n xLabel2.setName(\"lcuvMsg\");\n xLabel2.setPreferredSize(new java.awt.Dimension(104, 22));\n\n org.jdesktop.layout.GroupLayout jPanel4Layout = new org.jdesktop.layout.GroupLayout(jPanel4);\n jPanel4.setLayout(jPanel4Layout);\n jPanel4Layout.setHorizontalGroup(\n jPanel4Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\n .add(jPanel4Layout.createSequentialGroup()\n .addContainerGap()\n .add(jPanel4Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\n .add(xLabel2, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 768, Short.MAX_VALUE)\n .add(jPanel4Layout.createSequentialGroup()\n .add(xDataTable6, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 163, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\n .add(jTabbedPane2, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 599, Short.MAX_VALUE)))\n .addContainerGap())\n );\n jPanel4Layout.setVerticalGroup(\n jPanel4Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\n .add(jPanel4Layout.createSequentialGroup()\n .addContainerGap()\n .add(jPanel4Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\n .add(xDataTable6, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 423, Short.MAX_VALUE)\n .add(jTabbedPane2, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 423, Short.MAX_VALUE))\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\n .add(xLabel2, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))\n );\n jPanel3.add(jPanel4, java.awt.BorderLayout.CENTER);\n\n jTabbedPane1.addTab(\"LCUV\", jPanel3);\n\n xButton2.setMnemonic('n');\n xButton2.setText(\"New\");\n xButton2.setName(\"createLandAdjustment\");\n\n xButton3.setMnemonic('o');\n xButton3.setText(\"Open\");\n xButton3.setName(\"openLandAdjustment\");\n\n xButton4.setMnemonic('r');\n xButton4.setText(\"Remove\");\n xButton4.setName(\"removeLandAdjustment\");\n\n xDataTable10.setHandler(\"landAdjustmentListHandler\");\n xDataTable10.setName(\"selectedLandAdjustment\");\n\n org.jdesktop.layout.GroupLayout jPanel7Layout = new org.jdesktop.layout.GroupLayout(jPanel7);\n jPanel7.setLayout(jPanel7Layout);\n jPanel7Layout.setHorizontalGroup(\n jPanel7Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\n .add(jPanel7Layout.createSequentialGroup()\n .addContainerGap()\n .add(jPanel7Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\n .add(xDataTable10, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 768, Short.MAX_VALUE)\n .add(jPanel7Layout.createSequentialGroup()\n .add(xButton2, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\n .add(xButton3, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\n .add(xButton4, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)))\n .addContainerGap())\n );\n jPanel7Layout.setVerticalGroup(\n jPanel7Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\n .add(jPanel7Layout.createSequentialGroup()\n .addContainerGap()\n .add(jPanel7Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)\n .add(xButton2, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\n .add(xButton3, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\n .add(xButton4, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\n .add(xDataTable10, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 411, Short.MAX_VALUE)\n .addContainerGap())\n );\n jTabbedPane1.addTab(\"Land Adjustment\", jPanel7);\n\n org.jdesktop.layout.GroupLayout jPanel1Layout = new org.jdesktop.layout.GroupLayout(jPanel1);\n jPanel1.setLayout(jPanel1Layout);\n jPanel1Layout.setHorizontalGroup(\n jPanel1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\n .add(jPanel1Layout.createSequentialGroup()\n .add(jPanel1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\n .add(jPanel1Layout.createSequentialGroup()\n .add(29, 29, 29)\n .add(formPanel1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 240, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))\n .add(jPanel1Layout.createSequentialGroup()\n .addContainerGap()\n .add(jTabbedPane1, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 793, Short.MAX_VALUE)))\n .addContainerGap())\n );\n jPanel1Layout.setVerticalGroup(\n jPanel1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\n .add(jPanel1Layout.createSequentialGroup()\n .add(formPanel1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\n .add(jTabbedPane1, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 490, Short.MAX_VALUE)\n .addContainerGap())\n );\n add(jPanel1, java.awt.BorderLayout.CENTER);\n\n }", "private void initComponents() {\n\n setBackground(java.awt.Color.lightGray);\n setBorder(new javax.swing.border.SoftBevelBorder(javax.swing.border.BevelBorder.RAISED));\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, 394, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 294, Short.MAX_VALUE)\n );\n }", "public RegisterDisplay() {\n initComponents();\n }", "private JPanel setCenterPanel() {\n mainDisplay = new JPanel();\n mainDisplay.setLayout(new BoxLayout(mainDisplay, Y_AXIS));\n\n //Label to display selected view\n selectedView = new JLabel();\n selectedView.setFont(new Font(\"SansSerif\", Font.PLAIN, 18));\n selectedView.setForeground(Color.GRAY);\n selectedView.setAlignmentX(Component.LEFT_ALIGNMENT);\n selectedView.setHorizontalTextPosition(SwingConstants.LEFT);\n\n //label to display either day view date ot month view month\n displayDate = new JLabel();\n displayDate.setFont(new Font(\"SansSerif\", Font.BOLD, 26));\n displayDate.setAlignmentX(Component.LEFT_ALIGNMENT);\n\n //label to disaply the day of week for day view\n displayDay = new JLabel();\n displayDay.setFont(new Font(\"SansSerif\", Font.PLAIN, 20));\n displayDay.setAlignmentX(Component.LEFT_ALIGNMENT);\n\n\n //adding them to the main panel\n mainDisplay.add(Box.createVerticalStrut(5));\n mainDisplay.add(selectedView);\n mainDisplay.add(Box.createVerticalStrut(9));\n mainDisplay.add(displayDate);\n mainDisplay.add(Box.createVerticalStrut(5));\n mainDisplay.add(displayDay);\n\n dayViewScrollPane = new JScrollPane(dayViewComponent);\n dayViewScrollPane.setPreferredSize(dayViewComponent.getMinimumSize());\n dayViewScrollPane.getVerticalScrollBar().setUnitIncrement(10);\n dayViewScrollPane.setBorder(null);\n\n mainDisplay.add(dayViewScrollPane);\n mainDisplay.setBackground(Color.WHITE);\n\n //setting default day view text in the labels\n updateDateDisplay();\n\n return mainDisplay;\n }", "private void initComponents() {\r\n\r\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\r\n setTitle(\"Library\");\r\n setLocationByPlatform(true);\r\n setResizable(false);\r\n addWindowListener(new java.awt.event.WindowAdapter() {\r\n public void windowClosing(java.awt.event.WindowEvent evt) {\r\n logoutSession(evt);\r\n }\r\n });\r\n\r\n org.jdesktop.layout.GroupLayout layout = new org.jdesktop.layout.GroupLayout(getContentPane());\r\n getContentPane().setLayout(layout);\r\n layout.setHorizontalGroup(\r\n layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\r\n .add(0, 693, Short.MAX_VALUE)\r\n );\r\n layout.setVerticalGroup(\r\n layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\r\n .add(0, 504, Short.MAX_VALUE)\r\n );\r\n pack();\r\n }", "private void initComponents() {\n\n JMonthText = new javax.swing.JTextField();\n JMontNumber = new javax.swing.JSpinner();\n\n setMaximumSize(new java.awt.Dimension(49150, 25));\n setMinimumSize(new java.awt.Dimension(120, 25));\n setPreferredSize(new java.awt.Dimension(120, 25));\n setLayout(new javax.swing.BoxLayout(this, javax.swing.BoxLayout.X_AXIS));\n\n JMonthText.setEditable(false);\n add(JMonthText);\n\n JMontNumber.setMaximumSize(new java.awt.Dimension(18, 25));\n JMontNumber.setMinimumSize(new java.awt.Dimension(18, 25));\n JMontNumber.setPreferredSize(new java.awt.Dimension(18, 25));\n JMontNumber.addPropertyChangeListener(new java.beans.PropertyChangeListener() {\n public void propertyChange(java.beans.PropertyChangeEvent evt) {\n JMontNumberPropertyChange(evt);\n }\n });\n JMontNumber.addChangeListener(new javax.swing.event.ChangeListener() {\n public void stateChanged(javax.swing.event.ChangeEvent evt) {\n JMontNumberStateChanged(evt);\n }\n });\n add(JMontNumber);\n }", "private void agendaFrame() {\n\t\tEventQueue.invokeLater(new Runnable() {\n\t\t\t@Override\n\t\t\tpublic void run() {\n\t\t\t\tfinal JFrame frame = new JFrame(\"Please select a time period.\");\n\t\t\t\tframe.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);\n\t\t\t\ttry {\n\t\t\t\t\tUIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tJPanel panel = new JPanel();\n\t\t\t\tpanel.setLayout(new GridLayout(1, 4));\n\t\t\t\t//JTextField d = new JTextField(\"\" + year + \"/\" + month + \"/\" + day);\n\t\t\t\tfinal JTextField startDate = new JTextField(\"1\" + \"/1\" + \"/2016\");\n\t\t\t\tJTextField to = new JTextField(\"to\");\n\t\t\t\tto.setEditable(false);\n\t\t\t\tfinal JTextField endDate = new JTextField(\"1\" + \"/2\" + \"/2016\");\n\t\t\t\tJButton go = new JButton(\"Go\");\n\t\t\t\t\n\t\t\t\tgo.addActionListener(new ActionListener() {\n\t\t\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\t\teventsRender = new AgendaViewRender();\n\t\t\t\t\t\tAgendaViewRender.setStartDate(startDate.getText());\n\t\t\t\t\t\tAgendaViewRender.setEndDate(endDate.getText());\n\t\t\t\t\t\tupdateEventsView(eventsRender);\n\t\t\t\t\t\tframe.dispatchEvent(new WindowEvent(frame, WindowEvent.WINDOW_CLOSING));\n\t\t\t\t\t}\n\t\t\t\t});\n\n\t\t\t\tpanel.add(startDate);\n\t\t\t\tpanel.add(to);\n\t\t\t\tpanel.add(endDate);\n\t\t\t\tpanel.add(go);\n\t\t\t\t\n\t\t\t\tframe.setSize(500, 100);\n\t\t\t\tframe.setLayout(new GridLayout(2, 1));\n\t\t\t\tframe.add(panel);\n\t\t\t\tframe.setLocationByPlatform(true);\n\t\t\t\tframe.setVisible(true);\n\n\t\t\t}\n\t\t});\n\t}", "protected void init(){\n ac = new ButtonEventManager(this);\n \n nameField = new JTextField();\n \n done = new JButton(\"DONE\");\n back = new JButton(\"MAIN MENU\");\n quit = new JButton(\"QUIT\");\n \n done.setActionCommand(\"go to game menu after saving\");\n back.setActionCommand(\"go to the main menu\");\n quit.setActionCommand(\"quit the game\");\n \n Font font = new Font(\"Arial\", Font.PLAIN, 10);\n \n nameField.setFont(font);\n \n nameField.setBounds(2 * this.getWidth() / 3 - buttonWidth / 2, (int)(0.4 * this.getHeight() - textFieldHeight / 2), buttonWidth, textFieldHeight);\n \n done.setBounds((this.getWidth() / 2 - buttonWidth) / 2, (int)(0.7 * this.getHeight() - buttonHeight / 2), buttonWidth, buttonHeight);\n back.setBounds((this.getWidth() - buttonWidth) / 2, (int)(0.7 * this.getHeight() - buttonHeight / 2), buttonWidth, buttonHeight);\n quit.setBounds(3 * (this.getWidth() - buttonWidth) / 2, (int)(0.7 * this.getHeight() - buttonHeight / 2), buttonWidth, buttonHeight);\n \n done.addActionListener(ac);\n back.addActionListener(ac);\n quit.addActionListener(ac);\n \n add(nameField);\n \n add(done);\n add(back);\n add(quit);\n }", "private void initialiseUI()\n { \n // The actual data go in this component.\n String defaultRootElement = \"icr:regionSetData\";\n JPanel contentPanel = initialiseContentPanel(defaultRootElement);\n pane = new JScrollPane(contentPanel);\n \n panelLayout = new GroupLayout(this);\n\t\tthis.setLayout(panelLayout);\n\t\tthis.setBackground(DAOConstants.BG_COLOUR);\n\n\t\tpanelLayout.setAutoCreateContainerGaps(true);\n\n panelLayout.setHorizontalGroup(\n\t\t\tpanelLayout.createParallelGroup()\n\t\t\t.addComponent(pane, 10, 520, 540)\n );\n\n panelLayout.setVerticalGroup(\n\t\t\tpanelLayout.createSequentialGroup()\n .addComponent(pane, 10, GroupLayout.PREFERRED_SIZE, Short.MAX_VALUE)\n );\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jLabel1 = new javax.swing.JLabel();\n hourSelect = new javax.swing.JComboBox();\n minuteSelect = new javax.swing.JComboBox();\n nameSelect = new javax.swing.JTextField();\n periodSelect = new javax.swing.JComboBox();\n addButton = new javax.swing.JButton();\n jLabel2 = new javax.swing.JLabel();\n entryContainerScrollPane = new javax.swing.JScrollPane();\n entryContainerPanel = new javax.swing.JPanel();\n\n setFocusCycleRoot(true);\n setFocusTraversalPolicy(new CustomFocusTraversalPolicy());\n\n jLabel1.setFont(new java.awt.Font(\"Tahoma\", 0, 24)); // NOI18N\n jLabel1.setText(\"Alarms\");\n\n hourSelect.setModel(new javax.swing.DefaultComboBoxModel(new String[] { \"1\", \"2\", \"3\", \"4\", \"5\", \"6\", \"7\", \"8\", \"9\", \"10\", \"11\", \"12\" }));\n\n minuteSelect.setModel(new javax.swing.DefaultComboBoxModel(new String[] { \"00\", \"01\", \"02\", \"03\", \"04\", \"05\", \"06\", \"07\", \"08\", \"09\", \"10\", \"11\", \"12\", \"13\", \"14\", \"15\", \"16\", \"17\", \"18\", \"19\", \"20\", \"21\", \"22\", \"23\", \"24\", \"25\", \"26\", \"27\", \"28\", \"29\", \"30\", \"31\", \"32\", \"33\", \"34\", \"35\", \"36\", \"37\", \"38\", \"39\", \"40\", \"41\", \"42\", \"43\", \"44\", \"45\", \"46\", \"47\", \"48\", \"49\", \"50\", \"51\", \"52\", \"53\", \"54\", \"55\", \"56\", \"57\", \"58\", \"59\", \"60\" }));\n\n nameSelect.setForeground(java.awt.Color.lightGray);\n nameSelect.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n nameSelect.setText(\"Alarm Name\");\n nameSelect.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n nameSelectFocusGained(evt);\n }\n public void focusLost(java.awt.event.FocusEvent evt) {\n nameSelectFocusLost(evt);\n }\n });\n\n periodSelect.setModel(new javax.swing.DefaultComboBoxModel(new String[] { \"AM\", \"PM\" }));\n\n addButton.setText(\"Add\");\n addButton.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n addButtonActionPerformed(evt);\n }\n });\n\n jLabel2.setText(\":\");\n\n entryContainerScrollPane.setBorder(null);\n\n entryContainerPanel.setLayout(new javax.swing.BoxLayout(entryContainerPanel, javax.swing.BoxLayout.PAGE_AXIS));\n entryContainerScrollPane.setViewportView(entryContainerPanel);\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 .addComponent(entryContainerScrollPane)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addComponent(nameSelect, javax.swing.GroupLayout.DEFAULT_SIZE, 239, Short.MAX_VALUE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(hourSelect, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jLabel2)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(minuteSelect, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(periodSelect, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(addButton))\n .addGroup(layout.createSequentialGroup()\n .addGap(0, 0, Short.MAX_VALUE)\n .addComponent(jLabel1)\n .addGap(0, 0, Short.MAX_VALUE)))\n .addContainerGap())\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(6, 6, 6)\n .addComponent(jLabel1)\n .addGap(7, 7, 7)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(hourSelect, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(minuteSelect, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(periodSelect, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(addButton)\n .addComponent(jLabel2)\n .addComponent(nameSelect, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(entryContainerScrollPane, javax.swing.GroupLayout.DEFAULT_SIZE, 419, Short.MAX_VALUE))\n );\n }", "private void initComponents() {\n\n jbtTransmissionAny = new javax.swing.JButton();\n jbtBlockClient = new javax.swing.JButton();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);\n setUndecorated(true);\n addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseExited(java.awt.event.MouseEvent evt) {\n formMouseExited(evt);\n }\n });\n getContentPane().setLayout(new java.awt.GridLayout(2, 1));\n\n jbtTransmissionAny.setText(\"Transmission Any\");\n jbtTransmissionAny.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseExited(java.awt.event.MouseEvent evt) {\n jbtTransmissionAnyMouseExited(evt);\n }\n });\n jbtTransmissionAny.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jbtTransmissionAnyActionPerformed(evt);\n }\n });\n getContentPane().add(jbtTransmissionAny);\n\n jbtBlockClient.setText(\"Block Client\");\n getContentPane().add(jbtBlockClient);\n\n pack();\n }", "public ScheduleWindow() {\n //list of the days of the week\n this.daysOfWeek = new String[]{\"Monday\", \"Tuesday\", \"Wednesday\", \"Thursday\", \"Friday\", \"Saturday\", \"Sunday\"};\n\n //init the array of schedule columns for the days of the week\n weeks = new JPanel[7];\n copyButtons = new CopyPasteButtons[7];\n //init the array of time controls\n scheduleTimes = new TimeControl[7][NUM_ENTRIES];\n\n //netbeans provided method\n initComponents();\n doneLabel.setVisible(false);\n //add column layout manager for main view\n weekView.setLayout(new BoxLayout(weekView, BoxLayout.X_AXIS));\n //build the columns of controls\n for (int i = 0; i < weeks.length; i++) {\n //init and configure the JPanels that form columns\n weeks[i] = new JPanel();\n //init and configure copy paste buttons\n copyButtons[i] = new CopyPasteButtons();\n copyButtons[i].setListener(this);\n\n weeks[i].setBorder(BorderFactory.createTitledBorder(daysOfWeek[i]));\n weeks[i].setLayout(new BoxLayout(weeks[i], BoxLayout.Y_AXIS));\n //add copy paste buttons to top of list\n weeks[i].add(copyButtons[i]);\n\n //add the rows of time controls to the columns\n for (int j = 0; j < NUM_ENTRIES; j++) {\n scheduleTimes[i][j] = new TimeControl();\n weeks[i].add(scheduleTimes[i][j]);\n\n }\n //after the column is built, add it to the main view\n weekView.add(weeks[i]);\n }\n\n }", "public GUI() {\n super(\"Day Planner\");\n setSize(465,550);\n setDefaultCloseOperation(EXIT_ON_CLOSE);\n addWindowListener(new CheckOnExit() {});\n basePanel = new JPanel(new CardLayout());\n init();\n \n \n basePanel.setVisible(true);\n add(basePanel);\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jPanel1 = new javax.swing.JPanel();\n jLabel1 = new javax.swing.JLabel();\n jTextField1 = new javax.swing.JTextField();\n jLabel2 = new javax.swing.JLabel();\n jLabel3 = new javax.swing.JLabel();\n jTextField2 = new javax.swing.JTextField();\n jLabel4 = new javax.swing.JLabel();\n jTextField3 = new javax.swing.JTextField();\n jLabel5 = new javax.swing.JLabel();\n jTextField4 = new javax.swing.JTextField();\n jLabel12 = new javax.swing.JLabel();\n jTextField11 = new javax.swing.JTextField();\n demoDateField1 = new com.jp.samples.comp.calendarnew.DemoDateField();\n jLabel6 = new javax.swing.JLabel();\n jTextField5 = new javax.swing.JTextField();\n jLabel15 = new javax.swing.JLabel();\n jTextField12 = new javax.swing.JTextField();\n jLabel16 = new javax.swing.JLabel();\n jButton1 = new javax.swing.JButton();\n jPanel2 = new javax.swing.JPanel();\n jLabel13 = new javax.swing.JLabel();\n jComboBox2 = new javax.swing.JComboBox();\n jFormattedTextField2 = new javax.swing.JFormattedTextField();\n jLabel17 = new javax.swing.JLabel();\n jLabel14 = new javax.swing.JLabel();\n jComboBox1 = new javax.swing.JComboBox();\n jLabel7 = new javax.swing.JLabel();\n jLabel8 = new javax.swing.JLabel();\n jTextField6 = new javax.swing.JTextField();\n jLabel9 = new javax.swing.JLabel();\n jTextField7 = new javax.swing.JTextField();\n jLabel10 = new javax.swing.JLabel();\n jTextField8 = new javax.swing.JTextField();\n jLabel11 = new javax.swing.JLabel();\n jTextField9 = new javax.swing.JTextField();\n dfs = new DecimalFormatSymbols();\n dfs.setDecimalSeparator('.');\n dfs.setGroupingSeparator(',');\n dFormat= new DecimalFormat(\"#0.##\", dfs);\n jFormattedTextField1 = new javax.swing.JFormattedTextField(dFormat);\n jLabel18 = new javax.swing.JLabel();\n jFormattedTextField3 = new javax.swing.JFormattedTextField();\n jFormattedTextField4 = new javax.swing.JFormattedTextField();\n jSeparator1 = new javax.swing.JSeparator();\n jLabel19 = new javax.swing.JLabel();\n jLabel20 = new javax.swing.JLabel();\n jLabel21 = new javax.swing.JLabel();\n demoDateField2 = new com.jp.samples.comp.calendarnew.DemoDateField();\n demoDateField3 = new com.jp.samples.comp.calendarnew.DemoDateField();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n\n jPanel1.setBorder(javax.swing.BorderFactory.createTitledBorder(\"\"));\n\n jLabel1.setText(\"Raison Sociale\");\n\n DocumentFilter filter = new UppercaseDocumentFilter();\n ((AbstractDocument) jTextField1.getDocument()).setDocumentFilter(filter);\n jTextField1.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusLost(java.awt.event.FocusEvent evt) {\n jTextField1FocusLost(evt);\n }\n });\n\n jLabel2.setText(\"Date de création\");\n\n jLabel3.setText(\"Activité principale\");\n\n jTextField2.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusLost(java.awt.event.FocusEvent evt) {\n jTextField2FocusLost(evt);\n }\n });\n\n jLabel4.setText(\"Adresse\");\n\n jTextField3.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusLost(java.awt.event.FocusEvent evt) {\n jTextField3FocusLost(evt);\n }\n });\n\n jLabel5.setText(\"Num COE\");\n\n jTextField4.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusLost(java.awt.event.FocusEvent evt) {\n jTextField4FocusLost(evt);\n }\n });\n\n jLabel12.setText(\"Lieu de création\");\n\n jTextField11.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusLost(java.awt.event.FocusEvent evt) {\n jTextField11FocusLost(evt);\n }\n });\n\n demoDateField1.setYearDigitsAmount(4);\n\n jLabel6.setText(\"Personne de référence\");\n\n ((AbstractDocument) jTextField5.getDocument()).setDocumentFilter(filter);\n jTextField5.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusLost(java.awt.event.FocusEvent evt) {\n jTextField5FocusLost(evt);\n }\n });\n\n jLabel15.setText(\"Nom\");\n\n jTextField12.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusLost(java.awt.event.FocusEvent evt) {\n jTextField12FocusLost(evt);\n }\n });\n jTextField12.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyTyped(java.awt.event.KeyEvent evt) {\n jTextField12KeyTyped(evt);\n }\n });\n\n jLabel16.setText(\"Prénoms\");\n\n javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);\n jPanel1.setLayout(jPanel1Layout);\n jPanel1Layout.setHorizontalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(jLabel5)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jTextField4, javax.swing.GroupLayout.PREFERRED_SIZE, 160, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(javax.swing.GroupLayout.Alignment.LEADING, jPanel1Layout.createSequentialGroup()\n .addComponent(jLabel2)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(demoDateField1, javax.swing.GroupLayout.PREFERRED_SIZE, 160, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(javax.swing.GroupLayout.Alignment.LEADING, jPanel1Layout.createSequentialGroup()\n .addComponent(jLabel4)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jTextField3, javax.swing.GroupLayout.PREFERRED_SIZE, 160, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(javax.swing.GroupLayout.Alignment.LEADING, jPanel1Layout.createSequentialGroup()\n .addComponent(jLabel3)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 82, Short.MAX_VALUE)\n .addComponent(jTextField2, javax.swing.GroupLayout.PREFERRED_SIZE, 160, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(javax.swing.GroupLayout.Alignment.LEADING, jPanel1Layout.createSequentialGroup()\n .addComponent(jLabel12)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jTextField11, javax.swing.GroupLayout.PREFERRED_SIZE, 160, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(javax.swing.GroupLayout.Alignment.LEADING, jPanel1Layout.createSequentialGroup()\n .addComponent(jLabel1)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jTextField1, javax.swing.GroupLayout.PREFERRED_SIZE, 160, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(jLabel6)\n .addGap(44, 44, 44)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel16)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(jLabel15)\n .addComponent(jTextField5, javax.swing.GroupLayout.DEFAULT_SIZE, 158, Short.MAX_VALUE)\n .addComponent(jTextField12)))))\n .addContainerGap(165, Short.MAX_VALUE))\n );\n jPanel1Layout.setVerticalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(23, 23, 23)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel1)\n .addComponent(jTextField1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(29, 29, 29)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(demoDateField1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel2))\n .addGap(25, 25, 25)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel12)\n .addComponent(jTextField11, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(28, 28, 28)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel3)\n .addComponent(jTextField2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(28, 28, 28)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jLabel4)\n .addComponent(jTextField3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(28, 28, 28)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel5)\n .addComponent(jTextField4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addComponent(jLabel15, javax.swing.GroupLayout.PREFERRED_SIZE, 14, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel6)\n .addComponent(jTextField5, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jLabel16, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(2, 2, 2)\n .addComponent(jTextField12, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(68, Short.MAX_VALUE))\n );\n\n jButton1.setText(\"Enregistrer\");\n jButton1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton1ActionPerformed(evt);\n }\n });\n\n jPanel2.setBorder(javax.swing.BorderFactory.createTitledBorder(\"\"));\n\n jLabel13.setText(\"Téléphone\");\n\n jComboBox2.setModel(new javax.swing.DefaultComboBoxModel(new String[] { \"National \", \"International\" }));\n jComboBox2.addItemListener(new java.awt.event.ItemListener() {\n public void itemStateChanged(java.awt.event.ItemEvent evt) {\n jComboBox2ItemStateChanged(evt);\n }\n });\n\n try {\n jFormattedTextField2.setFormatterFactory(new javax.swing.text.DefaultFormatterFactory(new javax.swing.text.MaskFormatter(\"##-##-##-##\")));\n } catch (java.text.ParseException ex) {\n ex.printStackTrace();\n }\n jFormattedTextField2.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n jFormattedTextField2FocusGained(evt);\n }\n public void focusLost(java.awt.event.FocusEvent evt) {\n jFormattedTextField2FocusLost(evt);\n }\n });\n\n jLabel17.setText(\"\");\n\n jLabel14.setText(\"Type adhésion\");\n\n jComboBox1.setModel(new javax.swing.DefaultComboBoxModel(new String[] { \"Epargne \", \"Tontine\", \"Epargne & Tontine\" }));\n jComboBox1.addItemListener(new java.awt.event.ItemListener() {\n public void itemStateChanged(java.awt.event.ItemEvent evt) {\n jComboBox1ItemStateChanged(evt);\n }\n });\n jComboBox1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jComboBox1ActionPerformed(evt);\n }\n });\n\n jLabel7.setText(\"Versements initiaux\");\n\n jLabel8.setText(\"Droit d'adhésion\");\n\n DocumentListener documentListener = new DocumentListener() {\n\n @Override\n public void removeUpdate(DocumentEvent e) {\n performSummation(null);\n }\n\n @Override\n public void insertUpdate(DocumentEvent e) {\n performSummation(null);\n }\n\n @Override\n public void changedUpdate(DocumentEvent e) {\n }\n };\n\n DocumentFilter numericFilter = new DocumentFilter(){\n\n // @Override\n // public void insertString(FilterBypass fb, int offset,\n // String string, AttributeSet attr)\n // throws BadLocationException {\n // fb.insertString(offset, string.replaceAll(\"[^\\\\d]\", \"\"), attr);\n // }\n\n // @Override\n // public void replace(FilterBypass fb, int offset, int length,\n // String text, AttributeSet attrs)\n // throws BadLocationException {\n\n // fb.replace(offset, length, text.replaceAll(\"[^\\\\d]\", \"\"), attrs);\n // }\n @Override\n public void insertString(FilterBypass fb, int offset, String text,\n AttributeSet attr) throws BadLocationException {\n super.insertString(fb, offset, revise(text), attr);\n }\n\n @Override\n public void replace(FilterBypass fb, int offset, int length, String text,\n AttributeSet attrs) throws BadLocationException {\n super.replace(fb, offset, length, revise(text), attrs);\n }\n\n private String revise(String text) {\n StringBuilder builder = new StringBuilder(text);\n int index = 0;\n while (index < builder.length()) {\n if (accept(builder.charAt(index))) {\n index++;\n } else {\n // Don't increment index here, or you'll skip the next character!\n builder.deleteCharAt(index);\n }\n }\n return builder.toString();\n }\n\n /**\n * Determine if the character should remain in the String. You may\n * override this to get any matching criteria you want.\n * @param c The character in question\n * @return true if it's valid, false if it should be removed.\n */\n public boolean accept(final char c) {\n return Character.isDigit(c) || c == ' ';\n }\n };\n ((AbstractDocument) jTextField6.getDocument()).setDocumentFilter(numericFilter);\n ((AbstractDocument) jTextField7.getDocument()).setDocumentFilter(numericFilter);\n ((AbstractDocument) jTextField8.getDocument()).setDocumentFilter(numericFilter);\n\n jTextField6.getDocument().addDocumentListener(documentListener);\n jTextField7.getDocument().addDocumentListener(documentListener);\n jTextField8.getDocument().addDocumentListener(documentListener);\n jTextField6.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusLost(java.awt.event.FocusEvent evt) {\n jTextField6FocusLost(evt);\n }\n });\n\n jLabel9.setText(\"Part Sociale\");\n\n jFormattedTextField4.setEnabled(false);\n\n jLabel10.setText(\"Dépôt\");\n\n jLabel11.setText(\"TOTAL\");\n\n jFormattedTextField1.setFormatterFactory(new javax.swing.text.DefaultFormatterFactory(new javax.swing.text.NumberFormatter()));\n jFormattedTextField1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jFormattedTextField1ActionPerformed(evt);\n }\n });\n jFormattedTextField1.setVisible(false);\n\n jLabel18.setText(\"N° Carnet\");\n\n try {\n jFormattedTextField3.setFormatterFactory(new javax.swing.text.DefaultFormatterFactory(new javax.swing.text.MaskFormatter(\"####\")));\n } catch (java.text.ParseException ex) {\n ex.printStackTrace();\n }\n //jFormattedTextField3.setFormatterFactory(new javax.swing.text.DefaultFormatterFactory(new RegexFormatter(\"\\\\(\\\\d{3}\\\\)\\\\d{3}-\\\\d{4}\")));\n\n try {\n jFormattedTextField4.setFormatterFactory(new javax.swing.text.DefaultFormatterFactory(new javax.swing.text.MaskFormatter(\"####\")));\n } catch (java.text.ParseException ex) {\n ex.printStackTrace();\n }\n\n jLabel19.setText(\"Date d'adhésion:\");\n\n jLabel20.setText(\"Epargne\");\n\n jLabel21.setText(\"Tontine\");\n\n demoDateField3.setEnabled(false);\n\n javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);\n jPanel2.setLayout(jPanel2Layout);\n jPanel2Layout.setHorizontalGroup(\n jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jSeparator1)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel13)\n .addComponent(jLabel14)\n .addComponent(jLabel18)\n .addComponent(jLabel7)\n .addComponent(jLabel8)\n .addComponent(jLabel9)\n .addComponent(jLabel10)\n .addComponent(jLabel11))\n .addGap(44, 44, 44)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addComponent(jTextField6, javax.swing.GroupLayout.PREFERRED_SIZE, 160, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jFormattedTextField1, javax.swing.GroupLayout.DEFAULT_SIZE, 145, Short.MAX_VALUE))\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(jComboBox1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addComponent(jComboBox2, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addGap(27, 27, 27)\n .addComponent(jLabel17))\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addGap(18, 18, 18)\n .addComponent(jFormattedTextField2, javax.swing.GroupLayout.PREFERRED_SIZE, 137, javax.swing.GroupLayout.PREFERRED_SIZE))))\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addComponent(jFormattedTextField3, javax.swing.GroupLayout.PREFERRED_SIZE, 121, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jFormattedTextField4)))\n .addGap(0, 0, Short.MAX_VALUE)))\n .addGap(18, 18, 18))\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addComponent(jTextField7, javax.swing.GroupLayout.PREFERRED_SIZE, 160, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jTextField9, javax.swing.GroupLayout.PREFERRED_SIZE, 160, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jTextField8, javax.swing.GroupLayout.PREFERRED_SIZE, 160, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(0, 0, Short.MAX_VALUE))))\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addComponent(jLabel19)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addComponent(jLabel21)\n .addGap(18, 18, 18)\n .addComponent(demoDateField3, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addComponent(jLabel20)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(demoDateField2, javax.swing.GroupLayout.PREFERRED_SIZE, 173, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGap(0, 0, Short.MAX_VALUE))))\n );\n jPanel2Layout.setVerticalGroup(\n jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addComponent(jLabel17, javax.swing.GroupLayout.PREFERRED_SIZE, 10, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(8, 8, 8)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel13)\n .addComponent(jComboBox2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jFormattedTextField2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel14)\n .addComponent(jComboBox1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel18)\n .addComponent(jFormattedTextField3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jFormattedTextField4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addComponent(jLabel7)\n .addGap(16, 16, 16)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel8)\n .addComponent(jTextField6, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jFormattedTextField1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel9)\n .addComponent(jTextField7, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addComponent(jLabel10)\n .addGap(29, 29, 29)\n .addComponent(jLabel11))\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addComponent(jTextField8, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(jTextField9, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGap(18, 18, 18)\n .addComponent(jSeparator1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel19)\n .addComponent(jLabel20)))\n .addComponent(demoDateField2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jLabel21))\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addGap(0, 0, Short.MAX_VALUE)\n .addComponent(demoDateField3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGap(62, 62, 62))\n );\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 .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addGap(25, 25, 25)\n .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addContainerGap(529, Short.MAX_VALUE)\n .addComponent(jButton1, javax.swing.GroupLayout.PREFERRED_SIZE, 156, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(468, 468, 468))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jPanel2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addGap(27, 27, 27)\n .addComponent(jButton1)\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n\n pack();\n }", "@Override\n public void init() // set up GUI\n {\n setLayout(new FlowLayout());\n\n customerView = new CustomerView(); // initialize customerView\n \n add(customerView); // add customerView to the GUI\n }", "public void loadCalendar(Calendar calendar) {\n String content = calendar.toString();\n if (!isWindowsOs()) {\n content = content.replace(\"\\r\\n\", System.getProperty(\"line.separator\"));\n }\n\n VCalendar vCalendar = VCalendar.parse(content);\n ICalendarAgenda iCalendarAgenda = new ICalendarAgenda(vCalendar);\n borderPane.setCenter(iCalendarAgenda);\n\n // block events on calendar\n EventHandler<MouseEvent> handler = MouseEvent::consume;\n borderPane.getCenter().addEventFilter(MouseEvent.ANY, handler);\n setUpBorderPane(iCalendarAgenda);\n\n }", "private void createWidgets() {\n\t\tgrid = new GridPane();\n\t\ttxtNickname = new TextField();\n\t\ttxtPort = new TextField();\n\t\ttxtAdress = new TextField();\n\n\t\tlblNick = new Label(\"Nickname\");\n\t\tlblNickTaken = new Label();\n\t\tlblPort = new Label(\"Port\");\n\t\tlblAdress = new Label(\"Adress\");\n\t\tlblCardDesign = new Label(\"Carddesign\");\n\n\t\tbtnLogin = new Button(\"\");\n\t\timageStart = new Image(BTNSTARTWOOD, 85, 35, true, true);\n\t\timvStart = new ImageView();\n\n\t\tcardDesignOptions = FXCollections.observableArrayList(\n\t\t\t\t\"original design\", \"pirate design\", \"graveyard design\");\n\t\tcomboBoxCardDesign = new ComboBox<String>(cardDesignOptions);\n\n\t\tcomboBoxCardDesign\n\t\t\t\t.setCellFactory(new Callback<ListView<String>, ListCell<String>>() {\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic ListCell<String> call(ListView<String> list) {\n\t\t\t\t\t\treturn new ExtCell();\n\t\t\t\t\t}\n\n\t\t\t\t});\n\t}", "@Override\n\tpublic void initializeControls() {\n\t\t\n\t}", "private void initComponents() {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);\n setPreferredSize(new java.awt.Dimension(686, 530));\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, 699, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 541, Short.MAX_VALUE)\n );\n\n pack();\n }", "private void addWidgets() {\n\t\tgrid.setHgap(10);\n\t\tgrid.setVgap(5);\n\t\tgrid.setPadding(new Insets(150, 80, 80, 80));\n\t\tgrid.add(lblPort, 0, 1);\n\t\tgrid.add(txtPort, 1, 1);\n\t\tgrid.add(lblAdress, 0, 2);\n\t\tgrid.add(txtAdress, 1, 2);\n\t\tgrid.add(lblNick, 0, 4);\n\t\tgrid.add(txtNickname, 1, 4);\n\t\tgrid.add(lblNickTaken, 1, 5);\n\t\tgrid.add(lblCardDesign, 0, 3);\n\t\tgrid.add(comboBoxCardDesign, 1, 3);\n\t\tgrid.add(btnLogin, 0, 7);\n\t\timvStart.setImage(imageStart);\n\t}", "private void initUI() {\r\n\t\tthis.verticalLayout = new XdevVerticalLayout();\r\n\t\tthis.verticalLayout2 = new XdevVerticalLayout();\r\n\t\r\n\t\tthis.setSpacing(false);\r\n\t\tthis.setMargin(new MarginInfo(false));\r\n\t\tthis.verticalLayout.setSpacing(false);\r\n\t\tthis.verticalLayout.setMargin(new MarginInfo(false));\r\n\t\tthis.verticalLayout2.setMargin(new MarginInfo(false));\r\n\t\r\n\t\tthis.verticalLayout2.setSizeFull();\r\n\t\tthis.verticalLayout.addComponent(this.verticalLayout2);\r\n\t\tthis.verticalLayout.setComponentAlignment(this.verticalLayout2, Alignment.MIDDLE_CENTER);\r\n\t\tthis.verticalLayout.setExpandRatio(this.verticalLayout2, 20.0F);\r\n\t\tthis.verticalLayout.setSizeFull();\r\n\t\tthis.addComponent(this.verticalLayout);\r\n\t\tthis.setComponentAlignment(this.verticalLayout, Alignment.MIDDLE_CENTER);\r\n\t\tthis.setExpandRatio(this.verticalLayout, 10.0F);\r\n\t\tthis.setSizeFull();\r\n\t\r\n\t\tthis.addContextClickListener(event -> this.this_contextClick(event));\r\n\t}", "private void initComponentsCustom() {\n SGuiUtils.setWindowBounds(this, 480, 300);\n\n moIntYear.setIntegerSettings(SGuiUtils.getLabelName(jlYear.getText()), SGuiConsts.GUI_TYPE_INT_CAL_YEAR, true);\n moDateDate.setDateSettings(miClient, SGuiUtils.getLabelName(jlDate.getText()), true);\n moTextCode.setTextSettings(SGuiUtils.getLabelName(jlCode.getText()), 10);\n moTextName.setTextSettings(SGuiUtils.getLabelName(jlName.getText()), 50);\n\n moFields.addField(moIntYear);\n moFields.addField(moDateDate);\n moFields.addField(moTextCode);\n moFields.addField(moTextName);\n\n moFields.setFormButton(jbSave);\n }", "private void initializeViewAndControls() {\r\n txtEmail.setText(\"Email - \"+ AppConstants.ADMIN_EMAIL);\r\n txtCustomerCarePhone.setText(\"Customer Care - \"+ AppConstants.CUSTOMER_CARE_NUMBER);\r\n txtTollFreePhone.setText(\"Toll Free - \"+ AppConstants.TOLL_FREE_NUMBER);\r\n }", "private void setupMachinery() {\n\t\tthis.renderer = new IntermediateRenderer();\n\t\tthis.controllerModel = new ControllerModel();\n\t\t\n\t\t// connect the Renderer to the Hub\n\t\tthis.hub = new ControllerHub(this.controllerModel, this.renderer, this);\n\t\tthis.hub.addAtomContainer(ac);\n\t\t\n\t\t// connect mouse events from Panel to the Hub\n\t\tthis.mouseEventRelay = new SwingMouseEventRelay(this.hub);\n\t\tthis.addMouseListener(mouseEventRelay);\n\t}", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jButton6 = new javax.swing.JButton();\n jButton5 = new javax.swing.JButton();\n jButton3 = new javax.swing.JButton();\n jButton2 = new javax.swing.JButton();\n jButton1 = new javax.swing.JButton();\n jButton8 = new javax.swing.JButton();\n jPanel2 = new javax.swing.JPanel();\n jPanel1 = new javax.swing.JPanel();\n jCalendar1 = new com.toedter.calendar.JCalendar();\n jLabel1 = new javax.swing.JLabel();\n jButton4 = new javax.swing.JButton();\n rSLabelImage2 = new rojerusan.RSLabelImage();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n getContentPane().setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\n\n jButton6.setBackground(new java.awt.Color(255, 255, 255));\n jButton6.setFont(new java.awt.Font(\"Tahoma\", 1, 11)); // NOI18N\n jButton6.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Data/Calendar-icon.png\"))); // NOI18N\n jButton6.setText(\"Calender\");\n jButton6.setFocusable(false);\n jButton6.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n jButton6.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n getContentPane().add(jButton6, new org.netbeans.lib.awtextra.AbsoluteConstraints(520, 20, -1, 60));\n\n jButton5.setBackground(new java.awt.Color(255, 255, 255));\n jButton5.setFont(new java.awt.Font(\"Tahoma\", 1, 11)); // NOI18N\n jButton5.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Data/print32.png\"))); // NOI18N\n jButton5.setText(\"Print\");\n jButton5.setFocusable(false);\n jButton5.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n jButton5.setMaximumSize(new java.awt.Dimension(57, 57));\n jButton5.setMinimumSize(new java.awt.Dimension(57, 57));\n jButton5.setPreferredSize(new java.awt.Dimension(57, 57));\n jButton5.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n jButton5.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton5ActionPerformed(evt);\n }\n });\n getContentPane().add(jButton5, new org.netbeans.lib.awtextra.AbsoluteConstraints(450, 20, 70, -1));\n\n jButton3.setBackground(new java.awt.Color(255, 255, 255));\n jButton3.setFont(new java.awt.Font(\"Tahoma\", 1, 11)); // NOI18N\n jButton3.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Data/Collection-2-icon.png\"))); // NOI18N\n jButton3.setText(\"Collection\");\n jButton3.setFocusable(false);\n jButton3.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n jButton3.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n jButton3.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton3ActionPerformed(evt);\n }\n });\n getContentPane().add(jButton3, new org.netbeans.lib.awtextra.AbsoluteConstraints(360, 20, -1, -1));\n\n jButton2.setBackground(new java.awt.Color(255, 255, 255));\n jButton2.setFont(new java.awt.Font(\"Tahoma\", 1, 11)); // NOI18N\n jButton2.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Data/money-icon.png\"))); // NOI18N\n jButton2.setText(\"Transaction\");\n jButton2.setFocusable(false);\n jButton2.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n jButton2.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n jButton2.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton2ActionPerformed(evt);\n }\n });\n getContentPane().add(jButton2, new org.netbeans.lib.awtextra.AbsoluteConstraints(260, 20, -1, -1));\n\n jButton1.setBackground(new java.awt.Color(255, 255, 255));\n jButton1.setFont(new java.awt.Font(\"Tahoma\", 1, 11)); // NOI18N\n jButton1.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Data/new32.png\"))); // NOI18N\n jButton1.setText(\"New Client\");\n jButton1.setFocusable(false);\n jButton1.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n jButton1.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n jButton1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton1ActionPerformed(evt);\n }\n });\n getContentPane().add(jButton1, new org.netbeans.lib.awtextra.AbsoluteConstraints(170, 20, -1, -1));\n\n jButton8.setBackground(new java.awt.Color(255, 255, 255));\n jButton8.setFont(new java.awt.Font(\"Tahoma\", 1, 11)); // NOI18N\n jButton8.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Data/1-Normal-Home-icon.png\"))); // NOI18N\n jButton8.setText(\"Home\");\n jButton8.setFocusable(false);\n jButton8.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n jButton8.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n jButton8.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton8ActionPerformed(evt);\n }\n });\n getContentPane().add(jButton8, new org.netbeans.lib.awtextra.AbsoluteConstraints(100, 20, -1, -1));\n\n jPanel2.setBackground(new java.awt.Color(255, 255, 255));\n jPanel2.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\n\n jPanel1.setBackground(new java.awt.Color(255, 255, 255));\n jPanel1.setBorder(javax.swing.BorderFactory.createTitledBorder(null, \"Current Month\", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font(\"Tahoma\", 1, 18), new java.awt.Color(51, 153, 255))); // NOI18N\n jPanel1.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\n jPanel1.add(jCalendar1, new org.netbeans.lib.awtextra.AbsoluteConstraints(16, 35, 290, 210));\n\n jPanel2.add(jPanel1, new org.netbeans.lib.awtextra.AbsoluteConstraints(300, 180, -1, -1));\n\n jLabel1.setFont(new java.awt.Font(\"Trajan Pro 3\", 1, 36)); // NOI18N\n jLabel1.setText(\"Current Month\");\n jPanel2.add(jLabel1, new org.netbeans.lib.awtextra.AbsoluteConstraints(270, 120, -1, -1));\n\n jButton4.setBackground(new java.awt.Color(255, 255, 255));\n jButton4.setFont(new java.awt.Font(\"Tahoma\", 1, 11)); // NOI18N\n jButton4.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Data/search-icon.png\"))); // NOI18N\n jButton4.setText(\"Search\");\n jButton4.setFocusable(false);\n jButton4.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n jButton4.setMaximumSize(new java.awt.Dimension(57, 57));\n jButton4.setMinimumSize(new java.awt.Dimension(57, 57));\n jButton4.setPreferredSize(new java.awt.Dimension(57, 57));\n jButton4.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n jButton4.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton4ActionPerformed(evt);\n }\n });\n jPanel2.add(jButton4, new org.netbeans.lib.awtextra.AbsoluteConstraints(610, 20, 100, -1));\n\n rSLabelImage2.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/img/imgonline-com-ua-ReplaceColor-hgMWcqNo5oH9B.jpg\"))); // NOI18N\n jPanel2.add(rSLabelImage2, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, 960, 490));\n\n getContentPane().add(jPanel2, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, 960, 490));\n\n setSize(new java.awt.Dimension(977, 528));\n setLocationRelativeTo(null);\n }", "private void buildControls() {\n\t\tsetLayout(new FillLayout());\n\t\tSashForm child = new SashForm(this, SWT.VERTICAL);\n\t\ttable = new Table(child, SWT.FULL_SELECTION | SWT.MULTI | SWT.BORDER );\n\t\ttable.addSelectionListener(createSelctionListener());\n\t\tviewer = buildAndLayoutTable(table);\n\t\taddDNDSupport(viewer);\n\t\tattachContentProvider(viewer);\n\t\tattachLabelProvider(viewer);\n\t\tsingleRating = new RatingTable(child, null, SWT.HORIZONTAL, model);\n\t\t//Zum Debuggen ist das Textfeld sehr nützlich\n\t\t//Text target = new Text(child, SWT.NONE);\n\t\t//initDropTest(target);\n\t\t//child.setWeights(new int[] {2, 1, 1});\n\t\tchild.setWeights(new int[]{2, 1});\n\t\taddFilter(viewer);\n\t\tviewer.setInput(webtrace);\n\t}", "private void setUpGUI()\n\t{\n\t\tgetContentPane().setLayout(new BorderLayout());\n\n\t\t//center panel (project and developer dropdown lists, and state of\n\t\t//server label)\n\t\tJPanel centerPanel = new JPanel();\n\t\tcenterPanel.setLayout(new GridLayout(3, 2));\n\n\t\tcenterPanel.add(new JLabel(\"Choose a project\"));\n\t\tprojectsComboBox = new JComboBox<String>(selectADBString);\n\t\tcenterPanel.add(projectsComboBox);\n\n\t\tcenterPanel.add(new JLabel(\"Choose a developer group\"));\n\t\tdevNamesComboBox = new JComboBox<String>(selectADBString);\n\t\tcenterPanel.add(devNamesComboBox);\n\n\t\tstateOfServerLabel = new JLabel(\"The server is NOT running\");\n\t\tcenterPanel.add(stateOfServerLabel);\n\n\t\tgetContentPane().add(centerPanel, BorderLayout.CENTER);\n\n\t\t//south panel (start the server)\n\t\tJPanel southPanel = new JPanel();\n\t\tsouthPanel.setLayout(new FlowLayout());\n\n\t\tstartStopServerButton = new JButton(START_SERVER_BUTTON_TEXT);\n\t\tstartStopServerButton.addActionListener(this);\n\n\t\topenPlaybackInBrowserCheckbox = new JCheckBox(\"Open the playback in the browser?\");\n\n\t\tsouthPanel.add(startStopServerButton);\n\t\tsouthPanel.add(openPlaybackInBrowserCheckbox);\n\n\t\tgetContentPane().add(southPanel, BorderLayout.SOUTH);\n\n\t\t//create the north panel by looking for the last used db file\n\t\tJPanel northPanel = createNorthPanel();\n\n\t\tgetContentPane().add(northPanel, BorderLayout.NORTH);\n\n\t\t//window controls\n\t\tsetDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tsetSize(800, 250);\n\t\tsetVisible(true);\n\t}", "private void initComponents() {\n lblHAUF = new JLabel();\n jdcHAUF = new JDateChooser();\n lblStation = new JLabel();\n cmbStation = new JComboBox<>();\n lblRoom = new JLabel();\n cmbRoom = new JComboBox<>();\n cbKZP = new JCheckBox();\n\n //======== this ========\n setLayout(new FormLayout(\n \"default, $lcgap, pref, $lcgap, default:grow, $lcgap, default\",\n \"4*(default, $lgap), default\"));\n\n //---- lblHAUF ----\n lblHAUF.setText(\"text\");\n lblHAUF.setFont(new Font(\"Arial\", Font.PLAIN, 14));\n add(lblHAUF, CC.xy(3, 3));\n\n //---- jdcHAUF ----\n jdcHAUF.setFont(new Font(\"Arial\", Font.PLAIN, 14));\n jdcHAUF.addPropertyChangeListener(\"date\", e -> jdcDOBPropertyChange(e));\n add(jdcHAUF, CC.xy(5, 3));\n\n //---- lblStation ----\n lblStation.setText(\"text\");\n lblStation.setFont(new Font(\"Arial\", Font.PLAIN, 14));\n add(lblStation, CC.xy(3, 5));\n\n //---- cmbStation ----\n cmbStation.setFont(new Font(\"Arial\", Font.PLAIN, 14));\n cmbStation.addItemListener(e -> cmbStationItemStateChanged(e));\n add(cmbStation, CC.xy(5, 5));\n\n //---- lblRoom ----\n lblRoom.setText(\"text\");\n lblRoom.setFont(new Font(\"Arial\", Font.PLAIN, 14));\n add(lblRoom, CC.xy(3, 7));\n\n //---- cmbRoom ----\n cmbRoom.setFont(new Font(\"Arial\", Font.PLAIN, 14));\n cmbRoom.addItemListener(e -> cmbRoomItemStateChanged(e));\n add(cmbRoom, CC.xy(5, 7));\n\n //---- cbKZP ----\n cbKZP.setText(\"text\");\n cbKZP.addItemListener(e -> cbKZPItemStateChanged(e));\n add(cbKZP, CC.xywh(3, 9, 3, 1));\n // JFormDesigner - End of component initialization //GEN-END:initComponents\n }" ]
[ "0.71137154", "0.69997793", "0.68698996", "0.6507251", "0.6420985", "0.6392001", "0.6205943", "0.61548394", "0.6139449", "0.61219305", "0.6097189", "0.60959834", "0.60470366", "0.6043299", "0.6031358", "0.6017501", "0.6017046", "0.60127914", "0.5997345", "0.59463865", "0.591547", "0.58778447", "0.58758247", "0.5872362", "0.5865145", "0.5858025", "0.5854851", "0.5854221", "0.5809319", "0.5801548", "0.5798456", "0.57969445", "0.57956874", "0.57792574", "0.5776962", "0.5770888", "0.57699555", "0.5769264", "0.5750358", "0.57482064", "0.5743079", "0.572941", "0.572642", "0.5721045", "0.5709536", "0.5707259", "0.5705595", "0.57051134", "0.57033", "0.570189", "0.56965935", "0.56955266", "0.5693692", "0.5691064", "0.5689946", "0.56890935", "0.5688763", "0.56887263", "0.5685362", "0.56822264", "0.5682126", "0.5681697", "0.5667579", "0.5666824", "0.56570446", "0.5637733", "0.5635478", "0.5630818", "0.5627668", "0.5616494", "0.56157374", "0.56058884", "0.5598265", "0.55922765", "0.5590489", "0.55859756", "0.55850464", "0.5580857", "0.5575668", "0.5571126", "0.55682534", "0.55681634", "0.556217", "0.55551964", "0.5553239", "0.55506706", "0.55490595", "0.5545528", "0.55427325", "0.5541556", "0.5534039", "0.5530376", "0.5526748", "0.5523393", "0.5522808", "0.5521762", "0.5520537", "0.5519509", "0.55097145", "0.5501967" ]
0.7284454
0
Raises event to event center of change in display time Depends on the current date, not on the first date displayed in the calendar
private void indicateCalendarDisplayTimeChanged() { raise(new CalendarDisplayTimeChangedEvent(currentDateTime)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\t/**\n\t * Defines the look of the day view grid (the division of hours and events throughout the day) \n\t * @param c GregorianCalendar holding the year to be drawn\n\t * @param d the data model holding event information \n\t * @param g2 the graphics package\n\t * @param container the container that will rely on this method to define it's look and feel \n\t */\n\tpublic void drawEventGrid(GregorianCalendar c, DataModel d, Graphics2D g2, Component container)\n\t{\n\t\t\t\tLine2D.Double vertLine = new Line2D.Double(60, 0, 60, container.getHeight()); \n\t\t\t\tg2.setColor(Color.LIGHT_GRAY);\n\t\t\t\tg2.draw(vertLine);\n\n\t\t\t\t//Draw the time text\n\t\t\t\tint hour = 1; \n\t\t\t\tString halfOfDay = \"am\"; \n\n\t\t\t\tfor (int i = 0; i<24; i ++)\n\t\t\t\t{\t\n\t\t\t\t\tif (i < 23)\n\t\t\t\t\t{\n\t\t\t\t\t\tg2.setColor(Color.BLACK);\n\t\t\t\t\t\tif (i == 11)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\thalfOfDay = \"pm\";\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (i == 12)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\thour = 1; \n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tString time = Integer.toString(hour) + halfOfDay; \n\t\t\t\t\t\thour++; \n\t\t\t\t\t\tg2.drawString(time, 20, ( i + 1 )*60);\n\t\t\t\t\t}\n\n\n\t\t\t\t\t//Draw the Lines indicating where hours begin \n\t\t\t\t\tg2.setColor(Color.LIGHT_GRAY);\n\t\t\t\t\tLine2D.Double hourLine = new Line2D.Double(60, i*60, container.getWidth(), i*60); \n\t\t\t\t\tg2.draw(hourLine); \n\n\t\t\t\t}\n\n\t\t\t\t//Get events from the datModel \n\t\t\t\tTreeSet<Event> events = d.getEvents(c.get(Calendar.MONTH) + 1 , c.get(Calendar.DAY_OF_MONTH), c.get(Calendar.YEAR));\n\t\t\t\tif (events.size() != 0)\n\t\t\t\t{\n\t\t\t\t\tfor (Event e : events)\n\t\t\t\t\t{\n\t\t\t\t\t\tg2.setColor(Color.BLUE);\n\t\t\t\t\t\tString eventStart = e.getStartTime(); \n\t\t\t\t\t\tString eventEnd = e.getEndTime(); \n\t\t\t\t\t\tint startHour = Integer.parseInt(eventStart.substring(0,2)); \n\t\t\t\t\t\tint startMin = Integer.parseInt(eventStart.substring(3)); \n\t\t\t\t\t\tint endHour = Integer.parseInt(eventEnd.substring(0,2)); \n\t\t\t\t\t\tint endMin = Integer.parseInt(eventEnd.substring(3)); \n\n\t\t\t\t\t\t//Draw the Rectangle representing the scheduled event \n\t\t\t\t\t\tRectangle2D.Double eventBox = new Rectangle2D.Double(60, ((startHour * 60) + startMin), \n\t\t\t\t\t\t\t\tcontainer.getWidth(), ((endHour * 60) - (startHour * 60) + (endMin - startMin)) ); \n\t\t\t\t\t\tg2.fill(eventBox);\n\n\t\t\t\t\t\t//Draw the event details onto the rectangle\n\t\t\t\t\t\tFontMetrics fm = g2.getFontMetrics(container.getFont()); \n\t\t\t\t\t\tg2.setColor(Color.WHITE);\n\t\t\t\t\t\tg2.drawString( \" \" + e.getName() + \" \" + e.getStartTime() + \" - \" + e.getEndTime(), 60, ((startHour * 60) + startMin + fm.getHeight())); \n\t\t\t\t\t}\n\t\t\t\t}\n\n\n\t}", "@Override\n\t\t\tpublic void onClick(View arg0) {\n\n\t\t\t\tgetLayouts();\n\n\t\t\t\tCalendar pre = (Calendar) calendar.clone();\n\n\t\t\t\tcurrentMonth--;\n\n\t\t\t\tif (currentMonth == 0) {\n\t\t\t\t\tcurrentMonth = 12;\n\t\t\t\t\tcurrentYear--;\n\t\t\t\t}\n\t\t\t\tpre.set(Calendar.MONTH, currentMonth);\n\t\t\t\tpre.set(Calendar.YEAR, currentYear);\n\t\t\t\tpre.set(Calendar.DATE, 1);\n\n\t\t\t\tpositionPre = pre.getTime().toString().split(\" \");\n\t\t\t\tpreviousDayPosition = ReturnCalendarDetails\n\t\t\t\t\t\t.getPosition(positionPre[0]);\n\n\t\t\t\tgetCalendar(\n\t\t\t\t\t\tReturnCalendarDetails.getCurrentMonth(positionPre[1]),\n\t\t\t\t\t\tReturnCalendarDetails.getPosition(positionPre[0]),\n\t\t\t\t\t\tInteger.parseInt(positionPre[5]));\n\n\t\t\t\tSystem.out.println(\"!!\" + pre.getTime());\n\t\t\t}", "public void actualDateSwitchAction() {\n\t\tdateToDisplay = Utils.removeTime(Calendar.getInstance().getTime());\n\t\tshowAnimalList(dateToDisplay);\n\t\tanimalsListPanel.switchToToday();\n\t}", "@Override\n\tpublic void eventDate(Date newDate) {\n\t\t\n\t}", "Calendar occurredAt();", "private void reactMain_region_digitalwatch_Display_refreshing_RefreshingChrono() {\n\t\tif (sCIButtons.topLeftPressed) {\n\t\t\tnextStateIndex = 1;\n\t\t\tstateVector[1] = State.$NullState$;\n\n\t\t\ttimer.unsetTimer(this, 3);\n\n\t\t\ttimer.setTimer(this, 2, 1 * 1000, false);\n\n\t\t\tsCIDisplay.operationCallback.refreshTimeDisplay();\n\n\t\t\tsCIDisplay.operationCallback.refreshDateDisplay();\n\n\t\t\tnextStateIndex = 1;\n\t\t\tstateVector[1] = State.main_region_digitalwatch_Display_refreshing_RefreshingTime_timeView_hideAlarm;\n\t\t} else {\n\t\t\tif (timeEvents[3]) {\n\t\t\t\tnextStateIndex = 1;\n\t\t\t\tstateVector[1] = State.$NullState$;\n\n\t\t\t\ttimer.unsetTimer(this, 3);\n\n\t\t\t\ttimer.setTimer(this, 3, 250, false);\n\n\t\t\t\tsCIDisplay.operationCallback.refreshChronoDisplay();\n\n\t\t\t\tsCILogicUnit.operationCallback.getChrono();\n\n\t\t\t\tnextStateIndex = 1;\n\t\t\t\tstateVector[1] = State.main_region_digitalwatch_Display_refreshing_RefreshingChrono;\n\t\t\t}\n\t\t}\n\t}", "private void updateDisplay() \n\t{\n\t\t// updates the date in the TextView\n if(bir.hasFocus())\n {\n\t\tbir.setText(\n\t\t\t\tnew StringBuilder()\n\t\t\t\t// Month is 0 based so add 1\n\t\t\t\t\n\t\t\t\t.append(mDay).append(\"-\")\n\t\t\t\t.append(mMonth + 1).append(\"-\")\n\t\t\t\t.append(mYear).append(\" \"));\n }else\n {\n\t\taniv.setText(\n\t\t\t\tnew StringBuilder()\n\t\t\t\t// Month is 0 based so add 1\n\t\t\t\t\n\t\t\t\t.append(mDay).append(\"-\")\n\t\t\t\t.append(mMonth + 1).append(\"-\")\n\t\t\t\t.append(mYear).append(\" \"));\n }\n\n\n\t}", "public void SetCurrentDate(CalendarWidget kCal) {\n\t\tfor(int i = 0; i < 42; ++i)\n\t\t{\n\t\t\tif(kCal.cell[i].date.getText().toString().length() == 0)\n\t\t\t\tcontinue;\n\t\t\tkCal.checkForCurrentData(kCal.cell[i]);\n\t\t}\n\t}", "public void modify() {\n\t\tselectedView.printCalendar(mc.getCalendar());\n\t}", "@Override\n public void onClick() {\n showMonthViewWithBelowEvents();\n }", "public void calendarListener(CalendarEvent ce){\n Date triggerDate = (Date)ce.getTriggerDate().clone();\n setInicioRegistrar(triggerDate);\n setFinRegistrar(triggerDate);\n }", "public void render() {\n\t\teventMap.clear();\n\t\t\n\t\tLocalDate firstDateOfMonth = LocalDate.of(currentDate.getYear(), currentDate.getMonthValue(), 1);\n\t\tint date = firstDateOfMonth.getDayOfWeek().getValue()%7;\n\t\t\n\t\t\n\t\teventSection.removeAll();\n\t\t// draw day string\n\t\tString[] headers = {\"SUN\", \"MON\", \"TUE\", \"WED\", \"THU\", \"FRI\", \"SAT\"};\n\t\tfor(int i = 0; i < headers.length; i++) {\n\t\t\tJLabel label = new CalendarDate(headers[i]);\t\n\t\t\tlabel.setHorizontalAlignment(JLabel.CENTER);\n\t\t label.setVerticalAlignment(JLabel.CENTER); \n\t\t Border border = BorderFactory.createLineBorder(Color.LIGHT_GRAY, 1);\n\t \tlabel.setBorder(border);\n\t\t eventSection.add(label);\n\t\t}\n\t\t// front padding\n\t\tLocalDate previousMonth = currentDate.minusMonths(1);\n\t\tfor(int i = date - 1; i >= 0; i--) {\n\t\t\tJLabel label = new CalendarDate(\"<html>\" + (previousMonth.getMonth().maxLength() - i) + \"</html>\");\n\t\t\tlabel.setHorizontalAlignment(JLabel.CENTER);\n\t\t label.setVerticalAlignment(JLabel.TOP); \n\t\t Border border = BorderFactory.createLineBorder(Color.LIGHT_GRAY, 1);\n\t \tlabel.setBorder(border);\n\t\t label.setForeground(Color.gray);\n\t\t eventSection.add(label);\n\t\t}\n\t\t// draw dates\n\t\tfor(int i = 1; i <= currentDate.getMonth().maxLength(); i++) {\n\t\t\tJPanel outerPanel = new JPanel();\n\t\t\touterPanel.setLayout(new BorderLayout());\n\t\t\touterPanel.setBorder(BorderFactory.createLineBorder(Color.LIGHT_GRAY, 1));\n\t\t\t\t\t\n\t\t\tJLabel label = new CalendarDate(\"<html>\" + i + \"</html>\");\n\t\t\tlabel.setPreferredSize(new Dimension(150,20));\n\t\t\tlabel.setBorder(BorderFactory.createEmptyBorder(5, 0, 5, 0));\n\t\t\tlabel.setHorizontalAlignment(JLabel.CENTER); \t\t \n\n\t\t outerPanel.add(label, BorderLayout.NORTH);\n\t\t \t \n\t\t LocalDate tmp = LocalDate.of(currentDate.getYear(), currentDate.getMonthValue(), i);\n\t\t\tArrayList<Event> dateEvents = new ArrayList<Event>();\n\t\t\tdateEvents = EventProcessor.filterEvents(model.getEvents(), tmp, tmp);\n\t\t\t\n\t\t\tif (dateEvents.size() > 0) {\t\n\t\t\t\tJPanel container = new JPanel();\n\t\t\t\tcontainer.setLayout(new BoxLayout(container, BoxLayout.Y_AXIS));\n\t\t\t JScrollPane scrollablePanel = new JScrollPane(container, ScrollPaneConstants.VERTICAL_SCROLLBAR_AS_NEEDED, ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER);\n\t\t\t scrollablePanel.getVerticalScrollBar().setPreferredSize(new Dimension(0,0));\n\t\t\t outerPanel.add(scrollablePanel, BorderLayout.CENTER);\n\t\t\t \n\t\t\t\tfor (int j = 0; j < dateEvents.size(); j++) {\n\t\t\t\t\tEvent ev = dateEvents.get(j);\n\t\t\t\t\t\n\t\t\t\t\tJPanel panel = new JPanel();\t\t\t\n\t\t\t\t\tpanel.setLayout(new BoxLayout(panel, BoxLayout.Y_AXIS));\n\t\t\t\t\tif (j % 2 == 1)\n\t\t\t\t\t\tpanel.setBackground(new Color(243, 243, 243));\n\t\t\t\t\telse\n\t\t\t\t\t\tpanel.setBackground(new Color(192, 219, 243));\n\t\t\t\t\tpanel.setOpaque(true);\n\t\t\t\t\t\n\t\t\t\t\tString eventName = ev.getName();\n\t\t\t\t\tJLabel eventPill = new JLabel(\"<html>\" + (eventName.length() > 20 ? eventName.substring(0, 17) + \"...\" : eventName) + \"</html>\");\n\t\t\t\t\teventPill.setHorizontalAlignment(JLabel.LEFT);\n\t\t\t\t\teventPill.setAlignmentX(Component.LEFT_ALIGNMENT);\n\n\t\t\t\t\teventMap.put(eventPill, ev);\n\t\t\t\t\t\n\t\t\t\t\teventPill.addMouseListener(new MouseListener() {\n\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t\t\t\tEvent event = eventMap.get((JLabel)e.getSource());\n\t\t\t\t\t\t\tString content = \"<html><strong>\" + event.getName() + \"</strong><br><span>\" + DateTimeFormatter.ofLocalizedDate(FormatStyle.FULL).format(event.getDate()) + \"</span><br><span>\" + event.getStartTime() + \":00 - \" + event.getEndTime() + \":00</span></html>\";\n\t\t\t\t\t\t\tpopupContent.setText(content);\n\t\t\t\t\t\t\tpopup.repaint();\n\t\t\t\t\t\t\tpopup.pack();\n\t\t\t\t\t\t\tpopup.setLocation(e.getXOnScreen(), e.getYOnScreen());\n\t\t\t\t\t\t\tpopup.setVisible(true);\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic void mousePressed(MouseEvent e) {}\n\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic void mouseReleased(MouseEvent e) {}\n\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic void mouseEntered(MouseEvent e) {}\n\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic void mouseExited(MouseEvent e) {}\n\t\t\t\t\t\t\n\t\t\t\t\t});\n\t\t\t\t\t\n\t\t\t\t\tpanel.add(eventPill);\n\t\t\t\t\tcontainer.add(panel);\n\t\t\t\t}\n\t\t\t}\n\t\t \n\t\t eventSection.add(outerPanel);\n\t\t}\n\t\t// rear padding\n\t\tint rearPaddingCount = 49 - currentDate.getMonth().maxLength() - headers.length - date;\n\t\tfor(int i = 0; i < rearPaddingCount; i++) {\n\t\t\tJLabel label = new CalendarDate(\"<html>\" + (i + 1) + \"</html>\");\n\t\t\tlabel.setHorizontalAlignment(JLabel.CENTER);\n\t\t label.setVerticalAlignment(JLabel.TOP); \n\t\t label.setForeground(Color.gray);\n\t\t Border border = BorderFactory.createLineBorder(Color.LIGHT_GRAY, 1);\n\t \tlabel.setBorder(border);\n\t\t\teventSection.add(label);\n\t\t\t\n\t\t}\n\t\trevalidate();\n\t\trepaint();\n\t}", "@Subscribe\n private void handleCalendarPanelSelectionChangedEvent(CalendarPanelSelectionChangedEvent event) {\n logger.info(LogsCenter.getEventHandlingLogMessage(event));\n setDisplayedDateTime(event.newSelection.getStartLocalDateTime());\n }", "public void setCalendarForModel(Calendar calend) {\n this.cal = calend;\n //fireTableDataChanged();\n refresh();\n}", "public void saveCalenderDate() {\r\n\t\tdate = getDateToDisplay(null);\r\n\t}", "public void getInfoWindowZone(Context context, float x, float y) {\n\n WindowManager wm = (WindowManager) context.getSystemService(Context.WINDOW_SERVICE);\n Display display = wm.getDefaultDisplay();\n\n int zone = 0;\n //\n int width = display.getWidth();\n int height = display.getHeight();\n\n/*\n int[] location = new int[2];\n v.getLocationOnScreen(location);\n float x = location[0] ;//v.getX() + CalendarMonthFragment.gridItemX;//itemPos.x;\n float y = location[1] ;//v.getY() + CalendarMonthFragment.gridItemY;//itemPos.y;\n*/\n\n interactiveInfoWindow.setDimensionByGridLocation();\n\n//\t\tif(height > width) {\n//\t\t\tif((x > calendarEventInfos.getWidth()/2) && ((x + calendarEventInfos.getWidth()/2) < width))\n//\t\t\t{\n//\t\t\t\tif(y > (calendarEventInfos.getHeight()) && y + calendarEventInfos.getHeight() > height) {\n//\n//\t\t\t\t\tzone = 270;\n//\n//\t\t\t\t}else if(y < calendarEventInfos.getHeight() && y + calendarEventInfos.getHeight() < height) {\n//\n//\t\t\t\t\tzone = 90;\n//\n//\t\t\t\t}\n//\t\t\t}\n//\n//\t\t\tif((x > calendarEventInfos.getWidth()) && (position.x + mLocationInfos.getWidth()) >= width - 50) {\n//\t\t\t\tif((y > (calendarEventInfos.getHeight()/2)) && (height > (y + ( calendarEventInfos.getHeight()/2 ) ))) {\n//\t\t\t\t\tzone = 0;\n//\t\t\t\t}\n//\t\t\t}\n//\t\t\telse if((x + calendarEventInfos.getWidth() < width) && ((y > calendarEventInfos.getHeight()/2) && (y + calendarEventInfos.getHeight()/2 < height))) {\n//\t\t\t\tzone = 180;\n//\t\t\t}\n//\n//\t\t}\n//\t\telse {\n//\t\t\tif((x < calendarEventInfos.getWidth()/2 + 50) && ((x + calendarEventInfos.getWidth()/2) < width ))\n//\t\t\t{\n//\t\t\t\tif(y > (calendarEventInfos.getHeight() - 50) && (y + calendarEventInfos.getHeight()) > height) {\n//\n//\t\t\t\t\tzone = 270;\n//\n//\t\t\t\t}else if(y < calendarEventInfos.getHeight() && (y + calendarEventInfos.getHeight()) < height ) {\n//\n//\t\t\t\t\tzone = 90;\n//\n//\t\t\t\t}\n//\t\t\t}\n//\n//\t\t\telse if((y > calendarEventInfos.getHeight()) && (y + calendarEventInfos.getHeight()) >= height - 100) {\n//\t\t\t\tif(x + calendarEventInfos.getWidth() > width - 100) {\n//\t\t\t\t\tzone = 0;\n//\t\t\t\t}else if(x < calendarEventInfos.getWidth()) {\n//\t\t\t\t\tzone = 180;\n//\t\t\t\t}\n//\n//\t\t\t}\n////\t\t\telse if((x + calendarEventInfos.getWidth() < width - 150) && ((y > calendarEventInfos.getHeight()/2 - 50) && (y+ calendarEventInfos.getHeight()/2 < height - 50))) {\n////\t\t\t\tzone = 180;\n////\t\t\t}\n//\t}\n\n if((x > interactiveInfoWindow.getWidth()/2) && ((x + interactiveInfoWindow.getWidth()/2) < width))\n {\n if(y > (interactiveInfoWindow.getHeight()) && y + interactiveInfoWindow.getHeight() > height) {\n\n zone = 270;\n\n }else if(y < interactiveInfoWindow.getHeight() && y + interactiveInfoWindow.getHeight() < height) {\n\n zone = 90;\n\n }\n }\n\n if((x > interactiveInfoWindow.getWidth()) && (x + interactiveInfoWindow.getWidth()) >= width - 50) {\n if((y > (interactiveInfoWindow.getHeight()/2)) && (height > (y + ( interactiveInfoWindow.getHeight()/2 ) ))) {\n zone = 0;\n }\n }\n else{\n zone = 180;\n }\n\n\n\n interactiveInfoWindow.setViewByGridLocation(zone);\n\n\n\n interactiveInfoWindow.show(mapImage, x, y, zone, height);\n\n interactiveInfoWindow.setOnDismissListener(new QuickAction.OnDismissListener() {\n\n @Override\n public void onDismiss() {\n\n\n }\n });\n }", "public void setTodayDate() {\n\t\tfinal Calendar c = Calendar.getInstance();\r\n\t\tmYear = c.get(Calendar.YEAR);\r\n\t\tmMonth = c.get(Calendar.MONTH);\r\n\t\tmDay = c.get(Calendar.DAY_OF_MONTH);\r\n\r\n\t\tmaxYear = mYear - 10;\r\n\t\tmaxMonth = mMonth;\r\n\t\tmaxDay = mDay;\r\n\r\n\t\tminYear = mYear - 110;\r\n\t\tminMonth = mMonth;\r\n\t\tminDay = mDay;\r\n\t\t// display the current date (this method is below)\r\n\t\t// updateDisplay();\r\n\t\t updateDisplay(maxYear, maxMonth, maxDay);\r\n\t}", "public void displayCalendar() throws IllegalArgumentException {\r\n\t\tif (getCurrentEntity() == null) {\r\n\t\t\tthrow new IllegalArgumentException(\"No doctor is displayed\");\r\n\t\t}\r\n\t\ttracer(this).debug(\"Displaying calendar of doctor: \" + getCurrentEntity().getId());\r\n\t\tgetEventBus().fireEvent(DoctorCalendarPage.createPageEvent(this, getCurrentEntity().getId()));\r\n\t\tview.setViewVisible(false);\r\n\t}", "public void actionPerformed(ActionEvent ae){\n Date date = new Date();\n //instantiate new Date object\n\n DateFormat format = new SimpleDateFormat(\"E, MMM d y HH:mm:ss\");\n //set format of clock\n\n DateFormat otherFormat = new SimpleDateFormat(\"E, MMM, d y KK:mm:ss a\");\n //12 hour time\n\n String dateTime = format.format(date);\n //formatting date object using format template\n\n String otherDateTime = otherFormat.format(date);\n\n clockLabelOne.setText(dateTime);\n //setting clock text to formatted String\n }", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tDate now = new Date();\n\t\t\t\tString ss = DateFormat.getDateTimeInstance().format(now);\n\t\t\t\tlblDate.setText(ss);\n\t\t\t}", "public void setTodayDate() {\r\n int oldMonthValue = getMonth();\r\n int oldYearValue = getYear();\r\n calendarTable.getCalendarModel().setTodayDate();\r\n updateControlsFromTable();\r\n // fire property change\r\n int newMonthValue = getMonth();\r\n if (oldMonthValue != newMonthValue) {\r\n firePropertyChange(MONTH_PROPERTY, oldMonthValue, newMonthValue);\r\n }\r\n int newYearValue = getYear();\r\n if (oldYearValue != newYearValue) {\r\n firePropertyChange(YEAR_PROPERTY, oldYearValue, newYearValue);\r\n }\r\n // clear selection when changing the month in view\r\n if (oldMonthValue != newMonthValue && oldYearValue != newYearValue) {\r\n calendarTable.getSelectionModel().clearSelection();\r\n }\r\n }", "private void changePreviousDay(){\n\t\tplanet.getClimate().prevDay();\n\t}", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tCursurIndex = 2;\n\t\t\t\tHandleCursurDisplay.sendMessage(HandleCursurDisplay.obtainMessage(CursurIndex));\n\t\t\t\tClickDaysInitial();\n\t\t\t}", "@Override\n public void onDateSet(DatePicker view, int year, int monthOfYear, int dayOfMonth) {\n Calendar newDate = Calendar.getInstance();\n newDate.set(year, monthOfYear, dayOfMonth);\n\n\n if(!newDate.before(newCalendar)){\n /**\n * Update TextView with choosen date\n */\n newDate.set(Calendar.HOUR_OF_DAY, 0);\n newDate.set(Calendar.MINUTE, 0);\n newDate.set(Calendar.SECOND, 0);\n newDate.set(Calendar.MILLISECOND,0);\n mDateTextView.setTextColor(Color.BLACK);\n String day = mDateFormatter.getDayName(newDate.getTime());\n String date = mDateFormatter.getOnlyDate(newDate.getTime());\n String month = mDateFormatter.getMonth(newDate.getTime());\n mDateTextView.setText(day + \" \" + date + \",\" + month);\n mChoosenSaveDate = newDate;\n }else{\n mDateTextView.setText(\"Deadline has to be at leats same as current date\");\n mDateTextView.setTextColor(Color.RED);\n Toast.makeText(view.getContext(),\"invalid choosen date\",\n Toast.LENGTH_LONG).show();\n }\n\n\n }", "default void onCustomStartTimeChanged(LocalTime startTime) {}", "@Override\n\t\t\tpublic void onClick(View arg0) {\n\n\t\t\t\tgetLayouts();\n\n\t\t\t\tCalendar next = (Calendar) calendar.clone();\n\n\t\t\t\tif (currentMonth > 11) {\n\t\t\t\t\tcurrentMonth = 1;\n\t\t\t\t\tcurrentYear++;\n\t\t\t\t} else {\n\t\t\t\t\tcurrentMonth++;\n\t\t\t\t}\n\n\t\t\t\tnext.set(Calendar.MONTH, currentMonth);\n\t\t\t\tnext.set(Calendar.YEAR, currentYear);\n\t\t\t\tnext.set(Calendar.DATE, 1);\n\n\t\t\t\tpositionNext = next.getTime().toString().split(\" \");\n\t\t\t\tgetCalendar(\n\t\t\t\t\t\tReturnCalendarDetails.getCurrentMonth(positionNext[1]),\n\t\t\t\t\t\tReturnCalendarDetails.getPosition(positionNext[0]),\n\t\t\t\t\t\tInteger.parseInt(positionNext[5]));\n\t\t\t}", "public abstract Date computeFirstFireTime(Calendar calendar);", "@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tcalendar.movePrevMonth();\n\t\t\t\tdisplayCalendar();\n\t\t\t}", "private void drawCalendar(Canvas c, Paint p) {\n\n boolean currentDaySaved = false;\n int currentDayIndex = 0;\n\n drawCurrentDayProgress(c, p);\n\n p.setTextSize(RECT_SIZE / 2);\n p.setTextAlign(Paint.Align.CENTER);\n\n int col = 0;\n int row = 0;\n int maxCol = getWidth() / (RECT_SIZE);\n int translateY = 20;\n c.translate(0, translateY);\n List<MyDay> myDaysCopied = (List<MyDay>) ((ArrayList) myDays).clone();\n for (MyDay myDay : myDaysCopied) {\n if (myDay.isCompleted()) {\n if (myDay.day.get(Calendar.DAY_OF_YEAR) == MyDay.now.get(Calendar.DAY_OF_YEAR) &&\n myDay.day.get(Calendar.YEAR) == MyDay.now.get(Calendar.YEAR)) {\n p.setColor(currentDayColor);\n } else {\n p.setColor(completedDayColor);\n }\n } else {\n\n if (!currentDaySaved) {\n currentDayIndex = myDaysCopied.indexOf(myDay);\n currentDaySaved = true;\n }\n p.setColor(notCompletedDayColor);\n\n }\n if (col != 0 && myDay.day.get(Calendar.DAY_OF_MONTH) == 1) {\n col = 0;\n row++;\n c.drawLine(MARGIN, row * (RECT_SIZE) + MARGIN / 2,\n getWidth() - MARGIN, row * (RECT_SIZE) + MARGIN / 2, p);\n\n c.drawText((myDay.day.get(Calendar.MONTH) + 1) + \".\" + myDay.day.get(Calendar.YEAR),\n getWidth() - 40, row * RECT_SIZE, p);\n\n }\n\n c.drawRect(col * RECT_SIZE + MARGIN,\n row * RECT_SIZE + MARGIN, col * RECT_SIZE + RECT_SIZE\n , row * RECT_SIZE + RECT_SIZE, p);\n\n p.setColor(TEXT_COLOR);\n c.drawText(myDay.day.get(Calendar.DAY_OF_MONTH) + \"\", col * RECT_SIZE\n + MARGIN + RECT_SIZE / 2,\n row * RECT_SIZE + MARGIN + (RECT_SIZE / 3) * 2, p\n );\n\n col++;\n if (col == maxCol) {\n col = 0;\n row++;\n }\n }\n p.setColor(completedDayColor);\n c.translate(0, -translateY);\n c.drawLine(MARGIN, RECT_SIZE / 2 + MARGIN / 2,\n getWidth() - MARGIN, RECT_SIZE / 2 + MARGIN / 2, p);\n\n c.drawText((myDaysCopied.get(0).day.get(Calendar.MONTH) + 1) + \".\" + myDaysCopied.get(0).day.get(Calendar.YEAR),\n getWidth() - 40, RECT_SIZE / 2, p);\n\n\n double progressPercent;\n\n long completedMills = MyDay.now.getTimeInMillis() - MyDay.startDate.getTimeInMillis();\n long allMillis = MyDay.endDate.getTimeInMillis() - MyDay.startDate.getTimeInMillis();\n progressPercent = (((double) completedMills) / allMillis) * 100;\n // Log.d(MY_TAG, \"completedMills: \" + completedMills + \" allMillis: \" + allMillis);\n\n int progressPixel = (int) Math.round(((float) getWidth() / 100f) * progressPercent);\n\n p.setColor(notCompletedDayColor);\n p.setStrokeWidth(15);\n\n c.drawLine(0, getHeight() - PROGRESS_LINE_MARGIN_Y, getWidth(),\n getHeight() - PROGRESS_LINE_MARGIN_Y, p);\n int daysCompleted = currentDayIndex - 1;\n int daysEstimated = DAYS_COUNT - daysCompleted;\n c.drawText(daysEstimated + \"\", getWidth() - 40, getHeight() - PROGRESS_LINE_MARGIN_Y - 20, p);\n p.setColor(completedDayColor);\n c.drawLine(0, getHeight() - PROGRESS_LINE_MARGIN_Y, progressPixel,\n getHeight() - PROGRESS_LINE_MARGIN_Y, p);\n c.drawText(daysCompleted + \"\", 40, getHeight() - PROGRESS_LINE_MARGIN_Y - 20, p);\n p.setTextSize(35);\n c.drawText(new DecimalFormat(\"#0.000000\").format(progressPercent) + \"%\", getWidth() / 2, getHeight() - PROGRESS_LINE_MARGIN_Y - 20, p);\n\n\n }", "public static void updateCalendar() {\n time = Calendar.getInstance();\n hour = time.get(Calendar.HOUR_OF_DAY);\n minute = time.get(Calendar.MINUTE);\n day = time.get(Calendar.DAY_OF_MONTH);\n month = time.get(Calendar.MONTH) + 1; \n year = time.get(Calendar.YEAR);\n\n }", "public void timeChanged();", "public void mo23018c() {\n this.f26122b.edit().putLong(\"last.last.show.attend\", System.currentTimeMillis()).apply();\n }", "private void refreshDateEntryOfTheMarket1(Calendar dateEntryOfTheMarket1){\n mEntryDate1.setText(displayDateFormatter.format(dateEntryOfTheMarket1.getTime()));\n }", "public void setTodayCalendar()\n {\n this.currentCalendar = Calendar.getInstance();\n }", "public void actionPerformed(ActionEvent e) {\n Date date = new Date();\n SimpleDateFormat sdf = new SimpleDateFormat(\"hh:mm:ss\");\n //gameClock.setTime(sdf.format(date));\n gameClock.setTime(current_duration - System.currentTimeMillis());\n repaint();\n }", "@Override\n\tpublic void setInitialDate(Calendar initialDate) {\n\n\t}", "public void actionPerformed(ActionEvent ae){\n Date date = new Date();\n //instantiate new Date object\n\n DateFormat otherFormat = new SimpleDateFormat(\"E, MMM, d y K:mm:ss a\");\n //12 hour time\n\n String otherDateTime = otherFormat.format(date);\n\n clockLabelTwo.setText(otherDateTime);\n //setting clock text to formatted String\n }", "public void onDateSelect(DateSelectEvent selectEvent) {\n event = new DefaultScheduleEvent(Math.random() + \"\", selectEvent.getDate(), selectEvent.getDate()); \r\n }", "private void updateDisplay() { \n\t \tmDateDisplay.setText( \n\t \t\t\tnew StringBuilder()\n\t \t\t\t.append(mYear).append(\"/\")\n\t \t\t\t// Month is 0 based so add 1 \n\t \t\t\t.append(mMonth + 1).append(\"/\") \n\t \t\t\t.append(mDay).append(\" \")); \n\t \t\t\t \n\t \t\t\t \n\t \t\t\t \n\t }", "@Override\n public void update(Object ob) {\n if (ob instanceof CalendarEvent) {\n CalendarEvent event = (CalendarEvent) ob;\n setText(event.toString() + event.printFeedback());\n }\n }", "private void reactMain_region_digitalwatch_Display_refreshing_RefreshingTime_timeView_showAlarm() {\n\t\tif (sCIButtons.topLeftPressed) {\n\t\t\tswitch (stateVector[1]) {\n\t\t\t\tcase main_region_digitalwatch_Display_refreshing_RefreshingTime_timeView_showAlarm :\n\t\t\t\t\tnextStateIndex = 1;\n\t\t\t\t\tstateVector[1] = State.$NullState$;\n\n\t\t\t\t\ttimer.unsetTimer(this, 1);\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase main_region_digitalwatch_Display_refreshing_RefreshingTime_timeView_hideAlarm :\n\t\t\t\t\tnextStateIndex = 1;\n\t\t\t\t\tstateVector[1] = State.$NullState$;\n\n\t\t\t\t\ttimer.unsetTimer(this, 2);\n\t\t\t\t\tbreak;\n\n\t\t\t\tdefault :\n\t\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\ttimer.setTimer(this, 3, 250, false);\n\n\t\t\tsCIDisplay.operationCallback.refreshChronoDisplay();\n\n\t\t\tsCILogicUnit.operationCallback.getChrono();\n\n\t\t\tnextStateIndex = 1;\n\t\t\tstateVector[1] = State.main_region_digitalwatch_Display_refreshing_RefreshingChrono;\n\t\t} else {\n\t\t\tif (sCIButtons.bottomLeftPressed) {\n\t\t\t\tnextStateIndex = 1;\n\t\t\t\tstateVector[1] = State.$NullState$;\n\n\t\t\t\ttimer.unsetTimer(this, 1);\n\n\t\t\t\ttimer.setTimer(this, 2, 1 * 1000, false);\n\n\t\t\t\tsCIDisplay.operationCallback.refreshTimeDisplay();\n\n\t\t\t\tsCIDisplay.operationCallback.refreshDateDisplay();\n\n\t\t\t\tnextStateIndex = 1;\n\t\t\t\tstateVector[1] = State.main_region_digitalwatch_Display_refreshing_RefreshingTime_timeView_hideAlarm;\n\t\t\t} else {\n\t\t\t\tif (timeEvents[1]) {\n\t\t\t\t\tnextStateIndex = 1;\n\t\t\t\t\tstateVector[1] = State.$NullState$;\n\n\t\t\t\t\ttimer.unsetTimer(this, 1);\n\n\t\t\t\t\ttimer.setTimer(this, 1, 1 * 1000, false);\n\n\t\t\t\t\tsCIDisplay.operationCallback.refreshTimeDisplay();\n\n\t\t\t\t\tsCIDisplay.operationCallback.refreshDateDisplay();\n\n\t\t\t\t\tsCIDisplay.operationCallback.refreshAlarmDisplay();\n\n\t\t\t\t\tnextStateIndex = 1;\n\t\t\t\t\tstateVector[1] = State.main_region_digitalwatch_Display_refreshing_RefreshingTime_timeView_showAlarm;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "protected void zoomToPresent(){\n if(xpCursor1 >=0){\n ixDataCursor1 = ixDataShown[xpCursor1];\n }\n if(xpCursor2 >=0){\n ixDataCursor2 = ixDataShown[xpCursor2];\n }\n xpCursor1New = xpCursor2New = cmdSetCursor; \n if(widgg.timeorg.timeSpread > 100) { widgg.timeorg.timeSpread /=2; }\n else { widgg.timeorg.timeSpread = 100; }\n bPaintAllCmd = true;\n widgg.redraw(100, 200);\n }", "private void setTime(Event event) {\n\n startTimeCalendar.set(Calendar.HOUR_OF_DAY, event.getStartTime() / 100);\n startTimeCalendar.set(Calendar.MINUTE, event.getStartTime() % 100);\n updateStartTime();\n endTimeCalendar.set(Calendar.HOUR_OF_DAY, event.getEndTime() / 100);\n endTimeCalendar.set(Calendar.MINUTE, event.getEndTime() % 100);\n updateEndTime();\n\n int hour = (int) event.getDuration();\n String hourString = dfHour.format(hour);\n int minute = (int) ((event.getDuration() - hour) * 60);\n String minuteString = dfMinute.format(minute);\n String textToPut = \"duration: \" + hourString + \" hours \" + minuteString + \" minutes\";\n eventDuration.setText(textToPut);\n }", "private StackPane eventOverlay(Date dateOfColumn, GridPane dayColumn) {\r\n GridPane minuteGridPane = new GridPane();\r\n minuteGridPane.prefWidthProperty().bind(this.widthProperty().divide(7.3));\r\n minuteGridPane.prefHeightProperty().bind(dayColumn.heightProperty());\r\n minuteGridPane.setStyle(\"-fx-background-color: transparent;\");\r\n\r\n GridPane currentTimeGridPane = new GridPane();\r\n currentTimeGridPane.prefWidthProperty().bind(this.widthProperty().divide(7.3));\r\n currentTimeGridPane.prefHeightProperty().bind(this.heightProperty().multiply(1.6));\r\n currentTimeGridPane.setStyle(\"-fx-background-color: transparent;\");\r\n\r\n Date today = CalendarMath.getCurrentDate();\r\n\r\n for (int j = 0; j < 288; j++) {\r\n RowConstraints rowConstraints = new RowConstraints();\r\n rowConstraints.setPercentHeight(100.0 / 288);\r\n\r\n minuteGridPane.getRowConstraints().add(rowConstraints);\r\n currentTimeGridPane.getRowConstraints().add(rowConstraints);\r\n }\r\n\r\n StackPane dayColWithEvents = new StackPane();\r\n\r\n for (int j = 0; j < 288; j++) {\r\n HBox currentTimePane = new HBox();\r\n currentTimePane.prefWidthProperty().bind(dayColumn.widthProperty());\r\n\r\n int currentTimeIncrements = CalendarMath\r\n .num5MinIncrementsFromMidnight(CalendarMath.getCurrentTime());\r\n\r\n if (dateOfColumn.equals(today) && currentTimeIncrements == j) {\r\n currentTimePane\r\n .setStyle(\"-fx-border-color: rgba(224,224,224,0.6);-fx-border-width: 2 0 0 0;\");\r\n } else {\r\n currentTimePane.setStyle(\"-fx-border-width: 0;\");\r\n }\r\n\r\n currentTimeGridPane.add(currentTimePane, 0, j);\r\n\r\n if (j % 3 == 0) {\r\n HBox pane = new HBox();\r\n pane.prefWidthProperty().bind(dayColumn.widthProperty());\r\n\r\n if (j % 4 != 1) {\r\n pane.setStyle(\"-fx-border-color: dimgray;-fx-border-width: 0 0 0.8 0;\");\r\n } else {\r\n pane.setStyle(\"-fx-border-width: 0;\");\r\n }\r\n\r\n GridPane.setRowSpan(pane, 3);\r\n minuteGridPane.add(pane, 0, j);\r\n }\r\n }\r\n\r\n for (Event event : this.getEventsOnDate(dateOfColumn)) {\r\n int startMinuteOfDay = CalendarMath.num5MinIncrementsFromMidnight(event.getStartTime());\r\n\r\n HBox eventPane = this.eventPane(dayColumn, event);\r\n minuteGridPane.add(eventPane, 0, startMinuteOfDay);\r\n\r\n }\r\n dayColWithEvents.getChildren().add(dayColumn);\r\n dayColWithEvents.getChildren().add(minuteGridPane);\r\n\r\n if (dateOfColumn.equals(today)) {\r\n currentTimeGridPane.setMouseTransparent(true);\r\n dayColWithEvents.getChildren().add(currentTimeGridPane);\r\n }\r\n\r\n return dayColWithEvents;\r\n }", "public void updateClock() {\n if (!this.mDemoMode) {\n this.mCalendar.setTimeInMillis(System.currentTimeMillis());\n setText(getSmallTime());\n setContentDescription(this.mContentDescriptionFormat.format(this.mCalendar.getTime()));\n }\n }", "private void timeInitializer(View view){\n currentDate = view.findViewById(R.id.schedule_textView_currentDate);\n GregorianCalendar now = new GregorianCalendar();\n DateFormat df= DateFormat.getDateInstance(DateFormat.SHORT);\n currentDate.setText(df.format(now.getTime()));\n\n currentWeek=view.findViewById(R.id.calendar_week_switch);\n Calendar c = Calendar.getInstance();\n c.setTime(new Date());\n int num_week = c.get(Calendar.WEEK_OF_YEAR);\n if(num_week%2==0){\n currentWeek.setText(R.string.even);\n isEven=true;\n }\n else{\n currentWeek.setText(R.string.odd);\n isEven=false;\n }\n\n }", "private HBox eventPane(GridPane dayColumn, Event event) {\r\n Time startTime = event.getStartTime();\r\n Time endTime = event.getEndTime();\r\n\r\n int duration = CalendarMath.num5MinuteIncrementsBetween(startTime, endTime);\r\n\r\n HBox eventPane = new HBox();\r\n\r\n eventPane.maxHeightProperty().bind(dayColumn.heightProperty());\r\n eventPane.prefWidthProperty().bind(dayColumn.widthProperty());\r\n\r\n String colorString = event.getColor().rgbString();\r\n\r\n eventPane.setStyle(\"-fx-background-color: \" + colorString\r\n + \";-fx-border-color: floralwhite;-fx-border-width: 2\");\r\n\r\n String startTimeString = event.getStartTime().simpleFormat();\r\n String endTimeString = event.getEndTime().simpleFormat();\r\n String timeString = String.format(\"%s - %s\", startTimeString, endTimeString);\r\n String eventInfo;\r\n\r\n Label eventLabel = new Label();\r\n eventLabel.setFont(Font.font(\"Century Gothic\", 10));\r\n eventLabel.setPadding(new Insets(0, 0, 0, 6));\r\n\r\n Label titleLabel = new Label(event.getTitle());\r\n titleLabel.setPadding(new Insets(0, 0, 0, 6));\r\n titleLabel.setFont(Font.font(\"Century Gothic\", FontWeight.BOLD, 10));\r\n\r\n if (duration > 9) {\r\n VBox eventLabelBox = new VBox();\r\n eventInfo = timeString + \"\\n\" + event.getDescription();\r\n eventLabel.setText(eventInfo);\r\n\r\n eventLabelBox.getChildren().addAll(titleLabel, eventLabel);\r\n eventPane.getChildren().add(eventLabelBox);\r\n } else {\r\n HBox eventLabelBox = new HBox();\r\n eventInfo = \"\\t\" + timeString;\r\n eventLabel.setText(eventInfo);\r\n\r\n eventLabelBox.getChildren().addAll(titleLabel, eventLabel);\r\n eventPane.getChildren().add(eventLabelBox);\r\n }\r\n\r\n eventPane.setOnMouseClicked(e -> {\r\n if (e.getButton() == MouseButton.PRIMARY) {\r\n Stage editEventStage = new Stage();\r\n VBox eventEditor = new EditEventPopup(event, () -> this.features.updateCalendar(),\r\n eventToDelete -> this.features.deleteEvent(eventToDelete));\r\n Scene editEventScene = new Scene(eventEditor, 350, 350);\r\n editEventStage.setScene(editEventScene);\r\n editEventStage.initOwner(this.getScene().getWindow());\r\n editEventStage.initModality(Modality.WINDOW_MODAL);\r\n editEventStage.setTitle(\"Edit Event\");\r\n editEventStage.show();\r\n eventEditor.requestFocus();\r\n }\r\n });\r\n\r\n String toolTipString = String.format(\"%s\\n%s\\n%s\\n%s\", event.getTitle(),\r\n event.getDate().formattedDate(), timeString, event.getDescription());\r\n\r\n Tooltip eventToolTip = new Tooltip(toolTipString);\r\n eventToolTip.setShowDelay(new Duration(200));\r\n Tooltip.install(eventPane, eventToolTip);\r\n\r\n if (duration < 2) {\r\n duration = 2;\r\n }\r\n\r\n GridPane.setRowSpan(eventPane, duration);\r\n\r\n return eventPane;\r\n }", "@Override\n public void onDateSet(DatePicker view, int year, int monthOfYear, int dayOfMonth) { todo:\n // let tmp = after set stop time\n // if tmp time < start time, do nothing.\n //\n Calendar tmp = Calendar.getInstance();\n tmp.set(year, monthOfYear, dayOfMonth, EventListFragment.this.mStopSearchCalendar.get(Calendar.HOUR_OF_DAY), EventListFragment.this\n .mStopSearchCalendar.get(Calendar.MINUTE), 0);\n\n if (tmp.after(EventListFragment.this.mStartSearchCalendar) || tmp.equals(EventListFragment.this.mStartSearchCalendar)) {\n\n EventListFragment.this.mStopSearchCalendar.set(year, monthOfYear, dayOfMonth, EventListFragment.this.mStopSearchCalendar.get\n (Calendar.HOUR_OF_DAY), EventListFragment.this.mStopSearchCalendar.get(Calendar.MINUTE), 0);\n\n btnStopDate.setText(dateFormat.format(EventListFragment.this.mStopSearchCalendar.getTime()));\n\n }\n }", "java.util.Calendar getLastrun();", "private void updateDateAndTimeTextView(Calendar instance) {\n\t\tmCalendar = instance;\n\n\t\t// update the dateText view with the corresponding date\n\t\tbtUpdateDateAndHour.setText(android.text.format.DateFormat\n\t\t\t\t.getDateFormat(this).format(mCalendar.getTime())\n\t\t\t\t+ \" \"\n\t\t\t\t+ functions.getTimeFromDate(mCalendar.getTime()));\n\t}", "@Override\n public void onDateSet(DatePicker arg0,\n int arg1, int arg2, int arg3) {\n startshowDate(arg1, arg2+1, arg3);\n //endshowDate(arg1, arg2+1, arg3);\n }", "private void advanceTime() {\r\n myCurrentTimeLabel.setText(DateFormat.getDateTimeInstance().format(new Date()));\r\n }", "Date PrevEvent(Date d);", "@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tcalendar.movePrevYear();\n\t\t\t\tdisplayCalendar();\n\t\t\t}", "public void setupCalendar() { \n\t\tcal = whenIsIt();\n\t\tLocale here = Locale.US;\n\t\tthisMonth = cal.getDisplayName(2, Calendar.LONG_STANDALONE, here);\n\t\tdate = cal.get(5); //lesson learned: if it's a number do this\n\t\t//ADD CODE FOR ORDINALS HERE\n\t\tyear = cal.get(1);\n\t\tthisHour = cal.get(10);\n\t\tthisMinute = cal.get(12);\n\t\tthisSecond = cal.get(13);\n\t\tamPm = cal.getDisplayName(9, Calendar.SHORT, here);\n\t\tthisDay = thisMonth +\" \"+ addOrdinal(date) + \", \" + year;\n\t\tcurrentTime = fix.format(thisHour) + \":\" + fix.format(thisMinute) + \":\" + fix.format(thisSecond) + \" \" + amPm;\n\t}", "private void setupCalendarView() {\n // Set the default date shown to be today\n DateFormat df = new SimpleDateFormat(\"dd/MM/yyyy\", Locale.UK);\n String todayDate = df.format(Calendar.getInstance().getTime());\n\n mTextView.setText(todayDate);\n }", "@Override\n\tpublic void commitCalendar(CalendarEdit edit) {\n\t\t\n\t}", "private void onPressCalendarEntry() {\r\n if (event.hasCalendarEntry())\r\n onPressRemoveFromCalendar();\r\n else\r\n onPressAddToCalendar();\r\n }", "@Override public void adjustmentValueChanged(AdjustmentEvent e)\n{\n int v = e.getValue();\n last_user = v;\n if (v >= getMaximum()) at_end = true;\n else at_end = false;\n\n for_bubble.getExecution().setCurrentTime(v);\n}", "private void updateDisplay() {\r\n date1.setText(\r\n new StringBuilder()\r\n // Month is 0 based so add 1\r\n .append(pDay).append(\"/\")\r\n .append(pMonth + 1).append(\"/\")\r\n .append(pYear).append(\" \"));\r\n }", "public void setActivationTime(java.util.Calendar param){\n localActivationTimeTracker = true;\n \n this.localActivationTime=param;\n \n\n }", "private void updateStartTime() {\n Date date = startTimeCalendar.getTime();\n String startTime = new SimpleDateFormat(\"HH:mm\").format(date);\n startHourText.setText(startTime);\n }", "@Override\n public void onDateSet(DatePicker view, int year, int monthOfYear,\n int dayOfMonth) {\n currentDate.set(Calendar.YEAR, year);\n currentDate.set(Calendar.MONTH, monthOfYear);\n currentDate.set(Calendar.DAY_OF_MONTH, dayOfMonth);\n //updateLabel();\n SimpleDateFormat sdf1 = new SimpleDateFormat(DATE_FORMAT_calender);\n Log.e(\"data123456789\",sdf1.format(currentDate.getTime()));\n updateAttendanceDetails();\n }", "@Override\n public void refreshContent(Entry e, Highlight highlight) {\n tvContent.setText(getString(R.string.imc) + String.format(Locale.getDefault(),\n \"%.1f\", highlight.getY())); // set the entry-value as the display text\n Calendar calendar = Calendar.getInstance();\n calendar.add(Calendar.DATE, (int) highlight.getX());\n Date now = new Date();\n Interval interval = new Interval(now.getTime(), calendar.getTime().getTime());\n Period p = interval.toPeriod(PeriodType.yearMonthDay());\n age.setText(getString(R.string.age) + p.getYears() + getString(R.string.years)\n + p.getMonths() + getString(R.string.months) + p.getDays() + getString(R.string.days));\n }", "public void updateCalendarType() {\n\t\tthis.calType = (this.jdCO <= this.jd ? SE_GREG_CAL : SE_JUL_CAL);\n\t\t;\n\t}", "@Override\n public void onDateSet(DatePicker view, int year, int monthOfYear,\n int dayOfMonth) {\n myCalendar.set(Calendar.YEAR, year);\n myCalendar.set(Calendar.MONTH, monthOfYear);\n myCalendar.set(Calendar.DAY_OF_MONTH, dayOfMonth);\n myCalendar.set(Calendar.HOUR_OF_DAY, 23);\n myCalendar.set(Calendar.MINUTE, 59);\n mDate1 = myCalendar.getTime();\n updateLabel(date1);\n }", "public static void main(String[] args) {\n\n CalendarEvent b = new CalendarEvent(\"assignment2\",29,11,2014,\"14:00\",\"20:00\",\"Test1\");\n\n CalendarEvent c = new CalendarEvent(\"assignment3\",27,2,2010,\"2:00\",\"20:00\",\"Test2\");\n\n CalendarEvent d = new CalendarEvent(\"assignment4\",12,7,2013,\"14:00\",\"20:00\",\"Test3\");\n\n CalendarEvent e = new CalendarEvent(\"assignment5\",29,11,2014,\"12:00\",\"20:00\",\"Test4\");\n\n\n CalendarEvent l = new CalendarEvent(\"assignment1a\",30,9,2014,\"14:00\",\"20:00\",\"Test\");\n CalendarEvent f = new CalendarEvent(\"assignment1\",31,9,2014,\"14:00\",\"20:00\",\"Test\");\n CalendarEvent g = new CalendarEvent(\"assignment1\",21,9,2014,\"14:00\",\"20:00\",\"Test\");\n CalendarEvent h = new CalendarEvent(\"assignment1\",21,9,2014,\"14:00\",\"20:00\",\"Test\");\n CalendarEvent i = new CalendarEvent(\"assignment1\",29,9,2014,\"14:00\",\"20:00\",\"Test\");\n CalendarEvent j = new CalendarEvent(\"assignment1\",18,9,2014,\"14:00\",\"20:00\",\"Test\");\n CalendarEvent k = new CalendarEvent(\"assignment1\",1,9,2014,\"14:00\",\"20:00\",\"Test\");\n\n \n \n \n ArrayList<CalendarEvent> listOfEvents = new ArrayList<CalendarEvent>();\n // listOfEvents.add(a);\n listOfEvents.add(b);\n listOfEvents.add(c);\n listOfEvents.add(d);\n listOfEvents.add(e);\n\n Display myDisObject = new Display();\n //myDisObject.displayAssignments(listOfEvents);\n\n \n \n listOfEvents.add(f);\n listOfEvents.add(g);\n listOfEvents.add(h);\n listOfEvents.add(i);\n listOfEvents.add(j);\n listOfEvents.add(k);\n listOfEvents.add(l);\n \n //myDisObject.displayAssignments(listOfEvents);\n myDisObject.displayMonth(10, listOfEvents);\n }", "private void reactMain_region_digitalwatch_Display_refreshing_RefreshingTime_timeView_hideAlarm() {\n\t\tif (sCIButtons.topLeftPressed) {\n\t\t\tswitch (stateVector[1]) {\n\t\t\t\tcase main_region_digitalwatch_Display_refreshing_RefreshingTime_timeView_showAlarm :\n\t\t\t\t\tnextStateIndex = 1;\n\t\t\t\t\tstateVector[1] = State.$NullState$;\n\n\t\t\t\t\ttimer.unsetTimer(this, 1);\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase main_region_digitalwatch_Display_refreshing_RefreshingTime_timeView_hideAlarm :\n\t\t\t\t\tnextStateIndex = 1;\n\t\t\t\t\tstateVector[1] = State.$NullState$;\n\n\t\t\t\t\ttimer.unsetTimer(this, 2);\n\t\t\t\t\tbreak;\n\n\t\t\t\tdefault :\n\t\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\ttimer.setTimer(this, 3, 250, false);\n\n\t\t\tsCIDisplay.operationCallback.refreshChronoDisplay();\n\n\t\t\tsCILogicUnit.operationCallback.getChrono();\n\n\t\t\tnextStateIndex = 1;\n\t\t\tstateVector[1] = State.main_region_digitalwatch_Display_refreshing_RefreshingChrono;\n\t\t} else {\n\t\t\tif (sCIButtons.bottomLeftPressed) {\n\t\t\t\tnextStateIndex = 1;\n\t\t\t\tstateVector[1] = State.$NullState$;\n\n\t\t\t\ttimer.unsetTimer(this, 2);\n\n\t\t\t\ttimer.setTimer(this, 1, 1 * 1000, false);\n\n\t\t\t\tsCIDisplay.operationCallback.refreshTimeDisplay();\n\n\t\t\t\tsCIDisplay.operationCallback.refreshDateDisplay();\n\n\t\t\t\tsCIDisplay.operationCallback.refreshAlarmDisplay();\n\n\t\t\t\tnextStateIndex = 1;\n\t\t\t\tstateVector[1] = State.main_region_digitalwatch_Display_refreshing_RefreshingTime_timeView_showAlarm;\n\t\t\t} else {\n\t\t\t\tif (timeEvents[2]) {\n\t\t\t\t\tnextStateIndex = 1;\n\t\t\t\t\tstateVector[1] = State.$NullState$;\n\n\t\t\t\t\ttimer.unsetTimer(this, 2);\n\n\t\t\t\t\ttimer.setTimer(this, 2, 1 * 1000, false);\n\n\t\t\t\t\tsCIDisplay.operationCallback.refreshTimeDisplay();\n\n\t\t\t\t\tsCIDisplay.operationCallback.refreshDateDisplay();\n\n\t\t\t\t\tnextStateIndex = 1;\n\t\t\t\t\tstateVector[1] = State.main_region_digitalwatch_Display_refreshing_RefreshingTime_timeView_hideAlarm;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "Date getEventFiredAt();", "public void setDate(Date newDate) {\r\n int oldMonthValue = getMonth();\r\n int oldYearValue = getYear();\r\n Date oldDate = getDate();\r\n calendarTable.getCalendarModel().setDate(newDate);\r\n updateControlsFromTable();\r\n // fire property change\r\n int newMonthValue = getMonth();\r\n if (oldMonthValue != newMonthValue) {\r\n firePropertyChange(MONTH_PROPERTY, oldMonthValue, newMonthValue);\r\n }\r\n int newYearValue = getYear();\r\n if (oldYearValue != newYearValue) {\r\n firePropertyChange(YEAR_PROPERTY, oldYearValue, newYearValue);\r\n }\r\n if (oldDate.getTime() != newDate.getTime()) {\r\n firePropertyChange(DATE_PROPERTY, oldDate, newDate);\r\n }\r\n \r\n // clear selection when changing the month in view\r\n if (oldMonthValue != newMonthValue && oldYearValue != newYearValue) {\r\n calendarTable.getSelectionModel().clearSelection();\r\n }\r\n int rowCount = calendarTable.getRowCount();\r\n int columnCount= calendarTable.getColumnCount();\r\n \tCalendar cal = Calendar.getInstance();\r\n \tcal.setTime(newDate);\r\n \t\r\n for(int contOne = 0; contOne < rowCount; contOne++)\r\n {\r\n for(int contTwo = 0; contTwo < columnCount; contTwo++)\r\n {\r\n \tif( (\"\" + calendarTable.getModel().getValueAt(contOne, contTwo)).equals(\"\" + cal.get(Calendar.DAY_OF_MONTH) ))\r\n \t{\r\n \t\tcalendarTable.setRowSelectionInterval(contOne, contOne);\r\n \t\tcalendarTable.setColumnSelectionInterval(contTwo, contTwo);\r\n \t\tcontOne = rowCount;\r\n \t\tcontTwo = columnCount;\r\n \t}\r\n }\r\n }\r\n \r\n }", "private void updateDisplay() {\n btnScheduleTime.setText(new StringBuilder().append(PHHelper.pad(mHour))\n .append(\":\").append(PHHelper.pad(mMinute)));\n }", "public void setEventCreated() {\n Date now = new Date();\n this.eventCreated = now;\n }", "private void notifyScrollListeners() {\n final Calendar oldFirstVisibleDay = viewState.getFirstVisibleDay();\n final Calendar today = today();\n\n Calendar firstVisibleDay = (Calendar) today.clone();\n Calendar lastVisibleDay = (Calendar) today.clone();\n\n final float totalDayWidth = config.getTotalDayWidth();\n final int delta = (int) round(ceil(drawConfig.currentOrigin.x / totalDayWidth)) * -1;\n\n firstVisibleDay.add(DATE, delta);\n lastVisibleDay.add(DATE, config.numberOfVisibleDays - 1 + delta);\n\n viewState.setFirstVisibleDay(firstVisibleDay);\n viewState.setLastVisibleDay(lastVisibleDay);\n\n final boolean hasFirstVisibleDayChanged = !firstVisibleDay.equals(oldFirstVisibleDay);\n if (hasFirstVisibleDayChanged && getScrollListener() != null) {\n getScrollListener().onFirstVisibleDayChanged(firstVisibleDay, oldFirstVisibleDay);\n }\n }", "@Override\n public void onDateSet(DatePicker view, int year, int monthOfYear,\n int dayOfMonth) {\n myCalendar.set(Calendar.YEAR, year);\n myCalendar.set(Calendar.MONTH, monthOfYear);\n myCalendar.set(Calendar.DAY_OF_MONTH, dayOfMonth);\n myCalendar.set(Calendar.HOUR_OF_DAY, 23);\n myCalendar.set(Calendar.MINUTE, 59);\n mDate2 = myCalendar.getTime();\n updateLabel(date2);\n }", "@Test\n public void testStartDateTimeZoneChange() throws Exception {\n EventData deltaEvent = prepareDeltaEvent(createdEvent);\n Date date = DateTimeUtil.parseDateTime(createdEvent.getStartDate());\n deltaEvent.setStartDate(DateTimeUtil.getDateTime(\"Europe/Isle_of_Man\", date.getTime()));\n\n updateEventAsOrganizer(deltaEvent);\n\n /*\n * Check that time zone of start date has been updated\n * Note: Due internal handling of a shortened Event, no rescheduling will happen. Thus the participant status is\n * unchanged. For details see com.openexchange.chronos.impl.Utils.coversDifferentTimePeriod(Event, Event) or\n * http://documentation.open-xchange.com/latest/middleware/calendar/implementation_details.html#reset-of-participation-status\n */\n AnalyzeResponse analyzeResponse = receiveUpdateAsAttendee(PartStat.ACCEPTED, CustomConsumers.ACTIONS);\n AnalysisChange change = assertSingleChange(analyzeResponse);\n assertSingleDescription(change, \"The timezone of the appointment's start date was changed.\");\n }", "private void refreshDateEntryOfTheMarket2(Calendar dateEntryOfTheMarket2){\n mEntryDate2.setText(displayDateFormatter.format(dateEntryOfTheMarket2.getTime()));\n }", "private void updateDateDisplay() {\n\t\tStringBuilder date = new StringBuilder()\n\t\t\t\t// Month is 0 based so add 1\n\t\t\t\t.append(mMonth + 1).append(\"-\").append(mDay).append(\"-\")\n\t\t\t\t.append(mYear).append(\" \");\n\n\t\tchangeDateButton.setText(date);\t\n\t}", "@FXML\n private void handleChangeDatesButton(ActionEvent e) {\n updateView();\n }", "private JPanel setCenterPanel() {\n mainDisplay = new JPanel();\n mainDisplay.setLayout(new BoxLayout(mainDisplay, Y_AXIS));\n\n //Label to display selected view\n selectedView = new JLabel();\n selectedView.setFont(new Font(\"SansSerif\", Font.PLAIN, 18));\n selectedView.setForeground(Color.GRAY);\n selectedView.setAlignmentX(Component.LEFT_ALIGNMENT);\n selectedView.setHorizontalTextPosition(SwingConstants.LEFT);\n\n //label to display either day view date ot month view month\n displayDate = new JLabel();\n displayDate.setFont(new Font(\"SansSerif\", Font.BOLD, 26));\n displayDate.setAlignmentX(Component.LEFT_ALIGNMENT);\n\n //label to disaply the day of week for day view\n displayDay = new JLabel();\n displayDay.setFont(new Font(\"SansSerif\", Font.PLAIN, 20));\n displayDay.setAlignmentX(Component.LEFT_ALIGNMENT);\n\n\n //adding them to the main panel\n mainDisplay.add(Box.createVerticalStrut(5));\n mainDisplay.add(selectedView);\n mainDisplay.add(Box.createVerticalStrut(9));\n mainDisplay.add(displayDate);\n mainDisplay.add(Box.createVerticalStrut(5));\n mainDisplay.add(displayDay);\n\n dayViewScrollPane = new JScrollPane(dayViewComponent);\n dayViewScrollPane.setPreferredSize(dayViewComponent.getMinimumSize());\n dayViewScrollPane.getVerticalScrollBar().setUnitIncrement(10);\n dayViewScrollPane.setBorder(null);\n\n mainDisplay.add(dayViewScrollPane);\n mainDisplay.setBackground(Color.WHITE);\n\n //setting default day view text in the labels\n updateDateDisplay();\n\n return mainDisplay;\n }", "@Override\n public void onDateSet(DatePicker view, int year, int monthOfYear, int dayOfMonth) {\n myCalendar.set(Calendar.YEAR, year);\n myCalendar.set(Calendar.MONTH, monthOfYear);\n myCalendar.set(Calendar.DAY_OF_MONTH, dayOfMonth);\n updateLabel();\n\n\n }", "@Override\r\n protected void onCreate(Bundle savedInstanceState) {\r\n super.onCreate(savedInstanceState);\r\n setContentView(R.layout.activity_kalendar);\r\n\r\n kalendar = (CompactCalendarView) findViewById(R.id.compactcalendar_view);\r\n kalendar.setUseThreeLetterAbbreviation(true);\r\n\r\n Event proba = new Event(Color.BLUE,1496847600,\"Krule casti\");\r\n kalendar.addEvent(proba);\r\n\r\n kalendar.setListener(new CompactCalendarView.CompactCalendarViewListener() {\r\n @Override\r\n public void onDayClick(Date dateClicked) {\r\n Context context = getApplicationContext();\r\n\r\n //if(dateClicked.toString().compareTo(\"Wed\")){}\r\n Toast.makeText(context,\"Nece\",Toast.LENGTH_LONG).show();\r\n }\r\n\r\n @Override\r\n public void onMonthScroll(Date firstDayOfNewMonth) {\r\n\r\n }\r\n });\r\n }", "@Override\n\tpublic void IsAtCentre(boolean b, Time time) {\n\t\t\n\t}", "@Override\n public void onDateSet(DatePicker view, int year,\n int monthOfYear, int dayOfMonth) {\n\n autoD8.setText(dayOfMonth + \" \" + monthString(monthOfYear + 1) + \" \" + year);\n\n dialogueCal.set(Calendar.DAY_OF_MONTH, dayOfMonth);\n dialogueCal.set(Calendar.YEAR, year);\n dialogueCal.set(Calendar.MONTH, monthOfYear);\n timeAndDate = dialogueCal.getTimeInMillis();\n\n }", "@Test\n public void testStartDateChange() throws Exception {\n EventData deltaEvent = prepareDeltaEvent(createdEvent);\n Calendar date = Calendar.getInstance();\n date.setTimeInMillis(date.getTimeInMillis() + TimeUnit.HOURS.toMillis(1));\n deltaEvent.setStartDate(DateTimeUtil.getDateTime(date));\n\n updateEventAsOrganizer(deltaEvent);\n\n /*\n * Check that start date has been updated\n * Note: Due internal handling of a shortened Event, no rescheduling will happen. Thus the participant status is\n * unchanged. For details see com.openexchange.chronos.impl.Utils.coversDifferentTimePeriod(Event, Event) or\n * http://documentation.open-xchange.com/latest/middleware/calendar/implementation_details.html#reset-of-participation-status\n */\n AnalyzeResponse analyzeResponse = receiveUpdateAsAttendee(PartStat.ACCEPTED, CustomConsumers.ACTIONS);\n AnalysisChange change = assertSingleChange(analyzeResponse);\n assertSingleDescription(change, \"The appointment was rescheduled.\");\n }", "@Override\n\tprotected void onEventComming(EventCenter eventCenter) {\n\t}", "public void agendaView(Date f, Date t, GregorianCalendar c) {\n\t\tselectedView.printAgendaView(f, t, c);\n\t}", "private void setCurrentDay() {\n Calendar c = Calendar.getInstance();\n\n year = c.get(Calendar.YEAR);\n month = c.get(Calendar.MONTH);\n day = c.get(Calendar.DAY_OF_MONTH);\n hour = c.get(Calendar.HOUR_OF_DAY);\n minute = c.get(Calendar.MINUTE);\n }", "@Override\n\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\tgetTimeView();\n\t\t\t\t}", "public void setProvisionTime(java.util.Calendar param){\n localProvisionTimeTracker = true;\n \n this.localProvisionTime=param;\n \n\n }", "private static int addDayTime(Container pane, int leftOffset){\r\n ArrayList<LocalTime> time = new ArrayList<>();\r\n int topOffset = 0;\r\n \r\n for(MyButton b : mylist.getAllButtons()){\r\n if(!time.contains(b.block.time)){\r\n time.add(b.block.time);\r\n }\r\n }\r\n \r\n for(LocalTime t: time){\r\n Boolean exists = false;\r\n for(JLabel lab: timeLabels){\r\n if(lab.getText().equals(t.toString())){\r\n exists = true;\r\n break;\r\n }\r\n }\r\n if(!exists){\r\n int offset = (int)(((pane.getPreferredSize().getWidth() - leftOffset) / (double)totalMinutes) * \r\n (t.getHour() * 60 + t.getMinute() - firstLectureOffset));\r\n JLabel l = new JLabel(t.toString());\r\n timeLabels.add(l);\r\n pane.add(l);\r\n Dimension size = l.getPreferredSize();\r\n l.setBounds(offset + leftOffset, 0, size.width, size.height);\r\n if(size.height > topOffset){\r\n topOffset = size.height;\r\n }\r\n } \r\n }\r\n \r\n return topOffset;\r\n }", "public void dateChange(SelectEvent event) {\n\t\tDate date = (Date) event.getObject();\n\t\tisFechaCorrecta(date, event.getComponent());\n\t}", "public void update() {\r\n setVisible(false);\r\n daySelector.paintCalendarPane(currentDate);\r\n if (showMonthSelector) {\r\n String yearString = \" \" + currentDate.get(java.util.Calendar.YEAR);\r\n monthSelector.setMonthName(getMonthSelectorStyle().getMonthName(\r\n currentDate.get(java.util.Calendar.MONTH)) + yearString);\r\n }\r\n setVisible(true);\r\n }", "@Override\n\tpublic Calendar getInitialDate() {\n\t\treturn Calendar.getInstance();\n\t}", "public void changeDate(GregorianCalendar c) {\n\t\tmonth.printCalendar(c);\n\t\tselectedView.printView(c);\n\t}", "@Override\n public void onDateSet(DatePicker view, int year, int monthOfYear,\n int dayOfMonth) {\n trigger.getStarttime().set(Calendar.YEAR, year);\n trigger.getStarttime().set(Calendar.MONTH, monthOfYear);\n trigger.getStarttime().set(Calendar.DAY_OF_MONTH, dayOfMonth);\n updateStartDate();\n }", "public static void updateTimeButtonClicked() {\n Occasion occasion = tableHoliday.getSelectionModel().getSelectedItem();\n\n Alert alert = new Alert(Alert.AlertType.INFORMATION);\n alert.setTitle(\"Information Dialog\");\n alert.setHeaderText(null);\n String success = OccasionCommunication.updateOccasion(occasion.getId(), occasion.getDate(), occasion.getOpenTime(),\n occasion.getCloseTime(), occasion.getBuilding().getId());\n if (success.equals(\"Successful\")) {\n alert.hide();\n } else {\n alert.setContentText(success);\n alert.showAndWait();\n }\n }", "@Override\n\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\tDate date=new Date();\n\t\t\tDateFormat timeFormat=new SimpleDateFormat(\"HH:mm:ss\");\n\t\t\tString time=timeFormat.format(date);\n\t\t\tceas.setText(\"Ora curenta: \"+time);\n\t\t}", "private void updateLabel() {\n String myFormat = \"yyyy-MM-dd\"; //In which you need put here\n SimpleDateFormat sdf = new SimpleDateFormat(myFormat, Locale.UK);\n\n serviceDate = sdf.format(myCalendar.getTime());\n callTimeSlotService();\n }", "@Override()\n public void update() {\n showSeparator(' ');\n \n // Update time display\n showTime(alarmTime);\n \n // Clear weekday Selector\n for(int i = 0; i < DAYS.length; i++) {\n clock.getDigit(2).setText(i+2, DAYS[i]);\n }\n // Update weekday selector\n String str;\n for(int i = 0; i < DAYS.length; i++){\n str = DAYS[i];\n if(days[i]){\n str = \">\"+DAYS[i]+\"<\";\n }\n clock.getDigit(2).setText(i+2,str); \n }\n String activeText = alarm.active ? \"Disable\" : \"Enable\";\n clock.getDigit(2).setText(10, activeText);\n }", "@Override\n public void onTimeSet(TimePicker timePicker, int hourOfDay, int minute) {\n\n Log.d(TAG, calendar.getSelectedDate().getDay() + \"\");\n Log.d(TAG, new CalendarDay().getDay() + \"\");\n\n mCalendar.set(Calendar.YEAR, calendar.getSelectedDate().getYear());\n mCalendar.set(Calendar.MONTH, calendar.getSelectedDate().getMonth());\n mCalendar.set(Calendar.DAY_OF_MONTH, calendar.getSelectedDate().getDay());\n mCalendar.set(Calendar.HOUR_OF_DAY, hourOfDay /*+ (calendar.getSelectedDate().getDay() - new CalendarDay().getDay()) * 24*/);\n mCalendar.set(Calendar.MINUTE, minute);\n mCalendar.set(Calendar.SECOND, 0);\n\n String time = DateFormat.getTimeInstance(DateFormat.SHORT).format(mCalendar.getTime());\n dateReminder.setText(time);\n Log.d(\"MainActivity\", \"Selected time is \" + time);\n timeInMillis = mCalendar.getTimeInMillis();\n }" ]
[ "0.6046173", "0.6017573", "0.57252747", "0.5688353", "0.56569946", "0.56533706", "0.56050706", "0.5583139", "0.55766815", "0.556679", "0.55519897", "0.5538187", "0.5514028", "0.54778874", "0.5475867", "0.5460604", "0.54474115", "0.543266", "0.542551", "0.5420546", "0.54078656", "0.5393056", "0.5379055", "0.53773034", "0.53675485", "0.5366084", "0.53481495", "0.53470016", "0.5338745", "0.53339595", "0.5333712", "0.53327316", "0.5330112", "0.53288615", "0.5327671", "0.5325394", "0.53204477", "0.5313783", "0.5302248", "0.5286351", "0.5278887", "0.527275", "0.5268878", "0.525987", "0.525183", "0.5251373", "0.5251223", "0.5247994", "0.5239579", "0.52376735", "0.52369756", "0.523683", "0.52263826", "0.52206993", "0.5200416", "0.51979923", "0.5191667", "0.51864594", "0.51813287", "0.51805305", "0.51775295", "0.5175266", "0.51646304", "0.5160677", "0.51571393", "0.51550746", "0.51534736", "0.51477695", "0.5140107", "0.5139685", "0.5136323", "0.51347923", "0.51335216", "0.5132915", "0.5129339", "0.51282334", "0.51167893", "0.51163656", "0.5109455", "0.51068515", "0.5103455", "0.5095292", "0.5091412", "0.5091196", "0.50897133", "0.50870126", "0.5086716", "0.50861007", "0.5085421", "0.5084919", "0.5075564", "0.50737363", "0.50670594", "0.5065057", "0.50635284", "0.5060782", "0.50524145", "0.5049998", "0.5048128", "0.50467443" ]
0.68017083
0
Calendar will display the period containing the specified LocalDateTime
@Subscribe private void handleJumpToDateTimeEvent(JumpToDateTimeEvent event) { logger.info(LogsCenter.getEventHandlingLogMessage(event)); setDisplayedDateTime(event.targetLocalDateTime); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setDateTime(java.util.Calendar param) {\n this.localDateTime = param;\n }", "public LocalDateTime getEndDate();", "List<Employee> findByJoiningDateBetween(LocalDateTime localDateTime, LocalDateTime localDateTime2);", "public LocalDateTime getStartDate();", "public boolean isDuring(LocalDateTime localDateTime) {\n return (localDateTime.isAfter(startTime.get()) || localDateTime.isEqual(startTime.get()))\n && (localDateTime.isBefore(endTime.get()) || localDateTime.isEqual(endTime.get()));\n }", "void getCurrentPeriodo();", "List<BookingSlot> getSlotsByDateTime(LocalDateTime dateTime);", "@Override // java.time.chrono.Chronology\n public ChronoLocalDateTime<MinguoDate> localDateTime(TemporalAccessor temporal) {\n return super.localDateTime(temporal);\n }", "public static void testPeriod() {\n LocalDate date1 = LocalDate.now();\n System.out.println(\"Current date: \" + date1);\n\n //add 1 month to the current date\n LocalDate date2 = date1.plus(1, ChronoUnit.MONTHS);\n System.out.println(\"Next month: \" + date2);\n\n Period period = Period.between(date2, date1);\n System.out.println(\"Period: \" + period);\n }", "public void setFechaFacturado(java.util.Calendar param){\n \n this.localFechaFacturado=param;\n \n\n }", "public String getInDateTimeRangeToString(LocalDateTime start, LocalDateTime end) {\n List<FoodEntry> entriesInRange = FoodListManager.filterListByDate(foodEntries, start, end);\n return FoodListManager.convertListToString(entriesInRange);\n }", "@Test\n void deve_retornar_o_periodo_first_period_in() {\n List<LocalTime> localTimes = new ArrayList<>();\n TimeCourseEnum response = timeService.addPeriod(localTimes);\n Assert.assertEquals(TimeCourseEnum.FIRST_PERIOD_IN, response);\n }", "public TimePeriod getPeriod();", "org.hl7.fhir.Period getAppliesPeriod();", "private DateTime goodLocalDateTimeUse() {\n LocalDateTime ldt = new LocalDateTime(2020, 6, 2, 8, 0, 0, 0);\n return new DateTime(ldt.getYear(), ldt.getMonthOfYear(), ldt.getDayOfYear(), ldt.getHourOfDay(),\n ldt.getMinuteOfHour(), ldt.getSecondOfMinute(), ldt.getMillisOfSecond(),\n DateTimeZone.forID(\"America/New_York\"))\n .toDateTime(DateTimeZone.forID(\"America/Los_Angeles\"));\n\n }", "@Nullable String getCollectionPeriod();", "public java.util.Calendar getFechaSolicitud(){\n return localFechaSolicitud;\n }", "public void period() {\n\t\tPeriod annually = Period.ofYears(1);\n\t\tPeriod quarterly = Period.ofMonths(3);\n\t\tPeriod everyThreeWeeks = Period.ofWeeks(3);\n\t\tPeriod everyOtherDay = Period.ofDays(2);\n\t\tPeriod everyYearAndAWeek = Period.of(1, 0, 7);\n\t\tLocalDate date = LocalDate.of(2014, Month.JANUARY, 20);\n\t\tdate = date.plus(annually);\n\t\tSystem.out.println(date);\n\t\tSystem.out.println(Period.of(0, 20, 47)); // P20M47D\n\t\tSystem.out.println(Period.of(2, 20, 47)); // P2Y20M47D\n\t}", "@Query(\"FROM Consulta c WHERE c.fecha BETWEEN :fechaConsulta AND :fechaSgte\")\n\tList<Consulta> buscarFecha(@Param(\"fechaConsulta\") LocalDateTime fechaConsulta,@Param(\"fechaSgte\") LocalDateTime fechaSgte);", "@Query(nativeQuery = true, value = \"select * from vamus.eventos where \" +\n \"ini_evento>=:inicio and fim_evento<=:fim\")\n List<EventoEntity> findByDate(@Param(\"inicio\") LocalDateTime ini,\n @Param(\"fim\") LocalDateTime fim);", "public java.util.Calendar getDateTime() {\n return localDateTime;\n }", "public LocalDateTime getLocalDateTime() {\n return this.datetime;\n }", "private void makeLocalCalendar() {\n\t\t// TODO Auto-generated method stub\n\t\tContentValues values = new ContentValues();\n\t\tvalues.put(Calendars.ACCOUNT_NAME, PATIENT_ACCOUNT_NAME);\n\t\tvalues.put(Calendars.ACCOUNT_TYPE, CalendarContract.ACCOUNT_TYPE_LOCAL);\n\t\tvalues.put(Calendars.NAME, PATIENT_NAME);\n\t\tvalues.put(Calendars.CALENDAR_DISPLAY_NAME, PATIENT_NAME);\n\t\tvalues.put(Calendars.CALENDAR_COLOR, Color.BLACK);\n\t\tvalues.put(Calendars.CALENDAR_ACCESS_LEVEL, Calendars.CAL_ACCESS_OWNER);\n\t\tvalues.put(Calendars.OWNER_ACCOUNT, PATIENT_EMAIL);\n\t\tvalues.put(Calendars.CALENDAR_TIME_ZONE, TimeZone.getAvailableIDs()\n\t\t\t\t.toString());\n\t\tvalues.put(Calendars.SYNC_EVENTS, 1);\n\n\t\tUri.Builder builder = CalendarContract.Calendars.CONTENT_URI\n\t\t\t\t.buildUpon();\n\t\tbuilder.appendQueryParameter(Calendars.ACCOUNT_NAME,\n\t\t\t\t\"com.grokkingandroid\");\n\t\tbuilder.appendQueryParameter(Calendars.ACCOUNT_TYPE,\n\t\t\t\tCalendarContract.ACCOUNT_TYPE_LOCAL);\n\t\tbuilder.appendQueryParameter(CalendarContract.CALLER_IS_SYNCADAPTER,\n\t\t\t\t\"true\");\n\n\t\tUri uri = getContentResolver().insert(builder.build(), values);\n\n\t}", "public LocalDateTime getBy() {\n return by;\n }", "public void setFechaSolicitud(java.util.Calendar param){\n \n this.localFechaSolicitud=param;\n \n\n }", "@Override\n public ArrayList<Meal> findMealsByDate(LocalDateTime dateTime) {\n ArrayList<Meal> meals = new ArrayList<Meal>();\n// SimpleDateFormat formatter = new SimpleDateFormat(\"yyyyMMdd\");\n// _context.meals.stream()\n// .forEach(meal -> {\n// if (formatter.format(meal.getDateTime()).equals(formatter.format(dateTime)))\n// meals.add(meal);\n// });\n return meals;\n }", "public LocalDateTime getDateTime() {\n return dateTime;\n }", "public LocalDateTime getStartDate() {\n return startDate;\n }", "public LocalDateTime getInicio() {\n\t\treturn this.inicio;\n\t}", "public java.util.Calendar getFechaFacturado(){\n return localFechaFacturado;\n }", "public static void main(String[] args) {\n LocalDateTime localDateTime = LocalDateTime.of(1995, Month.MAY, 28, 12, 45);\n System.out.println(localDateTime);\n System.out.println(\"After 6 months : \"+localDateTime.plusMonths(6));\n System.out.println(\"Before 6 months : \"+localDateTime.minusMonths(6));\n\n //Similarly, plus days , minus days, plus weeks, minus weeks etc, a lot of methods are present\n }", "public static void main(String[] args) {\n\t\tLocalDate date1 = LocalDate.of(2020, Month.JANUARY, 20);\r\n\t\tLocalTime time = LocalTime.of(11, 12, 34); \r\n\t\tLocalDate date = LocalDate.of(2020, Month.JANUARY, 20);\r\n\t\tLocalDateTime dateTime = LocalDateTime.of(date1, time);\r\n\t\t DateTimeFormatter shortDateTime = DateTimeFormatter.ofLocalizedDate(FormatStyle.SHORT);\r\n\t // System.out.println(shortDateTime);\r\n\t System.out.println(shortDateTime.format(dateTime)); // 1/20/20 \r\n\t System.out.println(shortDateTime.format(date1)); // 1/20/20 \r\n\t DateTimeFormatter shortDateTime1 = DateTimeFormatter.ofLocalizedDate(FormatStyle.SHORT);\r\n\t System.out.println(dateTime.format(shortDateTime1)); \r\n\t System.out.println(date.format(shortDateTime1));\r\n\t DateTimeFormatter shortDateTime2 = DateTimeFormatter.ofLocalizedTime(FormatStyle.SHORT);\r\n\t /* System.out.println(time.format(shortDateTime1)); // UnsupportedTemporalTypeException\r\n\t System.out.println( shortDateTime1.format(time)); // UnsupportedTemporalTypeException\r\n\t */ System.out.println(time.format(shortDateTime2)); \r\n\t System.out.println( shortDateTime2.format(time));\r\n\t DateTimeFormatter shortF = DateTimeFormatter .ofLocalizedDateTime(FormatStyle.SHORT);\r\n\t DateTimeFormatter mediumF = DateTimeFormatter .ofLocalizedDateTime(FormatStyle.MEDIUM);\r\n\t System.out.println(shortF.format(dateTime)); // 1/20/20 11:12 AM \r\n\t System.out.println(mediumF.format(dateTime)); // Jan 20, 2020 11:12:34 AM\r\n\r\n\r\n\r\n\t}", "public String checkPaymentStatus(Calendar calendar, LocalDate localdate) {\n String status = \"\";\n System.out.println(\"policy day is: \" + calendar.get(Calendar.DAY_OF_MONTH));\n System.out.println(\"policy year is: \" + calendar.get(Calendar.YEAR));\n System.out.println(\"current year is: \" + localdate.getYear());\n if ((localdate.getMonthValue() < (calendar.get(Calendar.MONTH) + 1))) {\n status = \"LATE\";\n }\n if ((localdate.getMonthValue() > (calendar.get(Calendar.MONTH) + 1))) {\n status = \"ON TIME\";\n }\n return status;\n }", "private Predicate<DayFlight> getDay(LocalDateTime startDateTime) {\n return dayFlight -> dayFlight.getDay() == startDateTime.getDayOfMonth();\n }", "@Test\n void deve_retornar_o_periodo_first_period_out() {\n List<LocalTime> localTimes = Arrays.asList(LocalTime.parse(\"10:30:00\"));\n TimeCourseEnum response = timeService.addPeriod(localTimes);\n Assert.assertEquals(TimeCourseEnum.FIRST_PERIOD_OUT, response);\n }", "public abstract LocalDateTime getDeadline();", "public static LocalDateTime getStartOfDay(LocalDateTime dateTime) {\n return dateTime.withHour(0).withMinute(0).withSecond(0);\n }", "@Override\n public String toString(){\n \n return periodo;\n \n }", "public static void specificDateTime() {\n LocalDate date = LocalDate.of(1996, Month.JUNE, 07);\n LocalDate date2 = LocalDate.of(1996, 06, 07);\n System.out.println(\"Specific localDate: \" + date + \", \" + date2);\n\n LocalTime time = LocalTime.of(12, 05);\n // Can specify seconds and nano seconds\n LocalTime time2 = LocalTime.of(12, 05, 10, 10);\n System.out.println(\"Specific localTime: \" + time + \", \" + time2);\n\n // Can create localDateTime with all values or by combining a localDate and\n // localTime\n LocalDateTime dateTime = LocalDateTime.of(date, time);\n LocalDateTime dateTime2 = LocalDateTime.of(1996, Month.JUNE, 07, 12, 05, 10, 10);\n System.out.println(\"Specific localDateTime: \" + dateTime + \", \" + dateTime2);\n\n // Can create zonedDateTime with localDateTime and zoneID\n ZonedDateTime zonedDateTime = ZonedDateTime.of(dateTime, TimeZone.getDefault().toZoneId());\n // Can create with localDate, localTime and zoneID\n ZonedDateTime zonedDateTime2 = ZonedDateTime.of(date, time, TimeZone.getDefault().toZoneId());\n // Can with with all values specified, however no constructor for enum month and\n // must specify seconds and nano-seconds\n ZoneId zone = ZoneId.of(\"US/Eastern\");\n ZoneId defaultZone = TimeZone.getDefault().toZoneId();\n ZonedDateTime zonedDateTime3 = ZonedDateTime.of(1996, 06, 07, 12, 05, 10, 10, defaultZone);\n System.out.println();\n System.out.println(\"Specific Zoned DateTime:\");\n System.out.println(zonedDateTime);\n System.out.println(zonedDateTime2);\n System.out.println(zonedDateTime3);\n }", "public boolean contains(final LocalDateInterval localDateInterval) {\n return asInterval().contains(localDateInterval.asInterval());\n }", "double getPeriod();", "public static void main(String[] args) {\n LocalDate d = LocalDate.of(1989, Month.APRIL, 1);\r\n System.err.println(d);\r\n LocalTime lt = LocalTime.now();\r\n System.err.println(lt);\r\n }", "public static void main(String[] args) {\n\t\tLocalDate hoje = LocalDate.now();\n\t\tSystem.out.println(hoje);\n\t\t\n\t\t//Criando nova data\n\t\tLocalDate olimpiadas = LocalDate.of(2016, Month.JUNE, 5);\n\t\tSystem.out.println(olimpiadas);\n\t\t\n\t\t//Calculando diferenca de anos\n\t\tint anos = olimpiadas.getYear() - hoje.getYear();\n\t\tSystem.out.println(anos);\n\n\t\t//Demonstracao de imutabilidade\n\t\tolimpiadas.plusYears(4);\n\t\tSystem.out.println(olimpiadas);\n\t\t\n\t\tLocalDate proximasOlimpiadas = olimpiadas.plusYears(4);\n\t\tSystem.out.println(proximasOlimpiadas);\n\t\t\n\t\t//Periodo entre data de inicio e fim \n\t\tPeriod periodo = Period.between(hoje, olimpiadas);\n\t\tSystem.out.println(periodo);\n\n\t\t//Formata data \n\t\tDateTimeFormatter formataData = DateTimeFormatter.ofPattern(\"dd/MM/yyyy\");\n\t\tSystem.out.println(proximasOlimpiadas.format(formataData));\n\t\t\n\t\t//Craindo data e hora\n\t\tLocalDateTime agora = LocalDateTime.now();\n\t\tSystem.out.println(agora);\n\t\t\n\t\t//Formatando data e hora\n\t\t//Obs.: O formatado de data e hora nao pode ser usado para formata data.\n\t\tDateTimeFormatter formataDataComHoras = DateTimeFormatter.ofPattern(\"dd/MM/yyyy hh:mm\");\n\t\tSystem.out.println(agora.format(formataDataComHoras ));\n\t\t\n\t\tLocalTime intervalo = LocalTime.of(15, 30);\n\t\tSystem.out.println(intervalo);\n\t\t\n\t\t \n\t\t\n\t}", "public LocalDateTime getEndDate() {\n return endDate;\n }", "private DateTime goodLocalDateTimeUse2() {\n LocalDateTime ldt = new LocalDateTime(2020, 6, 2, 8, 0, 0, 0);\n return new DateTime(ldt.getYear(), ldt.getMonthOfYear(), ldt.getDayOfYear(), ldt.getHourOfDay(),\n ldt.getMinuteOfHour(), ldt.getSecondOfMinute(), ldt.getMillisOfSecond(),\n DateTimeZone.getDefault())\n .toDateTime(DateTimeZone.forID(\"America/Los_Angeles\"));\n\n }", "void displaySpecifiedDayList();", "int getPeriod();", "public String notificarEntrada(int localizador, LocalDateTime fechaEntrada, PuntoDeControl punto) {\n Paquete p = repositorioPaquete.buscar(localizador);\n if (p == null) {\n throw new LocalizadorNoExiste();\n }\n p.notificaEntrada(fechaEntrada, punto);\n repositorioPaquete.actualizarPaquete(p);\n return (fechaEntrada + punto.getNombre());\n }", "public LocalDateTime getDateTime() {\n return null;\n }", "Calendar occurredAt();", "public void setDatetime(LocalDateTime datetime){\n this.datetime = datetime;\n }", "private void updateLabel() {\n String myFormat = \"yyyy-MM-dd\"; //In which you need put here\n SimpleDateFormat sdf = new SimpleDateFormat(myFormat, Locale.UK);\n\n serviceDate = sdf.format(myCalendar.getTime());\n callTimeSlotService();\n }", "public String getPeriod() {\n return period;\n }", "public static void main(String[] args) {\n\t\tLocalDate localDate = LocalDate.now();\r\n\t\tSystem.out.println(\"Local Date : \" + localDate); // toString()\r\n\t\t\r\n\t\tLocalTime localTime = LocalTime.now();\r\n\t\tSystem.out.println(\"Local Time : \" + localTime);\r\n\t\t\r\n\t\t\r\n\t\tLocalDateTime localDateTime = LocalDateTime.now();\r\n\t\tSystem.out.println(\"Local Date Time : \" + localDateTime);\r\n\t}", "@Test\n\tpublic void testLocalDateTime() {\n\t\tfinal LocalDateTime referenceDate = LocalDateTime.of(2016, 1, 1,12, 34);\n\t\tfor(int i=0; i<1000; i+=2) {\n\t\t\tfor(int j=0; j<24*60*60; j+=7) {\n\t\t\t\tfinal LocalDateTime date = referenceDate.plusDays(i).plusSeconds(j);\n\n\t\t\t\tfinal double floatingPointDate = FloatingpointDate.getFloatingPointDateFromDate(referenceDate, date);\n\t\t\t\tfinal LocalDateTime dateFromFloat\t= FloatingpointDate.getDateFromFloatingPointDate(referenceDate, floatingPointDate);\n\n\t\t\t\tAssert.assertTrue(\"Roundtrip with date offset of \" + i + \" days \" + j + \" seconds.\", dateFromFloat.isEqual(date));\n\t\t\t}\n\t\t}\n\t}", "public interface Period {\n\n\tDate getStart();\n\n\tDate getEnd();\n}", "public Period getPeriod() {\n return period;\n }", "TemporalService accountingForTransmissionTime();", "public static void main(String[] args) {\n\n\t\t\n\t\tLocalDateTime Idt = LocalDateTime.now();\n\t\t\n\t\tSystem.out.println(Idt); //2021-03-19T23:06:48.913604300\n\t\tSystem.out.println(Idt.toString());//2021-03-19T23:06:48.913604300\n\t\t\n\t\tString time = Idt.toString();\n\t\t\n\t\tSystem.out.println(time.startsWith(\"2021\")); //true\n\t\t\n\t\t\n\t\t\n\t}", "public PeriodicSchedule getAccrualSchedule() {\n return accrualSchedule;\n }", "default LocalDateTime getLocalTime(int year, int month, int day) {\n return getLocalTime(year, month, day, 0, 0, 0);\n }", "Calendar registeredAt();", "org.apache.xmlbeans.XmlDateTime xgetSearchRecurrenceStart();", "@SuppressWarnings(\"unchecked\")\n public List<ConnectionMeterEvent> findConnectionMeterEventsForPeriod(LocalDate fromDate, LocalDate endDate) {\n StringBuilder queryString = new StringBuilder();\n queryString.append(\"SELECT cme FROM ConnectionMeterEvent cme \");\n queryString.append(\" WHERE cme.dateTime >= :fromDate \");\n // it is inclusive because i add a day to the endDate\n queryString.append(\" AND cme.dateTime < :endDate \");\n\n Query query = getEntityManager().createQuery(queryString.toString());\n query.setParameter(\"fromDate\", fromDate.toDateMidnight().toDateTime().toDate(), TemporalType.TIMESTAMP);\n query.setParameter(\"endDate\", endDate.plusDays(1).toDateMidnight().toDateTime().toDate(), TemporalType.TIMESTAMP);\n\n return query.getResultList();\n }", "public Map<String, List<TimePeriodModel>> getAllTimePeriods();", "public static void main(String[] args) {\n System.out.println(\"************\");\n System.out.println(\"Example01\");\n System.out.println(\"************\");\n System.out.println();\n System.out.print(\"100 days ago: \");\n System.out.println(LocalDate.now().plusDays(-100));\n System.out.print(\"Today: \");\n System.out.println(LocalDate.now());\n System.out.print(\"100 days later: \");\n System.out.println(LocalDate.now().plusDays(100));\n System.out.println();\n System.out.println();\n System.out.println();\n System.out.println(\"************\");\n System.out.println(\"Example02\");\n System.out.println(\"************\");\n System.out.println();\n \n Period period = Period.between(LocalDate.now(), LocalDate.of(LocalDate.now().getYear(), 12, 25));\n System.out.print(period.getMonths());\n System.out.print(\" Months \");\n System.out.print(period.getDays());\n System.out.print(\" Days to Cristmas!\");\n }", "boolean isSetAppliesPeriod();", "public static void main(String[] args) {\n LocalDate date = LocalDate.of(1986, 02, 12);\n LocalTime time = LocalTime.of(12, 30);\n LocalDateTime localDateTime = LocalDateTime.of(date, time);\n System.out.println(localDateTime);\n\n// Exercise 16\n String customizedDate = localDateTime.format(DateTimeFormatter.ofPattern(\"YYYY-MM-dd\"));\n System.out.println(customizedDate);\n LocalDate getDate = LocalDate.parse(customizedDate);\n System.out.println(getDate);\n String customizedTime = localDateTime.format(DateTimeFormatter.ofPattern(\"HH:mm\"));\n System.out.println(customizedTime);\n LocalTime getTime = LocalTime.parse(customizedTime);\n System.out.println(getTime);\n }", "public interface Fecha {\n\n public LocalDateTime getFecha();\n}", "public static void main(String[] args) {\n\n LocalDate now = LocalDate.now();\n\n System.out.println(now);\n\n LocalDate tomorrow = now.plus(Period.ofDays(1));\n\n System.out.println(tomorrow);\n\n tomorrow = now.plusDays(1);\n\n tomorrow = now.plus(1, ChronoUnit.DAYS);\n\n System.out.println(tomorrow);\n tomorrow = now.plus(1, ChronoUnit.MONTHS);\n\n System.out.println(tomorrow);\n\n System.out.println(now.getDayOfWeek());\n System.out.println(tomorrow);\n\n System.out.println(now.isAfter(tomorrow));\n System.out.println(now.isBefore(tomorrow));\n\n //LocalTime\n LocalTime currentTime = LocalTime.now();\n LocalTime nextHour = currentTime.plus(Duration.ofHours(1));\n\n nextHour = currentTime.plus(1, ChronoUnit.HOURS); // вернет новый локалтиме ДЛЯ + И -\n\n System.out.println(nextHour);\n\n nextHour = currentTime.plusHours(1);\n System.out.println(nextHour);\n\n // LocalDateTime\n LocalDateTime today = LocalDateTime.now();\n LocalDateTime todayParsed = LocalDateTime.parse(\"2021-03-02T12:26:24\");\n\n System.out.println(today);\n System.out.println(todayParsed);\n\n System.out.println(todayParsed.get(ChronoField.DAY_OF_YEAR));\n }", "default LocalDateTime getLocalTime(int hour, int minute) {\n return getLocalTime(2017, 1, 31, hour, minute);\n }", "default LocalDateTime getLocalTime(int year, int month, int day, int hour, int minute) {\n return getLocalTime(year, month, day, hour, minute, 0);\n }", "public String getPeriod() {\n return this.period;\n }", "private static void test27(){\n LocalDateTime newWorkingDay = LocalDateTime.now().with((temporal) -> {\n LocalDateTime localDateTime = (LocalDateTime) temporal;\n DayOfWeek dayOfWeek = localDateTime.getDayOfWeek();\n if(DayOfWeek.FRIDAY.equals(dayOfWeek)){\n return localDateTime.plusDays(1);\n }else if(DayOfWeek.SATURDAY.equals(dayOfWeek)) {\n return localDateTime.plusDays(2);\n }else {\n return localDateTime.plusDays(1);\n }\n });\n System.out.println(newWorkingDay);\n}", "public void menuprecoperiodo(String username) {\n Scanner s=new Scanner(System.in);\n LogTransportadora t=b_dados.getTrasnportadoras().get(username);\n double count=0;\n try {\n ArrayList<Historico> hist = b_dados.buscaHistoricoTransportadora(t.getCodEmpresa());\n System.out.println(\"Indique o ano:\");\n int ano=s.nextInt();\n System.out.println(\"Indique o mês\");\n int mes=s.nextInt();\n System.out.println(\"Indique o dia\");\n int dia=s.nextInt();\n for(Historico h: hist){\n LocalDateTime date=h.getDate();\n if(date.getYear()==ano && date.getMonthValue()==mes && date.getDayOfMonth()==dia){\n count+=h.getKmspercorridos()*t.getPrecokm();\n }\n }\n System.out.println(\"O total fatorado nesse dia foi de \" + count +\"€\");\n }\n catch (TransportadoraNaoExisteException e){\n System.out.println(e.getMessage());\n }\n }", "public List<RealizadaEmpresa> EncEmpPorPeriodo(Cliente c, LocalDate inicio, LocalDate fim){\n List<RealizadaEmpresa> re= new ArrayList<RealizadaEmpresa>(this.clientes.get(c.getEmail()).getRe());\n List<RealizadaEmpresa> aux = new ArrayList<RealizadaEmpresa>();\n for (RealizadaEmpresa a : re){\n if (a.getData().isAfter(inicio) && a.getData().isBefore(fim)) aux.add(a);\n }\n return aux; \n }", "public static void playgroundForTime(){\n\t\tLocalDate localDate = LocalDate.of(2013, 4, 25);\r\n\t\tSystem.out.println(localDate.now().isBefore(localDate));\r\n\t\t\r\n\t}", "List<Book> getBooksFromPeriod(LocalDate from,LocalDate to);", "public static LocalDateTime getEndOfDay(LocalDateTime dateTime) {\n return dateTime.withHour(23).withMinute(59).withSecond(59);\n }", "public boolean containsInclusive(final LocalDateTime dateTime) {\n\n\t\tif (Objects.isNull(dateTime)) {\n\t\t\treturn false;\n\t\t}\n\n\t\tfinal LocalDateTime begin = Optional.ofNullable(this.from).orElse(LocalDateTime.MIN); \n\t\tfinal LocalDateTime end = Optional.ofNullable(this.to).orElse(LocalDateTime.MAX);\n\n\t\treturn dateTime.compareTo(begin) >= 0 && dateTime.compareTo(end) <= 0;\n\t}", "public void setClockTime(LocalTime localTime) {\r\n // Update the Time Plot (clock hands)\r\n DefaultValueDataset hourData = (DefaultValueDataset) getDatasets()[SOLAR_HOUR_SERIES];\r\n\r\n final double DEG_PER_HOUR_12 = 360 / 12.0;\r\n double hour = localTime.get(ChronoField.MINUTE_OF_DAY) / 60.0;\r\n double hourDegrees = (hour % 12.0) * DEG_PER_HOUR_12;\r\n hourData.setValue(hourDegrees);\r\n }", "private String getTimeText(LocalDateTime dateTime) {\n return dateTime.format(DateTimeFormatter.ofPattern(FORMAT_TIME));\n }", "List<Asistencia> getAsistenciasReporte(Integer fclId, Date inicio, Date fin);", "public Builder accrualSchedule(PeriodicSchedule accrualSchedule) {\n JodaBeanUtils.notNull(accrualSchedule, \"accrualSchedule\");\n this.accrualSchedule = accrualSchedule;\n return this;\n }", "public int getPeriod() {\n return period;\n }", "public boolean isNowTime_in_period(){\r\n if (isTimeWith_in_Interval((LocalTime.now()).format(formatter),openTime,closeTime)) {\r\n // System.out.println(\"hi this works\");\r\n return true;\r\n } else {\r\n \r\n return false;\r\n }\r\n }", "public static void main(String...args) {\n DateTime nowDateTime = new DateTime();\n DateTime futureDateTime = new DateTime(2018, 3, 20, 0, 0, 0);\n System.out.println(nowDateTime.getMonthOfYear()); // Mar->3\n System.out.println(nowDateTime.withTimeAtStartOfDay()); // 获取今天的开始时间\n System.out.println(nowDateTime.millisOfDay().withMaximumValue()); // 获取今天的结束时间\n System.out.println(Days.daysBetween(nowDateTime, futureDateTime).getDays()); // 计算两个日期的相隔天数\n System.out.println(nowDateTime.plusDays(3).toString(\"E MM/dd/yyyy HH:mm:ss.SSS\")); // 以 Joda 的方式向某一个瞬间加上 3 天并输出结果\n }", "public static void initClock(Label dateTimeLabel) {\n Timeline dateTime = new Timeline(new KeyFrame(Duration.ZERO, e -> {\n DateTimeFormatter formatString = DateTimeFormatter.ofPattern(\"HH:mm:ss | dd/MM-yyyy\");\n dateTimeLabel.setText(LocalDateTime.now().format(formatString));\n }), new KeyFrame(Duration.millis(500)));\n\n dateTime.setCycleCount(Animation.INDEFINITE);\n dateTime.play();\n }", "private ZonedDateTime resolveLocal(LocalDateTime newDateTime) {\n return ofLocal(newDateTime, zone, offset);\n }", "public void processDate(boolean periodStart) {\n Calendar cal = Calendar.getInstance();\n if (year == null) {\n year = cal.get(Calendar.YEAR);\n }\n if (week != null) {\n cal.set(Calendar.WEEK_OF_YEAR, week);\n cal.setFirstDayOfWeek(Calendar.MONDAY);\n cal.set(Calendar.DAY_OF_WEEK, (periodStart) ? Calendar.MONDAY : Calendar.SUNDAY);\n week = null;\n month = TimeConstants.MONTHS_EN.split(\",\")[cal.get(Calendar.MONTH)].toLowerCase();\n day = cal.get(Calendar.DAY_OF_MONTH);\n }\n if (season != null) {\n if (\"Spring\".equalsIgnoreCase(season)) {\n cal.set(Calendar.MONTH, periodStart ? 2 : 4);\n } else if (\"Summer\".equalsIgnoreCase(season)) {\n cal.set(Calendar.MONTH, periodStart ? 5 : 7);\n } else if (\"Autumn\".equalsIgnoreCase(season)) {\n cal.set(Calendar.MONTH, periodStart ? 8 : 10);\n } else if (\"Winter\".equalsIgnoreCase(season)) {\n cal.set(Calendar.MONTH, periodStart ? 11 : 1);\n }\n cal.set(Calendar.DAY_OF_MONTH, periodStart ? 1 : cal.getActualMaximum(Calendar.DAY_OF_MONTH));\n month = TimeConstants.MONTHS_EN.split(\",\")[cal.get(Calendar.MONTH)].toLowerCase();\n day = cal.get(Calendar.DAY_OF_MONTH);\n season = null;\n }\n if (month != null) {\n cal.set(Calendar.MONTH, TimeConstants.getMonthIndex(month));\n }\n if (day != null && day == 99) {\n cal.set(Calendar.DAY_OF_MONTH, cal.getActualMaximum(Calendar.DAY_OF_MONTH));\n day = cal.get(Calendar.DAY_OF_MONTH);\n }\n if (day == null) {\n cal.set(Calendar.DAY_OF_MONTH, periodStart ? 1 : cal.getActualMaximum(Calendar.DAY_OF_MONTH));\n day = cal.get(Calendar.DAY_OF_MONTH);\n }\n }", "Optional<ReportingPeriod> getCurrentReportingPeriod();", "LocalDate getCollectionBeginDate();", "public java.util.List<org.drip.analytics.cashflow.CompositePeriod> cashFlowPeriod()\n\t{\n\t\treturn _lsPeriod;\n\t}", "public static void main(String[] args) {\n System.out.println(\"Instant.now(): \" + Instant.now());\n System.out.println(\"LocalDate.now(): \" + LocalDate.now());\n System.out.println(\"LocalTime.now(): \" + LocalTime.now());\n System.out.println(\"LocalDateTime.now(): \" + LocalDateTime.now());\n System.out.println(\"ZonedDateTime.now(): \" + ZonedDateTime.now());\n\n //All output values are using the ISO 8601 standard formatting. For dates, the basic for‐\n //mat is yyyy-MM-dd. For times, the format is hh:mm:ss.sss.\n\n //The of method for the date/time classes\n System.out.println(\"First landing on the Moon:\");\n LocalDate moonLandingDate = LocalDate.of(1969, Month.JULY, 20);\n LocalTime moonLandingTime = LocalTime.of(20, 18);\n System.out.println(\"Date: \" + moonLandingDate);\n System.out.println(\"Time: \" + moonLandingTime);\n System.out.println(\"Neil Armstrong steps onto the surface: \");\n LocalTime walkTime = LocalTime.of(20, 2, 56, 150_000_000);\n LocalDateTime walk = LocalDateTime.of(moonLandingDate, walkTime);\n System.out.println(walk);\n\n Set<String> regionNames = ZoneId.getAvailableZoneIds();\n System.out.println(\"There are \" + regionNames.size() + \" region names\");\n\n //Applying a time zone to a LocalDateTime\n LocalDateTime dateTime = LocalDateTime.of(2017, Month.JULY, 4, 13, 20, 10);\n ZonedDateTime nyc = dateTime.atZone(ZoneId.of(\"America/New_York\"));\n System.out.println(nyc);\n ZonedDateTime london = nyc.withZoneSameInstant(ZoneId.of(\"Europe/London\"));\n System.out.println(london);\n\n //Some methods in the Month enum\n System.out.println(\"Days in Feb in a leap year: \" +\n Month.FEBRUARY.length(true));\n System.out.println(\"Day of year for first day of Aug (leap year): \" +\n Month.AUGUST.firstDayOfYear(true));\n System.out.println(\"Month.of(1): \" + Month.of(1));\n System.out.println(\"Adding two months: \" + Month.JANUARY.plus(2));\n System.out.println(\"Subtracting a month: \" + Month.MARCH.minus(1));\n\n //Creating Dates and Times from Existing Instances\n //Once you’ve created a LocalDate, LocalTime, LocalDateTime, or ZonedDateTime,\n //it can no longer be changed. each returns a new instance, which is a copy of the original with the added\n //amount.\n\n //Using plus methods on LocalDate and LocalTime\n DateTimeFormatter formatter = DateTimeFormatter.ofPattern(\"yyyy-MM-dd\");\n LocalDate start = LocalDate.of(2017, Month.FEBRUARY, 2);\n LocalDate end = start.plusDays(3);\n assertEquals(\"2017-02-05\", end.format(formatter));\n end = start.plusWeeks(5);\n assertEquals(\"2017-03-09\", end.format(formatter));\n end = start.plusMonths(7);\n assertEquals(\"2017-09-02\", end.format(formatter));\n end = start.plusYears(2);\n assertEquals(\"2019-02-02\", end.format(formatter));\n\n formatter = DateTimeFormatter.ISO_LOCAL_TIME;\n LocalTime startLocaltime = LocalTime.of(11, 30, 0, 0);\n LocalTime endLocaltime = startLocaltime.plusNanos(1_000_000);\n assertEquals(\"11:30:00.001\", end.format(formatter));\n startLocaltime = startLocaltime.plusSeconds(20);\n assertEquals(\"11:30:20\", end.format(formatter));\n startLocaltime = startLocaltime.plusMinutes(45);\n assertEquals(\"12:15:00\", end.format(formatter));\n startLocaltime = startLocaltime.plusHours(5);\n assertEquals(\"16:30:00\", end.format(formatter));\n\n Period period = Period.of(2, 3, 4); // 2 years, 3 months, 4 days\n LocalDateTime startLocalDateTime = LocalDateTime.of(2017, Month.FEBRUARY, 2, 11, 30);\n LocalDateTime endLocalDateTime = startLocalDateTime.plus(period);\n assertEquals(\"2019-05-06T11:30:00\",\n startLocalDateTime.format(DateTimeFormatter.ISO_LOCAL_DATE_TIME));\n startLocalDateTime = startLocalDateTime.plus(3, ChronoUnit.HALF_DAYS);\n assertEquals(\"2017-02-03T23:30:00\",\n startLocalDateTime.format(DateTimeFormatter.ISO_LOCAL_DATE_TIME));\n startLocalDateTime = startLocalDateTime.minus(period);\n assertEquals(\"2014-10-29T11:30:00\",\n startLocalDateTime.format(DateTimeFormatter.ISO_LOCAL_DATE_TIME));\n startLocalDateTime = startLocalDateTime.minus(2, ChronoUnit.CENTURIES);\n assertEquals(\"1817-02-02T11:30:00\",\n startLocalDateTime.format(DateTimeFormatter.ISO_LOCAL_DATE_TIME));\n startLocalDateTime = startLocalDateTime.plus(3, ChronoUnit.MILLENNIA);\n assertEquals(\"5017-02-02T11:30:00\",\n startLocalDateTime.format(DateTimeFormatter.ISO_LOCAL_DATE_TIME));\n\n LocalDateTime start2 = LocalDateTime.of(2017, Month.FEBRUARY, 2, 11, 30);\n LocalDateTime end2 = start2.withMinute(45);\n assertEquals(\"2017-02-02T11:45:00\",\n start2.format(DateTimeFormatter.ISO_LOCAL_DATE_TIME));\n end2 = start2.withHour(16);\n assertEquals(\"2017-02-02T16:30:00\",\n end2.format(DateTimeFormatter.ISO_LOCAL_DATE_TIME));\n end2 = start2.withDayOfMonth(28);\n assertEquals(\"2017-02-28T11:30:00\",\n end2.format(DateTimeFormatter.ISO_LOCAL_DATE_TIME));\n end2 = start2.withDayOfYear(300);\n assertEquals(\"2017-10-27T11:30:00\",\n end2.format(DateTimeFormatter.ISO_LOCAL_DATE_TIME));\n end2 = start2.withYear(2020);\n assertEquals(\"2020-02-02T11:30:00\",\n end2.format(DateTimeFormatter.ISO_LOCAL_DATE_TIME));\n\n LocalDateTime start3 = LocalDateTime.of(2017, Month.FEBRUARY, 2, 11, 30);\n start3.withDayOfMonth(29);\n\n //Adjusting the month to an invalid value\n LocalDateTime start4 = LocalDateTime.of(2017, Month.JANUARY, 31, 11, 30);\n LocalDateTime end4 = start4.with(ChronoField.MONTH_OF_YEAR, 2);\n assertEquals(\"2017-02-28T11:30:00\",\n end.format(DateTimeFormatter.ISO_LOCAL_DATE_TIME));\n\n\n }", "public void printApp(Date dat)\n {\n if(cal.containsKey(dat)){\n List x = [];\n x = cal.get(dat);\n System.out.println(\"Your appointments for \" + dat + \"are: \\n\");\n for(int i = 0; i<x.size(); i++){\n System.out.println(x.get(i).getStartTime() + x.get(i).getEndTime() + x.get(i).getDescription());\n }\n }else{\n System.out.println(\"No appointments\");\n }\n \n }", "public String generateLocalDateTime() {\n LocalDateTime localDateTime = LocalDateTime.now();\n DateTimeFormatter dateTimeFormatter = DateTimeFormatter.ofPattern(\"yyyyMMddHHmmss\");\n String formatLocalDateTime = localDateTime.format(dateTimeFormatter);\n return formatLocalDateTime;\n }", "public static void main(String[] args) {\n LocalDateTime currentTime = LocalDateTime.now();\n System.out.println(\"Current DateTime: \" + currentTime);\n\n LocalDate date1 = currentTime.toLocalDate();\n System.out.println(\"date : \" + date1);\n\n Month month = currentTime.getMonth();\n int day = currentTime.getDayOfMonth();\n int seconds = currentTime.getSecond();\n int nano = currentTime.getNano();\n\n System.out.println(\"Month: \" + month + \" day: \" + day + \" seconds: \" + seconds + \" nano: \" + nano);\n\n LocalDateTime date2 = currentTime.withDayOfMonth(10).withYear(2012);\n System.out.println(\"date2: \" + date2);\n\n //12 december 2014\n LocalDate date3 = LocalDate.of(2014, Month.DECEMBER, 12);\n System.out.println(\"date3: \" + date3);\n\n //22 hour 15 minutes\n LocalTime date4 = LocalTime.of(22, 15);\n System.out.println(\"date4: \" + date4);\n \n //parse a string\n LocalTime date5 = LocalTime.parse(\"20:15:30\");\n System.out.println(\"date5: \" + date5);\n\n System.out.println(\"\");\n // Get the current date and time\n ZonedDateTime zonedDateTime = ZonedDateTime.parse(\"2007-12-03T10:15:30+05:30[Asia/Karachi]\");\n System.out.println(\"date1: \" + zonedDateTime);\n\n ZoneId id = ZoneId.of(\"Europe/Paris\");\n System.out.println(\"ZoneId: \" + id);\n\n ZoneId currentZone = ZoneId.systemDefault();\n System.out.println(\"CurrentZone: \" + currentZone);\n System.out.println(\"\");\n \n //Get the current date\n LocalDate today = LocalDate.now();\n System.out.println(\"Current date: \" + today);\n\n //add 1 week to the current date\n LocalDate nextWeek = today.plus(1, ChronoUnit.WEEKS);\n System.out.println(\"Next week: \" + nextWeek);\n\n //add 1 month to the current date\n LocalDate nextMonth = today.plus(1, ChronoUnit.MONTHS);\n System.out.println(\"Next month: \" + nextMonth);\n\n //add 1 year to the current date\n LocalDate nextYear = today.plus(1, ChronoUnit.YEARS);\n System.out.println(\"Next year: \" + nextYear);\n\n //add 10 years to the current date\n LocalDate nextDecade = today.plus(1, ChronoUnit.DECADES);\n System.out.println(\"Date after ten year: \" + nextDecade);\n System.out.println(\"\");\n// \n// With Java 8, two specialized classes are introduced to deal with the time differences.\n//\n//Period - It deals with date based amount of time.\n//\n//Duration - It deals with time based amount of time.\n //Get the current date working with Periods\n LocalDate datePeriod = LocalDate.now();\n System.out.println(\"Current date: \" + datePeriod);\n\n //add 1 month to the current date\n LocalDate datePeriod2 = datePeriod.plus(1, ChronoUnit.MONTHS);\n System.out.println(\"Next month: \" + datePeriod2);\n\n Period period = Period.between(datePeriod2, datePeriod);\n System.out.println(\"Period: \" + period);\n\n //work with durations\n LocalTime time1 = LocalTime.now();\n Duration twoHours = Duration.ofHours(2);\n\n LocalTime time2 = time1.plus(twoHours);\n Duration duration = Duration.between(time1, time2);\n\n System.out.println(\"Duration: \" + duration);\n\n// TemporalAdjuster is used to perform the date mathematics.\n// For example, get the \"Second Saturday of the Month\" or \"Next Tuesday\".\n// Let us see them in action.\n// \n System.out.println(\"\");\n//Get the current date\n LocalDate dateArithmatic = LocalDate.now();\n System.out.println(\"Current date: \" + dateArithmatic);\n\n //get the next tuesday\n LocalDate nextTuesday = dateArithmatic.with(TemporalAdjusters.next(DayOfWeek.TUESDAY));\n System.out.println(\"Next Tuesday on : \" + nextTuesday);\n\n //get the second saturday of next month\n LocalDate firstInYear = LocalDate.of(dateArithmatic.getYear(), dateArithmatic.getMonth(), 1);\n LocalDate secondSaturday = firstInYear.with(TemporalAdjusters.nextOrSame(DayOfWeek.SATURDAY))\n .with(TemporalAdjusters.next(DayOfWeek.SATURDAY));\n System.out.println(\"Second Saturday on : \" + secondSaturday);\n\n //Sql date time\n java.util.Date javaDate = new java.util.Date();\n long javaTime = javaDate.getTime();\n System.out.println(\"\\n\\nThe Java Date is: \" + javaDate.toString());\n\n java.sql.Date sqlDate = new java.sql.Date(javaTime);\n System.out.println(\"The SQL DATE is: \" + sqlDate.toString());\n\n java.sql.Time sqlTime = new java.sql.Time(javaTime);\n System.out.println(\"The SQL TIME is: \" + sqlTime.toString());\n\n java.sql.Timestamp sqlTimestamp = new java.sql.Timestamp(javaTime);\n System.out.println(\"The SQL TIMESTAMP is: \" + sqlTimestamp.toString());\n }", "public org.drip.analytics.cashflow.CompositePeriod containingPeriod (\n\t\tfinal int iDate)\n\t{\n\t\ttry {\n\t\t\tfor (org.drip.analytics.cashflow.CompositePeriod cp : _lsPeriod) {\n\t\t\t\tif (cp.contains (iDate)) return cp;\n\t\t\t}\n\t\t} catch (java.lang.Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\treturn null;\n\t}", "public void showAppointments()\n {\n System.out.println(\"=== Day \" + dayNumber + \" ===\");\n int time = START_OF_DAY;\n for(Appointment appointment : appointments) {\n System.out.print(time + \": \");\n if(appointment != null) {\n System.out.println(appointment.getDescription());\n }\n else {\n System.out.println();\n }\n time++;\n }\n }", "private Periodo getPeriodoCorte() {\n String valor = parametrosDao.obtenerTodosParametros().get(\"integrador.periodo.arranque\");\r\n\r\n return Periodo.parse(valor, \"yyyyMM\");\r\n }", "public static void main(String[] args) {\n\n LocalDateTime currentTime = LocalDateTime.now();\n\n// new LocalTime();\n// new LocalDateTime();\n// new LocalDate();\n\n LocalDate.now();\n LocalTime lt = LocalTime.now();\n LocalDateTime.now();\n\n // parse the string to a LocalDate\n LocalDate localDateFromString = LocalDate.parse(\"19-07-1999\", DateTimeFormatter.ofPattern(\"dd-MM-yyyy\") );\n\n // Create the new formatter we want\n DateTimeFormatter formatter = DateTimeFormatter.ofPattern(\"dd MMMM yyyy\");\n\n // Use the formatter on the Date to get what we want\n System.out.println(formatter.format(localDateFromString));\n\n JapaneseDate jDate = JapaneseDate.from(localDateFromString);\n\n System.out.println(jDate.getEra().toString());\n// System.out.println(jDate.getEra().toString());\n\n System.out.println(\"***************\");\n\n DateTimeFormatter timeFormatter = DateTimeFormatter.ofPattern(\"dd MMMM yyyy hh-mm-ss\");\n\n System.out.println(\"Current date: \");\n System.out.println(currentTime);\n\n System.out.println(String.format(\"%s hour %s minutes\", currentTime.getHour(), currentTime.getMinute()));\n\n\n System.out.println(\"Formatted date: \");\n System.out.println(timeFormatter.format(currentTime.plusDays(90)));\n\n System.out.println(\"##############\");\n\n LocalDate today = LocalDate.now();\n System.out.println(today.plusDays(17).getDayOfWeek());\n\n// java.time.LocalDate currentDate = java.time.LocalDate.now();\n// System.out.println(currentDate);\n\n }" ]
[ "0.56207466", "0.54947585", "0.5480223", "0.54785436", "0.5129203", "0.51247096", "0.5090213", "0.50780153", "0.5037491", "0.502847", "0.5018185", "0.5001471", "0.49851692", "0.4981285", "0.49671954", "0.4955905", "0.49499452", "0.49277878", "0.49125066", "0.4903787", "0.48919287", "0.48822448", "0.48808953", "0.48585898", "0.48530602", "0.48475462", "0.48399144", "0.48296037", "0.4824027", "0.4813599", "0.4793586", "0.47829428", "0.47825158", "0.47727063", "0.4746622", "0.47313824", "0.4714773", "0.4712177", "0.47025236", "0.47015163", "0.46787316", "0.4674334", "0.46675125", "0.46637645", "0.46616623", "0.46548063", "0.46519276", "0.4651073", "0.46506536", "0.4649751", "0.4646133", "0.4635908", "0.4613165", "0.46064782", "0.46055305", "0.45997387", "0.45863703", "0.45832896", "0.45766607", "0.4576365", "0.45698616", "0.45694292", "0.456479", "0.45500925", "0.45386425", "0.45365998", "0.45292217", "0.45156544", "0.45128155", "0.4508903", "0.45059893", "0.4503035", "0.44994503", "0.44949806", "0.44813305", "0.4470537", "0.44702142", "0.44593364", "0.44563404", "0.44562656", "0.44503203", "0.44462454", "0.4443434", "0.44424278", "0.44406042", "0.44331673", "0.443215", "0.44254735", "0.44201753", "0.44187126", "0.44183132", "0.44147363", "0.44111428", "0.44091925", "0.44051751", "0.44034627", "0.44020915", "0.44012547", "0.44009688", "0.4400045", "0.4397441" ]
0.0
-1
Calendar will display the period containing the selected CalendarEvent
@Subscribe private void handleCalendarPanelSelectionChangedEvent(CalendarPanelSelectionChangedEvent event) { logger.info(LogsCenter.getEventHandlingLogMessage(event)); setDisplayedDateTime(event.newSelection.getStartLocalDateTime()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main(String[] args) {\n\n CalendarEvent b = new CalendarEvent(\"assignment2\",29,11,2014,\"14:00\",\"20:00\",\"Test1\");\n\n CalendarEvent c = new CalendarEvent(\"assignment3\",27,2,2010,\"2:00\",\"20:00\",\"Test2\");\n\n CalendarEvent d = new CalendarEvent(\"assignment4\",12,7,2013,\"14:00\",\"20:00\",\"Test3\");\n\n CalendarEvent e = new CalendarEvent(\"assignment5\",29,11,2014,\"12:00\",\"20:00\",\"Test4\");\n\n\n CalendarEvent l = new CalendarEvent(\"assignment1a\",30,9,2014,\"14:00\",\"20:00\",\"Test\");\n CalendarEvent f = new CalendarEvent(\"assignment1\",31,9,2014,\"14:00\",\"20:00\",\"Test\");\n CalendarEvent g = new CalendarEvent(\"assignment1\",21,9,2014,\"14:00\",\"20:00\",\"Test\");\n CalendarEvent h = new CalendarEvent(\"assignment1\",21,9,2014,\"14:00\",\"20:00\",\"Test\");\n CalendarEvent i = new CalendarEvent(\"assignment1\",29,9,2014,\"14:00\",\"20:00\",\"Test\");\n CalendarEvent j = new CalendarEvent(\"assignment1\",18,9,2014,\"14:00\",\"20:00\",\"Test\");\n CalendarEvent k = new CalendarEvent(\"assignment1\",1,9,2014,\"14:00\",\"20:00\",\"Test\");\n\n \n \n \n ArrayList<CalendarEvent> listOfEvents = new ArrayList<CalendarEvent>();\n // listOfEvents.add(a);\n listOfEvents.add(b);\n listOfEvents.add(c);\n listOfEvents.add(d);\n listOfEvents.add(e);\n\n Display myDisObject = new Display();\n //myDisObject.displayAssignments(listOfEvents);\n\n \n \n listOfEvents.add(f);\n listOfEvents.add(g);\n listOfEvents.add(h);\n listOfEvents.add(i);\n listOfEvents.add(j);\n listOfEvents.add(k);\n listOfEvents.add(l);\n \n //myDisObject.displayAssignments(listOfEvents);\n myDisObject.displayMonth(10, listOfEvents);\n }", "public void displayCalendar() throws IllegalArgumentException {\r\n\t\tif (getCurrentEntity() == null) {\r\n\t\t\tthrow new IllegalArgumentException(\"No doctor is displayed\");\r\n\t\t}\r\n\t\ttracer(this).debug(\"Displaying calendar of doctor: \" + getCurrentEntity().getId());\r\n\t\tgetEventBus().fireEvent(DoctorCalendarPage.createPageEvent(this, getCurrentEntity().getId()));\r\n\t\tview.setViewVisible(false);\r\n\t}", "@Override\n public String toString(){\n \n return periodo;\n \n }", "public Calendario getCalendar(){\r\n\t\treturn calendar;\r\n\t}", "@Override\n public void onDateRangeSelected(int startDay, int startMonth, int startYear, int endDay, int endMonth, int endYear) {\n DateFormat df = DateFormat.getDateInstance(DateFormat.MEDIUM, Locale.getDefault());\n Calendar c = Calendar.getInstance();\n Calendar c2 = Calendar.getInstance();\n c.set(startYear,startMonth,startDay);\n c2.set(endYear, endMonth,endDay);\n\n String dataInicio = \"Start \" + df.format(c.getTime()) + \"\\n\";\n String dataFim = \" End \" + df.format(c2.getTime()) ;\n\n txt_inform.setText(dataInicio);\n txt_inform.append(dataFim);\n\n }", "void getCurrentPeriodo();", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tgetControleur(). consultPeriod() ;}", "public Calendar getCalendar() {\n return cal;\n }", "public void loadComboBoxPeriod(){\r\n \r\n java.util.Date d = java.sql.Date.valueOf(java.time.LocalDate.now());\r\n //Para cargar un combobox\r\n String period = \"\";\r\n \r\n switch((int)d.getMonth()){\r\n case 1: case 2: case 3: case 0:\r\n period+=1;\r\n break;\r\n case 4: case 5: case 6: case 7:\r\n period+=2;\r\n break;\r\n case 8: case 9: case 10: case 11:\r\n period+=3;\r\n break;\r\n }\r\n period+=\"-\"+(d.getYear()+1900);\r\n this.cmbPeriod.getItems().add(period);\r\n\r\n \r\n cmbPeriod.getSelectionModel().select(\"Period\");\r\n }", "public void render() {\n\t\teventMap.clear();\n\t\t\n\t\tLocalDate firstDateOfMonth = LocalDate.of(currentDate.getYear(), currentDate.getMonthValue(), 1);\n\t\tint date = firstDateOfMonth.getDayOfWeek().getValue()%7;\n\t\t\n\t\t\n\t\teventSection.removeAll();\n\t\t// draw day string\n\t\tString[] headers = {\"SUN\", \"MON\", \"TUE\", \"WED\", \"THU\", \"FRI\", \"SAT\"};\n\t\tfor(int i = 0; i < headers.length; i++) {\n\t\t\tJLabel label = new CalendarDate(headers[i]);\t\n\t\t\tlabel.setHorizontalAlignment(JLabel.CENTER);\n\t\t label.setVerticalAlignment(JLabel.CENTER); \n\t\t Border border = BorderFactory.createLineBorder(Color.LIGHT_GRAY, 1);\n\t \tlabel.setBorder(border);\n\t\t eventSection.add(label);\n\t\t}\n\t\t// front padding\n\t\tLocalDate previousMonth = currentDate.minusMonths(1);\n\t\tfor(int i = date - 1; i >= 0; i--) {\n\t\t\tJLabel label = new CalendarDate(\"<html>\" + (previousMonth.getMonth().maxLength() - i) + \"</html>\");\n\t\t\tlabel.setHorizontalAlignment(JLabel.CENTER);\n\t\t label.setVerticalAlignment(JLabel.TOP); \n\t\t Border border = BorderFactory.createLineBorder(Color.LIGHT_GRAY, 1);\n\t \tlabel.setBorder(border);\n\t\t label.setForeground(Color.gray);\n\t\t eventSection.add(label);\n\t\t}\n\t\t// draw dates\n\t\tfor(int i = 1; i <= currentDate.getMonth().maxLength(); i++) {\n\t\t\tJPanel outerPanel = new JPanel();\n\t\t\touterPanel.setLayout(new BorderLayout());\n\t\t\touterPanel.setBorder(BorderFactory.createLineBorder(Color.LIGHT_GRAY, 1));\n\t\t\t\t\t\n\t\t\tJLabel label = new CalendarDate(\"<html>\" + i + \"</html>\");\n\t\t\tlabel.setPreferredSize(new Dimension(150,20));\n\t\t\tlabel.setBorder(BorderFactory.createEmptyBorder(5, 0, 5, 0));\n\t\t\tlabel.setHorizontalAlignment(JLabel.CENTER); \t\t \n\n\t\t outerPanel.add(label, BorderLayout.NORTH);\n\t\t \t \n\t\t LocalDate tmp = LocalDate.of(currentDate.getYear(), currentDate.getMonthValue(), i);\n\t\t\tArrayList<Event> dateEvents = new ArrayList<Event>();\n\t\t\tdateEvents = EventProcessor.filterEvents(model.getEvents(), tmp, tmp);\n\t\t\t\n\t\t\tif (dateEvents.size() > 0) {\t\n\t\t\t\tJPanel container = new JPanel();\n\t\t\t\tcontainer.setLayout(new BoxLayout(container, BoxLayout.Y_AXIS));\n\t\t\t JScrollPane scrollablePanel = new JScrollPane(container, ScrollPaneConstants.VERTICAL_SCROLLBAR_AS_NEEDED, ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER);\n\t\t\t scrollablePanel.getVerticalScrollBar().setPreferredSize(new Dimension(0,0));\n\t\t\t outerPanel.add(scrollablePanel, BorderLayout.CENTER);\n\t\t\t \n\t\t\t\tfor (int j = 0; j < dateEvents.size(); j++) {\n\t\t\t\t\tEvent ev = dateEvents.get(j);\n\t\t\t\t\t\n\t\t\t\t\tJPanel panel = new JPanel();\t\t\t\n\t\t\t\t\tpanel.setLayout(new BoxLayout(panel, BoxLayout.Y_AXIS));\n\t\t\t\t\tif (j % 2 == 1)\n\t\t\t\t\t\tpanel.setBackground(new Color(243, 243, 243));\n\t\t\t\t\telse\n\t\t\t\t\t\tpanel.setBackground(new Color(192, 219, 243));\n\t\t\t\t\tpanel.setOpaque(true);\n\t\t\t\t\t\n\t\t\t\t\tString eventName = ev.getName();\n\t\t\t\t\tJLabel eventPill = new JLabel(\"<html>\" + (eventName.length() > 20 ? eventName.substring(0, 17) + \"...\" : eventName) + \"</html>\");\n\t\t\t\t\teventPill.setHorizontalAlignment(JLabel.LEFT);\n\t\t\t\t\teventPill.setAlignmentX(Component.LEFT_ALIGNMENT);\n\n\t\t\t\t\teventMap.put(eventPill, ev);\n\t\t\t\t\t\n\t\t\t\t\teventPill.addMouseListener(new MouseListener() {\n\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t\t\t\tEvent event = eventMap.get((JLabel)e.getSource());\n\t\t\t\t\t\t\tString content = \"<html><strong>\" + event.getName() + \"</strong><br><span>\" + DateTimeFormatter.ofLocalizedDate(FormatStyle.FULL).format(event.getDate()) + \"</span><br><span>\" + event.getStartTime() + \":00 - \" + event.getEndTime() + \":00</span></html>\";\n\t\t\t\t\t\t\tpopupContent.setText(content);\n\t\t\t\t\t\t\tpopup.repaint();\n\t\t\t\t\t\t\tpopup.pack();\n\t\t\t\t\t\t\tpopup.setLocation(e.getXOnScreen(), e.getYOnScreen());\n\t\t\t\t\t\t\tpopup.setVisible(true);\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic void mousePressed(MouseEvent e) {}\n\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic void mouseReleased(MouseEvent e) {}\n\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic void mouseEntered(MouseEvent e) {}\n\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic void mouseExited(MouseEvent e) {}\n\t\t\t\t\t\t\n\t\t\t\t\t});\n\t\t\t\t\t\n\t\t\t\t\tpanel.add(eventPill);\n\t\t\t\t\tcontainer.add(panel);\n\t\t\t\t}\n\t\t\t}\n\t\t \n\t\t eventSection.add(outerPanel);\n\t\t}\n\t\t// rear padding\n\t\tint rearPaddingCount = 49 - currentDate.getMonth().maxLength() - headers.length - date;\n\t\tfor(int i = 0; i < rearPaddingCount; i++) {\n\t\t\tJLabel label = new CalendarDate(\"<html>\" + (i + 1) + \"</html>\");\n\t\t\tlabel.setHorizontalAlignment(JLabel.CENTER);\n\t\t label.setVerticalAlignment(JLabel.TOP); \n\t\t label.setForeground(Color.gray);\n\t\t Border border = BorderFactory.createLineBorder(Color.LIGHT_GRAY, 1);\n\t \tlabel.setBorder(border);\n\t\t\teventSection.add(label);\n\t\t\t\n\t\t}\n\t\trevalidate();\n\t\trepaint();\n\t}", "public void setCalendar(Calendar cal) {\n this.cal = cal;\n }", "public void onDateSelect(DateSelectEvent selectEvent) {\n event = new DefaultScheduleEvent(Math.random() + \"\", selectEvent.getDate(), selectEvent.getDate()); \r\n }", "public void showAppointments()\n {\n System.out.println(\"=== Day \" + dayNumber + \" ===\");\n int time = START_OF_DAY;\n for(Appointment appointment : appointments) {\n System.out.print(time + \": \");\n if(appointment != null) {\n System.out.println(appointment.getDescription());\n }\n else {\n System.out.println();\n }\n time++;\n }\n }", "public Calendar getCalendar() {\n return _calendar;\n }", "public String eventList() {\n\n\t\tString str = \"\";\n\t\tif(map.isEmpty()) {\n\t\t\tstr = \"No Events Scheduled Yet\";\n\t\t\treturn str;\n\t\t}\n\t\tstr = \"One Time Events: \\n\";\n\t\tstr = str + \"________________ \\n2020\\n\";\n\n\t\tfor(Map.Entry<LocalDate, ArrayList<Event>> entry: map.entrySet() ) {\n\n\t\t\tLocalDate currentDate = entry.getKey();\n\t\t\tArrayList<Event> list = map.get(currentDate);\n\t\t\tDateTimeFormatter formatter = DateTimeFormatter.ofPattern(\"EEEE MMMM dd\");\n\t\t\tDateTimeFormatter timeFormatter = DateTimeFormatter.ofPattern(\"HH:mm a\");\n\t\t\tfor(int i = 0;i<list.size();i++) {\n\t\t\t\tEvent e = list.get(i);\n\t\t\t\tif(e.recurring == false) {\n\t\t\t\t\tstr = str + \" \"+formatter.format(currentDate) +\" \" + timeFormatter.format(e.sTime) + \" - \" + timeFormatter.format(e.eTime) + \" \" + e.name + \"\\n\";\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t//for recurring events, add this later\n\t\t/*\n\t\tstr = str + \"\\nRecurring Events:\\n\";\n\t\tstr = str + \"________________ \\n\";\n\t\tif(recurringEvents.size()==0) {\n\t\t\tstr = str + \"No Recurring Event Scheduled\\n\";\n\t\t\treturn str;\n\t\t}\n\t\tfor(int i = 0; i<recurringEvents.size(); i++) {\n\t\t\tEvent e = recurringEvents.get(i);\n\t\t\tstr = str + e.name +\"\\n\";\n\t\t\tstr = str + e.rdays + \" \" + e.sTime + \" \" + e.eTime + \" \" + e.recurringStartDate + \" \" + e.eDate +\"\\n\";\n\t\t}\n\t\t */\n\t\treturn str;\n\n\t}", "public void processDate(boolean periodStart) {\n Calendar cal = Calendar.getInstance();\n if (year == null) {\n year = cal.get(Calendar.YEAR);\n }\n if (week != null) {\n cal.set(Calendar.WEEK_OF_YEAR, week);\n cal.setFirstDayOfWeek(Calendar.MONDAY);\n cal.set(Calendar.DAY_OF_WEEK, (periodStart) ? Calendar.MONDAY : Calendar.SUNDAY);\n week = null;\n month = TimeConstants.MONTHS_EN.split(\",\")[cal.get(Calendar.MONTH)].toLowerCase();\n day = cal.get(Calendar.DAY_OF_MONTH);\n }\n if (season != null) {\n if (\"Spring\".equalsIgnoreCase(season)) {\n cal.set(Calendar.MONTH, periodStart ? 2 : 4);\n } else if (\"Summer\".equalsIgnoreCase(season)) {\n cal.set(Calendar.MONTH, periodStart ? 5 : 7);\n } else if (\"Autumn\".equalsIgnoreCase(season)) {\n cal.set(Calendar.MONTH, periodStart ? 8 : 10);\n } else if (\"Winter\".equalsIgnoreCase(season)) {\n cal.set(Calendar.MONTH, periodStart ? 11 : 1);\n }\n cal.set(Calendar.DAY_OF_MONTH, periodStart ? 1 : cal.getActualMaximum(Calendar.DAY_OF_MONTH));\n month = TimeConstants.MONTHS_EN.split(\",\")[cal.get(Calendar.MONTH)].toLowerCase();\n day = cal.get(Calendar.DAY_OF_MONTH);\n season = null;\n }\n if (month != null) {\n cal.set(Calendar.MONTH, TimeConstants.getMonthIndex(month));\n }\n if (day != null && day == 99) {\n cal.set(Calendar.DAY_OF_MONTH, cal.getActualMaximum(Calendar.DAY_OF_MONTH));\n day = cal.get(Calendar.DAY_OF_MONTH);\n }\n if (day == null) {\n cal.set(Calendar.DAY_OF_MONTH, periodStart ? 1 : cal.getActualMaximum(Calendar.DAY_OF_MONTH));\n day = cal.get(Calendar.DAY_OF_MONTH);\n }\n }", "void onClickDateRange();", "public void setCalendar(Calendar cal) {\n this.cal = cal;\n }", "public void setCalendar(Calendar cal) {\n this.cal = cal;\n }", "public static void viewBy() {\n\t\tMONTHS[] arrayOfMonths = MONTHS.values();\n\t\tLONGDAYS[] arrayOfLongDays = LONGDAYS.values();\n\t\tSystem.out.println(\"[D]ay view or [M]onth view ? \");\n\t\tScanner sc = new Scanner(System.in);\n\t\tString input;\n\t\tif (sc.hasNextLine()) {\n\t\t\tinput = sc.nextLine().toLowerCase();\n\n\t\t\tif (input.equals(\"d\")) { //day view\t\t\t\t\n\t\t\t\tGregorianCalendar cal1 = new GregorianCalendar();\n\t\t\t\tGregorianCalendar cal = new GregorianCalendar(cal1.get(Calendar.YEAR), cal1.get(Calendar.MONTH)+1, cal1.get(Calendar.DAY_OF_MONTH));\n\t\t\t\tSystem.out.print(arrayOfLongDays[cal1.get(Calendar.DAY_OF_WEEK) - 1]);\n\t\t\t\tSystem.out.print(\", \");\n\t\t\t\tSystem.out.print(arrayOfMonths[cal.get(Calendar.MONTH)-1]);\n\t\t\t\tSystem.out.print(\" \");\n\t\t\t\tSystem.out.print(cal.get(Calendar.DAY_OF_MONTH));\n\t\t\t\tSystem.out.print(\", \");\n\t\t\t\tSystem.out.print(cal.get(Calendar.YEAR));\n\t\t\t\tString values = getValues(cal);\n\t\t\t\tif (values != \"\") {\n\t\t\t\t\tSystem.out.println(\"\\n\" + values);\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.println(\"\\nThere are no events scheduled for this day\");\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"\\n[P]revious or [N]ext or [M]ain menu ? \");\n\t\t\t\tinput = sc.nextLine().toLowerCase();\n\t\t\t\twhile (input.equals(\"n\") || input.equals(\"p\")) {\n\t\t\t\t\tif (input.equals(\"p\")) { // previous\n\t\t\t\t\t\tcal.add(Calendar.DAY_OF_MONTH, -1);\n\t\t\t\t\t\tcal1.add(Calendar.DAY_OF_MONTH, -1);\n\t\t\t\t\t\tSystem.out.print(arrayOfLongDays[cal1.get(Calendar.DAY_OF_WEEK) - 1]);\n\t\t\t\t\t\tSystem.out.print(\", \");\n\t\t\t\t\t\tSystem.out.print(arrayOfMonths[cal.get(Calendar.MONTH)-1]);\n\t\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t\t\tSystem.out.print(cal.get(Calendar.DAY_OF_MONTH));\n\t\t\t\t\t\tSystem.out.print(\", \");\n\t\t\t\t\t\tSystem.out.print(cal.get(Calendar.YEAR) + \"\\n\");\n\t\t\t\t\t\tString value = getValues(cal);\n\t\t\t\t\t\tif (value != \"\") {\n\t\t\t\t\t\t\tSystem.out.println(value);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tSystem.out.println(\"\\nThere are no events scheduled for this day\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\tSystem.out.println(\"\\n[P]revious or [N]ext or [M]ain menu ? \");\n\t\t\t\t\t\tinput = sc.nextLine().toLowerCase();\n\t\t\t\t\t} else if (input.equals(\"n\")) { // next\n\t\t\t\t\t\tcal.add(Calendar.DAY_OF_MONTH, 1);\n\t\t\t\t\t\tcal1.add(Calendar.DAY_OF_MONTH, 1);\n\t\t\t\t\t\tSystem.out.print(arrayOfLongDays[cal1.get(Calendar.DAY_OF_WEEK) - 1]);\n\t\t\t\t\t\tSystem.out.print(\", \");\n\t\t\t\t\t\tSystem.out.print(arrayOfMonths[cal.get(Calendar.MONTH)-1]);\n\t\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t\t\tSystem.out.print(cal.get(Calendar.DAY_OF_MONTH));\n\t\t\t\t\t\tSystem.out.print(\", \");\n\t\t\t\t\t\tSystem.out.print(cal.get(Calendar.YEAR) + \"\\n\");\n\t\t\t\t\t\tString values1 = getValues(cal);\n\t\t\t\t\t\tif (values1 != \"\") {\n\t\t\t\t\t\t\tSystem.out.println(values1);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tSystem.out.println(\"\\nThere are no events scheduled for this day\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\tSystem.out.println(\"\\n[P]revious or [N]ext or [M]ain menu ? \");\n\t\t\t\t\t\tinput = sc.nextLine().toLowerCase();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (input.equals(\"m\")) { // main menu\n\t\t\t\t\tSystem.out.println(\"main menu\");\n\t\t\t\t} else { // user didn't input a valid option\n\t\t\t\t\tSystem.out.println(\"\\n[P]revious or [N]ext or [M]ain menu ? \");\n\t\t\t\t}\n\n\t\t\t} else if (input.equals(\"m\")) { // month view\n\t\t\t\tGregorianCalendar cal = new GregorianCalendar();\n\t\t\t\tdisplayMainMenuWithEvents(cal);\n\t\t\t\tSystem.out.println(\"[P]revious or [N]ext or [M]ain menu ? \");\n\t\t\t\tinput = sc.nextLine().toLowerCase();\n\t\t\t\twhile (input.equals(\"p\") || input.equals(\"n\")) {\n\t\t\t\t\tif (input.equals(\"p\")) { // previous\n\t\t\t\t\t\tcal.add(Calendar.MONTH, -1);\n\t\t\t\t\t\tdisplayMainMenuWithEvents(cal);\n\t\t\t\t\t\tSystem.out.println(\"\\n[P]revious or [N]ext or [M]ain menu ? \");\n\t\t\t\t\t\tinput = sc.nextLine().toLowerCase();\n\t\t\t\t\t} else if (input.equals(\"n\")) { // next\n\t\t\t\t\t\tcal.add(Calendar.MONTH, 1);\n\t\t\t\t\t\tdisplayMainMenuWithEvents(cal);\n\t\t\t\t\t\tSystem.out.println(\"\\n[P]revious or [N]ext or [M]ain menu ? \");\n\t\t\t\t\t\tinput = sc.nextLine().toLowerCase();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (input.equals(\"m\")) { // main menu\n\t\t\t\t\tSystem.out.println(\"main menu\");\n\t\t\t\t} else { // user didn't input a valid option\n\t\t\t\t\tSystem.out.println(\"\\n[P]revious or [N]ext or [M]ain menu ? \");\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public Calendar getCalendar() {\n return this.calendar;\n }", "public String toString() {\n\n if(!allDay){\n return event + \": \" + startTime + \" to \" + endTime;\n } else {\n return event + \": All Day\";\n }\n }", "public String toString() {\n return this.calendarName;\n }", "public double selPeriodo(int periodo, int estrato) {\n double perTasa = 0;\n if (periodo == 201611) {\n if (estrato == 1) {\n perTasa = tasaNov16_1;\n }\n if (estrato == 2) {\n perTasa = tasaNov16_2;\n }\n if (estrato == 3) {\n perTasa = tasaNov16_3;\n }\n if (estrato == 4) {\n perTasa = tasaNov16_4;\n }\n if (estrato == 5) {\n perTasa = tasaNov16_5;\n }\n if (estrato == 6) {\n perTasa = tasaNov16_6;\n }\n }\n if (periodo == 201610) {\n if (estrato == 1) {\n perTasa = tasaOct16_1;\n }\n if (estrato == 2) {\n perTasa = tasaOct16_2;\n }\n if (estrato == 3) {\n perTasa = tasaOct16_3;\n }\n if (estrato == 4) {\n perTasa = tasaOct16_4;\n }\n if (estrato == 5) {\n perTasa = tasaOct16_5;\n }\n if (estrato == 6) {\n perTasa = tasaOct16_6;\n }\n }\n if (periodo == 201609) {\n if (estrato == 1) {\n perTasa = tasaSep16_1;\n }\n if (estrato == 2) {\n perTasa = tasaSep16_2;\n }\n if (estrato == 3) {\n perTasa = tasaSep16_3;\n }\n if (estrato == 4) {\n perTasa = tasaSep16_4;\n }\n if (estrato == 5) {\n perTasa = tasaSep16_5;\n }\n if (estrato == 6) {\n perTasa = tasaSep16_6;\n }\n }\n if (periodo == 201608) {\n if (estrato == 1) {\n perTasa = tasaAgo16_1;\n }\n if (estrato == 2) {\n perTasa = tasaAgo16_2;\n }\n if (estrato == 3) {\n perTasa = tasaAgo16_3;\n }\n if (estrato == 4) {\n perTasa = tasaAgo16_4;\n }\n if (estrato == 5) {\n perTasa = tasaAgo16_5;\n }\n if (estrato == 6) {\n perTasa = tasaAgo16_6;\n }\n }\n if (periodo == 201607) {\n if (estrato == 1) {\n perTasa = tasaJul16_1;\n }\n if (estrato == 2) {\n perTasa = tasaJul16_2;\n }\n if (estrato == 3) {\n perTasa = tasaJul16_3;\n }\n if (estrato == 4) {\n perTasa = tasaJul16_4;\n }\n if (estrato == 5) {\n perTasa = tasaJul16_5;\n }\n if (estrato == 6) {\n perTasa = tasaJul16_6;\n }\n }\n if (periodo == 201606) {\n if (estrato == 1) {\n perTasa = tasaJun16_1;\n }\n if (estrato == 2) {\n perTasa = tasaJun16_2;\n }\n if (estrato == 3) {\n perTasa = tasaJun16_3;\n }\n if (estrato == 4) {\n perTasa = tasaJun16_4;\n }\n if (estrato == 5) {\n perTasa = tasaJun16_5;\n }\n if (estrato == 6) {\n perTasa = tasaJun16_6;\n }\n }\n if (periodo == 201605) {\n if (estrato == 1) {\n perTasa = tasaMay16_1;\n }\n if (estrato == 2) {\n perTasa = tasaMay16_2;\n }\n if (estrato == 3) {\n perTasa = tasaMay16_3;\n }\n if (estrato == 4) {\n perTasa = tasaMay16_4;\n }\n if (estrato == 5) {\n perTasa = tasaMay16_5;\n }\n if (estrato == 6) {\n perTasa = tasaMay16_6;\n }\n }\n if (periodo == 201604) {\n if (estrato == 1) {\n perTasa = tasaAbr16_1;\n }\n if (estrato == 2) {\n perTasa = tasaAbr16_2;\n }\n if (estrato == 3) {\n perTasa = tasaAbr16_3;\n }\n if (estrato == 4) {\n perTasa = tasaAbr16_4;\n }\n if (estrato == 5) {\n perTasa = tasaAbr16_5;\n }\n if (estrato == 6) {\n perTasa = tasaAbr16_6;\n }\n }\n if (periodo == 201603) {\n if (estrato == 1) {\n perTasa = tasaMar16_1;\n }\n if (estrato == 2) {\n perTasa = tasaMar16_2;\n }\n if (estrato == 3) {\n perTasa = tasaMar16_3;\n }\n if (estrato == 4) {\n perTasa = tasaMar16_4;\n }\n if (estrato == 5) {\n perTasa = tasaMar16_5;\n }\n if (estrato == 6) {\n perTasa = tasaMar16_6;\n }\n }\n if (periodo == 201602) {\n if (estrato == 1) {\n perTasa = tasaFeb16_1;\n }\n if (estrato == 2) {\n perTasa = tasaFeb16_2;\n }\n if (estrato == 3) {\n perTasa = tasaFeb16_3;\n }\n if (estrato == 4) {\n perTasa = tasaFeb16_4;\n }\n if (estrato == 5) {\n perTasa = tasaFeb16_5;\n }\n if (estrato == 6) {\n perTasa = tasaFeb16_6;\n }\n }\n if (periodo == 201601) {\n if (estrato == 1) {\n perTasa = tasaEne16_1;\n }\n if (estrato == 2) {\n perTasa = tasaEne16_2;\n }\n if (estrato == 3) {\n perTasa = tasaEne16_3;\n }\n if (estrato == 4) {\n perTasa = tasaEne16_4;\n }\n if (estrato == 5) {\n perTasa = tasaEne16_5;\n }\n if (estrato == 6) {\n perTasa = tasaEne16_6;\n }\n }\n if (periodo == 201512) {\n if (estrato == 1) {\n perTasa = tasaDic_1;\n }\n if (estrato == 2) {\n perTasa = tasaDic_2;\n }\n if (estrato == 3) {\n perTasa = tasaDic_3;\n }\n if (estrato == 4) {\n perTasa = tasaDic_4;\n }\n if (estrato == 5) {\n perTasa = tasaDic_5;\n }\n if (estrato == 6) {\n perTasa = tasaDic_6;\n }\n }\n if (periodo == 201511) {\n if (estrato == 1) {\n perTasa = tasaNov_1;\n }\n if (estrato == 2) {\n perTasa = tasaNov_2;\n }\n if (estrato == 3) {\n perTasa = tasaNov_3;\n }\n if (estrato == 4) {\n perTasa = tasaNov_4;\n }\n if (estrato == 5) {\n perTasa = tasaNov_5;\n }\n if (estrato == 6) {\n perTasa = tasaNov_6;\n }\n }\n if (periodo == 201510) {\n if (estrato == 1) {\n perTasa = tasaOct_1;\n }\n if (estrato == 2) {\n perTasa = tasaOct_2;\n }\n if (estrato == 3) {\n perTasa = tasaOct_3;\n }\n if (estrato == 4) {\n perTasa = tasaOct_4;\n }\n if (estrato == 5) {\n perTasa = tasaOct_5;\n }\n if (estrato == 6) {\n perTasa = tasaOct_6;\n }\n }\n if (periodo == 201509) {\n if (estrato == 1) {\n perTasa = tasaSep_1;\n }\n if (estrato == 2) {\n perTasa = tasaSep_2;\n }\n if (estrato == 3) {\n perTasa = tasaSep_3;\n }\n if (estrato == 4) {\n perTasa = tasaSep_4;\n }\n if (estrato == 5) {\n perTasa = tasaSep_5;\n }\n if (estrato == 6) {\n perTasa = tasaSep_6;\n }\n }\n if (periodo == 201508) {\n if (estrato == 1) {\n perTasa = tasaAgo_1;\n }\n if (estrato == 2) {\n perTasa = tasaAgo_2;\n }\n if (estrato == 3) {\n perTasa = tasaAgo_3;\n }\n if (estrato == 4) {\n perTasa = tasaAgo_4;\n }\n if (estrato == 5) {\n perTasa = tasaAgo_5;\n }\n if (estrato == 6) {\n perTasa = tasaAgo_6;\n }\n }\n if (periodo == 201507) {\n if (estrato == 1) {\n perTasa = tasaJul_1;\n }\n if (estrato == 2) {\n perTasa = tasaJul_2;\n }\n if (estrato == 3) {\n perTasa = tasaJul_3;\n }\n if (estrato == 4) {\n perTasa = tasaJul_4;\n }\n if (estrato == 5) {\n perTasa = tasaJul_5;\n }\n if (estrato == 6) {\n perTasa = tasaJul_6;\n }\n }\n if (periodo == 201506) {\n if (estrato == 1) {\n perTasa = tasaJun_1;\n }\n if (estrato == 2) {\n perTasa = tasaJun_2;\n }\n if (estrato == 3) {\n perTasa = tasaJun_3;\n }\n if (estrato == 4) {\n perTasa = tasaJun_4;\n }\n if (estrato == 5) {\n perTasa = tasaJun_5;\n }\n if (estrato == 6) {\n perTasa = tasaJun_6;\n }\n }\n if (periodo == 201505) {\n if (estrato == 1) {\n perTasa = tasaMay_1;\n }\n if (estrato == 2) {\n perTasa = tasaMay_2;\n }\n if (estrato == 3) {\n perTasa = tasaMay_3;\n }\n if (estrato == 4) {\n perTasa = tasaMay_4;\n }\n if (estrato == 5) {\n perTasa = tasaMay_5;\n }\n if (estrato == 6) {\n perTasa = tasaMay_6;\n }\n }\n if (periodo == 201504) {\n if (estrato == 1) {\n perTasa = tasaAbr_1;\n }\n if (estrato == 2) {\n perTasa = tasaAbr_2;\n }\n if (estrato == 3) {\n perTasa = tasaAbr_3;\n }\n if (estrato == 4) {\n perTasa = tasaAbr_4;\n }\n if (estrato == 5) {\n perTasa = tasaAbr_5;\n }\n if (estrato == 6) {\n perTasa = tasaAbr_6;\n }\n }\n return perTasa;\n }", "void displaySpecifiedDayList();", "@Override\n public void onDateSet(DatePicker view, int year, int monthOfYear,\n int dayOfMonth) {\n Calendar calendar = Calendar.getInstance();\n calendar.set(year, monthOfYear, dayOfMonth);\n date = calendar.getTime();\n\n String day = Integer.toString(calendar.get(Calendar.DAY_OF_MONTH));\n String month = Integer.toString(calendar.get(Calendar.MONTH) + 1);\n day = day.length() == 1 ? \"0\" + day : day;\n month = month.length() == 1 ? \"0\" + month : month;\n\n TextView periodGraph = root.findViewById(R.id.periodGraph);\n periodGraph.setText( day + \"/\" + month + \"/\" + calendar.get(Calendar.YEAR));\n drawPlot(date);\n }", "public final void loadEvents() {\n\n if (selectedUser == null || selectedUser.equals(\"All\")) {\n for (Absence a : AbsenceService.getAllUnacknowledged()) {\n\n AbsenceEvent e = new AbsenceEvent(a.getUser().getUsername() + \" \" + a.getAbsenceType(), TimeConverterService.convertLocalDateTimeToDate(a.getStartTime()), TimeConverterService.convertLocalDateTimeToDate(a.getEndTime()), a);\n\n switch (e.getAbsence().getAbsenceType()) {\n\n case MEDICAL_LEAVE:\n e.setStyleClass(\"medical_leave\");\n break;\n case HOLIDAY:\n e.setStyleClass(\"holiday\");\n e.setAllDay(true);\n break;\n case TIME_COMPENSATION:\n e.setStyleClass(\"time_compensation\");\n break;\n case BUSINESSRELATED_ABSENCE:\n e.setStyleClass(\"business-related_absence\");\n break;\n default:\n }\n\n this.addEvent(e);\n }\n } else {\n for (Absence a : AbsenceService.getAbsenceByUserAndUnacknowledged(BenutzerverwaltungService.getUser(selectedUser))) {\n\n AbsenceEvent e = new AbsenceEvent(a.getUser().getUsername() + \" \" + a.getAbsenceType() + \" \" + a.getReason(), TimeConverterService.convertLocalDateTimeToDate(a.getStartTime()), TimeConverterService.convertLocalDateTimeToDate(a.getEndTime()), a);\n\n switch (e.getAbsence().getAbsenceType()) {\n\n case MEDICAL_LEAVE:\n e.setStyleClass(\"medical_leave\");\n break;\n case HOLIDAY:\n e.setStyleClass(\"holiday\");\n e.setAllDay(true);\n break;\n case TIME_COMPENSATION:\n e.setStyleClass(\"time_compensation\");\n break;\n case BUSINESSRELATED_ABSENCE:\n e.setStyleClass(\"business-related_absence\");\n break;\n default:\n }\n\n this.addEvent(e);\n }\n }\n\n DefaultScheduleEvent holidayevent;\n\n for (Holiday h : HolidayService.getList()) {\n holidayevent = new DefaultScheduleEvent(h.getHolidayComment(), TimeConverterService.convertLocalDateToDate(h.getHolidayDate()), TimeConverterService.convertLocalDateToDate(h.getHolidayDate()));\n holidayevent.setAllDay(true);\n holidayevent.setStyleClass(\"feiertag\");\n\n this.addEvent(holidayevent);\n }\n }", "private void agendaFrame() {\n\t\tEventQueue.invokeLater(new Runnable() {\n\t\t\t@Override\n\t\t\tpublic void run() {\n\t\t\t\tfinal JFrame frame = new JFrame(\"Please select a time period.\");\n\t\t\t\tframe.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);\n\t\t\t\ttry {\n\t\t\t\t\tUIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tJPanel panel = new JPanel();\n\t\t\t\tpanel.setLayout(new GridLayout(1, 4));\n\t\t\t\t//JTextField d = new JTextField(\"\" + year + \"/\" + month + \"/\" + day);\n\t\t\t\tfinal JTextField startDate = new JTextField(\"1\" + \"/1\" + \"/2016\");\n\t\t\t\tJTextField to = new JTextField(\"to\");\n\t\t\t\tto.setEditable(false);\n\t\t\t\tfinal JTextField endDate = new JTextField(\"1\" + \"/2\" + \"/2016\");\n\t\t\t\tJButton go = new JButton(\"Go\");\n\t\t\t\t\n\t\t\t\tgo.addActionListener(new ActionListener() {\n\t\t\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\t\teventsRender = new AgendaViewRender();\n\t\t\t\t\t\tAgendaViewRender.setStartDate(startDate.getText());\n\t\t\t\t\t\tAgendaViewRender.setEndDate(endDate.getText());\n\t\t\t\t\t\tupdateEventsView(eventsRender);\n\t\t\t\t\t\tframe.dispatchEvent(new WindowEvent(frame, WindowEvent.WINDOW_CLOSING));\n\t\t\t\t\t}\n\t\t\t\t});\n\n\t\t\t\tpanel.add(startDate);\n\t\t\t\tpanel.add(to);\n\t\t\t\tpanel.add(endDate);\n\t\t\t\tpanel.add(go);\n\t\t\t\t\n\t\t\t\tframe.setSize(500, 100);\n\t\t\t\tframe.setLayout(new GridLayout(2, 1));\n\t\t\t\tframe.add(panel);\n\t\t\t\tframe.setLocationByPlatform(true);\n\t\t\t\tframe.setVisible(true);\n\n\t\t\t}\n\t\t});\n\t}", "@Nullable String getCollectionPeriod();", "@Override\n public void onSelectedDayChange(CalendarView view, int year, int month, int dayOfMonth) {\n Toast.makeText(getContext(), dayOfMonth + \"/\" + month + \"/\" + year, Toast.LENGTH_LONG).show();\n }", "public String getPeriod() {\n return period;\n }", "public WeekPanel(CalendarEx calendar) {\n initComponents();\n cal = calendar;\n startEndDay(CalendarEx.getCurrentDay(), CalendarEx.getCurrentMonth(), CalendarEx.getCurrentYear());\n //startDay = new CalendarDate(CalendarEx.getCurrentDay(), CalendarEx.getCurrentMonth(), CalendarEx.getCurrentYear());\n //endDay = new CalendarDate(CalendarEx.getCurrentDay() + 6, CalendarEx.getCurrentMonth(), CalendarEx.getCurrentYear());\n \n ListAppointMents();\n WeekLabel.setText(startDay.toString() + \" - \" + endDay.toString());\n }", "public CalendarEventView getCalendarEventView()\r\n {\n CalendarEventView cView = new CalendarEventView(\"appointmentView\");;\r\n\r\n cView.setEventId(getEventId());\r\n return cView;\r\n }", "public void onDateSelect(SelectEvent event) {\r\n\t\t/**\r\n\t\t * FacesContext facesContext = FacesContext.getCurrentInstance();\r\n\t\t * SimpleDateFormat format = new SimpleDateFormat(\"dd/MM/yyyy\");\r\n\t\t * facesContext.addMessage(null, new FacesMessage(FacesMessage.SEVERITY_INFO,\r\n\t\t * \"Date Selected\", format.format(event.getObject())));\r\n\t\t */\r\n\t}", "public void modify() {\n\t\tselectedView.printCalendar(mc.getCalendar());\n\t}", "@Override\n public void onDateSet(DatePicker view, int year, int monthOfYear, int dayOfMonth) {\n myCalendar.set(Calendar.YEAR, year);\n myCalendar.set(Calendar.MONTH, monthOfYear);\n myCalendar.set(Calendar.DAY_OF_MONTH, dayOfMonth);\n updateLabel();\n\n\n }", "@Override\n public void onClick() {\n showMonthViewWithBelowEvents();\n }", "private void Button_PeriodActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_Button_PeriodActionPerformed\n // TODO add your handling code here:\n if(period == false)\n {\n display.setText(display.getText() + \".\");\n }\n \n period = true;\n }", "@Override\n public void onSelectedDayChange(CalendarView view, int year, int month,\n int dayOfMonth) {\n\n Toast.makeText(getBaseContext(),\"Selected Date is\\n\\n\"\n +dayOfMonth+\" : \"+month+\" : \"+year ,\n Toast.LENGTH_LONG).show();\n }", "Collection<CalendarEvent> getActiveEvents(long when)\n{\n List<CalendarEvent> rslt = new ArrayList<CalendarEvent>();\n try {\n getAllEvents(when);\n rslt.addAll(cal_events);\n }\n catch (Exception e) {\n BasisLogger.logE(\"GOOGLECAL: problem getting events\",e);\n }\n return rslt;\n}", "@Override\n\tpublic void mouseClicked(MouseEvent e) {\n\n\t\tif (jfad.tPeriodos.getSelectedRow() != -1) {\n\t\t\trellenarCampos();\n\t\t} else {\n\t\t\tJOptionPane.showMessageDialog(vista, \"Escoge un periodo para ver las reservas\", \"Info\", JOptionPane.INFORMATION_MESSAGE);\n\t\t}\n\t}", "public int getPeriod()\r\n\t{\r\n\t\treturn period;\r\n\t}", "@Override\n public void onClick(View v) {\n new DatePickerDialog(getActivity(), enddatepicker, trigger.getEndtime().get(Calendar.YEAR), trigger.getEndtime().get(Calendar.MONTH), trigger.getEndtime().get(Calendar.DAY_OF_MONTH)).show();\n }", "public ICalendar getCalendar() {\n return calendar;\n }", "public String getPeriod() {\n return this.period;\n }", "public Period getPeriod() {\n return period;\n }", "public int getPeriod() {\n return period;\n }", "public void showByMonthBtn(ActionEvent event) throws IOException, Exception {\r\n\r\n appointments.clear();\r\n appointments.addAll(Appointment.getAppointmentsByMonth());\r\n\r\n }", "public static void printAllEventListInSortedOrder(){\n sortEvents();\n for(int i=0;i<events.size();i++){\n System.out.println((events.get(i).getMonth()+1)+\"/\"+events.get(i).getDate()+\"/\"+events.get(i).getYear()+\" \"+events.get(i).getStringStartandFinish()+\" \"+events.get(i).getEventTitle());\n }\n }", "public Calendar getCal() {\n return cal;\n }", "int getPeriod();", "private void periodTypeComboBoxActionPerformed(java.awt.event.ActionEvent evt) {\n\n // Determining selection and filling\n switch (periodTypeComboBox.getSelectedItem().toString()) {\n case \"Monthly\":\n unitLabel.setText(\"Month:\");\n dates = new ArrayList<>();\n\n // Adding dates\n monthlyTotals.stream().forEach((w) -> {\n dates.add(w.getDate());\n });\n\n Collections.sort(dates, MonthComparator.ascending(MonthComparator.getComparator(MonthComparator.DATE_SORT)));\n Collections.reverse(dates);\n\n // Removing duplicate dates\n set = new LinkedHashSet<>(dates);\n\n // Setting model\n periodComboBox.setModel(new javax.swing.DefaultComboBoxModel<>(set.toArray()));\n periodComboBox.setEnabled(true);\n periodComboBox.setSelectedIndex(0);\n break;\n case \"Yearly\":\n unitLabel.setText(\"Year:\");\n dates = new ArrayList<>();\n\n // Adding dates\n yearlyTotals.stream().map((w) -> {\n dates.add(w.getDate());\n return w;\n }).forEach((w) -> {\n periodList.add(w);\n });\n Collections.sort(dates);\n Collections.reverse(dates);\n\n // Removing duplicate dates\n set = new LinkedHashSet<>(dates);\n\n // Setting model\n periodComboBox.setModel(new javax.swing.DefaultComboBoxModel<>(set.toArray()));\n periodComboBox.setEnabled(true);\n periodComboBox.setSelectedIndex(0);\n break;\n case \"Historical\":\n unitLabel.setText(\"\");\n periodComboBox.setModel(new javax.swing.DefaultComboBoxModel<>());\n periodComboBox.addItem(\"\");\n periodComboBox.setEnabled(false);\n periodComboBox.setSelectedIndex(0);\n break;\n\n // No selection, do not fill\n default:\n periodComboBox.setModel(new javax.swing.DefaultComboBoxModel<>());\n break;\n }\n }", "public void populateCalendar(YearMonth yearMonth) {\n LocalDate calendarDate = LocalDate.of(yearMonth.getYear(), yearMonth.getMonthValue(), 1);\n // Dial back the day until it is SUNDAY (unless the month starts on a sunday)\n while (!calendarDate.getDayOfWeek().toString().equals(\"MONDAY\")) {\n calendarDate = calendarDate.minusDays(1);\n }\n // Populate the calendar with day numbers\n for (AnchorPaneNode ap : allCalendarDays) {\n if (ap.getChildren().size() != 0) {\n ap.getChildren().remove(0);\n }\n LocalDate date = calendarDate;\n Text dayText = new Text(String.valueOf(date.getDayOfMonth()));\n ap.setDate(calendarDate);\n AnchorPane.setTopAnchor(dayText, 5.0);\n AnchorPane.setLeftAnchor(dayText, 5.0);\n ap.getChildren().add(dayText);\n MyNotes myNotes = Main.getRepository().getByDate(date);\n if (myNotes.getCountNotes() > 0) {\n Text notes = new Text(String.valueOf(myNotes.getCountNotes()));\n notes.setFill(Color.GREEN);\n AnchorPane.setTopAnchor(notes, 35.0);\n AnchorPane.setLeftAnchor(notes, 35.0);\n ap.getChildren().add(notes);\n }\n calendarDate = calendarDate.plusDays(1);\n }\n // Change the title of the calendar\n calendarTitle.setText(\" \" + Transcription.getMonth(yearMonth) + \" \" + yearMonth.getYear() + \" \");\n }", "public static void printDonationCalendar() {\n\t\t\tString [] args = null;\n\t\t\tScheduler.main(args);\n\t\t}", "double getPeriod();", "public static String dateDisplay(Calendar cal) {\n\t\tLONGDAYS[] arrayOfDays = LONGDAYS.values();\n\t\tString toReturn = cal.get(Calendar.MONTH)+1 + \"/\" + cal.get(Calendar.DAY_OF_MONTH);\n\t\ttoReturn = arrayOfDays[cal.get(Calendar.DAY_OF_WEEK)-1] + \" \" + toReturn;\n\t\treturn toReturn;\n\t}", "public static String displayMainMenu(Calendar c) { \n\t\tlistOfButtons.clear();\n\t\tspaceCounter = 0;\n\t\tString toReturn = \"\";\n\t\tMONTHS[] arrayOfMonths = MONTHS.values(); // should be in constructor\n\t\tDAYS[] arrayOfDays = DAYS.values();\n\t\ttodayDate = c.get(Calendar.DAY_OF_MONTH);\n\t\tSystem.out.println(\"todaydate: \" + todayDate);\n\t\tint todayDayOfWeek = c.get(Calendar.DAY_OF_WEEK);\n\t\tint month = c.get(Calendar.MONTH);\n\t\t\n\t\t\n\n\t\tGregorianCalendar temp1 = new GregorianCalendar(c.get(Calendar.YEAR), c.get(Calendar.MONTH), 1);\n\t\tint firstDayOfWeek = temp1.get(Calendar.DAY_OF_WEEK);\n\t\tnumberOfDays = temp1.getActualMaximum(Calendar.DAY_OF_MONTH);\n\t\tmonthString = (arrayOfMonths[temp1.get(GregorianCalendar.MONTH)] + \" \" + temp1.get(GregorianCalendar.YEAR));\n\t\ttoReturn += monthString;\n\t\ttoReturn += \"\\n\";\n\n\t\tfor (int i = 0; i < arrayOfDays.length; i++) {\n\t\t\ttoReturn += (arrayOfDays[i] + \" \");\n\t\t}\n//\t\tSystem.out.println();\n//\t\ttoReturn += \"\\n\";\n\t\t\n\t\tfor (int i = 1; i < numberOfDays + firstDayOfWeek; i++) {\n\t\t\tif (i < firstDayOfWeek) {\n//\t\t\t\ttoReturn += (\" \");\n\t\t\t\tspaceCounter++;\n\t\t\t} else {\n\t\t\t\tif (i % 7 != 1 && i != firstDayOfWeek) {\n\n//\t\t\t\t\ttoReturn += (\" \");\n\t\t\t\t\tif ((i - firstDayOfWeek + 1) <= 9) {\n//\t\t\t\t\t\ttoReturn += (\" \");\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t\tif (((i - firstDayOfWeek + 1) == todayDate) && (month == temp1.get(GregorianCalendar.MONTH))\n\t\t\t\t\t\t&& (c.get(Calendar.YEAR) == temp1.get(GregorianCalendar.YEAR))) {\n\t\t\t\t\tJButton button = new JButton ( Integer.toString(i - firstDayOfWeek + 1) );\n\t\t\t\t\tlistOfButtons.add(button);\n\t\t\t\t} else {\n\t\t\t\t\tJButton button = new JButton (Integer.toString(i - firstDayOfWeek + 1));\n\t\t\t\t\tlistOfButtons.add(button);\n\t\t\t\t}\n\t\t\t\tif ((i) % 7 == 0) {\n//\t\t\t\t\ttoReturn += \"\\n\";\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn toReturn;\n\t}", "public void OnClickCalendar() {\n binding.timelinetext.setBackground(getResources().getDrawable(R.drawable.dashboardlinebg));\n binding.timelinetext.setTextColor(Color.parseColor(\"#000000\"));\n binding.calendartext.setBackground(getResources().getDrawable(R.drawable.timelinetab_bg));\n binding.calendartext.setTextColor(Color.parseColor(\"#ffffff\"));\n binding.weektext.setBackground(getResources().getDrawable(R.drawable.dashboardlinebg));\n binding.weektext.setTextColor(Color.parseColor(\"#000000\"));\n binding.daytext.setBackground(getResources().getDrawable(R.drawable.dashboardlinebg));\n binding.daytext.setTextColor(Color.parseColor(\"#000000\"));\n\n binding.firstlastDate.setVisibility(View.INVISIBLE);\n binding.firstlastDatecal.setVisibility(View.VISIBLE);\n binding.firstlastDateDay.setVisibility(View.INVISIBLE);\n\n CalendarFragment fgm = new CalendarFragment();\n// if (IsSearchable) {\n// Bundle bundle = new Bundle();\n// bundle.putString(\"regionfilter\", regionList.get(binding.regionspinner.getSelectedItemPosition()).id);\n// bundle.putString(\"jobfilter\", binding.etJobticketno.getText().toString().split(\"-\")[0]);\n// fgm.setArguments(bundle);\n// }\n Bundle bundle = new Bundle();\n bundle.putString(\"calDate\", binding.firstlastDatecal.getText().toString());\n fgm.setArguments(bundle);\n replaceFragmentWithoutBack(fgm);\n }", "public void agendaView(Date f, Date t, GregorianCalendar c) {\n\t\tselectedView.printAgendaView(f, t, c);\n\t}", "@Override\n public void onDateSet(DatePicker view, int year, int monthOfYear,\n int dayOfMonth) {\n myCalendar.set(Calendar.YEAR, year);\n myCalendar.set(Calendar.MONTH, monthOfYear);\n myCalendar.set(Calendar.DAY_OF_MONTH, dayOfMonth);\n updateLabel(edtanniversry);\n }", "@Override\n public void onDateSet(DatePicker view, int year,\n int monthOfYear, int dayOfMonth) {\n cal.set(year, monthOfYear, dayOfMonth);\n\n edt.setText(dateFormatter.format(cal.getTime()));\n\n }", "public void printApp(Date dat)\n {\n if(cal.containsKey(dat)){\n List x = [];\n x = cal.get(dat);\n System.out.println(\"Your appointments for \" + dat + \"are: \\n\");\n for(int i = 0; i<x.size(); i++){\n System.out.println(x.get(i).getStartTime() + x.get(i).getEndTime() + x.get(i).getDescription());\n }\n }else{\n System.out.println(\"No appointments\");\n }\n \n }", "@Override\n public void onDateSet(DatePicker view, int year, int monthOfYear,\n int dayOfMonth) {\n myCalendar.set(Calendar.YEAR, year);\n// myCalendar.set(Calendar.MONTH, monthOfYear);\n// myCalendar.set(Calendar.DAY_OF_MONTH, dayOfMonth);\n updateLabel();\n }", "public void onDateSet(DatePicker view, int selectedYear,\n int selectedMonth, int selectedDay) {\n Calendar calendarNow = (Calendar) endCalendar.clone();\n calendarNow.set(selectedYear, selectedMonth, selectedDay);\n if (calendarNow.getTimeInMillis() < view.getMinDate()) {\n enddaShowDatePickerDialog();\n Toast.makeText(getActivity(), getResources().getString(R.string.createOrder_datePicker_selectPastDate), Toast.LENGTH_SHORT).show();\n view.updateDate(endCalendar.get(Calendar.YEAR), endCalendar.get(Calendar.MONTH), endCalendar.get(Calendar.DAY_OF_MONTH));\n }\n\n endYear = selectedYear;\n endMonth = selectedMonth;\n endDay = selectedDay;\n endCalendar.set(selectedYear, selectedMonth, selectedDay);\n tvEndda.setText(new StringBuilder().append(char2(endDay))\n .append(\".\").append(char2(endMonth + 1)).append(\".\").append(endYear));\n\n if (tvBegda.getText().toString().equals(getResources().getString(R.string.leave_dmy))) {\n begYear = selectedYear;\n begMonth = selectedMonth;\n begDay = selectedDay;\n begCalendar.set(selectedYear, selectedMonth, selectedDay);\n tvBegda.setText(new StringBuilder().append(char2(begDay))\n .append(\".\").append(char2(begMonth + 1)).append(\".\").append(begYear));\n }\n }", "private static void printCalendar(int numberOfMonthDays, int firstWeekdayOfMonth, ArrayList<Integer> eventDates) {\n\n\t\t// reset index of weekday\n\t\tint weekdayIndex = 0;\n\n\t\t// print calendar weekday header\n\t\tSystem.out.println(\"Su Mo Tu We Th Fr Sa\");\n\n\t\t// leave/skip weekdays before the first day of month\n\t\tfor (int day = 1; day < firstWeekdayOfMonth; day++) {\n\t\t\tSystem.out.print(\" \");\n\t\t\tweekdayIndex++;\n\t\t}\n\t\t// print the days of month in tabular format.\n\t\tfor (int day = 1; day <= numberOfMonthDays; day++) {\n\n\t\t\tif (eventDates.contains(day))\n\t\t\t\t// print day\n\t\t\t\tSystem.out.printf(\"[%d]\", day);\n\t\t\telse\n\t\t\t\tSystem.out.printf(\"%2d\", day);\n\t\t\t// next weekday\n\t\t\tweekdayIndex++;\n\t\t\t// if it is the last weekday\n\t\t\tif (weekdayIndex == 7) {\n\t\t\t\t// reset it\n\t\t\t\tweekdayIndex = 0;\n\t\t\t\t// and go to next line\n\t\t\t\tSystem.out.println();\n\t\t\t} else { // otherwise\n\t\t\t\t// print space\n\t\t\t\tSystem.out.print(\" \");\n\t\t\t}\n\t\t}\n\n\t\t// print a final new-line.\n\t\tSystem.out.println();\n\t}", "@Override\n\t/**\n\t * Defines the look of the day view grid (the division of hours and events throughout the day) \n\t * @param c GregorianCalendar holding the year to be drawn\n\t * @param d the data model holding event information \n\t * @param g2 the graphics package\n\t * @param container the container that will rely on this method to define it's look and feel \n\t */\n\tpublic void drawEventGrid(GregorianCalendar c, DataModel d, Graphics2D g2, Component container)\n\t{\n\t\t\t\tLine2D.Double vertLine = new Line2D.Double(60, 0, 60, container.getHeight()); \n\t\t\t\tg2.setColor(Color.LIGHT_GRAY);\n\t\t\t\tg2.draw(vertLine);\n\n\t\t\t\t//Draw the time text\n\t\t\t\tint hour = 1; \n\t\t\t\tString halfOfDay = \"am\"; \n\n\t\t\t\tfor (int i = 0; i<24; i ++)\n\t\t\t\t{\t\n\t\t\t\t\tif (i < 23)\n\t\t\t\t\t{\n\t\t\t\t\t\tg2.setColor(Color.BLACK);\n\t\t\t\t\t\tif (i == 11)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\thalfOfDay = \"pm\";\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (i == 12)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\thour = 1; \n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tString time = Integer.toString(hour) + halfOfDay; \n\t\t\t\t\t\thour++; \n\t\t\t\t\t\tg2.drawString(time, 20, ( i + 1 )*60);\n\t\t\t\t\t}\n\n\n\t\t\t\t\t//Draw the Lines indicating where hours begin \n\t\t\t\t\tg2.setColor(Color.LIGHT_GRAY);\n\t\t\t\t\tLine2D.Double hourLine = new Line2D.Double(60, i*60, container.getWidth(), i*60); \n\t\t\t\t\tg2.draw(hourLine); \n\n\t\t\t\t}\n\n\t\t\t\t//Get events from the datModel \n\t\t\t\tTreeSet<Event> events = d.getEvents(c.get(Calendar.MONTH) + 1 , c.get(Calendar.DAY_OF_MONTH), c.get(Calendar.YEAR));\n\t\t\t\tif (events.size() != 0)\n\t\t\t\t{\n\t\t\t\t\tfor (Event e : events)\n\t\t\t\t\t{\n\t\t\t\t\t\tg2.setColor(Color.BLUE);\n\t\t\t\t\t\tString eventStart = e.getStartTime(); \n\t\t\t\t\t\tString eventEnd = e.getEndTime(); \n\t\t\t\t\t\tint startHour = Integer.parseInt(eventStart.substring(0,2)); \n\t\t\t\t\t\tint startMin = Integer.parseInt(eventStart.substring(3)); \n\t\t\t\t\t\tint endHour = Integer.parseInt(eventEnd.substring(0,2)); \n\t\t\t\t\t\tint endMin = Integer.parseInt(eventEnd.substring(3)); \n\n\t\t\t\t\t\t//Draw the Rectangle representing the scheduled event \n\t\t\t\t\t\tRectangle2D.Double eventBox = new Rectangle2D.Double(60, ((startHour * 60) + startMin), \n\t\t\t\t\t\t\t\tcontainer.getWidth(), ((endHour * 60) - (startHour * 60) + (endMin - startMin)) ); \n\t\t\t\t\t\tg2.fill(eventBox);\n\n\t\t\t\t\t\t//Draw the event details onto the rectangle\n\t\t\t\t\t\tFontMetrics fm = g2.getFontMetrics(container.getFont()); \n\t\t\t\t\t\tg2.setColor(Color.WHITE);\n\t\t\t\t\t\tg2.drawString( \" \" + e.getName() + \" \" + e.getStartTime() + \" - \" + e.getEndTime(), 60, ((startHour * 60) + startMin + fm.getHeight())); \n\t\t\t\t\t}\n\t\t\t\t}\n\n\n\t}", "@Override\n public void onClick(View view) {\n new DatePickerDialog(AddEventActivity.this, end_Journey_Date, myCalendar\n .get(Calendar.YEAR), myCalendar.get(Calendar.MONTH),\n myCalendar.get(Calendar.DAY_OF_MONTH)).show();\n }", "@FXML\n public void bookingHistoryClicked(ActionEvent event) {\n try {\n Stage stage = (Stage) ((Node) event.getSource()).getScene().getWindow();\n CalendarPaneController.thisStage = stage;\n CalendarPaneView cpv = new CalendarPaneView();\n cpv.start(stage);\n } catch (Exception e) {\n logger.log(Level.SEVERE, e.toString());\n }\n }", "@Override\n\t\t\tpublic void valueChanged(ListSelectionEvent arg0) {\n\t\t\t\tif (!arg0.getValueIsAdjusting()){\n\t\t\t\t\ttimePeriodJListModel.clear();\n\t\t\t\t\tKIDSUIEventComponent selected = eventJList.getSelectedValue();\n\t\t\t\t\t\n\t\t\t\t\tSet<KIDSUITimePeriodComponent> tplist = selected.getAvailableTimePeriods();\n\n\t\t\t\t\t// Clear TimePeriodList selection (if any)\n\t\t\t\t\ttimePeriodJList.clearSelection();\n\t\t\t\t\t\n\t\t\t\t\tfor (KIDSUITimePeriodComponent t : tplist){\n\t\t\t\t\t\ttimePeriodJListModel.addElement(t);\n\t\t\t\t\t}\n\t\t\t\t\tselectedEvent = selected;\n\t\t\t\t}\n\t\t\t}", "Calendar getCalendar();", "public String getCalendarString() {\n return calendarString;\n }", "@Override\n\t\t\tpublic void onClick(View arg0) {\n\n\t\t\t\tgetLayouts();\n\n\t\t\t\tCalendar next = (Calendar) calendar.clone();\n\n\t\t\t\tif (currentMonth > 11) {\n\t\t\t\t\tcurrentMonth = 1;\n\t\t\t\t\tcurrentYear++;\n\t\t\t\t} else {\n\t\t\t\t\tcurrentMonth++;\n\t\t\t\t}\n\n\t\t\t\tnext.set(Calendar.MONTH, currentMonth);\n\t\t\t\tnext.set(Calendar.YEAR, currentYear);\n\t\t\t\tnext.set(Calendar.DATE, 1);\n\n\t\t\t\tpositionNext = next.getTime().toString().split(\" \");\n\t\t\t\tgetCalendar(\n\t\t\t\t\t\tReturnCalendarDetails.getCurrentMonth(positionNext[1]),\n\t\t\t\t\t\tReturnCalendarDetails.getPosition(positionNext[0]),\n\t\t\t\t\t\tInteger.parseInt(positionNext[5]));\n\t\t\t}", "@Override\n public void onDateSet(DatePicker view, int year, int monthOfYear,int dayOfMonth) {\n myCalendar.set(Calendar.YEAR, year);\n myCalendar.set(Calendar.MONTH, monthOfYear);\n myCalendar.set(Calendar.DAY_OF_MONTH, dayOfMonth);\n updateLabel1();\n }", "@Override\n\tpublic List getCalendars() {\n\t return null;\n\t}", "public void add_events_screen(View view) {\n Calendar calendar = Calendar.getInstance();\n calendar.set(selectedYear, selectedMonth, selectedDay);\n\n Intent intent = new Intent(Intent.ACTION_EDIT);\n intent.setType(\"vnd.android.cursor.item/event\");\n intent.putExtra(CalendarContract.Events.TITLE, \"\");\n intent.putExtra(CalendarContract.EXTRA_EVENT_BEGIN_TIME, calendar.getTimeInMillis());\n intent.putExtra(CalendarContract.EXTRA_EVENT_END_TIME, calendar.getTimeInMillis());\n intent.putExtra(CalendarContract.Events.ALL_DAY, false);\n intent.putExtra(CalendarContract.Events.DESCRIPTION,\"\");\n startActivity(intent);\n }", "@Override\n public void onDateSet(DatePicker view, int year, int monthOfYear,\n int dayOfMonth) {\n myCalendar.set(Calendar.YEAR, year);\n myCalendar.set(Calendar.MONTH, monthOfYear);\n myCalendar.set(Calendar.DAY_OF_MONTH, dayOfMonth);\n updateLabel1();\n\n }", "public static void eventList() {\n\t\tfor (Map.Entry<Calendar, TreeSet<Event>> entry : calendarToEvent.entrySet()) {\n\t\t\tTreeSet<Event> value = entry.getValue();\n\t\t\tfor (Event e: value) {\n\t\t\t\tSystem.out.println(e.toString());\n\t\t\t}\n\t\t}\n\t}", "@Override\n public void onDateSet(DatePicker view, int year, int monthOfYear,\n int dayOfMonth) {\n to_calendar.set(Calendar.YEAR, year);\n to_calendar.set(Calendar.MONTH, monthOfYear);\n to_calendar.set(Calendar.DAY_OF_MONTH, dayOfMonth);\n updateToLabel();\n }", "public void mousePressed(CalLabel label,java.awt.event.MouseEvent e) {\n if(mode == CalendarPanel.DAY_MODE || mode == CalendarPanel.CUSTOM_MODE || mode == PSCalendar.HOUR_MODE)\r\n calPanel.labelSelected(label);\r\n else if(mode == CalendarPanel.WEEK_MODE) {\r\n isSelected = true;\r\n calPanel.groupSelected(this);\r\n setBackground(CalendarPanel.lowerColor);\r\n }else{}\r\n\r\n //04.03.25_ÇõÀÌ\r\n if(e.getClickCount() >= 2) {\r\n calPanel.dispatchMouseDoubleClicked();\r\n }\r\n\t}", "@Override\n public void onDateSet(DatePicker view, int year, int monthOfYear,\n int dayOfMonth) {\n myCalendar.set(Calendar.YEAR, year);\n myCalendar.set(Calendar.MONTH, monthOfYear);\n myCalendar.set(Calendar.DAY_OF_MONTH, dayOfMonth);\n updateLabel();\n }", "@Override\n public void onDateSet(DatePicker view, int year, int monthOfYear,\n int dayOfMonth) {\n myCalendar.set(Calendar.YEAR, year);\n myCalendar.set(Calendar.MONTH, monthOfYear);\n myCalendar.set(Calendar.DAY_OF_MONTH, dayOfMonth);\n updateLabel();\n }", "@Override\n public void onDateSet(DatePicker view, int year, int monthOfYear,\n int dayOfMonth) {\n myCalendar.set(Calendar.YEAR, year);\n myCalendar.set(Calendar.MONTH, monthOfYear);\n myCalendar.set(Calendar.DAY_OF_MONTH, dayOfMonth);\n updateLabel();\n }", "@Override\n public void onDateSet(DatePicker view, int year, int monthOfYear,\n int dayOfMonth) {\n myCalendar.set(Calendar.YEAR, year);\n myCalendar.set(Calendar.MONTH, monthOfYear);\n myCalendar.set(Calendar.DAY_OF_MONTH, dayOfMonth);\n updateLabel();\n }", "@Override\n public void onDateSet(DatePicker view, int year, int monthOfYear,\n int dayOfMonth) {\n myCalendar.set(Calendar.YEAR, year);\n myCalendar.set(Calendar.MONTH, monthOfYear);\n myCalendar.set(Calendar.DAY_OF_MONTH, dayOfMonth);\n updateLabel();\n }", "@Override\n public void onDateSet(DatePicker view, int year, int monthOfYear,\n int dayOfMonth) {\n myCalendar.set(Calendar.YEAR, year);\n myCalendar.set(Calendar.MONTH, monthOfYear);\n myCalendar.set(Calendar.DAY_OF_MONTH, dayOfMonth);\n updateLabel();\n }", "@Override\n public void onDateSet(DatePicker view, int year, int monthOfYear,\n int dayOfMonth) {\n myCalendar.set(Calendar.YEAR, year);\n myCalendar.set(Calendar.MONTH, monthOfYear);\n myCalendar.set(Calendar.DAY_OF_MONTH, dayOfMonth);\n updateLabel();\n }", "@Override\n public void onDateSet(DatePicker view, int year, int monthOfYear,\n int dayOfMonth) {\n myCalendar.set(Calendar.YEAR, year);\n myCalendar.set(Calendar.MONTH, monthOfYear);\n myCalendar.set(Calendar.DAY_OF_MONTH, dayOfMonth);\n updateLabel();\n }", "@Override\n public void onDateSet(DatePicker view, int year, int monthOfYear,\n int dayOfMonth) {\n myCalendar.set(Calendar.YEAR, year);\n myCalendar.set(Calendar.MONTH, monthOfYear);\n myCalendar.set(Calendar.DAY_OF_MONTH, dayOfMonth);\n updateLabel();\n }", "@Override\n public void onDateSet(DatePicker view, int year, int monthOfYear,\n int dayOfMonth) {\n myCalendar.set(Calendar.YEAR, year);\n myCalendar.set(Calendar.MONTH, monthOfYear);\n myCalendar.set(Calendar.DAY_OF_MONTH, dayOfMonth);\n updateLabel();\n }", "@Override\n public void onDateSet(DatePicker view, int year, int monthOfYear,\n int dayOfMonth) {\n myCalendar.set(Calendar.YEAR, year);\n myCalendar.set(Calendar.MONTH, monthOfYear);\n myCalendar.set(Calendar.DAY_OF_MONTH, dayOfMonth);\n updateLabel();\n }", "public final process.proxies.ChangeCalenderSelection getCalendarSelection()\r\n\t{\r\n\t\treturn getCalendarSelection(getContext());\r\n\t}", "@Override\n public void onDateSet(DatePicker view, int year, int monthOfYear,\n int dayOfMonth) {\n myCalendar.set(Calendar.YEAR, year);\n myCalendar.set(Calendar.MONTH, monthOfYear);\n myCalendar.set(Calendar.DAY_OF_MONTH, dayOfMonth);\n updateLabel(to_date);\n }", "public String viewAllCalendars() throws RemoteException {\n\t\tSystem.out.println(\"Server: Message > \" + \"viewAllCalendars() invoked\");\n\t\tStringBuilder sb = new StringBuilder();\n\t\tif (!names.isEmpty()) {\n\t\t\tfor (String name : userCalendar.keySet()) {\n\t\t\t\tsb.append(\"\\t\\t\\t \" + name + \"'s CALENDAR\\n\");\n\t\t\t\tsb.append(\".......................................................................\\n\");\n\t\t\t\tsb.append(\"TIME \\t\\t EVENT \\t\\t\\t ACCESS\\n\");\n\t\t\t\tsb.append(\".......................................................................\\n\");\n\t\t\t\tArrayList<Event> list = userCalendar.get(name);\n\t\t\t\tif (name.equalsIgnoreCase(userName)) {\n\t\t\t\t\tArrayList<Event> apptList = userCalendar.get(name); // gets the list of events for the current user (name)\n\t\t\t\t\tfor (Event event : apptList) {\n\t\t\t\t\t\t// Check if the user is the group member\n\t\t\t\t\t\tif(event.getAccess().equalsIgnoreCase(\"Group\") && !event.getDescription().contains(userName)) {\n\t\t\t\t\t\t\tsb.append(event.getTime() + \"\\t\\t\" +\n\t\t\t\t\t\t\t\"---------\" + \"\\t\\t\" +\n\t\t\t\t\t\t\tevent.getAccess() + \"\\n\");\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tsb.append(event.getTime() + \"\\t\\t\" +\n\t\t\t\t\t\t\tevent.getDescription() + \"\\t\\t\" +\n\t\t\t\t\t\t\tevent.getAccess() + \"\\n\");\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\t// Do not display \"private\" events if the !this.userName\n\t\t\t\t\tArrayList<Event> apptList = userCalendar.get(name); // gets the list of events for the current user (name)\n\t\t\t\t\tfor (Event event : apptList) {\n\t\t\t\t\t\tif (!event.getAccess().equalsIgnoreCase(\"Private\")) {\n\t\t\t\t\t\t\tif(event.getAccess().equalsIgnoreCase(\"Group\") && !event.getDescription().contains(userName)) {\n\t\t\t\t\t\t\t\tsb.append(event.getTime() + \"\\t\\t\" +\n\t\t\t\t\t\t\t\t\"---------\" + \"\\t\\t\" +\n\t\t\t\t\t\t\t\tevent.getAccess() + \"\\n\");\n\t\t\t\t\t\t\t} else { \n\t\t\t\t\t\t\t\tsb.append(event.getTime() + \"\\t\\t\" +\n\t\t\t\t\t\t\t\t\tevent.getDescription() + \"\\t\\t\" +\n\t\t\t\t\t\t\t\t\tevent.getAccess() + \"\\n\");\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\tsb.append(\"***********************************************************************\\n\\n\");\n\t\t\t\tsb.append(\"\\n\");\n\t\t\t}\n\t\t}\n\t\treturn sb.toString();\n\t}", "private void gregorianCalendar() {\n\t\tCalendar calendar = context.getBean(\"calendar\",Calendar.class);\n\t\tDateFormat formatter = (DateFormat) context.getBean(\"formatter\");\n\t\tSystem.out.println(formatter.format(calendar.getTime()));\n\t}", "@Override\n public void onDateSet(DatePicker view, int year, int monthOfYear,\n int dayOfMonth) {\n myCalendar.set(Calendar.YEAR, year);\n myCalendar.set(Calendar.MONTH, monthOfYear);\n myCalendar.set(Calendar.DAY_OF_MONTH, dayOfMonth);\n updateLabel(from_date);\n }", "public void displayCalendar(Resident res, CalendarService cal){\n \tLog.d(UI_MODE_SERVICE, \"Entered displayCalendar\");\n \t\n \t// Get the list of times that each medication needs to be taken at...\n \tmedApts = cal.getResidentMedications(res);\n \t\n \t// Sort medApts by time...\n \tsortMedApts(medApts);\n \t\n \t// Lets just get the names from the medApts and put it into an ArrayList?\n \tArrayList<String> strMedApts = new ArrayList<String>();\n \tfor(int i = 0; i < medApts.size(); i++){\n \t\tstrMedApts.add(medApts.toString());\n \t\tLog.d(UI_MODE_SERVICE, \"MedApt\" + i + \": \" + strMedApts.get(i));\n \t}\n \t\n \t\n \tLog.d(UI_MODE_SERVICE, \"Updating the listView?\");\n \t// Send this to the list view to see it\n \t//ListView listview = (ListView) findViewById(R.id.residentListView);\n \n \tLog.d(UI_MODE_SERVICE, \"Updating Adapter?\");\n \taddList(strMedApts);\n }", "@Override\n public void onDateSet(DatePicker view, int year, int monthOfYear,\n int dayOfMonth) {\n myCalendar.set(Calendar.YEAR, year);\n myCalendar.set(Calendar.MONTH, monthOfYear);\n myCalendar.set(Calendar.DAY_OF_MONTH, dayOfMonth);\n updateLabel();\n }", "@Override\n public void onDateSet(DatePicker view, int year, int monthOfYear,\n int dayOfMonth) {\n myCalendar.set(Calendar.YEAR, year);\n myCalendar.set(Calendar.MONTH, monthOfYear);\n myCalendar.set(Calendar.DAY_OF_MONTH, dayOfMonth);\n updateLabel();\n }", "@Override\n public void onDateSet(DatePicker view, int year, int monthOfYear,\n int dayOfMonth) {\n myCalendar.set(Calendar.YEAR, year);\n myCalendar.set(Calendar.MONTH, monthOfYear);\n myCalendar.set(Calendar.DAY_OF_MONTH, dayOfMonth);\n updateLabel();\n }", "@Override\n public void onDateSet(DatePicker view, int year, int monthOfYear,\n int dayOfMonth) {\n myCalendar.set(Calendar.YEAR, year);\n myCalendar.set(Calendar.MONTH, monthOfYear);\n myCalendar.set(Calendar.DAY_OF_MONTH, dayOfMonth);\n updateLabel2();\n }" ]
[ "0.60074204", "0.5673788", "0.55928934", "0.55902594", "0.55418026", "0.5539534", "0.55014396", "0.5480131", "0.54572207", "0.5445291", "0.5424458", "0.54184043", "0.541226", "0.5406487", "0.5403668", "0.53828967", "0.53827435", "0.5376739", "0.5376739", "0.53763634", "0.5367312", "0.53662837", "0.5356469", "0.5327163", "0.5304785", "0.5284427", "0.527916", "0.5275531", "0.52697027", "0.52623314", "0.5258498", "0.5257093", "0.52551943", "0.52514356", "0.5241647", "0.52315164", "0.5225575", "0.5222229", "0.5214004", "0.5205778", "0.52013284", "0.51995856", "0.5191312", "0.51866764", "0.518001", "0.5172891", "0.516338", "0.5158259", "0.51577175", "0.51548314", "0.51520175", "0.5130312", "0.51225615", "0.5111559", "0.5109406", "0.51027775", "0.50995225", "0.5096939", "0.5091675", "0.50814295", "0.50807697", "0.5079943", "0.50789154", "0.50732493", "0.5072832", "0.5065088", "0.50616866", "0.5059346", "0.50542474", "0.5053822", "0.5047843", "0.5045158", "0.50433004", "0.5042417", "0.50408566", "0.5031916", "0.5024416", "0.5022231", "0.50174874", "0.50077367", "0.50077367", "0.50077367", "0.50077367", "0.50077367", "0.50077367", "0.50077367", "0.50077367", "0.50077367", "0.50077367", "0.50077367", "0.5004635", "0.50023925", "0.49981698", "0.49971986", "0.49875838", "0.49831963", "0.49819726", "0.49819726", "0.49819726", "0.49781832" ]
0.5140424
51
Navigate by setting agenda's displayed DateTime.
public void displayNextWeek() { setDisplayedDateTime(currentDateTime.plusWeeks(1)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void actualDateSwitchAction() {\n\t\tdateToDisplay = Utils.removeTime(Calendar.getInstance().getTime());\n\t\tshowAnimalList(dateToDisplay);\n\t\tanimalsListPanel.switchToToday();\n\t}", "public void agendaView(Date f, Date t, GregorianCalendar c) {\n\t\tselectedView.printAgendaView(f, t, c);\n\t}", "@Subscribe\n private void handleJumpToDateTimeEvent(JumpToDateTimeEvent event) {\n logger.info(LogsCenter.getEventHandlingLogMessage(event));\n setDisplayedDateTime(event.targetLocalDateTime);\n }", "public void setDateEnd_CouponsTab_Marketing() {\r\n\t\tthis.dateEnd_CouponsTab_Marketing.clear();\r\n\t\tSimpleDateFormat formattedDate = new SimpleDateFormat(\"yyyy-MM-dd\");\r\n\t\tCalendar c = Calendar.getInstance();\r\n\t\tc.add(Calendar.DATE, 1);\r\n\t\tString tomorrow = (String) (formattedDate.format(c.getTime()));\r\n\t\tSystem.out.println(\"tomorrows date is \"+tomorrow);\r\n\t\tthis.dateEnd_CouponsTab_Marketing.sendKeys(tomorrow);\r\n\t}", "@Override\n public void onLongClick() {\n showAgendaView();\n }", "HtmlPage clickDateLink();", "public void changeDate(String a) {\r\n getDate().editDate(a);\r\n }", "private void setDateTimeViews(){\n setDueDateView();\n setDueTimeView();\n }", "public void setDateStart_CouponsTab_Marketing() {\r\n\t\tthis.dateStart_CouponsTab_Marketing.clear();\r\n\t\tSimpleDateFormat formattedDate = new SimpleDateFormat(\"yyyy-MM-dd\");\r\n\t\tCalendar c = Calendar.getInstance();\r\n\t\tString today1 = (String) (formattedDate.format(c.getTime()));\r\n\t\tthis.dateStart_CouponsTab_Marketing.sendKeys(today1);\r\n\t}", "public void setShowStartTime(Date showStartTime) {\n\t\tthis.showStartTime = showStartTime;\n\t}", "@Override\n\tprotected void setDate() {\n\n\t}", "public void modify() {\n\t\tselectedView.printCalendar(mc.getCalendar());\n\t}", "public void setTodayDate() {\n\t\tfinal Calendar c = Calendar.getInstance();\r\n\t\tmYear = c.get(Calendar.YEAR);\r\n\t\tmMonth = c.get(Calendar.MONTH);\r\n\t\tmDay = c.get(Calendar.DAY_OF_MONTH);\r\n\r\n\t\tmaxYear = mYear - 10;\r\n\t\tmaxMonth = mMonth;\r\n\t\tmaxDay = mDay;\r\n\r\n\t\tminYear = mYear - 110;\r\n\t\tminMonth = mMonth;\r\n\t\tminDay = mDay;\r\n\t\t// display the current date (this method is below)\r\n\t\t// updateDisplay();\r\n\t\t updateDisplay(maxYear, maxMonth, maxDay);\r\n\t}", "private void agendaFrame() {\n\t\tEventQueue.invokeLater(new Runnable() {\n\t\t\t@Override\n\t\t\tpublic void run() {\n\t\t\t\tfinal JFrame frame = new JFrame(\"Please select a time period.\");\n\t\t\t\tframe.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);\n\t\t\t\ttry {\n\t\t\t\t\tUIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tJPanel panel = new JPanel();\n\t\t\t\tpanel.setLayout(new GridLayout(1, 4));\n\t\t\t\t//JTextField d = new JTextField(\"\" + year + \"/\" + month + \"/\" + day);\n\t\t\t\tfinal JTextField startDate = new JTextField(\"1\" + \"/1\" + \"/2016\");\n\t\t\t\tJTextField to = new JTextField(\"to\");\n\t\t\t\tto.setEditable(false);\n\t\t\t\tfinal JTextField endDate = new JTextField(\"1\" + \"/2\" + \"/2016\");\n\t\t\t\tJButton go = new JButton(\"Go\");\n\t\t\t\t\n\t\t\t\tgo.addActionListener(new ActionListener() {\n\t\t\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\t\teventsRender = new AgendaViewRender();\n\t\t\t\t\t\tAgendaViewRender.setStartDate(startDate.getText());\n\t\t\t\t\t\tAgendaViewRender.setEndDate(endDate.getText());\n\t\t\t\t\t\tupdateEventsView(eventsRender);\n\t\t\t\t\t\tframe.dispatchEvent(new WindowEvent(frame, WindowEvent.WINDOW_CLOSING));\n\t\t\t\t\t}\n\t\t\t\t});\n\n\t\t\t\tpanel.add(startDate);\n\t\t\t\tpanel.add(to);\n\t\t\t\tpanel.add(endDate);\n\t\t\t\tpanel.add(go);\n\t\t\t\t\n\t\t\t\tframe.setSize(500, 100);\n\t\t\t\tframe.setLayout(new GridLayout(2, 1));\n\t\t\t\tframe.add(panel);\n\t\t\t\tframe.setLocationByPlatform(true);\n\t\t\t\tframe.setVisible(true);\n\n\t\t\t}\n\t\t});\n\t}", "public void setDateTime(@NonNull final Calendar date) {\n onView(viewMatcher).perform(click());\n onView(withClassName(equalTo(DatePicker.class.getName())))\n .perform(PickerActions.setDate(date.get(Calendar.YEAR), date.get(Calendar.MONTH) + 1, date.get(Calendar.DAY_OF_MONTH)));\n new Dialog().confirmDialog();\n onView(withClassName(equalTo(TimePicker.class.getName())))\n .perform(PickerActions.setTime(date.get(Calendar.HOUR_OF_DAY), date.get(Calendar.MINUTE)));\n new Dialog().confirmDialog();\n }", "abstract public void setServiceAppointment(Date serviceAppointment);", "private void setCurrentDate(Date date)\n {\n date.setTime(System.currentTimeMillis());\n }", "@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tshowDialog(SET_DATE_DIALOG);\n\n\t\t\t}", "public void arrival_date()\r\n\t{\r\n\t\tExplicitWait(arrivaldate);\r\n\t\t\r\n\t\tDate date1 = new Date();\r\n\t\tdate1.setDate(date1.getDate() + 1);\r\n\t\tSimpleDateFormat df1 = new SimpleDateFormat(\"MM/dd/YYYY\");\r\n\t\tformattedDate1 = df1.format(date1);\r\n\r\n\t\tif (SeleniumRepo.isElementPresent(arrivaldate)) \r\n\t\t{\r\n\t\t\tarrivaldate.click();\r\n\t\t\tarrivaldate.clear();\r\n\t\t\tarrivaldate.sendKeys(formattedDate1);\r\n\t\t\t//System.out.println(formattedDate1);\r\n\t\t\ttest.log(Status.INFO, \"Clicked on arrivaldate Link\");\r\n\t\t\tlogger.info(\"Clicked on arrivaldate Link\");\r\n\r\n\t\t}\r\n\t\telse \r\n\t\t{\r\n\t\t\t//System.out.println(\"arrivaldate TextBox not found\");\r\n\t\t\tlogger.error(\"arrivaldate TextBox not found\");\r\n\t\t\ttest.log(Status.FAIL, \"arrivaldate TextBox not found\");\r\n\r\n\t\t}\r\n\r\n\t}", "private void indicateCalendarDisplayTimeChanged() {\n raise(new CalendarDisplayTimeChangedEvent(currentDateTime));\n }", "@Override\n public void show() {\n // display same beginning interface as SetTimeView\n super.show();\n \n // show title\n clock.getDigit(2).setText(0, \"Set Alarm\");\n \n for(int i = 0; i < DAYS.length; i++) {\n clock.getDigit(2).setText(i+2, DAYS[i]);\n }\n String str;\n for(int i = 0; i < DAYS.length; i++){\n str = DAYS[i];\n if(days[i]){\n str = \">\"+DAYS[i]+\"<\";\n }\n clock.getDigit(2).setText(i+2,str); \n }\n\n }", "public void setArrivalDate(Date arrivalDate);", "private void setCurrentDateOnButton() {\n\t\t\tfinal Calendar c = Calendar.getInstance();\n\t\t\tyear = c.get(Calendar.YEAR);\n\t\t\tmonth = c.get(Calendar.MONTH);\n\t\t\tday = c.get(Calendar.DAY_OF_MONTH);\n\t\t\t//set current date to registration button\n\t\t\tbtnRegDate.setText(new StringBuilder()\n\t\t\t// Month is 0 based, just add 1\n\t\t\t.append(day).append(\"-\").append(month + 1).append(\"-\")\n\t\t\t.append(year));\n\t\t\t//set current date to FCRA registration button\n\t\t\tbtnFcraDate.setText(new StringBuilder()\n\t\t\t// Month is 0 based, just add 1\n\t\t\t.append(day).append(\"-\").append(month + 1).append(\"-\")\n\t\t\t.append(year));\n\t\t}", "public void setAtTime(Date atTime) {\r\n this.atTime = atTime;\r\n }", "public void setDtVenda(int dtVenda) {\n this.dtVenda = dtVenda;\n }", "public void setTodayDate() {\r\n int oldMonthValue = getMonth();\r\n int oldYearValue = getYear();\r\n calendarTable.getCalendarModel().setTodayDate();\r\n updateControlsFromTable();\r\n // fire property change\r\n int newMonthValue = getMonth();\r\n if (oldMonthValue != newMonthValue) {\r\n firePropertyChange(MONTH_PROPERTY, oldMonthValue, newMonthValue);\r\n }\r\n int newYearValue = getYear();\r\n if (oldYearValue != newYearValue) {\r\n firePropertyChange(YEAR_PROPERTY, oldYearValue, newYearValue);\r\n }\r\n // clear selection when changing the month in view\r\n if (oldMonthValue != newMonthValue && oldYearValue != newYearValue) {\r\n calendarTable.getSelectionModel().clearSelection();\r\n }\r\n }", "@Override\n public void goToDate(Calendar date) {\n super.goToDate(date);\n startOriginForScroll = mCurrentOrigin.x;\n }", "@Override\n public void onDateSet(DatePicker arg0,\n int arg1, int arg2, int arg3) {\n showDate(arg1, arg2 + 1, arg3);\n }", "@Override\n public void onDateSet(DatePicker arg0,\n int arg1, int arg2, int arg3) {\n startshowDate(arg1, arg2+1, arg3);\n //endshowDate(arg1, arg2+1, arg3);\n }", "private void advanceTime() {\r\n myCurrentTimeLabel.setText(DateFormat.getDateTimeInstance().format(new Date()));\r\n }", "@Override\n public void onClick() {\n showMonthViewWithBelowEvents();\n }", "@Override\n\tpublic void OnUpdateNavigation( ) {\n\t\t\n\t\tCalendar calendar1 = Calendar.getInstance();\n\t\tcalendar1.set(Calendar.HOUR_OF_DAY, 0);\n\t\tcalendar1.set(Calendar.MINUTE, 0);\n\t\tcalendar1.set(Calendar.SECOND, 0);\n\t\tcalendar1.set(Calendar.MILLISECOND, 0);\n\t\tthis.selectedDate = calendar1.getTimeInMillis();\n\t\t\n\t\toverviewFragment = new OverviewFragment();\n\t\tBundle bundle = new Bundle();\n\t\tbundle.putLong(\"selectedDate\", this.selectedDate);\n\t\toverviewFragment.setArguments(bundle);\n\n\t\tFragmentTransaction fragmentTransaction1 = this.getSupportFragmentManager().beginTransaction();\n\t\tfragmentTransaction1.replace(R.id.content_frame,\n\t\t\t\toverviewFragment);\n\t\tfragmentTransaction1.commit();\n\t\t\n\t\toverViewNavigationListAdapter.setChoosed(0);\n\t\toverViewNavigationListAdapter.setSubTitle(turnToDate(this.selectedDate));\n\t\toverViewNavigationListAdapter.notifyDataSetChanged();\n\t\t\n\t}", "@Then(\"^select the onward date$\")\n\tpublic void select_the_onward_date() throws Throwable {\n\t\tdriver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);\n\t\tdriver.findElement(By.xpath(\"//*[@id='search']/div/div[3]/div/label\")).click();\n\t\tdriver.findElement(By.xpath(\"//*[@id='rb-calendar_onward_cal']/table/tbody/tr[6]/td[5]\")).click();\n\t\t//driver.findElement(By.xpath(\"//label[text()='Onward Date']\")).sendKeys(Keys.TAB);\n\t\t//driver.findElementByXPath(\"//label[text()='Return Date']\").sendKeys(Keys.TAB);\n\t\t\n\t}", "@Override\r\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tIntent intent = new Intent(getActivity(), AgendaActivity.class);\r\n\t\t\t\tstartActivity(intent);\r\n\t\t\t}", "@Override\n public void onDateSet(DatePicker arg0,\n int arg1, int arg2, int arg3) {\n showDate(arg1, arg2+1, arg3);\n }", "@Override\n public void onDateSet(DatePicker arg0,\n int arg1, int arg2, int arg3) {\n showDate(arg1, arg2+1, arg3);\n }", "@Override\n public void onDateSet(DatePicker arg0,\n int arg1, int arg2, int arg3) {\n showDate(arg1, arg2+1, arg3);\n }", "@Override\n public void onDateSet(DatePicker arg0,\n int arg1, int arg2, int arg3) {\n showDate(arg1, arg2+1, arg3);\n }", "@Override\n public void onDateSet(DatePicker arg0,\n int arg1, int arg2, int arg3) {\n showDate(arg1, arg2+1, arg3);\n }", "public void setActDate(java.lang.String param) {\r\n localActDateTracker = param != null;\r\n\r\n this.localActDate = param;\r\n }", "private void setCurrentDay() {\n Calendar c = Calendar.getInstance();\n\n year = c.get(Calendar.YEAR);\n month = c.get(Calendar.MONTH);\n day = c.get(Calendar.DAY_OF_MONTH);\n hour = c.get(Calendar.HOUR_OF_DAY);\n minute = c.get(Calendar.MINUTE);\n }", "private void dashboard() {\n\n Timeline timeline = new Timeline(\n new KeyFrame(Duration.seconds(0),\n new EventHandler<ActionEvent>() {\n @Override\n public void handle(ActionEvent actionEvent) {\n Calendar time = Calendar.getInstance();\n\n String hourString = POSUtilies.pad(2, ' ', time.get(Calendar.HOUR) == 0 ? \"12\" : time.get(Calendar.HOUR) + \"\");\n String minuteString = POSUtilies.pad(2, '0', time.get(Calendar.MINUTE) + \"\");\n String secondString = POSUtilies.pad(2, '0', time.get(Calendar.SECOND) + \"\");\n String am_pm = POSUtilies.pad(2, '0', time.get(Calendar.AM_PM) + \"\");\n if (am_pm.equalsIgnoreCase(\"00\")) {\n am_pm = \"AM\";\n\n }\n if (am_pm.equalsIgnoreCase(\"01\")) {\n am_pm = \"PM\";\n\n }\n\n lblTime.setText(hourString + \":\" + minuteString + \":\" + secondString + \" \" + am_pm);\n lblDate.setText(d.format(date));\n }\n }\n ),\n new KeyFrame(Duration.seconds(1))\n );\n timeline.setCycleCount(Animation.INDEFINITE);\n timeline.play();\n }", "public void goToToday() {\n goToDate(today());\n }", "public void setSelectedDate(Date selectedDate);", "private void setupCalendarView() {\n // Set the default date shown to be today\n DateFormat df = new SimpleDateFormat(\"dd/MM/yyyy\", Locale.UK);\n String todayDate = df.format(Calendar.getInstance().getTime());\n\n mTextView.setText(todayDate);\n }", "@Override\n public void onDateSet(DatePicker arg0, int arg1, int arg2, int arg3) {\n showDate(arg1, arg2 + 1, arg3);\n }", "public void setFechaHasta(Date fechaHasta)\r\n/* 179: */ {\r\n/* 180:312 */ this.fechaHasta = fechaHasta;\r\n/* 181: */ }", "public void setFechaFacturado(java.util.Calendar param){\n \n this.localFechaFacturado=param;\n \n\n }", "public void get_fecha(){\n //Obtenemos la fecha\n Calendar c1 = Calendar.getInstance();\n fecha.setCalendar(c1);\n }", "public void setAposttime(Date aposttime) {\n this.aposttime = aposttime;\n }", "private void setAppointment(Appointment appointment) {\n appointment.setCustomerId(customerNameTxt.getSelectionModel().getSelectedItem().getId());\n appointment.setTitle(titleTxt.getText());\n appointment.setDescription(descriptionTxt.getText());\n appointment.setLocation(locationTxt.getText());\n appointment.setContact(contactTxt.getText());\n appointment.setType(typeTxt.getText());\n appointment.setUrl(urlTxt.getText());\n\n // format times\n // Date formatter for date picker and time combo boxes\n final DateTimeFormatter dateFormatter = DateTimeFormatter.ofPattern(\"yyyy-MM-dd\");\n final DateTimeFormatter timeFormatter = DateTimeFormatter.ofPattern(\"hh:mm:ss\");\n LocalTime startTime = startTxt.getSelectionModel().getSelectedItem();\n LocalTime endTime = startTime.plusMinutes(endTxt.getSelectionModel().getSelectedItem());\n\n if (datePicker.getValue() != null && startTime != null && endTime != null) {\n appointment.setStart(Timestamp.valueOf(dateFormatter.format(datePicker.getValue()) + \" \" + timeFormatter.format(startTime)));\n appointment.setEnd(Timestamp.valueOf(dateFormatter.format(datePicker.getValue()) + \" \" + timeFormatter.format(endTime)));\n } else {\n Alert a = new Alert(Alert.AlertType.INFORMATION, \"You must select a date, start time, and end time.\");\n a.showAndWait();\n }\n }", "@Override\n public void onDateSet(DatePicker arg0, int arg1, int arg2, int arg3) {\n showDate(arg1, arg2+1, arg3);\n }", "@Override\n public void onDateSet(DatePicker arg0, int arg1, int arg2, int arg3) {\n showDate(arg1, arg2+1, arg3);\n }", "public Agendas getAgenda() {\n return agenda;\n }", "public void setFecha(Fecha fecha) {\r\n this.fecha = fecha;\r\n }", "public void setShowEndTime(Date showEndTime) {\n\t\tthis.showEndTime = showEndTime;\n\t}", "public abstract void setStartTime(Date startTime);", "@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tcalendar.moveNextMonth();\n\t\t\t\tdisplayCalendar();\n\t\t\t}", "public void displayCalendar() throws IllegalArgumentException {\r\n\t\tif (getCurrentEntity() == null) {\r\n\t\t\tthrow new IllegalArgumentException(\"No doctor is displayed\");\r\n\t\t}\r\n\t\ttracer(this).debug(\"Displaying calendar of doctor: \" + getCurrentEntity().getId());\r\n\t\tgetEventBus().fireEvent(DoctorCalendarPage.createPageEvent(this, getCurrentEntity().getId()));\r\n\t\tview.setViewVisible(false);\r\n\t}", "@Override\n public void onDateSet(DatePicker arg0,\n int arg1, int arg2, int arg3) {\n endshowDate(arg1, arg2+1, arg3);\n }", "public void setTime(AbsoluteDate date)\r\n {\r\n CoreModel coreModel = CoreModel.getDefault();\r\n coreModel.changeTimepoint(getUnderlyingElement(), date, true);\r\n }", "private void setTimeDate(){\n tvTime = (TextView) findViewById(R.id.tv_time);\n dateFormat = new SimpleDateFormat(\"hh:mm a\");\n tvTime.setText(dateFormat.format(new Date()).toString());\n\n //Set Date to Top TextView\n tvDate = (TextView) findViewById(R.id.tv_date);\n dateFormat = new SimpleDateFormat(\"EEE, MMM d\");\n tvDate.setText(dateFormat.format(new Date()).toString());\n }", "void addDate(long t) {\n\tif (act != null) {\n\t long date = act.getDate() + t;\n\t act.setLocation(act.getMap(), act.getX(), act.getY(), date);\n\t}\n }", "public void saveCalenderDate() {\r\n\t\tdate = getDateToDisplay(null);\r\n\t}", "@Override\n public void onClick(String date, String time) {\n }", "@Override\n public void onClick(View view) {\n new DatePickerDialog(AddEventActivity.this, start_Journey_Date, myCalendar\n .get(Calendar.YEAR), myCalendar.get(Calendar.MONTH),\n myCalendar.get(Calendar.DAY_OF_MONTH)).show();\n }", "@Override\n\t\t\tpublic void onClick(View arg0) {\n\n\t\t\t\tgetLayouts();\n\n\t\t\t\tCalendar next = (Calendar) calendar.clone();\n\n\t\t\t\tif (currentMonth > 11) {\n\t\t\t\t\tcurrentMonth = 1;\n\t\t\t\t\tcurrentYear++;\n\t\t\t\t} else {\n\t\t\t\t\tcurrentMonth++;\n\t\t\t\t}\n\n\t\t\t\tnext.set(Calendar.MONTH, currentMonth);\n\t\t\t\tnext.set(Calendar.YEAR, currentYear);\n\t\t\t\tnext.set(Calendar.DATE, 1);\n\n\t\t\t\tpositionNext = next.getTime().toString().split(\" \");\n\t\t\t\tgetCalendar(\n\t\t\t\t\t\tReturnCalendarDetails.getCurrentMonth(positionNext[1]),\n\t\t\t\t\t\tReturnCalendarDetails.getPosition(positionNext[0]),\n\t\t\t\t\t\tInteger.parseInt(positionNext[5]));\n\t\t\t}", "public void setCurrentDate(CurrentDate pCurrentDate) { \n mCurrentDate = pCurrentDate; \n }", "public void setStart( Calendar start );", "@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tDailyView.setDaily(c);\n\t\t\t\tstartActivity(new Intent(\"com.calendar.DAILYVIEW\"));\n\n\t\t\t}", "@Override\n public void onClick(View view) {\n new DatePickerDialog(AddEventActivity.this, end_Journey_Date, myCalendar\n .get(Calendar.YEAR), myCalendar.get(Calendar.MONTH),\n myCalendar.get(Calendar.DAY_OF_MONTH)).show();\n }", "@Override\n public void onClick(String date, String time) {\n\n }", "public void changeDate(GregorianCalendar c) {\n\t\tmonth.printCalendar(c);\n\t\tselectedView.printView(c);\n\t}", "void setLastAccessDate();", "public void SetDate(Date date);", "public void setActivationTime(java.util.Calendar param){\n localActivationTimeTracker = true;\n \n this.localActivationTime=param;\n \n\n }", "@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tAddEvent.currentDateCalendar=(Calendar) c.clone();\n\t\t\t\tstartActivity(new Intent(\"com.calendar.ADDEVENT\"));\n\t\t\t}", "public void setBegDate(java.lang.String value) {\n this.begDate = value;\n }", "@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tcalendar.moveNextYear();\n\t\t\t\tdisplayCalendar();\n\t\t\t}", "public AssignDateCommand(Index index, EventDayTime eventDayTime) {\n requireNonNull(index);\n this.index = index;\n this.startOrTargetEventDate = Optional.empty();\n this.endEventDate = Optional.empty();\n this.eventDayTime = eventDayTime;\n }", "void setEventStartDate(Date startEventDate);", "@Override\n public void onClick(View arg0) {\n\n\n listView.setAdapter(urgentTodosAdapter);\n urgentTodosAdapter.loadObjects();\n\n Toast.makeText(getApplication(), \"แสดงรายการ\"+dayofmonth,\n Toast.LENGTH_SHORT).show();\n\n\n }", "public void setEditDate(Date editDate)\r\n/* */ {\r\n/* 193 */ this.editDate = editDate;\r\n/* */ }", "@Override\n\t\t\tpublic void onClick(View arg0) {\n\n\t\t\t\tgetLayouts();\n\n\t\t\t\tCalendar pre = (Calendar) calendar.clone();\n\n\t\t\t\tcurrentMonth--;\n\n\t\t\t\tif (currentMonth == 0) {\n\t\t\t\t\tcurrentMonth = 12;\n\t\t\t\t\tcurrentYear--;\n\t\t\t\t}\n\t\t\t\tpre.set(Calendar.MONTH, currentMonth);\n\t\t\t\tpre.set(Calendar.YEAR, currentYear);\n\t\t\t\tpre.set(Calendar.DATE, 1);\n\n\t\t\t\tpositionPre = pre.getTime().toString().split(\" \");\n\t\t\t\tpreviousDayPosition = ReturnCalendarDetails\n\t\t\t\t\t\t.getPosition(positionPre[0]);\n\n\t\t\t\tgetCalendar(\n\t\t\t\t\t\tReturnCalendarDetails.getCurrentMonth(positionPre[1]),\n\t\t\t\t\t\tReturnCalendarDetails.getPosition(positionPre[0]),\n\t\t\t\t\t\tInteger.parseInt(positionPre[5]));\n\n\t\t\t\tSystem.out.println(\"!!\" + pre.getTime());\n\t\t\t}", "@Override\n\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\tgetTimeView();\n\t\t\t\t}", "public void setCurrentDate(String d) {\n currentDate = d;\n }", "@Override\n\tpublic void setAddTime(Date addTime) {\n\t\t\n\t}", "@FXML\n\tprivate void dateSelected(ActionEvent event) {\n\t\tint selectedIndex = taskList.getSelectionModel().getSelectedIndex();\n\t\tString task = taskList.getSelectionModel().getSelectedItem();\n\t\tString selectedDate = dateSelector.getValue().toString();\n\t\tif (task.contains(\" due by \")) {\n\t\t\ttask = task.substring(0, task.lastIndexOf(\" \")) + \" \" + selectedDate;\n\n\t\t} else {\n\t\t\ttaskList.getItems().add(selectedIndex, task +\" due by \" + selectedDate );\n\t\t\ttaskList.getItems().remove(selectedIndex + 1);\n\t\t}\n\t\ttask = task.replace(\"@task \", \"\");\n\t\tString task_split[] = task.split(\" \", 2);\n\t\tclient.setTaskDeadline(task_split[1].replace(\"\\n\", \"\"), selectedDate);\n\t}", "@Override\n public void onClick(View v) {\n\n if (_day == today.getActualMaximum(Calendar.DAY_OF_MONTH)) {\n if (_month == today.getActualMaximum(Calendar.MONTH)) {\n _day = 1;\n _month = 0;\n _year = today.get(Calendar.YEAR) + 1;\n\n } else {\n _day = 1;\n _month = today.get(Calendar.MONTH) + 1;\n _year = today.get(Calendar.YEAR);\n }\n } else {\n\n _day = today.get(Calendar.DAY_OF_MONTH) + 1;\n _month = today.get(Calendar.MONTH);\n _year = today.get(Calendar.YEAR);\n\n }\n\n today.set(_year, _month, _day);\n\n today_date.setTime(today.getTimeInMillis());\n dayLog.setText(String.format(DateFormat.getDateInstance(DateFormat.LONG, Locale.US).format(today_date)));\n\n date = (_day + \"/\" + (_month + 1) + \"/\" + _year);\n\n getActivitySessions(1);\n }", "public void setaTime(Date aTime) {\r\n this.aTime = aTime;\r\n }", "private void setDateTime() {\n int day, month, year, dayOfWeek, hour, minute;\n Calendar cal;\n if (!mIsUpdateEvent && !mIsAddEvent)\n cal = Calendar.getInstance();\n else\n cal = new GregorianCalendar(mStartYear, mStartMonth, mStartDay, mStartHour, mStartMinute);\n day = cal.get(Calendar.DAY_OF_MONTH);\n month = cal.get(Calendar.MONTH);\n year = cal.get(Calendar.YEAR);\n dayOfWeek = cal.get(Calendar.DAY_OF_WEEK);\n hour = cal.get(Calendar.HOUR_OF_DAY);\n minute = cal.get(Calendar.MINUTE);\n\n TextView date1 = findViewById(R.id.date1);\n date1.setText(DateTimeUtils.formattedDate(this, dayOfWeek, month, day, year));\n time1 = findViewById(R.id.time1);\n time1.setText((DateTimeUtils.formattedTime(hour, minute)));\n datePicker2 = new TextDatePicker(this, R.id.date2, null);\n datePicker1 = new TextDatePicker(this, R.id.date1, datePicker2);\n datePicker1.day = day;\n datePicker1.month = month;\n datePicker1.year = year;\n\n timePicker2 = new TextTimePicker(this, R.id.time2, null);\n timePicker1 = new TextTimePicker(this, R.id.time1, timePicker2);\n timePicker1.hour = hour;\n timePicker1.minute = minute;\n\n if (mIsUpdateEvent) {\n cal = new GregorianCalendar(mEndYear, mEndMonth, mEndDay, mEndHour, mEndMinute);\n day = cal.get(Calendar.DAY_OF_MONTH);\n month = cal.get(Calendar.MONTH);\n year = cal.get(Calendar.YEAR);\n dayOfWeek = cal.get(Calendar.DAY_OF_WEEK);\n hour = cal.get(Calendar.HOUR_OF_DAY);\n minute = cal.get(Calendar.MINUTE);\n }\n\n TextView date2 = findViewById(R.id.date2);\n date2.setText(DateTimeUtils.formattedDate(this, dayOfWeek, month, day, year));\n time2 = findViewById(R.id.time2);\n time2.setText((DateTimeUtils.formattedTime(hour, minute)));\n\n datePicker2.day = day;\n datePicker2.month = month;\n datePicker2.year = year;\n\n timePicker2.hour = hour;\n timePicker2.minute = minute;\n\n if (mIsUpdateEvent && mIsAllDay ==1) {\n timePicker1.removeClickListener();\n time1.setText(\"\");\n timePicker2.removeClickListener();\n time2.setText(\"\");\n }\n }", "@Override\n\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\tCalendar cal = Calendar.getInstance();\n\t\t\t\t\t\tIntent intent = new Intent(Intent.ACTION_EDIT);\n\t\t\t\t\t\tintent.setType(\"vnd.android.cursor.item/event\");\n\t\t\t\t\t\tintent.putExtra(\"beginTime\", cal.getTimeInMillis());\n\t\t\t\t\t\tintent.putExtra(\"allDay\", true);\n\t\t\t\t\t\tcontext.startActivity(intent);\n\t\t\t\t\t}", "@Override\n\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\tCalendar cal = Calendar.getInstance();\n\t\t\t\t\t\tIntent intent = new Intent(Intent.ACTION_EDIT);\n\t\t\t\t\t\tintent.setType(\"vnd.android.cursor.item/event\");\n\t\t\t\t\t\tintent.putExtra(\"beginTime\", cal.getTimeInMillis());\n\t\t\t\t\t\tintent.putExtra(\"allDay\", true);\n\t\t\t\t\t\tcontext.startActivity(intent);\n\t\t\t\t\t}", "@Override\n\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\tCalendar cal = Calendar.getInstance();\n\t\t\t\t\t\tIntent intent = new Intent(Intent.ACTION_EDIT);\n\t\t\t\t\t\tintent.setType(\"vnd.android.cursor.item/event\");\n\t\t\t\t\t\tintent.putExtra(\"beginTime\", cal.getTimeInMillis());\n\t\t\t\t\t\tintent.putExtra(\"allDay\", true);\n\t\t\t\t\t\tcontext.startActivity(intent);\n\t\t\t\t\t}", "public void setTime(Date date) {\n time = date;\n renderCaption();\n }", "@Override\n public void onDateSet(DatePicker arg0,\n int arg1, int arg2, int arg3) {\n\n showDate1(arg1, arg2+1, arg3);\n }", "public LocalDate getViewDate();", "public void setFechaAltaHasta(Date fechaAltaHasta) {\r\n\t\tthis.fechaAltaHasta = fechaAltaHasta;\r\n\t}", "@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tcalendar.movePrevMonth();\n\t\t\t\tdisplayCalendar();\n\t\t\t}", "private void setTrailDateClickListener() {\n trailDate.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n DatePickerDialog dpd = new DatePickerDialog(TrailActivity.this, date, calendar.get(Calendar.YEAR), calendar.get(Calendar.MONTH), calendar.get(Calendar.DAY_OF_MONTH));\n dpd.show();\n dpd.getDatePicker().setMinDate(System.currentTimeMillis() - 1000);\n }\n });\n }", "public void showSchedule(View view) {\n Intent intent = new Intent(this, DisplaySchedule.class);\n startActivity(intent);\n }" ]
[ "0.6111081", "0.60264856", "0.59550864", "0.5737722", "0.5734638", "0.5698471", "0.56556284", "0.56413686", "0.55570686", "0.5480796", "0.5433956", "0.54095715", "0.5404924", "0.53970003", "0.53902286", "0.53791773", "0.53752434", "0.5365051", "0.53267276", "0.5325854", "0.5321671", "0.531806", "0.53022325", "0.52980816", "0.5281146", "0.52596325", "0.5257553", "0.5254353", "0.5254264", "0.5251577", "0.5247093", "0.5245159", "0.5241703", "0.5239987", "0.52385974", "0.52385974", "0.52385974", "0.52385974", "0.52385974", "0.5219658", "0.52156216", "0.5212079", "0.52111244", "0.52096367", "0.5206721", "0.5206388", "0.520532", "0.5203947", "0.51886034", "0.51865715", "0.51828986", "0.5178072", "0.5178072", "0.51731706", "0.51711315", "0.5170456", "0.51506567", "0.51444864", "0.51376665", "0.5135205", "0.51333183", "0.5126769", "0.5123631", "0.51225644", "0.51152176", "0.5112982", "0.5111921", "0.5096489", "0.5090072", "0.508563", "0.50848055", "0.5082652", "0.50675356", "0.5066307", "0.5064408", "0.5062161", "0.5056738", "0.5039671", "0.5035177", "0.5030171", "0.50294775", "0.50272435", "0.5022527", "0.50214523", "0.502129", "0.50190467", "0.50175667", "0.49918455", "0.49912292", "0.49897096", "0.49847192", "0.49785513", "0.49785513", "0.49785513", "0.49782056", "0.49777564", "0.49733925", "0.49727622", "0.49720898", "0.49718553", "0.4969565" ]
0.0
-1
For internal use only.
public FormPropertiesImpl(final HeterogMap<String> properties) { if (properties == null) throw new IllegalArgumentException("formProperties cannot be null, only empty"); this.properties = HeterogCollections.unmodifiableMap(properties); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public final void mo51373a() {\n }", "@Override\n public void perish() {\n \n }", "private stendhal() {\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 }", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@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 sacrifier() {\n\t\t\n\t}", "@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\r\n\tpublic void init() {}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\t\tprotected void run() {\n\t\t\t\r\n\t\t}", "@Override\n public int describeContents() { return 0; }", "@Override\n public void init() {\n }", "@Override public int describeContents() { return 0; }", "protected MetadataUGWD() {/* intentionally empty block */}", "@Override\n protected void initialize() \n {\n \n }", "@Override\n void init() {\n }", "@Override\n public void init() {}", "private void init() {\n\n\t}", "@Override\n\t\tpublic void init() {\n\t\t}", "@Override\n protected void prot() {\n }", "protected void initialize() {}", "protected void initialize() {}", "@Override\n public void init() {\n\n }", "@Override\n protected void initialize() {\n\n \n }", "@Override\n public void func_104112_b() {\n \n }", "@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\r\n\tpublic final void init() {\r\n\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\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\r\n\tpublic void init() {\n\t\t\r\n\t}", "@SuppressWarnings(\"unused\")\n private void _read() {\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}", "private void assignment() {\n\n\t\t\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}", "private void m50366E() {\n }", "private void initialize() {\n\t\t\n\t}", "@Override\r\n\tprotected void processInit() {\n\t\t\r\n\t}", "@Override\n\tprotected void initialize() {\n\t}", "@Override\n\tprotected void initialize() {\n\t}", "@Override\r\n\tprotected void initSelfData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initSelfData() {\n\t\t\r\n\t}", "private void init() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\r\n\t\t\tpublic void run() {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void run() {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "private TestsResultQueueEntry() {\n\t\t}", "private void getStatus() {\n\t\t\n\t}", "@Override\n public void initialize() {}", "@Override\n public void initialize() {}", "@Override\n public void initialize() {}", "@Override\n public void initialize() {\n \n }", "@Override\r\n\tprotected void processInit() {\n\r\n\t}", "@Override\n public void init() {\n }", "@Override\n\t\t\tpublic void run() {\n\n\t\t\t}", "@Override\r\n \tpublic void process() {\n \t\t\r\n \t}", "private MetallicityUtils() {\n\t\t\n\t}", "@Override\n public int retroceder() {\n return 0;\n }", "@Override\n public void init() {\n\n }", "@Override\n public void init() {\n\n }", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "private Unescaper() {\n\n\t}", "@Override\n public void initialize() {\n }", "@Override\n public void initialize() {\n }", "@Override\n public void initialize() {\n }", "@Override\n public void initialize() {\n }", "@Override\n public void initialize() {\n }", "@Override\n public void initialize() {\n }", "@Override\n public void initialize() {\n }", "@Override\n public void initialize() {\n }", "@Override\n public void initialize() {\n }", "@Override\n public void initialize() {\n }", "@Override\n\t\tprotected void reset()\n\t\t{\n\t\t}", "private Rekenhulp()\n\t{\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\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\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}" ]
[ "0.60378414", "0.5818718", "0.5799973", "0.57847553", "0.57847553", "0.57847553", "0.57847553", "0.57847553", "0.57847553", "0.5729892", "0.57269335", "0.57215136", "0.5706206", "0.5684756", "0.5680844", "0.5680031", "0.56061506", "0.5588196", "0.5588196", "0.55726135", "0.55578756", "0.5555483", "0.55451715", "0.5543915", "0.5539466", "0.5531278", "0.5525458", "0.55205387", "0.550198", "0.5501807", "0.55012244", "0.55012244", "0.5498702", "0.54892117", "0.548511", "0.54840523", "0.54840523", "0.5472881", "0.54591584", "0.5454762", "0.54515123", "0.5447651", "0.5447651", "0.5447651", "0.5445503", "0.5437049", "0.5437049", "0.5437049", "0.5437049", "0.5437049", "0.543484", "0.5431159", "0.5431159", "0.54255897", "0.5424671", "0.54062665", "0.5404378", "0.5404378", "0.5404118", "0.5404118", "0.53945583", "0.5389554", "0.53846306", "0.538367", "0.538367", "0.53715867", "0.53691465", "0.53669304", "0.5363853", "0.5363853", "0.5363853", "0.53608173", "0.5355556", "0.5350892", "0.5332808", "0.5328297", "0.53262824", "0.5321104", "0.5317801", "0.5317801", "0.5312435", "0.5301569", "0.5295277", "0.5295277", "0.5295277", "0.5295277", "0.5295277", "0.5295277", "0.5295277", "0.5295277", "0.5295277", "0.5295277", "0.52945507", "0.52894765", "0.52891606", "0.5288362", "0.5288362", "0.5288362", "0.52798605", "0.52794266", "0.52794266" ]
0.0
-1
/ compiled from: RetryScheduler
public interface b { void a(DownloadInfo downloadInfo, long j, boolean z, int i); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void doRetry();", "public _cls_cs_retries0() {\r\n}", "boolean allowRetry(int retry, long startTimeOfExecution);", "protected abstract void scheduler_init();", "public interface RetryCallback {\n void retry();\n}", "int getSleepBeforeRetry();", "public interface RxSchedulerProvider {\n\n\n Scheduler backgroundThread();\n\n Scheduler io();\n\n Scheduler compute();\n\n Scheduler androidThread();\n\n Scheduler internet();\n\n}", "void retry(Task task);", "protected abstract String scheduler_next();", "public interface OnRetryListener {\n void onRetry();\n}", "public long runScheduledPendingTasks() {\n/* */ try {\n/* 597 */ return this.loop.runScheduledTasks();\n/* 598 */ } catch (Exception e) {\n/* 599 */ recordException(e);\n/* 600 */ return this.loop.nextScheduledTask();\n/* */ } \n/* */ }", "@Override\n public void onRetry(int retryNo) {\n }", "private void scheduleJob() {\n\n }", "@Override\n\t\tpublic boolean isRetry() { return true; }", "@Override\r\n public void onRetry(int retryNo) {\n }", "@Override\n public void onRetry ( int retryNo){\n }", "@Override\n public void onRetry ( int retryNo){\n }", "@Override\n public void onRetry ( int retryNo){\n }", "public interface PostExecutionThread {\n Scheduler getScheduler();\n}", "public interface PostExecutionThread {\n Scheduler getScheduler();\n}", "public interface PostExecutionThread {\n Scheduler getScheduler();\n}", "public interface Retryer {\r\n /**\r\n * Retry the execution wrapped in {@link Callable} when the specified condition matched.\r\n *\r\n * @param <T>\r\n * @param retryableTask\r\n * @return\r\n * @throws Exception\r\n */\r\n <T> T callWithRetry(Callable<T> retryableTask) throws Exception;\r\n\r\n /**\r\n * Returns an instance of interfaceType that delegates all method calls to\r\n * the target object, enforcing the retry policy on each call.\r\n *\r\n * @param <T>\r\n * @param target\r\n * @param interfaceType\r\n * @return\r\n */\r\n <T> T newProxy(T target, Class<T> interfaceType);\r\n}", "public Scheduler getScheduler()\r\n/* 30: */ {\r\n/* 31: 73 */ return this.scheduler;\r\n/* 32: */ }", "public interface SchedulerProvider {\n Scheduler background();\n Scheduler ui();\n}", "public interface SchedulerProvider {\r\n\r\n Scheduler computation();\r\n\r\n Scheduler io();\r\n\r\n Scheduler ui();\r\n}", "public interface IRetryPolicy {\n // this capture all the retry logic\n // TODO: design decision should this return a single or an observable?\n\n /// <summary>\n /// Method that is called to determine from the policy that needs to retry on the exception\n /// </summary>\n /// <param name=\"exception\">Exception during the callback method invocation</param>\n /// <param name=\"cancellationToken\"></param>\n /// <returns>If the retry needs to be attempted or not</returns>\n Mono<ShouldRetryResult> shouldRetry(Exception e);\n\n int getRetryCount();\n\n void incrementRetry();\n\n void captureStartTimeIfNotSet();\n\n void updateEndTime();\n\n Duration getRetryLatency();\n\n Instant getStartTime();\n\n Instant getEndTime();\n\n void addStatusAndSubStatusCode(Integer index, int statusCode, int subStatusCode);\n\n List<int[]> getStatusAndSubStatusCodes();\n\n \n}", "public interface RetryCondition {\n\n boolean matches(Action action, boolean thrown, Object result, Exception exception);\n\n}", "public abstract long retryAfter();", "@Override\n protected Scheduler scheduler() {\n return scheduler;\n }", "@Override\r\n public void onRetry(int retryNo) {\n }", "@Override\n\t\tpublic boolean isRetry() { return false; }", "@Override\n public void reportScheduler() {\n }", "@Override // ohos.workscheduler.IWorkScheduler\r\n /* Code decompiled incorrectly, please refer to instructions dump. */\r\n public void onWorkStart(ohos.workscheduler.WorkInfo r6) throws ohos.rpc.RemoteException {\r\n /*\r\n r5 = this;\r\n ohos.rpc.MessageParcel r0 = ohos.rpc.MessageParcel.obtain()\r\n ohos.rpc.MessageParcel r1 = ohos.rpc.MessageParcel.obtain()\r\n ohos.rpc.MessageOption r2 = new ohos.rpc.MessageOption\r\n r3 = 0\r\n r2.<init>(r3)\r\n java.lang.String r4 = \"ohos.workscheduler.IWorkScheduler\"\r\n boolean r4 = r0.writeInterfaceToken(r4)\r\n if (r4 != 0) goto L_0x001d\r\n r0.reclaim()\r\n r1.reclaim()\r\n return\r\n L_0x001d:\r\n r0.writeSequenceable(r6) // Catch:{ RemoteException | ParcelException -> 0x0031 }\r\n ohos.rpc.IRemoteObject r5 = r5.remote // Catch:{ RemoteException | ParcelException -> 0x0031 }\r\n r6 = 1\r\n boolean r5 = r5.sendRequest(r6, r0, r1, r2) // Catch:{ RemoteException | ParcelException -> 0x0031 }\r\n if (r5 == 0) goto L_0x003a\r\n int r5 = r1.readInt() // Catch:{ RemoteException | ParcelException -> 0x0031 }\r\n r3 = r5\r\n goto L_0x003a\r\n L_0x002f:\r\n r5 = move-exception\r\n goto L_0x0049\r\n L_0x0031:\r\n ohos.hiviewdfx.HiLogLabel r5 = ohos.workscheduler.WorkSchedulerProxy.LOG_LABEL // Catch:{ all -> 0x002f }\r\n java.lang.String r6 = \"onWorkStart Exception\"\r\n java.lang.Object[] r2 = new java.lang.Object[r3] // Catch:{ all -> 0x002f }\r\n ohos.hiviewdfx.HiLog.error(r5, r6, r2) // Catch:{ all -> 0x002f }\r\n L_0x003a:\r\n r0.reclaim()\r\n r1.reclaim()\r\n if (r3 != 0) goto L_0x0043\r\n return\r\n L_0x0043:\r\n ohos.rpc.RemoteException r5 = new ohos.rpc.RemoteException\r\n r5.<init>()\r\n throw r5\r\n L_0x0049:\r\n r0.reclaim()\r\n r1.reclaim()\r\n throw r5\r\n */\r\n throw new UnsupportedOperationException(\"Method not decompiled: ohos.workscheduler.WorkSchedulerProxy.onWorkStart(ohos.workscheduler.WorkInfo):void\");\r\n }", "public boolean isRetry();", "@Override\r\n public void onRetry(int retryNo) {\n }", "@Override\r\n public void onRetry(int retryNo) {\n }", "@Override\r\n public void onRetry(int retryNo) {\n }", "private static \tvoid schedule(IMirror mirror) throws SchedulerException, ParseException {\n\n String mirrorID = \"none\";\n\t\ttry {\n\t\t\tmirrorID = mirror.getMirrorID();\n\t \n\t\t} catch (ConfigException e) {\n\t\t\tlogger.error(\"At this point the mirror must have a mirrorID which it has not: \" + e.getMessage());\n\t\t}\n\t\t\n\t\tString jobNameAKAMirrorID = mirrorID;\n\t\tString downloaderGroupName = DOWNLOADER;\n\t\tString diffGeneratorGroupName = DIFF_GENERATOR;\n\t\tString deltaGeneratorGroupName = DELTA_GENERATOR;\n\t\t\n\t\t/*\n\t\t * DELTA job\n\t\t */\n\t\tJobDetail deltaJobDetail = new JobDetail(jobNameAKAMirrorID,\n\t\t\t\t\t\t\t\tdeltaGeneratorGroupName, // default group\n\t\t\t\t\t\t\t\tDOMDeltaGeneratorJob.class); // the diff job\n\t\t\n\t\t/*\n\t\t * DIFF job\n\t\t */\n\t\tJobDetail diffJobDetail = new JobDetail(jobNameAKAMirrorID,\n\t\t\t\t\t\t\t\tdiffGeneratorGroupName, // default group\n\t\t\t\t\t\t\t\tDOMDiffGeneratorJob.class); // the diff job\n\t\t\n\t\t/*\n\t\t * DOWNLOADER job\n\t\t * This job is the point of entry in the workflow.\n\t\t * It needs to know about the 2 jobs which are next (see above).\n\t\t */\n\t\tJobDetail jobDetail = new JobDetail(jobNameAKAMirrorID, downloaderGroupName,\n\t\t\t\t\t\t\t\t\tDownloaderJob.class); // the job\n\t\t\n\t\tjobDetail.getJobDataMap().put(MIRROR, mirror);\n\t\tjobDetail.getJobDataMap().put(DELTA_GENERATOR, deltaJobDetail);\n\t\tjobDetail.getJobDataMap().put(DIFF_GENERATOR, diffJobDetail);\n\t\t\n\t\tCronTrigger trigger = new CronTrigger(\"CronTrigger for \" + mirror,\n\t\t\t\t\t\t\t\t\tdownloaderGroupName, jobNameAKAMirrorID, downloaderGroupName,\n\t\t\t\t\t\t\t\t\tmirror.getCronExpression() );\n\t\t// TODO remove below!\n\t\t//Trigger trigger = TriggerUtils.makeMinutelyTrigger(intervalHours);\n\t\t//Trigger trigger = TriggerUtils.makeHourlyTrigger(intervalHours);\n\t\ttrigger.setStartTime(new java.util.Date());\n\t\ttrigger.setName(\"Download Job for \" + mirror);\n\t\tsched.scheduleJob(jobDetail, trigger);\n\t\t\n\t\tlogger.info(\"Scheduled job for \" + mirror \n\t\t\t\t+ \" with cron expression '\" + mirror.getCronExpression() + \"'\");\n\t\t\n\t}", "public RemoteSchedule createRetrySchedule(IRemoteTask task) {\r\n\t\t// create retry schedule identity\r\n\t\tRemoteScheduleIdentity scheduleIdentity = RemoteScheduleIdentity.generateIdentity(task.getSchedule()\r\n\t\t\t\t.getIdentity().getIdentity());\r\n\t\t// create retry dummy schedule\r\n\t\tRemoteSchedule retrySchedule = new RemoteSchedule(scheduleIdentity, ERemoteScheduleType.RetryDummy,\r\n\t\t\t\tnew RemoteTaskMananger(), task.getSchedule().getParams());\r\n\t\t// create retry task\r\n\t\tRemoteTask newTask = new RemoteTask(task.getIdentity(), retrySchedule, ERemoteTaskStatus.Retry,\r\n\t\t\t\ttask.getParams(), task.getTaskIndex());\r\n\t\tretrySchedule.getTaskMananger().addTask(newTask);\r\n\r\n\t\t// retry all task item\r\n\t\tfor (IRemoteTaskItem oldTaskItem : task.getTaskItems()) {\r\n\r\n\t\t\tIRemoteTaskItemIdentity taskItemIdentity = RemoteTaskItemIdentity.generateIdentity(oldTaskItem\r\n\t\t\t\t\t.getIdentity().getIdentity());\r\n\r\n\t\t\tRemoteTaskItem taskItem = new RemoteTaskItem(taskItemIdentity, task, ERemoteTaskItemStatus.Retry,\r\n\t\t\t\t\toldTaskItem.getParams(), oldTaskItem.getTaskItemIndex());\r\n\t\t\tnewTask.addTaskItem(taskItem);\r\n\t\t}\r\n\r\n\t\t// set retry task status and timeout\r\n\t\ttask.getSchedule().getTaskMananger().retryTask(task);\r\n\t\tnewTask.setRetryCount(task.getRetryCount());\r\n\t\treturn retrySchedule;\r\n\t}", "public interface SchedulerProvider {\n\n Scheduler ui();\n\n Scheduler computation();\n\n Scheduler io();\n\n}", "public UseCaseThreadPoolScheduler() {\n\t\tthis.threadPoolExecutor = new ThreadPoolExecutor(POOL_SIZE, MAX_POOL_SIZE, TIMEOUT,\n\t\t\t\tTimeUnit.SECONDS, new ArrayBlockingQueue<Runnable>(POOL_SIZE));\n\t}", "public interface RxSchedulers {\n\n Scheduler runOnBackground();\n\n Scheduler io();\n\n Scheduler compute();\n\n Scheduler androidThread();\n\n Scheduler internet();\n}", "public interface SchedulerProvider {\n\n Scheduler io();\n\n Scheduler ui();\n}", "default boolean pollOnExecutionFailed() {\n return false;\n }", "private JobScheduler() {\n // empty\n }", "@Override\n protected Scheduler scheduler() {\n return Scheduler.newFixedRateSchedule(0, 1, TimeUnit.SECONDS);\n }", "int getRetries();", "void sendRetryMessage(int retryNo);", "public void setScheduler(Scheduler scheduler)\r\n/* 25: */ {\r\n/* 26: 65 */ this.scheduler = scheduler;\r\n/* 27: */ }", "public void execute(JobExecutionContext context) throws JobExecutionException {\n\t\t\n\t\tint scheduler_id=(Integer)context.getJobDetail().getJobDataMap().get(\"scheduler_id\");\t\t\n \tString taskuid=(String)context.getJobDetail().getJobDataMap().get(\"taskuid\");\n \tString invoked_by=(String)context.getJobDetail().getJobDataMap().get(SchedulerEngine.JOBDATA_INVOKED_BY);\n \tString updatedtime=(String)context.getJobDetail().getJobDataMap().get(SchedulerEngine.JOBDATA_UPDATED_TIME);\n \tNumber trigger_row_id=(Number)context.getJobDetail().getJobDataMap().get(SchedulerEngine.JOBDATA_TRIGGER_ROW_ID);\n \t//System.out.println(\"ScheduledTaskJob.execute() 2be removed later:taskuid:\"+taskuid+\" scheduler_id:\"+scheduler_id);\n \t\n \t\n \t\n \ttry{\n \t\t\n\t \t//Map data=getSchedulerData(scheduler_id);\n \t\tSchedulerDB sdb=SchedulerDB.getSchedulerDB();\n \t\tMap data=null;\n \t\tString inject_code=null;\n \t\ttry{\n \t\t\tsdb.connectDB();\n \t\t\tdata=sdb.getScheduler(scheduler_id); \n \t\t\tif(trigger_row_id!=null){\n \t\t\t\tMap trig=sdb.getOneRowTriggerData(trigger_row_id.longValue());\n \t\t\t\tinject_code=(String)trig.get(\"inject_code\");\n \t\t\t}\n \t\t}catch(Exception e){\n \t\t\tthrow e;\n \t\t}finally {\n \t\t\tsdb.closeDB();\n \t\t}\n \t\t\n \t\tif(data.get(\"deleted\")!=null && ((Number)data.get(\"deleted\")).intValue()==1){\n \t\t\tthrow new Exception(\"Deleted Task can't be executed\");\n \t\t}\n \t\t\n \t\tlog.debug(\"trigger_row_id:\"+trigger_row_id+\" inject_code:\"+inject_code);\n\t \t\n\t \tScheduledTask task=new ScheduledTaskFactory().getTask(taskuid);\n\t \tif(task==null) {\n\t \t\tthrow new Exception(\"Task Group not found for the task:\"+scheduler_id);\n\t \t}\n\t \tStackFrame sframe=new StackFrame(task,data);\n\t \tif(invoked_by!=null && !invoked_by.equals(\"\")) {\n\t \t\tsframe.setInvokedby(invoked_by);\n\t \t}else{\n\t \t\tif(updatedtime!=null){\n\t \t\t\tsframe.setInvokedby(\"Scheduler (\"+updatedtime+\")\");\n\t \t\t}else{\n\t \t\t\tsframe.setInvokedby(\"Scheduler\");\n\t \t\t}\n\t \t}\n\t\t\t\n\t\t\tif(context.getTrigger().getPreviousFireTime()!=null){\n\t\t\t\tsframe.setTrigger_time(context.getTrigger().getPreviousFireTime().getTime());\n\t\t\t}else{\n\t\t\t\tsframe.setTrigger_time(new Date().getTime());\n\t\t\t}\n\t\t\t\n\t\t\tif(context.getTrigger().getNextFireTime()!=null){\n\t\t\t\tsframe.setNexttrigger_time(context.getTrigger().getNextFireTime().getTime());\n\t\t\t}\t\t\t\n\t\t\n\t\t\t\n\t\t\tif(Config.getValue(\"load_balancing_server\")!=null && Config.getValue(\"load_balancing_server\").equals(P2PService.getComputerName())){\n\t\t\t\tLoadBalancingQueueItem li=new LoadBalancingQueueItem();\n\t\t\t\tli.setSf(sframe);\n\t\t\t\tInteger id=(Integer)data.get(\"id\");\n\t\t\t\tli.setInject_code(inject_code);\n\t\t\t\tli.setSchedulerid(id);\n\t\t\t\tLoadBalancingQueue.getDefault().add(li);\n\t\t\t\t\n\t\t\t}else{\n\t\t\t\t/*ScheduledTaskQueue.add(sframe);*/\n\t\t\t}\n\t\t\t\n\t\t\tlog.debug(\"adding task to queue: task:\"+data.get(\"name\"));\n \t}catch(Exception e){\n \t\te.printStackTrace(); \t\t\n \t\t//ClientErrorMgmt.reportError(e, \"Error while triggering task\");\n \t} \n\t\t \n\t\t//String status=null;\n\t\t//try{\t\t\n\t\t\t//task.execute();\n\t\t\t//status=task.EXCECUTION_SUCCESS;\n\t\t//}catch(Exception e){\n\t\t//\tstatus=task.EXCECUTION_FAIL;\t\t\t\n\t\t//\tClientErrorMgmt.reportError(e, null);\n\t\t//}finally{\n\t\t//\ttry{\n\t\t//\t\taddLog(sdate,data,status);\n\t\t//\t}catch(Exception e){\n\t\t//\t\tClientErrorMgmt.reportError(e, null);\n\t\t//\t}\t\t\t\n\t\t//}\n\t\t\n \t\n \t\n\t}", "static /* synthetic */ void m6185c(Throwable __) {\n boolean[] $jacocoInit = $jacocoInit();\n Logger instance = Logger.getInstance();\n $jacocoInit[101] = true;\n instance.mo2148w(\"AccountManagerService\", \"retryOnTicket() doOnNext()\");\n $jacocoInit[102] = true;\n }", "public interface BaseSchedulers {\n\n Scheduler io();\n\n Scheduler computation();\n\n Scheduler ui();\n\n}", "@Override\n public void onRetry(int retryNo) {\n }", "@Override\n public void onRetry(int retryNo) {\n }", "@Override\n public void onRetry(int retryNo) {\n }", "@Override\n public void onRetry(int retryNo) {\n }", "@Override\n public void onRetry(int retryNo) {\n }", "@Override\n public void onRetry(int retryNo) {\n }", "@Override\n public void onRetry(int retryNo) {\n }", "@Override\n public void onRetry(int retryNo) {\n }", "@Override\n public void onRetry(int retryNo) {\n }", "@Override // ohos.workscheduler.IWorkScheduler\r\n /* Code decompiled incorrectly, please refer to instructions dump. */\r\n public boolean sendRemote(ohos.rpc.IRemoteObject r5) throws ohos.rpc.RemoteException {\r\n /*\r\n r4 = this;\r\n ohos.rpc.MessageParcel r4 = ohos.rpc.MessageParcel.obtain()\r\n ohos.rpc.MessageParcel r0 = ohos.rpc.MessageParcel.obtain()\r\n ohos.rpc.MessageOption r1 = new ohos.rpc.MessageOption\r\n r2 = 0\r\n r1.<init>(r2)\r\n java.lang.String r3 = \"ohos.workscheduler.IWorkScheduler\"\r\n boolean r3 = r4.writeInterfaceToken(r3) // Catch:{ RemoteException -> 0x0033 }\r\n if (r3 != 0) goto L_0x001d\r\n L_0x0016:\r\n r4.reclaim()\r\n r0.reclaim()\r\n return r2\r\n L_0x001d:\r\n boolean r3 = r4.writeRemoteObject(r5)\r\n if (r3 != 0) goto L_0x0024\r\n goto L_0x0016\r\n L_0x0024:\r\n r3 = 4\r\n boolean r5 = r5.sendRequest(r3, r4, r0, r1)\r\n if (r5 == 0) goto L_0x003c\r\n int r5 = r0.readInt()\r\n r2 = r5\r\n goto L_0x003c\r\n L_0x0031:\r\n r5 = move-exception\r\n goto L_0x004c\r\n L_0x0033:\r\n ohos.hiviewdfx.HiLogLabel r5 = ohos.workscheduler.WorkSchedulerProxy.LOG_LABEL // Catch:{ all -> 0x0031 }\r\n java.lang.String r1 = \"RemoteException\"\r\n java.lang.Object[] r3 = new java.lang.Object[r2] // Catch:{ all -> 0x0031 }\r\n ohos.hiviewdfx.HiLog.error(r5, r1, r3) // Catch:{ all -> 0x0031 }\r\n L_0x003c:\r\n r4.reclaim()\r\n r0.reclaim()\r\n if (r2 != 0) goto L_0x0046\r\n r4 = 1\r\n return r4\r\n L_0x0046:\r\n ohos.rpc.RemoteException r4 = new ohos.rpc.RemoteException\r\n r4.<init>()\r\n throw r4\r\n L_0x004c:\r\n r4.reclaim()\r\n r0.reclaim()\r\n throw r5\r\n */\r\n throw new UnsupportedOperationException(\"Method not decompiled: ohos.workscheduler.WorkSchedulerProxy.sendRemote(ohos.rpc.IRemoteObject):boolean\");\r\n }", "public schedulerJob() {\n }", "SchedulersFactory getSchedulersFactory();", "void doShowRetry();", "String getLogRetryStackTrace();", "public void init(){\n\t\t//this.lock = new ReentrantLock();\n\t\t//jobscheduler.setLock(this.lock);\n\t\tthis.poller.inspect();\n\t\tschedule(this.poller.refresh());\t\t\t\t\n\t}", "public PriorityScheduler() {\n }", "private void beginSchedule(){\n\t\tDivaApp.getInstance().submitScheduledTask(new RandomUpdater(this), RandomUpdater.DELAY, RandomUpdater.PERIOD);\n\t}", "ResilientExecutionUtil() {\n // do nothing\n }", "public void testTaskScheduler()\n throws Exception {\n \n TaskScheduler<Integer> scheduler = null;\n \n // Run test.\n TestTask task1 = new TestTask();\n TestTask task2 = new TestTask();\n scheduler = new TaskScheduler<Integer>(\"TestTaskScheduler\", 1, 2);\n scheduler.schedule(1, task1, true, 1000, 0);\n scheduler.schedule(2, task2, true, 1500, 1500);\n Thread.sleep(1800);\n scheduler.cancel(2, false);\n scheduler.cancel(1, false);\n\n // Wait some more to make sure no more tasks run.\n Thread.sleep(1000);\n\n // Validate number of calls.\n assertEquals(\"Task 1 calls\", 2, scheduler.getLastResult(1).intValue());\n assertEquals(\"Task 2 calls\", 1, scheduler.getLastResult(2).intValue());\n }", "@Override\n protected Scheduler scheduler() {\n return Scheduler.newFixedRateSchedule(0, 1, TimeUnit.DAYS);\n }", "@Override\r\n\tpublic void doInitialSchedules() {\n\t}", "public void scheduleJobs();", "public interface RetryContext\n{\n String FAILED_RECEIVER = \"failedReceiver\";\n String FAILED_DISPATCHER = \"failedDispatcher\";\n String FAILED_REQUESTER = \"failedRequester\";\n\n /**\n * @return a read-only meta-info map or an empty map, never null.\n */\n Map getMetaInfo();\n\n void setMetaInfo(Map metaInfo);\n\n MuleMessage[] getReturnMessages();\n\n MuleMessage getFirstReturnMessage();\n\n void setReturnMessages(MuleMessage[] returnMessages);\n\n void addReturnMessage(MuleMessage result);\n\n String getDescription();\n\n /**\n * The most recent failure which prevented the context from validating the connection. Note that the method may\n * return null. Instead, the {@link #isOk()} should be consulted first.\n *\n * @return last failure or null\n */\n Throwable getLastFailure();\n\n /**\n * Typically called by validation logic to mark no problems with the current connection. Additionally,\n * clears any previous failure set.\n */\n void setOk();\n\n /**\n * Typically called by validation logic to mark a problem and an optional root cause.\n *\n * @param lastFailure the most recent failure, can be null\n */\n void setFailed(Throwable lastFailure);\n\n /**\n * Note that it's possible for an implementation to return false and have no failure specified, thus\n * the subsequent {@link #getLastFailure()} may return null.\n *\n * @return true if no problems detected before\n */\n boolean isOk();\n}", "static io.reactivex.Scheduler applyRequireNonNull(io.reactivex.functions.Function<java.util.concurrent.Callable<io.reactivex.Scheduler>, io.reactivex.Scheduler> r3, java.util.concurrent.Callable<io.reactivex.Scheduler> r4) {\n /*\n java.lang.Object r0 = apply(r3, r4)\n io.reactivex.Scheduler r0 = (io.reactivex.Scheduler) r0\n if (r0 != 0) goto L_0x0011\n java.lang.NullPointerException r1 = new java.lang.NullPointerException\n java.lang.String r2 = \"Scheduler Callable returned null\"\n r1.<init>(r2)\n throw r1\n L_0x0011:\n return r0\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.taobao.plugins.RxAndroidPlugins.applyRequireNonNull(io.reactivex.functions.Function, java.util.concurrent.Callable):io.reactivex.Scheduler\");\n }", "@IntRange(from = 0L) long interval(int retryCount, long elapsedTime);", "@Bean\n public ThreadPoolTaskScheduler iotTaskScheduler(){\n ThreadPoolTaskScheduler threadPoolTaskScheduler\n = new ThreadPoolTaskScheduler();\n threadPoolTaskScheduler.setPoolSize(10);\n threadPoolTaskScheduler.setThreadNamePrefix(\n \"iotTaskScheduler\");\n return threadPoolTaskScheduler;\n }", "@Override\n public int getRetryDelay() {\n return retryDelay;\n }", "public interface AppScheduler {\n Scheduler getNewThread();\n Scheduler getMainThread();\n}", "@Override\n protected Scheduler createScheduler() {\n return new JLScheduler(this) {\n @Override\n public List<Goal> goals(Job job) {\n List<Goal> goals= super.goals(job);\n Goal endGoal = goals.get(goals.size()-1);\n if (!(endGoal.name().equals(\"End\"))) {\n throw new IllegalStateException(\"Last goal is not an End goal?\");\n }\n endGoal.addPrereq(new IRGoal(job, fSourceLoader));\n return goals;\n }\n };\n }", "@Test\n\t@Ignore\n\tpublic void testScheduler() {\n\t\torg.springframework.scheduling.support.CronTrigger trigger = new CronTrigger(\"0 0 0 * * *\");\n\t\tCalendar today = Calendar.getInstance();\n\t\ttoday.add(Calendar.DAY_OF_MONTH, -1);\n\t\tSimpleDateFormat sdf = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss z\");\n\t\tfinal Date yesterday = today.getTime();\n\t\tString lastMessage = (sdf.format(yesterday)) + \" : [Yesterday]\";\n\t\tlog.debug(lastMessage);\n\t\tDate nextExecution = trigger.nextExecutionTime(\n\t\t\t\tnew TriggerContext() {\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic Date lastScheduledExecutionTime() {\n\t\t\t\t\t\treturn yesterday;\n\t\t\t\t\t}\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic Date lastActualExecutionTime() {\n\t\t\t\t\t\treturn yesterday;\n\t\t\t\t\t}\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic Date lastCompletionTime() {\n\t\t\t\t\t\treturn yesterday;\n\t\t\t\t\t}\n\t\t\t\t});\n\t\tString nextMessage = sdf.format(nextExecution) + \" : [Execution] \";\n\t\tlog.debug(nextMessage);\n\t}", "public void runPendingTasks() {\n/* */ try {\n/* 578 */ this.loop.runTasks();\n/* 579 */ } catch (Exception e) {\n/* 580 */ recordException(e);\n/* */ } \n/* */ \n/* */ try {\n/* 584 */ this.loop.runScheduledTasks();\n/* 585 */ } catch (Exception e) {\n/* 586 */ recordException(e);\n/* */ } \n/* */ }", "public abstract void schedule();", "public PriorityScheduler() {\n\t}", "CdapResumeScheduleStep createCdapResumeScheduleStep();", "private SleeperTask()\r\n\t{\r\n\t\ttimer = new Timer();\r\n\t\tprovider = null;\r\n\t\taction = \"\";\r\n\t\tverbose = false;\r\n\t\tsetRepeat(5);\r\n\t}", "void restartEventsWithDelay(final boolean longDelay, final boolean alsoRescan, final boolean unblockEventsRun,\n final int logType)\n {\n if (longDelay) {\n\n Data workData = new Data.Builder()\n .putBoolean(PhoneProfilesService.EXTRA_ALSO_RESCAN, alsoRescan)\n .putBoolean(PhoneProfilesService.EXTRA_UNBLOCK_EVENTS_RUN, unblockEventsRun)\n .putInt(PhoneProfilesService.EXTRA_LOG_TYPE, logType)\n .build();\n\n OneTimeWorkRequest restartEventsWithDelayWorker;\n restartEventsWithDelayWorker =\n new OneTimeWorkRequest.Builder(RestartEventsWithDelayWorker.class)\n .addTag(RestartEventsWithDelayWorker.WORK_TAG_2)\n .setInputData(workData)\n .setInitialDelay(15, TimeUnit.SECONDS)\n .build();\n try {\n if (PPApplicationStatic.getApplicationStarted(true, true)) {\n WorkManager workManager = PPApplication.getWorkManagerInstance();\n if (workManager != null) {\n\n// //if (PPApplicationStatic.logEnabled()) {\n// ListenableFuture<List<WorkInfo>> statuses;\n// statuses = workManager.getWorkInfosForUniqueWork(RestartEventsWithDelayWorker.WORK_TAG);\n// try {\n// List<WorkInfo> workInfoList = statuses.get();\n// } catch (Exception ignored) {\n// }\n// //}\n\n// PPApplicationStatic.logE(\"[WORKER_CALL] DataWrapper.restartEventsWithDelay\", \"xxx\");\n //workManager.enqueue(restartEventsWithDelayWorker);\n //if (replace)\n workManager.enqueueUniqueWork(RestartEventsWithDelayWorker.WORK_TAG_2, ExistingWorkPolicy.REPLACE, restartEventsWithDelayWorker);\n //else\n // workManager.enqueueUniqueWork(RestartEventsWithDelayWorker.WORK_TAG_APPEND, ExistingWorkPolicy.APPEND_OR_REPLACE, restartEventsWithDelayWorker);\n }\n }\n } catch (Exception e) {\n PPApplicationStatic.recordException(e);\n }\n } else {\n// PPApplicationStatic.logE(\"[EXECUTOR_CALL] ***** DataWrapper.restartEventsWithDelay\", \"schedule\");\n\n final Context appContext = context.getApplicationContext();\n //final ScheduledExecutorService worker = Executors.newSingleThreadScheduledExecutor();\n Runnable runnable = () -> {\n// long start = System.currentTimeMillis();\n// PPApplicationStatic.logE(\"[IN_EXECUTOR] ***** DataWrapper.restartEventsWithDelay\", \"--------------- START\");\n\n PowerManager powerManager = (PowerManager) appContext.getSystemService(Context.POWER_SERVICE);\n PowerManager.WakeLock wakeLock = null;\n try {\n if (powerManager != null) {\n wakeLock = powerManager.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, PPApplication.PACKAGE_NAME + \":DataWrapper_restartEventsWithDelay\");\n wakeLock.acquire(10 * 60 * 1000);\n }\n\n //PPExecutors.doRestartEventsWithDelay(alsoRescan, unblockEventsRun, logType, context);\n\n DataWrapper dataWrapper = new DataWrapper(appContext, false, 0, false, 0, 0, 0f);\n if (logType != PPApplication.ALTYPE_UNDEFINED)\n PPApplicationStatic.addActivityLog(appContext, logType, null, null, \"\");\n //dataWrapper.restartEvents(unblockEventsRun, true, true, false);\n dataWrapper.restartEventsWithRescan(alsoRescan, unblockEventsRun, false, false, true, false);\n //dataWrapper.invalidateDataWrapper();\n\n\n// long finish = System.currentTimeMillis();\n// long timeElapsed = finish - start;\n// PPApplicationStatic.logE(\"[IN_EXECUTOR] ***** DataWrapper.restartEventsWithDelay\", \"--------------- END - timeElapsed=\"+timeElapsed);\n } catch (Exception e) {\n// PPApplicationStatic.logE(\"[IN_EXECUTOR] PPApplication.startHandlerThread\", Log.getStackTraceString(e));\n PPApplicationStatic.recordException(e);\n } finally {\n if ((wakeLock != null) && wakeLock.isHeld()) {\n try {\n wakeLock.release();\n } catch (Exception ignored) {\n }\n }\n //worker.shutdown();\n }\n };\n PPApplicationStatic.createDelayedEventsHandlerExecutor();\n PPApplication.delayedEventsHandlerExecutor.schedule(runnable, 5, TimeUnit.SECONDS);\n }\n }", "public interface Scheduler {\n\n void schedule();\n\n}", "private static ScriptedNonThreadScheduler test(GreenApp app, GreenRuntime runtime) {\n runtime.builder = new BuilderImpl(runtime.gm,runtime.args);\n\n //lowered for tests, we want tests to run faster, tests probably run on bigger systems.\n runtime.builder.setDefaultRate(10_000);\n \n \tapp.declareConfiguration(runtime.builder);\n GraphManager.addDefaultNota(runtime.gm, GraphManager.SCHEDULE_RATE, runtime.builder.getDefaultSleepRateNS());\n\n runtime.declareBehavior(app);\n\n\t\truntime.builder.buildStages(runtime);\n\n\t runtime.logStageScheduleRates();\n\n\t if ( runtime.builder.isTelemetryEnabled()) {\n\t\t runtime.gm.enableTelemetry(defaultTelemetryPort);\n\t }\n\n\t //exportGraphDotFile();\n\t boolean reverseOrder = false;\n\t\truntime.scheduler = new ScriptedNonThreadScheduler(runtime.gm, reverseOrder);\n\t\t\n\t\t/////////////\n\t\t//new work investigating the skipping of calls\n\t\t/////////////\n\t\t\n\t\tScriptedNonThreadScheduler s = (ScriptedNonThreadScheduler)runtime.scheduler;\n\t\tScriptedSchedule schedule = s.schedule();\n\t\t\n//\t\t//[0, 1, 2, 3, 5, 6, 7, -1, 0, 1, 2, 4, 5, 6, 7, -1]\n//\t\tSystem.err.println(\"testing list\");\n//\t\tSystem.err.println(Arrays.toString(schedule.script));\n//\t\t\n//\t\tfor(int i = 0; i<s.stages.length; i++) {\n//\t\t\tSystem.err.println(i+\" \"+s.stages[i].getClass());\n//\t\t\t\n//\t\t}\n\t\t\n\t\t\n\t\t//skip script is same length as the script\n\t\tGraphManager gm = runtime.gm;\n\t\t\n\t\t//TODO: must store the run count to the next skip point\n\t\t// skip points are Producers or merge pipe points.\n\t\t// all others are zero, to take point\n\t\t//high bit will be used to enable and 0 high for disable\n\t\tint[] skipScript = ScriptedNonThreadScheduler.buildSkipScript(schedule, gm, s.stages, schedule.script);\n\t\t\n//\t\tSystem.err.println(Arrays.toString(skipScript));\n\t\t\n\t\t//if enabled\n\t\t//if value is > 1\n\t\t//if input pipes are empty\n\t\t// jump n\n\t\t//else\n\t\t// count down value for each set of empty pipes\n\t\t// if we have zero at next >1 point enable else disable\n\t\t\n//\t\t\n//\t\tfor(int i = 0;i<schedule.script.length;i++) {\n//\t\t\tif (schedule.script[i] == -1) {\n//\t\t\t\tSystem.err.println(\"END\");\n//\t\t\t} else {\n//\t\t\t\tSystem.err.println(s.stages[schedule.script[i]].getClass());\n//\t\t\n//\t\t\t\tint inC = GraphManager.getInputPipeCount(runtime.gm, s.stages[schedule.script[i]].stageId);\n//\t\t\t\tSystem.err.print(\" input: \");\n//\t\t\t\tfor(int j = 1; j<=inC; j++) {\n//\t\t\t\t\tPipe p = GraphManager.getInputPipe(runtime.gm, s.stages[schedule.script[i]].stageId, j);\n//\t\t\t\t\tSystem.err.print(\" \"+p.id);\t\t\t\t\t\n//\t\t\t\t}\n//\t\t\t\tSystem.err.println();\n//\t\t\t\t\n//\t\t\t\tSystem.err.print(\" output: \");\n//\t\t\t\tint outC = GraphManager.getOutputPipeCount(runtime.gm, s.stages[schedule.script[i]].stageId);\n//\t\t\t\tfor(int j = 1; j<=outC; j++) {\n//\t\t\t\t\tPipe p = GraphManager.getOutputPipe(runtime.gm, s.stages[schedule.script[i]].stageId, j);\n//\t\t\t\t\tSystem.err.print(\" \"+p.id);\t\t\t\t\t\n//\t\t\t\t}\n//\t\t\t\tSystem.err.println();\n//\t\t\t}\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\treturn (ScriptedNonThreadScheduler) runtime.scheduler;\n\t}", "@Test\n public void testCanRetry() {\n assertEquals(0, rc.getAttempts());\n assertTrue(rc.attempt());\n assertEquals(1, rc.getAttempts());\n assertTrue(rc.attempt());\n assertEquals(2, rc.getAttempts());\n assertTrue(rc.attempt());\n assertEquals(3, rc.getAttempts());\n assertFalse(rc.attempt());\n assertEquals(3, rc.getAttempts());\n assertFalse(rc.attempt());\n assertEquals(3, rc.getAttempts());\n assertFalse(rc.attempt());\n assertEquals(3, rc.getAttempts());\n }", "@Override // ohos.workscheduler.IWorkScheduler\r\n /* Code decompiled incorrectly, please refer to instructions dump. */\r\n public void onWorkStop(ohos.workscheduler.WorkInfo r6) throws ohos.rpc.RemoteException {\r\n /*\r\n r5 = this;\r\n ohos.rpc.MessageParcel r0 = ohos.rpc.MessageParcel.obtain()\r\n ohos.rpc.MessageParcel r1 = ohos.rpc.MessageParcel.obtain()\r\n ohos.rpc.MessageOption r2 = new ohos.rpc.MessageOption\r\n r3 = 0\r\n r2.<init>(r3)\r\n java.lang.String r4 = \"ohos.workscheduler.IWorkScheduler\"\r\n boolean r4 = r0.writeInterfaceToken(r4)\r\n if (r4 != 0) goto L_0x001d\r\n r0.reclaim()\r\n r1.reclaim()\r\n return\r\n L_0x001d:\r\n r0.writeSequenceable(r6) // Catch:{ RemoteException | ParcelException -> 0x0031 }\r\n ohos.rpc.IRemoteObject r5 = r5.remote // Catch:{ RemoteException | ParcelException -> 0x0031 }\r\n r6 = 2\r\n boolean r5 = r5.sendRequest(r6, r0, r1, r2) // Catch:{ RemoteException | ParcelException -> 0x0031 }\r\n if (r5 == 0) goto L_0x003a\r\n int r5 = r1.readInt() // Catch:{ RemoteException | ParcelException -> 0x0031 }\r\n r3 = r5\r\n goto L_0x003a\r\n L_0x002f:\r\n r5 = move-exception\r\n goto L_0x0049\r\n L_0x0031:\r\n ohos.hiviewdfx.HiLogLabel r5 = ohos.workscheduler.WorkSchedulerProxy.LOG_LABEL // Catch:{ all -> 0x002f }\r\n java.lang.String r6 = \"onWorkStop Exception\"\r\n java.lang.Object[] r2 = new java.lang.Object[r3] // Catch:{ all -> 0x002f }\r\n ohos.hiviewdfx.HiLog.error(r5, r6, r2) // Catch:{ all -> 0x002f }\r\n L_0x003a:\r\n r0.reclaim()\r\n r1.reclaim()\r\n if (r3 != 0) goto L_0x0043\r\n return\r\n L_0x0043:\r\n ohos.rpc.RemoteException r5 = new ohos.rpc.RemoteException\r\n r5.<init>()\r\n throw r5\r\n L_0x0049:\r\n r0.reclaim()\r\n r1.reclaim()\r\n throw r5\r\n */\r\n throw new UnsupportedOperationException(\"Method not decompiled: ohos.workscheduler.WorkSchedulerProxy.onWorkStop(ohos.workscheduler.WorkInfo):void\");\r\n }", "public interface ScheduledBillService {\n\tpublic void scheduleTaskWithCronExpression();\n}", "@Override\n public void run() {\n CuratorLocker locker = new CuratorLocker(schedulerBuilder.getServiceSpec());\n\n Runtime.getRuntime().addShutdownHook(new Thread(() -> {\n LOGGER.info(\"Shutdown initiated, releasing curator lock\");\n locker.unlock();\n }));\n locker.lock();\n\n SchedulerConfig schedulerConfig = SchedulerConfig.fromEnv();\n Metrics.configureStatsd(schedulerConfig);\n AbstractScheduler scheduler = schedulerBuilder.build();\n scheduler.start();\n Optional<Scheduler> mesosScheduler = scheduler.getMesosScheduler();\n if (mesosScheduler.isPresent()) {\n SchedulerApiServer apiServer = new SchedulerApiServer(schedulerConfig, scheduler.getResources());\n apiServer.start(new AbstractLifeCycle.AbstractLifeCycleListener() {\n @Override\n public void lifeCycleStarted(LifeCycle event) {\n scheduler.markApiServerStarted();\n }\n });\n\n runScheduler(\n scheduler.frameworkInfo,\n mesosScheduler.get(),\n schedulerBuilder.getServiceSpec(),\n schedulerBuilder.getSchedulerConfig(),\n schedulerBuilder.getStateStore());\n } else {\n /**\n * If no MesosScheduler is provided this scheduler has been deregistered and should report itself healthy\n * and provide an empty COMPLETE deploy plan so it may complete its UNINSTALL.\n *\n * See {@link UninstallScheduler#getMesosScheduler()}.\n */\n Plan emptyDeployPlan = new Plan() {\n @Override\n public List<Phase> getChildren() {\n return Collections.emptyList();\n }\n\n @Override\n public Strategy<Phase> getStrategy() {\n return new SerialStrategy<>();\n }\n\n @Override\n public UUID getId() {\n return UUID.randomUUID();\n }\n\n @Override\n public String getName() {\n return Constants.DEPLOY_PLAN_NAME;\n }\n\n @Override\n public List<String> getErrors() {\n return Collections.emptyList();\n }\n };\n\n PlanManager emptyPlanManager = DefaultPlanManager.createProceeding(emptyDeployPlan);\n PlansResource emptyPlanResource = new PlansResource();\n emptyPlanResource.setPlanManagers(Arrays.asList(emptyPlanManager));\n\n schedulerBuilder.getStateStore().clearAllData();\n\n SchedulerApiServer apiServer = new SchedulerApiServer(\n schedulerConfig,\n Arrays.asList(\n emptyPlanResource,\n new HealthResource()));\n apiServer.start(new AbstractLifeCycle.AbstractLifeCycleListener() {\n @Override\n public void lifeCycleStarted(LifeCycle event) {\n LOGGER.info(\"Started trivially healthy API server.\");\n }\n });\n }\n }", "@Override\n public void timeout(CellPath path) {\n retry(task, SMALL_DELAY);\n }", "private synchronized Date reschedule(SchedulerTask schedulerTask, ScheduleIterator iterator)\n { the scheduler has been canceled\n // This happens if a task itself stops the scheduler!!\n //\n\t\tif (this.timer == null)\n\t\t\treturn null;\n \n // the task has been canceled in the meanwhile?\n if (schedulerTask.getState()== SchedulerTaskState.CANCELED)\n return null;\n\n SchedulerTimerTask timerTask = new SchedulerTimerTask(schedulerTask, iterator);\n scheduledTimerTasks.put(schedulerTask.getKey(), timerTask);\n \n Date nextExecution = getNextExecution(timerTask.iterator);\n if (nextExecution == null)\n {\n // The task wants terminate\n //\n cancel(timerTask.schedulerTask.getKey());\n }\n else\n {\n // The task wants run again\n //\n timer.schedule(timerTask, nextExecution);\n }\n \n return nextExecution;\n }", "public void a(int i2, int i3, boolean z) {\n a aVar;\n boolean z2;\n p reserveWifiStatusListener;\n boolean z3;\n Context context = this.b;\n if (context != null) {\n synchronized (this.d) {\n aVar = this.d.get(i2);\n if (aVar != null) {\n z2 = true;\n if (aVar.l) {\n aVar.l = false;\n int i4 = this.g - 1;\n this.g = i4;\n if (i4 < 0) {\n this.g = 0;\n }\n }\n } else {\n return;\n }\n }\n com.ss.android.socialbase.downloader.c.a.c(\"RetryScheduler\", \"doSchedulerRetryInSubThread: downloadId = \" + i2 + \", retryCount = \" + aVar.i + \", mWaitingRetryTasksCount = \" + this.g);\n DownloadInfo downloadInfo = Downloader.getInstance(context).getDownloadInfo(i2);\n if (downloadInfo == null) {\n c(i2);\n return;\n }\n com.ss.android.socialbase.downloader.c.a.e(\"RetryScheduler\", \"doSchedulerRetryInSubThread,id:\" + i2);\n int realStatus = downloadInfo.getRealStatus();\n if (realStatus == -3 || realStatus == -4) {\n c(i2);\n } else if (realStatus == -5 || (realStatus == -2 && downloadInfo.isPauseReserveOnWifi())) {\n if (realStatus == -2 && (reserveWifiStatusListener = Downloader.getInstance(com.ss.android.socialbase.downloader.downloader.b.L()).getReserveWifiStatusListener()) != null) {\n reserveWifiStatusListener.a(downloadInfo, 4, 3);\n }\n k w = com.ss.android.socialbase.downloader.downloader.b.w();\n if (w != null) {\n w.a(Collections.singletonList(downloadInfo), 3);\n }\n c(i2);\n } else if (realStatus == -1) {\n if (i3 != 0) {\n z3 = true;\n } else if (aVar.f) {\n z3 = false;\n } else {\n return;\n }\n BaseException failedException = downloadInfo.getFailedException();\n if (z3 && e.g(failedException)) {\n z3 = a(downloadInfo, failedException);\n }\n aVar.b();\n if (z3) {\n com.ss.android.socialbase.downloader.c.a.c(\"RetryScheduler\", \"doSchedulerRetry: restart task, ****** id = \" + aVar.a);\n aVar.a(System.currentTimeMillis());\n if (z) {\n aVar.a();\n }\n downloadInfo.setRetryScheduleCount(aVar.i);\n if (downloadInfo.getStatus() == -1) {\n Downloader.getInstance(context).restart(downloadInfo.getId());\n return;\n }\n return;\n }\n if (z) {\n aVar.a();\n }\n if (!downloadInfo.isOnlyWifi() && !downloadInfo.isPauseReserveOnWifi()) {\n z2 = false;\n }\n a(downloadInfo, z2, i3);\n }\n }\n }", "void reportJobTaskRetry(final String jobTaskId, final String retryDetails) throws JobReportingException;", "public synchronized Task setScheduler(Scheduler s)\n/* */ {\n/* 102 */ this.scheduler = s;\n/* 103 */ return this;\n/* */ }", "public interface ISchedulerManager {\n //\n void registerJob(String profileId, int period) throws SchedulerException;\n void quitScheduler() throws SchedulerException;\n void pauseJobList() throws SchedulerException;\n void restartJobList() throws SchedulerException;\n void pauseJob(String profileId) throws SchedulerException;\n void restartJob(String profileId) throws SchedulerException;\n List<ProfileForDB> retrieveExecuteJobList();\n List<ProfileForDB> retrieveReadyJobList();\n void updateJob(String profileId, int period) throws SchedulerException;\n void stopJobListAndChangeStatus();\n}", "@Override\n void setRetry() {\n if (mNextReqTime > 32 * 60 * 1000 || mController.isStop()) {\n if (DEBUG)\n Log.d(TAG, \"################ setRetry timeout, cancel retry : \" + mController.isStop());\n cancelRetry();\n return;\n }\n if (mCurRetryState == RetryState.IDLE) {\n mCurRetryState = RetryState.RUNNING;\n if (mReceiver == null) {\n IntentFilter filter = new IntentFilter(INTENT_ACTION_RETRY);\n mReceiver = new stateReceiver();\n mContext.registerReceiver(mReceiver, filter);\n }\n\n }\n Intent intent = new Intent(INTENT_ACTION_RETRY);\n PendingIntent sender = PendingIntent.getBroadcast(mContext, 0, intent, PendingIntent.FLAG_CANCEL_CURRENT);\n long nextReq = SystemClock.elapsedRealtime() + mNextReqTime;\n Calendar cal = Calendar.getInstance();\n cal.setTimeInMillis(nextReq);\n if(DEBUG) Log.i(TAG, \"start to get location after: \" + mNextReqTime + \"ms\");\n mAlarmMgr.set(AlarmManager.ELAPSED_REALTIME_WAKEUP, nextReq, sender);\n mNextReqTime = mNextReqTime * 2;\n }" ]
[ "0.64505726", "0.621131", "0.6209611", "0.6141387", "0.6137476", "0.60252994", "0.6023833", "0.5968432", "0.5948564", "0.588991", "0.58733916", "0.5820209", "0.5810589", "0.57407784", "0.5738108", "0.5729408", "0.5729408", "0.5729408", "0.572242", "0.572242", "0.572242", "0.5697818", "0.56527364", "0.5652385", "0.5639868", "0.5633616", "0.56306964", "0.5625333", "0.56169283", "0.5608125", "0.5585935", "0.5567445", "0.5549148", "0.5530307", "0.55300933", "0.55300933", "0.55300933", "0.55283475", "0.55239344", "0.5514394", "0.5513672", "0.5491153", "0.54803747", "0.5477508", "0.54761994", "0.54661447", "0.54655117", "0.5458193", "0.5452673", "0.5447704", "0.5445582", "0.5418392", "0.53992546", "0.53992546", "0.53992546", "0.53992546", "0.53992546", "0.53992546", "0.53992546", "0.53992546", "0.53992546", "0.53965074", "0.5383325", "0.5379334", "0.53693074", "0.536359", "0.5355784", "0.5349341", "0.5347716", "0.53431547", "0.533963", "0.5336298", "0.53211945", "0.5319931", "0.5309141", "0.53053546", "0.5303683", "0.53018016", "0.5290501", "0.5287146", "0.5284455", "0.5278976", "0.52773136", "0.52658194", "0.5251711", "0.52435064", "0.5222897", "0.5219887", "0.5218403", "0.52165294", "0.52150416", "0.5214893", "0.52089006", "0.52064854", "0.520177", "0.5199997", "0.5199857", "0.5190798", "0.517411", "0.5172178", "0.51712614" ]
0.0
-1
/ access modifiers changed from: private
public void a(int i2, boolean z) { if (this.g > 0) { long currentTimeMillis = System.currentTimeMillis(); synchronized (this) { if (!z) { if (currentTimeMillis - this.f < 10000) { return; } } this.f = currentTimeMillis; } com.ss.android.socialbase.downloader.c.a.c("RetryScheduler", "scheduleAllTaskRetry, level = [" + i2 + "], force = [" + z + "]"); if (z) { this.c.removeMessages(0); } Message obtain = Message.obtain(); obtain.what = 0; obtain.arg1 = i2; obtain.arg2 = z ? 1 : 0; this.c.sendMessageDelayed(obtain, 2000); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private stendhal() {\n\t}", "@Override\n protected void prot() {\n }", "private Rekenhulp()\n\t{\n\t}", "@Override\n public void perish() {\n \n }", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void anular() {\n\n\t}", "public void smell() {\n\t\t\n\t}", "@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "private TMCourse() {\n\t}", "private void m50366E() {\n }", "private PropertyAccess() {\n\t\tsuper();\n\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "public void method_4270() {}", "public abstract Object mo26777y();", "@Override\n protected void init() {\n }", "@Override\n\tprotected void interr() {\n\t}", "private MApi() {}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "public void mo38117a() {\n }", "private void someUtilityMethod() {\n }", "private void someUtilityMethod() {\n }", "private Infer() {\n\n }", "protected abstract Set method_1559();", "@Override\n void init() {\n }", "@Override\n public void init() {\n\n }", "private void kk12() {\n\n\t}", "public abstract void mo70713b();", "@Override\n public void init() {\n }", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tprotected void func03() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@SuppressWarnings(\"unused\")\n private void _read() {\n }", "private Singletion3() {}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "@Override\n\tprotected void getExras() {\n\n\t}", "private ChainingMethods() {\n // private constructor\n\n }", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "private abstract void privateabstract();", "protected boolean func_70814_o() { return true; }", "private Get() {}", "private Get() {}", "public void m23075a() {\n }", "private Util() { }", "@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 protected void getExras() {\n }", "@Override\n\tpublic void einkaufen() {\n\t}", "public void mo21779D() {\n }", "private test5() {\r\n\t\r\n\t}", "public void mo21825b() {\n }", "@Override\n public void memoria() {\n \n }", "private MigrationInstantiationUtil() {\n\t\tthrow new IllegalAccessError();\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\t\t\t\tpublic void a() {\n\n\t\t\t\t}", "protected Doodler() {\n\t}", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "private FlyWithWings(){\n\t\t\n\t}", "private MetallicityUtils() {\n\t\t\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void test() {\n\t\t\t}", "@Override\r\n\tpublic void init() {}", "@Override\n public void init() {}", "@Override\n public boolean isPrivate() {\n return true;\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 }", "@Override\n protected void initialize() {\n }", "public abstract void mo56925d();", "public abstract void mo27386d();", "@Override\r\n\t\t\tpublic void buscar() {\n\r\n\t\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "public void mo21877s() {\n }", "private Utils() {}", "private Utils() {}", "private Utils() {}", "private Utils() {}", "@DSComment(\"Private Method\")\n @DSBan(DSCat.PRIVATE_METHOD)\n @DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2013-12-30 13:00:49.426 -0500\", hash_original_method = \"26D71A046B8A5E21DEFC65FB89CD9FDA\", hash_generated_method = \"2293476E78FCC8BDA181F927AEA93BD1\")\n \nprivate void copyTables ()\n {\n if (prefixTable != null) {\n prefixTable = (Hashtable)prefixTable.clone();\n } else {\n prefixTable = new Hashtable();\n }\n if (uriTable != null) {\n uriTable = (Hashtable)uriTable.clone();\n } else {\n uriTable = new Hashtable();\n }\n elementNameTable = new Hashtable();\n attributeNameTable = new Hashtable();\n declSeen = true;\n }", "@Override\n public void get() {}", "private SimpleRepository() {\n \t\t// private ct to disallow external object creation\n \t}", "private void ss(){\n }", "public void mo21782G() {\n }", "public abstract void mo27385c();", "@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}", "protected void h() {}", "private void init() {\n\n\t}", "private final void i() {\n }" ]
[ "0.70451087", "0.66481936", "0.66338545", "0.6534467", "0.6533057", "0.63756114", "0.6368523", "0.63063055", "0.6244554", "0.62261415", "0.62046665", "0.61776316", "0.6142759", "0.6131381", "0.6131381", "0.61274433", "0.610919", "0.610797", "0.60792845", "0.6062989", "0.6059318", "0.60447836", "0.6037732", "0.6033637", "0.6028711", "0.60249", "0.6015989", "0.6015989", "0.6010123", "0.5991239", "0.5977965", "0.59756213", "0.59711885", "0.59652776", "0.59562653", "0.59491456", "0.5947999", "0.5942879", "0.5941421", "0.59406793", "0.5936351", "0.5936351", "0.5934477", "0.5934473", "0.59311885", "0.59261817", "0.592184", "0.59162307", "0.59162307", "0.5915696", "0.5908215", "0.5903059", "0.5903059", "0.5894341", "0.5887855", "0.58869827", "0.5884463", "0.5881538", "0.588023", "0.5879579", "0.58791363", "0.58698714", "0.58686715", "0.5857818", "0.5855094", "0.5851806", "0.58393794", "0.58365846", "0.58286095", "0.5816463", "0.58148336", "0.58144826", "0.5814171", "0.5814171", "0.5814171", "0.5814171", "0.5814171", "0.5814171", "0.5809802", "0.5802026", "0.57927555", "0.5792171", "0.5790551", "0.5786574", "0.5786574", "0.5786574", "0.5786574", "0.5786161", "0.578553", "0.5785096", "0.57780075", "0.5774098", "0.57732016", "0.57683206", "0.57683206", "0.57683206", "0.57683206", "0.57683206", "0.5763271", "0.57621974", "0.57540506" ]
0.0
-1
/ access modifiers changed from: private
public void a(int i2, int i3, boolean z) { a aVar; boolean z2; p reserveWifiStatusListener; boolean z3; Context context = this.b; if (context != null) { synchronized (this.d) { aVar = this.d.get(i2); if (aVar != null) { z2 = true; if (aVar.l) { aVar.l = false; int i4 = this.g - 1; this.g = i4; if (i4 < 0) { this.g = 0; } } } else { return; } } com.ss.android.socialbase.downloader.c.a.c("RetryScheduler", "doSchedulerRetryInSubThread: downloadId = " + i2 + ", retryCount = " + aVar.i + ", mWaitingRetryTasksCount = " + this.g); DownloadInfo downloadInfo = Downloader.getInstance(context).getDownloadInfo(i2); if (downloadInfo == null) { c(i2); return; } com.ss.android.socialbase.downloader.c.a.e("RetryScheduler", "doSchedulerRetryInSubThread,id:" + i2); int realStatus = downloadInfo.getRealStatus(); if (realStatus == -3 || realStatus == -4) { c(i2); } else if (realStatus == -5 || (realStatus == -2 && downloadInfo.isPauseReserveOnWifi())) { if (realStatus == -2 && (reserveWifiStatusListener = Downloader.getInstance(com.ss.android.socialbase.downloader.downloader.b.L()).getReserveWifiStatusListener()) != null) { reserveWifiStatusListener.a(downloadInfo, 4, 3); } k w = com.ss.android.socialbase.downloader.downloader.b.w(); if (w != null) { w.a(Collections.singletonList(downloadInfo), 3); } c(i2); } else if (realStatus == -1) { if (i3 != 0) { z3 = true; } else if (aVar.f) { z3 = false; } else { return; } BaseException failedException = downloadInfo.getFailedException(); if (z3 && e.g(failedException)) { z3 = a(downloadInfo, failedException); } aVar.b(); if (z3) { com.ss.android.socialbase.downloader.c.a.c("RetryScheduler", "doSchedulerRetry: restart task, ****** id = " + aVar.a); aVar.a(System.currentTimeMillis()); if (z) { aVar.a(); } downloadInfo.setRetryScheduleCount(aVar.i); if (downloadInfo.getStatus() == -1) { Downloader.getInstance(context).restart(downloadInfo.getId()); return; } return; } if (z) { aVar.a(); } if (!downloadInfo.isOnlyWifi() && !downloadInfo.isPauseReserveOnWifi()) { z2 = false; } a(downloadInfo, z2, i3); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private stendhal() {\n\t}", "@Override\n protected void prot() {\n }", "private Rekenhulp()\n\t{\n\t}", "@Override\n public void perish() {\n \n }", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void anular() {\n\n\t}", "public void smell() {\n\t\t\n\t}", "@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "private TMCourse() {\n\t}", "private void m50366E() {\n }", "private PropertyAccess() {\n\t\tsuper();\n\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "public void method_4270() {}", "public abstract Object mo26777y();", "@Override\n protected void init() {\n }", "@Override\n\tprotected void interr() {\n\t}", "private MApi() {}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "public void mo38117a() {\n }", "private void someUtilityMethod() {\n }", "private void someUtilityMethod() {\n }", "private Infer() {\n\n }", "protected abstract Set method_1559();", "@Override\n void init() {\n }", "@Override\n public void init() {\n\n }", "private void kk12() {\n\n\t}", "public abstract void mo70713b();", "@Override\n public void init() {\n }", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tprotected void func03() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@SuppressWarnings(\"unused\")\n private void _read() {\n }", "private Singletion3() {}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "@Override\n\tprotected void getExras() {\n\n\t}", "private ChainingMethods() {\n // private constructor\n\n }", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "private abstract void privateabstract();", "protected boolean func_70814_o() { return true; }", "private Get() {}", "private Get() {}", "public void m23075a() {\n }", "private Util() { }", "@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 protected void getExras() {\n }", "@Override\n\tpublic void einkaufen() {\n\t}", "public void mo21779D() {\n }", "private test5() {\r\n\t\r\n\t}", "public void mo21825b() {\n }", "@Override\n public void memoria() {\n \n }", "private MigrationInstantiationUtil() {\n\t\tthrow new IllegalAccessError();\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\t\t\t\tpublic void a() {\n\n\t\t\t\t}", "protected Doodler() {\n\t}", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "private FlyWithWings(){\n\t\t\n\t}", "private MetallicityUtils() {\n\t\t\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void test() {\n\t\t\t}", "@Override\r\n\tpublic void init() {}", "@Override\n public void init() {}", "@Override\n public boolean isPrivate() {\n return true;\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 }", "@Override\n protected void initialize() {\n }", "public abstract void mo56925d();", "public abstract void mo27386d();", "@Override\r\n\t\t\tpublic void buscar() {\n\r\n\t\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "public void mo21877s() {\n }", "private Utils() {}", "private Utils() {}", "private Utils() {}", "private Utils() {}", "@DSComment(\"Private Method\")\n @DSBan(DSCat.PRIVATE_METHOD)\n @DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2013-12-30 13:00:49.426 -0500\", hash_original_method = \"26D71A046B8A5E21DEFC65FB89CD9FDA\", hash_generated_method = \"2293476E78FCC8BDA181F927AEA93BD1\")\n \nprivate void copyTables ()\n {\n if (prefixTable != null) {\n prefixTable = (Hashtable)prefixTable.clone();\n } else {\n prefixTable = new Hashtable();\n }\n if (uriTable != null) {\n uriTable = (Hashtable)uriTable.clone();\n } else {\n uriTable = new Hashtable();\n }\n elementNameTable = new Hashtable();\n attributeNameTable = new Hashtable();\n declSeen = true;\n }", "@Override\n public void get() {}", "private SimpleRepository() {\n \t\t// private ct to disallow external object creation\n \t}", "private void ss(){\n }", "public void mo21782G() {\n }", "public abstract void mo27385c();", "@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}", "protected void h() {}", "private void init() {\n\n\t}", "private final void i() {\n }" ]
[ "0.70451087", "0.66481936", "0.66338545", "0.6534467", "0.6533057", "0.63756114", "0.6368523", "0.63063055", "0.6244554", "0.62261415", "0.62046665", "0.61776316", "0.6142759", "0.6131381", "0.6131381", "0.61274433", "0.610919", "0.610797", "0.60792845", "0.6062989", "0.6059318", "0.60447836", "0.6037732", "0.6033637", "0.6028711", "0.60249", "0.6015989", "0.6015989", "0.6010123", "0.5991239", "0.5977965", "0.59756213", "0.59711885", "0.59652776", "0.59562653", "0.59491456", "0.5947999", "0.5942879", "0.5941421", "0.59406793", "0.5936351", "0.5936351", "0.5934477", "0.5934473", "0.59311885", "0.59261817", "0.592184", "0.59162307", "0.59162307", "0.5915696", "0.5908215", "0.5903059", "0.5903059", "0.5894341", "0.5887855", "0.58869827", "0.5884463", "0.5881538", "0.588023", "0.5879579", "0.58791363", "0.58698714", "0.58686715", "0.5857818", "0.5855094", "0.5851806", "0.58393794", "0.58365846", "0.58286095", "0.5816463", "0.58148336", "0.58144826", "0.5814171", "0.5814171", "0.5814171", "0.5814171", "0.5814171", "0.5814171", "0.5809802", "0.5802026", "0.57927555", "0.5792171", "0.5790551", "0.5786574", "0.5786574", "0.5786574", "0.5786574", "0.5786161", "0.578553", "0.5785096", "0.57780075", "0.5774098", "0.57732016", "0.57683206", "0.57683206", "0.57683206", "0.57683206", "0.57683206", "0.5763271", "0.57621974", "0.57540506" ]
0.0
-1
/ access modifiers changed from: private
public int g() { try { if (this.h == null) { this.h = (ConnectivityManager) this.b.getApplicationContext().getSystemService("connectivity"); } NetworkInfo activeNetworkInfo = this.h.getActiveNetworkInfo(); if (activeNetworkInfo != null) { if (activeNetworkInfo.isConnected()) { return activeNetworkInfo.getType() == 1 ? 2 : 1; } } } catch (Exception unused) { } return 0; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private stendhal() {\n\t}", "@Override\n protected void prot() {\n }", "private Rekenhulp()\n\t{\n\t}", "@Override\n public void perish() {\n \n }", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void anular() {\n\n\t}", "public void smell() {\n\t\t\n\t}", "@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "private TMCourse() {\n\t}", "private void m50366E() {\n }", "private PropertyAccess() {\n\t\tsuper();\n\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "public void method_4270() {}", "public abstract Object mo26777y();", "@Override\n protected void init() {\n }", "@Override\n\tprotected void interr() {\n\t}", "private MApi() {}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "public void mo38117a() {\n }", "private void someUtilityMethod() {\n }", "private void someUtilityMethod() {\n }", "private Infer() {\n\n }", "protected abstract Set method_1559();", "@Override\n void init() {\n }", "@Override\n public void init() {\n\n }", "private void kk12() {\n\n\t}", "public abstract void mo70713b();", "@Override\n public void init() {\n }", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tprotected void func03() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@SuppressWarnings(\"unused\")\n private void _read() {\n }", "private Singletion3() {}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "private ChainingMethods() {\n // private constructor\n\n }", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "private abstract void privateabstract();", "protected boolean func_70814_o() { return true; }", "private Get() {}", "private Get() {}", "public void m23075a() {\n }", "private Util() { }", "@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 protected void getExras() {\n }", "@Override\n\tpublic void einkaufen() {\n\t}", "public void mo21779D() {\n }", "private test5() {\r\n\t\r\n\t}", "public void mo21825b() {\n }", "private MigrationInstantiationUtil() {\n\t\tthrow new IllegalAccessError();\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\t\t\t\tpublic void a() {\n\n\t\t\t\t}", "protected Doodler() {\n\t}", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "private FlyWithWings(){\n\t\t\n\t}", "private MetallicityUtils() {\n\t\t\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void test() {\n\t\t\t}", "@Override\r\n\tpublic void init() {}", "@Override\n public boolean isPrivate() {\n return true;\n }", "@Override\n public void init() {}", "@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 }", "public abstract void mo56925d();", "public abstract void mo27386d();", "@Override\r\n\t\t\tpublic void buscar() {\n\r\n\t\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "public void mo21877s() {\n }", "@DSComment(\"Private Method\")\n @DSBan(DSCat.PRIVATE_METHOD)\n @DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2013-12-30 13:00:49.426 -0500\", hash_original_method = \"26D71A046B8A5E21DEFC65FB89CD9FDA\", hash_generated_method = \"2293476E78FCC8BDA181F927AEA93BD1\")\n \nprivate void copyTables ()\n {\n if (prefixTable != null) {\n prefixTable = (Hashtable)prefixTable.clone();\n } else {\n prefixTable = new Hashtable();\n }\n if (uriTable != null) {\n uriTable = (Hashtable)uriTable.clone();\n } else {\n uriTable = new Hashtable();\n }\n elementNameTable = new Hashtable();\n attributeNameTable = new Hashtable();\n declSeen = true;\n }", "@Override\n public void get() {}", "private Utils() {}", "private Utils() {}", "private Utils() {}", "private Utils() {}", "private SimpleRepository() {\n \t\t// private ct to disallow external object creation\n \t}", "private void ss(){\n }", "public void mo21782G() {\n }", "public abstract void mo27385c();", "@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}", "protected void h() {}", "private void init() {\n\n\t}", "private final void i() {\n }" ]
[ "0.7044735", "0.66479045", "0.6633232", "0.65343255", "0.65324754", "0.63757193", "0.6367789", "0.63065237", "0.6244171", "0.622592", "0.62049985", "0.61766696", "0.614237", "0.6130815", "0.6130815", "0.6127483", "0.6108821", "0.61083317", "0.607937", "0.60626495", "0.6058102", "0.60444653", "0.60379004", "0.60325307", "0.60284626", "0.60240555", "0.60163087", "0.60163087", "0.60101753", "0.5991622", "0.5977577", "0.5975316", "0.5969974", "0.5964161", "0.5955954", "0.59484076", "0.5947946", "0.59423804", "0.59414166", "0.5940322", "0.5936883", "0.5936883", "0.5934855", "0.59347606", "0.5930125", "0.59257954", "0.5920858", "0.5916882", "0.5916882", "0.59149694", "0.59074104", "0.5902404", "0.5902404", "0.5894646", "0.58870804", "0.5886527", "0.5884087", "0.5880768", "0.58798075", "0.5879662", "0.58787096", "0.58696836", "0.58680755", "0.5857931", "0.58561784", "0.58512926", "0.58388466", "0.58357596", "0.58284175", "0.58159536", "0.58144194", "0.58143467", "0.5814069", "0.5814069", "0.5814069", "0.5814069", "0.5814069", "0.5814069", "0.58089346", "0.5800949", "0.57926077", "0.57923484", "0.5789701", "0.5787156", "0.57865834", "0.5785618", "0.5785618", "0.5785618", "0.5785618", "0.5784366", "0.57770866", "0.57735735", "0.5772028", "0.57677203", "0.57677203", "0.57677203", "0.57677203", "0.57677203", "0.57627594", "0.5761388", "0.57532394" ]
0.0
-1
TODO Autogenerated method stub
@Override public String toString() { return label; }
{ "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
Create a list that keeps the enabled transitions.
public static List<Instance<Transition>> getEnabledTransitions(List<Instance<Transition>> TransitionList, HighLevelSimulator simulator ) throws Exception { List<Instance<Transition>> EnabledTransitions = new ArrayList<Instance<Transition>>(); // Check if every transition is enabled. If it is, add to the EnabledTransitions list. for (Instance<Transition> transitionInstance : TransitionList) { if (simulator.isEnabled(transitionInstance) == true) EnabledTransitions.add(transitionInstance); } return EnabledTransitions; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void setTransitionsList () {\n for (int i = 0; i < dfaStates.size(); i++) {\n List<State> currStateList = dfaStates.get(i);\n int currStateListID = dfaStatesWithNumbering.get(currStateList);\n State initialState = new State(currStateListID, true);\n\n HashMap<String, List<State>> currStateListInfo = dfaTable.get(currStateList);\n for (int j = 0; j < symbolList.size()-1; j++) {\n String currSymbol = Character.toString(symbolList.get(j));\n List<State> currStateListSymbolList = currStateListInfo.get(currSymbol);\n\n if (currStateListSymbolList.size() > 0) {\n State finalState = new State(dfaStatesWithNumbering.get(currStateListSymbolList), true);\n Transition tmpTransition = new Transition(currSymbol, initialState, finalState);\n\n // now add to transition list\n if (!transitionsList.contains(tmpTransition)) {\n transitionsList.add(tmpTransition);\n }\n }\n }\n }\n }", "public Iterable<Transition> getTransitions() {\n return new TransitionsIterable();\n }", "public List<Transition> getInTransitions() {\r\n\t\treturn inTransitions;\r\n\t}", "public boolean canIterateAllTransitions () { return false; }", "private static List<State<StepStateful>> getStates() {\n List<State<StepStateful>> states = new LinkedList<>();\n states.add(s0);\n states.add(s1);\n states.add(s2);\n states.add(s3);\n states.add(s4);\n states.add(s5);\n states.add(s6);\n return states;\n }", "private static void createSlideTransitions() {\n\t\tif (slideList.size() < SLIDES_REGIONS_LIMIT) {\n\t\t\tint length = (slideList.size() / 2) - 1;\n\t\t\t\n\t\t\tif (slideList.size() % 2 == 0) {\n\t\t\t\tlength++;\n\t\t\t}\n\t\t\t\n\t\t\tfor (int i = 0; i < length; i++) {\n\t\t\t\ttransitionList.add(slideList.get(i));\n\t\t\t\ttransitionList.add(slideList.get(length - i - 1));\n\t\t\t}\n\t\t} else {\n\t\t\tint length = slideList.size() / NUMBER_REGIONS / 2 - 1;\n\t\t\t\n\t\t\tif (slideList.size() % 2 == 0) {\n\t\t\t\tlength++;\n\t\t\t}\n\t\t\t\n\t\t\tfor (int i = 0; i < NUMBER_REGIONS; i++) {\n\t\t\t\tfor (int j = 0; j < length; j++) {\n\t\t\t\t\ttransitionList.add(slideList.get(j + i * length));\n\t\t\t\t\t//System.out.println(i * length - j - 1);\n\t\t\t\t\ttransitionList.add(slideList.get((i + 1) * length - j - 1));\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tif (slideList.size() % 2 != 0) {\n\t\t\t\ttransitionList.add(slideList.get(slideList.size() - 1));\n\t\t\t}\n\t\t}\n\t}", "public IRTransitionColl getEnabledTransitions()\n throws OculusException;", "@Override\n\tpublic synchronized Collection<Transition> getTransitions() {\n\t\treturn this.transitions;\n\t}", "private Collection<ReplayState<C>> executeDisabledMatches(ReplayState<C> state, Collection<Transition> transitions) {\r\n\t\tCollection<ReplayState<C>> states = new ArrayList<ReplayState<C>>();\r\n\t\tif (!state.trace.isEmpty()) {\r\n\t\t\tfor (Transition transition : transitions) {\r\n\t\t\t\tif (transition.isInvisible() || !map.containsKey(transition)) {\r\n\t\t\t\t} else if (map.get(transition).equals(state.trace.get(0))) {\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\t/*\r\n\t\t\t\t\t\t * Enable the disabled transition by adding sufficient\r\n\t\t\t\t\t\t * tokens in its preset places.\r\n\t\t\t\t\t\t */\r\n\t\t\t\t\t\tMarking preMarking = new Marking(state.marking);\r\n\t\t\t\t\t\tCollection<PetrinetEdge<? extends PetrinetNode, ? extends PetrinetNode>> edges = transition\r\n\t\t\t\t\t\t\t\t.getGraph().getInEdges(transition);\r\n\t\t\t\t\t\tfor (PetrinetEdge<? extends PetrinetNode, ? extends PetrinetNode> e : edges) {\r\n\t\t\t\t\t\t\tif (e instanceof Arc) {\r\n\t\t\t\t\t\t\t\tArc arc = (Arc) e;\r\n\t\t\t\t\t\t\t\tif (arc.getWeight() > state.marking.occurrences(arc.getSource())) {\r\n\t\t\t\t\t\t\t\t\tpreMarking.add((Place) arc.getSource(), arc.getWeight()\r\n\t\t\t\t\t\t\t\t\t\t\t- state.marking.occurrences(arc.getSource()));\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\t/*\r\n\t\t\t\t\t\t * Determine the new marking.\r\n\t\t\t\t\t\t */\r\n\t\t\t\t\t\tMarking newMarking;\r\n\t\t\t\t\t\tsynchronized (semantics) {\r\n\t\t\t\t\t\t\tsemantics.setCurrentState(preMarking);\r\n\t\t\t\t\t\t\tsemantics.executeExecutableTransition(transition);\r\n\t\t\t\t\t\t\tnewMarking = semantics.getCurrentState();\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t/*\r\n\t\t\t\t\t\t * Determine the new cost.\r\n\t\t\t\t\t\t */\r\n\t\t\t\t\t\tC newCost = addOperator.add(state.cost, ReplayAction.INSERT_DISABLED_MATCH, transition,\r\n\t\t\t\t\t\t\t\tstate.trace.get(0));\r\n\t\t\t\t\t\t/*\r\n\t\t\t\t\t\t * Determine the new trace.\r\n\t\t\t\t\t\t */\r\n\t\t\t\t\t\tList<? extends Object> newTrace = getTail(state.trace);\r\n\t\t\t\t\t\t/*\r\n\t\t\t\t\t\t * Add new state.\r\n\t\t\t\t\t\t */\r\n\t\t\t\t\t\taddState(states, state, newMarking, transition, newCost, newTrace);\r\n\t\t\t\t\t} catch (IllegalTransitionException e) {\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}\r\n\t\t}\r\n\t\treturn states;\r\n\t}", "private Collection<ReplayState<C>> executeEnabledMatches(ReplayState<C> state, Collection<Transition> transitions) {\r\n\t\tCollection<ReplayState<C>> states = new ArrayList<ReplayState<C>>();\r\n\t\tif (!state.trace.isEmpty()) {\r\n\t\t\tfor (Transition transition : transitions) {\r\n\t\t\t\tif (transition.isInvisible() || !map.containsKey(transition)) {\r\n\t\t\t\t} else if (map.get(transition).equals(state.trace.get(0))) {\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\t/*\r\n\t\t\t\t\t\t * Determine new marking.\r\n\t\t\t\t\t\t */\r\n\t\t\t\t\t\tMarking newMarking;\r\n\t\t\t\t\t\tsynchronized (semantics) {\r\n\t\t\t\t\t\t\tsemantics.setCurrentState(state.marking);\r\n\t\t\t\t\t\t\tsemantics.executeExecutableTransition(transition);\r\n\t\t\t\t\t\t\tnewMarking = semantics.getCurrentState();\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t/*\r\n\t\t\t\t\t\t * Determine new cost.\r\n\t\t\t\t\t\t */\r\n\t\t\t\t\t\tC newCost = addOperator.add(state.cost, ReplayAction.INSERT_ENABLED_MATCH, transition,\r\n\t\t\t\t\t\t\t\tstate.trace.get(0));\r\n\t\t\t\t\t\t/*\r\n\t\t\t\t\t\t * Determine new trace.\r\n\t\t\t\t\t\t */\r\n\t\t\t\t\t\tList<? extends Object> newTrace = getTail(state.trace);\r\n\t\t\t\t\t\t/*\r\n\t\t\t\t\t\t * Add new state.\r\n\t\t\t\t\t\t */\r\n\t\t\t\t\t\taddState(states, state, newMarking, transition, newCost, newTrace);\r\n\t\t\t\t\t} catch (IllegalTransitionException e) {\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}\r\n\t\t}\r\n\t\treturn states;\r\n\t}", "public MMPCOrderNodeNext[] getTransitions() {\n\n MMPCOrderNodeNext[]\tretValue\t= new MMPCOrderNodeNext[m_next.size()];\n\n m_next.toArray(retValue);\n\n return retValue;\n\n }", "private final List<State> PreE(List<State> y) {\r\n // {s \b S | exists s\u0001, (s � s\u0001 and s\u0001 \b Y )}\r\n List<State> states = new ArrayList<State>();\r\n //List<Transition> transitions = new ArrayList<Transition>();\r\n for (State sourceState : this._kripke.States) {\r\n for (State destState : y) {\r\n Transition myTransition = new Transition(sourceState, destState);\r\n \tfor(Transition transition : this._kripke.Transitions)\r\n \t{\r\n \t\tif (transition.FromState.equals(myTransition.FromState) &&\r\n \t\t\t\ttransition.ToState.equals(myTransition.ToState)) {\r\n \t\t\tif (!states.contains(sourceState)) {\r\n states.add(sourceState);\r\n }\r\n \t} \r\n \r\n }\r\n \r\n }\r\n \r\n }\r\n \r\n return states;\r\n }", "public static List<Instance<Transition>> GetFireableTransitions(List<Instance<Transition>> TransitionList, HighLevelSimulator simulator) throws Exception\r\n\t{\r\n\t\t// Get the enabled transitions\r\n\t\tList<Instance<Transition>> EnabledTransitions = getEnabledTransitions(TransitionList, simulator);\r\n\t\t\r\n\t\t// Create list that will contain the accepted transitions.\r\n\t\tList<Instance<Transition>> AcceptedTransitions = new ArrayList<Instance<Transition>>();\r\n\t\t\r\n\t\t// For every enabled transition, check if it is also accepted.\r\n\t\tfor (Instance<Transition> EnabledTransitionInstance : EnabledTransitions)\r\n\t\t{\r\n\t\t\t// Assume that filename is the same as the transition name.\r\n\t\t\tString filename = EnabledTransitionInstance.toString();\r\n\t\t\t\r\n\t\t\t// Check if the transition is valid.\t\t\r\n\t\t\t// If the transition is not valid, continue to the next transition.\r\n\t\t\tif (CheckValid(filename) == false)\r\n\t\t\t{\r\n\t\t\t\tcontinue;\t\r\n\t\t\t}\r\n\t\t\tAcceptedTransitions.add(EnabledTransitionInstance);\t\t\t\t\t\t\t\t\r\n\t\t}\r\n\t\tif (AcceptedTransitions.isEmpty())\r\n\t\t\tthrow new java.lang.Error(\"No accepted transitions could be found\");\r\n\t\t\r\n\t\treturn AcceptedTransitions;\t\r\n\t}", "private void updateTransitions(ArrayList<Integer> enabled, int[] marking,\r\n\t\t\t\t\t\t\t\t ArrayList<Place> places, ArrayList<Transition> transitions){\r\n\t\t\r\n\t\tArrayList<ArrayList<Integer>> outputTokens = net.getOutputTokens();\r\n\t\t\r\n\t\tenabled.clear();\r\n\t\t\r\n\t\tfor(int i = 0; i < transitions.size(); i++){\r\n\t\t\tenabled.add(i);\r\n\t\t}\r\n\t\t\r\n\t\tfor(int i = 0; i < places.size(); i++){\r\n\t\t\tfor(int j = 0; j < transitions.size(); j++){\r\n\t\t\t\tif(marking[i]<outputTokens.get(i).get(j))\r\n\t\t\t\t\tenabled.remove(new Integer(j));\r\n\t\t\t}\r\n\t\t}\r\n\t}", "private void constructTransitionMatrix() {\r\n\t\tfor(Node node: mNodes) {\r\n\t\t\tint nodeId = node.getId();\r\n\t\t\tint outDegree = node.getOutDegree();\r\n\t\t\tArrayList<NodeTransition> transitionList = new ArrayList<NodeTransition>();\r\n\t\t\t\r\n\t\t\tSet<Integer> outEdges = getOutEdges(nodeId);\r\n\t\t\tfor(Integer edgeId: outEdges) {\r\n\t\t\t\tint toId = getEdge(edgeId).getToId();\r\n\t\t\t\tdouble pTransition = (double) getEdge(edgeId).getWeight() / (double) outDegree;\r\n\t\t\t\ttransitionList.add( new NodeTransition(toId, pTransition) );\r\n\t\t\t}\r\n\t\t\tmTransition.add( transitionList );\r\n\t\t}\r\n\t}", "public List<S> getAvailableStates();", "public List<Transition> getSelfTransitions() {\r\n\t\treturn selfTransitions;\r\n\t}", "private List<Matrix> obtainTransitions(List<Matrix>probs){\n\t\tList<Matrix> output = new ArrayList<Matrix>();\n\t\tfor (int i =0;i<probs.size();i++) {\n\t\t\toutput.add(genTransFunction(probs.get(i)));\n\t\t}\n\t\treturn output;\n\t}", "public Scriptable getTransitions()\n\t{\n\t\tScriptable transitionsScriptable = (Scriptable)new ValueConverter().convertValueForScript(\n\t\t\tthis.serviceRegistry, this.scope, null, this.transitions);\n\t\t\n\t\treturn transitionsScriptable;\n\t}", "List<WorkflowProcessingState> getStates();", "private Collection<ReplayState<C>> executeInvisible(ReplayState<C> state, Collection<Transition> transitions) {\r\n\t\tCollection<ReplayState<C>> states = new ArrayList<ReplayState<C>>();\r\n\t\tfor (Transition transition : transitions) {\r\n\t\t\tif (transition.isInvisible() || !map.containsKey(transition)) {\r\n\t\t\t\ttry {\r\n\t\t\t\t\t/*\r\n\t\t\t\t\t * Determine new marking.\r\n\t\t\t\t\t */\r\n\t\t\t\t\tMarking newMarking;\r\n\t\t\t\t\tsynchronized (semantics) {\r\n\t\t\t\t\t\tsemantics.setCurrentState(state.marking);\r\n\t\t\t\t\t\tsemantics.executeExecutableTransition(transition);\r\n\t\t\t\t\t\tnewMarking = semantics.getCurrentState();\r\n\t\t\t\t\t}\r\n\t\t\t\t\t/*\r\n\t\t\t\t\t * Determine new cost.\r\n\t\t\t\t\t */\r\n\t\t\t\t\tC newCost = addOperator.add(state.cost, ReplayAction.INSERT_ENABLED_INVISIBLE, transition, null);\r\n\t\t\t\t\t/*\r\n\t\t\t\t\t * Add new state.\r\n\t\t\t\t\t */\r\n\t\t\t\t\taddState(states, state, newMarking, transition, newCost, state.trace);\r\n\t\t\t\t} catch (IllegalTransitionException e) {\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn states;\r\n\t}", "private Collection<ReplayState<C>> executeDisabledMismatches(ReplayState<C> state,\r\n\t\t\tCollection<Transition> transitions) {\r\n\t\tCollection<ReplayState<C>> states = new ArrayList<ReplayState<C>>();\r\n\t\tif (!state.trace.isEmpty()) {\r\n\t\t\tfor (Transition transition : transitions) {\r\n\t\t\t\tif (transition.isInvisible() || !map.containsKey(transition)) {\r\n\t\t\t\t} else if (!map.get(transition).equals(state.trace.get(0))) {\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\t/*\r\n\t\t\t\t\t\t * Enable the disabled transition by adding sufficient\r\n\t\t\t\t\t\t * tokens in its preset places.\r\n\t\t\t\t\t\t */\r\n\t\t\t\t\t\tMarking preMarking = new Marking(state.marking);\r\n\t\t\t\t\t\tCollection<PetrinetEdge<? extends PetrinetNode, ? extends PetrinetNode>> edges = transition\r\n\t\t\t\t\t\t\t\t.getGraph().getInEdges(transition);\r\n\t\t\t\t\t\tfor (PetrinetEdge<? extends PetrinetNode, ? extends PetrinetNode> e : edges) {\r\n\t\t\t\t\t\t\tif (e instanceof Arc) {\r\n\t\t\t\t\t\t\t\tArc arc = (Arc) e;\r\n\t\t\t\t\t\t\t\tif (arc.getWeight() > state.marking.occurrences(arc.getSource())) {\r\n\t\t\t\t\t\t\t\t\tpreMarking.add((Place) arc.getSource(), arc.getWeight()\r\n\t\t\t\t\t\t\t\t\t\t\t- state.marking.occurrences(arc.getSource()));\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\t/*\r\n\t\t\t\t\t\t * Determine the new marking.\r\n\t\t\t\t\t\t */\r\n\t\t\t\t\t\tMarking newMarking;\r\n\t\t\t\t\t\tsynchronized (semantics) {\r\n\t\t\t\t\t\t\tsemantics.setCurrentState(preMarking);\r\n\t\t\t\t\t\t\tsemantics.executeExecutableTransition(transition);\r\n\t\t\t\t\t\t\tnewMarking = semantics.getCurrentState();\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t/*\r\n\t\t\t\t\t\t * Determine the new cost.\r\n\t\t\t\t\t\t */\r\n\t\t\t\t\t\tC newCost = addOperator\r\n\t\t\t\t\t\t\t\t.add(state.cost, ReplayAction.INSERT_DISABLED_MISMATCH, transition, null);\r\n\t\t\t\t\t\t/*\r\n\t\t\t\t\t\t * Add new state.\r\n\t\t\t\t\t\t */\r\n\t\t\t\t\t\taddState(states, state, newMarking, transition, newCost, state.trace);\r\n\t\t\t\t\t} catch (IllegalTransitionException e) {\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}\r\n\t\t}\r\n\t\treturn states;\r\n\t}", "public List<Transition> getTransitionsToState(final State to) {\n\t\tList<Transition> toReturn = transitionArrayToStateMap.get(to);\n\t\tif (toReturn == null) {\n\t\t\tfinal List<Transition> list = transitionToStateMap.get(to);\n\t\t\ttoReturn = list;\n\t\t\ttransitionArrayToStateMap.put(to, toReturn);\n\t\t}\n\t\treturn toReturn;\n\t}", "public ArrayList<Task> listNotStarted() {\n ArrayList<Task> tasks = new ArrayList<>();\n for (Task t : this.tasks) {\n if (t.getStatus() == 0) {\n tasks.add(t);\n }\n }\n return tasks;\n }", "private void addRecoveringTransitions() {\n List<ReplicateStatus> recoverable = getRecoverableStatuses();\n List<ReplicateStatus> all = Arrays.asList(ReplicateStatus.values());\n\n addTransition(recoverable, RECOVERING);\n addTransition(WORKER_LOST, RECOVERING);\n\n addTransition(RECOVERING, all);\n removeTransition(RECOVERING, CREATED);\n removeTransition(RECOVERING, STARTING);\n }", "public List<Transition> getOutTransitions() {\r\n\t\treturn outTransitions;\r\n\t}", "public static HashSet<Transition> makeTransitions(Set<Operation> ops, State tail){\n HashSet<Transition> set = new HashSet<Transition>();\n// 调用enabledOperations方法\n Set<Operation> op = enabledOperations(ops , tail);\n// 遍历op\n for(Operation o : op){\n State s = o.execute(tail);\n Transition t = new Transition(o.name , tail , s , 1);\n set.add(t);\n }\n return set ;\n\n\n\n // throw new NotImplementedException();\n }", "private Collection<ReplayState<C>> executeEnabledMismatches(ReplayState<C> state, Collection<Transition> transitions) {\r\n\t\tCollection<ReplayState<C>> states = new ArrayList<ReplayState<C>>();\r\n\t\tif (!state.trace.isEmpty()) {\r\n\t\t\tfor (Transition transition : transitions) {\r\n\t\t\t\tif (transition.isInvisible() || !map.containsKey(transition)) {\r\n\t\t\t\t} else if (!map.get(transition).equals(state.trace.get(0))) {\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\t/*\r\n\t\t\t\t\t\t * Determine new marking.\r\n\t\t\t\t\t\t */\r\n\t\t\t\t\t\tMarking newMarking;\r\n\t\t\t\t\t\tsynchronized (semantics) {\r\n\t\t\t\t\t\t\tsemantics.setCurrentState(state.marking);\r\n\t\t\t\t\t\t\tsemantics.executeExecutableTransition(transition);\r\n\t\t\t\t\t\t\tnewMarking = semantics.getCurrentState();\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t/*\r\n\t\t\t\t\t\t * Determine new cost.\r\n\t\t\t\t\t\t */\r\n\t\t\t\t\t\tC newCost = addOperator.add(state.cost, ReplayAction.INSERT_ENABLED_MISMATCH, transition, null);\r\n\t\t\t\t\t\t/*\r\n\t\t\t\t\t\t * Add new state.\r\n\t\t\t\t\t\t */\r\n\t\t\t\t\t\taddState(states, state, newMarking, transition, newCost, state.trace);\r\n\t\t\t\t\t} catch (IllegalTransitionException e) {\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}\r\n\t\t}\r\n\t\treturn states;\r\n\t}", "public long[][] getTransitionIds() {\n\t\treturn this.transitionIds;\n\t}", "@ApiModelProperty(value = \"The transitions that can be performed on the issue.\")\n public List<IssueTransition> getTransitions() {\n return transitions;\n }", "public List<MclnState> getAvailableStates();", "public List<Transition> getTransitionsFromState(final State from) {\n\t\tList<Transition> toReturn = transitionArrayFromStateMap.get(from);\n\t\tif (toReturn == null) {\n\t\t\tfinal List<Transition> list = transitionFromStateMap.get(from);\n\t\t\ttoReturn = list;\n\t\t\ttransitionArrayFromStateMap.put(from, toReturn);\n\t\t}\n\t\treturn toReturn;\n\t}", "public List<String> getStates() {\r\n \t\treturn new ArrayList<String>(new TreeSet<String>(states.keySet()));\r\n \t}", "@Override\n public Set<AbstractState> asCollection() {\n return unmodifiableReached;\n }", "Collection<ObjectFlowState> getObjectFlowStates();", "public List<Transition> getTransitionsFromStateToState(final State from, final State to) {\n\t\tfinal List<Transition> list = new ArrayList<>();\n\t\tgetTransitionsFromState(from).stream().forEach(transition -> {\n\t\t\tif (transition.getToState() == to) {\n\t\t\t\tlist.add(transition);\n\t\t\t}\n\t\t});\n\t\treturn list;\n\t}", "public List<Pair> getStatesSeenSoFar() {\n\t\treturn list;\n\t}", "public ArrayList<DrawableGraphState> getStates() {\r\n\t\treturn new ArrayList<DrawableGraphState>(states);\r\n\t}", "public TaskList getTasks() {\n\t\t//Creates a copy of the state.\n\t\t//This is needed in order to make it impossible to change state from the outside by manipulating the returned object\n\t\tTaskList temp = new TaskList();\n\t\tsynchronized(taskListState) {\n\t\t\tfor(Task t : taskListState.getList())\n\t\t\t\ttemp.getList().add(t);\n\t\t}\n\t\treturn temp;\n\t}", "private void enableButtonsForTransitionsOf(TransitionTarget pState) {\n\t\tfor (Transition aTransition : (List<Transition>) pState.getTransitionsList()) {\n\t\t\tJButton buttonForTransitionEvent = eventButtons.get(aTransition.getEvent());\n\t\t\tif (buttonForTransitionEvent != null) buttonForTransitionEvent.setEnabled(true);\n\t\t\t/* test needed since a transition without an event has no associated button */\n\t\t}\n\t}", "java.util.List<java.lang.Integer> getStateValuesList();", "List<LifecycleCallbackItem> getLifecycleCallbacks();", "public ArrayList genStates2(){\n ArrayList states = new ArrayList(44);\n List<String> notes = new ArrayList<String>(Arrays.asList(\"A\",\"B\",\"C\",\"D\",\"E\",\"F\",\"G\",\"H\",\"I\",\"J\",\"K\"));\n List<String> beat = new ArrayList<String>(Arrays.asList(\"1\",\"2\",\"3\",\"4\"));\n //List<String> dot = new ArrayList<String>(Arrays.asList(\"1\",\"0\"));\n for(String s : notes){\n for(String d : beat){\n //for(int d = 0; d<=1; d++){\n String state = \"\"; \n state += s;\n state += d;\n //state += dot.get(d);\n states.add(state);\n //}\n }\n }\n return states;\n }", "private List<Turtle> createActiveDisplay() {\n\t\tactiveListDisplay = new FlowPane();\n\t\tactiveListDisplay.setPrefWrapLength(turtleView.getWidth());\n\t\tif (tManager != null) {\n\t\t\tactiveTurtles = tManager.getActiveTurtles();\n\t\t\tfor(Turtle turtle: activeTurtles) {\n\t\t\t\tLabel currentTurtle = new Label(Double.toString(turtle.getID()));\n\t\t\t\tturtleView.getChildren().add(currentTurtle);\n\t\t\t\tlabels.add(currentTurtle);\n\t\t\t\ttoggleTurtle(currentTurtle, turtle);\n\t\t\t}\n\t\t\treturn activeTurtles;\n\t\t}\n\t\treturn null;\n\t}", "private void setWorkflowTransitions() {\n setDefaultWorkflowTransitions();\n addTransitionsToFailed();\n addWorkerLostTransitions();\n addRecoveringTransitions();\n addAbortedTransitions();\n }", "boolean[] bitwiseChangeList();", "public List<ExplicitState> getExplicitInitialStates()\n\t{\n\t\tif (explicitInitialStateList == null)\n\t\t\texplicitInitialStateList = Collections\n\t\t\t\t\t.unmodifiableList(new ArrayList<ExplicitState>(Arrays\n\t\t\t\t\t\t\t.asList(initialState)));\n\t\treturn explicitInitialStateList;\n\t}", "protected void newPlayerList() {\n int len = getPlayerCount();\n mPlayerStartList = new PlayerStart[ len ];\n for(int i = 0; i < len; i++) {\n mPlayerStartList[i] = new PlayerStart( 0.f, 0.f );\n }\n }", "default Collection<I_GameState> getRepeatStates() {\n return getRepeatStates(FULL_EQUAL);\n }", "@objid (\"5fbc4043-71c3-4fa2-8c35-72372f15ccb1\")\n EList<Transition> getSends();", "KeyFrameListPanel() {\n super();\n\n this.keyframes = new ArrayList<>();\n }", "@java.lang.Override\n public java.util.List<adamant.global.v1.Enum.TransactionState> getTransactionStateList() {\n return new com.google.protobuf.Internal.ListAdapter<\n java.lang.Integer, adamant.global.v1.Enum.TransactionState>(transactionState_, transactionState_converter_);\n }", "default List<ItemAction<T>> actions() {\n return new ArrayList<>();\n }", "List<Action> build();", "private void createMenuList() {\n SlideMenuItem menuItem0 = new SlideMenuItem(ContentFragment.CLOSE, R.drawable.ic_action_remove);\n list.add(menuItem0);\n SlideMenuItem menuItem = new SlideMenuItem(ContentFragment.GAMES, R.drawable.ic_action_gamepad);\n list.add(menuItem);\n\n SlideMenuItem menuItem3 = new SlideMenuItem(ContentFragment.FRIENDS, R.drawable.ic_action_person);\n list.add(menuItem3);\n SlideMenuItem menuItem4 = new SlideMenuItem(ContentFragment.SETTINGS, R.drawable.ic_action_settings);\n list.add(menuItem4);\n }", "public PropertyChangeListener[] startGame() {\r\n GameInfo.getInstance().setStatus(1);\r\n return pcs.getPropertyChangeListeners();\r\n }", "public List<AState> getStates() {\n return states;\n }", "public States states();", "void createRuleStartAndStopATNStates() {\n atn.ruleToStartState = new RuleStartState[g.rules.size()];\n atn.ruleToStopState = new RuleStopState[g.rules.size()];\n for (Rule r : g.rules.values()) {\n RuleStartState start = newState(RuleStartState.class, r.ast);\n RuleStopState stop = newState(RuleStopState.class, r.ast);\n start.stopState = stop;\n start.isLeftRecursiveRule = r instanceof LeftRecursiveRule;\n start.setRuleIndex(r.index);\n stop.setRuleIndex(r.index);\n atn.ruleToStartState[r.index] = start;\n atn.ruleToStopState[r.index] = stop;\n }\n }", "public List<Trigger> getTriggers();", "public ArrayList<State> getStates(){\n\t\treturn this.states;\n\t}", "public ObservableList<String> getStates()\n {\n ArrayList<State> stateList = rentalModel.getStateList();\n ArrayList<String> stateListString = new ArrayList<>();\n for (int i = 0; i < stateList.size(); i++)\n {\n stateListString.add(stateList.get(i).toString());\n }\n statesList = FXCollections.observableArrayList(stateListString);\n return statesList;\n }", "public List<Element> getState() {\r\n return savedState_;\r\n }", "private boolean[] getState(){\n int [] ids = new int[]{\n R.id.box1, R.id.box2, R.id.box3, R.id.box4, R.id.box5, R.id.box6,\n R.id.box7, R.id.box8, R.id.box9\n };\n\n boolean[] enabled = new boolean[ids.length];\n\n for (int i = 0; i<ids.length; i++)\n {\n ImageButton btn = (ImageButton)findViewById(ids[i]);\n enabled[i] = btn.isEnabled();\n }\n\n return enabled;\n }", "protected abstract List<ScheduledRecording> getRecordingsWithState(int... states);", "private void addWorkerLostTransitions() {\n List<ReplicateStatus> defaultStatuses = getWorkflowStatuses();\n List<ReplicateStatus> defaultNonFinal = getNonFinalWorkflowStatuses();\n\n addTransition(defaultNonFinal, WORKER_LOST);\n addTransition(RECOVERING, WORKER_LOST);\n addTransition(ABORTED, WORKER_LOST);\n\n addTransition(WORKER_LOST, defaultStatuses);\n addTransition(WORKER_LOST, RECOVERING);\n addTransition(WORKER_LOST, ABORTED);\n }", "List<StatusListener> mo9950b();", "public static ArrayList genStates(){\n ArrayList states = new ArrayList(44);\n List<String> notes = new ArrayList<String>(Arrays.asList(\"A\",\"B\",\"C\",\"D\",\"E\",\"F\",\"G\",\"H\",\"I\",\"J\",\"K\"));\n List<String> beat = new ArrayList<String>(Arrays.asList(\"1\",\"2\",\"3\",\"4\"));\n //List<String> dot = new ArrayList<String>(Arrays.asList(\"1\",\"0\"));\n for(int n = 0; n<=10; n++){\n for(int b = 0; b<=3; b++){\n //for(int d = 0; d<=1; d++){\n String state = \"\"; \n state += notes.get(n);\n state += beat.get(b);\n //state += dot.get(d);\n states.add(state);\n //}\n }\n }\n return states;\n }", "public List<NextStateInfo> getTransitions(String state) {\r\n \t\treturn transitions.get(state).getNextStateInfo();\r\n \t}", "public boolean isTransition() {\n/* 4839 */ return this.isTransition;\n/* */ }", "public Iterable<StopReplicaTopicState> topicStates() {\n if (version() < 1) {\n Map<String, StopReplicaTopicState> topicStates = new HashMap<>();\n for (StopReplicaPartitionV0 partition : data.ungroupedPartitions()) {\n StopReplicaTopicState topicState = topicStates.computeIfAbsent(partition.topicName(),\n topic -> new StopReplicaTopicState().setTopicName(topic));\n topicState.partitionStates().add(new StopReplicaPartitionState()\n .setPartitionIndex(partition.partitionIndex())\n .setDeletePartition(data.deletePartitions()));\n }\n return topicStates.values();\n } else if (version() < 3) {\n return () -> new MappedIterator<>(data.topics().iterator(), topic ->\n new StopReplicaTopicState()\n .setTopicName(topic.name())\n .setPartitionStates(topic.partitionIndexes().stream()\n .map(partition -> new StopReplicaPartitionState()\n .setPartitionIndex(partition)\n .setDeletePartition(data.deletePartitions()))\n .collect(Collectors.toList())));\n } else {\n return data.topicStates();\n }\n }", "private void initTransitions() {\n s0.addTransition(htThr, s1, startStep);\n\n s1.addTransition(htPosPeekThr, s2, null);\n s1.addTransition(ltThr, s4, null);\n\n s2.addTransition(ltNegPeekThr, s3, null);\n\n s3.addTransition(htNegPeekThr, s5, null);\n\n s4.addTransition(ltThr, s0, null);\n s4.addTransition(htThr, s1, null);\n\n s5.addTransition(ltNegPeekThr, s3, null);\n s5.addTransition(htNegThr, s6, endStep);\n\n s6.addTransition(ltThr, s0, null);\n }", "List<State> adj() {\n\t\t\tList<State> adj = new ArrayList<State>();\n\t\t\tList<Edge> edgeList = edgeMap.get(city);\n\n\t\t\tfor (Edge e : edgeList) {\n\t\t\t\tboolean isPlane = e.cost == 0;\n\t\t\t\tif (ticketUsed == true && isPlane) {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\n\t\t\t\tint toCity = e.to;\n\t\t\t\tState s = new State(toCity, isPlane, dist + e.cost);\n\n\t\t\t\tadj.add(s);\n\t\t\t}\n\n\t\t\treturn adj;\n\t\t}", "public ArrayList<State<T>> getStatesList() { \r\n\t\treturn statesList;\r\n\t}", "private void addAbortedTransitions() {\n List<ReplicateStatus> abortable = getAbortableStatuses();\n\n addTransition(abortable, ABORTED);\n addTransition(WORKER_LOST, ABORTED);\n\n addTransition(ABORTED, COMPLETED);\n addTransition(ABORTED, FAILED);\n }", "public java.util.List<java.lang.Integer>\n getTransactionStateValueList() {\n return java.util.Collections.unmodifiableList(transactionState_);\n }", "private List getWaitingDoctors() {\n\t\tVector v = new Vector();\n\t\tfor (int i = 0; i < _doctors.length; ++i) {\n\t\t\tif (_doctors[i].isWaiting()) {\n\t\t\t\tv.add(_doctors[i]);\n\t\t\t}\n\t\t}\n\t\tCollections.shuffle(v);\n\t\treturn v;\n\t}", "String[] getManagedAdditionalStates();", "@Override\n protected List<IElementParser<ActImpl>> createParserList() {\n List<IElementParser<ActImpl>> result = new ArrayList<>();\n result.add(new SubElementManeuverGroupsParser());\n result.add(new SubElementStartTriggerParser());\n result.add(new SubElementStopTriggerParser());\n return result;\n }", "public List<boolean[]> getAllActions()\n\t{\n\t\t// initiate valid actions\n\t\tList<boolean[]> allActions = new ArrayList<boolean[]>();\n\t\t\n\t\tallActions.add(JUMP);\n\t\tallActions.add(SPEED);\n\t\tallActions.add(LEFT);\n\t\tallActions.add(LEFT_SPEED);\n\t\tallActions.add(LEFT_JUMP);\n\t\tallActions.add(LEFT_JUMP_SPEED);\n\t\tallActions.add(JUMP_SPEED);\n\t\tallActions.add(RIGHT);\n\t\tallActions.add(RIGHT_SPEED);\n\t\tallActions.add(RIGHT_JUMP);\n\t\tallActions.add(RIGHT_JUMP_SPEED);\n\t\t\n\t\treturn allActions;\n\t}", "protected List<String> getActives() {\n\t\treturn myActives;\n\t}", "public final Iterator<Initializer> getStatefulEventIterator()\n {\n return statefulEventInitializers.iterator();\n }", "private List<ShardState> selectActiveShards(List<ShardState> shardStates) {\n List<ShardState> activeShardStates = new ArrayList<ShardState>();\n for (ShardState shardState : shardStates) {\n if (ShardState.Status.ACTIVE.equals(shardState.getStatus())) {\n activeShardStates.add(shardState);\n }\n }\n return activeShardStates;\n }", "public List<Action> getActions(){return actions;}", "public DiscoveryActionsFunction() {\n\t\trf = new DiscoveryRewardFunction();\n\t\tfor ( DiscoveryDutyCycle dc : DiscoveryDutyCycle.values() ) {\n\t\t\tallActions.add( dc );\n\t\t}\n\t}", "public List<boolean[]> getValidActions()\n\t{\n\t\tList<boolean[]> validActions = new ArrayList<boolean[]>(allActions);\n\t\t//TODO remove actions that contain jump if environment.mayMarioJump() is false\n\t\treturn validActions;\n\t}", "private JList getHistoryList() {\n if (historyList == null) {\n historyList = new JList();\n historyList.setModel(new ListListModel(new ArrayList()));\n historyList.setSelectionMode(javax.swing.ListSelectionModel.SINGLE_SELECTION);\n historyList.setCellRenderer(new HistoryListCellRenderer());\n historyList.addListSelectionListener(new ListSelectionListener() {\n\n public void valueChanged(ListSelectionEvent e) {\n final History history = (History) historyList.getSelectedValue();\n\n getViewPanel().setHistory(history);\n\n /*\n * Toggle the buttons off if no action needs to be taken\n */\n\n if (!isLocked() && getUserAccount().isAdministrator()) {\n final OkCancelButtonPanel panel = getButtonPanel();\n\n panel.getOkayButton().setEnabled((history != null) && !history.isProcessed());\n panel.getCancelButton().setEnabled((history != null) && !history.isProcessed());\n }\n\n }\n\n });\n }\n\n return historyList;\n }", "public List<Boolean> getLayerVisibility ()\n {\n return Collections.unmodifiableList(_vis);\n }", "public List<Input> inputList_no_dependency_no_timeout() {\n Input t3 = new Input(\"T3\",3, 43);\n Input t2 = new Input(\"T2\",2, 42);\n Input t1 = new Input(\"T1\",1, 41);\n List<Input> input = new ArrayList<>(); input.add(t2); input.add(t3); input.add(t1);\n return input;\n }", "AbstractList<BalanceChange> recentActivity() {\r\n\t\tArrayList<BalanceChange> activity = new ArrayList<BalanceChange>();\r\n\t\t\r\n\t\tint i=10;\r\n\t\twhile (i > 0) {\r\n\t\t\t//TODO\r\n\t\t\ti--;\r\n\t\t}\r\n\t\t\r\n\t\treturn activity;\r\n\t}", "private void updateTransitionsPriority(ArrayList<Integer> enabled, int[] marking,\r\n\t\t\t\t\t\t\t\t\t\t ArrayList<Place> places, ArrayList<Transition> transitions){\r\n\t\t\r\n\t\tArrayList<ArrayList<Integer>> outputTokens = net.getOutputTokens();\r\n\t\t\r\n\t\tenabled.clear();\r\n\t\t\r\n\t\tfor(int i = 0; i < transitions.size(); i++){\r\n\t\t\tenabled.add(i);\r\n\t\t}\r\n\t\t\r\n\t\tfor(int i = 0; i < places.size(); i++){\r\n\t\t\tfor(int j = 0; j < transitions.size(); j++){\r\n\t\t\t\tif(marking[i]<outputTokens.get(i).get(j)){\r\n\t\t\t\t\tenabled.remove(new Integer(j));\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tint maxPriority = Integer.MAX_VALUE;\r\n\t\t//finds maximum priority of enabled transitions\r\n\t\tfor(int i = 0; i < enabled.size(); i++){\r\n\t\t\tif(transitions.get(enabled.get(i)).getPriority() < maxPriority)\r\n\t\t\t\tmaxPriority = transitions.get(enabled.get(i)).getPriority();\r\n\t\t}\r\n\t\t\r\n\t\t//remove all enabled transitions with less than maximum priority\r\n\t\tfor(int i = enabled.size()-1; i >= 0; i--){\r\n\t\t\tif(transitions.get(enabled.get(i)).getPriority() > maxPriority)\r\n\t\t\t\tenabled.remove(new Integer(enabled.get(i)));\r\n\t\t}\r\n\t}", "List<ButtonSliderType> getBtnSwitches();", "public List<A> getAvailableActionsFor(S state);", "private void constructTransitionTransposeMatrix() {\r\n\t\tfor(int i=0; i<getNodeCnt(); i++) {\r\n\t\t\tArrayList<NodeTransition> transitionList = new ArrayList<NodeTransition>();\r\n\t\t\tmTransitionTranspose.add( transitionList );\r\n\t\t}\r\n\t\tfor(Node node: mNodes) {\r\n\t\t\tint fromId = node.getId();\r\n\t\t\tint outDegree = node.getOutDegree();\r\n\t\t\t\r\n\t\t\tSet<Integer> outEdges = getOutEdges(fromId);\r\n\t\t\tfor(Integer edgeId: outEdges) {\r\n\t\t\t\tint toId = getEdge(edgeId).getToId();\r\n\t\t\t\tdouble pTransition = (double) getEdge(edgeId).getWeight() / (double) outDegree;\r\n\t\t\t\t\r\n\t\t\t\tArrayList<NodeTransition> transitionList = mTransitionTranspose.get(toId);\r\n\t\t\t\ttransitionList.add( new NodeTransition(fromId, pTransition) );\r\n\t\t\t}\r\n\t\t}\r\n\t}", "private void addListListeners() {\n\n MouseListener ml = new MouseAdapter() {\n @Override\n public void mouseReleased(MouseEvent e) {\n int index = checkInTimeList.locationToIndex(e.getPoint());\n if(e.getButton() == MouseEvent.BUTTON3 && e.getClickCount() == 1){\n if(checkInTimeList.isSelectedIndex(index) && checkInTimeList instanceof HostCheckInList )\n ((HostCheckInList)checkInTimeList).doPopupMenuLogic(e); \n }\n\n } // end MouseReleased\n }; // end MouseAdapter class\n checkInTimeList.addMouseListener(ml);\n \n \n KeyListener keyListener = new KeyAdapter() {\n @Override\n public void keyReleased(KeyEvent e) {\n if(e.getKeyChar() == KeyEvent.VK_DELETE || Character.toUpperCase((char)e.getKeyChar()) == 'D')\n removeCheckInDates();\n \n }\n }; // end MouseAdapter class\n checkInTimeList.addKeyListener(keyListener);\n\n }", "@Override\n public List<Estado> getEstadoList(EstadoChangeListener estadoListener) {\n\n mEstadoListener = estadoListener;\n\n mEstadosViewModel\n .getEstadosListLiveData().observe(mCompositionRoot.getActivity(), estadosList -> {\n\n Log.i(TAG, \"observe() inside method - estadosList: \" + estadosList);\n\n mEstadoList = estadosList;\n mEstadoListener.onEstadoLoaded(estadosList);\n\n });\n\n return mEstadoList;\n\n }", "public List<Key> getActiveKeys() {\n\t\tactiveKeys.clear();\n\t\t\n\t\tfor (Key key : keys) {\n\t\t\tif (key.getIsActive()) activeKeys.add(key);\n\t\t}\n\t\t\n\t\treturn activeKeys;\n\t}", "public ArrayList<Task> listConcluded() {\n ArrayList<Task> tasks = new ArrayList<>();\n for (Task t : this.tasks) {\n if (t.getStatus() == 100) {\n tasks.add(t);\n }\n }\n return tasks;\n }", "private List<Event> generateEvents() {\n\t\tList<Event> events = new ArrayList<Event>();\n\t\tint numEvents = random.nextInt(2) + 1;\n\t\tfor (int i = 0; i < numEvents; i++) {\n\t\t\tEvent newEvent = null;\n\t\t\tdo {\n\t\t\t\tnewEvent = new Event(db);\n\t\t\t} while (events.contains(newEvent)); // make sure only one instance of an event occurs per turn\n\t\t\tevents.add(newEvent);\t\t\t\n\t\t}\n\t\treturn events;\n\t}", "protected ArrayList<Integer> GetTrains() {\n\t\treturn this.TrainsPresent;\n\t}" ]
[ "0.65255344", "0.60637754", "0.60257447", "0.59787804", "0.59224415", "0.58395123", "0.5789896", "0.5623439", "0.5611274", "0.5491049", "0.53897125", "0.5383709", "0.5383157", "0.5375075", "0.5359357", "0.532815", "0.52747166", "0.5259304", "0.52557534", "0.52172023", "0.52168864", "0.5161156", "0.5149975", "0.5140128", "0.5121802", "0.5117307", "0.5081357", "0.50754577", "0.5070052", "0.5062582", "0.5060417", "0.50531965", "0.50482804", "0.50172627", "0.49976915", "0.49902922", "0.49719554", "0.49612176", "0.49499556", "0.4927259", "0.4920551", "0.4912829", "0.489036", "0.48814562", "0.48659173", "0.4862727", "0.48589256", "0.4858038", "0.4847061", "0.48437104", "0.4839221", "0.4832431", "0.48312393", "0.4816629", "0.48108885", "0.48045346", "0.48018578", "0.48017874", "0.47907415", "0.47899893", "0.47865865", "0.4786157", "0.47861525", "0.47810516", "0.4779747", "0.47671264", "0.47492036", "0.47482625", "0.4746408", "0.47362617", "0.47354782", "0.47277862", "0.47257033", "0.47109163", "0.47102064", "0.46861112", "0.4681217", "0.46789032", "0.46702102", "0.4668296", "0.46599033", "0.46598294", "0.46578956", "0.46453556", "0.46452767", "0.4644992", "0.4638426", "0.46267426", "0.4625783", "0.46226135", "0.46220592", "0.46193933", "0.46134436", "0.4610759", "0.46022338", "0.46016386", "0.4599894", "0.45936698", "0.4590308", "0.45886707" ]
0.65106237
1
This method is currently not used and needs to be refactored.
public static List<Instance<Transition>> GetFireableTransitions(List<Instance<Transition>> TransitionList, HighLevelSimulator simulator) throws Exception { // Get the enabled transitions List<Instance<Transition>> EnabledTransitions = getEnabledTransitions(TransitionList, simulator); // Create list that will contain the accepted transitions. List<Instance<Transition>> AcceptedTransitions = new ArrayList<Instance<Transition>>(); // For every enabled transition, check if it is also accepted. for (Instance<Transition> EnabledTransitionInstance : EnabledTransitions) { // Assume that filename is the same as the transition name. String filename = EnabledTransitionInstance.toString(); // Check if the transition is valid. // If the transition is not valid, continue to the next transition. if (CheckValid(filename) == false) { continue; } AcceptedTransitions.add(EnabledTransitionInstance); } if (AcceptedTransitions.isEmpty()) throw new java.lang.Error("No accepted transitions could be found"); return AcceptedTransitions; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\n\tprotected void interr() {\n\t}", "@Override\n public void func_104112_b() {\n \n }", "private stendhal() {\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 }", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "protected boolean func_70814_o() { return true; }", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\n protected void getExras() {\n }", "@Override\n protected void init() {\n }", "@Override\r\n\tprotected void doF8() {\n\t\t\r\n\t}", "public final void mo51373a() {\n }", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "private void m50366E() {\n }", "private void poetries() {\n\n\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\n protected void prot() {\n }", "@Override\n\tprotected void logic() {\n\n\t}", "protected MetadataUGWD() {/* intentionally empty block */}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "public void method_4270() {}", "@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 protected void initialize() {\n\n \n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n public int describeContents() { return 0; }", "@Override\r\n\tprotected void doF4() {\n\t\t\r\n\t}", "@Override\n public int retroceder() {\n return 0;\n }", "@Override\n\tprotected void prepare() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}", "@Override\n public Object preProcess() {\n return null;\n }", "@Override\n public void preprocess() {\n }", "@Override\r\n\tprotected void prepare()\r\n\t{\r\n\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tprotected void doF6() {\n\t\t\r\n\t}", "@Override\n public void preprocess() {\n }", "public void testEntrySetIteratorHasProperMappings() {\n return;\r\n }", "private void strin() {\n\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void func03() {\n\t\t\r\n\t}", "@Override\n public void init() {\n\n }", "protected boolean func_70041_e_() { return false; }", "@Override\n\tpublic void jugar() {\n\t\t\n\t}", "@Override\n public void init() {\n }", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "private void kk12() {\n\n\t}", "protected OpinionFinding() {/* intentionally empty block */}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "@Override\n\tpublic void apply() {\n\t\t\n\t}", "@Override\n void init() {\n }", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\r\n\tprotected void initSelfData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initSelfData() {\n\t\t\r\n\t}", "@Override\n\tprotected void initialize() {\n\t}", "@Override\n\tprotected void initialize() {\n\t}", "private Unescaper() {\n\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "protected abstract Set method_1559();", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\r\n\tpublic void init() {}", "private void level7() {\n }", "@Override\r\n\tprotected void intializeSpecific() {\n\r\n\t}", "@Override public int describeContents() { return 0; }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "private void init() {\n\n\t}", "@Override\n public void init() {}", "protected void init() {\n // to override and use this method\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}", "@Override\r\n\tprotected void processInit() {\n\r\n\t}", "@Override\r\n\tprotected void processInit() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "Compatibility compatibility();", "private MetallicityUtils() {\n\t\t\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\n public void apply() {\n }", "@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\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "protected void mo6255a() {\n }", "@Override\n\t\tpublic void init() {\n\t\t}", "private Util() { }" ]
[ "0.57449126", "0.57356226", "0.56334263", "0.5491364", "0.53382736", "0.53221375", "0.53221375", "0.53221375", "0.53221375", "0.53221375", "0.53221375", "0.5296962", "0.5288827", "0.52848834", "0.52369237", "0.52335393", "0.52229536", "0.5212404", "0.51888674", "0.5176437", "0.51654273", "0.51429945", "0.51419216", "0.51380485", "0.51360285", "0.5135796", "0.51330256", "0.51325387", "0.51146495", "0.51146495", "0.51133674", "0.50957465", "0.50957465", "0.5094838", "0.5093598", "0.5089463", "0.50665545", "0.5057491", "0.50475645", "0.504665", "0.5045713", "0.504418", "0.5041627", "0.5027349", "0.5026693", "0.5021062", "0.5019876", "0.50189203", "0.5005341", "0.49967307", "0.49949914", "0.4994867", "0.4992277", "0.49890465", "0.49848208", "0.49844772", "0.49820247", "0.4974304", "0.4973986", "0.49613506", "0.495915", "0.495915", "0.4954501", "0.4954501", "0.49520937", "0.49498892", "0.49459755", "0.49439037", "0.494267", "0.49307775", "0.49258304", "0.4924722", "0.49182466", "0.49149424", "0.49149424", "0.4912262", "0.490958", "0.49038157", "0.48869798", "0.48869798", "0.48869798", "0.48869798", "0.48869798", "0.488087", "0.48745427", "0.48737848", "0.48692793", "0.48692793", "0.4869061", "0.4868628", "0.4863759", "0.48610747", "0.485955", "0.4858297", "0.48492527", "0.48492527", "0.48492527", "0.48400548", "0.48368818", "0.48364842", "0.48338923" ]
0.0
-1
Find a place by its name.
public static Instance<PlaceNode> findPlaceByName(String name, List<Instance<PlaceNode>> allPlaces) { for (Instance<PlaceNode> p : allPlaces) { if (p.toString().equals(name)) { return p; } } throw new java.lang.Error("No place with this name could be found."); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private Place getPlace(String identifierPlace) {\n\t\tPlace place = null;\n\t\tfor(Place p: places ){\n\t\t\tif(p.getName().equals(identifierPlace)){\n\t\t\t\tplace = p;\n\t\t\t}\n\t\t}\n\t\treturn place;\n\t}", "Object find(String name);", "@Override\n\tpublic Place find(Place obj) {\n\t\treturn null;\n\t}", "public Person find(String name) {\n\t\tfor (Person person : listOfPeople) {\n\t\t\tif(person.getName().contains(name)) {\n\t\t\t\treturn person;\n\t\t\t}\n\t\t}\n\t\treturn null; // only reached if person with name not found by search.\n\t}", "public int search(String name){\n\t\tfor(Map.Entry<String, Integer> e : map.entrySet()){\n\t\t\tif(e.getKey().equals(name)){\n\t\t\t\treturn e.getValue();\n\t\t\t}\n\t\t}\n\t\tthrow new NullPointerException();\n\t\t/*\n\t\twhile(pointer < locations.length){\n\t\t\tif(locations[pointer].getName() == name){\n\t\t\t\tmap.put(locations[pointer].getName(), locations[pointer].getID());\n\t\t\t\tpointer++;\n\t\t\t\treturn locations[pointer - 1].getID();\n\t\t\t} else {\n\t\t\t\tmap.put(locations[pointer].getName(), locations[pointer].getID());\n\t\t\t\tpointer++;\n\t\t\t}\n\t\t}\n\t\tthrow new NullPointerException();\n\t\t*/\n\t}", "public T get(String name) {\n for (int i = maps.size() - 1; i >= 0; i--) {\n HashMap<String, T> scope = maps.get(i);\n T t = scope.get(name);\n if (t != null) return t; // Found it!\n }\n return null; // Not found\n }", "public Address searchByName(String name) {\n if (name == null || !addressBook.containsKey(name))\n throw new NullPointerException();\n return addressBook.get(name);\n }", "public Handle search(String name) {\n int homePos = hash(table, name);\n int pos;\n\n // QUADRATIC PROBE\n for (int i = 0; i < table.length; i++) {\n // possibly iterate over entire table, but will\n // likely stop before then\n pos = (homePos + i * i) % table.length;\n if (table[pos] == null) {\n break;\n }\n else if (table[pos] != GRAVESTONE\n && table[pos].getStringAt().equals(name)) {\n return table[pos];\n }\n } // end for\n\n return null;\n }", "Road findByName(String toFind, ArrayList<Road> list)\n\t{\n\t\tRoad tmp;\n\t\tIterator<Road> it = list.iterator();\n\t\twhile(it.hasNext())\n\t\t{\n\t\t\ttmp = it.next();\n\t\t\tif(tmp.getName().equals(toFind))\n\t\t\t{\n\t\t\t\treturn tmp;\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "private SymObject find(String name) {\n SymObject object = table.find(name);\n if (object == SymbolTable.OBJECT_NONE) {\n error(name + \" can't be resolved to a name\");\n }\n\n return object;\n }", "public abstract ServiceLocator find(String name);", "private Place getPlace(Integer idPlace) {\n\t\tPlace place = null;\n\t\tfor(Place p: places ){\n\t\t\tif(p.getId().equals(idPlace)){\n\t\t\t\tplace = p;\n\t\t\t}\n\t\t}\n\t\treturn place;\n\t}", "@Override\r\n\tpublic List<Place> searchPlaces(String placeName, String city) {\n\t\tGoogleMapsSearchPlaceAPI googleMapsSearchPlaceAPI = new GoogleMapsSearchPlaceAPI();\r\n\t\tList<Place> places = googleMapsSearchPlaceAPI.search(placeName, city);\r\n\r\n\t\tfor (Place place : places) {\r\n\t\t\tsavePlace(place);\r\n\t\t}\r\n\r\n\t\treturn places;\r\n\t}", "@Override\r\n\tpublic Plate findByName(String nom) {\n\t\treturn null;\r\n\t}", "static public Person searchPerson(String name) {\n return personMap.get(name);\n }", "private TreeObject find(String name, int type) {\n\t return widgetRoots[type - 1].find(name);\n\t}", "Place resolveLocation( Place place );", "public static TextPosition findByName(String name) {\n\t\tfor (TextPosition titlePosition : TextPosition.values()) {\n\t\t\tif (titlePosition.getName().equals(name)) {\n\t\t\t\treturn titlePosition;\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "private Place getFromPlace(Element passageElement, ArrayList<Place> places) {\n Place start = null;\n for (int i = 0; i <= places.size() - 1; i++) {\n if (passageElement.getElementsByTagName(\"comeFrom\").item(0).getTextContent()\n .equals(places.get(i).getName())) {\n start = places.get(i);\n }\n }\n return start;\n }", "Place getPlace();", "private Resource lookForMovieResource(String movieName) {\n\t\t// initialize foundPlace by null.\n\t\tResource foundPlace = null;\n\t\tfoundPlace = searchMovieOnLinkedMDB(movieName);\n\t\tif (foundPlace == null) {\n\t\t\tfoundPlace = searchSimilarityByLabel(movieName,\n\t\t\t\t\tgetAllMovieQuerySolutions(), \"movie\");\n\t\t}\n\t\treturn foundPlace;\n\t}", "@Override\n public <T extends ParsedComponent> Optional<T> find(String exactName, Class<T> clazz) {\n\n if (exactName.equals(name) && clazz.equals(this.getClass())) {\n //noinspection unchecked\n return Optional.of((T) this);\n }\n\n return findInChildren(exactName, clazz);\n }", "Optional<MemoryAddress> lookup(String name);", "public Place(String name) {\r\n\t\tthis.name = name;\r\n\t\tthis.data = new LinkedHashMap<Integer, Data>();\r\n\t\tthis.populateData();\r\n\t}", "public Symbol findEntryLocal(String name){\n\t\tList<SymbolEntry> l = symbolMap.get(name);\n\t\tif(l == null || (l.get(0).level < scopeLevel))\n\t\t\treturn null;\n\t\treturn l.get(0).symbol;\n\t}", "@Override\r\n\tpublic LookMast findByName(String lookmastName) {\n\t\treturn lookMastRepository.findByName(lookmastName);\r\n\t}", "private Shape find(String name, ArrayList<Shape> listShapes, ArrayList<Command> commands) {\r\n for (Shape shape : listShapes) {\r\n if (shape.getName().equals(name)) {\r\n return shape;\r\n }\r\n }\r\n throw new IllegalArgumentException(\"Cannot find shape.\");\r\n }", "public int search (String name) {\n int result = -1;\n int offset = 0;\n\n for (int i=9; i>-1; i--)\n {\n qLock[i].lock ();\n result = q[i].indexOf (name);\n if (result == -1)\n offset += q[i].size ();\n qLock[i].unlock ();\n if (result != -1)\n break;\n }\n\n if (result == -1)\n return result;\n\n return result + offset;\n }", "static Place getPlaceByID ( int key)\r\n\t{\r\n\t\treturn tm.get(key);\r\n\t}", "public abstract T findByName(String name) ;", "public Part lookupPart(String partName) {\n for(Part part : allParts) {\n if(part.getName().equals(partName)) {\n return part;\n }\n }\n \n return null;\n }", "public Location getLocationByName(String name) {\n\t\tfor (Location x : locations) {\n\t\t\tif (x.getName().equals(name))\n\t\t\t\treturn x;\n\t\t}\n\t\treturn null; \n\t}", "ResultSet searchName(String name) {\n \ttry {\n \t\tStatement search = this.conn.createStatement();\n \tString query = \"SELECT * FROM Pokemon WHERE Name = \" + \"'\" + name + \"'\";\n \t\n \treturn search.executeQuery(query);\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t\treturn null;\n\t\t}\n }", "public Symbol findEntryGlobal(String name){\n\t\tList<SymbolEntry> l = symbolMap.get(name);\n\t\tif(l == null)\n\t\t\treturn null;\n\t\treturn l.get(0).symbol;\n\t}", "public void searchPlace(String value)\n\t\t{ \n\t\t Geocoder geoCoder = new Geocoder(getBaseContext(), Locale.getDefault()); \n\t\t try {\n\t\t List<Address> addresses = geoCoder.getFromLocationName(\n\t\t value, 5);\t\t \n\t\t if (addresses.size() > 0) {\n\t\t \t\n\t\t \tdouble latitude= 0.0, longtitude= 0.0;\n\t\t \tGeoPoint p = new GeoPoint(\n\t\t (int) (addresses.get(0).getLatitude() * 1E6), \n\t\t (int) (addresses.get(0).getLongitude() * 1E6));\n\t\t \tlatitude=p.getLatitudeE6()/1E6;\n\t\t\t\t\t\tlongtitude=p.getLongitudeE6()/1E6;\t \n\t\t\t\t\t\tlat = String.valueOf(latitude);\n\t\t\t\t\t\tlongi = String.valueOf(longtitude);\n\t\t\t\t\t\torigin = new LatLng(latitude,longtitude);\n\t\t \tmap.moveCamera( CameraUpdateFactory.newLatLngZoom(origin, (float) 14.0) ); \n\t\t } \n\t\t } catch (IOException e) {\n\t\t e.printStackTrace();\n\t\t }\n\n\n\n\t\t \n\n\t\t}", "Person findPerson(String name);", "public String searchByName(String name){\n for(Thing things: everything){\n if(things.getName().equalsIgnoreCase(name)){\n return things.toString();\n }\n }\n return \"Cannot Find given Name\";\n }", "public Movie findMovie(String name){\n\n Movie find = null ;\n\n for (Movie movie :movies) {\n\n if(movie.getTitle().equals(name)){\n\n find = movie;\n\n }\n\n }\n\n return find;\n\n }", "Team findByName(String name);", "FindResponse find(@NonNull String title, @NonNull String space);", "public FileObject findResource(String name) {\n Enumeration en = getFileSystems ();\n while (en.hasMoreElements ()) {\n FileSystem fs = (FileSystem)en.nextElement ();\n FileObject fo = fs.findResource(name);\n if (fo != null) {\n // object found\n return fo;\n }\n }\n return null;\n }", "public Country findByName(String name);", "public InventoryItem findItem(String itemName)\n\t{\n\t\t\n\t\t\tfor (int k = 0; k < items.size(); k++)\n\t\t\t\tif (itemName.equals(items.get(k).getName()))\t\t\n\t\t\t\t\treturn items.get(k);\t\t\n\t\t\treturn null;\t\t\t\t\t\t\n\t}", "public NameSurferEntry findEntry(String name) {\n\t\tchar ch = name.charAt(0);\n\t\tif(Character.isLowerCase(ch) == true) {\n\t\t\tch = Character.toUpperCase(ch);\n\t\t}\n\t\tString otherLetters = name.substring(1);\n\t\totherLetters = otherLetters.toLowerCase();\n\t\tname = ch + otherLetters;\n\t\tif (nameFromDatabase.containsKey(name)) {\n\t\t\treturn nameFromDatabase.get(name);\n\t\t}\t\t\t\n\t\telse{\n\t\t\treturn null;\n\t\t}\n\t}", "public String getplaceName() {\n\t\treturn placeName;\n\t}", "private RoomCard findRoomCard(String search) {\n for (RoomCard card : this.getRoomCards()) {\n if (card.getName().toLowerCase().equals(search.toLowerCase())) {\n return card;\n }\n }\n return null;\n }", "public boolean findItemAtCurrentPlace(String id)\r\n\t{\r\n\t\treturn this.currentPlace.existItem(id);\r\n\t\t\r\n\t}", "Tag findByName(String name);", "public StringNode locate(String word) {\n StringNode current = first;\n while (true) {\n if (current == null) {\n return null;\n }\n if (current.getWord().equalsIgnoreCase(word)) {\n return current;\n }\n else {\n if (current.hasNext()) {\n current = current.getNext();\n }\n else {\n return null;\n }\n }\n }\n }", "public abstract SmartObject findIndividualName(String individualName);", "@Override\n public Named find(String name) throws SemanticException {\n try {\n return head.find(name);\n }\n catch (NoClassException e) {\n return tail.find(name);\n }\n }", "private Node search(String name)\r\n\t{\r\n\t\t// Check to see if the list is empty\r\n\t\tif(isEmpty())\r\n\t\t{\r\n\t\t\t// Return null which will be checked for by the method that called it\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\t// Tree is not empty so use the recursive search method starting at the root reference \r\n\t\t// to find the correct Node containing the String name\r\n\t\treturn search(getRoot(), name);\r\n\t}", "@Override\r\n\tpublic Country find(String name) {\r\n\t\tCountry retDM = null;\r\n\r\n\t\tif (name == null) {\r\n\t\t\tthrow new IllegalArgumentException(\"\");\r\n\t\t}\r\n\t\ttry {\r\n\t\t\treadMapFromFile();\r\n\t\t\tretDM=this.daoMap.get(name);\r\n\r\n\t\t} catch (JsonSyntaxException | JsonIOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn retDM;\r\n\t}", "private Track searchTrack(String name) {\n for(Track e: listTracks) {\n if(e.sDataPath.equals(name)) return e;\n }\n return null;\n }", "public <T extends Base> T findByName(Class<T> T, String name)\n\t\t\tthrows IOException, ClassNotFoundException {\n\t\tT result = null;\n\t\tfor (T t : list(T)) {\n\t\t\tif (t.getName().equals(name)) {\n\t\t\t\tresult = t;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\treturn result;\n\t}", "public Runway findRunway(String runwayName) {\r\n\r\n for(int pos = 0; pos < runways.size(); pos++) {\r\n\r\n if(runways.get(pos)!= null)\r\n {\r\n if(runways.get(pos).getName().equals(runwayName)) {\r\n\r\n return runways.get(pos);\r\n }\r\n }\r\n }\r\n\r\n return null;\r\n\r\n }", "private Node search(Node traverse, String name)\r\n\t{\t\r\n\t\t// Haven't reached a dead-end yet\r\n\t\tif(traverse != null)\r\n\t\t{\r\n\t\t\t// Check to see if the current Node matches the String\r\n\t\t\tif(name.equalsIgnoreCase(traverse.getName()))\r\n\t\t\t{\r\n\t\t\t\t// return the location of the node\r\n\t\t\t\treturn traverse;\r\n\t\t\t}\r\n\t\t\t// The name is lexicographically less than the current Node's name\r\n\t\t\telse if(name.compareToIgnoreCase(traverse.getName()) < 0)\r\n\t\t\t{\r\n\t\t\t\t// Keep searching through the left subtree\r\n\t\t\t\treturn search(traverse.getLeftChild(), name); \r\n\t\t\t}\r\n\t\t\t// The name is lexicographically greater than the current Node's name\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\t// Keep searching through the right subtree\r\n\t\t\t\treturn search(traverse.getRightChild(), name);\r\n\t\t\t}\r\n\t\t}\t\r\n\t\t// Node not found in the Binary Tree\r\n\t\treturn null;\r\n\t}", "@Override\n public Component find(String name) throws ItemNotFoundException {\n if(this.getName().equals(name))\n return this;\n\n for(Component c : children)\n try {\n return c.find(name);\n } catch (ItemNotFoundException e) {\n continue;\n }\n\n throw new ItemNotFoundException(\"\\\"\" + name + \" not found in \" + this.getName());\n }", "private Place getFollowPlace(Element passageElement, ArrayList<Place> places) {\n Place follow = null;\n for (int i = 0; i <= places.size() - 1; i++) {\n if (passageElement.getElementsByTagName(\"connectTo\").item(0).getTextContent()\n .equals(places.get(i).getName())) {\n follow = places.get(i);\n }\n }\n return follow;\n }", "public Place(String name, LinkedHashMap<Integer, Data> data) {\r\n\t\tthis.name = name;\r\n\t\tthis.data = data;\r\n\t}", "Keyword findKeywordByName(String name);", "public Team findTeamFromName(String name) {\r\n Iterator<Team> itr = this.getTeamTreeFromMatchTree().iterator();\r\n Team team;\r\n while (itr.hasNext()){\r\n team = itr.next();\r\n if (team.getName().equals(name)){\r\n return team;\r\n }\r\n }\r\n return null;\r\n }", "Expertise findByName(String name);", "public Contact findContact(String name)\r\n\t{\r\n\t\tSystem.out.println(\"in FindContact\");\r\n\t\tString name1;\r\n\t\tname = name.toUpperCase();\r\n\t\tfor(int i = 0; i < this.size(); i++)\r\n\t\t{\r\n\t\t\tname1 = this.get(i).getContactName().toUpperCase();\r\n\r\n\t\t\tif (name.equalsIgnoreCase(name1)) {\r\n\t\t\t\tSystem.out.println(this.get(i));\r\n\t\t\t\tContact contact = this.get(i);\r\n\t\t\t\treturn contact; \t\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\t \t \t\t \r\n\t\t} \r\n\t\treturn null;\r\n\t}", "public static Direction findByName(String name) {\n Direction result = null;\n for (Direction direction : values()) {\n if (direction.name().equalsIgnoreCase(name)) {\n result = direction;\n break;\n }\n }\n return result;\n }", "@Override\n\tpublic Symbol resolve(String name) {\n\t\tSymbol s = symbols.get(name);\n\t\tif (s != null)\n\t\t\treturn s;\n\t\t\n\t\t// otherwise look in the enclosing scope, if there is one\n\t\tScope sc = enclosingScope;\n\t\twhile (sc != null) {\n\t\t\tSymbol sym = enclosingScope.resolve(name);\n\t\t\tif (sym != null) {\n\t\t\t\treturn sym;\n\t\t\t}\n\t\t\tsc = sc.getEnclosingScope();\n\t\t}\n\t\t// otherwise it doesn't exist\n\t\treturn null;\n\t}", "public T lookup( String name )\r\n {\r\n T result = null;\r\n \r\n for( HashMap<String,T> table : tables )\r\n {\r\n result = table.get( name );\r\n if( result!=null ) break;\r\n }\r\n \r\n return result;\r\n }", "public Element findByName(String name) {\n for (Element element : this){\n if (element.getName().equals(name)) return element;\n }\n return null;\n }", "public Field findField(final String name) {\r\n\t\tGeneratorHelper.checkJavaFieldName(\"parameter:name\", name);\r\n\r\n\t\tField found = null;\r\n\r\n\t\tfinal Iterator<Field> iterator = this.getFields().iterator();\r\n\r\n\t\twhile (iterator.hasNext()) {\r\n\t\t\tfinal Field field = iterator.next();\r\n\t\t\tif (field.getName().equals(name)) {\r\n\t\t\t\tfound = field;\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn found;\r\n\t}", "@Override\n\tpublic Etape find(String search) {\n\t\treturn null;\n\t}", "private Variable findVariable(String varToFind){\r\n\t\tScope curScope = this;\r\n\t\twhile (curScope!=null) {\r\n\t\t\tif(curScope.contains(varToFind)){\r\n\t\t\t\treturn curScope.getVariable(varToFind);\r\n\t\t\t}else{\r\n\t\t\t\tcurScope = curScope.parent;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "public BusinessObject findChildByName(String name) {\n\t\tif (children == null) return null;\n\t\tBusinessObject child = children.get(name.toLowerCase());\n\t\tif (child == null) return null;\n\t\treturn child.getReferencedObject();\n\t}", "SyncRecord findObject(String name, int type) throws NotFoundException\r\n\t{\r\n\t\tfor (int i=0; i<syncTable.size(); i++)\r\n\t\t{\r\n\t\t\tSyncRecord myrec = (SyncRecord)syncTable.elementAt(i);\r\n\t\t\tif ((myrec.name).equals(name) && (myrec.type)==type)\r\n\t\t\t\treturn myrec;\r\n\t\t}\r\n\t\tthrow new NotFoundException();\r\n\t}", "@Override\r\n\tpublic TeamPO findTeamByName(String name) {\n\t\treturn teams.findTeamByShortName(name);\r\n\t}", "public void setPlace(String place){\n this.place = place;\n }", "private Composite seekLocalName(Composite composite, String name) {\n Optional<Composite> find = composite.find(childComposite -> {\n if (childComposite == null) {\n return false;\n }\n\n return childComposite.getName() != null && childComposite.getName().equals(name);\n }, FindMode.childrenOnly).stream().findFirst();\n\n if (find.isPresent()) {\n return find.get();\n } else {\n return null;\n }\n }", "public static Node findByName (Node bst, String name){\n\t\tif(bst != null){\n\t\t\tif(bst.getName().equals(name)){\n\t\t\t\tSystem.out.println(\"The node \" + bst + \" is found!\");\n\t\t\t\treturn bst;\t\t\t\t\t\t\t\n\t\t\t}else if(bst.getName().compareTo(name)>0){\n\t\t\t\tSystem.out.println(bst.getLeft().getName() + \" <- \" + bst.getName());\n\t\t\t\treturn findByName(bst.getLeft(), name);\n\t\t\t}else{ \n\t\t\t\tSystem.out.println(bst.getName() + \" -> \" + bst.getRight().getName());\n\t\t\t\treturn findByName(bst.getRight(), name);\n\t\t\t\n\t\t\t}\n\t\t}else\n\t\treturn null;\n\t}", "Car findByName(String name);", "public static Result findLocation(String query) {\n query = query.replaceAll(\"\\\\+\", \" \");\n List<Datasource> result = Datasource.find.where().ilike(\"name\", query).findList();\n if (result.isEmpty()) {\n return ok(\"No datasource found for requested city. Sorry!\");\n }\n Datasource d = result.get(0);\n return ok(d.getName() + \"\\n\" + d.getId());\n }", "public HDAddressDescription findAddress(Address addr) {\n HDAddressDescription retval = null;\n for (HDAccount acct : mAccounts) {\n retval = acct.findAddress(addr);\n if (retval != null)\n return retval;\n }\n return retval;\n }", "public Story findByName(String name) {\n EntityManager entityManager = getEntityManager();\n\n CriteriaBuilder criteriaBuilder = entityManager.getCriteriaBuilder();\n CriteriaQuery<Story> criteria = criteriaBuilder.createQuery(Story.class);\n Root<Story> root = criteria.from(Story.class);\n\n criteria.select(root);\n criteria.where(criteriaBuilder.equal(root.get(Story_.name), name));\n \n return getSingleResult(entityManager.createQuery(criteria));\n }", "public static LinkedList<Actor> nameSearch(String name) {\n //sets name to lower case\n String hname = name.toLowerCase();\n //hashes the lower cased name\n int hash = Math.abs(hname.hashCode()) % ActorList.nameHashlist.length;\n //finds the location of the linked list\n LinkedList<Actor> location = ActorList.nameHashlist[hash];\n //sets the head to the head of the linked list\n LinkedList.DataLink head = location.header;\n\n\n while (head.nextDataLink != null) {\n //runs until next data link is null and gets each Actor\n Actor actor = (Actor) head.nextDataLink.data;\n //checks the name of the actor to inputted name\n if (actor.getName().toLowerCase().equals(hname)) {\n //if it's the same it returns the actor\n return location;\n //or moves to next link\n } else {\n head = head.nextDataLink;\n }\n }\n //returns null if the list does not match input\n return null;\n\n\n }", "private static Person findPersonByName(EntityManager em, String name) {\n\t\tQuery query = em.createQuery(\"select p from Person p where name = :name\", Person.class);\n\t\tquery.setParameter(\"name\", name);\n\t\treturn (Person) query.getSingleResult();\n\t}", "protected Place getPlace(int row, int col) {\n\t\treturn this.places.get(row * b.size() + col);\n\t}", "public static Declaration findSymbol(SymbolTable table, IDExpression name) {\n Declaration ret = null;\n SymbolTable symtab = table;\n while (ret == null && symtab != null) {\n ret = getTable(symtab).get(name);\n symtab = IRTools.getAncestorOfType(symtab, SymbolTable.class);\n }\n return ret;\n }", "private boolean existCountryOrPlace(String country, String name){\n \tboolean exist = false;\n \tfor(Place p : places){\n \t\tif(p.getName().equals(name)&&p.getCountry().equals(country)){\n \t\t\texist = true;\n \t\t}\n \t}\n \treturn exist;\n }", "public void findHouse() {\n System.out.println(\"-----Search House-----\");\n System.out.println(\"enter id: \");\n int findId = Utility.readInt();\n //call service search method\n House h = houseService.searchHouse(findId);\n if (h != null) {\n System.out.println(h);\n } else {\n System.out.println(\"no designate house found\");\n }\n }", "Unit findPlace() {\n\t\tif (!availableRegister.isEmpty()) {\n\t\t\tUnit result = availableRegister.firstElement();\n\t\t\tavailableRegister.remove(0);\n\t\t\treturn result;\n\t\t} else {\n\t\t\tint memId = localPos;\n\t\t\tlocalPos++;\n\t\t\treturn new UnitMemory(new String(\"local[\" + String.valueOf(memId) + \"]\"), memId);\n\t\t}\n\t}", "public static String getPlace(String place) {\n if (place != null\n && place.contains(\" of \")) {\n return place.substring(place.lastIndexOf(\" of \") + \" of \".length());\n }\n return place;\n }", "public Closure find_var(String name){\n Closure currentClosure = this;\n while (currentClosure != null){\n if (currentClosure.contains(name)){\n return currentClosure;\n }\n currentClosure = currentClosure.getParent();\n }\n throw new UndefinedVariable();\n }", "public Book getBookByName(final String name) {\n final TypedQuery<Book> query = entityManager.createQuery(\"select b from Book b where b.name like :name\",\n Book.class).setParameter(\"name\", name);\n try {\n return query.getSingleResult();\n } catch (final PersistenceException ex) {\n return null;\n }\n }", "Heaver findByName(String name);", "@Override\n\tpublic Symbol resolveMember(String name) {\n\t\tSymbol s = symbols.get(name);\n\t\tif (s != null)\n\t\t\treturn s;\n\t\t\n\t\t// don't look in the enclosing scope for this one\n\t\t\n\t\t// otherwise it doesn't exist\n\t\treturn null;\n\t}", "public VariableItem SearchVariable(String variableName) {\n\t\tfor(VariableItem variable : variableItem)\n\t\t{\n\t\t\tif(variable.name==variableName)\n\t\t\t\treturn variable;\n\t\t}\n\t\treturn null;\n\t}", "public AbsenceType findByName(String name);", "List<Cloth> findByNameContaining(String name);", "@Override\n\tpublic String findId(String name) throws Exception {\n\t\treturn null;\n\t}", "public static String getPlaceID(String placeName) {\r\n\t\tString output = \"\";\r\n\t\ttry {\r\n\t\t\tURL url = new URL(\"https://maps.googleapis.com/maps/api/place/findplacefromtext/json?input=\"+placeName+\"&inputtype=textquery&fields=place_id&key=AIzaSyAcM2vc8-2JY9I5P7jgvt61TCYa1vo0b98\");\r\n\t\t\tHttpURLConnection conn = (HttpURLConnection)url.openConnection();\r\n\t\t\tconn.setRequestMethod(\"GET\");\r\n\t\t\tconn.connect();\r\n\t\t\tint responsecode = conn.getResponseCode();\r\n\t\t\tif(responsecode != 200) {\r\n\t\t\t\tthrow new RuntimeException(\"HttpResponseCode: \"+responsecode);\r\n\t\t\t} else {\r\n\t\t\t\tJSONParser parse = new JSONParser();\r\n\t\t\t\tScanner scanner = new Scanner(url.openStream());\r\n\t\t\t\twhile (scanner.hasNext()) {\r\n\t\t\t\t\toutput+=scanner.nextLine();\r\n\t\t\t\t}\r\n\t\t\t\tJSONObject jsonobject = (JSONObject)parse.parse(output);\r\n\t\t\t\tJSONArray resultArray = (JSONArray) jsonobject.get(\"candidates\");\r\n\t\t\t\tfor(int count=0; count<1;count++) {\r\n\t\t\t\t\tJSONObject jsonobject1 = (JSONObject)resultArray.get(count);\r\n\t\t\t\t\tSystem.out.println(placeName+\" Place ID: \"+jsonobject1.get(\"place_id\"));\r\n\t\t\t\t\toutput = (String) jsonobject1.get(\"place_id\");\r\n\t\t\t\t}\r\n\t\t\t\tscanner.close();\r\n\t\t\t}\r\n\t\t} catch (MalformedURLException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (IOException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (ParseException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn output;\r\n\t}", "Definition lookup(String name, // the name to locate\n int numParams) { // number of params\n // note that the name isn't used... all definitions contained\n // by the MultiDef have the same name\n \n // walk through the list of symbols\n Enumeration e = defs.elements();\n while(e.hasMoreElements()) {\n Definition d = (Definition)e.nextElement();\n \n // If the symbol is a method and it has the same number of\n // parameters as what we are calling, assume it's the match\n if (d instanceof MethodDef) {\n if (((MethodDef)d).getParamCount() == numParams)\n return d;\n }\n \n // otherwise, if it's not a method, AND we're not looking for\n // a method, return the definition found.\n else if (numParams == -1)\n return d;\n } \n\n // If we didn't find a match return null\n return null;\n }", "static Place getRandomPlace()\r\n\t{\r\n\t\tPlace randomPlace = knownPlaces.get( new Random().nextInt ( knownPlaces.size()));\r\n\t\treturn randomPlace;\r\n\t}" ]
[ "0.71423227", "0.67562336", "0.6499911", "0.6348563", "0.618066", "0.6135879", "0.61156976", "0.6115066", "0.61135304", "0.6056822", "0.60437286", "0.6017785", "0.6000121", "0.59950036", "0.5986863", "0.5961182", "0.59559196", "0.5942112", "0.5925631", "0.585176", "0.58390224", "0.5832079", "0.57891834", "0.5786266", "0.57640886", "0.5748916", "0.57412344", "0.57412267", "0.5729042", "0.57286686", "0.5708958", "0.5708089", "0.5707576", "0.5671221", "0.5663488", "0.5648623", "0.56462234", "0.56156564", "0.5610296", "0.5566985", "0.55653435", "0.555708", "0.55563694", "0.55445856", "0.55437887", "0.55257803", "0.5525427", "0.55251986", "0.5515936", "0.54980385", "0.54970956", "0.5488384", "0.5485369", "0.54824483", "0.5479963", "0.54547554", "0.5424743", "0.5411452", "0.54110414", "0.5409485", "0.5408245", "0.540798", "0.540718", "0.5396066", "0.53901136", "0.5387216", "0.538704", "0.5383802", "0.5383219", "0.5370502", "0.53690076", "0.53664154", "0.5361158", "0.53607005", "0.5358047", "0.5357155", "0.5353424", "0.5352064", "0.5347094", "0.5345099", "0.53439003", "0.5333016", "0.53256226", "0.5320263", "0.53176695", "0.5316113", "0.53017545", "0.5300494", "0.52994645", "0.5283832", "0.528143", "0.5280652", "0.5277935", "0.5273218", "0.5268454", "0.5263166", "0.52595776", "0.5256765", "0.52473086", "0.5244014" ]
0.7274818
0
Find a transition by its name.
public static Instance<Transition> findTransitionByName(String name, List<Instance<Transition>> allTransitions) { for (Instance<Transition> t : allTransitions) { if (t.toString().equals(name)) { return t; } } throw new java.lang.Error("No transition with this name could be found."); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static Transition searchByName(String name, gov.nasa.arc.l2tools.DataObject object) {\n\treturn (Transition)object.searchByName(Transition.class,name);\n}", "private Transition findTransitionByNameAndEvent(PetriNet sourcePN,\n\t\t\tString name, String event) {\n\t\tTransition noTransition = null;\n\t\t// get the petrinet of the input simulation model\n\t\tIterator<Transition> transitions = sourcePN.getTransitions().iterator();\n\t\twhile (transitions.hasNext()) {\n\t\t\tTransition transition = transitions.next();\n\t\t\tLogEvent le = transition.getLogEvent();\n\n\t\t\t// ignore invisible tasks\n\t\t\tif (le != null) {\n\t\t\t\tString leName = le.getModelElementName();\n\t\t\t\tString leType = le.getEventType();\n\t\t\t\t// return the first matching transition found in the model\n\t\t\t\tif (leName.equals(name) && leType.equals(event)) {\n\t\t\t\t\treturn transition;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn noTransition;\n\t}", "public Story findByName(String name) {\n EntityManager entityManager = getEntityManager();\n\n CriteriaBuilder criteriaBuilder = entityManager.getCriteriaBuilder();\n CriteriaQuery<Story> criteria = criteriaBuilder.createQuery(Story.class);\n Root<Story> root = criteria.from(Story.class);\n\n criteria.select(root);\n criteria.where(criteriaBuilder.equal(root.get(Story_.name), name));\n \n return getSingleResult(entityManager.createQuery(criteria));\n }", "public State findStateByName(String stateName) throws Exception {\n for (State state : getStates()) {\n if (state.getStateName().equals(stateName))\n return state;\n }\n return null;\n }", "private static TransitionType getTransitionType(String s)\n\t{\n\t\tfor (int i=0; i<transitionTypes.size(); i++)\n\t\t{\n\t\t\tif (transitionTypes.get(i).name.equals(s)) return transitionTypes.get(i);\n\t\t}\n\n\t\treturn null;\n\t}", "public static Transition search(String key, String value, gov.nasa.arc.l2tools.DataObject object) {\n\treturn (Transition)object.search(Transition.class,key,value);\n}", "@Override\n public String findState(String name) {\n int hash = getHash(name); // Calculate the hash for the input value \n String message;\n int pos = 1;\n Node temp = hashTable[hash]; // Go to the first node in the appropriate linked list\n\n // Traverse the linked list until the value is found or the end of the list is reached\n while (temp != null && name.compareTo(temp.getState().getName()) != 0) {\n temp = temp.getNext();\n pos++;\n }\n if (temp == null) { // Was the end of the list reached\n message = String.format(\"%s was not found\", name);\n } else {\n message = String.format(\"%s is located at Hash: %d Position: %d\", name, hash, pos);\n }\n return message;\n }", "private NFAState checkIfExists(String name) {\n\t\tNFAState ret = null;\n\t\tfor(NFAState s : states){\n\t\t\tif(s.getName().equals(name)){\n\t\t\t\tret = s;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\treturn ret;\n\t}", "private NFAState checkIfExists(String name) {\r\n\t\tNFAState ret = null;\r\n\t\tfor (NFAState s : states) {\r\n\t\t\tif (s.getName().equals(name)) {\r\n\t\t\t\tret = s;\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn ret;\r\n\t}", "private Node getNode(String name) {\n for(Iterator<Node> i = nodes.iterator(); i.hasNext();) {\n Node n = i.next();\n if(n.getName().equalsIgnoreCase(name)){\n return n;\n };\n }\n return null;\n }", "Optional<Timeline> findByName(String name);", "public static LinkedList<Actor> nameSearch(String name) {\n //sets name to lower case\n String hname = name.toLowerCase();\n //hashes the lower cased name\n int hash = Math.abs(hname.hashCode()) % ActorList.nameHashlist.length;\n //finds the location of the linked list\n LinkedList<Actor> location = ActorList.nameHashlist[hash];\n //sets the head to the head of the linked list\n LinkedList.DataLink head = location.header;\n\n\n while (head.nextDataLink != null) {\n //runs until next data link is null and gets each Actor\n Actor actor = (Actor) head.nextDataLink.data;\n //checks the name of the actor to inputted name\n if (actor.getName().toLowerCase().equals(hname)) {\n //if it's the same it returns the actor\n return location;\n //or moves to next link\n } else {\n head = head.nextDataLink;\n }\n }\n //returns null if the list does not match input\n return null;\n\n\n }", "private SymObject find(String name) {\n SymObject object = table.find(name);\n if (object == SymbolTable.OBJECT_NONE) {\n error(name + \" can't be resolved to a name\");\n }\n\n return object;\n }", "private Node findNode(Node node, String name) {\n Node temp = node;\n\n if (temp.getNext() != null && name.compareTo(temp.getNext().getState().getName()) > 0) {\n temp = findNode(temp.getNext(), name);\n }\n return temp;\n }", "@Override\n public Named find(String name) throws SemanticException {\n try {\n return head.find(name);\n }\n catch (NoClassException e) {\n return tail.find(name);\n }\n }", "public T get(String name) {\n for (int i = maps.size() - 1; i >= 0; i--) {\n HashMap<String, T> scope = maps.get(i);\n T t = scope.get(name);\n if (t != null) return t; // Found it!\n }\n return null; // Not found\n }", "Object find(String name);", "public static Direction findByName(String name) {\n Direction result = null;\n for (Direction direction : values()) {\n if (direction.name().equalsIgnoreCase(name)) {\n result = direction;\n break;\n }\n }\n return result;\n }", "public Handle search(String name) {\n int homePos = hash(table, name);\n int pos;\n\n // QUADRATIC PROBE\n for (int i = 0; i < table.length; i++) {\n // possibly iterate over entire table, but will\n // likely stop before then\n pos = (homePos + i * i) % table.length;\n if (table[pos] == null) {\n break;\n }\n else if (table[pos] != GRAVESTONE\n && table[pos].getStringAt().equals(name)) {\n return table[pos];\n }\n } // end for\n\n return null;\n }", "public States transition(Alphabet sym) {\n return transitions.get(new Pair<>(currentState, sym));\n }", "public Scene getScene(String name)\r\n\t{\r\n\t\t// Find the scene with the given name.\r\n\t\tfor (Scene scene : _Scenes)\r\n\t\t{\r\n\t\t\tif (scene.getName().equals(name)) { return scene; }\r\n\t\t}\r\n\r\n\t\t// No scene with that name was found, return null.\r\n\t\treturn null;\r\n\t}", "public static Statistic get(String name) {\n return lookup.get(name.toLowerCase());\n }", "public static TextPosition findByName(String name) {\n\t\tfor (TextPosition titlePosition : TextPosition.values()) {\n\t\t\tif (titlePosition.getName().equals(name)) {\n\t\t\t\treturn titlePosition;\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "public VisualState getVisualState(String name) {\r\n\t\tVisualState visualState = null;\r\n\t\tfor (int i=0; i<visualStates.size(); i++) {\r\n\t\t\tif (visualStates.get(i).getStateName().equals(name)) {\r\n\t\t\t\tvisualState = visualStates.get(i);\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn visualState;\r\n\t}", "@Transient\n\tpublic WFSProgress getProgressByActionName(String name){\n\t\tWFSProgress result = null;\n\t\tif(!this.getProgresses().isEmpty()){\n\t\t\tfor(WFSProgress ds : this.getProgresses()){\n\t\t\t\tif(ds.getSequence() == null)continue;\n\t\t\t\tif(ds.getSequence().getWfAction().getName().equals(name)){\n\t\t\t\t\tresult = ds;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn result;\n\t}", "public Movie findMovie(String name){\n\n Movie find = null ;\n\n for (Movie movie :movies) {\n\n if(movie.getTitle().equals(name)){\n\n find = movie;\n\n }\n\n }\n\n return find;\n\n }", "@Override\n public Topic findTopicByName(String name) {\n Topic topic = topicRepository.findTopicByName(name.toUpperCase());\n if(topic == null) {\n throw new TopicNotFoundException(\"Cannot find topic with NAME '\" + name.toUpperCase() + \"'. This topic does not exist\");\n }\n return topic;\n }", "public GraphNode<?> get(String name) {\n\t\tfor(GraphNode<?> node : nodes) {\n\t\t\tif(node.data.equals(name))\n\t\t\t\treturn node;\n\t\t}\n\t\treturn null;\n\t}", "public static During getByName(String name)\n {\n for (int i = 0; i < VALUES_ARRAY.length; ++i)\n {\n During result = VALUES_ARRAY[i];\n if (result.getName().equals(name))\n {\n return result;\n }\n }\n return null;\n }", "static public Person searchPerson(String name) {\n return personMap.get(name);\n }", "@Override\r\n\tpublic LookMast findByName(String lookmastName) {\n\t\treturn lookMastRepository.findByName(lookmastName);\r\n\t}", "public Person find(String name) {\n\t\tfor (Person person : listOfPeople) {\n\t\t\tif(person.getName().contains(name)) {\n\t\t\t\treturn person;\n\t\t\t}\n\t\t}\n\t\treturn null; // only reached if person with name not found by search.\n\t}", "public TeleportDestination get(String name) {\n\t\tfor (TeleportDestination warp : destinations) {\n\t\t\tif (warp.getName().equalsIgnoreCase(name)) {\n\t\t\t\treturn warp;\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "Transition createTransition(String literal);", "protected Move getPokemonMoveByName(String moveName) {\n Optional<Move> move = moveDao.getMoveByName(moveName);\n if (!move.isPresent()) {\n throw new MoveNotFoundException(moveName);\n }\n return move.get();\n }", "Tag findByName(String name);", "public dNode FindByName(String depName) {\n\t\tcurr = head;\n\t\twhile (curr != null) {\n\t\t\tif (curr.data.name.equals(depName)) { // important\n\t\t\t\treturn curr;\n\t\t\t}\n\t\t\tcurr = curr.next;\n\t\t}\n\t\treturn null;\n\t}", "public StudentDto findByName(String name) \n\t{\n\n\t\tSession session = factory.openSession();\n\t\tQuery<StudentDto> query = session.createQuery(\"from StudentDto where name = :n\");\n\t\tquery.setParameter(\"n\", name);\n\t\tStudentDto studentDto = query.uniqueResult();\n\t\tsession.close();\n\n\t\treturn studentDto;\n\t}", "public Team findTeamFromName(String name) {\r\n Iterator<Team> itr = this.getTeamTreeFromMatchTree().iterator();\r\n Team team;\r\n while (itr.hasNext()){\r\n team = itr.next();\r\n if (team.getName().equals(name)){\r\n return team;\r\n }\r\n }\r\n return null;\r\n }", "public Exercise getExercise(Name name) throws ExerciseNotFoundException {\n for (Exercise e : this.exercises) {\n if (e.getName().equals(name)) {\n return e;\n }\n }\n throw new ExerciseNotFoundException();\n }", "public static ActivityNode getActivityNode(Activity activity, String name) {\n\t\tfor (ActivityNode actNode : activity.getNodes()) {\n\t\t\tString tempName = \"\";\n\t\t\tif (actNode instanceof Action) {\n\t\t\t\ttempName = getActionName((Action) actNode);\n\t\t\t} else {\n\t\t\t\ttempName = actNode.getName();\n\t\t\t}\n\t\t\tif (tempName.equals(name))\n\t\t\t\treturn actNode;\n\t\t}\n\t\treturn null;\n\t}", "public State<S, T> getNextState(T transition) {\n\t\tState<S, T> nextState = null;\n\t\tif (transitions.containsKey(transition)) {\n\t\t\tnextState = transitions.get(transition);\n\t\t}\n\t\treturn nextState;\n\n\t}", "public State getSuccessor(State s, char a) {\n for (Transition t : transitions) {\n if (t.getStart().equals(s) && t.getLabel() == a) {\n return t.getEnd();\n }\n }\n return null;\n }", "private Node search(Node traverse, String name)\r\n\t{\t\r\n\t\t// Haven't reached a dead-end yet\r\n\t\tif(traverse != null)\r\n\t\t{\r\n\t\t\t// Check to see if the current Node matches the String\r\n\t\t\tif(name.equalsIgnoreCase(traverse.getName()))\r\n\t\t\t{\r\n\t\t\t\t// return the location of the node\r\n\t\t\t\treturn traverse;\r\n\t\t\t}\r\n\t\t\t// The name is lexicographically less than the current Node's name\r\n\t\t\telse if(name.compareToIgnoreCase(traverse.getName()) < 0)\r\n\t\t\t{\r\n\t\t\t\t// Keep searching through the left subtree\r\n\t\t\t\treturn search(traverse.getLeftChild(), name); \r\n\t\t\t}\r\n\t\t\t// The name is lexicographically greater than the current Node's name\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\t// Keep searching through the right subtree\r\n\t\t\t\treturn search(traverse.getRightChild(), name);\r\n\t\t\t}\r\n\t\t}\t\r\n\t\t// Node not found in the Binary Tree\r\n\t\treturn null;\r\n\t}", "public Node findTable(String name) {\n\tNodeList tree = total.getDocumentElement().getChildNodes();\n\tfor (int i = 0; i < tree.getLength(); i++) {\n Node n = tree.item(i);\n if (n.getNodeName().equals(\"table\") &&\n n.getAttributes().getNamedItem(\"name\").getNodeValue().equals(name))\n return n;\n }\n throw new RuntimeException(\"Can't find table \" + name);\n }", "Season findByName(String name);", "public Element findByName(String name) {\n for (Element element : this){\n if (element.getName().equals(name)) return element;\n }\n return null;\n }", "public SaveGameNode getFirstChild(String name) {\r\n SaveGameNode node;\r\n node = this.children.stream().filter(child -> child.equals(name)).findFirst().get();\r\n return node;\r\n }", "public static TypeDictionaryDicoActionQualificatifActivite getByName(String name) {\n\t\tfor (int i = 0; i < VALUES_ARRAY.length; ++i) {\n\t\t\tTypeDictionaryDicoActionQualificatifActivite result = VALUES_ARRAY[i];\n\t\t\tif (result.getName().equals(name)) {\n\t\t\t\treturn result;\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "Property findProperty(String propertyName);", "public static Icon lookup(String name) \r\n\t{\r\n\t\tEntry\t\ttab[] = m_table;\r\n\t\tEntry\t\te;\r\n\t\tint\t\t\tindex;\r\n\t\r\n\t\tif (tab != null) {\r\n\t\t\tindex = (name.hashCode() & 0x7FFFFFFF) % tab.length;\r\n\t\r\n\t\t\tfor (e = tab[index] ; e != null ; e = e.m_next) {\r\n\t\t\t\tif (name.compareTo(e.m_name) == 0) {\r\n\t\t\t\t\treturn(e.m_value);\r\n\t\t}\t}\t}\r\n\t\treturn null;\r\n\t}", "public QbTableNode findTableNodeByName(String name) {\n\t\tfor (AbstractNode tableNode : tableNodes) {\n\t\t\tif (tableNode.getName().equals(name)) {\n\t\t\t\treturn (QbTableNode) tableNode;\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "public Node getScreen(String name) {\r\n return screens.get(name);\r\n }", "Heaver findByName(String name);", "private static Person findPersonByName(EntityManager em, String name) {\n\t\tQuery query = em.createQuery(\"select p from Person p where name = :name\", Person.class);\n\t\tquery.setParameter(\"name\", name);\n\t\treturn (Person) query.getSingleResult();\n\t}", "@Override\n\tpublic Symbol resolve(String name) {\n\t\tSymbol s = symbols.get(name);\n\t\tif (s != null)\n\t\t\treturn s;\n\t\t\n\t\t// otherwise look in the enclosing scope, if there is one\n\t\tScope sc = enclosingScope;\n\t\twhile (sc != null) {\n\t\t\tSymbol sym = enclosingScope.resolve(name);\n\t\t\tif (sym != null) {\n\t\t\t\treturn sym;\n\t\t\t}\n\t\t\tsc = sc.getEnclosingScope();\n\t\t}\n\t\t// otherwise it doesn't exist\n\t\treturn null;\n\t}", "public static DistributionState getByName(String name) {\r\n for(int i = 0; i < VALUES_ARRAY.length; ++i) {\r\n DistributionState result = VALUES_ARRAY[i];\r\n if(result.getName().equals(name)) {\r\n return result;\r\n }\r\n }\r\n return null;\r\n }", "public <T extends Actor> T findActor(String name) {\n com.guidebee.game.engine.scene.Actor actor = internalGroup.findActor(name);\n if (actor != null) {\n return (T) actor.getUserObject();\n }\n return null;\n\n }", "public static Profile lookup(String name) {\n for (Profile p: values()) {\n if (name.equals(p.name))\n return p;\n }\n return null;\n }", "public abstract T findByName(String name) ;", "public int FindByName(String _name)\n\t{\n\t\tint res = -1;\n\n\t\tfor (int i = 0; i < this.materials.size(); i++)\n\t\t{\n\t\t\tif (this.materials.get(i).name.equalsIgnoreCase(_name))\n\t\t\t{\n\t\t\t\tres = i;\n\t\t\t}\n\t\t}\n\n\t\treturn res;\n\t}", "public T lookup( String name )\r\n {\r\n T result = null;\r\n \r\n for( HashMap<String,T> table : tables )\r\n {\r\n result = table.get( name );\r\n if( result!=null ) break;\r\n }\r\n \r\n return result;\r\n }", "final SyntaxTreeNode lookupName(QName name) {\n // Is it a local var or param ?\n final SyntaxTreeNode result = _parser.lookupVariable(name);\n\tif (result != null)\n return(result);\n else\n\t return(_symbolTable.lookupName(name));\n }", "@Override\n\tpublic String findId(String name) throws Exception {\n\t\treturn null;\n\t}", "public MenuItem getMenuItemByName(String name){\n for (MenuItem item: menuItems){\n if (item.getFoodName().equals(name)){\n return item;\n }\n }\n return null;\n }", "private Command getCommandByName(String name) {\n for (Command command : commands) {\n if (command.getName().equals(name)) {\n return command;\n }\n }\n return null;\n }", "E getByName(String name);", "public NameSurferEntry findEntry(String name) {\n\t\tchar ch = name.charAt(0);\n\t\tif(Character.isLowerCase(ch) == true) {\n\t\t\tch = Character.toUpperCase(ch);\n\t\t}\n\t\tString otherLetters = name.substring(1);\n\t\totherLetters = otherLetters.toLowerCase();\n\t\tname = ch + otherLetters;\n\t\tif (nameFromDatabase.containsKey(name)) {\n\t\t\treturn nameFromDatabase.get(name);\n\t\t}\t\t\t\n\t\telse{\n\t\t\treturn null;\n\t\t}\n\t}", "public static Symbol getSymbolOfName(String name, Traversable tr) {\n Symbol ret = null;\n Traversable t = tr;\n while (ret == null && t != null) {\n if (t instanceof SymbolTable) {\n for (Symbol symbol : getSymbols((SymbolTable)t)) {\n if (name.equals(symbol.getSymbolName())) {\n ret = symbol;\n break;\n }\n }\n }\n t = t.getParent();\n }\n return ret;\n }", "public DmcNamedObjectIF findNamedObject(String name){\n\t\tthrow(new IllegalStateException(\"The SchemaManager is designed to work with ambiguous naming. Use DmcObject.resolveReferences(DmcNameResolverWithClashSupportIF, DmcNameClashResolverIF)\\n\\n\" + DebugInfo.getCurrentStack()));\n }", "public Value lookup (String name){\n Closure exist = find_var(name);\n return exist.getValues().get(name);\n }", "public NodeP findPatient (String name){\r\n NodeP current = front;\r\n \r\n while (!current.getPatient().getName().trim().equalsIgnoreCase(name)){\r\n current = current.getNext();\r\n }\r\n return current;\r\n }", "Team findByName(String name);", "public int search(String name){\n\t\tfor(Map.Entry<String, Integer> e : map.entrySet()){\n\t\t\tif(e.getKey().equals(name)){\n\t\t\t\treturn e.getValue();\n\t\t\t}\n\t\t}\n\t\tthrow new NullPointerException();\n\t\t/*\n\t\twhile(pointer < locations.length){\n\t\t\tif(locations[pointer].getName() == name){\n\t\t\t\tmap.put(locations[pointer].getName(), locations[pointer].getID());\n\t\t\t\tpointer++;\n\t\t\t\treturn locations[pointer - 1].getID();\n\t\t\t} else {\n\t\t\t\tmap.put(locations[pointer].getName(), locations[pointer].getID());\n\t\t\t\tpointer++;\n\t\t\t}\n\t\t}\n\t\tthrow new NullPointerException();\n\t\t*/\n\t}", "private DTOCity cityFromName(String name) {\n\t\tfor(DTOCity c : this.cities) {\n\t\t\tif(c.getName().equals(name))\n\t\t\t\treturn c;\n\t\t}\n\t\tthrow new NoSuchElementException(\"Error in creating the DTO graph!\");\n\t}", "public synchronized RegionState\n getRegionTransitionState(final String regionName) {\n return regionsInTransition.get(regionName);\n }", "@Test\n public void stateNameExtraction() {\n final String EVENT_NAME = \"TestEvent\";\n StateTransitionEvent event = new StateTransitionEventImpl( EVENT_NAME );\n\n assertThat( event.getEventName(), equalTo( EVENT_NAME ) );\n LOG.debug( \"Successfully created stateTransitionEvent=[\" + event + \"]\" );\n }", "public Match findMatchFromTeamName(String name1, String name2){\r\n Iterator<Match> itr = this.resultsTree.iterator();\r\n Match m;\r\n while (itr.hasNext()) {\r\n m = itr.next();\r\n if (m.getTeam1().getName().equals(name1) \r\n && m.getTeam2().getName().equals(name2)){\r\n return m;\r\n }\r\n }\r\n return null;\r\n }", "public final Service getService(final String name) {\r\n Service x, y;\r\n\r\n for (x = this.m_services[name.hashCode()\r\n & (this.m_services.length - 1)]; x != null; x = x.m_next) {\r\n for (y = x; y != null; y = y.m_equal) {\r\n if (name.equals(y.m_name))\r\n return y;\r\n }\r\n }\r\n\r\n return null;\r\n }", "public LearningResultHasActivity[] findWhereNamePhaseEquals(String namePhase) throws LearningResultHasActivityDaoException;", "public abstract ServiceLocator find(String name);", "public static ConfigProperty find(String name) {\n for (ConfigProperty prop : ConfigProperty.values()) {\n if (prop.getName().equals(name)) {\n return prop;\n }\n }\n return null;\n }", "public Item resolveByName(String name, ItemSelector selector)\n {\n List<Item> items=_names.get(name);\n return resolveAmbiguity(name,items,selector);\n }", "private String getActivityName(Transition transition) {\n\t\tString result = \"\";\n\t\t// get associated log event type\n\t\tLogEvent le = transition.getLogEvent();\n\n\t\t// check for invisible tasks\n\t\tif (le != null) {\n\t\t\tresult = le.getModelElementName();\n\t\t} else {\n\t\t\tresult = transition.getIdentifier();\n\t\t}\n\t\treturn result;\n\t}", "private Track searchTrack(String name) {\n for(Track e: listTracks) {\n if(e.sDataPath.equals(name)) return e;\n }\n return null;\n }", "public Action getAction(String name) { return actions.get(name); }", "public static Animal getByName(String name) {\n for(var animal : animals){\n if(animal.getName().equalsIgnoreCase(name))\n return animal;\n }\n return null;\n\n //Diffrent way of finding the animal\n /*return animals.stream()\n .filter(a -> a.getName().equalsIgnoreCase(name))\n .findAny()\n .orElse(null);*/\n }", "public static Node findByName (Node bst, String name){\n\t\tif(bst != null){\n\t\t\tif(bst.getName().equals(name)){\n\t\t\t\tSystem.out.println(\"The node \" + bst + \" is found!\");\n\t\t\t\treturn bst;\t\t\t\t\t\t\t\n\t\t\t}else if(bst.getName().compareTo(name)>0){\n\t\t\t\tSystem.out.println(bst.getLeft().getName() + \" <- \" + bst.getName());\n\t\t\t\treturn findByName(bst.getLeft(), name);\n\t\t\t}else{ \n\t\t\t\tSystem.out.println(bst.getName() + \" -> \" + bst.getRight().getName());\n\t\t\t\treturn findByName(bst.getRight(), name);\n\t\t\t\n\t\t\t}\n\t\t}else\n\t\treturn null;\n\t}", "private String getName(String name) {\n\t\tint n;\n\t\tif (name.startsWith(\"place_\")) {\n\t\t\tn = Integer.parseInt(name.substring(6));\n\t\t} else if (name.startsWith(\"t_\")) {\n\t\t\tn = Integer.parseInt(name.substring(2));\n\t\t} else {\n\t\t\treturn name;\n\t\t}\n\t\tif (n < net.getPlaces().size()) {\n\t\t\tPlace p = (Place) net.getPlaces().get(n);\n\t\t\treturn \"Place \" + p.getIdentifier();\n\t\t}\n\t\tn -= net.getPlaces().size();\n\t\tn--;\n\t\tif (n < net.getTransitions().size()) {\n\t\t\tTransition t = (Transition) net.getTransitions().get(n);\n\t\t\treturn \"Transition \" + t.getIdentifier();\n\t\t}\n\t\treturn name;\n\t}", "public Player getPlayerinTable(String name) {\r\n for (Player player : this.players) {\r\n if (player.getName().equals(name)) {\r\n return player;\r\n }\r\n }\r\n return null;\r\n }", "@Override\n public Role findByName(String name) {\n Query query = getCurrentSession().createQuery(\"from Role r where r.name = :name\");\n query.setParameter(\"name\", name);\n\n return (Role) query.getResultList().get(0); }", "@Override\n\tpublic Player doSreach(String name) throws Exception {\n\t\tif(name==null){\n\t\t\treturn null;\n\t\t}\n\t\tPlayer player=null;\n\t\ttry {\n\t\t\tplayer=dao.doSreach(name);\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\treturn player;\n\t}", "public static Declaration findSymbol(SymbolTable table, IDExpression name) {\n Declaration ret = null;\n SymbolTable symtab = table;\n while (ret == null && symtab != null) {\n ret = getTable(symtab).get(name);\n symtab = IRTools.getAncestorOfType(symtab, SymbolTable.class);\n }\n return ret;\n }", "public Tab getTab(String name)\n\t{\n\t\tTab tab = null;\n\t\tint i = 0;\n\t\t\n\t\t//find the tab\n\t\twhile(tab == null && tabs.size() < i)\n\t\t{\n\t\t\tif ( tabs.get(i).getName().equals(name) )\n\t\t\t\ttab = tabs.get(i);\n\t\t}\n\t\t\n\t\treturn tab;\n\t}", "Road findByName(String toFind, ArrayList<Road> list)\n\t{\n\t\tRoad tmp;\n\t\tIterator<Road> it = list.iterator();\n\t\twhile(it.hasNext())\n\t\t{\n\t\t\ttmp = it.next();\n\t\t\tif(tmp.getName().equals(toFind))\n\t\t\t{\n\t\t\t\treturn tmp;\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "public T caseTransition(Transition object) {\n\t\treturn null;\n\t}", "String convertTransition(Transition instanceValue);", "public static TypeDictionaryDicoEffetTactiqueRecherche getByName(String name) {\n\t\tfor (int i = 0; i < VALUES_ARRAY.length; ++i) {\n\t\t\tTypeDictionaryDicoEffetTactiqueRecherche result = VALUES_ARRAY[i];\n\t\t\tif (result.getName().equals(name)) {\n\t\t\t\treturn result;\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "private FunctInfo findFunction(String name) {\n FunctInfo li = (FunctInfo)localScope.getLambda(name);\n if (li != null) {\n return li;\n }\n return functionDefinitions.get(name);\n }", "private Composite seekLocalName(Composite composite, String name) {\n Optional<Composite> find = composite.find(childComposite -> {\n if (childComposite == null) {\n return false;\n }\n\n return childComposite.getName() != null && childComposite.getName().equals(name);\n }, FindMode.childrenOnly).stream().findFirst();\n\n if (find.isPresent()) {\n return find.get();\n } else {\n return null;\n }\n }" ]
[ "0.7668824", "0.7316231", "0.62535155", "0.6228848", "0.5978314", "0.593294", "0.59175146", "0.584442", "0.5815203", "0.57967156", "0.5764938", "0.5756016", "0.5737839", "0.5687741", "0.56577855", "0.55871266", "0.55689985", "0.5551039", "0.551732", "0.54705566", "0.54630727", "0.5409197", "0.53529876", "0.53450257", "0.5322215", "0.53131646", "0.5306358", "0.52891845", "0.5249322", "0.5234937", "0.52208334", "0.5218408", "0.52104044", "0.520671", "0.51959217", "0.51891357", "0.5170885", "0.51561457", "0.5132775", "0.51049125", "0.5094343", "0.5061806", "0.5053273", "0.5052225", "0.50481284", "0.50364697", "0.5035782", "0.49976516", "0.4995385", "0.49866363", "0.49775285", "0.49732053", "0.4969918", "0.49699032", "0.4961728", "0.49588457", "0.4958589", "0.495492", "0.49434704", "0.49393144", "0.49366271", "0.49348122", "0.49279174", "0.492522", "0.49224958", "0.4908701", "0.49046043", "0.49022126", "0.48914617", "0.4874678", "0.4873334", "0.48706362", "0.48610225", "0.48575634", "0.4855466", "0.48522645", "0.485079", "0.4848355", "0.4844001", "0.4829557", "0.48254263", "0.48227564", "0.48203167", "0.48179364", "0.48151702", "0.48132074", "0.48128352", "0.48075372", "0.48057228", "0.4802144", "0.47926834", "0.47907996", "0.47875494", "0.47815588", "0.4763592", "0.47615924", "0.4760532", "0.47554114", "0.47533783", "0.47515103" ]
0.7433518
1
TODO Autogenerated method stub
public void display() { System.out.println("This program calculates simpleinterest"); calculateinterest(); }
{ "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
the collection can be modified from code outside of the getter and setter//
public void setColumns(List<String> columns){ this.columns=columns; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected abstract Collection createCollection();", "public void setCollection(ArrayList<Fonds> collection){\r\n this.collection = collection;\r\n }", "protected List getList() {\n/* 88 */ return (List)getCollection();\n/* */ }", "protected Collection<V> newCollection() {\r\n \treturn new ArrayList<V>();\r\n }", "private List<Object> serializeActualCollectionMembers(AbstractPersistentCollection collection)\r\n\t{\r\n\t\tList<Object> result = new ArrayList<Object>();\r\n\t\tif (!collection.wasInitialized())\r\n\t\t{\r\n\t\t\tcollection.forceInitialization();\r\n\t\t}\r\n\t\tIterator<Object> itr = collection.entries(null);\r\n\t\twhile (itr.hasNext())\r\n\t\t{\r\n\t\t\tObject next = itr.next();\r\n\t\t\tObject newObj = serialize(next);\r\n\t\t\tresult.add(newObj);\r\n\t\t}\r\n\t\treturn result;\r\n\t}", "Collect getColl();", "public Collection getCollection() {\n return mCollection;\n }", "protected abstract Set method_1559();", "Collections() { return; }", "public <E> Collection<E> mo8156u(Collection<E> collection) {\n return Collections.unmodifiableList((List) collection);\n }", "public void setTodo(java.util.Collection aTodo);", "public void setItems(){\n }", "public Collection() {\n this.collection = new ArrayList<>();\n }", "protected Collection method_1554() {\n return this.method_1559();\n }", "public ArrayList<Fonds> getCollection(){\r\n return collection;\r\n }", "private void updateCollection(Resource subject, Property property,\r\n\t\t\tCollection<?> c) {\r\n\t\tif (supportsDelete(c))\r\n\t\t\tsubject.removeAll(property);\r\n\t\tAddSaver saver = new AddSaver(subject, property);\r\n\t\tfor (Object o : c)\r\n\t\t\tif (isPrimitive(o))\r\n\t\t\t\tsaver.write(o); // leaf\r\n\t\t\telse\r\n\t\t\t\tsubject.addProperty(property, _write(o, true)); // recursive\r\n\t}", "@SuppressWarnings(\"unchecked\")\n\t@Test\n\tpublic void testGetValueImmutability() throws java.text.ParseException {\n\n\t\tPropertyCollection prop = this.createCollectionProperty(\n\t\t\t\t\"<property name=\\\"test\\\"\" + \" targettype=\\\"org.rapidbeans.test.TestBean\\\"\" + \" />\", \",\", \"\\\\\");\n\n\t\t// originally prop's value is null (undefined)\n\t\tAssert.assertNull(prop.getValue());\n\n\t\tTestBean bean1 = new TestBean(\"\\\"Bluemel\\\" \\\"Martin\\\" \\\"19641014\\\"\");\n\t\tTestBean bean2 = new TestBean(\"\\\"Bluemel\\\" \\\"Johannes\\\" \\\"19641014\\\"\");\n\t\tCollection<Link> col = new ArrayList<Link>();\n\t\tcol.add(bean1);\n\t\tcol.add(bean2);\n\t\tprop.setValue(col);\n\n\t\t// then I try to remove an object of the collection via the iterator\n\t\t// returned by the getter\n\t\tCollection<Link> col1 = (Collection<Link>) prop.getValue();\n\t\ttry {\n\t\t\tcol1.clear();\n\t\t} catch (ImmutableCollectionException e) {\n\t\t\tAssert.assertTrue(true);\n\t\t}\n\n\t\t// of course our prop stays the same\n\t\tAssert.assertEquals(2, ((Collection<Link>) prop.getValue()).size());\n\t}", "void setLibroCollection1(Collection<Libro> libroCollection1);", "private void clearCollection() {\n \n collection_ = getDefaultInstance().getCollection();\n }", "@Override // java.util.Collection\n public final boolean addAll(Collection<? extends C0472aH> collection) {\n throw new UnsupportedOperationException(\"Operation is not supported for read-only collection\");\n }", "public static void main(String[] args) {\n Collection collection= new ArrayList();\n collection.add(1500);\n collection.add(true);\n collection.add(12.32);\n collection.add(\"s\");\n collection.add('f');\n //System.out.println(collection);\n\n //Collection add(item) bunda item qo'sha olsa true aksi bo'lsa false qataradi\n System.out.println(collection.add(2200)); // bunda console da true bo'ladi 2200 qo'sha olgani uchun\n\n /* Collection ni addAll metothdi bu bizga collection methodiga narsalarni collection1 b-n\n ketma ketlikda qo'shish imkonini beradi*/\n\n Collection collection1=new ArrayList();\n collection1.addAll(collection);\n collection1.add(\"otherNumber1\");\n collection1.add(\"otherNumber2\");\n collection1.add(\"otherNumber3\");\n System.out.println(collection1);\n\n // boolean remove(object item) bu ko'rsatilgan obyektni collectionda o'chiradi listlarda index bilan bajariladi\n collection1.remove(12.32);\n System.out.println(collection1);\n\n // boolean removeAll(Collection<?> col)\n collection1.removeAll(collection);\n System.out.println(collection1);\n\n\n\n\n\n }", "@Override\n\tpublic List<Object> getCollection() {\n\t\treturn null;\n\t}", "public ArrayList<Collectable> getItems(){\n return items;\n }", "@Test\n public void testSet() {\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>();\n Collection c = Arrays.asList(1, 1, 7, 1, 1, 1, 1);\n instance.addAll(c);\n Integer expResult = 7;\n Integer result = instance.set(2, 9);\n assertEquals(expResult, result);\n\n }", "private void disableCollection(IJavaObject value) {\n if (fPermStorage == null) {\n fPermStorage = new ArrayList<IJavaObject>(5);\n }\n try {\n value.disableCollection();\n fPermStorage.add(value);\n } catch (CoreException e) {\n JDIDebugPlugin.log(e);\n }\n }", "protected SafeHashMap.ValuesCollection instantiateValuesCollection()\n {\n return new ValuesCollection();\n }", "public void set(R key, Collection<S> value){\n map.remove(key);\n map.put(key, Collections.synchronizedList(Sugar.listFromCollections(value)));\n }", "public Collection getAllowedValues() {\n/* 40 */ return (Collection)this.allowedValues;\n/* */ }", "@Override\n\tpublic String getCollection() {\n\t\treturn null;\n\t}", "private void setCollection(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n collection_ = value;\n }", "public void setCollectionInfo(CollectionInfo collectionInfo) {\n/* 1105 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "public Collection<T> mo29734a() {\n return new ArrayList();\n }", "void setAutoreCollection(Collection<Autore> autoreCollection);", "void setLibroCollection(Collection<Libro> libroCollection);", "@Override\r\n\tpublic List<T> getCollectionData() {\n\t\treturn data == null ? null : data.list;\r\n\t}", "public Collection<T> values(){\n\t\treturn null;\r\n\t\t//TODO\r\n\t}", "protected Collection getNewBucket()\n {\n return new ArrayList();\n }", "public java.lang.String getCollection() {\n return collection_;\n }", "@Override\n public Set<T> getItems() {\n return items;\n }", "private NotesCollection getCollection() {\n\t\t\n\t\tif (collection == null || collection.isRecycled() ) {\n\t\t\tNotesDatabase db = new NotesDatabase(ExtLibUtil.getCurrentSession(), \"\", fakenamesPath);\n\t\t\tcollection = db.openCollectionByName(\"contacts\");\n\t\t}\n\n\t\treturn collection;\n\t}", "public CollectionFacadeSet(java.util.Collection<java.lang.String> collection) {\n this.collection = collection;\n for (String str : collection) {\n if (contains(str) || str == null) {\n continue;\n }\n add(str);\n }\n }", "public RandomizedCollection() {\n map = new HashMap<>();\n arr = new ArrayList<>();\n }", "void setPrestitoCollection(Collection<Prestito> prestitoCollection);", "interface MyCollection{\n\n boolean\tadd(Object o); // Ensures that this collection contains the specified element (optional operation).\n void\tclear(); // Removes all of the elements from this collection (optional operation).\n boolean\tcontains(Object o); // Returns true if this collection contains the specified element.\n boolean\tequals(Object o); // Compares the specified object with this collection for equality.\n boolean\tremove(Object o); // Removes a single instance of the specified element from this collection, if it is present (optional operation).\n boolean\tisEmpty(); // Returns true if this collection contains no elements.\n int\tsize(); // Returns the number of elements in this collection.\n //Object[] toArray(); // Returns an array containing all of the elements in this collection.\n\n/*\n boolean\tcontainsAll(Collection<?> c); Returns true if this collection contains all of the elements in the specified collection.\n int\thashCode(); Returns the hash code value for this collection.\n Iterator<E>\titerator(); Returns an iterator over the elements in this collection.\n boolean\tremoveAll(Collection<?> c); Removes all of this collection's elements that are also contained in the specified collection (optional operation).\n boolean\tretainAll(Collection<?> c); Retains only the elements in this collection that are contained in the specified collection (optional operation).\n <T> T[]\ttoArray(T[] a); Returns an array containing all of the elements in this collection; the runtime type of the returned array is that of the specified array.\n*/\n\n\n\n\n}", "public abstract java.util.Vector setDB2ListItems();", "public interface List extends Collection{\r\n\t/**\r\n\t * Returns the object that is stored in backing \r\n\t * list at position index.\r\n\t * @param index position of the element\r\n\t * @return element\r\n\t */\r\n\tObject get(int index);\r\n\t/**\r\n\t * Inserts (does not overwrite) the given value \r\n\t * at the given position in list.\r\n\t * @param value\r\n\t * @param position\r\n\t */\r\n\tvoid insert(Object value, int position);\r\n\t/**\r\n\t * Searches the collection and returns the index \r\n\t * of the first occurrence of the given value or -1 \r\n\t * if the value is not found.\r\n\t * @param value list element\r\n\t * @return index\r\n\t */\r\n\tint indexOf(Object value);\r\n\t/**\r\n\t * Removes element at specified \r\n\t * index from collection.\r\n\t * @param index specified position\r\n\t */\r\n\tvoid remove(int index);\r\n\r\n}", "@Override\n protected void set(java.util.Collection<org.tair.db.locusdetail.ILocusDetail> list) {\n loci = list;\n // Add the primary keys to the serialized key list if there are any.\n if (loci != null) {\n for (com.poesys.db.dto.IDbDto object : loci) {\n lociKeys.add(object.getPrimaryKey());\n }\n }\n }", "public GameCollection() {\n\t\tcollection = new Vector();\n\t}", "public static void main(String[] args) {\n\t\tArrayList<String> list=new ArrayList();\r\n\t\tlist.add(\"first\");//add the first into list\r\n\t\tlist.add(\"second\");\r\n\t\tIterator itr=list.iterator();\r\n\t\tSystem.out.println(\"List of values\");\r\n\t\twhile(itr.hasNext())//returns true if the iteration\r\n\t\t{\r\n\t\t\tSystem.out.println(itr.next());\r\n\t\t}\r\n\t\tSystem.out.println(\"Update values\");\r\n\t\tlist.set(1, \"35\");\r\n\t\tIterator itr1=list.iterator();\r\n\t\twhile(itr1.hasNext())//returns true if the iteration\r\n\t\t{\r\n\t\t\tSystem.out.println(itr1.next());\r\n\t\t}\r\n\t}", "public interface ReadOnlyCardCollection extends Observable {\n\n /**\n * Returns an unmodifiable view of the flashcards list.\n * This list will not contain any duplicate flashcards.\n */\n ObservableList<Flashcard> getFlashcardList();\n\n}", "Collection getData();", "java.lang.String getCollection();", "@Immutable\npublic interface ImmutableCollection<E> extends Collection<E> {\n \n}", "@Override\n public PermissionCollection newPermissionCollection() {\n\t/* bug 4158302 fix */\n\treturn new Collection();\n }", "@Override\n public void reset() {\n iterator = collection.iterator();\n }", "@Override // java.util.Collection\n public final /* synthetic */ boolean add(C0472aH aHVar) {\n throw new UnsupportedOperationException(\"Operation is not supported for read-only collection\");\n }", "@Override // java.util.List\n public /* synthetic */ String set(int i, String str) {\n throw new UnsupportedOperationException(\"Operation is not supported for read-only collection\");\n }", "public Layer_ElementsCollection()\n\t{\n\t\tthis.elements = new ArrayList<GIS_element>();\n\t}", "public PermissionCollection newPermissionCollection()\n {\n return new WECollection();\n }", "String getCollection();", "@Override\n\tpublic ArrayList<String> setValues() {\n\t\tList<String> str = new ArrayList<String>();\n\t\tstr.add(\"PcMan\");\n\t\tstr.add(\"gcMan\");\n\t\tstr.add(\"ycMan\");\n\t\tstr.add(\"kcMan\");\n\t\tstr.add(\"NoMan\");\n\t\treturn (ArrayList<String>) str;\n\t\t\n\t}", "public Collection<T> getItems() {\r\n return Collections.unmodifiableCollection(items);\r\n }", "public void triCollection(){\r\n Collections.sort(collection);\r\n }", "@SuppressWarnings(\"unchecked\")\n public <T> IndexedCollection<T> collection() {\n return (IndexedCollection<T>) journal\n .retrieve(BarbelQueries.all(id), queryOptions(orderBy(ascending(BarbelQueries.EFFECTIVE_FROM))))\n .stream().map(d -> processingState.expose(context, (Bitemporal) d)).collect(Collectors.toList());\n }", "@Override\n public boolean isMutable() {\n return true;\n }", "public void setCourses(ArrayList value);", "public void method_6436() {\r\n super();\r\n this.field_6225 = new ArrayList();\r\n this.field_6226 = new HashMap();\r\n }", "public void setCamino(ArrayList<Posicion> camino)\n{\n m_camino = camino;\n}", "public Collection()\n {\n // initialisation des variables d'instance\n documents = new ArrayList<>();\n }", "public RandomizedCollection() {\n map=new HashMap();\n li=new ArrayList();\n rand=new Random();\n }", "private void setCollectionBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n collection_ = value.toStringUtf8();\n }", "@Override\n\tpublic void set(K key, List<V> value) {\n\t\t\n\t}", "public void updateAnimalList(){\r\n // if (animals != null && animals.size() > 0)\r\n // {\r\n // \r\n // }\r\n // else\r\n // {\r\n animals.clear();\r\n \r\n for (fit5042.assign.repository.entity.Animal animal : animalManagedBean.getAllAnimals())//for each animal entry in the Entity Class Animal, get all animals\r\n {\r\n animals.add(animal); //add Animal data to the ArrayList<Animal> animals\r\n }\r\n \r\n setAnimal(animals); //set the global ArrayList attribute with the local ArrayList attribute\r\n // }\r\n }", "public void populateList() {\n }", "@Override\n public void collect(T elem) {\n value = elem;\n }", "public InternalWorkingOfHashSet() {\r\n map = new HashMap<>();\r\n }", "public interface Collection<E> {\n\n /**\n * 获取迭代器.\n * @return 迭代器\n */\n Iterator<E> iterator();\n\n /**\n * 获取集合容量.\n * @return The size of collection\n */\n int size();\n\n /**\n * 根据索引获取该位置上的值.\n * @param index 位置索引\n * @return 索引位置的值\n */\n E get(int index);\n\n}", "@Test\n public void testSet_Overflow() {\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>(2, 2);\n Collection c = Arrays.asList(1, 1, 7, 1, 1, 1, 1);\n instance.addAll(c);\n Integer expResult = 7;\n Integer result = instance.set(2, 9);\n assertEquals(expResult, result);\n\n }", "@SuppressWarnings(\"serial\")\n\t@Test\n\tpublic void updateCollection() {\n\t\tdb.close();\n\t\tEmbeddedConfiguration config = Db4oEmbedded.newConfiguration();\n\t\tconfig.common().objectClass(Car.class).cascadeOnUpdate(true);\n\t\tdb = Db4oEmbedded.openFile(config, DB4OFILENAME);\n\t\tObjectSet<Car> results = db.query(new Predicate<Car>() {\n\t\t\tpublic boolean match(Car candidate) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t});\n\n\t\tAssert.assertTrue(results.hasNext());\n\n\t\tCar car = results.next();\n\n\t\tcar.getHistory().remove(0);\n\t\tdb.store(car.getHistory());\n\t\tresults = db.query(new Predicate<Car>() {\n\t\t\tpublic boolean match(Car candidate) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t});\n\n\t\twhile (results.hasNext()) {\n\t\t\tcar = results.next();\n\t\t\tfor (int idx = 0; idx < car.getHistory().size(); idx++) {\n\t\t\t\tSystem.out.println(car.getHistory().get(idx));\n\t\t\t}\n\t\t}\n\n\t}", "public ArraySet(Collection<? extends E> c)\n {\n super(c);\n addsEnabled = false;\n }", "public Collection<Move> getLegalMoves(){\n return legalMoves;\n }", "public Set() {\n\t\tlist = new LinkedList<Object>();\n\t}", "@Test\n public void testSetUsersList() {\n System.out.println(\"setUsersList\");\n Set<User> usersList = new HashSet<>();\n usersList.add(new User(\"test1\", \"[email protected]\"));\n sn10.setUsersList(usersList);\n assertEquals(usersList, sn10.getUsersList());\n }", "protected Set<E> ensureSet()\n {\n Set<E> set = m_set;\n if (set == null)\n {\n set = m_set = new LiteSet<>();\n }\n return set;\n }", "private void checkCollection(SnmpCollection collection) {\n if (collection.getSystems() == null)\n collection.setSystems(new Systems());\n if (collection.getGroups() == null)\n collection.setGroups(new Groups());\n }", "public void supprimerCollection(){\r\n collection.clear();\r\n }", "@Override\n public boolean isMutable()\n {\n return true;\n }", "public static void init(){\n java.util.Collection<String> collection = new ArrayList<>();\n\n // List Implementation\n // use for ordered collection with duplicates\n // Items can be retrieved and inserted at specific positions (like array)\n //\n // ArrayList:\n // Grows automatically, lookup constant time, add/remove slower\n //\n // LinkedList:\n // Implements List and Queue, add/remove/access at start/end constant time\n // arbitrary index linear time, good if used like queue\n //\n // Vector:\n // Old class before ArrayList, same as ArrayList just slower but thread-safe, not really used\n //\n // Stack:\n // Add/remove from top of stack, extends Vector, not really used, instead ArrayDeque is used\n \n // Common List Methods\n // boolean add(E) | void add(int, E) | E get(int) | void remove(int) | E set(int, E)\n // int indexOf(Object) | int lastIndexOf(Object) - both return -1 if not found\n List<String> list = (List<String>) collection;\n\n // Loop through Collections\n // Old way without generic -> needs casting\n Iterator<String> iter = collection.iterator();\n while(iter.hasNext()){\n System.out.println(iter.next());\n }\n\n // Set Implementation\n // Stores in hash table using hashCode(), add/check constant time\n //\n // HashSet:\n // Groups elements inside buckets if same hashCode\n //\n // TreeSet:\n // In sorted tree structure, always in sorted order, add/check O(log n), implements NavigableSet\n // Looping through will print out in natural order\n\n // No new set methods but collection methods is different for sets (add() can return false)\n //\n // NavigableSet Interface:\n // E lower(E) - return greatest element < e, or null if no such element\n // E floor(E) - return greatest element <= e, ...\n // E ceiling(E) - return smallest element >= e, ...\n // E higher(E) - return smallest element > e, ...\n\n // Queue Implementation\n // Elements added/removed in specific order\n //\n // LinkedList:\n // Double-ended queue, implements List and Queue, not as efficient, has indexes\n //\n // ArrayDeque:\n // ‘pure’ double-ended queue, resizable array, more efficient\n\n // Common Queue Methods\n // Examine and Remove always head of queue\n // Insert always at end of queue\n //\n // Throws exception on failure\n // boolean add(E) | E element() | E remove()\n //\n // Returns special value (null) on failure\n // boolean offer(E) | E peek() | E poll();\n\n // Common ArrayDeque Methods\n // void push(E) | E pop() - throws exception when Empty\n\t\t//\t\tpop() and poll() return same values\n\t\t//\t\tpush() + pop/poll() = stack\n\t\t//\t\toffer() + pop/poll() = queue\n //\n // LinkedList like ArrayDeque\n\n // Map Implementation: (not implementing Collection)\n // Identify values by key\n //\n // HashMap:\n // Keys in hash table using hashCode(), add/retrieve constant time\n //\n // LinkedHashMap:\n // same as HashMap only with an order\n //\n // TreeMap:\n // Keys in sorted tree structure, always sorted, add/check O(log n)\n //\n // Hashtable:\n // Like Vector, old and thread-safe, newer version: HashMap\n\n // Common Map Methods, does not have Collection methods\n // void clear() | boolean isEmpty() | int size()\n //\n // V get(Object) return value mapped by key or null if none\n // V put(K, V) add or replace key/value pair, return previous value or null if none\n // V remove(Object) removes and return value mapped by key, null if none\n //\n // boolean containsKey(Object) | boolean containsValue(Object)\n // Set<K> keySet() | Collection<V> values()\n //\n // V merge(K, V, BiFunction<? super V, ? super V, ? extends V>) - BiFunction decides which value saved to key\n // If key does not exists or value == null -> new value will always be used, BiFunction not called\n // If BiFunction return null -> key will be removed from map\n\n // Sorted Type cannot contain null.\n // TreeMap no null keys, TreeSet no null values\n //\n // ArrayDeque no null values. Null values has special meaning\n // Hashtable no null values and keys. Just because. Too old.\n //\n // Else throws NullPointerException\n\n /* Searching and Sorting */\n List<Comparing> cList = new ArrayList<>();\n\n // If no Comparator specified, List type has to implement Comparable\n // else compiler error\n Collections.sort(cList);\n Collections.sort(cList, new Comparator<Comparing>() {\n public int compare(Comparing t1, Comparing t2){ return 0; }\n });\n\n // Same as sorting\n // Warning: unsorted list results in undefined values\n Collections.binarySearch(cList, new Comparing());\n Collections.binarySearch(cList, new Comparing(), new Comparator<Comparing>() {\n public int compare(Comparing t1, Comparing t2){ return 0; }\n });\n\n // Same applies to sorted collections like: TreeSet, TreeMap\n // Comparator can be passed to constructor\n Set<Comparing> tSet = new TreeSet<>(new Comparator<Comparing>() {\n public int compare(Comparing t1, Comparing t2){ return 0; }\n });\n\n // Throw ClassCastException when adding class that is not implementing Comparable\n tSet.add(new Comparing());\n }", "protected HashSet getNoAccess(){\n return tester.noAccess;\n }", "public static void add(Collection collection) {\n\t\t\n\t}", "OiDataCollection getUserCollection() {\n return userCollection;\n }", "public void setUsers(List<User> users)\r\n/* */ {\r\n/* 221 */ this.users = users;\r\n/* */ }", "private void populateViewCollections() {\n\n\t}", "public static void main(String[] args) {\n\r\n\t\tList<Integer> l = new ArrayList<Integer>();\r\n\t\t//List<Integer> l = new ArrayList<Integer>(Collection c); is also valid\r\n\t\t\r\n\t\tfor(int i=1;i<=10;i++){\r\n\t\t\tl.add(i);\r\n\t\t}\r\n\t\t\r\n\t\tSystem.out.println(l);//[1, 2, 3, 4, 5, 6, 7, 8, 9, 10]\r\n\t\t\r\n\t\t//index based operations\r\n\t\t\r\n\t\tSystem.out.println(l.get(1));//2(element at position 1)\r\n\t\tSystem.out.println(l.set(1,12));//2(returns and replaces the element at position 1)\r\n\t\tSystem.out.println(l);//[1, 12, 3, 4, 5, 6, 7, 8, 9, 10]\r\n\t\t\r\n\t\tl.add(1,11);//inserts 11 at position 1\r\n\t\tSystem.out.println(l);//[1, 11, 12, 3, 4, 5, 6, 7, 8, 9, 10]\r\n\t\tList<Integer> l1 = Arrays.asList(97,23,34);\r\n\t\tl.addAll(4,l1);//inserts collection elements at position 4\r\n\t\tSystem.out.println(l);//[1, 11, 12, 3, 97, 23, 34, 4, 5, 6, 7, 8, 9, 10]\r\n\t\t\r\n\t\tSystem.out.println(l.remove(new Integer(4)));//true ( removes the first occurrence of object 4 )\r\n\t\tSystem.out.println(l.remove(4));//97 (removes the object at position 4)\r\n\t\r\n\t\tSystem.out.println(l.add(11));\r\n\t\tSystem.out.println(l);//[1, 11, 12, 3, 23, 34, 5, 6, 7, 8, 9, 10,11]\r\n\t\t\r\n\t\tSystem.out.println(l.indexOf(new Integer(11)));//1\r\n\t\tSystem.out.println(l.lastIndexOf(new Integer(11)));//12\r\n\t\t\r\n\t\tSystem.out.println(l.subList(3, 8));//[3, 23, 34, 5, 6]\r\n\t\r\n\t\t\r\n\t}", "@Override\n\tCollection<T> internalElements() {\n\t\tCollection<T> values = new LinkedList<T>();\n\t\t\n\t\tfor(LinkedList<T> list : internalStorage.get(0).values()) {\n\t\t values.addAll(list);\t\n\t\t}\n\t\treturn values;\n\t}", "@Test\n public void testSetCitiesList() {\n System.out.println(\"setCitiesList\");\n Set<City> citiesList = new HashSet<>();\n\n sn10.setCitiesList(citiesList);\n assertEquals(citiesList, sn10.getCitiesList());\n }", "public java.util.Collection getTodo();", "@Test\r\n\tpublic void testSet() {\r\n\t\tAssert.assertNull(list.set(100, null));\r\n\t\tAssert.assertTrue(list.get(5).equals(\r\n\t\t\t\tlist.set(5, new Munitions(4, 3, \"cuprum\"))));\r\n\t\tAssert.assertTrue(list.get(5).equals(new Munitions(4, 3, \"cuprum\")));\r\n\t}", "static void set() {\n\t\tArrayList<Integer> arr1=new ArrayList<>();\n\t\tfor(int i=0;i<10;i++) arr1.add(i);\n\t\tfor(int x:arr1) System.out.print(x+\" \");\n\t\tSystem.out.println();\n\t\tarr1.set(3, 100);\n\t\tfor(int x:arr1) System.out.print(x+\" \");\n\t}", "public interface SimapaCollection extends SimapaObject {\r\n}", "public Item() {this.users = new HashSet<>();}" ]
[ "0.65576696", "0.65506095", "0.65418094", "0.65335566", "0.65318495", "0.6515595", "0.6489444", "0.64642715", "0.64464384", "0.64343166", "0.63451535", "0.63277084", "0.6314361", "0.62466365", "0.62351453", "0.62140524", "0.6186228", "0.61770844", "0.6149636", "0.6149567", "0.61196285", "0.6081218", "0.6080784", "0.6053193", "0.60355914", "0.60241795", "0.60025054", "0.5983211", "0.59351325", "0.59335625", "0.590643", "0.5852374", "0.5833565", "0.5830545", "0.5801041", "0.57869565", "0.5771276", "0.5756872", "0.5746303", "0.5730631", "0.5728336", "0.5711111", "0.57071745", "0.5697642", "0.56950307", "0.56904715", "0.5680171", "0.5678619", "0.567436", "0.56676537", "0.56661564", "0.5662278", "0.5653491", "0.56517184", "0.5642107", "0.56392425", "0.56386405", "0.56349254", "0.56263", "0.56248635", "0.5618978", "0.56158674", "0.5614025", "0.56060904", "0.5605405", "0.56036717", "0.5601899", "0.5599014", "0.5590079", "0.55887973", "0.5586034", "0.55743796", "0.55741185", "0.5572378", "0.5570982", "0.5562214", "0.5559172", "0.555426", "0.5548194", "0.5547133", "0.5546197", "0.5544796", "0.55409414", "0.55316216", "0.5525535", "0.55225116", "0.5517668", "0.55164474", "0.55129296", "0.55100304", "0.5509449", "0.55054414", "0.55047584", "0.5498188", "0.54938567", "0.5490099", "0.54893893", "0.54858863", "0.54843843", "0.54842305", "0.54831237" ]
0.0
-1
The client side stub for the RPC service.
@RemoteServiceRelativePath("retrieveQuest") public interface QuestRetrieverService extends RemoteService { ArrayList<QuestEntity> retrieveQuests(); QuestEntity retrieveAQuest(long questId); String addDummyQuest();//For testing delete later }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Stub createStub();", "IMember getServerStub();", "public interface RpcClient {\r\n\r\n\t/**\r\n\t * Initializes this RpcClient\r\n\t */\r\n\tpublic void initialize();\r\n\t\r\n\t/**\r\n\t * Sends the specified object and waits for a response message (or) the specified timeout to occur. Keeps the connection open for further \r\n\t * send requests. Note that clients of this RPCClient must call {@link RPCClient#closeConnections()} when done using this RPCClient.\r\n\t * This method performs to-and-from conversion of the specified object to a raw byte array when publishing it to the queue / consuming off it. \r\n\t * @param message the message to be sent\r\n\t * @param timeout the timeout duration in milliseconds\r\n\t * @return response Object from the RPC message call\r\n\t * @throws MessagingTimeoutException in case the specified timeout occurs\r\n\t * @throws MessagingException in case of errors in message publishing\r\n\t */\r\n\tpublic Object send(Object message, int timeout) throws MessagingTimeoutException, MessagingException;\r\n\r\n\t/**\r\n\t * Sends the specified String and waits for a response message (or) the specified timeout to occur. Keeps the connection open for further \r\n\t * send requests. Note that clients of this RPCClient must call {@link RPCClient#closeConnections()} when done using this RPCClient.\r\n\t * This method performs to-and-from conversion of the specified object to UTF-8 encoded byte array when publishing it to the queue / consuming off it. \r\n\t * @param message the String message to be sent\r\n\t * @param timeout the timeout duration in milliseconds\r\n\t * @return response String from the RPC message call\r\n\t * @throws MessagingTimeoutException in case the specified timeout occurs\r\n\t * @throws MessagingException in case of errors in message publishing\r\n\t */\r\n\tpublic String sendString(String message , int timeout) throws MessagingTimeoutException, MessagingException;\r\n\t\r\n\t/**\r\n\t * Closes connection related objects used by this RpcClient.\r\n\t * @throws MessagingException in case of errors closing connections to the underlying messaging system.\r\n\t */\r\n\tpublic void closeConnections() throws MessagingException;\r\n\t\r\n}", "public interface OperationServiceService extends javax.xml.rpc.Service {\n public java.lang.String getOperationServiceAddress();\n\n public fr.uphf.service.OperationService getOperationService() throws javax.xml.rpc.ServiceException;\n\n public fr.uphf.service.OperationService getOperationService(java.net.URL portAddress) throws javax.xml.rpc.ServiceException;\n}", "@RemoteServiceRelativePath(\"greet\")\npublic interface MyBitService extends RemoteService {\n OrderInfoList getOrderInfoList() throws IllegalArgumentException;\n\n CoinInfoList getCoinInfoList() throws IllegalArgumentException;\n\n ExchangeInfoList getExchangeInfoList() throws IllegalArgumentException;\n\n CompareInfoList getCompareInfoList() throws IllegalArgumentException;\n\n String toggleBot() throws IllegalArgumentException;\n\n String setThreshold(Double threshold) throws IllegalArgumentException;\n\n String getThreshold() throws IllegalArgumentException;\n\n public static class App {\n private static MyBitServiceAsync ourInstance = GWT.create(MyBitService.class);\n\n public static synchronized MyBitServiceAsync getInstance() {\n return ourInstance;\n }\n }\n}", "Object sendRpcRequest(RpcRequest rpcRequest);", "JsonElement invokeRpc(String name, JsonObject rpcInput);", "@RemoteServiceRelativePath(\"data\")\npublic interface GreetingService extends RemoteService {\n\n\t/**\n\t * The Client-side stub for the RPC service. LUCAS LUCAS\n\t */\n\tString [][] importData (String path);\n\tpublic Integer getNumberOfColumns (String path);\n\tpublic Integer getNumberOfLines (String path);\n\n}", "Optional<String> invokeRpc(@Nonnull String uriPath, Optional<String> input) throws OperationFailedException;", "@RemoteServiceClient(SimpleHttpService.class)\npublic interface ISimpleHttpServiceClient extends IServiceClient {\n\n @RemoteMessageClient(SimpleHttpService.REQUEST_START)\n void bootup(int port);\n\n @RemoteMessageClient(SimpleHttpService.REQUEST_STOP)\n void shutdown();\n\n @RemoteMessageClient(SimpleHttpService.REQUEST_INFO)\n void info(int port);\n}", "@Override\n\tpublic Response invoke(ChaincodeStub stub) {\n\t\ttry {\n\t\t\t_logger.info(\"Invoke java simple chaincode\");\n\t\t\tString func = stub.getFunction();\n\t\t\tList<String> params = stub.getParameters();\n\n\t\t\tif (func.equals(\"queryCar\")) {\n\t\t\t\treturn queryCar(stub, params);\n\t\t\t}\n\t\t\tif (func.equals(\"initLedger\")) {\n\t\t\t\treturn initLedger(stub, params);\n\t\t\t}\n\t\t\tif (func.equals(\"createCar\")) {\n\t\t\t\treturn createCar(stub, params);\n\t\t\t}\n\t\t\tif (func.equals(\"queryAllCars\")) {\n\t\t\t\treturn queryAllCars(stub, params);\n\t\t\t}\n\t\t\tif (func.equals(\"changeCarOwner\")) {\n\t\t\t\treturn changeCarOwner(stub, params);\n\t\t\t}\n\n\t\t\treturn newErrorResponse(\"Received unknown function \" + func + \" invocation\");\n\t\t}\n\t\tcatch (Throwable e) {\n\t\t\treturn newErrorResponse(e);\n\t\t}\n\t}", "public interface GrpcService extends BindableService {\r\n public String getServiceName();\r\n public String getDescription();\r\n}", "public RpcClient(ManagedChannelBuilder<?> channelBuilder) {\n channel = channelBuilder.build();\n blockingStub = PredictionServiceGrpc.newBlockingStub(channel);\n asyncStub = PredictionServiceGrpc.newStub(channel);\n modelServiceBlockingStub = ModelServiceGrpc.newBlockingStub(channel);\n modelServiceStub = ModelServiceGrpc.newStub(channel);\n channelzBlockingStub = ChannelzGrpc.newBlockingStub(channel);\n }", "go.micro.runtime.RuntimeOuterClass.Service getService();", "go.micro.runtime.RuntimeOuterClass.Service getService();", "go.micro.runtime.RuntimeOuterClass.Service getService();", "@RemoteServiceRelativePath(\"rpc\")\npublic interface AppService extends RemoteService {\n\n TemplateRespRPC process(TemplateReqRPC rpc);\n\n}", "public Stub() {\n attachInterface(this, DESCRIPTOR);\n }", "@RemoteServiceRelativePath(\"greet\")\npublic interface GreetingService extends RemoteService \n{\n\tBoolean greetServer(Osoba person) throws IllegalArgumentException;\n\tList<Osoba> getOsoba() throws IllegalArgumentException;\n\tList<Osoba> fetchPage(int start, int length) throws IllegalArgumentException;\n\tLong fetchCount() throws IllegalArgumentException;\n}", "public Object getStubHandler() {\n return new RMIStubHandler(); \n }", "public Stub()\n {\n this.attachInterface(this, DESCRIPTOR);\n }", "public Stub()\n {\n this.attachInterface(this, DESCRIPTOR);\n }", "public Stub()\n {\n this.attachInterface(this, DESCRIPTOR);\n }", "public Stub()\n {\n this.attachInterface(this, DESCRIPTOR);\n }", "public Stub()\n {\n this.attachInterface(this, DESCRIPTOR);\n }", "public interface ClientService {\r\n\r\n String fpkj(String wsdlUrl);\r\n}", "public Stub() {\n this.attachInterface(this, DESCRIPTOR);\n }", "public Stub() {\n this.attachInterface(this, DESCRIPTOR);\n }", "public interface IRpcResponser {\n\n public void callback(String secret, Class<?> clazzOfInterface, Object serviceProvider, long timeout, TimeUnit timeUnit);\n\n public WrappedRpcServer buildRpcServer(String secret, IRpcMessageProcessor rpcMsgProcessor);\n}", "public _AccountStub ()\n {\n super ();\n }", "public void initializeRPC(){\n try{XmlRpcClientConfigImpl configuration = new XmlRpcClientConfigImpl();\n configuration.setServerURL(new URL(\"http://\"+RunnerRepository.host+\n \":\"+RunnerRepository.getCentralEnginePort()+\"/ra/\"));\n configuration.setEnabledForExtensions(true);\n configuration.setBasicPassword(RunnerRepository.password);\n configuration.setBasicUserName(RunnerRepository.user);\n client = new XmlRpcClient();\n client.setConfig(configuration);\n System.out.println(\"XMLRPC Client for testbed initialized: \"+client);}\n catch(Exception e){System.out.println(\"Could not conect to \"+\n RunnerRepository.host+\" :\"+RunnerRepository.getCentralEnginePort()+\"/ra/\"+\n \"for RPC client initialization\");}\n }", "public void invoke(ServerServiceDesc serviceDesc, RequestMetaContext reqMetaCtx, ResponseMetaContext respMetaCtx) throws ServiceException;", "@Override\n/**\n * Communication Tester method\n */\npublic String Communicate() throws RemoteException {\n\treturn \"Server Says Hi\";\n}", "public interface DemoService extends Remote {\r\n public final static String SERVICE_NAME = \"DemoService\";\r\n \r\n public String doTask(String[] args) throws RemoteException;\r\n}", "public ServiceClient() {\n\t\tsuper();\n\t}", "@RemoteServiceRelativePath(\"greet\")\r\npublic interface GreetingService extends RemoteService {\r\n\tString greetServer(String name) throws IllegalArgumentException;\r\n\r\n\tContactInfo createNameCard(String name, String email);\r\n}", "public interface ClientContant {\n /**\n * rpc服务器\n */\n String RPC_SERVER_HOST = \"rpc.server.host\";\n /**\n * rpc服务器端口\n */\n String RPC_SERVER_PORT = \"rpc.server.port\";\n}", "public interface ISeedProveiderRpcService {\n Long getTask( Map<String, Object> mapQuery) throws BizCheckedException;\n void createTask( Map<String, Object> mapQuery) throws BizCheckedException;\n List<String> getOrderList(String barcode) throws BizCheckedException;\n List<Map> getStoreList(Map<String, Object> mapQuery) throws BizCheckedException;\n}", "InvocationResult invoke(RemoteService service, MethodInvocation invocation);", "public ProxyIChatServer(IChatServer stub) {\n\t\t\tthis.stub = stub;\n\t\t}", "public IStubProvider getStubProvider();", "public ServerInfo clientInterface()\n {\n return client_stub;\n }", "@Override\r\n\tpublic void callMethod(MethodDescriptor method, RpcController controller, Message request, Message responsePrototype, RpcCallback<Message> done) {\n\t\t\r\n\t}", "@Override\r\n\tpublic Object request(Invocation invocation) throws Exception {\n\t\tRpcRequest req=new RpcRequest();\r\n\t\treq.setId(UUID.randomUUID().toString());\r\n\t\treq.setArgs(invocation.getAgrs());\r\n\t\treq.setMethod(invocation.getMethod().getName());\r\n\t\treq.setParameterTypes(invocation.getMethod().getParameterTypes());\r\n\t\treq.setType(invocation.getInterface());\r\n\t\treq.setAsyn(invocation.isAsyn());\r\n\t\tCompletableFuture<Object> result=new CompletableFuture<>();\r\n\t\tclientPool.borrowObject().request(req,result);\r\n\t\tif(invocation.isAsyn()){\r\n\t\t\treturn result;\r\n\t\t}else{\r\n\t\t\treturn result.get();\r\n\t\t}\r\n\r\n\r\n\t}", "public _CodeBaseStub()\n {\n super();\n }", "public Response bind(String wsdl) throws ServiceCloudException {\n\n return Response.ok(new ResultBuilder().message(\"Not implemented\").type(\"error\").createResult()).build();\n }", "public InterfazServidor getStubServidor() {\n\t\treturn stubServidor;\n\t}", "public RentRPCServer() {\n\t\tsuper(null, null);\n\t\t// mocking purpose\n\t}", "@RemoteServiceRelativePath(\"rpc/userservice\")\r\npublic interface UserService extends RemoteService {\r\n\r\n public boolean isLogin();\r\n\r\n public boolean hasAccess(Long userId);\r\n \r\n public boolean isAdmin();\r\n\r\n public Artist getArtist(Long artistId);\r\n \r\n public User getCurrentUser();\r\n\r\n public List<LinkObject<String>> getArtistNames(List<Long> ids);\r\n\r\n public Artist getAsArtist(User user);\r\n \r\n public User addMoney(int amount);\r\n \r\n public void sendRequest(String msg, int type);\r\n}", "public ClientMain() throws RemoteException, MalformedURLException, NotBoundException\r\n\t{\r\n\t\t//server = (IServer) Naming.lookup(\"rmi://10.152.206.74:1099/bankingServer\");\r\n\t\tserver = (IServer) Naming.lookup(\"rmi://localhost:1099/bankingServer\");\r\n\r\n\t\tmodel = new BankModel();\r\n\r\n\t\tSystem.out.println(\"Client running\");\r\n\t}", "@RemoteServiceRelativePath(\"greet\")\r\npublic interface GreetingService extends RemoteService {\r\n\tAdd getsubmit(Add name) throws IllegalArgumentException;\r\n\r\n\tData p(Data n) throws IllegalArgumentException;\r\n\r\n\tLog l(Log u) throws IllegalArgumentException;\r\n\r\n\tupl insert(upl u) throws IllegalArgumentException;\r\n\r\n\toutuser getdata(outuser name) throws IllegalArgumentException;\r\n\r\n\t\r\n\r\n\tBooks[] fun(String s1)throws IllegalArgumentException;\r\n\r\n\tAdd[] po(String s)throws IllegalArgumentException;\r\n\t\r\n\t\r\n\tBooks fun1(Books s1)throws IllegalArgumentException;\r\n}", "public interface ClientInterface {\r\n\r\n @GET(\"/bins/x5279\")\r\n Call<ArrayList<Details>> getDetails();\r\n}", "public interface CompanyWriteRpcService {\n /**\n * PC端-修改企业支付备注\n * @param reqDTO\n * @return\n */\n Result<String> updateCompanyPayRemark(CompanyInfoUpdateReqDTO reqDTO);\n /**\n * 更改企业状态 0-禁用/1-启用\n * @param companyStatusReqDTO\n * @return\n */\n Result<String> updateCompanyStatus(CompanyStatusReqDTO companyStatusReqDTO);\n /**\n * 修改公司基本信息\n * @param companyInfoUpdateReqDTO\n * @return\n */\n Result<String> updateCompanyInfo(CompanyInfoUpdateReqDTO companyInfoUpdateReqDTO);\n /**\n * 修改公司基本信息 通过Rpc调用\n * @param companyInfoUpdateReqDTO\n * @return\n */\n Result<Void> updateCompanyInfoByRpc(CompanyInfoUpdateReqDTO companyInfoUpdateReqDTO);\n /**\n * 添加公司\n * @param companyInfoAddReqDTO\n * @return CompanyInfoAddRespDTO 公司id\n */\n Result<CompanyInfoAddRespDTO> addCompanyInfo(CompanyInfoAddReqDTO companyInfoAddReqDTO);\n\n /**\n * 添加公司-通过Rpc调用\n * @param companyInfoAddByRpcReqDTO\n * @return CompanyInfoAddRespDTO 公司id\n */\n Result<CompanyInfoAddRespDTO> addCompanyInfoByRpc(CompanyInfoAddByRpcReqDTO companyInfoAddByRpcReqDTO);\n\n /**\n * 设置白名单\n * @param companyExpireStatusUpdateReqDTO\n * @return\n */\n Result<Void> updateCompanyExpireStatus(CompanyExpireStatusUpdateReqDTO companyExpireStatusUpdateReqDTO);\n\n /**\n *\n */\n Result<Void> updateFactoryInfo(FactoryInfoConfigReqDTO factoryInfoConfigReqDTO);\n\n /**\n * 企业添加品牌\n * @param companyBrandAddReqDTO\n * @return\n */\n Result<CompanyBrandAddRespDTO> addCompanyBrand(CompanyBrandAddReqDTO companyBrandAddReqDTO);\n\n /**\n * 内部rpc调用新增品牌\n * @param companyBrandAddInsideReqDTO\n * @return\n */\n Result<CompanyBrandAddInsideRespDTO> addCompanyBrandInside(CompanyBrandAddInsideReqDTO companyBrandAddInsideReqDTO);\n /**\n * 删除品牌\n * @param companyBrandDelReqDTO\n * @return\n */\n Result<String> delCompanyBrand(CompanyBrandDelReqDTO companyBrandDelReqDTO);\n\n /**\n * 批量删除品牌\n * @param companyBrandsDelReqDTO\n * @return\n */\n Result<String> delCompanyBrands(CompanyBrandsDelReqDTO companyBrandsDelReqDTO);\n /**\n * 延长公司服务到期时间,并且生成流水\n * @param req\n * @return\n */\n Result<CompanyExtendServiceAddRespDTO> addCompanyExtendServiceJournal(CompanyExtendServiceAddReqDTO req);\n /**\n * @Description: 更新企业打印设置\n * @Param:\n * @return:\n * @Author: zhangtengpo\n * @Date: 2018/6/1\n */\n Result<String> updateCompanyPrintConfig(CompanyPrintConfigInfoUpdateReqDTO companyPrintConfigInfoUpdateReqDTO);\n /**\n * 审核公司信息\n * @param reqDTO\n * @return\n */\n Result<CompanyInfoVerifyRespDTO> verifyCompanyInfo(CompanyInfoVerifyReqDTO reqDTO);\n\n /**\n * 提交认证--添加审核信息\n * @param reqDTO\n * @return\n */\n Result<CompanyInfoVerifyAddRespDTO> addVerifyCompanyInfo(CompanyInfoVerifyAddReqDTO reqDTO);\n\n /**\n * @Description: 管理-打印设置-修改打印模式\n * @Param:companyPrintModeUpdateReqDTO\n * @return:\n * @Author: cy\n * @Date: 2018/11/15\n */\n Result<String> updateCompanyPrintMode(CompanyPrintModeUpdateReqDTO companyPrintModeUpdateReqDTO);\n\n}", "public static void testMain(){\n\t\ttry {\n\t\t\t/**\n\t\t\t * 调用接口获得返回字符串\n\t\t\t */\n\t\t\t// 创建调用对象\n\t\t \n\t\t\tURL url = new URL(\"http://10.1.13.146:30014/service/fundquery.ws?wsdl\"); \n\t\t\tQName qName = new QName(\"http://service.hundsun.com\", \"FundQueryService\");\n\t\t\tService service = Service.create(url, qName); \n\t\t\t\n\t\t\tFundQueryServicePortType fundQueryServicePortType = service.getPort(FundQueryServicePortType.class); \n\t\t\tQueryPayResponse r= fundQueryServicePortType.queryPay(getQueryPay());\n System.out.println(r.getTotalAmount());\n \n\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t}", "@RemoteServiceRelativePath(\"getAddress\")\npublic interface AddressService extends RemoteService {\n\tpublic String[] getAddress() throws IOException;\n}", "public Method getStubMethod() {\n return this.stubMethod;\n }", "public PagedRpcExample() {\n\t\tfiixCmmsClient = new FiixCmmsClient(CredentialProvider.getCredentials(),\n\t\t\tCredentialProvider.TENANT_API_ENDPOINT);\n\t}", "public _CodeBaseStub ()\n {\n super ();\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 }", "public interface ComboBoxClientRpc extends ClientRpc {\n\n /**\n * Signal the client that attempt to add a new item failed.\n *\n * @param itemValue\n * user entered string value for the new item\n */\n public void newItemNotAdded(String itemValue);\n}", "public void preinvoke(ServerServiceDesc serviceDesc, RequestMetaContext reqMetaCtx, ResponseMetaContext respMetaCtx) throws ServiceException;", "public Stub()\n{\nthis.attachInterface(this, DESCRIPTOR);\n}", "public Stub()\n{\nthis.attachInterface(this, DESCRIPTOR);\n}", "public Stub()\n{\nthis.attachInterface(this, DESCRIPTOR);\n}", "public Stub()\n{\nthis.attachInterface(this, DESCRIPTOR);\n}", "public Stub()\n{\nthis.attachInterface(this, DESCRIPTOR);\n}", "public Stub()\n{\nthis.attachInterface(this, DESCRIPTOR);\n}", "public Stub()\n{\nthis.attachInterface(this, DESCRIPTOR);\n}", "public Stub()\n{\nthis.attachInterface(this, DESCRIPTOR);\n}", "public Stub()\n{\nthis.attachInterface(this, DESCRIPTOR);\n}", "public Stub()\n{\nthis.attachInterface(this, DESCRIPTOR);\n}", "public Stub()\n{\nthis.attachInterface(this, DESCRIPTOR);\n}", "public Stub()\n{\nthis.attachInterface(this, DESCRIPTOR);\n}", "@RemoteServiceRelativePath(\"greet\")\npublic interface GreetingService extends RemoteService {\n\tString greetServer(String name) throws IllegalArgumentException;\n\tString registrazione(String nome, String nick, String password, String mail) throws IllegalArgumentException;\n\tString login(String nick, String passw) throws IllegalArgumentException;\n\tString caricaevento(String nome, String luogo, String descs,String dal,String al,String idKey, int check, String cause) throws IllegalArgumentException;\n\tString cancellaevento(String id,String idKey) throws IllegalArgumentException;\n\tString chiudievento(String id,String idKey) throws IllegalArgumentException;\n\tString insertJoin(String idEvento, String nome, String nick, String commento,int disp) throws IllegalArgumentException;\n\tLinkedList<Partecipa> getAllUsersJoin(String idEvento) throws IllegalArgumentException;\n\tLinkedList<Evento> getAllUserEvents(String id) throws IllegalArgumentException;\n\tLinkedList<Evento> getAllEvents() throws IllegalArgumentException;\n}", "public RpcClient(String serviceUrl,\n final RpcClientOptions options,\n List<Interceptor> interceptors,\n NamingServiceFactory namingServiceFactory) {\n Validate.notEmpty(serviceUrl);\n Validate.notNull(options);\n this.init(options, interceptors);\n // parse naming\n BrpcURL url = new BrpcURL(serviceUrl);\n if (namingServiceFactory != null) {\n this.namingService = namingServiceFactory.createNamingService(url);\n } else {\n this.namingService = new DefaultNamingServiceFactory().createNamingService(url);\n }\n }", "public ClientServiceImpl() {\r\n\t}", "public interface GeneralService {\n\n /**\n * Returns general server data\n */\n Request getGeneralData(AsyncCallback<GeneralData> callback);\n\n}", "public RPCRequest()\n\t{\n\t\tsuper();\n\t}", "public interface IMountService extends IInterface {\n /** Local-side IPC implementation stub class. */\n public static abstract class Stub extends Binder implements IMountService {\n private static class Proxy implements IMountService {\n private final IBinder mRemote;\n\n Proxy(IBinder remote) {\n mRemote = remote;\n }\n\n public IBinder asBinder() {\n return mRemote;\n }\n\n public String getInterfaceDescriptor() {\n return DESCRIPTOR;\n }\n\n /**\n * Registers an IMountServiceListener for receiving async\n * notifications.\n */\n public void registerListener(IMountServiceListener listener) throws RemoteException {\n Parcel _data = Parcel.obtain();\n Parcel _reply = Parcel.obtain();\n try {\n _data.writeInterfaceToken(DESCRIPTOR);\n _data.writeStrongBinder((listener != null ? listener.asBinder() : null));\n mRemote.transact(Stub.TRANSACTION_registerListener, _data, _reply, 0);\n _reply.readException();\n } finally {\n _reply.recycle();\n _data.recycle();\n }\n }\n\n /**\n * Unregisters an IMountServiceListener\n */\n public void unregisterListener(IMountServiceListener listener) throws RemoteException {\n Parcel _data = Parcel.obtain();\n Parcel _reply = Parcel.obtain();\n try {\n _data.writeInterfaceToken(DESCRIPTOR);\n _data.writeStrongBinder((listener != null ? listener.asBinder() : null));\n mRemote.transact(Stub.TRANSACTION_unregisterListener, _data, _reply, 0);\n _reply.readException();\n } finally {\n _reply.recycle();\n _data.recycle();\n }\n }\n\n /**\n * Returns true if a USB mass storage host is connected\n */\n public boolean isUsbMassStorageConnected() throws RemoteException {\n Parcel _data = Parcel.obtain();\n Parcel _reply = Parcel.obtain();\n boolean _result;\n try {\n _data.writeInterfaceToken(DESCRIPTOR);\n mRemote.transact(Stub.TRANSACTION_isUsbMassStorageConnected, _data, _reply, 0);\n _reply.readException();\n _result = 0 != _reply.readInt();\n } finally {\n _reply.recycle();\n _data.recycle();\n }\n return _result;\n }\n\n /**\n * Enables / disables USB mass storage. The caller should check\n * actual status of enabling/disabling USB mass storage via\n * StorageEventListener.\n */\n public void setUsbMassStorageEnabled(boolean enable) throws RemoteException {\n Parcel _data = Parcel.obtain();\n Parcel _reply = Parcel.obtain();\n try {\n _data.writeInterfaceToken(DESCRIPTOR);\n _data.writeInt((enable ? 1 : 0));\n mRemote.transact(Stub.TRANSACTION_setUsbMassStorageEnabled, _data, _reply, 0);\n _reply.readException();\n } finally {\n _reply.recycle();\n _data.recycle();\n }\n }\n\n /**\n * Returns true if a USB mass storage host is enabled (media is\n * shared)\n */\n public boolean isUsbMassStorageEnabled() throws RemoteException {\n Parcel _data = Parcel.obtain();\n Parcel _reply = Parcel.obtain();\n boolean _result;\n try {\n _data.writeInterfaceToken(DESCRIPTOR);\n mRemote.transact(Stub.TRANSACTION_isUsbMassStorageEnabled, _data, _reply, 0);\n _reply.readException();\n _result = 0 != _reply.readInt();\n } finally {\n _reply.recycle();\n _data.recycle();\n }\n return _result;\n }\n\n /**\n * Mount external storage at given mount point. Returns an int\n * consistent with MountServiceResultCode\n */\n public int mountVolume(String mountPoint) throws RemoteException {\n Parcel _data = Parcel.obtain();\n Parcel _reply = Parcel.obtain();\n int _result;\n try {\n _data.writeInterfaceToken(DESCRIPTOR);\n _data.writeString(mountPoint);\n mRemote.transact(Stub.TRANSACTION_mountVolume, _data, _reply, 0);\n _reply.readException();\n _result = _reply.readInt();\n } finally {\n _reply.recycle();\n _data.recycle();\n }\n return _result;\n }\n\n /**\n * Safely unmount external storage at given mount point. The unmount\n * is an asynchronous operation. Applications should register\n * StorageEventListener for storage related status changes.\n */\n public void unmountVolume(String mountPoint, boolean force, boolean removeEncryption)\n throws RemoteException {\n Parcel _data = Parcel.obtain();\n Parcel _reply = Parcel.obtain();\n try {\n _data.writeInterfaceToken(DESCRIPTOR);\n _data.writeString(mountPoint);\n _data.writeInt((force ? 1 : 0));\n _data.writeInt((removeEncryption ? 1 : 0));\n mRemote.transact(Stub.TRANSACTION_unmountVolume, _data, _reply, 0);\n _reply.readException();\n } finally {\n _reply.recycle();\n _data.recycle();\n }\n }\n\n /**\n * Format external storage given a mount point. Returns an int\n * consistent with MountServiceResultCode\n */\n public int formatVolume(String mountPoint) throws RemoteException {\n Parcel _data = Parcel.obtain();\n Parcel _reply = Parcel.obtain();\n int _result;\n try {\n _data.writeInterfaceToken(DESCRIPTOR);\n _data.writeString(mountPoint);\n mRemote.transact(Stub.TRANSACTION_formatVolume, _data, _reply, 0);\n _reply.readException();\n _result = _reply.readInt();\n } finally {\n _reply.recycle();\n _data.recycle();\n }\n return _result;\n }\n\n /**\n * Returns an array of pids with open files on the specified path.\n */\n public int[] getStorageUsers(String path) throws RemoteException {\n Parcel _data = Parcel.obtain();\n Parcel _reply = Parcel.obtain();\n int[] _result;\n try {\n _data.writeInterfaceToken(DESCRIPTOR);\n _data.writeString(path);\n mRemote.transact(Stub.TRANSACTION_getStorageUsers, _data, _reply, 0);\n _reply.readException();\n _result = _reply.createIntArray();\n } finally {\n _reply.recycle();\n _data.recycle();\n }\n return _result;\n }\n\n /**\n * Gets the state of a volume via its mountpoint.\n */\n public String getVolumeState(String mountPoint) throws RemoteException {\n Parcel _data = Parcel.obtain();\n Parcel _reply = Parcel.obtain();\n String _result;\n try {\n _data.writeInterfaceToken(DESCRIPTOR);\n _data.writeString(mountPoint);\n mRemote.transact(Stub.TRANSACTION_getVolumeState, _data, _reply, 0);\n _reply.readException();\n _result = _reply.readString();\n } finally {\n _reply.recycle();\n _data.recycle();\n }\n return _result;\n }\n\n /*\n * Creates a secure container with the specified parameters. Returns\n * an int consistent with MountServiceResultCode\n */\n public int createSecureContainer(String id, int sizeMb, String fstype, String key,\n int ownerUid, boolean external) throws RemoteException {\n Parcel _data = Parcel.obtain();\n Parcel _reply = Parcel.obtain();\n int _result;\n try {\n _data.writeInterfaceToken(DESCRIPTOR);\n _data.writeString(id);\n _data.writeInt(sizeMb);\n _data.writeString(fstype);\n _data.writeString(key);\n _data.writeInt(ownerUid);\n _data.writeInt(external ? 1 : 0);\n mRemote.transact(Stub.TRANSACTION_createSecureContainer, _data, _reply, 0);\n _reply.readException();\n _result = _reply.readInt();\n } finally {\n _reply.recycle();\n _data.recycle();\n }\n return _result;\n }\n\n /*\n * Destroy a secure container, and free up all resources associated\n * with it. NOTE: Ensure all references are released prior to\n * deleting. Returns an int consistent with MountServiceResultCode\n */\n public int destroySecureContainer(String id, boolean force) throws RemoteException {\n Parcel _data = Parcel.obtain();\n Parcel _reply = Parcel.obtain();\n int _result;\n try {\n _data.writeInterfaceToken(DESCRIPTOR);\n _data.writeString(id);\n _data.writeInt((force ? 1 : 0));\n mRemote.transact(Stub.TRANSACTION_destroySecureContainer, _data, _reply, 0);\n _reply.readException();\n _result = _reply.readInt();\n } finally {\n _reply.recycle();\n _data.recycle();\n }\n return _result;\n }\n\n /*\n * Finalize a container which has just been created and populated.\n * After finalization, the container is immutable. Returns an int\n * consistent with MountServiceResultCode\n */\n public int finalizeSecureContainer(String id) throws RemoteException {\n Parcel _data = Parcel.obtain();\n Parcel _reply = Parcel.obtain();\n int _result;\n try {\n _data.writeInterfaceToken(DESCRIPTOR);\n _data.writeString(id);\n mRemote.transact(Stub.TRANSACTION_finalizeSecureContainer, _data, _reply, 0);\n _reply.readException();\n _result = _reply.readInt();\n } finally {\n _reply.recycle();\n _data.recycle();\n }\n return _result;\n }\n\n /*\n * Mount a secure container with the specified key and owner UID.\n * Returns an int consistent with MountServiceResultCode\n */\n public int mountSecureContainer(String id, String key, int ownerUid, boolean readOnly)\n throws RemoteException {\n Parcel _data = Parcel.obtain();\n Parcel _reply = Parcel.obtain();\n int _result;\n try {\n _data.writeInterfaceToken(DESCRIPTOR);\n _data.writeString(id);\n _data.writeString(key);\n _data.writeInt(ownerUid);\n _data.writeInt(readOnly ? 1 : 0);\n mRemote.transact(Stub.TRANSACTION_mountSecureContainer, _data, _reply, 0);\n _reply.readException();\n _result = _reply.readInt();\n } finally {\n _reply.recycle();\n _data.recycle();\n }\n return _result;\n }\n\n /*\n * Unount a secure container. Returns an int consistent with\n * MountServiceResultCode\n */\n public int unmountSecureContainer(String id, boolean force) throws RemoteException {\n Parcel _data = Parcel.obtain();\n Parcel _reply = Parcel.obtain();\n int _result;\n try {\n _data.writeInterfaceToken(DESCRIPTOR);\n _data.writeString(id);\n _data.writeInt((force ? 1 : 0));\n mRemote.transact(Stub.TRANSACTION_unmountSecureContainer, _data, _reply, 0);\n _reply.readException();\n _result = _reply.readInt();\n } finally {\n _reply.recycle();\n _data.recycle();\n }\n return _result;\n }\n\n /*\n * Returns true if the specified container is mounted\n */\n public boolean isSecureContainerMounted(String id) throws RemoteException {\n Parcel _data = Parcel.obtain();\n Parcel _reply = Parcel.obtain();\n boolean _result;\n try {\n _data.writeInterfaceToken(DESCRIPTOR);\n _data.writeString(id);\n mRemote.transact(Stub.TRANSACTION_isSecureContainerMounted, _data, _reply, 0);\n _reply.readException();\n _result = 0 != _reply.readInt();\n } finally {\n _reply.recycle();\n _data.recycle();\n }\n return _result;\n }\n\n /*\n * Rename an unmounted secure container. Returns an int consistent\n * with MountServiceResultCode\n */\n public int renameSecureContainer(String oldId, String newId) throws RemoteException {\n Parcel _data = Parcel.obtain();\n Parcel _reply = Parcel.obtain();\n int _result;\n try {\n _data.writeInterfaceToken(DESCRIPTOR);\n _data.writeString(oldId);\n _data.writeString(newId);\n mRemote.transact(Stub.TRANSACTION_renameSecureContainer, _data, _reply, 0);\n _reply.readException();\n _result = _reply.readInt();\n } finally {\n _reply.recycle();\n _data.recycle();\n }\n return _result;\n }\n\n /*\n * Returns the filesystem path of a mounted secure container.\n */\n public String getSecureContainerPath(String id) throws RemoteException {\n Parcel _data = Parcel.obtain();\n Parcel _reply = Parcel.obtain();\n String _result;\n try {\n _data.writeInterfaceToken(DESCRIPTOR);\n _data.writeString(id);\n mRemote.transact(Stub.TRANSACTION_getSecureContainerPath, _data, _reply, 0);\n _reply.readException();\n _result = _reply.readString();\n } finally {\n _reply.recycle();\n _data.recycle();\n }\n return _result;\n }\n\n /**\n * Gets an Array of currently known secure container IDs\n */\n public String[] getSecureContainerList() throws RemoteException {\n Parcel _data = Parcel.obtain();\n Parcel _reply = Parcel.obtain();\n String[] _result;\n try {\n _data.writeInterfaceToken(DESCRIPTOR);\n mRemote.transact(Stub.TRANSACTION_getSecureContainerList, _data, _reply, 0);\n _reply.readException();\n _result = _reply.createStringArray();\n } finally {\n _reply.recycle();\n _data.recycle();\n }\n return _result;\n }\n\n /**\n * Shuts down the MountService and gracefully unmounts all external\n * media. Invokes call back once the shutdown is complete.\n */\n public void shutdown(IMountShutdownObserver observer)\n throws RemoteException {\n Parcel _data = Parcel.obtain();\n Parcel _reply = Parcel.obtain();\n try {\n _data.writeInterfaceToken(DESCRIPTOR);\n _data.writeStrongBinder((observer != null ? observer.asBinder() : null));\n mRemote.transact(Stub.TRANSACTION_shutdown, _data, _reply, 0);\n _reply.readException();\n } finally {\n _reply.recycle();\n _data.recycle();\n }\n }\n\n /**\n * Call into MountService by PackageManager to notify that its done\n * processing the media status update request.\n */\n public void finishMediaUpdate() throws RemoteException {\n Parcel _data = Parcel.obtain();\n Parcel _reply = Parcel.obtain();\n try {\n _data.writeInterfaceToken(DESCRIPTOR);\n mRemote.transact(Stub.TRANSACTION_finishMediaUpdate, _data, _reply, 0);\n _reply.readException();\n } finally {\n _reply.recycle();\n _data.recycle();\n }\n }\n\n /**\n * Mounts an Opaque Binary Blob (OBB) with the specified decryption\n * key and only allows the calling process's UID access to the\n * contents. MountService will call back to the supplied\n * IObbActionListener to inform it of the terminal state of the\n * call.\n */\n public void mountObb(String rawPath, String canonicalPath, String key,\n IObbActionListener token, int nonce) throws RemoteException {\n Parcel _data = Parcel.obtain();\n Parcel _reply = Parcel.obtain();\n try {\n _data.writeInterfaceToken(DESCRIPTOR);\n _data.writeString(rawPath);\n _data.writeString(canonicalPath);\n _data.writeString(key);\n _data.writeStrongBinder((token != null ? token.asBinder() : null));\n _data.writeInt(nonce);\n mRemote.transact(Stub.TRANSACTION_mountObb, _data, _reply, 0);\n _reply.readException();\n } finally {\n _reply.recycle();\n _data.recycle();\n }\n }\n\n /**\n * Unmounts an Opaque Binary Blob (OBB). When the force flag is\n * specified, any program using it will be forcibly killed to\n * unmount the image. MountService will call back to the supplied\n * IObbActionListener to inform it of the terminal state of the\n * call.\n */\n public void unmountObb(\n String rawPath, boolean force, IObbActionListener token, int nonce)\n throws RemoteException {\n Parcel _data = Parcel.obtain();\n Parcel _reply = Parcel.obtain();\n try {\n _data.writeInterfaceToken(DESCRIPTOR);\n _data.writeString(rawPath);\n _data.writeInt((force ? 1 : 0));\n _data.writeStrongBinder((token != null ? token.asBinder() : null));\n _data.writeInt(nonce);\n mRemote.transact(Stub.TRANSACTION_unmountObb, _data, _reply, 0);\n _reply.readException();\n } finally {\n _reply.recycle();\n _data.recycle();\n }\n }\n\n /**\n * Checks whether the specified Opaque Binary Blob (OBB) is mounted\n * somewhere.\n */\n public boolean isObbMounted(String rawPath) throws RemoteException {\n Parcel _data = Parcel.obtain();\n Parcel _reply = Parcel.obtain();\n boolean _result;\n try {\n _data.writeInterfaceToken(DESCRIPTOR);\n _data.writeString(rawPath);\n mRemote.transact(Stub.TRANSACTION_isObbMounted, _data, _reply, 0);\n _reply.readException();\n _result = 0 != _reply.readInt();\n } finally {\n _reply.recycle();\n _data.recycle();\n }\n return _result;\n }\n\n /**\n * Gets the path to the mounted Opaque Binary Blob (OBB).\n */\n public String getMountedObbPath(String rawPath) throws RemoteException {\n Parcel _data = Parcel.obtain();\n Parcel _reply = Parcel.obtain();\n String _result;\n try {\n _data.writeInterfaceToken(DESCRIPTOR);\n _data.writeString(rawPath);\n mRemote.transact(Stub.TRANSACTION_getMountedObbPath, _data, _reply, 0);\n _reply.readException();\n _result = _reply.readString();\n } finally {\n _reply.recycle();\n _data.recycle();\n }\n return _result;\n }\n\n /**\n * Returns whether the external storage is emulated.\n */\n public boolean isExternalStorageEmulated() throws RemoteException {\n Parcel _data = Parcel.obtain();\n Parcel _reply = Parcel.obtain();\n boolean _result;\n try {\n _data.writeInterfaceToken(DESCRIPTOR);\n mRemote.transact(Stub.TRANSACTION_isExternalStorageEmulated, _data, _reply, 0);\n _reply.readException();\n _result = 0 != _reply.readInt();\n } finally {\n _reply.recycle();\n _data.recycle();\n }\n return _result;\n }\n\n public int getEncryptionState() throws RemoteException {\n Parcel _data = Parcel.obtain();\n Parcel _reply = Parcel.obtain();\n int _result;\n try {\n _data.writeInterfaceToken(DESCRIPTOR);\n mRemote.transact(Stub.TRANSACTION_getEncryptionState, _data, _reply, 0);\n _reply.readException();\n _result = _reply.readInt();\n } finally {\n _reply.recycle();\n _data.recycle();\n }\n return _result;\n }\n\n public int decryptStorage(String password) throws RemoteException {\n Parcel _data = Parcel.obtain();\n Parcel _reply = Parcel.obtain();\n int _result;\n try {\n _data.writeInterfaceToken(DESCRIPTOR);\n _data.writeString(password);\n mRemote.transact(Stub.TRANSACTION_decryptStorage, _data, _reply, 0);\n _reply.readException();\n _result = _reply.readInt();\n } finally {\n _reply.recycle();\n _data.recycle();\n }\n return _result;\n }\n\n public int encryptStorage(int type, String password) throws RemoteException {\n Parcel _data = Parcel.obtain();\n Parcel _reply = Parcel.obtain();\n int _result;\n try {\n _data.writeInterfaceToken(DESCRIPTOR);\n _data.writeInt(type);\n _data.writeString(password);\n mRemote.transact(Stub.TRANSACTION_encryptStorage, _data, _reply, 0);\n _reply.readException();\n _result = _reply.readInt();\n } finally {\n _reply.recycle();\n _data.recycle();\n }\n return _result;\n }\n\n public int changeEncryptionPassword(int type, String password) throws RemoteException {\n Parcel _data = Parcel.obtain();\n Parcel _reply = Parcel.obtain();\n int _result;\n try {\n _data.writeInterfaceToken(DESCRIPTOR);\n _data.writeInt(type);\n _data.writeString(password);\n mRemote.transact(Stub.TRANSACTION_changeEncryptionPassword, _data, _reply, 0);\n _reply.readException();\n _result = _reply.readInt();\n } finally {\n _reply.recycle();\n _data.recycle();\n }\n return _result;\n }\n\n @Override\n public int verifyEncryptionPassword(String password) throws RemoteException {\n Parcel _data = Parcel.obtain();\n Parcel _reply = Parcel.obtain();\n int _result;\n try {\n _data.writeInterfaceToken(DESCRIPTOR);\n _data.writeString(password);\n mRemote.transact(Stub.TRANSACTION_verifyEncryptionPassword, _data, _reply, 0);\n _reply.readException();\n _result = _reply.readInt();\n } finally {\n _reply.recycle();\n _data.recycle();\n }\n return _result;\n }\n\n public int getPasswordType() throws RemoteException {\n Parcel _data = Parcel.obtain();\n Parcel _reply = Parcel.obtain();\n int _result;\n try {\n _data.writeInterfaceToken(DESCRIPTOR);\n mRemote.transact(Stub.TRANSACTION_getPasswordType, _data, _reply, 0);\n _reply.readException();\n _result = _reply.readInt();\n } finally {\n _reply.recycle();\n _data.recycle();\n }\n return _result;\n }\n\n public String getPassword() throws RemoteException {\n Parcel _data = Parcel.obtain();\n Parcel _reply = Parcel.obtain();\n String _result;\n try {\n _data.writeInterfaceToken(DESCRIPTOR);\n mRemote.transact(Stub.TRANSACTION_getPassword, _data, _reply, 0);\n _reply.readException();\n _result = _reply.readString();\n } finally {\n _reply.recycle();\n _data.recycle();\n }\n return _result;\n }\n\n public void clearPassword() throws RemoteException {\n Parcel _data = Parcel.obtain();\n Parcel _reply = Parcel.obtain();\n try {\n _data.writeInterfaceToken(DESCRIPTOR);\n mRemote.transact(Stub.TRANSACTION_clearPassword, _data, _reply, IBinder.FLAG_ONEWAY);\n _reply.readException();\n } finally {\n _reply.recycle();\n _data.recycle();\n }\n }\n\n public void setField(String field, String data) throws RemoteException {\n Parcel _data = Parcel.obtain();\n Parcel _reply = Parcel.obtain();\n try {\n _data.writeInterfaceToken(DESCRIPTOR);\n _data.writeString(field);\n _data.writeString(data);\n mRemote.transact(Stub.TRANSACTION_setField, _data, _reply, IBinder.FLAG_ONEWAY);\n _reply.readException();\n } finally {\n _reply.recycle();\n _data.recycle();\n }\n }\n\n public String getField(String field) throws RemoteException {\n Parcel _data = Parcel.obtain();\n Parcel _reply = Parcel.obtain();\n String _result;\n try {\n _data.writeInterfaceToken(DESCRIPTOR);\n _data.writeString(field);\n mRemote.transact(Stub.TRANSACTION_getField, _data, _reply, 0);\n _reply.readException();\n _result = _reply.readString();\n } finally {\n _reply.recycle();\n _data.recycle();\n }\n return _result;\n }\n\n public boolean isConvertibleToFBE() throws RemoteException {\n Parcel _data = Parcel.obtain();\n Parcel _reply = Parcel.obtain();\n boolean _result;\n try {\n _data.writeInterfaceToken(DESCRIPTOR);\n mRemote.transact(Stub.TRANSACTION_isConvertibleToFBE, _data, _reply, 0);\n _reply.readException();\n _result = _reply.readInt() != 0;\n } finally {\n _reply.recycle();\n _data.recycle();\n }\n return _result;\n }\n\n public StorageVolume[] getVolumeList(int uid, String packageName, int flags)\n throws RemoteException {\n Parcel _data = Parcel.obtain();\n Parcel _reply = Parcel.obtain();\n StorageVolume[] _result;\n try {\n _data.writeInterfaceToken(DESCRIPTOR);\n _data.writeInt(uid);\n _data.writeString(packageName);\n _data.writeInt(flags);\n mRemote.transact(Stub.TRANSACTION_getVolumeList, _data, _reply, 0);\n _reply.readException();\n _result = _reply.createTypedArray(StorageVolume.CREATOR);\n } finally {\n _reply.recycle();\n _data.recycle();\n }\n return _result;\n }\n\n /*\n * Returns the filesystem path of a mounted secure container.\n */\n public String getSecureContainerFilesystemPath(String id) throws RemoteException {\n Parcel _data = Parcel.obtain();\n Parcel _reply = Parcel.obtain();\n String _result;\n try {\n _data.writeInterfaceToken(DESCRIPTOR);\n _data.writeString(id);\n mRemote.transact(Stub.TRANSACTION_getSecureContainerFilesystemPath, _data, _reply, 0);\n _reply.readException();\n _result = _reply.readString();\n } finally {\n _reply.recycle();\n _data.recycle();\n }\n return _result;\n }\n\n /**\n * Fix permissions in a container which has just been created and\n * populated. Returns an int consistent with MountServiceResultCode\n */\n public int fixPermissionsSecureContainer(String id, int gid, String filename)\n throws RemoteException {\n Parcel _data = Parcel.obtain();\n Parcel _reply = Parcel.obtain();\n int _result;\n try {\n _data.writeInterfaceToken(DESCRIPTOR);\n _data.writeString(id);\n _data.writeInt(gid);\n _data.writeString(filename);\n mRemote.transact(Stub.TRANSACTION_fixPermissionsSecureContainer, _data, _reply, 0);\n _reply.readException();\n _result = _reply.readInt();\n } finally {\n _reply.recycle();\n _data.recycle();\n }\n return _result;\n }\n\n @Override\n public int mkdirs(String callingPkg, String path) throws RemoteException {\n Parcel _data = Parcel.obtain();\n Parcel _reply = Parcel.obtain();\n int _result;\n try {\n _data.writeInterfaceToken(DESCRIPTOR);\n _data.writeString(callingPkg);\n _data.writeString(path);\n mRemote.transact(Stub.TRANSACTION_mkdirs, _data, _reply, 0);\n _reply.readException();\n _result = _reply.readInt();\n } finally {\n _reply.recycle();\n _data.recycle();\n }\n return _result;\n }\n\n @Override\n public int resizeSecureContainer(String id, int sizeMb, String key)\n throws RemoteException {\n Parcel _data = Parcel.obtain();\n Parcel _reply = Parcel.obtain();\n int _result;\n try {\n _data.writeInterfaceToken(DESCRIPTOR);\n _data.writeString(id);\n _data.writeInt(sizeMb);\n _data.writeString(key);\n mRemote.transact(Stub.TRANSACTION_resizeSecureContainer, _data, _reply, 0);\n _reply.readException();\n _result = _reply.readInt();\n } finally {\n _reply.recycle();\n _data.recycle();\n }\n return _result;\n }\n\n @Override\n public long lastMaintenance() throws RemoteException {\n Parcel _data = Parcel.obtain();\n Parcel _reply = Parcel.obtain();\n long _result;\n try {\n _data.writeInterfaceToken(DESCRIPTOR);\n mRemote.transact(Stub.TRANSACTION_lastMaintenance, _data, _reply, 0);\n _reply.readException();\n _result = _reply.readLong();\n } finally {\n _reply.recycle();\n _data.recycle();\n }\n return _result;\n }\n\n @Override\n public void runMaintenance() throws RemoteException {\n Parcel _data = Parcel.obtain();\n Parcel _reply = Parcel.obtain();\n try {\n _data.writeInterfaceToken(DESCRIPTOR);\n mRemote.transact(Stub.TRANSACTION_runMaintenance, _data, _reply, 0);\n _reply.readException();\n } finally {\n _reply.recycle();\n _data.recycle();\n }\n return;\n }\n\n @Override\n public void waitForAsecScan() throws RemoteException {\n Parcel _data = Parcel.obtain();\n Parcel _reply = Parcel.obtain();\n try {\n _data.writeInterfaceToken(DESCRIPTOR);\n mRemote.transact(Stub.TRANSACTION_waitForAsecScan, _data, _reply, 0);\n _reply.readException();\n } finally {\n _reply.recycle();\n _data.recycle();\n }\n return;\n }\n\n @Override\n public DiskInfo[] getDisks() throws RemoteException {\n Parcel _data = Parcel.obtain();\n Parcel _reply = Parcel.obtain();\n DiskInfo[] _result;\n try {\n _data.writeInterfaceToken(DESCRIPTOR);\n mRemote.transact(Stub.TRANSACTION_getDisks, _data, _reply, 0);\n _reply.readException();\n _result = _reply.createTypedArray(DiskInfo.CREATOR);\n } finally {\n _reply.recycle();\n _data.recycle();\n }\n return _result;\n }\n\n @Override\n public VolumeInfo[] getVolumes(int _flags) throws RemoteException {\n Parcel _data = Parcel.obtain();\n Parcel _reply = Parcel.obtain();\n VolumeInfo[] _result;\n try {\n _data.writeInterfaceToken(DESCRIPTOR);\n _data.writeInt(_flags);\n mRemote.transact(Stub.TRANSACTION_getVolumes, _data, _reply, 0);\n _reply.readException();\n _result = _reply.createTypedArray(VolumeInfo.CREATOR);\n } finally {\n _reply.recycle();\n _data.recycle();\n }\n return _result;\n }\n\n @Override\n public VolumeRecord[] getVolumeRecords(int _flags) throws RemoteException {\n Parcel _data = Parcel.obtain();\n Parcel _reply = Parcel.obtain();\n VolumeRecord[] _result;\n try {\n _data.writeInterfaceToken(DESCRIPTOR);\n _data.writeInt(_flags);\n mRemote.transact(Stub.TRANSACTION_getVolumeRecords, _data, _reply, 0);\n _reply.readException();\n _result = _reply.createTypedArray(VolumeRecord.CREATOR);\n } finally {\n _reply.recycle();\n _data.recycle();\n }\n return _result;\n }\n\n @Override\n public void mount(String volId) throws RemoteException {\n Parcel _data = Parcel.obtain();\n Parcel _reply = Parcel.obtain();\n try {\n _data.writeInterfaceToken(DESCRIPTOR);\n _data.writeString(volId);\n mRemote.transact(Stub.TRANSACTION_mount, _data, _reply, 0);\n _reply.readException();\n } finally {\n _reply.recycle();\n _data.recycle();\n }\n }\n\n @Override\n public void unmount(String volId) throws RemoteException {\n Parcel _data = Parcel.obtain();\n Parcel _reply = Parcel.obtain();\n try {\n _data.writeInterfaceToken(DESCRIPTOR);\n _data.writeString(volId);\n mRemote.transact(Stub.TRANSACTION_unmount, _data, _reply, 0);\n _reply.readException();\n } finally {\n _reply.recycle();\n _data.recycle();\n }\n }\n\n @Override\n public void format(String volId) throws RemoteException {\n Parcel _data = Parcel.obtain();\n Parcel _reply = Parcel.obtain();\n try {\n _data.writeInterfaceToken(DESCRIPTOR);\n _data.writeString(volId);\n mRemote.transact(Stub.TRANSACTION_format, _data, _reply, 0);\n _reply.readException();\n } finally {\n _reply.recycle();\n _data.recycle();\n }\n }\n\n @Override\n public long benchmark(String volId) throws RemoteException {\n Parcel _data = Parcel.obtain();\n Parcel _reply = Parcel.obtain();\n try {\n _data.writeInterfaceToken(DESCRIPTOR);\n _data.writeString(volId);\n mRemote.transact(Stub.TRANSACTION_benchmark, _data, _reply, 0);\n _reply.readException();\n return _reply.readLong();\n } finally {\n _reply.recycle();\n _data.recycle();\n }\n }\n\n @Override\n public void partitionPublic(String diskId) throws RemoteException {\n Parcel _data = Parcel.obtain();\n Parcel _reply = Parcel.obtain();\n try {\n _data.writeInterfaceToken(DESCRIPTOR);\n _data.writeString(diskId);\n mRemote.transact(Stub.TRANSACTION_partitionPublic, _data, _reply, 0);\n _reply.readException();\n } finally {\n _reply.recycle();\n _data.recycle();\n }\n }\n\n @Override\n public void partitionPrivate(String diskId) throws RemoteException {\n Parcel _data = Parcel.obtain();\n Parcel _reply = Parcel.obtain();\n try {\n _data.writeInterfaceToken(DESCRIPTOR);\n _data.writeString(diskId);\n mRemote.transact(Stub.TRANSACTION_partitionPrivate, _data, _reply, 0);\n _reply.readException();\n } finally {\n _reply.recycle();\n _data.recycle();\n }\n }\n\n @Override\n public void partitionMixed(String diskId, int ratio) throws RemoteException {\n Parcel _data = Parcel.obtain();\n Parcel _reply = Parcel.obtain();\n try {\n _data.writeInterfaceToken(DESCRIPTOR);\n _data.writeString(diskId);\n _data.writeInt(ratio);\n mRemote.transact(Stub.TRANSACTION_partitionMixed, _data, _reply, 0);\n _reply.readException();\n } finally {\n _reply.recycle();\n _data.recycle();\n }\n }\n\n @Override\n public void setVolumeNickname(String fsUuid, String nickname) throws RemoteException {\n Parcel _data = Parcel.obtain();\n Parcel _reply = Parcel.obtain();\n try {\n _data.writeInterfaceToken(DESCRIPTOR);\n _data.writeString(fsUuid);\n _data.writeString(nickname);\n mRemote.transact(Stub.TRANSACTION_setVolumeNickname, _data, _reply, 0);\n _reply.readException();\n } finally {\n _reply.recycle();\n _data.recycle();\n }\n }\n\n @Override\n public void setVolumeUserFlags(String fsUuid, int flags, int mask) throws RemoteException {\n Parcel _data = Parcel.obtain();\n Parcel _reply = Parcel.obtain();\n try {\n _data.writeInterfaceToken(DESCRIPTOR);\n _data.writeString(fsUuid);\n _data.writeInt(flags);\n _data.writeInt(mask);\n mRemote.transact(Stub.TRANSACTION_setVolumeUserFlags, _data, _reply, 0);\n _reply.readException();\n } finally {\n _reply.recycle();\n _data.recycle();\n }\n }\n\n @Override\n public void forgetVolume(String fsUuid) throws RemoteException {\n Parcel _data = Parcel.obtain();\n Parcel _reply = Parcel.obtain();\n try {\n _data.writeInterfaceToken(DESCRIPTOR);\n _data.writeString(fsUuid);\n mRemote.transact(Stub.TRANSACTION_forgetVolume, _data, _reply, 0);\n _reply.readException();\n } finally {\n _reply.recycle();\n _data.recycle();\n }\n }\n\n @Override\n public void forgetAllVolumes() throws RemoteException {\n Parcel _data = Parcel.obtain();\n Parcel _reply = Parcel.obtain();\n try {\n _data.writeInterfaceToken(DESCRIPTOR);\n mRemote.transact(Stub.TRANSACTION_forgetAllVolumes, _data, _reply, 0);\n _reply.readException();\n } finally {\n _reply.recycle();\n _data.recycle();\n }\n }\n\n @Override\n public void setDebugFlags(int _flags, int _mask) throws RemoteException {\n Parcel _data = Parcel.obtain();\n Parcel _reply = Parcel.obtain();\n try {\n _data.writeInterfaceToken(DESCRIPTOR);\n _data.writeInt(_flags);\n _data.writeInt(_mask);\n mRemote.transact(Stub.TRANSACTION_setDebugFlags, _data, _reply, 0);\n _reply.readException();\n } finally {\n _reply.recycle();\n _data.recycle();\n }\n }\n\n @Override\n public String getPrimaryStorageUuid() throws RemoteException {\n Parcel _data = Parcel.obtain();\n Parcel _reply = Parcel.obtain();\n String _result;\n try {\n _data.writeInterfaceToken(DESCRIPTOR);\n mRemote.transact(Stub.TRANSACTION_getPrimaryStorageUuid, _data, _reply, 0);\n _reply.readException();\n _result = _reply.readString();\n } finally {\n _reply.recycle();\n _data.recycle();\n }\n return _result;\n }\n\n @Override\n public void setPrimaryStorageUuid(String volumeUuid, IPackageMoveObserver callback)\n throws RemoteException {\n Parcel _data = Parcel.obtain();\n Parcel _reply = Parcel.obtain();\n try {\n _data.writeInterfaceToken(DESCRIPTOR);\n _data.writeString(volumeUuid);\n _data.writeStrongBinder((callback != null ? callback.asBinder() : null));\n mRemote.transact(Stub.TRANSACTION_setPrimaryStorageUuid, _data, _reply, 0);\n _reply.readException();\n } finally {\n _reply.recycle();\n _data.recycle();\n }\n }\n\n @Override\n public void createUserKey(int userId, int serialNumber, boolean ephemeral)\n throws RemoteException {\n Parcel _data = Parcel.obtain();\n Parcel _reply = Parcel.obtain();\n try {\n _data.writeInterfaceToken(DESCRIPTOR);\n _data.writeInt(userId);\n _data.writeInt(serialNumber);\n _data.writeInt(ephemeral ? 1 : 0);\n mRemote.transact(Stub.TRANSACTION_createUserKey, _data, _reply, 0);\n _reply.readException();\n } finally {\n _reply.recycle();\n _data.recycle();\n }\n }\n\n @Override\n public void destroyUserKey(int userId) throws RemoteException {\n Parcel _data = Parcel.obtain();\n Parcel _reply = Parcel.obtain();\n try {\n _data.writeInterfaceToken(DESCRIPTOR);\n _data.writeInt(userId);\n mRemote.transact(Stub.TRANSACTION_destroyUserKey, _data, _reply, 0);\n _reply.readException();\n } finally {\n _reply.recycle();\n _data.recycle();\n }\n }\n\n @Override\n public void addUserKeyAuth(int userId, int serialNumber,\n byte[] token, byte[] secret) throws RemoteException {\n Parcel _data = Parcel.obtain();\n Parcel _reply = Parcel.obtain();\n try {\n _data.writeInterfaceToken(DESCRIPTOR);\n _data.writeInt(userId);\n _data.writeInt(serialNumber);\n _data.writeByteArray(token);\n _data.writeByteArray(secret);\n mRemote.transact(Stub.TRANSACTION_addUserKeyAuth, _data, _reply, 0);\n _reply.readException();\n } finally {\n _reply.recycle();\n _data.recycle();\n }\n }\n\n @Override\n public void fixateNewestUserKeyAuth(int userId) throws RemoteException {\n Parcel _data = Parcel.obtain();\n Parcel _reply = Parcel.obtain();\n try {\n _data.writeInterfaceToken(DESCRIPTOR);\n _data.writeInt(userId);\n mRemote.transact(Stub.TRANSACTION_fixateNewestUserKeyAuth, _data, _reply, 0);\n _reply.readException();\n } finally {\n _reply.recycle();\n _data.recycle();\n }\n }\n\n @Override\n public void unlockUserKey(int userId, int serialNumber,\n byte[] token, byte[] secret) throws RemoteException {\n Parcel _data = Parcel.obtain();\n Parcel _reply = Parcel.obtain();\n try {\n _data.writeInterfaceToken(DESCRIPTOR);\n _data.writeInt(userId);\n _data.writeInt(serialNumber);\n _data.writeByteArray(token);\n _data.writeByteArray(secret);\n mRemote.transact(Stub.TRANSACTION_unlockUserKey, _data, _reply, 0);\n _reply.readException();\n } finally {\n _reply.recycle();\n _data.recycle();\n }\n }\n\n @Override\n public void lockUserKey(int userId) throws RemoteException {\n Parcel _data = Parcel.obtain();\n Parcel _reply = Parcel.obtain();\n try {\n _data.writeInterfaceToken(DESCRIPTOR);\n _data.writeInt(userId);\n mRemote.transact(Stub.TRANSACTION_lockUserKey, _data, _reply, 0);\n _reply.readException();\n } finally {\n _reply.recycle();\n _data.recycle();\n }\n }\n\n @Override\n public boolean isUserKeyUnlocked(int userId) throws RemoteException {\n Parcel _data = Parcel.obtain();\n Parcel _reply = Parcel.obtain();\n boolean _result;\n try {\n _data.writeInterfaceToken(DESCRIPTOR);\n _data.writeInt(userId);\n mRemote.transact(Stub.TRANSACTION_isUserKeyUnlocked, _data, _reply, 0);\n _reply.readException();\n _result = 0 != _reply.readInt();\n } finally {\n _reply.recycle();\n _data.recycle();\n }\n return _result;\n }\n\n @Override\n public void prepareUserStorage(\n String volumeUuid, int userId, int serialNumber, int flags)\n throws RemoteException {\n Parcel _data = Parcel.obtain();\n Parcel _reply = Parcel.obtain();\n try {\n _data.writeInterfaceToken(DESCRIPTOR);\n _data.writeString(volumeUuid);\n _data.writeInt(userId);\n _data.writeInt(serialNumber);\n _data.writeInt(flags);\n mRemote.transact(Stub.TRANSACTION_prepareUserStorage, _data, _reply, 0);\n _reply.readException();\n } finally {\n _reply.recycle();\n _data.recycle();\n }\n }\n\n @Override\n public void destroyUserStorage(String volumeUuid, int userId, int flags)\n throws RemoteException {\n Parcel _data = Parcel.obtain();\n Parcel _reply = Parcel.obtain();\n try {\n _data.writeInterfaceToken(DESCRIPTOR);\n _data.writeString(volumeUuid);\n _data.writeInt(userId);\n _data.writeInt(flags);\n mRemote.transact(Stub.TRANSACTION_destroyUserStorage, _data, _reply, 0);\n _reply.readException();\n } finally {\n _reply.recycle();\n _data.recycle();\n }\n }\n\n @Override\n public ParcelFileDescriptor mountAppFuse(String name) throws RemoteException {\n Parcel _data = Parcel.obtain();\n Parcel _reply = Parcel.obtain();\n ParcelFileDescriptor _result = null;\n try {\n _data.writeInterfaceToken(DESCRIPTOR);\n _data.writeString(name);\n mRemote.transact(Stub.TRANSACTION_mountAppFuse, _data, _reply, 0);\n _reply.readException();\n _result = _reply.<ParcelFileDescriptor>readParcelable(\n ClassLoader.getSystemClassLoader());\n } finally {\n _reply.recycle();\n _data.recycle();\n }\n return _result;\n }\n }\n\n private static final String DESCRIPTOR = \"IMountService\";\n\n static final int TRANSACTION_registerListener = IBinder.FIRST_CALL_TRANSACTION + 0;\n\n static final int TRANSACTION_unregisterListener = IBinder.FIRST_CALL_TRANSACTION + 1;\n\n static final int TRANSACTION_isUsbMassStorageConnected = IBinder.FIRST_CALL_TRANSACTION + 2;\n\n static final int TRANSACTION_setUsbMassStorageEnabled = IBinder.FIRST_CALL_TRANSACTION + 3;\n\n static final int TRANSACTION_isUsbMassStorageEnabled = IBinder.FIRST_CALL_TRANSACTION + 4;\n\n static final int TRANSACTION_mountVolume = IBinder.FIRST_CALL_TRANSACTION + 5;\n\n static final int TRANSACTION_unmountVolume = IBinder.FIRST_CALL_TRANSACTION + 6;\n\n static final int TRANSACTION_formatVolume = IBinder.FIRST_CALL_TRANSACTION + 7;\n\n static final int TRANSACTION_getStorageUsers = IBinder.FIRST_CALL_TRANSACTION + 8;\n\n static final int TRANSACTION_getVolumeState = IBinder.FIRST_CALL_TRANSACTION + 9;\n\n static final int TRANSACTION_createSecureContainer = IBinder.FIRST_CALL_TRANSACTION + 10;\n\n static final int TRANSACTION_finalizeSecureContainer = IBinder.FIRST_CALL_TRANSACTION + 11;\n\n static final int TRANSACTION_destroySecureContainer = IBinder.FIRST_CALL_TRANSACTION + 12;\n\n static final int TRANSACTION_mountSecureContainer = IBinder.FIRST_CALL_TRANSACTION + 13;\n\n static final int TRANSACTION_unmountSecureContainer = IBinder.FIRST_CALL_TRANSACTION + 14;\n\n static final int TRANSACTION_isSecureContainerMounted = IBinder.FIRST_CALL_TRANSACTION + 15;\n\n static final int TRANSACTION_renameSecureContainer = IBinder.FIRST_CALL_TRANSACTION + 16;\n\n static final int TRANSACTION_getSecureContainerPath = IBinder.FIRST_CALL_TRANSACTION + 17;\n\n static final int TRANSACTION_getSecureContainerList = IBinder.FIRST_CALL_TRANSACTION + 18;\n\n static final int TRANSACTION_shutdown = IBinder.FIRST_CALL_TRANSACTION + 19;\n\n static final int TRANSACTION_finishMediaUpdate = IBinder.FIRST_CALL_TRANSACTION + 20;\n\n static final int TRANSACTION_mountObb = IBinder.FIRST_CALL_TRANSACTION + 21;\n\n static final int TRANSACTION_unmountObb = IBinder.FIRST_CALL_TRANSACTION + 22;\n\n static final int TRANSACTION_isObbMounted = IBinder.FIRST_CALL_TRANSACTION + 23;\n\n static final int TRANSACTION_getMountedObbPath = IBinder.FIRST_CALL_TRANSACTION + 24;\n\n static final int TRANSACTION_isExternalStorageEmulated = IBinder.FIRST_CALL_TRANSACTION + 25;\n\n static final int TRANSACTION_decryptStorage = IBinder.FIRST_CALL_TRANSACTION + 26;\n\n static final int TRANSACTION_encryptStorage = IBinder.FIRST_CALL_TRANSACTION + 27;\n\n static final int TRANSACTION_changeEncryptionPassword = IBinder.FIRST_CALL_TRANSACTION + 28;\n\n static final int TRANSACTION_getVolumeList = IBinder.FIRST_CALL_TRANSACTION + 29;\n\n static final int TRANSACTION_getSecureContainerFilesystemPath = IBinder.FIRST_CALL_TRANSACTION + 30;\n\n static final int TRANSACTION_getEncryptionState = IBinder.FIRST_CALL_TRANSACTION + 31;\n\n static final int TRANSACTION_verifyEncryptionPassword = IBinder.FIRST_CALL_TRANSACTION + 32;\n\n static final int TRANSACTION_fixPermissionsSecureContainer = IBinder.FIRST_CALL_TRANSACTION + 33;\n\n static final int TRANSACTION_mkdirs = IBinder.FIRST_CALL_TRANSACTION + 34;\n\n static final int TRANSACTION_getPasswordType = IBinder.FIRST_CALL_TRANSACTION + 35;\n\n static final int TRANSACTION_getPassword = IBinder.FIRST_CALL_TRANSACTION + 36;\n\n static final int TRANSACTION_clearPassword = IBinder.FIRST_CALL_TRANSACTION + 37;\n\n static final int TRANSACTION_setField = IBinder.FIRST_CALL_TRANSACTION + 38;\n\n static final int TRANSACTION_getField = IBinder.FIRST_CALL_TRANSACTION + 39;\n\n static final int TRANSACTION_resizeSecureContainer = IBinder.FIRST_CALL_TRANSACTION + 40;\n\n static final int TRANSACTION_lastMaintenance = IBinder.FIRST_CALL_TRANSACTION + 41;\n\n static final int TRANSACTION_runMaintenance = IBinder.FIRST_CALL_TRANSACTION + 42;\n\n static final int TRANSACTION_waitForAsecScan = IBinder.FIRST_CALL_TRANSACTION + 43;\n\n static final int TRANSACTION_getDisks = IBinder.FIRST_CALL_TRANSACTION + 44;\n static final int TRANSACTION_getVolumes = IBinder.FIRST_CALL_TRANSACTION + 45;\n static final int TRANSACTION_getVolumeRecords = IBinder.FIRST_CALL_TRANSACTION + 46;\n\n static final int TRANSACTION_mount = IBinder.FIRST_CALL_TRANSACTION + 47;\n static final int TRANSACTION_unmount = IBinder.FIRST_CALL_TRANSACTION + 48;\n static final int TRANSACTION_format = IBinder.FIRST_CALL_TRANSACTION + 49;\n\n static final int TRANSACTION_partitionPublic = IBinder.FIRST_CALL_TRANSACTION + 50;\n static final int TRANSACTION_partitionPrivate = IBinder.FIRST_CALL_TRANSACTION + 51;\n static final int TRANSACTION_partitionMixed = IBinder.FIRST_CALL_TRANSACTION + 52;\n\n static final int TRANSACTION_setVolumeNickname = IBinder.FIRST_CALL_TRANSACTION + 53;\n static final int TRANSACTION_setVolumeUserFlags = IBinder.FIRST_CALL_TRANSACTION + 54;\n static final int TRANSACTION_forgetVolume = IBinder.FIRST_CALL_TRANSACTION + 55;\n static final int TRANSACTION_forgetAllVolumes = IBinder.FIRST_CALL_TRANSACTION + 56;\n\n static final int TRANSACTION_getPrimaryStorageUuid = IBinder.FIRST_CALL_TRANSACTION + 57;\n static final int TRANSACTION_setPrimaryStorageUuid = IBinder.FIRST_CALL_TRANSACTION + 58;\n\n static final int TRANSACTION_benchmark = IBinder.FIRST_CALL_TRANSACTION + 59;\n static final int TRANSACTION_setDebugFlags = IBinder.FIRST_CALL_TRANSACTION + 60;\n\n static final int TRANSACTION_createUserKey = IBinder.FIRST_CALL_TRANSACTION + 61;\n static final int TRANSACTION_destroyUserKey = IBinder.FIRST_CALL_TRANSACTION + 62;\n\n static final int TRANSACTION_unlockUserKey = IBinder.FIRST_CALL_TRANSACTION + 63;\n static final int TRANSACTION_lockUserKey = IBinder.FIRST_CALL_TRANSACTION + 64;\n static final int TRANSACTION_isUserKeyUnlocked = IBinder.FIRST_CALL_TRANSACTION + 65;\n\n static final int TRANSACTION_prepareUserStorage = IBinder.FIRST_CALL_TRANSACTION + 66;\n static final int TRANSACTION_destroyUserStorage = IBinder.FIRST_CALL_TRANSACTION + 67;\n\n static final int TRANSACTION_isConvertibleToFBE = IBinder.FIRST_CALL_TRANSACTION + 68;\n\n static final int TRANSACTION_mountAppFuse = IBinder.FIRST_CALL_TRANSACTION + 69;\n\n static final int TRANSACTION_addUserKeyAuth = IBinder.FIRST_CALL_TRANSACTION + 70;\n\n static final int TRANSACTION_fixateNewestUserKeyAuth = IBinder.FIRST_CALL_TRANSACTION + 71;\n\n /**\n * Cast an IBinder object into an IMountService interface, generating a\n * proxy if needed.\n */\n public static IMountService asInterface(IBinder obj) {\n if (obj == null) {\n return null;\n }\n IInterface iin = obj.queryLocalInterface(DESCRIPTOR);\n if (iin != null && iin instanceof IMountService) {\n return (IMountService) iin;\n }\n return new IMountService.Stub.Proxy(obj);\n }\n\n /** Construct the stub at attach it to the interface. */\n public Stub() {\n attachInterface(this, DESCRIPTOR);\n }\n\n public IBinder asBinder() {\n return this;\n }\n\n @Override\n public boolean onTransact(int code, Parcel data, Parcel reply,\n int flags) throws RemoteException {\n switch (code) {\n case INTERFACE_TRANSACTION: {\n reply.writeString(DESCRIPTOR);\n return true;\n }\n case TRANSACTION_registerListener: {\n data.enforceInterface(DESCRIPTOR);\n IMountServiceListener listener;\n listener = IMountServiceListener.Stub.asInterface(data.readStrongBinder());\n registerListener(listener);\n reply.writeNoException();\n return true;\n }\n case TRANSACTION_unregisterListener: {\n data.enforceInterface(DESCRIPTOR);\n IMountServiceListener listener;\n listener = IMountServiceListener.Stub.asInterface(data.readStrongBinder());\n unregisterListener(listener);\n reply.writeNoException();\n return true;\n }\n case TRANSACTION_isUsbMassStorageConnected: {\n data.enforceInterface(DESCRIPTOR);\n boolean result = isUsbMassStorageConnected();\n reply.writeNoException();\n reply.writeInt((result ? 1 : 0));\n return true;\n }\n case TRANSACTION_setUsbMassStorageEnabled: {\n data.enforceInterface(DESCRIPTOR);\n boolean enable;\n enable = 0 != data.readInt();\n setUsbMassStorageEnabled(enable);\n reply.writeNoException();\n return true;\n }\n case TRANSACTION_isUsbMassStorageEnabled: {\n data.enforceInterface(DESCRIPTOR);\n boolean result = isUsbMassStorageEnabled();\n reply.writeNoException();\n reply.writeInt((result ? 1 : 0));\n return true;\n }\n case TRANSACTION_mountVolume: {\n data.enforceInterface(DESCRIPTOR);\n String mountPoint;\n mountPoint = data.readString();\n int resultCode = mountVolume(mountPoint);\n reply.writeNoException();\n reply.writeInt(resultCode);\n return true;\n }\n case TRANSACTION_unmountVolume: {\n data.enforceInterface(DESCRIPTOR);\n String mountPoint;\n mountPoint = data.readString();\n boolean force = 0 != data.readInt();\n boolean removeEncrypt = 0 != data.readInt();\n unmountVolume(mountPoint, force, removeEncrypt);\n reply.writeNoException();\n return true;\n }\n case TRANSACTION_formatVolume: {\n data.enforceInterface(DESCRIPTOR);\n String mountPoint;\n mountPoint = data.readString();\n int result = formatVolume(mountPoint);\n reply.writeNoException();\n reply.writeInt(result);\n return true;\n }\n case TRANSACTION_getStorageUsers: {\n data.enforceInterface(DESCRIPTOR);\n String path;\n path = data.readString();\n int[] pids = getStorageUsers(path);\n reply.writeNoException();\n reply.writeIntArray(pids);\n return true;\n }\n case TRANSACTION_getVolumeState: {\n data.enforceInterface(DESCRIPTOR);\n String mountPoint;\n mountPoint = data.readString();\n String state = getVolumeState(mountPoint);\n reply.writeNoException();\n reply.writeString(state);\n return true;\n }\n case TRANSACTION_createSecureContainer: {\n data.enforceInterface(DESCRIPTOR);\n String id;\n id = data.readString();\n int sizeMb;\n sizeMb = data.readInt();\n String fstype;\n fstype = data.readString();\n String key;\n key = data.readString();\n int ownerUid;\n ownerUid = data.readInt();\n boolean external;\n external = 0 != data.readInt();\n int resultCode = createSecureContainer(id, sizeMb, fstype, key, ownerUid,\n external);\n reply.writeNoException();\n reply.writeInt(resultCode);\n return true;\n }\n case TRANSACTION_finalizeSecureContainer: {\n data.enforceInterface(DESCRIPTOR);\n String id;\n id = data.readString();\n int resultCode = finalizeSecureContainer(id);\n reply.writeNoException();\n reply.writeInt(resultCode);\n return true;\n }\n case TRANSACTION_destroySecureContainer: {\n data.enforceInterface(DESCRIPTOR);\n String id;\n id = data.readString();\n boolean force;\n force = 0 != data.readInt();\n int resultCode = destroySecureContainer(id, force);\n reply.writeNoException();\n reply.writeInt(resultCode);\n return true;\n }\n case TRANSACTION_mountSecureContainer: {\n data.enforceInterface(DESCRIPTOR);\n String id;\n id = data.readString();\n String key;\n key = data.readString();\n int ownerUid;\n ownerUid = data.readInt();\n boolean readOnly;\n readOnly = data.readInt() != 0;\n int resultCode = mountSecureContainer(id, key, ownerUid, readOnly);\n reply.writeNoException();\n reply.writeInt(resultCode);\n return true;\n }\n case TRANSACTION_unmountSecureContainer: {\n data.enforceInterface(DESCRIPTOR);\n String id;\n id = data.readString();\n boolean force;\n force = 0 != data.readInt();\n int resultCode = unmountSecureContainer(id, force);\n reply.writeNoException();\n reply.writeInt(resultCode);\n return true;\n }\n case TRANSACTION_isSecureContainerMounted: {\n data.enforceInterface(DESCRIPTOR);\n String id;\n id = data.readString();\n boolean status = isSecureContainerMounted(id);\n reply.writeNoException();\n reply.writeInt((status ? 1 : 0));\n return true;\n }\n case TRANSACTION_renameSecureContainer: {\n data.enforceInterface(DESCRIPTOR);\n String oldId;\n oldId = data.readString();\n String newId;\n newId = data.readString();\n int resultCode = renameSecureContainer(oldId, newId);\n reply.writeNoException();\n reply.writeInt(resultCode);\n return true;\n }\n case TRANSACTION_getSecureContainerPath: {\n data.enforceInterface(DESCRIPTOR);\n String id;\n id = data.readString();\n String path = getSecureContainerPath(id);\n reply.writeNoException();\n reply.writeString(path);\n return true;\n }\n case TRANSACTION_getSecureContainerList: {\n data.enforceInterface(DESCRIPTOR);\n String[] ids = getSecureContainerList();\n reply.writeNoException();\n reply.writeStringArray(ids);\n return true;\n }\n case TRANSACTION_shutdown: {\n data.enforceInterface(DESCRIPTOR);\n IMountShutdownObserver observer;\n observer = IMountShutdownObserver.Stub.asInterface(data\n .readStrongBinder());\n shutdown(observer);\n reply.writeNoException();\n return true;\n }\n case TRANSACTION_finishMediaUpdate: {\n data.enforceInterface(DESCRIPTOR);\n finishMediaUpdate();\n reply.writeNoException();\n return true;\n }\n case TRANSACTION_mountObb: {\n data.enforceInterface(DESCRIPTOR);\n final String rawPath = data.readString();\n final String canonicalPath = data.readString();\n final String key = data.readString();\n IObbActionListener observer;\n observer = IObbActionListener.Stub.asInterface(data.readStrongBinder());\n int nonce;\n nonce = data.readInt();\n mountObb(rawPath, canonicalPath, key, observer, nonce);\n reply.writeNoException();\n return true;\n }\n case TRANSACTION_unmountObb: {\n data.enforceInterface(DESCRIPTOR);\n String filename;\n filename = data.readString();\n boolean force;\n force = 0 != data.readInt();\n IObbActionListener observer;\n observer = IObbActionListener.Stub.asInterface(data.readStrongBinder());\n int nonce;\n nonce = data.readInt();\n unmountObb(filename, force, observer, nonce);\n reply.writeNoException();\n return true;\n }\n case TRANSACTION_isObbMounted: {\n data.enforceInterface(DESCRIPTOR);\n String filename;\n filename = data.readString();\n boolean status = isObbMounted(filename);\n reply.writeNoException();\n reply.writeInt((status ? 1 : 0));\n return true;\n }\n case TRANSACTION_getMountedObbPath: {\n data.enforceInterface(DESCRIPTOR);\n String filename;\n filename = data.readString();\n String mountedPath = getMountedObbPath(filename);\n reply.writeNoException();\n reply.writeString(mountedPath);\n return true;\n }\n case TRANSACTION_isExternalStorageEmulated: {\n data.enforceInterface(DESCRIPTOR);\n boolean emulated = isExternalStorageEmulated();\n reply.writeNoException();\n reply.writeInt(emulated ? 1 : 0);\n return true;\n }\n case TRANSACTION_decryptStorage: {\n data.enforceInterface(DESCRIPTOR);\n String password = data.readString();\n int result = decryptStorage(password);\n reply.writeNoException();\n reply.writeInt(result);\n return true;\n }\n case TRANSACTION_encryptStorage: {\n data.enforceInterface(DESCRIPTOR);\n int type = data.readInt();\n String password = data.readString();\n int result = encryptStorage(type, password);\n reply.writeNoException();\n reply.writeInt(result);\n return true;\n }\n case TRANSACTION_changeEncryptionPassword: {\n data.enforceInterface(DESCRIPTOR);\n int type = data.readInt();\n String password = data.readString();\n int result = changeEncryptionPassword(type, password);\n reply.writeNoException();\n reply.writeInt(result);\n return true;\n }\n case TRANSACTION_getVolumeList: {\n data.enforceInterface(DESCRIPTOR);\n int uid = data.readInt();\n String packageName = data.readString();\n int _flags = data.readInt();\n StorageVolume[] result = getVolumeList(uid, packageName, _flags);\n reply.writeNoException();\n reply.writeTypedArray(result, android.os.Parcelable.PARCELABLE_WRITE_RETURN_VALUE);\n return true;\n }\n case TRANSACTION_getSecureContainerFilesystemPath: {\n data.enforceInterface(DESCRIPTOR);\n String id;\n id = data.readString();\n String path = getSecureContainerFilesystemPath(id);\n reply.writeNoException();\n reply.writeString(path);\n return true;\n }\n case TRANSACTION_getEncryptionState: {\n data.enforceInterface(DESCRIPTOR);\n int result = getEncryptionState();\n reply.writeNoException();\n reply.writeInt(result);\n return true;\n }\n case TRANSACTION_fixPermissionsSecureContainer: {\n data.enforceInterface(DESCRIPTOR);\n String id;\n id = data.readString();\n int gid;\n gid = data.readInt();\n String filename;\n filename = data.readString();\n int resultCode = fixPermissionsSecureContainer(id, gid, filename);\n reply.writeNoException();\n reply.writeInt(resultCode);\n return true;\n }\n case TRANSACTION_mkdirs: {\n data.enforceInterface(DESCRIPTOR);\n String callingPkg = data.readString();\n String path = data.readString();\n int result = mkdirs(callingPkg, path);\n reply.writeNoException();\n reply.writeInt(result);\n return true;\n }\n case TRANSACTION_getPasswordType: {\n data.enforceInterface(DESCRIPTOR);\n int result = getPasswordType();\n reply.writeNoException();\n reply.writeInt(result);\n return true;\n }\n case TRANSACTION_getPassword: {\n data.enforceInterface(DESCRIPTOR);\n String result = getPassword();\n reply.writeNoException();\n reply.writeString(result);\n return true;\n }\n case TRANSACTION_clearPassword: {\n data.enforceInterface(DESCRIPTOR);\n clearPassword();\n reply.writeNoException();\n return true;\n }\n case TRANSACTION_setField: {\n data.enforceInterface(DESCRIPTOR);\n String field = data.readString();\n String contents = data.readString();\n setField(field, contents);\n reply.writeNoException();\n return true;\n }\n case TRANSACTION_getField: {\n data.enforceInterface(DESCRIPTOR);\n String field = data.readString();\n String contents = getField(field);\n reply.writeNoException();\n reply.writeString(contents);\n return true;\n }\n case TRANSACTION_isConvertibleToFBE: {\n data.enforceInterface(DESCRIPTOR);\n int resultCode = isConvertibleToFBE() ? 1 : 0;\n reply.writeNoException();\n reply.writeInt(resultCode);\n return true;\n }\n case TRANSACTION_resizeSecureContainer: {\n data.enforceInterface(DESCRIPTOR);\n String id;\n id = data.readString();\n int sizeMb;\n sizeMb = data.readInt();\n String key;\n key = data.readString();\n int resultCode = resizeSecureContainer(id, sizeMb, key);\n reply.writeNoException();\n reply.writeInt(resultCode);\n return true;\n }\n case TRANSACTION_lastMaintenance: {\n data.enforceInterface(DESCRIPTOR);\n long lastMaintenance = lastMaintenance();\n reply.writeNoException();\n reply.writeLong(lastMaintenance);\n return true;\n }\n case TRANSACTION_runMaintenance: {\n data.enforceInterface(DESCRIPTOR);\n runMaintenance();\n reply.writeNoException();\n return true;\n }\n case TRANSACTION_waitForAsecScan: {\n data.enforceInterface(DESCRIPTOR);\n waitForAsecScan();\n reply.writeNoException();\n return true;\n }\n case TRANSACTION_getDisks: {\n data.enforceInterface(DESCRIPTOR);\n DiskInfo[] disks = getDisks();\n reply.writeNoException();\n reply.writeTypedArray(disks, android.os.Parcelable.PARCELABLE_WRITE_RETURN_VALUE);\n return true;\n }\n case TRANSACTION_getVolumes: {\n data.enforceInterface(DESCRIPTOR);\n int _flags = data.readInt();\n VolumeInfo[] volumes = getVolumes(_flags);\n reply.writeNoException();\n reply.writeTypedArray(volumes, android.os.Parcelable.PARCELABLE_WRITE_RETURN_VALUE);\n return true;\n }\n case TRANSACTION_getVolumeRecords: {\n data.enforceInterface(DESCRIPTOR);\n int _flags = data.readInt();\n VolumeRecord[] volumes = getVolumeRecords(_flags);\n reply.writeNoException();\n reply.writeTypedArray(volumes, android.os.Parcelable.PARCELABLE_WRITE_RETURN_VALUE);\n return true;\n }\n case TRANSACTION_mount: {\n data.enforceInterface(DESCRIPTOR);\n String volId = data.readString();\n mount(volId);\n reply.writeNoException();\n return true;\n }\n case TRANSACTION_unmount: {\n data.enforceInterface(DESCRIPTOR);\n String volId = data.readString();\n unmount(volId);\n reply.writeNoException();\n return true;\n }\n case TRANSACTION_format: {\n data.enforceInterface(DESCRIPTOR);\n String volId = data.readString();\n format(volId);\n reply.writeNoException();\n return true;\n }\n case TRANSACTION_benchmark: {\n data.enforceInterface(DESCRIPTOR);\n String volId = data.readString();\n long res = benchmark(volId);\n reply.writeNoException();\n reply.writeLong(res);\n return true;\n }\n case TRANSACTION_partitionPublic: {\n data.enforceInterface(DESCRIPTOR);\n String diskId = data.readString();\n partitionPublic(diskId);\n reply.writeNoException();\n return true;\n }\n case TRANSACTION_partitionPrivate: {\n data.enforceInterface(DESCRIPTOR);\n String diskId = data.readString();\n partitionPrivate(diskId);\n reply.writeNoException();\n return true;\n }\n case TRANSACTION_partitionMixed: {\n data.enforceInterface(DESCRIPTOR);\n String diskId = data.readString();\n int ratio = data.readInt();\n partitionMixed(diskId, ratio);\n reply.writeNoException();\n return true;\n }\n case TRANSACTION_setVolumeNickname: {\n data.enforceInterface(DESCRIPTOR);\n String volId = data.readString();\n String nickname = data.readString();\n setVolumeNickname(volId, nickname);\n reply.writeNoException();\n return true;\n }\n case TRANSACTION_setVolumeUserFlags: {\n data.enforceInterface(DESCRIPTOR);\n String volId = data.readString();\n int _flags = data.readInt();\n int _mask = data.readInt();\n setVolumeUserFlags(volId, _flags, _mask);\n reply.writeNoException();\n return true;\n }\n case TRANSACTION_forgetVolume: {\n data.enforceInterface(DESCRIPTOR);\n String fsUuid = data.readString();\n forgetVolume(fsUuid);\n reply.writeNoException();\n return true;\n }\n case TRANSACTION_forgetAllVolumes: {\n data.enforceInterface(DESCRIPTOR);\n forgetAllVolumes();\n reply.writeNoException();\n return true;\n }\n case TRANSACTION_setDebugFlags: {\n data.enforceInterface(DESCRIPTOR);\n int _flags = data.readInt();\n int _mask = data.readInt();\n setDebugFlags(_flags, _mask);\n reply.writeNoException();\n return true;\n }\n case TRANSACTION_getPrimaryStorageUuid: {\n data.enforceInterface(DESCRIPTOR);\n String volumeUuid = getPrimaryStorageUuid();\n reply.writeNoException();\n reply.writeString(volumeUuid);\n return true;\n }\n case TRANSACTION_setPrimaryStorageUuid: {\n data.enforceInterface(DESCRIPTOR);\n String volumeUuid = data.readString();\n IPackageMoveObserver listener = IPackageMoveObserver.Stub.asInterface(\n data.readStrongBinder());\n setPrimaryStorageUuid(volumeUuid, listener);\n reply.writeNoException();\n return true;\n }\n case TRANSACTION_createUserKey: {\n data.enforceInterface(DESCRIPTOR);\n int userId = data.readInt();\n int serialNumber = data.readInt();\n boolean ephemeral = data.readInt() != 0;\n createUserKey(userId, serialNumber, ephemeral);\n reply.writeNoException();\n return true;\n }\n case TRANSACTION_destroyUserKey: {\n data.enforceInterface(DESCRIPTOR);\n int userId = data.readInt();\n destroyUserKey(userId);\n reply.writeNoException();\n return true;\n }\n case TRANSACTION_addUserKeyAuth: {\n data.enforceInterface(DESCRIPTOR);\n int userId = data.readInt();\n int serialNumber = data.readInt();\n byte[] token = data.createByteArray();\n byte[] secret = data.createByteArray();\n addUserKeyAuth(userId, serialNumber, token, secret);\n reply.writeNoException();\n return true;\n }\n case TRANSACTION_fixateNewestUserKeyAuth: {\n data.enforceInterface(DESCRIPTOR);\n int userId = data.readInt();\n fixateNewestUserKeyAuth(userId);\n reply.writeNoException();\n return true;\n }\n case TRANSACTION_unlockUserKey: {\n data.enforceInterface(DESCRIPTOR);\n int userId = data.readInt();\n int serialNumber = data.readInt();\n byte[] token = data.createByteArray();\n byte[] secret = data.createByteArray();\n unlockUserKey(userId, serialNumber, token, secret);\n reply.writeNoException();\n return true;\n }\n case TRANSACTION_lockUserKey: {\n data.enforceInterface(DESCRIPTOR);\n int userId = data.readInt();\n lockUserKey(userId);\n reply.writeNoException();\n return true;\n }\n case TRANSACTION_isUserKeyUnlocked: {\n data.enforceInterface(DESCRIPTOR);\n int userId = data.readInt();\n boolean result = isUserKeyUnlocked(userId);\n reply.writeNoException();\n reply.writeInt(result ? 1 : 0);\n return true;\n }\n case TRANSACTION_prepareUserStorage: {\n data.enforceInterface(DESCRIPTOR);\n String volumeUuid = data.readString();\n int userId = data.readInt();\n int serialNumber = data.readInt();\n int _flags = data.readInt();\n prepareUserStorage(volumeUuid, userId, serialNumber, _flags);\n reply.writeNoException();\n return true;\n }\n case TRANSACTION_destroyUserStorage: {\n data.enforceInterface(DESCRIPTOR);\n String volumeUuid = data.readString();\n int userId = data.readInt();\n int _flags = data.readInt();\n destroyUserStorage(volumeUuid, userId, _flags);\n reply.writeNoException();\n return true;\n }\n case TRANSACTION_mountAppFuse: {\n data.enforceInterface(DESCRIPTOR);\n String name = data.readString();\n ParcelFileDescriptor fd = mountAppFuse(name);\n reply.writeNoException();\n reply.writeParcelable(fd, Parcelable.PARCELABLE_WRITE_RETURN_VALUE);\n return true;\n }\n }\n return super.onTransact(code, data, reply, flags);\n }\n }\n\n /*\n * Creates a secure container with the specified parameters. Returns an int\n * consistent with MountServiceResultCode\n */\n public int createSecureContainer(String id, int sizeMb, String fstype, String key,\n int ownerUid, boolean external) throws RemoteException;\n\n /*\n * Destroy a secure container, and free up all resources associated with it.\n * NOTE: Ensure all references are released prior to deleting. Returns an\n * int consistent with MountServiceResultCode\n */\n public int destroySecureContainer(String id, boolean force) throws RemoteException;\n\n /*\n * Finalize a container which has just been created and populated. After\n * finalization, the container is immutable. Returns an int consistent with\n * MountServiceResultCode\n */\n public int finalizeSecureContainer(String id) throws RemoteException;\n\n /**\n * Call into MountService by PackageManager to notify that its done\n * processing the media status update request.\n */\n public void finishMediaUpdate() throws RemoteException;\n\n /**\n * Format external storage given a mount point. Returns an int consistent\n * with MountServiceResultCode\n */\n public int formatVolume(String mountPoint) throws RemoteException;\n\n /**\n * Gets the path to the mounted Opaque Binary Blob (OBB).\n */\n public String getMountedObbPath(String rawPath) throws RemoteException;\n\n /**\n * Gets an Array of currently known secure container IDs\n */\n public String[] getSecureContainerList() throws RemoteException;\n\n /*\n * Returns the filesystem path of a mounted secure container.\n */\n public String getSecureContainerPath(String id) throws RemoteException;\n\n /**\n * Returns an array of pids with open files on the specified path.\n */\n public int[] getStorageUsers(String path) throws RemoteException;\n\n /**\n * Gets the state of a volume via its mountpoint.\n */\n public String getVolumeState(String mountPoint) throws RemoteException;\n\n /**\n * Checks whether the specified Opaque Binary Blob (OBB) is mounted\n * somewhere.\n */\n public boolean isObbMounted(String rawPath) throws RemoteException;\n\n /*\n * Returns true if the specified container is mounted\n */\n public boolean isSecureContainerMounted(String id) throws RemoteException;\n\n /**\n * Returns true if a USB mass storage host is connected\n */\n public boolean isUsbMassStorageConnected() throws RemoteException;\n\n /**\n * Returns true if a USB mass storage host is enabled (media is shared)\n */\n public boolean isUsbMassStorageEnabled() throws RemoteException;\n\n /**\n * Mounts an Opaque Binary Blob (OBB) with the specified decryption key and\n * only allows the calling process's UID access to the contents.\n * MountService will call back to the supplied IObbActionListener to inform\n * it of the terminal state of the call.\n */\n public void mountObb(String rawPath, String canonicalPath, String key,\n IObbActionListener token, int nonce) throws RemoteException;\n\n /*\n * Mount a secure container with the specified key and owner UID. Returns an\n * int consistent with MountServiceResultCode\n */\n public int mountSecureContainer(String id, String key, int ownerUid, boolean readOnly)\n throws RemoteException;\n\n /**\n * Mount external storage at given mount point. Returns an int consistent\n * with MountServiceResultCode\n */\n public int mountVolume(String mountPoint) throws RemoteException;\n\n /**\n * Registers an IMountServiceListener for receiving async notifications.\n */\n public void registerListener(IMountServiceListener listener) throws RemoteException;\n\n /*\n * Rename an unmounted secure container. Returns an int consistent with\n * MountServiceResultCode\n */\n public int renameSecureContainer(String oldId, String newId) throws RemoteException;\n\n /**\n * Enables / disables USB mass storage. The caller should check actual\n * status of enabling/disabling USB mass storage via StorageEventListener.\n */\n public void setUsbMassStorageEnabled(boolean enable) throws RemoteException;\n\n /**\n * Shuts down the MountService and gracefully unmounts all external media.\n * Invokes call back once the shutdown is complete.\n */\n public void shutdown(IMountShutdownObserver observer) throws RemoteException;\n\n /**\n * Unmounts an Opaque Binary Blob (OBB). When the force flag is specified,\n * any program using it will be forcibly killed to unmount the image.\n * MountService will call back to the supplied IObbActionListener to inform\n * it of the terminal state of the call.\n */\n public void unmountObb(String rawPath, boolean force, IObbActionListener token, int nonce)\n throws RemoteException;\n\n /*\n * Unount a secure container. Returns an int consistent with\n * MountServiceResultCode\n */\n public int unmountSecureContainer(String id, boolean force) throws RemoteException;\n\n /**\n * Safely unmount external storage at given mount point. The unmount is an\n * asynchronous operation. Applications should register StorageEventListener\n * for storage related status changes.\n * @param mountPoint the mount point\n * @param force whether or not to forcefully unmount it (e.g. even if programs are using this\n * data currently)\n * @param removeEncryption whether or not encryption mapping should be removed from the volume.\n * This value implies {@code force}.\n */\n public void unmountVolume(String mountPoint, boolean force, boolean removeEncryption)\n throws RemoteException;\n\n /**\n * Unregisters an IMountServiceListener\n */\n public void unregisterListener(IMountServiceListener listener) throws RemoteException;\n\n /**\n * Returns whether or not the external storage is emulated.\n */\n public boolean isExternalStorageEmulated() throws RemoteException;\n\n /** The volume is not encrypted. */\n static final int ENCRYPTION_STATE_NONE = 1;\n /** The volume has been encrypted succesfully. */\n static final int ENCRYPTION_STATE_OK = 0;\n /** The volume is in a bad state.*/\n static final int ENCRYPTION_STATE_ERROR_UNKNOWN = -1;\n /** Encryption is incomplete */\n static final int ENCRYPTION_STATE_ERROR_INCOMPLETE = -2;\n /** Encryption is incomplete and irrecoverable */\n static final int ENCRYPTION_STATE_ERROR_INCONSISTENT = -3;\n /** Underlying data is corrupt */\n static final int ENCRYPTION_STATE_ERROR_CORRUPT = -4;\n\n /**\n * Determines the encryption state of the volume.\n * @return a numerical value. See {@code ENCRYPTION_STATE_*} for possible\n * values.\n * Note that this has been replaced in most cases by the APIs in\n * StorageManager (see isEncryptable and below)\n * This is still useful to get the error state when encryption has failed\n * and CryptKeeper needs to throw up a screen advising the user what to do\n */\n public int getEncryptionState() throws RemoteException;\n\n /**\n * Decrypts any encrypted volumes.\n */\n public int decryptStorage(String password) throws RemoteException;\n\n /**\n * Encrypts storage.\n */\n public int encryptStorage(int type, String password) throws RemoteException;\n\n /**\n * Changes the encryption password.\n */\n public int changeEncryptionPassword(int type, String password)\n throws RemoteException;\n\n /**\n * Verify the encryption password against the stored volume. This method\n * may only be called by the system process.\n */\n public int verifyEncryptionPassword(String password) throws RemoteException;\n\n /**\n * Returns list of all mountable volumes.\n */\n public StorageVolume[] getVolumeList(int uid, String packageName, int flags) throws RemoteException;\n\n /**\n * Gets the path on the filesystem for the ASEC container itself.\n *\n * @param cid ASEC container ID\n * @return path to filesystem or {@code null} if it's not found\n * @throws RemoteException\n */\n public String getSecureContainerFilesystemPath(String cid) throws RemoteException;\n\n /*\n * Fix permissions in a container which has just been created and populated.\n * Returns an int consistent with MountServiceResultCode\n */\n public int fixPermissionsSecureContainer(String id, int gid, String filename)\n throws RemoteException;\n\n /**\n * Ensure that all directories along given path exist, creating parent\n * directories as needed. Validates that given path is absolute and that it\n * contains no relative \".\" or \"..\" paths or symlinks. Also ensures that\n * path belongs to a volume managed by vold, and that path is either\n * external storage data or OBB directory belonging to calling app.\n */\n public int mkdirs(String callingPkg, String path) throws RemoteException;\n\n /**\n * Determines the type of the encryption password\n * @return PasswordType\n */\n public int getPasswordType() throws RemoteException;\n\n /**\n * Get password from vold\n * @return password or empty string\n */\n public String getPassword() throws RemoteException;\n\n /**\n * Securely clear password from vold\n */\n public void clearPassword() throws RemoteException;\n\n /**\n * Set a field in the crypto header.\n * @param field field to set\n * @param contents contents to set in field\n */\n public void setField(String field, String contents) throws RemoteException;\n\n /**\n * Gets a field from the crypto header.\n * @param field field to get\n * @return contents of field\n */\n public String getField(String field) throws RemoteException;\n\n public boolean isConvertibleToFBE() throws RemoteException;\n\n public int resizeSecureContainer(String id, int sizeMb, String key) throws RemoteException;\n\n /**\n * Report the time of the last maintenance operation such as fstrim.\n * @return Timestamp of the last maintenance operation, in the\n * System.currentTimeMillis() time base\n * @throws RemoteException\n */\n public long lastMaintenance() throws RemoteException;\n\n /**\n * Kick off an immediate maintenance operation\n * @throws RemoteException\n */\n public void runMaintenance() throws RemoteException;\n\n public void waitForAsecScan() throws RemoteException;\n\n public DiskInfo[] getDisks() throws RemoteException;\n public VolumeInfo[] getVolumes(int flags) throws RemoteException;\n public VolumeRecord[] getVolumeRecords(int flags) throws RemoteException;\n\n public void mount(String volId) throws RemoteException;\n public void unmount(String volId) throws RemoteException;\n public void format(String volId) throws RemoteException;\n public long benchmark(String volId) throws RemoteException;\n\n public void partitionPublic(String diskId) throws RemoteException;\n public void partitionPrivate(String diskId) throws RemoteException;\n public void partitionMixed(String diskId, int ratio) throws RemoteException;\n\n public void setVolumeNickname(String fsUuid, String nickname) throws RemoteException;\n public void setVolumeUserFlags(String fsUuid, int flags, int mask) throws RemoteException;\n public void forgetVolume(String fsUuid) throws RemoteException;\n public void forgetAllVolumes() throws RemoteException;\n public void setDebugFlags(int flags, int mask) throws RemoteException;\n\n public String getPrimaryStorageUuid() throws RemoteException;\n public void setPrimaryStorageUuid(String volumeUuid, IPackageMoveObserver callback)\n throws RemoteException;\n\n public void createUserKey(int userId, int serialNumber, boolean ephemeral)\n throws RemoteException;\n public void destroyUserKey(int userId) throws RemoteException;\n public void addUserKeyAuth(int userId, int serialNumber,\n byte[] token, byte[] secret) throws RemoteException;\n public void fixateNewestUserKeyAuth(int userId) throws RemoteException;\n\n public void unlockUserKey(int userId, int serialNumber,\n byte[] token, byte[] secret) throws RemoteException;\n public void lockUserKey(int userId) throws RemoteException;\n public boolean isUserKeyUnlocked(int userId) throws RemoteException;\n\n public void prepareUserStorage(String volumeUuid, int userId, int serialNumber,\n int flags) throws RemoteException;\n public void destroyUserStorage(String volumeUuid, int userId, int flags) throws RemoteException;\n\n public ParcelFileDescriptor mountAppFuse(String name) throws RemoteException;\n}", "protected GrpcJobServiceStub(JobServiceStubSettings settings, ClientContext clientContext)\n throws IOException {\n this(settings, clientContext, new GrpcJobServiceCallableFactory());\n }", "@RemoteServiceRelativePath(\"dataService\")\npublic interface DataService extends RemoteService {\n ArrayList<Point> getPoints(int width, int height, int i, int j) throws IllegalArgumentException,\n IOException;\n}", "public interface CoreServiceInvoker {\n\n\n GWRequest processRequest(Object requestData, InterfaceMapper mapper);\n\n /**\n * 处理请求信息\n */\n GWRequest processRequest(Object requestData, InterfaceMapper mapper, boolean needPackage);\n\n /**\n * 调用核心方法\n */\n GWResponse invoke(GWRequest request, boolean needPackage);\n\n /**\n * 处理返回信息\n */\n Object analysisResponse(GWRequest request, GWResponse response);\n Object analysisResp(GWRequest request, GWResponse response);\n}", "com.rajni.grpc.greeting.Greeting getGreeting();", "public static void main(String[] args) throws RemotingException, InterruptedException, ExecutionException, TimeoutException {\n\n PigeonRpcReference referencer = new PigeonRpcReference(HelloWorld.class, null, 3000, \"127.0.0.1:8091\", NetEnum.NETTY\n , SerializerEnum.HESSIAN2, RegistryTypeEnum.ZK, RouteTypeEnum.DEFAULT, CallTypeEnum.SYNC);\n HelloWorld helloWorld = (HelloWorld) referencer.getReference();\n HelloWorldResponse response = helloWorld.sayHello();\n System.out.println(\"client get response: \"+response);\n\n }", "@Override\n\tpublic Response init(ChaincodeStub stub) {\n\t\ttry {\n\t\t\t_logger.info(\"=========== Instantiated fabcar chaincode ===========\");\n\t\t\treturn newSuccessResponse();\n\t\t}\n\t\tcatch (Throwable e) {\n\t\t\treturn newErrorResponse(e);\n\t\t}\n\t}", "@RemoteServiceRelativePath(\"BankOfficeGWTService\")\npublic interface BankOfficeGWTService extends RemoteService {\n\tpublic BankOfficeDTO findById(Integer id) throws ObjectNotExistGError;\n\tpublic Integer saveOrUpdate(BankOfficeDTO entity) throws ExternalOrMidasIdIsInUseGError;\n\tpublic BankOfficeDTO getMyOffice();\n\tpublic BankOfficeDTO findByExternalId(Long midasId);\n\tpublic ArrayList<BankOfficeDTO> findAll();\n\tpublic ArrayList<ListBoxDTO> findAllShort();\n}", "public void startgetServerVersion(\n\n sample.ws.HelloWorldWSStub.GetServerVersion getServerVersion0,\n\n final sample.ws.HelloWorldWSCallbackHandler callback)\n\n throws java.rmi.RemoteException{\n\n org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[0].getName());\n _operationClient.getOptions().setAction(\"getServerVersion\");\n _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);\n\n \n \n addPropertyToOperationClient(_operationClient,org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,\"&\");\n \n\n\n // create SOAP envelope with that payload\n org.apache.axiom.soap.SOAPEnvelope env=null;\n final org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();\n\n \n //Style is Doc.\n \n \n env = toEnvelope(getFactory(_operationClient.getOptions().getSoapVersionURI()),\n getServerVersion0,\n optimizeContent(new javax.xml.namespace.QName(\"http://ws.sample/\",\n \"getServerVersion\")));\n \n // adding SOAP soap_headers\n _serviceClient.addHeadersToEnvelope(env);\n // create message context with that soap envelope\n _messageContext.setEnvelope(env);\n\n // add the message context to the operation client\n _operationClient.addMessageContext(_messageContext);\n\n\n \n _operationClient.setCallback(new org.apache.axis2.client.async.AxisCallback() {\n public void onMessage(org.apache.axis2.context.MessageContext resultContext) {\n try {\n org.apache.axiom.soap.SOAPEnvelope resultEnv = resultContext.getEnvelope();\n \n java.lang.Object object = fromOM(resultEnv.getBody().getFirstElement(),\n sample.ws.HelloWorldWSStub.GetServerVersionResponse.class,\n getEnvelopeNamespaces(resultEnv));\n callback.receiveResultgetServerVersion(\n (sample.ws.HelloWorldWSStub.GetServerVersionResponse)object);\n \n } catch (org.apache.axis2.AxisFault e) {\n callback.receiveErrorgetServerVersion(e);\n }\n }\n\n public void onError(java.lang.Exception error) {\n\t\t\t\t\t\t\t\tif (error instanceof org.apache.axis2.AxisFault) {\n\t\t\t\t\t\t\t\t\torg.apache.axis2.AxisFault f = (org.apache.axis2.AxisFault) error;\n\t\t\t\t\t\t\t\t\torg.apache.axiom.om.OMElement faultElt = f.getDetail();\n\t\t\t\t\t\t\t\t\tif (faultElt!=null){\n\t\t\t\t\t\t\t\t\t\tif (faultExceptionNameMap.containsKey(faultElt.getQName())){\n\t\t\t\t\t\t\t\t\t\t\t//make the fault by reflection\n\t\t\t\t\t\t\t\t\t\t\ttry{\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.String exceptionClassName = (java.lang.String)faultExceptionClassNameMap.get(faultElt.getQName());\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.Exception ex=\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t(java.lang.Exception) exceptionClass.newInstance();\n\t\t\t\t\t\t\t\t\t\t\t\t\t//message class\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.String messageClassName = (java.lang.String)faultMessageMap.get(faultElt.getQName());\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.Class messageClass = java.lang.Class.forName(messageClassName);\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.Object messageObject = fromOM(faultElt,messageClass,null);\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.reflect.Method m = exceptionClass.getMethod(\"setFaultMessage\",\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tnew java.lang.Class[]{messageClass});\n\t\t\t\t\t\t\t\t\t\t\t\t\tm.invoke(ex,new java.lang.Object[]{messageObject});\n\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t callback.receiveErrorgetServerVersion(new java.rmi.RemoteException(ex.getMessage(), ex));\n } catch(java.lang.ClassCastException e){\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorgetServerVersion(f);\n } catch (java.lang.ClassNotFoundException e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorgetServerVersion(f);\n } catch (java.lang.NoSuchMethodException e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorgetServerVersion(f);\n } catch (java.lang.reflect.InvocationTargetException e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorgetServerVersion(f);\n } catch (java.lang.IllegalAccessException e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorgetServerVersion(f);\n } catch (java.lang.InstantiationException e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorgetServerVersion(f);\n } catch (org.apache.axis2.AxisFault e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorgetServerVersion(f);\n }\n\t\t\t\t\t\t\t\t\t } else {\n\t\t\t\t\t\t\t\t\t\t callback.receiveErrorgetServerVersion(f);\n\t\t\t\t\t\t\t\t\t }\n\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t callback.receiveErrorgetServerVersion(f);\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t callback.receiveErrorgetServerVersion(error);\n\t\t\t\t\t\t\t\t}\n }\n\n public void onFault(org.apache.axis2.context.MessageContext faultContext) {\n org.apache.axis2.AxisFault fault = org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(faultContext);\n onError(fault);\n }\n\n public void onComplete() {\n try {\n _messageContext.getTransportOut().getSender().cleanup(_messageContext);\n } catch (org.apache.axis2.AxisFault axisFault) {\n callback.receiveErrorgetServerVersion(axisFault);\n }\n }\n });\n \n\n org.apache.axis2.util.CallbackReceiver _callbackReceiver = null;\n if ( _operations[0].getMessageReceiver()==null && _operationClient.getOptions().isUseSeparateListener()) {\n _callbackReceiver = new org.apache.axis2.util.CallbackReceiver();\n _operations[0].setMessageReceiver(\n _callbackReceiver);\n }\n\n //execute the operation client\n _operationClient.execute(false);\n\n }", "public interface IClient extends Remote, Serializable {\n /**\n * @param auction\n * @throws RemoteException\n */\n void newAuction(AuctionBean auction) throws RemoteException;\n\n /**\n * @param auction\n * @throws RemoteException\n */\n void submit(AuctionBean auction) throws RemoteException;\n\n /**\n * @param buyer\n * @throws RemoteException\n */\n void bidSold(IClient buyer) throws RemoteException;\n\n /**\n * @param auctionID\n * @param price\n * @throws RemoteException\n */\n void newPrice(UUID auctionID, int price) throws RemoteException;\n\n /**\n * @return\n * @throws RemoteException\n */\n String getName() throws RemoteException;\n\n ClientState getState() throws RemoteException;\n\n void setState(ClientState newState) throws RemoteException;\n}", "public sample.ws.HelloWorldWSStub.HelloResponse hello(\n\n sample.ws.HelloWorldWSStub.Hello hello4)\n \n\n throws java.rmi.RemoteException\n \n {\n org.apache.axis2.context.MessageContext _messageContext = null;\n try{\n org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[2].getName());\n _operationClient.getOptions().setAction(\"hello\");\n _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);\n\n \n \n addPropertyToOperationClient(_operationClient,org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,\"&\");\n \n\n // create a message context\n _messageContext = new org.apache.axis2.context.MessageContext();\n\n \n\n // create SOAP envelope with that payload\n org.apache.axiom.soap.SOAPEnvelope env = null;\n \n \n env = toEnvelope(getFactory(_operationClient.getOptions().getSoapVersionURI()),\n hello4,\n optimizeContent(new javax.xml.namespace.QName(\"http://ws.sample/\",\n \"hello\")));\n \n //adding SOAP soap_headers\n _serviceClient.addHeadersToEnvelope(env);\n // set the message context with that soap envelope\n _messageContext.setEnvelope(env);\n\n // add the message contxt to the operation client\n _operationClient.addMessageContext(_messageContext);\n\n //execute the operation client\n _operationClient.execute(true);\n\n \n org.apache.axis2.context.MessageContext _returnMessageContext = _operationClient.getMessageContext(\n org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE);\n org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope();\n \n \n java.lang.Object object = fromOM(\n _returnEnv.getBody().getFirstElement() ,\n sample.ws.HelloWorldWSStub.HelloResponse.class,\n getEnvelopeNamespaces(_returnEnv));\n\n \n return (sample.ws.HelloWorldWSStub.HelloResponse)object;\n \n }catch(org.apache.axis2.AxisFault f){\n\n org.apache.axiom.om.OMElement faultElt = f.getDetail();\n if (faultElt!=null){\n if (faultExceptionNameMap.containsKey(faultElt.getQName())){\n //make the fault by reflection\n try{\n java.lang.String exceptionClassName = (java.lang.String)faultExceptionClassNameMap.get(faultElt.getQName());\n java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);\n java.lang.Exception ex=\n (java.lang.Exception) exceptionClass.newInstance();\n //message class\n java.lang.String messageClassName = (java.lang.String)faultMessageMap.get(faultElt.getQName());\n java.lang.Class messageClass = java.lang.Class.forName(messageClassName);\n java.lang.Object messageObject = fromOM(faultElt,messageClass,null);\n java.lang.reflect.Method m = exceptionClass.getMethod(\"setFaultMessage\",\n new java.lang.Class[]{messageClass});\n m.invoke(ex,new java.lang.Object[]{messageObject});\n \n\n throw new java.rmi.RemoteException(ex.getMessage(), ex);\n }catch(java.lang.ClassCastException e){\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.ClassNotFoundException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n }catch (java.lang.NoSuchMethodException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.reflect.InvocationTargetException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.IllegalAccessException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.InstantiationException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n }\n }else{\n throw f;\n }\n }else{\n throw f;\n }\n } finally {\n _messageContext.getTransportOut().getSender().cleanup(_messageContext);\n }\n }", "public BudgetAccountServiceImpl() {\r\n\t}", "public interface AsyncRpcCallback {\n\n void success(Object result);\n\n void fail(Exception e);\n\n}", "public ApplicationStub() {\n }", "public com.drore.cloud.tdp.service.IWsPmsSdkServiceStub.GetVehicleInfoPageResponse getVehicleInfoPage(\n\n com.drore.cloud.tdp.service.IWsPmsSdkServiceStub.GetVehicleInfoPage getVehicleInfoPage)\n \n\n throws java.rmi.RemoteException\n \n {\n org.apache.axis2.context.MessageContext _messageContext = null;\n try{\n org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[1].getName());\n _operationClient.getOptions().setAction(\"urn:getVehicleInfoPage\");\n _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);\n\n \n \n addPropertyToOperationClient(_operationClient,org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,\"&\");\n \n\n // create a message context\n _messageContext = new org.apache.axis2.context.MessageContext();\n\n \n\n // create SOAP envelope with that payload\n org.apache.axiom.soap.SOAPEnvelope env = null;\n \n \n env = toEnvelope(getFactory(_operationClient.getOptions().getSoapVersionURI()),\n getVehicleInfoPage,\n optimizeContent(new javax.xml.namespace.QName(\"http://impl.thirdsdk.api.pms.cms.hikvision.com\",\n \"getVehicleInfoPage\")));\n \n //adding SOAP soap_headers\n _serviceClient.addHeadersToEnvelope(env);\n // set the message context with that soap envelope\n _messageContext.setEnvelope(env);\n\n // add the message contxt to the operation client\n _operationClient.addMessageContext(_messageContext);\n\n //execute the operation client\n _operationClient.execute(true);\n\n \n org.apache.axis2.context.MessageContext _returnMessageContext = _operationClient.getMessageContext(\n org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE);\n org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope();\n \n \n java.lang.Object object = fromOM(\n _returnEnv.getBody().getFirstElement() ,\n com.drore.cloud.tdp.service.IWsPmsSdkServiceStub.GetVehicleInfoPageResponse.class,\n getEnvelopeNamespaces(_returnEnv));\n\n \n return (com.drore.cloud.tdp.service.IWsPmsSdkServiceStub.GetVehicleInfoPageResponse)object;\n \n }catch(org.apache.axis2.AxisFault f){\n\n org.apache.axiom.om.OMElement faultElt = f.getDetail();\n if (faultElt!=null){\n if (faultExceptionNameMap.containsKey(faultElt.getQName())){\n //make the fault by reflection\n try{\n java.lang.String exceptionClassName = (java.lang.String)faultExceptionClassNameMap.get(faultElt.getQName());\n java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);\n java.lang.Exception ex=\n (java.lang.Exception) exceptionClass.newInstance();\n //message class\n java.lang.String messageClassName = (java.lang.String)faultMessageMap.get(faultElt.getQName());\n java.lang.Class messageClass = java.lang.Class.forName(messageClassName);\n java.lang.Object messageObject = fromOM(faultElt,messageClass,null);\n java.lang.reflect.Method m = exceptionClass.getMethod(\"setFaultMessage\",\n new java.lang.Class[]{messageClass});\n m.invoke(ex,new java.lang.Object[]{messageObject});\n \n\n throw new java.rmi.RemoteException(ex.getMessage(), ex);\n }catch(java.lang.ClassCastException e){\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.ClassNotFoundException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n }catch (java.lang.NoSuchMethodException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.reflect.InvocationTargetException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.IllegalAccessException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.InstantiationException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n }\n }else{\n throw f;\n }\n }else{\n throw f;\n }\n } finally {\n _messageContext.getTransportOut().getSender().cleanup(_messageContext);\n }\n }", "@RemoteServiceRelativePath(\"service\")\npublic interface DekorTradeService extends RemoteService {\n\n\tUserSer getUser(String user, String password)\n\t\t\tthrows IllegalArgumentException, SQLExceptionSer, LoginExceptionSer;\n\n\tvoid setPassword(String user, String password)\n\t\t\tthrows IllegalArgumentException, SQLExceptionSer;\n\n\tList<FelhasznaloSer> getFelhasznalo() throws IllegalArgumentException,\n\t\t\tSQLExceptionSer;\n\n\tFelhasznaloSer addFelhasznalo(FelhasznaloSer felhasznaloSer)\n\t\t\tthrows IllegalArgumentException, SQLExceptionSer;\n\n\tFelhasznaloSer updateFelhasznalo(FelhasznaloSer felhasznaloSer)\n\t\t\tthrows IllegalArgumentException, SQLExceptionSer;\n\n\tString setFelhasznaloJelszo(String rovidnev)\n\t\t\tthrows IllegalArgumentException, SQLExceptionSer;\n\n\tFelhasznaloSer removeFelhasznalo(FelhasznaloSer felhasznaloSer)\n\t\t\tthrows IllegalArgumentException, SQLExceptionSer;\n\n\tJogSer updateJog(String rovidnev, JogSer jogSer)\n\t\t\tthrows IllegalArgumentException, SQLExceptionSer;\n\n\tList<JogSer> getJog(String rovidnev) throws IllegalArgumentException,\n\t\t\tSQLExceptionSer;\n\n\tList<GyartoSer> getGyarto() throws IllegalArgumentException,\n\t\t\tSQLExceptionSer;\n\n\tGyartoSer addGyarto(GyartoSer szallitoSer) throws IllegalArgumentException,\n\t\t\tSQLExceptionSer;\n\n\tGyartoSer updateGyarto(GyartoSer szallitoSer)\n\t\t\tthrows IllegalArgumentException, SQLExceptionSer;\n\n\tGyartoSer removeGyarto(GyartoSer szallitoSer)\n\t\t\tthrows IllegalArgumentException, SQLExceptionSer;\n\n\tVevoSer addVevo(VevoSer vevoSer) throws IllegalArgumentException,\n\t\t\tSQLExceptionSer;\n\n\tVevoSer updateVevo(VevoSer vevoSer) throws IllegalArgumentException,\n\t\t\tSQLExceptionSer;\n\n\tString setVevoJelszo(String rovidnev) throws IllegalArgumentException,\n\t\t\tSQLExceptionSer;\n\n\tVevoSer removeVevo(VevoSer vevoSer) throws IllegalArgumentException,\n\t\t\tSQLExceptionSer;\n\n\tList<VevoSer> getVevo() throws Exception, SQLExceptionSer;\n\n\tList<CikkSer> getCikk(int page, String fotipus, String altipus,\n\t\t\tString cikkszam) throws IllegalArgumentException, SQLExceptionSer;\n\n\tCikkSer addCikk(CikkSer cikkSer) throws IllegalArgumentException,\n\t\t\tSQLExceptionSer;\n\n\tCikkSer updateCikk(CikkSer cikkSer) throws IllegalArgumentException,\n\t\t\tSQLExceptionSer;\n\n\tCikkSer removeCikk(CikkSer ctorzsSer) throws IllegalArgumentException,\n\t\t\tSQLExceptionSer;\n\n\tList<RendeltSer> getRendelt(String vevo) throws IllegalArgumentException,\n\t\t\tSQLExceptionSer;\n\n\tList<RendeltcikkSer> getRendeltcikk(String rovidnev, String rendeles)\n\t\t\tthrows IllegalArgumentException, SQLExceptionSer;\n\n\tSzinkronSer szinkron() throws IllegalArgumentException, SQLExceptionSer;\n\n\tString teljesszinkron() throws IllegalArgumentException, SQLExceptionSer;\n\n\tString initUploadFileStatus() throws IllegalArgumentException;\n\n\tUploadSer getUploadFileStatus() throws IllegalArgumentException;\n\n\tList<String> getKep(String cikkszam, String szinkod)\n\t\t\tthrows IllegalArgumentException, SQLExceptionSer;\n\n\tString removeKep(String cikkszam, String szinkod, String rorszam)\n\t\t\tthrows IllegalArgumentException, SQLExceptionSer;\n\n\tList<CikkfotipusSer> getCikkfotipus() throws IllegalArgumentException,\n\t\t\tSQLExceptionSer;\n\n\tCikkfotipusSer addCikkfotipus(CikkfotipusSer rcikkfotipusSe)\n\t\t\tthrows IllegalArgumentException, SQLExceptionSer;\n\n\tCikkfotipusSer updateCikkfotipus(CikkfotipusSer cikkfotipusSer)\n\t\t\tthrows IllegalArgumentException, SQLExceptionSer;\n\n\tList<CikkaltipusSer> getCikkaltipus(String fokod)\n\t\t\tthrows IllegalArgumentException, SQLExceptionSer;\n\n\tCikkaltipusSer addCikkaltipus(CikkaltipusSer cikktipusSer)\n\t\t\tthrows IllegalArgumentException, SQLExceptionSer;\n\n\tCikkaltipusSer updateCikkaltipus(CikkaltipusSer cikktipusSer)\n\t\t\tthrows IllegalArgumentException, SQLExceptionSer;\n\n\tCikkSelectsSer getCikkSelects() throws IllegalArgumentException,\n\t\t\tSQLExceptionSer;\n\n\tList<KosarSer> getKosarCikk(String elado, String vevo, String menu)\n\t\t\tthrows IllegalArgumentException, SQLExceptionSer;\n\n\tVevoKosarSer getVevoKosar(String elado, String menu)\n\t\t\tthrows IllegalArgumentException, SQLExceptionSer;\n\n\tString addKosar(String elado, String vevo, String menu, String cedula)\n\t\t\tthrows IllegalArgumentException, SQLExceptionSer;\n\n\tString removeKosar(String elado, String vevo, String menu, String cedula)\n\t\t\tthrows IllegalArgumentException, SQLExceptionSer;\n\n\tKosarSer addKosarCikk(KosarSer kosarSer) throws IllegalArgumentException,\n\t\t\tSQLExceptionSer;\n\n\tKosarSer removeKosarCikk(KosarSer kosarSer)\n\t\t\tthrows IllegalArgumentException, SQLExceptionSer;\n\n\tString importInternet(String elado, String vevo, String rendeles)\n\t\t\tthrows IllegalArgumentException, SQLExceptionSer;\n\n\tString createCedula(String elado, String vevo, String menu)\n\t\t\tthrows IllegalArgumentException, SQLExceptionSer;\n\n\tList<CedulaSer> getCedula(String vevo, String menu, String tipus)\n\t\t\tthrows IllegalArgumentException, SQLExceptionSer;\n\n\tList<CedulacikkSer> getCedulacikk(String cedula, String tipus)\n\t\t\tthrows IllegalArgumentException, SQLExceptionSer;\n\n\tString cedulaToKosar(String elado, String vevo, String menu, String tipus, String cedula)\n\t\t\tthrows IllegalArgumentException, SQLExceptionSer;\n\n\tString kosarToCedula(String elado, String vevo, String menu, String tipus, String ujtipus, String cedula,\n\t\t\tDouble befizet, Double befizeteur, Double befizetusd)\n\t\t\tthrows IllegalArgumentException, SQLExceptionSer;\n\n\tList<FizetesSer> getFizetes() throws IllegalArgumentException,\n\t\t\tSQLExceptionSer;\n\n\tZarasEgyenlegSer getElozoZaras() throws IllegalArgumentException,\n\t\t\tSQLExceptionSer;\n\n\tString createZaras(String penztaros, Double egyenleghuf, Double egyenlegeur,\n\t\t\tDouble egyenlegusd, Double kivethuf, Double kiveteur, Double kivetusd)\n\t\t\tthrows IllegalArgumentException, SQLExceptionSer;\n\n\tList<FizetesSer> getZarasFizetes(String zaras)\n\t\t\tthrows IllegalArgumentException, SQLExceptionSer;\n\n\tList<ZarasSer> getZaras() throws IllegalArgumentException, SQLExceptionSer;\n\n\tString createTorlesztes(String penztaros, String vevo, Double torleszthuf,\n\t\t\tDouble torleszteur, Double torlesztusd)\n\t\t\tthrows IllegalArgumentException, SQLExceptionSer;\n\n\tList<FizetesSer> getTorlesztesek() throws IllegalArgumentException,\n\t\t\tSQLExceptionSer;\n\n\tList<FizetesSer> getTorlesztes(String cedula)\n\t\t\tthrows IllegalArgumentException, SQLExceptionSer;\n\n\tList<FizetesSer> getHazi() throws IllegalArgumentException, SQLExceptionSer;\n\n\tFizetesSer addHazi(FizetesSer fizetesSer) throws IllegalArgumentException,\n\t\t\tSQLExceptionSer;\n\n\tList<RendeltcikkSer> getRendelesSzamolt(String status)\n\t\t\tthrows IllegalArgumentException, SQLExceptionSer;\n\n\tList<RendeltcikkSer> getRendeles(String status, String cikkszam,\n\t\t\tString szinkod) throws IllegalArgumentException, SQLExceptionSer;\n\n\tList<RendeltcikkSer> getMegrendelt(String status, String cikkszam,\n\t\t\tString szinkod) throws IllegalArgumentException, SQLExceptionSer;\n\n\tRendeltcikkSer updateRendeltcikk(RendeltcikkSer rendeltcikkSer)\n\t\t\tthrows IllegalArgumentException, SQLExceptionSer;\n\n\tRendeltcikkSer megrendeles(RendeltcikkSer rendeltcikkSer)\n\t\t\tthrows IllegalArgumentException, SQLExceptionSer;\n\n\tList<BeszallitottcikkSer> getBeszallitottcikk(String cikkszam,\n\t\t\tString szinkod) throws IllegalArgumentException, SQLExceptionSer;\n\n\tBeszallitottcikkSer addBeszallitottcikk(\n\t\t\tBeszallitottcikkSer beszallitottcikkSer)\n\t\t\tthrows IllegalArgumentException, SQLExceptionSer;\n\n\tList<RaktarSer> getRaktar(int page, String fotipus, String altipus,\n\t\t\tString cikkszam) throws IllegalArgumentException, SQLExceptionSer;\n\n\tRaktarSer updateRaktar(String rovancs,String userId,RaktarSer raktarSer) throws IllegalArgumentException,\n\t\t\tSQLExceptionSer;\n\n\tList<RendeltcikkSer> getRendeles(String vevo) throws IllegalArgumentException, SQLExceptionSer;\n\n\tList<EladasSer> getEladas(String cikkszam, String sznikod) throws IllegalArgumentException, SQLExceptionSer;\n\n\tRendeltcikkSer removeRendeles(RendeltcikkSer rendeltcikkSer) throws IllegalArgumentException, SQLExceptionSer;\n\n}", "public CallService() {\n super(\"My\");\n }", "public RMIServerInvokerInf getServerStub()\n {\n return this.server;\n }", "public ClienteServicio() {\n }", "public abstract Client getClient();", "public ClientRegistryStub(java.lang.String targetEndpoint) throws org.apache.axis2.AxisFault {\r\n this(null,targetEndpoint);\r\n }", "public interface ClientType {\n /**\n * Run the client, processing the specified options.\n *\n * @param options The options extracted from the command line.\n */\n public void run(ClientOptions options);\n}", "public WebSocketRPC() {\n\t}" ]
[ "0.6761841", "0.66981655", "0.6557841", "0.6322378", "0.6141004", "0.6139931", "0.613958", "0.6134983", "0.607242", "0.6024622", "0.6014603", "0.5957268", "0.59519225", "0.5934069", "0.5934069", "0.5934069", "0.58885646", "0.5852263", "0.58356446", "0.5830561", "0.582439", "0.582439", "0.582439", "0.582439", "0.582439", "0.58068126", "0.5801445", "0.5801445", "0.57983714", "0.57961947", "0.5791487", "0.57802194", "0.5753473", "0.5710661", "0.5693798", "0.56930226", "0.56780785", "0.56710947", "0.5631306", "0.5626959", "0.5608212", "0.56045693", "0.5602053", "0.55892855", "0.5586443", "0.5578516", "0.5576401", "0.55674636", "0.55610627", "0.5560229", "0.55589205", "0.5546075", "0.55407035", "0.5509688", "0.550342", "0.5500604", "0.54979014", "0.5496928", "0.54968417", "0.5491869", "0.54884076", "0.54697853", "0.54697853", "0.54697853", "0.54697853", "0.54697853", "0.54697853", "0.54697853", "0.54697853", "0.54697853", "0.54697853", "0.54697853", "0.54697853", "0.5465401", "0.5464335", "0.5464238", "0.54593945", "0.54431033", "0.5424588", "0.54220647", "0.54207623", "0.5417127", "0.5411968", "0.5394776", "0.5385606", "0.5380145", "0.53761953", "0.537405", "0.5369152", "0.5364893", "0.535785", "0.53438574", "0.5332606", "0.5331765", "0.5330618", "0.5328675", "0.53242075", "0.5319642", "0.5319197", "0.53165936", "0.53110254" ]
0.0
-1
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() { buttonGroup1 = new javax.swing.ButtonGroup(); jRadioButtonMenuItem1 = new javax.swing.JRadioButtonMenuItem(); jRadioButtonMenuItem2 = new javax.swing.JRadioButtonMenuItem(); jLabel1 = new javax.swing.JLabel(); jLabel2 = new javax.swing.JLabel(); jLabel3 = new javax.swing.JLabel(); jLabel4 = new javax.swing.JLabel(); jLabel5 = new javax.swing.JLabel(); jLabel6 = new javax.swing.JLabel(); jLabel7 = new javax.swing.JLabel(); jLabel8 = new javax.swing.JLabel(); jLabel9 = new javax.swing.JLabel(); teaInfoAddButton = new javax.swing.JButton(); teaInfoResetButton = new javax.swing.JButton(); teaManRadioButton = new javax.swing.JRadioButton(); teaWomanRadioButton = new javax.swing.JRadioButton(); teaRadioButton1 = new javax.swing.JRadioButton(); teaRadioButton2 = new javax.swing.JRadioButton(); teaRadioButton3 = new javax.swing.JRadioButton(); teaIDText = new javax.swing.JTextField(); teaNameText = new javax.swing.JTextField(); teaDepartmentText = new javax.swing.JTextField(); teaCollegeText = new javax.swing.JTextField(); teaInterestText = new javax.swing.JTextField(); teaPhoneText = new javax.swing.JTextField(); jLabel11 = new javax.swing.JLabel(); teaRadioButton4 = new javax.swing.JRadioButton(); jLabel10 = new javax.swing.JLabel(); jLabel12 = new javax.swing.JLabel(); jRadioButtonMenuItem1.setSelected(true); jRadioButtonMenuItem1.setText("jRadioButtonMenuItem1"); jRadioButtonMenuItem2.setSelected(true); jRadioButtonMenuItem2.setText("jRadioButtonMenuItem2"); setClosable(true); setTitle("老师信息添加"); jLabel1.setFont(new java.awt.Font("华文行楷", 0, 24)); // NOI18N jLabel1.setText("教工号*"); jLabel2.setFont(new java.awt.Font("华文行楷", 0, 24)); // NOI18N jLabel2.setText("姓名*"); jLabel3.setFont(new java.awt.Font("华文行楷", 0, 24)); // NOI18N jLabel3.setText("性别*"); jLabel4.setFont(new java.awt.Font("华文行楷", 0, 24)); // NOI18N jLabel4.setText("学院*"); jLabel5.setFont(new java.awt.Font("华文行楷", 0, 24)); // NOI18N jLabel5.setText("系*"); jLabel6.setFont(new java.awt.Font("华文行楷", 0, 24)); // NOI18N jLabel6.setText("类别*"); jLabel7.setFont(new java.awt.Font("华文行楷", 0, 24)); // NOI18N jLabel7.setText("手机*"); jLabel8.setFont(new java.awt.Font("华文行楷", 0, 24)); // NOI18N jLabel8.setText("兴趣"); jLabel9.setBackground(new java.awt.Color(255, 0, 0)); jLabel9.setFont(new java.awt.Font("华文行楷", 0, 24)); // NOI18N jLabel9.setForeground(new java.awt.Color(255, 0, 0)); jLabel9.setText("填写要求:1、除兴趣一栏可选外其余均为必填!"); teaInfoAddButton.setFont(new java.awt.Font("华文行楷", 0, 18)); // NOI18N teaInfoAddButton.setText("添加"); teaInfoAddButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { teaInfoAddButtonActionPerformed(evt); } }); teaInfoResetButton.setFont(new java.awt.Font("华文行楷", 0, 18)); // NOI18N teaInfoResetButton.setText("重置"); teaInfoResetButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { teaInfoResetButtonActionPerformed(evt); } }); teaManRadioButton.setSelected(true); teaManRadioButton.setText("男"); teaManRadioButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { teaManRadioButtonActionPerformed(evt); } }); teaWomanRadioButton.setText("女"); teaWomanRadioButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { teaWomanRadioButtonActionPerformed(evt); } }); teaRadioButton1.setSelected(true); teaRadioButton1.setText("助理教授"); teaRadioButton1.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { teaRadioButton1ActionPerformed(evt); } }); teaRadioButton2.setText("副教授"); teaRadioButton2.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { teaRadioButton2ActionPerformed(evt); } }); teaRadioButton3.setText("教授"); teaRadioButton3.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { teaRadioButton3ActionPerformed(evt); } }); teaIDText.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { teaIDTextActionPerformed(evt); } }); teaNameText.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { teaNameTextActionPerformed(evt); } }); teaDepartmentText.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { teaDepartmentTextActionPerformed(evt); } }); teaCollegeText.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { teaCollegeTextActionPerformed(evt); } }); teaInterestText.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { teaInterestTextActionPerformed(evt); } }); teaPhoneText.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { teaPhoneTextActionPerformed(evt); } }); jLabel11.setIcon(new javax.swing.ImageIcon(getClass().getResource("/view/icons/teacher.png"))); // NOI18N teaRadioButton4.setText("其他"); teaRadioButton4.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { teaRadioButton4ActionPerformed(evt); } }); jLabel10.setBackground(new java.awt.Color(255, 0, 0)); jLabel10.setFont(new java.awt.Font("华文行楷", 0, 24)); // NOI18N jLabel10.setForeground(new java.awt.Color(255, 0, 0)); jLabel10.setText("2、教工号为11位纯数字,如52282168868"); jLabel12.setBackground(new java.awt.Color(255, 0, 0)); jLabel12.setFont(new java.awt.Font("华文行楷", 0, 24)); // NOI18N jLabel12.setForeground(new java.awt.Color(255, 0, 0)); jLabel12.setText("3、手机号为11位纯数字,如13358878188"); javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane()); getContentPane().setLayout(layout); layout.setHorizontalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup() .addContainerGap() .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING) .addGroup(layout.createSequentialGroup() .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING) .addGroup(layout.createSequentialGroup() .addComponent(jLabel11) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jLabel2, javax.swing.GroupLayout.Alignment.TRAILING) .addComponent(jLabel3, javax.swing.GroupLayout.Alignment.TRAILING) .addComponent(jLabel4, javax.swing.GroupLayout.Alignment.TRAILING) .addComponent(jLabel5, javax.swing.GroupLayout.Alignment.TRAILING) .addComponent(jLabel6, javax.swing.GroupLayout.Alignment.TRAILING) .addComponent(jLabel7, javax.swing.GroupLayout.Alignment.TRAILING))) .addGroup(layout.createSequentialGroup() .addGap(0, 0, Short.MAX_VALUE) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING) .addComponent(jLabel1) .addComponent(jLabel8)))) .addGap(18, 18, 18) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(teaIDText, javax.swing.GroupLayout.PREFERRED_SIZE, 290, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(teaNameText, javax.swing.GroupLayout.PREFERRED_SIZE, 290, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(teaCollegeText, javax.swing.GroupLayout.PREFERRED_SIZE, 290, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(teaDepartmentText, javax.swing.GroupLayout.PREFERRED_SIZE, 290, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(teaPhoneText, javax.swing.GroupLayout.PREFERRED_SIZE, 290, javax.swing.GroupLayout.PREFERRED_SIZE) .addGroup(layout.createSequentialGroup() .addComponent(teaManRadioButton) .addGap(18, 18, 18) .addComponent(teaWomanRadioButton)) .addGroup(layout.createSequentialGroup() .addComponent(teaRadioButton1) .addGap(18, 18, 18) .addComponent(teaRadioButton2) .addGap(18, 18, 18) .addComponent(teaRadioButton3) .addGap(18, 18, 18) .addComponent(teaRadioButton4)) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false) .addGroup(javax.swing.GroupLayout.Alignment.LEADING, layout.createSequentialGroup() .addComponent(teaInfoAddButton) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(teaInfoResetButton)) .addComponent(teaInterestText, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.PREFERRED_SIZE, 290, javax.swing.GroupLayout.PREFERRED_SIZE)))) .addGroup(layout.createSequentialGroup() .addGap(0, 0, Short.MAX_VALUE) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING) .addComponent(jLabel12) .addComponent(jLabel9)) .addGroup(layout.createSequentialGroup() .addGap(108, 108, 108) .addComponent(jLabel10))))) .addGap(60, 60, 60)) ); layout.setVerticalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addContainerGap() .addComponent(jLabel9) .addGap(18, 18, 18) .addComponent(jLabel10) .addGap(18, 18, 18) .addComponent(jLabel12) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 41, Short.MAX_VALUE) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(teaIDText, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel1)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel2) .addComponent(teaNameText, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGap(10, 10, 10) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING) .addGroup(layout.createSequentialGroup() .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel3) .addComponent(teaManRadioButton) .addComponent(teaWomanRadioButton)) .addGap(15, 15, 15) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(teaCollegeText, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel4)) .addGap(10, 10, 10) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(teaDepartmentText, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel5)) .addGap(10, 10, 10) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel6) .addComponent(teaRadioButton1) .addComponent(teaRadioButton2) .addComponent(teaRadioButton3) .addComponent(teaRadioButton4))) .addComponent(jLabel11)) .addGap(15, 15, 15) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(teaPhoneText, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel7)) .addGap(10, 10, 10) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(teaInterestText, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel8)) .addGap(29, 29, 29) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(teaInfoAddButton) .addComponent(teaInfoResetButton)) .addContainerGap()) ); pack(); }
{ "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 Magasin() {\n initComponents();\n }", "public intrebarea() {\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}", "public kunde() {\n initComponents();\n }", "public LixeiraForm() {\n initComponents();\n setLocationRelativeTo(null);\n }", "@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 MusteriEkle() {\n initComponents();\n }", "public frmMain() {\n initComponents();\n }", "public frmMain() {\n initComponents();\n }", "public DESHBORDPANAL() {\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 frmVenda() {\n initComponents();\n }", "public Botonera() {\n initComponents();\n }", "public FrmMenu() {\n initComponents();\n }", "public OffertoryGUI() {\n initComponents();\n setTypes();\n }", "public JFFornecedores() {\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 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 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 HW3() {\n initComponents();\n }", "public UploadForm() {\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 frmAddIncidencias() {\n initComponents();\n }", "public FP_Calculator_GUI() {\n initComponents();\n \n setVisible(true);\n }" ]
[ "0.73208135", "0.7291972", "0.7291972", "0.7291972", "0.7287118", "0.72494483", "0.7214677", "0.72086734", "0.7197058", "0.71912485", "0.7185818", "0.71596724", "0.71489036", "0.7094215", "0.7082007", "0.70579666", "0.6988024", "0.6978225", "0.6955616", "0.6955434", "0.69458616", "0.69446844", "0.6937443", "0.69325924", "0.69280547", "0.69266534", "0.69264925", "0.6912501", "0.6911917", "0.6894212", "0.6893167", "0.68922186", "0.6892184", "0.6890009", "0.688444", "0.6883334", "0.68823224", "0.6879555", "0.68768615", "0.6875667", "0.68722147", "0.6860655", "0.68569547", "0.6856804", "0.6856167", "0.6855431", "0.6854634", "0.68536645", "0.68536645", "0.684493", "0.6837617", "0.68372554", "0.68303156", "0.6828861", "0.6827668", "0.68246883", "0.68245596", "0.6818436", "0.6818284", "0.6812057", "0.681017", "0.68095857", "0.68093693", "0.6809163", "0.68027467", "0.67963576", "0.6794979", "0.6793972", "0.6792247", "0.67903155", "0.67896885", "0.67893314", "0.6783135", "0.6767654", "0.67672074", "0.67655265", "0.6757984", "0.6757062", "0.6754005", "0.67513984", "0.674334", "0.6740801", "0.6737678", "0.6737453", "0.6734575", "0.67281", "0.6727845", "0.67219335", "0.67169774", "0.67163646", "0.6715783", "0.67106164", "0.6708574", "0.6705358", "0.67030907", "0.6701408", "0.6700769", "0.66998196", "0.6695165", "0.66917574", "0.6691252" ]
0.0
-1
End of variables declaration//GENEND:variables
private void teaInfoAddActionPerformed(ActionEvent evt) throws SQLException, Exception {//添加老师新信息 //throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates. String teaID = this.teaIDText.getText(); String teaName = this.teaNameText.getText(); String teaCollege = this.teaCollegeText.getText(); String teaDepartment = this.teaDepartmentText.getText(); String teaPhone = this.teaPhoneText.getText(); String teaRemark = this.teaInterestText.getText(); if(StringUtil.isEmpty(teaID)){ JOptionPane.showMessageDialog(null,"教工号不能为空!"); return; } if(StringUtil.isEmpty(teaName)){ JOptionPane.showMessageDialog(null,"姓名不能为空!"); return; } if(StringUtil.isEmpty(teaCollege)){ JOptionPane.showMessageDialog(null,"学院不能为空!"); return; } if(StringUtil.isEmpty(teaDepartment)){ JOptionPane.showMessageDialog(null,"系不能为空!"); return; } if(StringUtil.isEmpty(teaPhone)){ JOptionPane.showMessageDialog(null,"手机不能为空!"); return; } if(teaID.length() != 11){ JOptionPane.showMessageDialog(null,"教工号位数不为11位!"); return; } if(!StringUtil.isAllNumber(teaID)){ JOptionPane.showMessageDialog(null,"教工号不为纯数字!"); return; } if(teaPhone.length() != 11){ JOptionPane.showMessageDialog(null,"手机号位数不为11位!"); return; } if(!StringUtil.isAllNumber(teaPhone)){ JOptionPane.showMessageDialog(null,"手机号不为纯数字!"); return; } Connection con = null; con = dbUtil.getConnection(); if(teacherInfo.checkExist(con, teaID)){ JOptionPane.showMessageDialog(null,"当前教工号已存在,请勿重复添加!"); return; } Teacher teacher = new Teacher(teaID,teaName,teaSex,teaCollege,teaDepartment,teaType,teaPhone,teaRemark); try{ con = dbUtil.getConnection(); int result = teacherInfo.teacherInfoAdd(con, teacher); if(result == 1){ JOptionPane.showMessageDialog(null,"老师添加成功!"); resetTeaInfo();//重置老师信息所有栏 return; } else{ JOptionPane.showMessageDialog(null,"老师添加失败!"); return; } }catch (Exception e) { e.printStackTrace(); } }
{ "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 }", "public void mo21782G() {\n }", "private void m50366E() {\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 }", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo21780E() {\n }", "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 mo23813b() {\n }", "public void mo3370l() {\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 }", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "public void func_70295_k_() {}", "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}", "@Override\n\tpublic void verkaufen() {\n\t}", "@AnyLogicInternalCodegenAPI\n private void setupPlainVariables_Main_xjal() {\n }", "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}", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "protected void mo6255a() {\n }" ]
[ "0.6359434", "0.6280371", "0.61868024", "0.6094568", "0.60925734", "0.6071678", "0.6052686", "0.60522056", "0.6003249", "0.59887564", "0.59705925", "0.59680873", "0.5967989", "0.5965816", "0.5962006", "0.5942372", "0.5909877", "0.5896588", "0.5891321", "0.5882983", "0.58814824", "0.5854075", "0.5851759", "0.58514243", "0.58418584", "0.58395296", "0.5835063", "0.582234", "0.58090156", "0.5802706", "0.5793836", "0.57862717", "0.5784062", "0.5783567", "0.5782131", "0.57758564", "0.5762871", "0.5759349", "0.5745087", "0.57427835", "0.573309", "0.573309", "0.573309", "0.573309", "0.573309", "0.573309", "0.573309", "0.57326084", "0.57301426", "0.57266665", "0.57229686", "0.57175463", "0.5705802", "0.5698347", "0.5697827", "0.569054", "0.5689405", "0.5686434", "0.56738997", "0.5662217", "0.56531453", "0.5645255", "0.5644223", "0.5642628", "0.5642476", "0.5640595", "0.56317437", "0.56294966", "0.56289655", "0.56220204", "0.56180173", "0.56134313", "0.5611337", "0.56112075", "0.56058615", "0.5604383", "0.5602629", "0.56002104", "0.5591573", "0.55856615", "0.5576992", "0.55707216", "0.5569681", "0.55570376", "0.55531484", "0.5551123", "0.5550893", "0.55482954", "0.5547471", "0.55469507", "0.5545719", "0.5543553", "0.55424106", "0.5542057", "0.55410767", "0.5537739", "0.55269134", "0.55236584", "0.55170715", "0.55035424", "0.55020875" ]
0.0
-1
throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
private void resetTeaInfo() { this.teaIDText.setText(""); this.teaNameText.setText(""); this.teaCollegeText.setText(""); this.teaDepartmentText.setText(""); this.teaPhoneText.setText(""); this.teaInterestText.setText(""); this.teaManRadioButton.setSelected(true); this.teaWomanRadioButton.setSelected(false); teaSex = this.teaManRadioButton.getText(); this.teaRadioButton1.setSelected(true); this.teaRadioButton2.setSelected(false); this.teaRadioButton3.setSelected(false); this.teaRadioButton4.setSelected(false); teaType = this.teaRadioButton1.getText(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void habilitar() {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }", "@Override\r\n\t\tpublic void action()\r\n\t\t{\r\n// throw new UnsupportedOperationException(\"Not supported yet.\");\r\n\t\t}", "public void remove()\n/* */ {\n/* 99 */ throw new UnsupportedOperationException();\n/* */ }", "public void remove()\n/* */ {\n/* 110 */ throw new UnsupportedOperationException();\n/* */ }", "@Override\n public boolean isSupported() {\n return true;\n }", "@Override\n public String toString() {\n throw new UnsupportedOperationException(\"implement me!\");\n }", "private void cargartabla() {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }", "private void HargaKamera() {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }", "@Override\n public void remove() {\n throw new UnsupportedOperationException(); \n }", "@Override\r\npublic int method() {\n\treturn 0;\r\n}", "@Override\n\tpublic void remove() {\n\t\tthrow new UnsupportedOperationException();\t\t\n\t}", "@Override\n\tpublic void remove() {\n\t\tthrow new UnsupportedOperationException();\t\t\n\t}", "@Override\n public boolean isSupported() {\n return true;\n }", "private static UnsupportedOperationException getModificationUnsupportedException()\n {\n throw new UnsupportedOperationException(\"Illegal operation. Specified list is unmodifiable.\");\n }", "@Override\r\n public void remove() throws UnsupportedOperationException {\r\n throw new UnsupportedOperationException(\"Me ei poisteta\");\r\n }", "Boolean mo1305n() {\n throw new UnsupportedOperationException(getClass().getSimpleName());\n }", "@Override\n public void actionPerformed(ActionEvent e) {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }", "public boolean isEnabled() {\n/* 945 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "@Override\r\n\t\t\tpublic void remove() {\r\n\t\t\t\tthrow new UnsupportedOperationException();\r\n\t\t\t}", "@Override\r\n\t\tpublic void remove() {\r\n\t\t\tthrow new UnsupportedOperationException();\r\n\t\t}", "void Salvar(String nome) {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }", "protected void input_back(){\n throw new UnsupportedOperationException();\n }", "@Override\n\tpublic void remove() {\n\t\tthrow new UnsupportedOperationException();\n\t}", "public UnsupportedCycOperationException() {\n super();\n }", "public int getListSelection() {\n/* 515 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "public void remove(){\r\n\t\t\tthrow new UnsupportedOperationException();\r\n\t\t}", "@SuppressWarnings(\"static-method\")\n\tpublic void open() {\n\t\tthrow new UnsupportedOperationException();\n\t}", "@Override\n\t\t\tpublic void remove() {\n\t\t\t\tthrow new UnsupportedOperationException();\n\t\t\t}", "@Override\n public void remove() {\n throw new UnsupportedOperationException();\n }", "@Override\n public void remove() {\n throw new UnsupportedOperationException();\n }", "@Override\n public void remove() {\n throw new UnsupportedOperationException();\n }", "private void atualizar_tbl_pro_profs() {\n throw new UnsupportedOperationException(\"Not supported yet.\");\n//To change body of generated methods, choose Tools | Templates.\n }", "@Override\n\t/**\n\t * feature is not supported\n\t */\n\tpublic void remove() {\n\t}", "@Override\n public void remove() {\n throw new UnsupportedOperationException();\n }", "@Override\n public void remove() {\n throw new UnsupportedOperationException();\n }", "public void remove() throws UnsupportedOperationException {\n\t\t\tthrow new UnsupportedOperationException(\"Myö ei poisteta\");\n\t\t}", "private String printStackTrace() {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }", "@Override\n public void makeVisible() {\n throw new UnsupportedOperationException(\"operation not supported\");\n }", "public void _reportUnsupportedOperation() {\n StringBuilder sb = new StringBuilder();\n sb.append(\"Operation not supported by parser of type \");\n sb.append(getClass().getName());\n throw new UnsupportedOperationException(sb.toString());\n }", "@Override\r\n public void actionPerformed(ActionEvent e) {\r\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\r\n }", "public void remove() {\r\n \r\n throw new UnsupportedOperationException();\r\n }", "public void showDropDown() {\n/* 592 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "public void remove() {\n\t\tthrow new UnsupportedOperationException();\n\t}", "public void remove() {\n\t\tthrow new UnsupportedOperationException();\n\t}", "public int zzef() {\n throw new UnsupportedOperationException();\n }", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n public String toString() {\n throw new UnsupportedOperationException();\n //TODO: Complete this method!\n }", "@Override\n public void refresh() {\n throw new UnsupportedOperationException(\"operation not supported\");\n }", "@Override\npublic boolean isEnabled() {\n\treturn false;\n}", "@Override\n public String writeToString() {\n throw new UnsupportedOperationException();\n }", "public boolean isImportantForAccessibility() {\n/* 1302 */ throw new RuntimeException(\"Stub!\");\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}", "private String getText() {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }", "@Deprecated\n/* */ public int getActions() {\n/* 289 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "@Override\n\tprotected Object clone() {\n\t\tthrow new UnsupportedOperationException();\n\t}", "public String getDisplayVariant() {\n/* 656 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "@Override\n public boolean getObsolete()\n {\n return false;\n }", "@Override\n public void close() {\n throw new UnsupportedOperationException(\"Not supported yet.\");\n }", "public String getName() {\n/* 341 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "@Override\npublic boolean isEnabled() {\n\treturn true;\n}", "public int mo1265e() {\n throw new UnsupportedOperationException(getClass().getSimpleName());\n }", "public MissingMethodArgumentException() {\n }", "public ListAdapter getAdapter() {\n/* 431 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "public CollectionItemInfo getCollectionItemInfo() {\n/* 1114 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "@Override\n public void cancel() {\n throw new UnsupportedOperationException();\n }", "public CharSequence getContentDescription() {\n/* 1531 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "public void remove() {\n throw new UnsupportedOperationException();\r\n }", "@Override\n public final void remove() {\n throw new UnsupportedOperationException();\n }", "public void remove() {\n throw new UnsupportedOperationException();\n }", "public void remove() {\n throw new UnsupportedOperationException();\n }", "public void remove() {\r\n throw new UnsupportedOperationException();\r\n }", "private ExampleVersion() {\n throw new UnsupportedOperationException(\"Illegal constructor call.\");\n }", "public void remove() throws UnsupportedOperationException {\n\t\t\tthrow new UnsupportedOperationException( \"remove() Not implemented.\" );\n\t\t}", "public boolean isSelected() {\n/* 3021 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "private void chk() {\n if (clist != null)\n throw new UnsupportedOperationException();\n }", "public void remove() {\n\t\t\tthrow new UnsupportedOperationException();\n\t\t}", "@Override\n\tpublic void e() {\n\n\t}", "public boolean isEditable() {\n/* 1014 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "@Override\n\tpublic int method() {\n\t\treturn 0;\n\t}", "private void m50366E() {\n }", "@Deprecated\n\tprivate void oldCode()\n\t{\n\t}", "public boolean mo1266f() {\n throw new UnsupportedOperationException(getClass().getSimpleName());\n }", "public void remove() {\n throw new UnsupportedOperationException();\n }", "@Override\n public void actionPerformed(ActionEvent ae) {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "private void someUtilityMethod() {\n }", "private void someUtilityMethod() {\n }", "public void remove() {\n throw new UnsupportedOperationException();\n }", "public void remove() {\n throw new UnsupportedOperationException();\n }", "private CollectionUtils() {\n\t\tthrow new UnsupportedOperationException();\n\t}", "default boolean isDeprecated() {\n return false;\n }", "public String formNotImplemented()\r\n {\r\n return formError(\"501 Method not implemented\",\"Service not implemented, programer was lazy\");\r\n }", "@Override\n\tpublic String getMoreInformation() {\n\t\tthrow new UnsupportedOperationException();\n\t}", "public void m23075a() {\n }", "private void setText() {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }", "@Override\n\tpublic void dosomething() {\n\t\t\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "public int getObjectPropCode() {\n/* 108 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "public void toggle() {\n/* 135 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "public String getSuggestSelection() {\n/* 113 */ throw new RuntimeException(\"Stub!\");\n/* */ }" ]
[ "0.7744652", "0.73749053", "0.6966527", "0.6909395", "0.67964953", "0.6773559", "0.6771067", "0.6654384", "0.66389716", "0.6624263", "0.6609339", "0.6609339", "0.65914184", "0.6586954", "0.6555998", "0.6499744", "0.6462636", "0.64495736", "0.64296776", "0.6419897", "0.6382666", "0.63818693", "0.63796616", "0.63749474", "0.6362977", "0.636036", "0.63596714", "0.6353923", "0.6334584", "0.6334584", "0.6334584", "0.6330838", "0.6324835", "0.6323451", "0.6323451", "0.63148075", "0.629012", "0.6280384", "0.6277155", "0.6273978", "0.62646115", "0.6245552", "0.62258106", "0.62258106", "0.6219513", "0.6203273", "0.62024796", "0.6200088", "0.6199513", "0.61933196", "0.61925113", "0.6179876", "0.6179876", "0.616379", "0.6162549", "0.6161032", "0.6143854", "0.6126567", "0.6125385", "0.6122703", "0.61223984", "0.6113832", "0.61117774", "0.610708", "0.61012566", "0.6090525", "0.60898113", "0.60887575", "0.6087027", "0.60860145", "0.60860145", "0.60802037", "0.60587925", "0.60574937", "0.6048819", "0.60460234", "0.60427284", "0.6024831", "0.6021711", "0.60165054", "0.60164917", "0.60145986", "0.6008991", "0.6007108", "0.5997761", "0.5995581", "0.59879506", "0.59879506", "0.5985853", "0.5985853", "0.59836394", "0.5981447", "0.5977667", "0.5969774", "0.59676147", "0.59659356", "0.59650296", "0.5964039", "0.5955716", "0.59521776", "0.59496826" ]
0.0
-1
Properties object is created
public static void main(String args[]) throws IOException { Properties property = new Properties(); OutputStream out = null; BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); System.out.println("Enter your id:"); int id = Integer.parseInt(br.readLine()); System.out.println("Enter your Name:"); String name = br.readLine(); System.out.println("Enter your Salary:"); int salary = Integer.parseInt(br.readLine()); try { StringWriter output = new StringWriter(); out = new FileOutputStream("data.properties"); /** * Properties of property file is set */ property.setProperty("Id", String.valueOf(id)); property.setProperty("Name", name); property.setProperty("Salary", String.valueOf(salary)); /** * store the properties list in an output writer */ property.store(output, "Hii " + name + " Here are the properties"); /** * store the properties list in a file named data.properties */ property.store(out, "Hello " + name + " Here are the properties"); System.out.println(output.toString()); } catch (Exception exception) { exception.printStackTrace(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Properties(){\n\n }", "public void setupProperties() {\n // left empty for subclass to override\n }", "public TestProperties() {\n\t\tthis.testProperties = new Properties();\n\t}", "Property createProperty();", "public void initProperties() {\n propAssetClass = addProperty(AssetComponent.PROP_CLASS, \"MilitaryOrganization\");\n propAssetClass.setToolTip(PROP_CLASS_DESC);\n propUniqueID = addProperty(AssetComponent.PROP_UID, \"UTC/RTOrg\");\n propUniqueID.setToolTip(PROP_UID_DESC);\n propUnitName = addProperty(AssetComponent.PROP_UNITNAME, \"\");\n propUnitName.setToolTip(PROP_UNITNAME_DESC);\n propUIC = addProperty(PROP_UIC, \"\");\n propUIC.setToolTip(PROP_UIC_DESC);\n }", "@Override\n\tpublic void setProperties(Properties p) {\n\t\t\n\t}", "public PSBeanProperties()\n {\n loadProperties();\n }", "public void init(Properties props) ;", "private static void initObjectProperties() {\n OntModel ontologie = ModelFactory.createOntologyModel();\n OntologyFactory.readOntology(ontologyPath, ontologie);\n objectProperties.addAll(ontologie.listObjectProperties().toList());\n }", "public Properties getProperties() { return props; }", "Properties getProperties();", "@Override\n protected void updateProperties() {\n }", "@Override\r\n\tpublic void setProperties(Properties properties) \r\n\t{\n\t}", "public\n YutilProperties()\n {\n super(new Properties());\n }", "@Override\r\n\tpublic void setProperties(Properties arg0) {\n\r\n\t}", "void initProperties()\n\t{\n\t\tpropertyPut(LIST_SIZE, 10);\n\t\tpropertyPut(LIST_LINE, 1);\n\t\tpropertyPut(LIST_MODULE, 1); // default to module #1\n\t\tpropertyPut(COLUMN_WIDTH, 70);\n\t\tpropertyPut(UPDATE_DELAY, 25);\n\t\tpropertyPut(HALT_TIMEOUT, 7000);\n\t\tpropertyPut(BPNUM, 0);\t\t\t\t// set current breakpoint number as something bad\n\t\tpropertyPut(LAST_FRAME_DEPTH, 0);\t\t// used to determine how much context information should be displayed\n\t\tpropertyPut(CURRENT_FRAME_DEPTH, 0); // used to determine how much context information should be displayed\n\t\tpropertyPut(DISPLAY_FRAME_NUMBER, 0); // houses the current frame we are viewing\n\t\tpropertyPut(FILE_LIST_WRAP, 999999); // default 1 file name per line\n\t\tpropertyPut(NO_WAITING, 0);\n\t\tpropertyPut(INFO_STACK_SHOW_THIS, 1); // show this pointer for info stack\n\t}", "public void setProperties(Properties properties);", "public DimensionProperties() {\n }", "@Override\r\n\tpublic void setProperties(Properties properties) {\n\t\t\r\n\t}", "public abstract Properties getProperties();", "public Propuestas() {}", "EProperties getProperties();", "private mxPropertiesManager()\n\t{\n\t}", "public void init(java.util.Properties props) {\r\n }", "PropertiesTask setProperties( Properties properties );", "public abstract AbstractProperties getProperties();", "public static void loadProperties() {\r\n\t\tif (!isLoaded) {\r\n\t\t\tnew BCProperties() ;\r\n\t\t\tisLoaded = true ;\r\n\t\t}\r\n\t}", "@Override\n public void updateProperties() {\n // unneeded\n }", "private static Map<String, String> createPropertiesAttrib() {\r\n Map<String, String> map = new HashMap<String, String>();\r\n map.put(\"Property1\", \"Value1SA\");\r\n map.put(\"Property3\", \"Value3SA\");\r\n return map;\r\n }", "private static HashMap<String, DefinedProperty> initDefinedProperties() {\n\t\tHashMap<String, DefinedProperty> newList = new HashMap<String, DefinedProperty>();\n\t\t// common properties\n\t\taddProperty(newList, \"name\", DefinedPropertyType.STRING, \"\", DefinedProperty.ANY, false, false);\n\t\taddProperty(newList, \"desc\", DefinedPropertyType.STRING, \"\", DefinedProperty.ANY, false, false);\n\t\t// implicit default properties\n\t\taddProperty(newList, \"donttest\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.ANY, false, false);\n\t\taddProperty(newList, \"dontcompare\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.ANY, false, false);\n\t\t// interface properties\n\t\taddProperty(newList, \"use_interface\", DefinedPropertyType.STRING, \"\", DefinedProperty.REGSET | DefinedProperty.REG |DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"use_new_interface\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.REGSET | DefinedProperty.REG |DefinedProperty.FIELD, false, false);\n\t\t// reg + regset properties\n\t\taddProperty(newList, \"js_superset_check\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.REGSET | DefinedProperty.REG, false, false);\n\t\taddProperty(newList, \"external\", DefinedPropertyType.SPECIAL, null, DefinedProperty.REGSET | DefinedProperty.REG, false, false);\n\t\taddProperty(newList, \"repcount\", DefinedPropertyType.NUMBER, \"1\", DefinedProperty.REGSET | DefinedProperty.REG, true, false); // hidden\n\t\t// regset only properties\n\t\taddProperty(newList, \"js_macro_name\", DefinedPropertyType.STRING, \"\", DefinedProperty.REGSET, false, false);\n\t\taddProperty(newList, \"js_macro_mode\", DefinedPropertyType.STRING, \"STANDARD\", DefinedProperty.REGSET, false, false);\n\t\taddProperty(newList, \"js_namespace\", DefinedPropertyType.STRING, \"\", DefinedProperty.REGSET, false, false);\n\t\taddProperty(newList, \"js_typedef_name\", DefinedPropertyType.STRING, \"\", DefinedProperty.REGSET, false, false);\n\t\taddProperty(newList, \"js_instance_name\", DefinedPropertyType.STRING, \"\", DefinedProperty.REGSET, false, false);\n\t\taddProperty(newList, \"js_instance_repeat\", DefinedPropertyType.NUMBER, \"1\", DefinedProperty.REGSET, false, false);\n\t\t// reg only properties\n\t\taddProperty(newList, \"category\", DefinedPropertyType.STRING, \"\", DefinedProperty.REG, false, false);\n\t\taddProperty(newList, \"js_attributes\", DefinedPropertyType.STRING, \"false\", DefinedProperty.REG, false, false);\n\t\taddProperty(newList, \"aliasedId\", DefinedPropertyType.STRING, \"false\", DefinedProperty.REG, true, false); // hidden\n\t\taddProperty(newList, \"regwidth\", DefinedPropertyType.NUMBER, \"32\", DefinedProperty.REG, false, false);\n\t\taddProperty(newList, \"uvmreg_is_mem\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.REG, false, false);\n\t\taddProperty(newList, \"cppmod_prune\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.REG, false, false);\n\t\taddProperty(newList, \"uvmreg_prune\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.REG, false, false);\n\t\t// signal properties\n\t\taddProperty(newList, \"cpuif_reset\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.SIGNAL, false, false);\n\t\taddProperty(newList, \"field_reset\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.SIGNAL, false, false);\n\t\taddProperty(newList, \"activehigh\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.SIGNAL, false, false);\n\t\taddProperty(newList, \"activelow\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.SIGNAL, false, false);\n\t\taddProperty(newList, \"signalwidth\", DefinedPropertyType.NUMBER, \"1\", DefinedProperty.SIGNAL, false, false);\n\t\t// fieldset only properties\n\t\taddProperty(newList, \"fieldstructwidth\", DefinedPropertyType.NUMBER, \"1\", DefinedProperty.FIELDSET, false, false);\n\t\t// field properties\n\t\taddProperty(newList, \"rset\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"rclr\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"woclr\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"woset\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"we\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"wel\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"swwe\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"swwel\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"hwset\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"hwclr\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"swmod\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"swacc\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"sticky\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"stickybit\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"intr\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"anded\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"ored\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"xored\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"counter\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"overflow\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"reset\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"fieldwidth\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"singlepulse\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"underflow\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"incr\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"decr\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"incrwidth\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"decrwidth\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"incrvalue\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"decrvalue\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"saturate\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"incrsaturate\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"decrsaturate\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"threshold\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"incrthreshold\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"decrthreshold\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"sw\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"hw\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"precedence\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"encode\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"resetsignal\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"mask\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"enable\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"haltmask\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"haltenable\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"halt\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"next\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"nextposedge\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"nextnegedge\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"maskintrbits\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false); \n\t\taddProperty(newList, \"satoutput\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"sub_category\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"rtl_coverage\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\t\n\t\t// override allowed property set if input type is jspec\n\t\tif (Ordt.hasInputType(Ordt.InputType.JSPEC)) {\n\t\t\tputProperty(newList, \"sub_category\", DefinedPropertyType.STRING, \"\", DefinedProperty.REGSET | DefinedProperty.REG | DefinedProperty.FIELDSET | DefinedProperty.FIELD, false, false);\n\t\t\tputProperty(newList, \"category\", DefinedPropertyType.STRING, \"\", DefinedProperty.REGSET | DefinedProperty.REG, false, false);\n\t\t\tputProperty(newList, \"js_attributes\", DefinedPropertyType.STRING, \"\", DefinedProperty.REGSET | DefinedProperty.REG, false, false);\n\t\t\tputProperty(newList, \"regwidth\", DefinedPropertyType.NUMBER, \"32\", DefinedProperty.REGSET | DefinedProperty.REG, false, false);\n\t\t\tputProperty(newList, \"address\", DefinedPropertyType.NUMBER, null, DefinedProperty.REGSET | DefinedProperty.REG, false, false);\n\t\t\tputProperty(newList, \"arrayidx1\", DefinedPropertyType.NUMBER, null, DefinedProperty.REGSET | DefinedProperty.REG, true, false); // hidden\n\t\t\tputProperty(newList, \"addrinc\", DefinedPropertyType.NUMBER, null, DefinedProperty.REGSET | DefinedProperty.REG, true, false); // hidden\n\t\t}\t\t\n\n\t\treturn newList;\n\t}", "public PropertiesWriter() {\r\n }", "public Property createProperty() {\n if (newProject == null) {\n reinit();\n }\n Property p = new Property(true, getProject());\n p.setProject(newProject);\n p.setTaskName(\"property\");\n properties.addElement(p);\n return p;\n }", "private ConfigProperties() {\n\n }", "public Property createProperty() {\n Property p = new Property();\n p.setProject(getProject());\n p.setTaskName(\"property\");\n properties.addElement(p);\n return p;\n }", "public Properties getProperties()\n {\n return this.properties;\n }", "public Properties getProperties() {\n return properties;\n }", "public ManagedHsmProperties() {\n }", "private PropertiesUtils() {}", "protected NodeProperties() {\r\n }", "public void setProperties(Properties properties) {\n this.properties=properties;\n }", "public void setProperties(Properties properties)\n {\n this.properties = properties;\n }", "protected Map createPropertiesMap() {\n return new HashMap();\n }", "public FileServicePropertiesProperties() {\n }", "public void init(Properties properties) throws IOException;", "public Properties() \r\n\t{\r\n\t\tsuper();\r\n\t\tthis.port = 1234;\r\n\t\tthis.ip = \"127.0.0.1\";\r\n\t}", "public ApplyUpdateProperties() {\n }", "protected List getProperties() {\n return null;\n }", "public Properties getProperties();", "@Test\n public void testCreateFromProperties_Properties() throws Exception {\n System.out.println(\"createFromProperties\");\n Properties props = new Properties();\n props.load(Thread.currentThread().getContextClassLoader().getResourceAsStream(propertiesName));\n EngineConfiguration result = EngineConfiguration.createFromProperties(props);\n assertProperties(result);\n }", "public Properties getProperties() {\n return properties;\n }", "private void parseProperties()\n {\n List children = rootElement.getChildren(\"property\");\n\n for (Object aChildren : children)\n {\n Element child = (Element) aChildren;\n Property property = new Property(child, properties, this);\n }\n }", "protected java.util.Map getProperties() {\n return properties;\n }", "private void addProperties() {\n\n\t\t/**\n\t\t * Add fusion.conf = src/test/resource\n\t\t */\n\t\tif (isPropertyRequired(\"fusion.conf.dir\")) {\n\t\t\texpect(bundleContextMock.getProperty(\"fusion.conf.dir\")).andReturn(\n\t\t\t\t\t\"src/test/resources/\").anyTimes();\n\t\t}\n\t\t/**\n\t\t * set fusion.process.dir\n\t\t */\n\t\tif (isPropertyRequired(\"fusion.process.dir\")) {\n\t\t\texpect(bundleContextMock.getProperty(\"fusion.process.dir\"))\n\t\t\t\t\t.andReturn(\"src/test/resources/\").anyTimes();\n\t\t}\n\n\t\t/**\n\t\t * set fusion.process.temp\n\t\t */\n\t\tif (isPropertyRequired(\"fusion.process.temp.dir\")) {\n\t\t\texpect(bundleContextMock.getProperty(\"fusion.process.temp.dir\"))\n\t\t\t\t\t.andReturn(\"src/test/resources/\").anyTimes();\n\t\t}\n\n\t\t/**\n\t\t * set fusion.home\n\t\t */\n\t\tif (isPropertyRequired(\"fusion.home\")) {\n\t\t\texpect(bundleContextMock.getProperty(\"fusion.home\")).andReturn(\n\t\t\t\t\t\"src/test/resources/\").anyTimes();\n\t\t}\n\t}", "public void setProperty(Properties properties) {\r\n this.properties = properties;\r\n }", "public PropertyRefs(Properties p) {\n props = p;\n }", "public Property()\r\n {\r\n }", "ProductProperties productProperties();", "public void createTaskProperties(View view) {\n \t\n \tIntent intent = new Intent(this, TaskProperties.class);\n \t\n \t//dont have any task properties at this point\n \tif(!propertiesGrabbed){\n \n \t\tintent.putExtra(EDIT, \"no\");\n \t\tstartActivityForResult(intent, 3);\n \t\t \t\t\n \t//we have properties so need to populate the next page\t\n \t}else{\n \t\t\n \t\t//creating the values to pass\n\t\t\t//0 -> where to send the notification\n\t \t//1 -> visibility\n\t \t//2 -> description\n\t \t//3 -> type\n \t\tString[] send = new String[TaskProperties.propertyCount];\n \t\tsend[0] = taskResponseString;\n \t\tsend[1] = taskVisibility;\n \t\tsend[3] = taskResponseType;\n \t\tsend [2] = taskDescription; \n \t\t\n \t\tintent.putExtra(EDIT, \"yes\");\n \t\tintent.putExtra(PROPERTIES, send);\n \t\tstartActivityForResult(intent, 3); \t\t\t\n \t} \t\n }", "private ReadProperty()\r\n {\r\n\r\n }", "public Properties initForRuntime() {\n initProperties();\n return this;\n }", "public Property() {}", "private void initProperties()\r\n {\r\n try\r\n {\r\n properties.load(new FileInputStream(propertiesURL));\r\n }\r\n catch (IOException ex)\r\n {\r\n log.log(DEBUG,\"\"+ex);\r\n } \r\n }", "public void _getProperties() {\n Property[] properties = oObj.getProperties();\n IsThere = properties[0];\n tRes.tested(\"getProperties()\", ( properties != null ));\n return;\n }", "public ServerProperties() {\n try {\n initializeProperties();\n }\n catch (Exception e) {\n System.out.println(\"Error initializing server properties.\");\n }\n }", "public void IntialProperties() {\r\n Properties prop = new Properties();\r\n try (FileInputStream input = new FileInputStream(\"./config.properties\")) {\r\n prop.load(input);\r\n generate = prop.getProperty(\"generate\");\r\n solve = prop.getProperty(\"algorithm\");\r\n setChanged();\r\n notifyObservers(\"prop\");\r\n } catch (FileNotFoundException e) {\r\n e.printStackTrace();\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n }\r\n\r\n }", "public LoadTestProperties() {\n }", "public MaintenanceWindowsProperties() {\n }", "private void addProperties() {\n\t\tfor (PropertyGenerator pg : this.getPropertyGenerators()) {\n\t\t\tpg.generate();\n\t\t\tthis.enqueuePropertyTypeIfNeeded(pg);\n\t\t\tthis.addToSubBindingsIfNeeded(pg);\n\t\t}\n\t}", "@Test\r\n\t\tpublic static void Properties() \r\n\r\n\t\t{\r\n\t\t\ttry{\r\n\t\t\t\tprop = new Properties();\r\n\t\t\t\tfile = new File(\"C:\\\\Users\\\\vardhan\\\\eclipse-workspace\\\\com.makemytrip\\\\prop.properties\");\r\n\t\t\t\tfilereader = new FileReader(file);\r\n\t\t\t\tprop.load(filereader);\r\n\t\t\t\t\r\n\t\t\t }\r\n\t\t\r\n\t\t\r\n\t\t\tcatch(Exception e)\r\n\t\t\t{\r\n\t\t\t\tSystem.out.println(e.getMessage());\r\n\t\t\t\r\n\t\t\t}\r\n\t\t}", "public ApplicationDefinitionProperties() {\n }", "private PropertySingleton(){}", "PropertyType createPropertyType();", "private static Map<String, PropertyInfo> createPropertyMap()\r\n {\r\n Map<String, PropertyInfo> map = New.map();\r\n PropertyInfo samplingTime = new PropertyInfo(\"http://www.opengis.net/def/property/OGC/0/SamplingTime\", Date.class,\r\n TimeKey.DEFAULT);\r\n PropertyInfo lat = new PropertyInfo(\"http://sensorml.com/ont/swe/property/Latitude\", Float.class, LatitudeKey.DEFAULT);\r\n PropertyInfo lon = new PropertyInfo(\"http://sensorml.com/ont/swe/property/Longitude\", Float.class, LongitudeKey.DEFAULT);\r\n PropertyInfo alt = new PropertyInfo(\"http://sensorml.com/ont/swe/property/Altitude\", Float.class, AltitudeKey.DEFAULT);\r\n map.put(samplingTime.getProperty(), samplingTime);\r\n map.put(lat.getProperty(), lat);\r\n map.put(lon.getProperty(), lon);\r\n map.put(alt.getProperty(), alt);\r\n map.put(\"lat\", lat);\r\n map.put(\"lon\", lon);\r\n map.put(\"alt\", alt);\r\n return Collections.unmodifiableMap(map);\r\n }", "public LogProfileProperties() {\n }", "protected void setProperties(P[] properties) {\n\t\tthis.properties = properties;\n\t}", "private PropertiesLoader() {\r\n\t\t// not instantiable\r\n\t}", "@Override\n public void afterPropertiesSet() {\n }", "Properties getProps()\n {\n return props;\n }", "@Override\n public void afterPropertiesSet() throws Exception {\n System.out.println(\"After Properties Set Method is called and Properties are set for \" + triangle.toString()\n + \" And \" + shapeService.toString());\n name = \"Vedika\";\n }", "@Override\r\n\tpublic void setProperty(Properties prop) {\n\t}", "public void setProperties(Properties setList);", "DispatchingProperties() {\r\n\t\tsuper();\r\n\t\t// if (handler != null) {\r\n\t\t// throw new\r\n\t\t// RuntimeException(\"ServicePropertiesHandler: class already instantiated!\");\r\n\t\t// }\r\n\t\t// handler = this;\r\n\t}", "public ApplicationResourceProperties() {\n }", "public PropertiesPlus(Properties properties)\n\t{\n\t\tsuper(properties);\n\t\tdateFormatGMT.setTimeZone(TimeZone.getTimeZone(\"GMT\"));\n\t\tdateFormatGMT_MS.setTimeZone(TimeZone.getTimeZone(\"GMT\"));\n\t}", "void writeProperties(java.util.Properties p) {\n }", "public Property() {\n\t\tcity=\"\";\n\t\towner=\"\";\n\t\tpropertyName=\"\";\n\t\trentAmount=0;\n\t\tplot= new Plot(0,0,1,1);\n\t}", "private PropertiesHelper() {\n throw new AssertionError(\"Cannot instantiate this class\");\n }", "protected void readProperties() {\n\t\tproperties = new HashMap<>();\n\t\tproperties.put(MQTT_PROP_CLIENT_ID, id);\n\t\tproperties.put(MQTT_PROP_BROKER_URL, brokerUrl);\n\t\tproperties.put(MQTT_PROP_KEEP_ALIVE, 30);\n\t\tproperties.put(MQTT_PROP_CONNECTION_TIMEOUT, 30);\n\t\tproperties.put(MQTT_PROP_CLEAN_SESSION, true);\n\t\tproperties.put(MQTT_PROP_USERNAME, user);\n\t\tproperties.put(MQTT_PROP_PASSWORD, password.toCharArray());\n\t\tproperties.put(MQTT_PROP_MQTT_VERSION, MqttConnectOptions.MQTT_VERSION_3_1_1);\n\t}", "public SpotPropertyManager() {\r\n\t\tsuper();\r\n\t}", "public void setProperties(Properties properties) {\n\t\tthis.properties = properties;\n\t}", "public CustomerPolicyProperties() {\n }", "interface WithProperties {\n /**\n * Specifies properties.\n * @param properties Properties of the secret\n * @return the next definition stage\n */\n WithCreate withProperties(SecretProperties properties);\n }", "private ConfigProperties getProperties() {\n return properties;\n }", "public Properties getProperties() {\n \tProperties p = new Properties(); \n if (charSet != null) {\n \t p.put(\"charSet\",charSet);\n } \n\t\n\tif (user != null) {\n \t p.put(\"user\", user);\n }\n\t\n\tif (password != null) {\n \t p.put(\"password\", password);\n }\n\t\n\tif (url != null){\n\t p.put(\"url\",url);\t\n\t}\t\n\tp.put(\"loginTimeout\",\"\"+loginTimeout);\n \treturn p; \n }", "private void storComponentProperties(){\n\t\t//IPreferenceStore prefStore = JFacePreferences.getPreferenceStore();\n\t\t//PreferenceStore prefStore = mOyster2.getPreferenceStore();\n\t\tProperties mprop = mOyster2.getProperties();\n\t\tint count = mprop.getInteger(Constants.NUMBER_OF_COLUMNS);\n\t\tfor(int i=0; i<count; i++){\n\t\t\tmprop.setString(Constants.COLUMN_TYPE+i, mprop.getDefaultString(Constants.COLUMN_TYPE+i));\n\t\t\tmprop.setString(Constants.COLUMN_NAME+i, mprop.getDefaultString(Constants.COLUMN_NAME+i));\n\t\t\tmprop.setString(Constants.COLUMN_WIDTH+i, mprop.getDefaultString(Constants.COLUMN_WIDTH+i));\n\t\t\t/*\n\t\t\tprefStore.setToDefault(Constants.COLUMN_TYPE+i);\n\t\t\tprefStore.setToDefault(Constants.COLUMN_NAME+i);\n\t\t\tprefStore.setToDefault(Constants.COLUMN_WIDTH+i);\n\t\t\t*/\n\t\t}\n\t\tmprop.setString(Constants.NUMBER_OF_COLUMNS, \"\"+columns.size());\n\t\tfor(int i=0; i<columns.size(); i++){\n\t\t\tResultViewerColumnInfo colInf = getColumnInfo(i);\n\t\t\tmprop.setString(Constants.COLUMN_NAME + i, colInf.getColumnName());\n\t\t\tmprop.setString(Constants.COLUMN_TYPE + i, colInf.getColumnType());\n\t\t\tmprop.setString(Constants.COLUMN_WIDTH + i, \"\"+colInf.getWidth());\n\t\t}\n\t\ttry{\n\t\t\tmprop.storeOn();\n\t\t\t//prefStore.save();\n\t\t}\n\t\tcatch(Exception IO){\n\t\t\tSystem.out.println(\"couldnt save properties\");\n\t\t}\n\t\t\n\t}", "public void properties(){\n setChanged();\n notifyObservers(name);\n System.out.println(\"Name: \" + name);\n System.out.println(\"Formula: \" + FORMULA);\n System.out.println(\"Colour: \" + COLOUR);\n System.out.println(\"Streak: \" + STREAK);\n System.out.println(\"Luster: \" + LUSTER);\n System.out.println(\"Diaphaneity: \" + DIAPHANEITY);\n System.out.println(\"Cleavage: \" + CLEAVAGE);\n System.out.println(\"Crystal system: \" + CRYSTAL_SYSTEM);\n System.out.println(\"Hardness: \" + HARDNESS);\n System.out.println(\"Specific Gravity: \" + SPECIFIC_GRAVITY);\n }", "@Override\n public Properties getProperties() {\n return null;\n }", "public final Properties getPropertiesObject()\n {\n return fProp;\n }", "public ComponentProperties() throws WebserverSystemException {\r\n\r\n // setting up some default values\r\n setCreatedById(UserContext.getId());\r\n setCreatedByName(UserContext.getRealName());\r\n }", "@Override\n public void visit(Properties properties, Properties parent) {\n }", "public PropertiesDocument() {\n\t\tthis.documentBuilderFactory = DocumentBuilderFactory.newInstance();\n try {\n\t\t\tthis.documentBuilder = documentBuilderFactory.newDocumentBuilder();\n\t\t} catch (ParserConfigurationException e) {\n\t\t\t// Exception with default configuration\n\t\t\te.printStackTrace();\n\t\t}\n this.properties = new Properties();\n\t}" ]
[ "0.72977835", "0.7218928", "0.7061623", "0.6792072", "0.6721098", "0.6720539", "0.67103094", "0.6706953", "0.66700774", "0.66696393", "0.66588145", "0.66326755", "0.65839636", "0.6572565", "0.6566686", "0.65655696", "0.65621984", "0.6559209", "0.6558311", "0.6554002", "0.65278023", "0.6523402", "0.64807445", "0.6457673", "0.6455408", "0.64314175", "0.64221823", "0.6420465", "0.6416416", "0.64057213", "0.6390922", "0.6385912", "0.6374515", "0.6352731", "0.634343", "0.6335745", "0.6330495", "0.63295984", "0.63099414", "0.62869173", "0.627763", "0.6263941", "0.62587607", "0.62543386", "0.6243923", "0.62336856", "0.6229881", "0.62270105", "0.62164843", "0.6196031", "0.6192348", "0.61910594", "0.6181114", "0.6174133", "0.6166904", "0.6152716", "0.6149407", "0.6147232", "0.6144405", "0.61378676", "0.6130524", "0.613031", "0.6129146", "0.6128587", "0.6121913", "0.61175233", "0.6115513", "0.61144215", "0.61089325", "0.6108624", "0.6097584", "0.60926366", "0.6092544", "0.6090378", "0.6066223", "0.6060611", "0.60563296", "0.6049471", "0.60380054", "0.6012207", "0.60120016", "0.6007419", "0.60065955", "0.60061854", "0.6004384", "0.6003953", "0.600275", "0.5999588", "0.5999478", "0.5997928", "0.5992185", "0.5989818", "0.59889054", "0.59793204", "0.596674", "0.59568095", "0.5954933", "0.5950167", "0.59496564", "0.5947825", "0.5942868" ]
0.0
-1
Lists all win turns matching the given predicate
public List<Integer> getWinTurns(Predicate<GameResult> filter) { return results.stream() .filter(filter) .map(GameResult::getEndTurn) .distinct() .sorted() .collect(Collectors.toList()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Collection<I_GameState> getRepeatStates(final BiPredicate<I_GameState, I_GameState> predicate);", "List genCaps() {\n\tList ret = new ArrayList();\n\n\tif (side == LIGHT) {\n\tlong moves = ((pawnBits[LIGHT] & 0x00fefefefefefefeL) >> 9)\n\t& pieceBits[DARK];\n\twhile (moves != 0) {\n\tint theMove = getLBit(moves);\n\tgenPush(ret, theMove + 9, theMove, 17);\n\tmoves &= (moves - 1);\n\t}\n\tmoves = ((pawnBits[LIGHT] & 0x007f7f7f7f7f7f7fL) >> 7)\n\t& pieceBits[DARK];\n\twhile (moves != 0) {\n\tint theMove = getLBit(moves);\n\tgenPush(ret, theMove + 7, theMove, 17);\n\tmoves &= (moves - 1);\n\t}\n\t} else {\n\tlong moves = ((pawnBits[DARK] & 0x00fefefefefefefeL) << 7)\n\t& pieceBits[LIGHT];\n\twhile (moves != 0) {\n\tint theMove = getLBit(moves);\n\tgenPush(ret, theMove - 7, theMove, 17);\n\tmoves &= (moves - 1);\n\t}\n\tmoves = ((pawnBits[DARK] & 0x007f7f7f7f7f7f7fL) << 9)\n\t& pieceBits[LIGHT];\n\twhile (moves != 0) {\n\tint theMove = getLBit(moves);\n\tgenPush(ret, theMove - 9, theMove, 17);\n\tmoves &= (moves - 1);\n\t}\n\t}\n\tlong pieces = pieceBits[side] ^ pawnBits[side];\n\twhile (pieces != 0) {\n\tint p = getLBit(pieces);\n\tfor (int j = 0; j < offsets[piece[p]]; ++j)\n\tfor (int n = p;;) {\n\tn = mailbox[mailbox64[n] + offset[piece[p]][j]];\n\tif (n == -1)\n\tbreak;\n\tif (color[n] != EMPTY) {\n\tif (color[n] == xside)\n\tgenPush(ret, p, n, 1);\n\tbreak;\n\t}\n\tif (!slide[piece[p]])\n\tbreak;\n\t}\n\tpieces &= (pieces - 1);\n\t}\n\tif (ep != -1) {\n\tif (side == LIGHT) {\n\tif (COL(ep) != 0 && color[ep + 7] == LIGHT\n\t&& piece[ep + 7] == PAWN)\n\tgenPush(ret, ep + 7, ep, 21);\n\tif (COL(ep) != 7 && color[ep + 9] == LIGHT\n\t&& piece[ep + 9] == PAWN)\n\tgenPush(ret, ep + 9, ep, 21);\n\t} else {\n\tif (COL(ep) != 0 && color[ep - 9] == DARK\n\t&& piece[ep - 9] == PAWN)\n\tgenPush(ret, ep - 9, ep, 21);\n\tif (COL(ep) != 7 && color[ep - 7] == DARK\n\t&& piece[ep - 7] == PAWN)\n\tgenPush(ret, ep - 7, ep, 21);\n\t}\n\t}\n\treturn ret;\n\t}", "@Test\n public void testWhoIsOnTurn() {\n Assertions.assertEquals('O', GameUtil.whoIsOnTurn(0), \"Test - 0 returns player O\");\n Assertions.assertEquals('X', GameUtil.whoIsOnTurn(1), \"Test - 1 returns player X\");\n Assertions.assertEquals('O', GameUtil.whoIsOnTurn(2), \"Test - 2 returns player O\");\n Assertions.assertEquals('X', GameUtil.whoIsOnTurn(3), \"Test - 3 returns player X\");\n Assertions.assertEquals('O', GameUtil.whoIsOnTurn(4), \"Test - 4 returns player O\");\n Assertions.assertEquals('X', GameUtil.whoIsOnTurn(5), \"Test - 5 returns player X\");\n Assertions.assertEquals('O', GameUtil.whoIsOnTurn(6), \"Test - 6 returns player O\");\n Assertions.assertEquals('X', GameUtil.whoIsOnTurn(7), \"Test - 7 returns player X\");\n Assertions.assertEquals('O', GameUtil.whoIsOnTurn(8), \"Test - 8 returns player O\");\n }", "public void displayPlayerWinnings()\n {\n for(int card = 0; card < playerCardsWon; card++)\n {\n System.out.println(playerWinnings[card].toString());\n }\n }", "@SuppressWarnings(\"ResultOfObjectAllocationIgnored\")\n private String getWinnerList() {\n String list = \"\";\n\n ArrayList<IPlayer> arrlist = sortPlayerAfterPoints();\n\n for (IPlayer i : arrlist) {\n try {\n list += i.getName();\n list += \": \" + i.getPoints() + \"\\n\";\n } catch (RemoteException e) {\n e.printStackTrace();\n }\n }\n\n try {\n if (dialog.getSoundBox().isSelected()) {\n if (iPlayerList.size() > 0) {\n if (playersAgentsMap.get(arrlist.get(0).getName()).get(0).getColor().equals(Color.decode(AgentUtils.ROT))) {\n new SoundClip(\"red_team_is_the_winner\");\n } else if (playersAgentsMap.get(arrlist.get(0).getName()).get(0).getColor().equals(Color.decode(AgentUtils.BLAU))) {\n new SoundClip(\"blue_team_is_the_winner\");\n } else {\n new SoundClip(\"Flawless_victory\");\n }\n } else {\n new SoundClip(\"players_left\");\n }\n }\n } catch (NumberFormatException | RemoteException e) {\n e.printStackTrace();\n }\n\n return list;\n }", "public Set<Colour> getWinningPlayers();", "public String win() {\r\n\t\tint blackCount = 0;\r\n\t\tint whiteCount = 0;\r\n\t\tfor (int i=0; i<piece.size(); i++) {\r\n\t\t\tif (piece.get(order[i]).chessPlayer.equals(\"black\")) {\r\n\t\t\t\tblackCount++;\r\n\t\t\t} else if (piece.get(order[i]).chessPlayer.equals(\"white\")) {\r\n\t\t\t\twhiteCount++;\r\n\t\t\t} else continue;\r\n\t\t}\r\n\t\tif (blackCount == 0) {\r\n\t\t\treturn \"white\";\r\n\t\t} else if (whiteCount == 0) {\r\n\t\t\treturn \"black\";\r\n\t\t} else return null;\r\n\t}", "private ArrayList<Coordinates> getThreats() {\n\t\tArrayList<Coordinates> result = new ArrayList<>();\n\t\tArrayList<Coordinates> adversary = chessboard.getEnemyPieces();\n\t\tCoordinates king = null;\n\t\tking = chessboard.getTurnKing();\n\t\t\t\t\n\t\tfor (Coordinates c : adversary ){\n\t\t\tif ( checkMove(c, king) ){\n\t\t\t\tresult.add(c);\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn result;\n\t}", "public void play_game()\n {\n\tint r,c;\n\tString action;\n\n\twhile ( _the_board.game_won() == false )\n\t {\n\t\tSystem.out.println( _the_board );\n\n\t\tSystem.out.print(\"col: \");\n\t\tc = _scan.nextInt();\n\t\tSystem.out.print(\"row: \");\n\t\tr = _scan.nextInt();\n\t\tSystem.out.print(\"explore, flag, unflag: \");\n\t\taction = _scan.next();\n\n\t\tif ( action.equals(\"explore\") && \n\t\t _the_board.open_cell(c, r) )\n\t\t {\n\t\t\tSystem.out.println(\"BOOOOOOMMMMM!!!!!!!!!!\");\n\t\t\treturn;\n\t\t }\n\n\t\tif ( action.equals(\"flag\") )\n\t\t _the_board.place_flag(c, r);\n\t\t\n\t\tif ( action.equals(\"unflag\") )\n\t\t _the_board.remove_flag(c, r);\n\t }\n\n\tSystem.out.println(\"You win!!!\");\n }", "private void yourturn() {\n if (whosturn != 3) {\n whosturn = 3;\n displayTable();\n }\n\n // TODO mega duplication\n int top = 0;\n // testing is player has a card they can play\n if (pile.notEmpty()) {\n boolean canplay = false;\n if (hand.getCard(0) == null) { // if player only has card on the table\n if (hand.isFaceUp()) // if player has faceup card on the table\n {\n for (int n = 0; n < 3; n++) {\n if (hand.getFaceUp(n) != null) {\n if (nine && pile.topValue() == 9) {\n top = 0;\n for (int i = 0; i < 52; i++) {\n if (pile.get(i) == null) {\n canplay = true;\n break;\n }\n if (pile.get(i).getValue() == 9) top++;\n else break;\n }\n }\n if (canplay) break;\n if (seven\n && pile.get(top).getValue() == 7\n && hand.getFaceUp(n).getValue() < 7) {\n canplay = true;\n break;\n } else if (hand.getFaceUp(n).getValue() == 2\n || hand.getFaceUp(n).getValue() == 10) {\n canplay = true;\n break;\n } else if (nine && hand.getFaceUp(n).getValue() == 9) {\n canplay = true;\n break;\n } else if (!seven || pile.get(top).getValue() != 7) {\n if (pile.get(top).getValue() <= hand.getFaceUp(n).getValue()) {\n canplay = true;\n break;\n }\n }\n }\n }\n } else // if player only has facedown cards\n canplay = true;\n } else {\n for (int n = 0; n < hand.length() - 1; n++) {\n if (hand.getCard(n) == null) break;\n if (nine && pile.topValue() == 9) {\n top = 0;\n for (int i = 0; i < 52; i++) {\n if (pile.get(i) == null) {\n canplay = true;\n break;\n }\n if (pile.get(i).getValue() == 9) top++;\n else break;\n }\n }\n if (canplay) break;\n if (hand.getCard(n).getValue() == 2 || hand.getCard(n).getValue() == 10) {\n canplay = true;\n break;\n }\n if (nine && hand.getCard(n).getValue() == 9) {\n canplay = true;\n break;\n }\n if (seven && pile.get(top).getValue() == 7 && hand.getCard(n).getValue() < 7) {\n canplay = true;\n break;\n } else if (seven != true || pile.get(top).getValue() != 7) {\n if (pile.get(top).getValue() <= hand.getCard(n).getValue()) {\n canplay = true;\n break;\n }\n }\n }\n }\n if (canplay) {\n // sh.addMsg(\"Its Your Turn\");\n sh.setmyTurn(true);\n } else { // cant play then must pick up the pile\n sh.addMsg(\n \"The card played was a \"\n + pile.top().getStringValue()\n + \" you had to pick up the pile. BLAOW\");\n pile.moveToHand(hand);\n sendCommand(\"turn:pickup:\");\n nextTurn();\n displayTable();\n }\n } else {\n // sh.addMsg(\"Its Your Turn\");\n sh.setmyTurn(true);\n }\n }", "public List<Runway> selectRunwaysBySpaceport(String spaceport) throws SQLException {\r\n connection();\r\n String query = \"select * from runway where spaceport ='\" + spaceport + \"'\";\r\n Statement st = conexion.createStatement();\r\n ResultSet rs = st.executeQuery(query);\r\n List<Runway> runways = new ArrayList<>();\r\n while (rs.next()) {\r\n Runway runway = new Runway();\r\n runway.setNumber(rs.getInt(\"number\"));\r\n runway.setStatus(ToolsApp.converStringToRunwaysStatus(rs.getString(\"status\")));\r\n runway.setLandingsNumber(rs.getInt(\"numlandings\"));\r\n if (rs.getString(\"spaceship\") == null) {\r\n runway.setSpaceship(null);\r\n } else {\r\n runway.setSpaceship(getSpaceshipByName(rs.getString(\"spaceship\")));\r\n }\r\n runways.add(runway);\r\n }\r\n rs.close();\r\n st.close();\r\n disconnect();\r\n return runways;\r\n }", "public ArrayList<Hole> availableMoves(Side turnSide){\n ArrayList<Hole> holesOwned = new ArrayList<>();\n for(Hole h : holes){\n if(h.getOwner() == turnSide && h.getNumberOfKoorgools() != 0){\n holesOwned.add(h);\n }\n }\n return holesOwned;\n }", "List<Move> getLegalMoves(Player player);", "@Override\n\tpublic void getScoreBoard(Lane lane) {\n\t\tSystem.out.println();\n\t\tSystem.out.println(\"Lane Number: \" + lane.getId());\n\n\t\tTreeMap<Integer, List<String>> winners = new TreeMap<>(Collections.reverseOrder());\n\n\t\tfor (Player player : lane.getPlayers()) {\n\t\t\tgetScoreCardByPlayer(player);\n\t\t\tint totalScore = player.getScoreCard().getTotalScore();\n\t\t\tList<String> winner = new ArrayList<>();\n\t\t\tif (winners.containsKey(totalScore)) {\n\t\t\t\twinner = winners.get(totalScore);\n\t\t\t}\n\t\t\twinner.add(player.getName());\n\t\t\twinners.put(totalScore, winner);\n\t\t}\n\t\tSystem.out.println(\"Winner: \" + winners.get(winners.firstKey()));\n\t\tSystem.out.println();\n\t}", "private PlayerType GetPlayerForTurn(int turn) {\n switch ((turn - 1) % 6) {\n case 0:\n case 4:\n case 5:\n return PlayerType.One;\n\n case 1:\n case 2:\n case 3:\n return PlayerType.Two;\n\n default:\n return PlayerType.Empty;\n }\n }", "public void printTurn(MouseEvent event) {\n\n if(winner != null) {\n showWindow(winner);\n } else {\n Label textId = (Label) event.getSource();\n if(single && textId.getText().isEmpty())\n disableLabel();\n\n if (textId.getText().isEmpty()) {\n if (playerX.equals(whoseTurn)) {\n textId.setText(\"X\");\n whoseTurn = playerO;\n } else {\n textId.setText(\"O\");\n whoseTurn = playerX;\n }\n }\n computeWinLose();\n label.setText(whoseTurn + \"'s turn to play\");\n\n if (single && whoseTurn.equals(playerO)) {\n printO();\n computeWinLose();\n }\n }\n }", "public void CheckHands(){\n HashMap<CardRank, Integer> CardMap = getCardMap(ranks);\n ArrayList<Integer> MapValues = new ArrayList<>(CardMap.values());\n //sort MapValues in descending order, so that we can use\n // MapValues.get(0) to get the largest appear time and so on\n Collections.sort(MapValues, Collections.reverseOrder());\n System.out.print(\"Player 1: \");\n\n\n //Straight flush\n if (flush(suits) && straight(ranks)){\n System.out.println(ranks.get(ranks.size()-1).getName()\n + \"-high straight flush\");\n return;\n }\n\n //Four of a kind\n if (MapValues.get(0) == 4){\n CardRank rank4 = getKeysByValue(CardMap, 4).get(0);\n System.out.println(\"Four \" + rank4.getName() + \"s\");\n return;\n }\n\n //full house\n if (MapValues.get(0) == 3 && MapValues.get(1) == 2){\n CardRank rank3 = getKeysByValue(CardMap, 3).get(0);\n CardRank rank2 = getKeysByValue(CardMap,2).get(0);\n System.out.println(rank3.getName() + \"s full of \"\n + rank2.getName()+\"s\");\n return;\n }\n\n //Flush (not straight)\n if (flush(suits) && !straight(ranks)) {\n System.out.println(ranks.get(ranks.size() - 1).getName()\n + \"-high flush\");\n return;\n }\n\n //Straight (not flush)\n if (straight(ranks) && !flush(suits)){\n System.out.println(ranks.get(ranks.size() - 1).getName()\n + \"-high straight\");\n return;\n }\n\n //Three of a kind (not full house)\n if (MapValues.get(0) == 3 && MapValues.get(1) != 2){\n CardRank rank3 = getKeysByValue(CardMap, 3).get(0);\n System.out.println(\"Three \" + rank3.getName() + \"s\");\n return;\n }\n\n //Two Pair\n if (MapValues.get(0) == 2 && MapValues.get(1) == 2){\n CardRank rank21 = getKeysByValue(CardMap,2).get(0);\n CardRank rank22 = getKeysByValue(CardMap, 2).get(1);\n System.out.println(rank22.getName() + \"s over \"\n + rank21.getName() + \"s\" );\n return;\n\n }\n\n //One pair (only one)\n if (MapValues.get(0) == 2 && MapValues.get(1) == 1){\n CardRank rank2 = getKeysByValue(CardMap, 2).get(0);\n System.out.println(\"Pair of \" + rank2.getName()+ \"s\");\n return;\n }\n\n //High Card (not flush)\n if (MapValues.get(0) == 1 && !flush(suits)){\n System.out.println(ranks.get(ranks.size() - 1).getName() + \"-high\");\n return;\n }\n }", "public void wizardRule(){\n for (int i=0; i<players.size(); i++){\n Player p = players.get(i);\n if(winner.getPlayCard() != null){\n if ((p.getPlayCard().getNumber() == 15 && winner.getPlayCard().getNumber() != 15) || winner.getPlayCard().getNumber() == 1) {\n setWinner(p);\n } else if(winner.getPlayCard().getNumber() != 15) {\n suitRule(p);\n }\n }\n else{\n setWinner(p);\n }\n }\n }", "public final boolean checkForWin() {\r\n boolean result = false;\r\n String player = \"\";\r\n \r\n for (Rail rail : rails) {\r\n if (rail.isWinner()) {\r\n result = true;\r\n for(Tile tile : rail.getTiles()) {\r\n tile.setBackground(Color.GREEN);\r\n player = tile.getText();\r\n }\r\n if (player.equals(\"X\")) {\r\n winningPlayer = \"X\";\r\n this.xWins++;\r\n } else if (player.equals(\"0\")) {\r\n winningPlayer = \"0\";\r\n this.oWins++;\r\n }\r\n break;\r\n }\r\n }\r\n \r\n return result;\r\n }", "Collection<String> getPossibleVictoryConditions();", "public List<Runway> selectRunwaysByStatus(String status) throws SQLException {\r\n connection();\r\n String query = \"select * from runway where status ='\" + status + \"'\";\r\n Statement st = conexion.createStatement();\r\n ResultSet rs = st.executeQuery(query);\r\n List<Runway> runways = new ArrayList<>();\r\n while (rs.next()) {\r\n Runway runway = new Runway();\r\n runway.setNumber(rs.getInt(\"number\"));\r\n runway.setStatus(ToolsApp.converStringToRunwaysStatus(rs.getString(\"status\")));\r\n runway.setLandingsNumber(rs.getInt(\"numlandings\"));\r\n if (rs.getString(\"spaceship\") == null) {\r\n runway.setSpaceship(null);\r\n } else {\r\n runway.setSpaceship(getSpaceshipByName(rs.getString(\"spaceship\")));\r\n }\r\n runways.add(runway);\r\n }\r\n rs.close();\r\n st.close();\r\n disconnect();\r\n return runways;\r\n }", "private Boolean win(int counter) {\n \n winner = false;\n //if the counter is greater than 8, recognizes that it is a draw\n if (counter >= 8) {\n announce.setText(\"Draw\");\n turn.setText(\"\"); //game ends and is no ones turn\n }\n //list of all of the winning options\n if ((tBoard[0] == tBoard[1] && tBoard[1] == tBoard[2] && tBoard[0] != 2)\n || (tBoard[0] == tBoard[3] && tBoard[3] == tBoard[6] && tBoard[0] != 2)\n || (tBoard[3] == tBoard[4] && tBoard[4] == tBoard[5] && tBoard[3] != 2)\n || (tBoard[6] == tBoard[7] && tBoard[7] == tBoard[8] && tBoard[6] != 2)\n || (tBoard[1] == tBoard[4] && tBoard[4] == tBoard[7] && tBoard[1] != 2)\n || (tBoard[2] == tBoard[5] && tBoard[5] == tBoard[8] && tBoard[2] != 2)\n || (tBoard[0] == tBoard[4] && tBoard[4] == tBoard[8] && tBoard[0] != 2)\n || (tBoard[2] == tBoard[4] && tBoard[4] == tBoard[6] && tBoard[2] != 2)) {\n //if counter is even then recognizes that it is the person who has the X symbol and knows that X won \n if (counter % 2 == 0) {\n announce.setText(\"X is the Winner\"); //announces that X has won\n turn.setText(\"\"); //no ones turn anymore\n } //if it is not X, O has won the game and recognizes\n else {\n announce.setText(\"O is the Winner\"); //announces that O has won\n turn.setText(\"\"); //no ones turn anymore\n\n }\n //winner is set to true and stops allowing user to press other squares through pressed method\n winner = true;\n\n }\n //returns winner\n return winner;\n\n }", "public void win() {\n if (turn == 1) {\n p1.incrementLegs();\n if (p1.getLegs() == 5) {\n p1.incrementSets();\n p1.setLegs(0);\n p2.setSets(0);\n\n }\n if (p1LastScore > p1.getHighout()) {\n p1.setHighout(p1LastScore);\n\n }\n\n if (p1.getHighout() > OVERALL_HIGH_OUT) {\n OVERALL_HIGH_OUT = p1.getHighout();\n }\n } else if (turn == 2) {\n p2.incrementLegs();\n if (p2.getLegs() == 5) {\n p2.incrementSets();\n p2.setLegs(0);\n p1.setSets(0);\n\n }\n if (p2LastScore > p2.getHighout()) {\n p2.setHighout(p2LastScore);\n }\n\n if (p2.getHighout() > OVERALL_HIGH_OUT) {\n OVERALL_HIGH_OUT = p2.getHighout();\n }\n\n\n\n }\n changeFirstTurn();\n win = true;\n\n\n\n }", "public static ArrayList<String> getStatistics() {\n ArrayList<String> answer = new ArrayList<>();\n for (Map.Entry<String, HashMap<String, Integer>> entry1 : winStatistic.entrySet()) {\n for (Map.Entry<String, Integer> entry2 : entry1.getValue().entrySet()) {\n answer.add(entry1.getKey() + \" won \" + entry2.getKey() + \" \" + entry2.getValue() + \" times.\");\n }\n }\n for (Map.Entry<String, HashMap<String, Integer>> entry1 : drawStatistic.entrySet()) {\n for (Map.Entry<String, Integer> entry2 : entry1.getValue().entrySet()) {\n answer.add(entry1.getKey() + \" play in a draw with \" + entry2.getKey() + \" \" + entry2.getValue() + \" times.\");\n }\n }\n return answer;\n }", "private void showChampionshipWinner()\n {\n boolean singleWinner = true;\n String winnerDrivers = getDrivers().getDriver(0).getName();\n for(int j = 1; j < getDrivers().getSize(); j++)\n { \n if(getDrivers().getDriver(0).getAccumulatedScore() == getDrivers().getDriver(j).getAccumulatedScore()) // if multiple winners\n {\n singleWinner = false;\n winnerDrivers += \" and \" + getDrivers().getDriver(j).getName();\n break;\n }\n else\n {\n break;\n }\n\n }\n if(singleWinner)\n System.out.println(winnerDrivers + \" is the winner of the championship with \" + getDrivers().getDriver(0).getAccumulatedScore() + \" points\");\n else // if multiple winner\n System.out.println(\"ITS A CHAMPIONSHIP TIE!!!\" + winnerDrivers + \" are the winners of the championship with \" + getDrivers().getDriver(0).getAccumulatedScore() + \" points\");\n }", "public Streak[] findStreaks() {\n List<Streak> streaks = new LinkedList<>();\n Streak s;\n Piece[][] arrs = new Piece[4][4];\n Piece[][] diagArr = new Piece[2][4];\n int f;\n for (int row = 0; row < 4; row++) {\n f = 4 * row;\n s = Streak.gotStreak(Arrays.copyOfRange(board, f, f + 4), Streak.Orientation.HORIZONTAL, row);\n if (s != null) {\n streaks.add(s);\n }\n arrs[0][row] = board[f];\n arrs[1][row] = board[f + 1];\n arrs[2][row] = board[f + 2];\n arrs[3][row] = board[f + 3];\n\n diagArr[0][row] = board[f + row];\n diagArr[1][row] = board[4 * (3 - row) + row];\n }\n for (int col = 0; col < 4; col++) {\n s = Streak.gotStreak(arrs[col], Streak.Orientation.VERTICAL, col);\n if (s != null) {\n streaks.add(s);\n }\n }\n for (int diag = 0; diag < 2; diag++) {\n s = Streak.gotStreak(diagArr[diag], Streak.Orientation.DIAGONAL, diag);\n if (s != null) {\n streaks.add(s);\n }\n }\n Streak[] st = new Streak[streaks.size()];\n return streaks.toArray(st);\n }", "public void displayComputerWinnings()\n {\n for(int card = 0; card < computerCardsWon; card++)\n {\n System.out.println(compWinnings[card].toString());\n }\n }", "public Stream<BoardObject> getBoardObjects(int team, boolean leader, boolean minion, boolean amulet, boolean alive) {\n Stream<BoardObject> stream = Stream.empty();\n if (leader) {\n stream = this.getPlayerCard(team, Player::getLeader)\n .filter(l -> !alive || l.alive)\n .map(l -> l); // this is necessary 100%\n }\n stream = Stream.concat(stream,\n this.getPlayerCards(team, Player::getPlayArea)\n .filter(c -> (minion || !(c instanceof Minion)) && (amulet || !(c instanceof Amulet)) && (!alive || c.alive)));\n return stream;\n }", "private static Hand getResults() {\n System.out.println(hands.size());\n Optional<Hand> winner;\n winner = hands.stream()\n .reduce((hand1, hand2)\n -> hand1.compareTo(hand2) == 1 ? hand1 : hand2);\n Hand winningHand = null;\n if (winner.isPresent()) {\n winningHand = winner.get();\n }\n return winningHand;\n\n }", "public List<Piece> whitePieces();", "boolean isPlayerTurn();", "public void getChampionBans() {\n\t\tcreateBlueBanHighlight();\n\t\tcreatePurpleBanHighlight();\n\t\tblueBan = true;\n\t\tArrayList<String> temp = CHAMPIONLIST;\n\t while (numBlueBans < 3 || numPurpleBans < 3) {\n\t \ttry {\n\t \t\tArrayList<String> aL = findChampions();\n\t \t\tif (!aL.equals(temp)) {\n\t \t\t\taddChampions(panel, aL);\n\t \t\t\ttemp = aL;\n\t \t\t}\n\t \t\tThread.sleep(100);\n\t \t} catch (InterruptedException e) {\n\t \t\tcontinue;\n\t \t}\n\t }\n\t}", "public static List<List<String>> turnHands(List<List<String>> flopHand){\r\n\t\tList<List<String>> turnHands = new ArrayList<List<String>>();\r\n\t\tfor (int i = 0; i < Poker.numberPlayers; i++) {\r\n\t\t\tList<String> playerCards = new ArrayList<String>();\r\n\t\t\tplayerCards.addAll(flopHand.get(i));\r\n\t\t\tplayerCards.add(RunGameLoop.hand.getTurn());\r\n\t\t\tturnHands.add(playerCards);\r\n\t\t}\r\n\t\treturn turnHands;\r\n\t}", "public List<ShelfItem> getAllWishlist(String filter, String username, Integer from, Integer to);", "public List<Runway> selectRunwaysBySpaceportStatus(String nameSpaceport, String status) throws SQLException {\r\n connection();\r\n String query = \"select * from runway where spaceport ='\" + nameSpaceport + \"' and status='\" + status + \"'\";\r\n Statement st = conexion.createStatement();\r\n ResultSet rs = st.executeQuery(query);\r\n List<Runway> runways = new ArrayList<>();\r\n while (rs.next()) {\r\n Runway runway = new Runway();\r\n runway.setNumber(rs.getInt(\"number\"));\r\n runway.setStatus(ToolsApp.converStringToRunwaysStatus(rs.getString(\"status\")));\r\n runway.setLandingsNumber(rs.getInt(\"numlandings\"));\r\n if (rs.getString(\"spaceship\") == null) {\r\n runway.setSpaceship(null);\r\n } else {\r\n runway.setSpaceship(getSpaceshipByName(rs.getString(\"spaceship\")));\r\n }\r\n runways.add(runway);\r\n }\r\n rs.close();\r\n st.close();\r\n disconnect();\r\n return runways;\r\n }", "public List<Piece> blackPieces();", "java.util.List<com.rpg.framework.database.Protocol.CharacterAction> \n getActionsList();", "java.util.List<com.rpg.framework.database.Protocol.CharacterAction> \n getActionsList();", "@Test\n void testAllLegalMoves() {\n \tplayer1 = new HumanPlayer(\"Arnold\");\n player2 = new HumanPlayer(\"Intelligent Twig\");\n gameState = new GameState(Arrays.asList(player1, player2));\n board = gameState.getBoard();\n \n Set<PlayableMove> moves = Move.allLegalMoves(gameState);\n\n assertTrue(moves.stream().allMatch(e -> e.isLegal()));\n assertEquals(44, moves.size());\n }", "public void filterMapExample() {\n List<String> result = createPeople()\n .stream()\n .filter(predicate)\n .map(Person::getName)\n .map(String::toUpperCase)\n .collect(Collectors.toUnmodifiableList());\n print.accept(result);\n }", "boolean hasWin();", "public State[] getSuccessors(char player) {\n\t\t// TO DO: get all successors and return them in proper order\r\n\t\tchar[][] board = convert2D(this.board);\r\n\r\n\t\tchar opponent;\r\n\t\tif(player == '2')\r\n\t\t\topponent = '1';\r\n\t\telse \r\n\t\t\topponent = '2';\r\n\r\n\t\tArrayList<State> successors = new ArrayList<State>();\r\n\r\n\t\tArrayList<Integer> row = new ArrayList<Integer>();\r\n\r\n\t\tArrayList<Integer> col = new ArrayList<Integer>();\r\n\t\t//ArrayList<Integer[]> indices = new ArrayList<Integer[]>();\r\n\r\n\t\tfor(int i = 0;i < 4; ++i){\r\n\r\n\t\t\tfor(int j = 0;j < 4; ++j){\r\n\r\n\t\t\t\tif(board[i][j] == opponent){\r\n\r\n\t\t\t\t\tint I = i, J = j; \r\n\t\t\t\t\t//upper left diag\r\n\t\t\t\t\tif(i-1 >= 0 && j-1 >= 0 && board[i-1][j-1] == '0'){ \r\n\r\n\t\t\t\t\t\ti = i+1; \r\n\t\t\t\t\t\tj = j+1;\r\n\r\n\t\t\t\t\t\twhile(i < 3 && j < 3 && board[i][j] == opponent)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\ti++;j++;\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\tif(i <= 3 && j <= 3 && board[i][j] == player) {\r\n\r\n\t\t\t\t\t\t\tif(!exists(row,col,I-1,J-1)) {\r\n\r\n\t\t\t\t\t\t\t\trow.add(I-1);\r\n\t\t\t\t\t\t\t\tcol.add(J-1);\r\n\r\n\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\ti=I;j=J;\r\n\t\t\t\t\t//left\r\n\t\t\t\t\tif(i-1>=0 && board[i-1][j] == '0'){\r\n\t\t\t\t\t\ti = i+1;\r\n\r\n\t\t\t\t\t\twhile(i < 3 && board[i][j] == opponent) \r\n\t\t\t\t\t\t\ti++;\r\n\t\t\t\t\t\tif(i<=3 && board[i][j] == player) {\r\n\r\n\t\t\t\t\t\t\tif(!exists(row,col,I-1,J)) {\r\n\r\n\t\t\t\t\t\t\t\trow.add(I-1);\r\n\t\t\t\t\t\t\t\tcol.add(J);\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\ti=I;\r\n\r\n\t\t\t\t\t//lower left diag\r\n\t\t\t\t\tif(i-1 >= 0 && j+1 <= 3 && board[i-1][j+1] == '0'){\r\n\r\n\t\t\t\t\t\ti = i+1; j = j-1;\r\n\r\n\t\t\t\t\t\twhile(i<3 && j>0 && board[i][j] == opponent)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\ti++;j--;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tif(i<=3 && j>=0 && board[i][j] == player) {\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tif(!exists(row,col,I-1,J+1)) {\r\n\t\t\t\t\t\t\t\trow.add(I-1);\r\n\t\t\t\t\t\t\t\tcol.add(J+1);\r\n\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t} \r\n\r\n\t\t\t\t\ti=I;\r\n\t\t\t\t\tj=J;\r\n\r\n\t\t\t\t\t//up\r\n\t\t\t\t\tif(j-1>=0 && board[i][j-1] == '0'){\r\n\t\t\t\t\t\tj = j+1;\r\n\r\n\t\t\t\t\t\twhile(j < 3 && board[i][j] == opponent)\r\n\t\t\t\t\t\t\tj++;\r\n\r\n\t\t\t\t\t\tif(j <= 3 && board[i][j] == player) {\r\n\r\n\t\t\t\t\t\t\tif(!exists(row,col,I,J-1)) {\r\n\r\n\t\t\t\t\t\t\t\trow.add(I);\r\n\t\t\t\t\t\t\t\tcol.add(J-1);\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\r\n\t\t\t\t\tj=J;\r\n\t\t\t\t\t//down\r\n\t\t\t\t\tif(j+1 <= 3 && board[i][j+1] == '0'){\r\n\r\n\t\t\t\t\t\tj=j-1;\r\n\r\n\t\t\t\t\t\twhile(j > 0 && board[i][j] == opponent)\r\n\t\t\t\t\t\t\tj--;\r\n\r\n\t\t\t\t\t\tif(j >= 0 && board[i][j] == player) {\r\n\r\n\t\t\t\t\t\t\tif(!exists(row,col,I,J+1)) {\r\n\r\n\t\t\t\t\t\t\t\trow.add(I);\r\n\t\t\t\t\t\t\t\tcol.add(J+1);\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\tj=J;\r\n\t\t\t\t\t//upper right\r\n\t\t\t\t\tif(i+1<=3 && j-1>=0 && board[i+1][j-1] == '0'){\r\n\r\n\t\t\t\t\t\ti=i-1;\r\n\t\t\t\t\t\tj=j+1;\r\n\r\n\t\t\t\t\t\twhile(i > 0 && j < 3 && board[i][j] == opponent){\r\n\r\n\t\t\t\t\t\t\ti--;\r\n\t\t\t\t\t\t\tj++;\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\tif(i >= 0 && j <= 3 && board[i][j] == player) {\r\n\r\n\t\t\t\t\t\t\tif(!exists(row,col,I+1,J-1)) {\r\n\r\n\t\t\t\t\t\t\t\trow.add(I+1);\r\n\t\t\t\t\t\t\t\tcol.add(J-1);\r\n\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\r\n\t\t\t\t\ti=I;\r\n\t\t\t\t\tj=J;\r\n\t\t\t\t\t//right\r\n\t\t\t\t\tif(i+1 <= 3 && board[i+1][j] == '0'){\r\n\t\t\t\t\t\ti=i-1;\r\n\r\n\t\t\t\t\t\twhile(i > 0 && board[i][j] == opponent) \r\n\t\t\t\t\t\t\ti--;\r\n\r\n\t\t\t\t\t\tif(i >= 0 && board[i][j] == player) {\r\n\r\n\t\t\t\t\t\t\tif(!exists(row,col,I+1,J)) {\r\n\r\n\t\t\t\t\t\t\t\trow.add(I+1);\r\n\t\t\t\t\t\t\t\tcol.add(J);\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\ti=I;\r\n\t\t\t\t\t//lower right diag\r\n\t\t\t\t\tif(i+1 <= 3 && j+1 <=3 && board[i+1][j+1] == '0'){\r\n\r\n\t\t\t\t\t\ti=i-1;\r\n\t\t\t\t\t\tj=j-1;\r\n\r\n\t\t\t\t\t\twhile(i > 0 && j > 0 && board[i][j] == opponent)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\ti--;\r\n\t\t\t\t\t\t\tj--;\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\tif(i >= 0 && j >= 0 && board[i][j] == player) {\r\n\r\n\t\t\t\t\t\t\tif(!exists(row, col, I+1, J+1)) {\t\r\n\r\n\t\t\t\t\t\t\t\trow.add(I+1);\r\n\t\t\t\t\t\t\t\tcol.add(J+1);\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\r\n\t\t\t\t\ti=I;\r\n\t\t\t\t\tj=J;\r\n\t\t\t\t}\r\n\t\t\t} \r\n\t\t} \r\n\t\t//Adding to successors\r\n\t\tfor(int i = 0; i < row.size(); i++) {\r\n\r\n\t\t\tsuccessors.add(move(player, row.get(i), col.get(i)));\r\n\t\t}\r\n\r\n\t\t//Create an array,\r\n\t\tState[] succsArray = new State[successors.size()];\r\n\t\t//get data in array\r\n\t\tsuccsArray = successors.toArray(succsArray);\r\n\r\n\t\treturn succsArray;\t\r\n\t}", "boolean isMyTurn();", "private WeightedSampler<String> getPossibleLethalActions(int team) {\n if (this.b.getCurrentPlayerTurn() != team || this.b.getWinner() != 0) {\n return null;\n }\n Player p = this.b.getPlayer(team);\n WeightedSampler<String> poss = new WeightedOrderedSampler<>();\n List<Minion> minions = this.b.getMinions(team, false, true).collect(Collectors.toList());\n for (Minion m : minions) {\n if (p.canUnleashCard(m)) {\n double totalWeight = UNLEASH_TOTAL_WEIGHT + UNLEASH_WEIGHT_PER_PRESENCE * m.getTotalEffectValueOf(e -> e.getPresenceValue(5));\n List<List<List<TargetList<?>>>> targetSearchSpace = new LinkedList<>();\n this.getPossibleListTargets(m.getUnleashTargetingSchemes(), new LinkedList<>(), targetSearchSpace);\n if (targetSearchSpace.isEmpty()) {\n targetSearchSpace.add(List.of());\n }\n for (List<List<TargetList<?>>> targets : targetSearchSpace) {\n poss.add(new UnleashMinionAction(p, m, targets).toString().intern(), totalWeight / targetSearchSpace.size());\n }\n }\n }\n if (this.b.getMinions(team * -1, false, true).anyMatch(m -> m.finalStats.get(Stat.WARD) > 0)) {\n // find ways to break through the wards\n for (Minion m : minions) {\n if (m.canAttack()) {\n double totalWeight = ATTACK_TOTAL_WEIGHT + ATTACK_WEIGHT_MULTIPLIER * m.finalStats.get(Stat.ATTACK);\n List<Minion> searchSpace = m.getAttackableTargets().collect(Collectors.toList());\n double weight = totalWeight / searchSpace.size();\n for (Minion target : searchSpace) {\n double overkillMultiplier = Math.pow(ATTACK_WEIGHT_OVERKILL_PENALTY, Math.max(0, m.finalStats.get(Stat.ATTACK) - target.health));\n poss.add(new OrderAttackAction(m, target).toString().intern(), overkillMultiplier * weight);\n }\n }\n }\n } else {\n // just go face\n this.b.getPlayer(team * -1).getLeader().ifPresent(l -> {\n for (Minion m : minions) {\n if (m.canAttack(l)) {\n double totalWeight = ATTACK_TOTAL_WEIGHT + ATTACK_WEIGHT_MULTIPLIER * m.finalStats.get(Stat.ATTACK);\n poss.add(new OrderAttackAction(m, l).toString().intern(), totalWeight);\n }\n }\n });\n }\n poss.add(new EndTurnAction(team).toString().intern(), END_TURN_WEIGHT);\n return poss;\n }", "List<Moves> getMoveSet();", "public List<PlayerTeam> display6() {\n List<PlayerTeam> l = new List<PlayerTeam>();\n List<PlayerTeam> all = build();\n int max = 0;\n PlayerTeam curr = all.first();\n while (curr != null) {\n int c = curr.getWinninggoals();\n if (c > max) {// if is a new maximum value, empty the list\n l.clear();\n l.add(curr);\n max = c;\n } else if (c == max) { // if there are more than one maximum value,\n // add it\n l.add(curr);\n }\n curr = all.next();\n }\n return l;\n }", "public ArrayList<Integer> generateWinner() {\n if (winner.size() == 7) {\n if (!sorted) {\n Collections.sort(winner);\n sorted = true;\n }\n return winner;\n }\n if (numbers.size() == 32 || winner.size() != 0) {\n init();\n }\n\n for (int i = 0; i < 7; i++) {\n winner.add(numbers.get(random.nextInt(numbers.size())));\n numbers.remove(winner.get(i));\n }\n Collections.sort(winner);\n return winner;\n }", "int getTurn();", "public Average getAverageWinTurn(Predicate<GameResult> filter) {\n long sum = results.stream()\n .filter(filter)\n .mapToLong(result -> result.getEndTurn() * result.getCount())\n .sum();\n long count = count(filter);\n double avg = (double) sum / (double) count;\n\n double distanceSum = results.stream()\n .filter(filter)\n .mapToDouble(result -> Math.abs(avg - result.getEndTurn()) * result.getCount())\n .sum();\n double mad = distanceSum / (double) count;\n\n// double distanceSqSum = results.stream()\n// .filter(filter)\n// .mapToDouble(result -> ((double) result.getEndTurn() - avg) * ((double) result.getEndTurn() - avg) * result.getCount())\n// .sum();\n// double standardDeviation = Math.sqrt(distanceSum / (double) count);\n\n return new Average(avg, mad);\n }", "public Match[] getFemale32Winners() {\n return wthirt;\n }", "public ArrayList<BoardGame> filterByPlayer(ArrayList<BoardGame> list) {\n //int playerCount = Integer.parseInt(numPlayers);\n int playerCount = extractInt(numPlayers);\n ArrayList<BoardGame> tempList = new ArrayList<>();\n for (BoardGame game: list) {\n //Debug print out\n Log.i(\"FILTER PLAYERS\", \"Game: \" + game.getName() + \" Min players: \" + game.getMinPlayers() +\n \" Max players: \" + game.getMaxPlayers() + \" Target players: \" + playerCount);\n //TODO: Is there some case for 10+ that would differ from the below?\n if(game.getMinPlayers() <= playerCount && game.getMaxPlayers() >= playerCount) {\n addGameToList(tempList, game);\n }\n }\n return tempList;\n }", "public static void outcomes(){\n switch(outcome){\n case 1:\n System.out.println(\"Player 1 is the Winner\");\n System.exit(0);\n break;\n case 2:\n System.out.println(\"Player 2 is the Winner\");\n System.exit(0);\n break;\n case 3:\n System.out.println(\"Tie\");\n System.exit(0);\n break;\n\n }\n }", "boolean isWinningState(int score)\n\t{\n\t\treturn winningScores.stream()\n\t\t\t.anyMatch(winningScore -> (winningScore & score) == winningScore);\n\t}", "public boolean getWin() {\n if (targetDistance == 25) {\n if (missDistance <= 1 && missDistance >= -1) { //checks 25m win\n return true;\n }\n else {\n return false;\n }\n }\n else if (targetDistance == 50) { //checks 50m win\n if (missDistance <= 2 && missDistance >= -2) {\n return true;\n }\n else {\n return false;\n }\n }\n else { //checks 100m win\n if (missDistance <= 3 && missDistance >= -3) {\n return true;\n }\n else {\n return false;\n }\n }\n }", "public void collectWinnings() {\n\t\tif (hand.checkBlackjack()) {\n\t\t\tdouble win = bet * 1.5;\n\t\t\ttotalMoney += (win + bet);\n\t\t} else {\n\t\t\ttotalMoney += (bet + bet);\n\t\t}\n\t}", "public static String checkWinner(){\n //list winning conditions\n List topRow = Arrays.asList(1,2,3);\n List middleRow = Arrays.asList(4,5,6);\n List bottomRow = Arrays.asList(7,8,9);\n List leftCol = Arrays.asList(1,4,7);\n List middleCol = Arrays.asList(2,5,8);\n List rightCol = Arrays.asList(3,6,9);\n List crossLR = Arrays.asList(1,5,9);\n List crossRL = Arrays.asList(3,5,7);\n //????Why\n List<List> winningCon = new ArrayList<List>(){\n {\n add(topRow);\n add(middleRow);\n add(bottomRow);\n add(leftCol);\n add(middleCol);\n add(rightCol);\n add(crossLR);\n add(crossRL); \n }\n };\n for(List l: winningCon){\n if(Player0Pos.containsAll(l)){\n player0win++;\n return \"✧*。٩(ˊωˋ*)و✧* The winner of this round goes to Player 0, congrats! \";\n }else if(Player1Pos.containsAll(l)){\n player1win++;\n return \"✧*。٩(ˊωˋ*)و✧* The winner of this round goes to Player 1, congrats!\";\n }else if(Player0Pos.size() +Player1Pos.size()==9){\n return \"Game end, no one wins.\";\n }\n }\n return \"\"; \n }", "List<Seat> getSeatsWithState(int filmSessionId);", "List<E> list(Predicate<E> predicate);", "void askTurn();", "public static List<Match> getRound(int roundNum) {\n\t\tList<Match> round = new ArrayList<Match>();\n\t\tint numInRound = numInRound(roundNum);\n\t\tint roundStart = numInRound - 1;\n\t\tfor (int i = 0; i < numInRound; i++)\n\t\t\tround.add(matches[roundStart + i]);\n\t\treturn round;\n\t}", "@Test\n public void when50To69ThenB() {\n Student a = new Student(40);\n Student b = new Student(70);\n Student c = new Student(101);\n Student d = new Student(58);\n Student e = new Student(69);\n Predicate<Student> predicate = s -> s.getScore() >= 50 && s.getScore() < 70;\n List<Student> expected = List.of(d, e);\n List<Student> students = List.of(a, b, c, d, e);\n List<Student> result = new School().collect(students, predicate);\n assertThat(result, equalTo(expected));\n }", "boolean checkWin(Tile initialTile);", "boolean isWinningCombination(Ticket ticket);", "public ArrayList<PuzzleState> getNeighbors() {\n\t\tArrayList<PuzzleState> neighbors = new ArrayList<PuzzleState>();\n\t\tPuzzleState neighbor;\n\t\t//System.out.println(\"getting neighbors.\");\n\t\tfor (String act: ACTIONS) {\n\t\t\tif (current.validAction(act)){\n\t\t\t\t//System.out.println(\"Action: \" + act + \" on \" + current.getString());\n\t\t\t\tneighbor = new PuzzleState(current.getString(current.getState()),\n\t\t\t\t\t\t\t\t\t\t\tcurrent.getString(current.getGoalState()));\n\t\t\t\tsearchCost++;\n\t\t\t\tneighbor.act(act);\n\t\t\t\tneighbors.add(neighbor);\n\t\t\t}\t\n\t\t}\n\t\treturn neighbors;\n\t}", "@Override\r\n\tpublic List<Member> selectWinner(int no) {\n\t\treturn membersDAO.selectWinner(no);\r\n\t}", "public List<Player> winnerWhenBlocked(Player p) {\r\n System.out.println(\"The game is blocked\");\r\n Map<Integer, Integer> aux = new HashMap<>();\r\n for (Player player : players) {\r\n if (p.getTeam() == player.getTeam()) {\r\n aux.put(player.getTeam(), aux.get(player.getTeam()) + player.getDominoPoints());\r\n } else {\r\n aux.put(player.getTeam(), aux.get(player.getTeam()) + player.getDominoPoints());\r\n }\r\n }\r\n int winnerkey = 0;\r\n int winnervalue = aux.get(winnerkey);\r\n int loserKey = 1;\r\n int loserValue = aux.get(loserKey);\r\n\r\n System.out.println(\"Winner is\" + aux.get(winnerkey));\r\n if (aux.get(winnerkey) > aux.get(loserKey)) {\r\n winnerkey = 1;\r\n winnervalue = aux.get(winnerkey);\r\n loserKey = 0;\r\n loserValue = aux.get(loserKey);\r\n System.out.println(\"Loser is\" + aux.get(loserKey));\r\n\r\n } else if (aux.size() > 2) {\r\n if (aux.get(winnerkey) > aux.get(2)) {\r\n winnerkey = 1;\r\n winnervalue = 0;\r\n }\r\n if (aux.get(2) < aux.get(loserKey)) {\r\n loserKey = 2;\r\n loserValue = aux.get(loserKey);\r\n }\r\n }\r\n\r\n //We sum the points for the winner\r\n List<Player> winners = new ArrayList<>();\r\n for (Player player : players) {\r\n if (p.getTeam() == winnerkey) {\r\n p.sumPoints(aux.get(loserKey));\r\n winners.add(p);\r\n }\r\n }\r\n return winners;\r\n }", "public static void print(List<Pawn> pawns) {\r\n\t\tint table = Integer.parseInt(PropertyManager.getProperty(\"table\"));\r\n\t\tCharacter[][] check = new Character[table][table];\r\n\t\tfor (int i = 0; i < table; i++)\r\n\t\t\tfor (int j = 0; j < table; j++)\r\n\t\t\t\tcheck[i][j] = '_';\r\n\r\n\t\tSystem.out.println(\"=====================================\");\r\n\t\tfor (Pawn p : pawns) {\r\n\t\t\tcheck[p.getPosition().getX()][table-1-p.getPosition().getY()] = 'O';\r\n\t\t}\r\n\r\n\t\tfor (int y = 0; y < table; y++) {\r\n\t\t\tfor (int x = 0; x < table; x++)\r\n\t\t\t\tSystem.out.print(check[x][y]);\r\n\t\t\tSystem.out.println();\r\n\t\t}\r\n\r\n\t\tSystem.out.println(\"=====================================\");\r\n\t}", "private int[] nextColWin(){ \r\n\t\tfor (int r=0; r<3; r++){ \r\n\t\t\tif (board[0][r] == board[1][r] && board[2][r] == '-' && board[0][r] != '-'){\r\n\t\t\t\tcolWin[0] = 2;\r\n\t\t\t\tcolWin[1] = r;\r\n\t\t\t\treturn colWin;\r\n\t\t\t}\r\n\t\t\telse if (board[1][r] == board[2][r] && board[0][r] == '-' && board[0][r] != '-'){\r\n\t\t\t\tcolWin[0] = 0;\r\n\t\t\t\tcolWin[1] = r;\r\n\t\t\t\treturn colWin;\r\n\t\t\t}\r\n\t\t\telse if (board[0][r] == board[2][r] && board[1][r] == '-' && board[0][r] != '-'){\r\n\t\t\t\tcolWin[0] = 1;\r\n\t\t\t\tcolWin[1] = r;\r\n\t\t\t\treturn colWin;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn colWin;\r\n\t\t\r\n\t}", "public List<ScoredMove> allAttackMoves(GameState gm) {\n\t\tList<ScoredMove> attackMoves = new ArrayList<ScoredMove>();\n\t\t\n\t\t// check for attacking battles\n\t\tif (gm.getBattleList().size() > 0) {\n\t\t\tfor (Battle b: gm.getBattleList()) {\n\t\t\t\tif (!b.isBattleUsingTrumps()) {\n\t\t\t\t\tfor (Card c: getHand().getCards()){\n\t\t\t\t\t\tif (c instanceof PirateShip) {\n\t\t\t\t\t\t\tif (canPirateShipCardAttack(b, (PirateShip)c)){\n\t\t\t\t\t\t\t\tattackMoves.add(new ScoredMove(ACTION.PLAY_ATTACK, c, b));\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\tfor (Card c: getHand().getCards()) {\n\t\t\t\t\tif (c instanceof Trump) {\n\t\t\t\t\t\tif (canTrumpCardAttack(b, (Trump)c)) {\n\t\t\t\t\t\t\tattackMoves.add(new ScoredMove(ACTION.PLAY_ATTACK, c, b));\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\treturn attackMoves;\n\t}", "@Test\n public void when1To49ThenB() {\n Student a = new Student(49);\n Student b = new Student(50);\n Student c = new Student(102);\n Student d = new Student(0);\n Student e = new Student(140);\n Predicate<Student> predicate = s -> s.getScore() > 0 && s.getScore() < 50;\n List<Student> expected = List.of(a, c, e);\n List<Student> students = List.of(a, b, c, d, e);\n List<Student> result = new School().collect(students, predicate);\n assertThat(result, equalTo(expected));\n }", "@Test\n public void when70To100ThenA() {\n Student a = new Student(40);\n Student b = new Student(70);\n Student c = new Student(101);\n Student d = new Student(100);\n Student e = new Student(86);\n Predicate<Student> predicate = s -> s.getScore() >= 70 && s.getScore() <= 100;\n List<Student> expected = List.of(b, d, e);\n List<Student> students = List.of(a, b, c, d, e);\n List<Student> result = new School().collect(students, predicate);\n assertThat(result, equalTo(expected));\n }", "public int[] getChow(int tile) {\n\t\tint[][] chows = new int[0][0];\n\t\tTilePanel[] tiles = getTiles();\n\t\t// -2 -1 x\n\t\tif(TilePattern.getFaceNumber(tile)>TilePattern.BAMBOO_TWO && \n\t\t\tArrayUtilities.in(tiles,tile-2) &&\n\t\t\tArrayUtilities.in(tiles,tile-1)) { \n\t\t\t\tint[] temp = {tile-2, tile-1, tile};\n\t\t\t\tchows = ArrayUtilities.add(chows,temp); }\n\t\t// -1 x +1\n\t\tif(TilePattern.getFaceNumber(tile)>TilePattern.BAMBOO_ONE &&\n\t\t\tTilePattern.getFaceNumber(tile)<TilePattern.BAMBOO_NINE &&\n\t\t\tArrayUtilities.in(tiles,tile-1) && \n\t\t\tArrayUtilities.in(tiles,tile+1)) { \n\t\t\t\tint[] temp = {tile-1, tile, tile+1};\n\t\t\t\tchows = ArrayUtilities.add(chows,temp); }\n\t\t// x +1 +2\n\t\tif(TilePattern.getFaceNumber(tile)<TilePattern.BAMBOO_EIGHT &&\n\t\t\tArrayUtilities.in(tiles,tile+1) && \n\t\t\tArrayUtilities.in(tiles,tile+2)) {\n\t\t\t\tint[] temp = {tile, tile+1, tile+2};\n\t\t\t\tchows = ArrayUtilities.add(chows,temp); }\n\t\t// now to turn chows into a series of strings\n\t\tString[] options = new String[0];\n\t\tfor(int[] chow: chows) {\n\t\t\tString option = \"\";\n\t\t\tfor(int i=0;i<3;i++) { option += TilePattern.getTileName(chow[i]); if(i<2) { option += \", \"; }}\n\t\t\toptions = ArrayUtilities.add(options,option); }\n\t\t// create the dialog menu\n\t\tString selected = (String)JOptionPane.showInputDialog(gui, \"Pick claim type\", \"Claim type\", JOptionPane.PLAIN_MESSAGE, null, options, options[0]);\n\t\tif(selected.equals(options[0])) { return chows[0]; }\n\t\telse if(options.length>1 && selected.equals(options[1])) { return chows[1]; }\n\t\telse if(options.length>2 && selected.equals(options[2])) { return chows[2]; }\n\t\t// we should never get here\n\t\telse return null;\n\t}", "public List<HealthCheck> getChecksByState(String state);", "public List<PlayerWon> findByTeamId(int teamId);", "private ArrayList<String> getPossibleActions() {\n\t\t\n\t\tRandom r = new Random();\n\t\tArrayList<String> possibleActions = new ArrayList<String>();\n\t\tfor (String actionTitle : getAllActions()) {\n\t\t\tif (r.nextDouble() < 0.3) {\n\t\t\t\tpossibleActions.add(actionTitle);\n\t\t\t}\n\t\t}\n\t\treturn possibleActions;\n\t}", "Turn createTurn();", "IEmfPredicate<R> getPredicateVisible();", "public int getRegularCardsByWins(int wins) {\n return statistics.getCardsByWins().get(wins);\n }", "List<GameResult> getAllGameResults();", "abstract public List<Move> getPossibleMoves();", "@Override\n public boolean isWin() {\n for (Observer winner : winners) {\n if (winner.getName().equals(chosenHorse.getName())) {\n return true;\n }\n }\n return false;\n }", "private void goPredicate() {\n\t\t\n\t\tSurinamBananas sb = new SurinamBananas();\n\t\t\n\t\tCardboardBox<Musa,Integer> cb = sb.boxSupplier.get();\n\t\t\n\t\t// 3 bananas\n\t\tcb.add(new Basjoo()); // cb.add(new Basjoo()); cb.add(new Basjoo());\n\t\t\n\t\tPredicate< CardboardBox<Musa,Integer> > predIsEmpty = (c) -> c.size() == 0;\n\t\t\n\t\tPredicate< CardboardBox<Musa,Integer> > predLessThan3 = (c) -> c.size() < 3;\n\t\tPredicate< CardboardBox<Musa,Integer> > predMoreThan2 = (c) -> c.size() > 2;\n\t\tPredicate< CardboardBox<Musa,Integer> > predMoreThan6 = (c) -> c.size() > 6;\n\t\t\n\t\tPredicate< CardboardBox<Musa,Integer> > notEmptyAndMoreThan2 = predIsEmpty.negate().and(predMoreThan2);\n\t\t\n\t\tPredicate< CardboardBox<Musa,Integer> > lessThanThreeOrMoreThan6 = (predIsEmpty.negate().and(predLessThan3)) .or(predIsEmpty.negate().and(predMoreThan6) );\n\t\t\n\t\t//System.out.println( \"notEmptyAndMoreThan2: \" + notEmptyAndMoreThan2.test(cb) );\n\t\tSystem.out.println( \"lessThanThreeOrMoreThan6: \" + lessThanThreeOrMoreThan6.test(cb) );\n\t\t\n\t}", "public static ArrayList<Vkladi> trueScetVkladi() {\r\n\t\tArrayList<Vkladi> foundVkladi = new ArrayList<Vkladi>();\r\n\t\tint i = 0;\r\n\t\tfor (Vkladi vkla : vklad) {\r\n\t\t\tif (vkla.getStat() == true) {\r\n\t\t\t\tfoundVkladi.add(vkla);\r\n\t\t\t\ti++;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn foundVkladi;\r\n\t}", "public List<Player> lookForShootPeople(Player player)\n {\n List<Player> playerList = new LinkedList<>();\n\n playerList.addAll(player.getSquare().getRoom().getPlayerRoomList()); //adds all the players in the room\n\n /*\n * Now i have to check if the player is close to a door. In this case i can see all the players in this adiacent room.\n * I will implement the method in this way:\n * 1. I check if the player can move to a different room with a distance 1 using the method squareReachableNoWall\n * 2. If the player can effectively move to a different room it means it is close to a door\n * 3. I will add to the list all the players in this different room\n */\n\n for (Square square : player.getSquare().getGameBoard().getArena().squareReachableNoWall(player.getSquare().getX(), player.getSquare().getY(), 1))\n {\n if (!(player.getSquare().getColor().equals(square.getColor()))) // if the color of the reachable square is different from the color of the square\n // where the player is this means player can see in a different room\n {\n playerList.addAll(player.getSquare().getRoom().getPlayerRoomList()); //adds all the players in the room\n }\n\n }\n\n Set<Player> playerSet = new HashSet<>();\n playerSet.addAll(playerList);\n\n playerList.clear();\n\n playerList.addAll(playerSet);\n playerList.remove(player);\n\n\n return playerList;\n }", "private List<Boat> playStateBoats() {\n\t\tList<Boat> output = new ArrayList<>();\n\t\tfor (int i = 0; i < 4; i++) {\n\t\t\tBoat boat = this.boats.get(generator.nextInt(this.boats.size() - 1));\n\t\t\toutput.add(boat);\n\t\t\tthis.boats.remove(boat);\n\t\t}\n\t\treturn output;\n\t}", "public void round(Player playerWhoseTurn, ArrayList<Player> players) {\n\n view.print(\"\");\n view.print(\"--Player \" + playerWhoseTurn.getPlayerId() + \"--\");\n view.print(\"\");\n\n // displaying decisive player's card\n view.printCard(playerWhoseTurn.showTopCard());\n view.print(\"\\n\\n\");\n\n // creating list of cards currently in game (table)\n ArrayList<Card> cardsOnTable = new ArrayList<Card>();\n\n // All players lay their cards on table\n for (Player player : players) {\n cardsOnTable.add(player.layCardOnTable());\n }\n\n // Actual round\n\n // Asking player for decision which feature to fight with\n int playerDecision;\n\n while (true) {\n\n // decisive player decides which feature to fight with\n playerDecision = view.decideWhichFeature();\n\n // possible decisions\n int[] possibleChoices = {1, 2, 3, 4};\n\n // check if player choose existing option\n if (!checkIfValueInArray(possibleChoices, playerDecision)) {\n view.print(\"No such choice! Try again!\");\n } else {\n break;\n }\n }\n\n // Dealer checks who won (there might be exequo winners!)\n ArrayList<Integer> winnersIds = dealer.getWinner(cardsOnTable, playerDecision);\n\n // if there are no exequo winners, so there is only one winner:\n if (winnersIds.size() == 1) {\n\n // display message who won\n view.print(\"\\nPlayer \" + winnersIds.get(0) + \" won the round!\");\n\n //add cards from cardsOnTable to winner's hand\n for (Card card : cardsOnTable) {\n for (Player player : players) {\n if (player.getPlayerId() == winnersIds.get(0)) {\n player.addCard(card);\n }\n }\n }\n // clear cardsOnTable\n cardsOnTable.clear();\n\n //add cards from tempCardStack (if ther are any) to winner's hand\n for (Card card : tempCardStack) {\n for (Player player : players) {\n if (player.getPlayerId() == winnersIds.get(0)) {\n player.addCard(card);\n }\n }\n }\n // clear tempCardStack\n tempCardStack.clear();\n }\n\n // when there are exequo winners:\n else if (winnersIds.size() > 1) {\n\n // Nobody gets the cards, instead cards go to temporary stack untill someone wins them\n // in the next round\n for (Card card : cardsOnTable) {\n tempCardStack.add(card);\n }\n // display who won (for example \"Players 1, 2, 3 exequo won the round\")\n view.printExequoWinners(winnersIds);\n }\n }", "@Override\r\n\tpublic ArrayList<String> allPossibleMoves(boolean whoPlays) {\r\n\t\t\r\n\t\tArrayList<String> Moves = new ArrayList<String>();\r\n\t\t\r\n\t\tif(whoPlays) {\r\n\t\t\tif( (new Board2048model(this)).moveUP()) \r\n\t\t\tMoves.add(\"UP\");\r\n\t\t\tif( (new Board2048model(this)).moveDOWN()) \r\n\t\t\tMoves.add(\"DOWN\");\r\n\t\t\tif( (new Board2048model(this)).moveRIGHT()) \r\n\t\t\tMoves.add(\"RIGHT\");\r\n\t\t\tif( (new Board2048model(this)).moveLEFT()) \r\n\t\t\tMoves.add(\"LEFT\");\r\n\t\t\t}\r\n\t\telse { \r\n\t\t\tfor( int i = 0; i < rows_size ; i++) {\r\n\t\t\t\tfor(int j = 0; j < columns_size; j++) {\r\n\t\t\t\t\tif(isEmpty(i,j)) {\r\n\t\t\t\t\t\tMoves.add(new String(Integer.toString(i) + \",\" + Integer.toString(j) + \",\" + Integer.toString(2)));\r\n\t\t\t\t\t\tMoves.add(new String(Integer.toString(i) + \",\" + Integer.toString(j) + \",\" + Integer.toString(4)));\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t} \r\n\t\t}\r\n\treturn Moves;\r\n\t}", "private static boolean isWin()\n {\n boolean win = true;\n for(Ship[] k:map)\n {\n for(Ship o:k)\n {\n if(o.getState()==1)\n win=false;\n }\n }\n return win;\n }", "private void setWinningTuples() {\n\t\tWINS = new ArrayList<Set<CMNMove>>();\n\t\tSet<CMNMove> winSet = new TreeSet<CMNMove>();\n\t\tfor (int i = MM; i > 0; i--) {\n\t\t\tknapsack(winSet, CC, i, NN);\n\t\t}// end for\n\n\t}", "private void doMatch() {\n // Remember how many games in this session\n mGameCounter++;\n\n PebbleDictionary resultDict = new PebbleDictionary();\n\n switch (mChoice) {\n case Keys.CHOICE_ROCK:\n switch(mP2Choice) {\n case Keys.CHOICE_ROCK:\n mInstructionView.setText(\"It's a tie!\");\n resultDict.addInt32(Keys.KEY_RESULT, Keys.RESULT_TIE);\n break;\n case Keys.CHOICE_PAPER:\n mInstructionView.setText(\"You lose!\");\n resultDict.addInt32(Keys.KEY_RESULT, Keys.RESULT_WIN); // Inform Pebble of opposite result\n break;\n case Keys.CHOICE_SCISSORS:\n mWinCounter++;\n mInstructionView.setText(\"You win! (\" + mWinCounter + \" of \" + mGameCounter + \")\");\n resultDict.addInt32(Keys.KEY_RESULT, Keys.RESULT_LOSE);\n break;\n }\n break;\n case Keys.CHOICE_PAPER:\n switch(mP2Choice) {\n case Keys.CHOICE_ROCK:\n mWinCounter++;\n mInstructionView.setText(\"You win! (\" + mWinCounter + \" of \" + mGameCounter + \")\");\n resultDict.addInt32(Keys.KEY_RESULT, Keys.RESULT_LOSE);\n break;\n case Keys.CHOICE_PAPER:\n mInstructionView.setText(\"It's a tie!\");\n resultDict.addInt32(Keys.KEY_RESULT, Keys.RESULT_TIE);\n break;\n case Keys.CHOICE_SCISSORS:\n mInstructionView.setText(\"You lose!\");\n resultDict.addInt32(Keys.KEY_RESULT, Keys.RESULT_WIN);\n break;\n }\n break;\n case Keys.CHOICE_SCISSORS:\n switch(mP2Choice) {\n case Keys.CHOICE_ROCK:\n mInstructionView.setText(\"You lose!\");\n resultDict.addInt32(Keys.KEY_RESULT, Keys.RESULT_WIN);\n break;\n case Keys.CHOICE_PAPER:\n mWinCounter++;\n mInstructionView.setText(\"You win! (\" + mWinCounter + \" of \" + mGameCounter + \")\");\n resultDict.addInt32(Keys.KEY_RESULT, Keys.RESULT_LOSE);\n break;\n case Keys.CHOICE_SCISSORS:\n mInstructionView.setText(\"It's a tie!\");\n resultDict.addInt32(Keys.KEY_RESULT, Keys.RESULT_TIE);\n break;\n }\n break;\n }\n\n // Inform Pebble of result\n PebbleKit.sendDataToPebble(getApplicationContext(), APP_UUID, resultDict);\n\n // Finally reset both\n mChoice = Keys.CHOICE_WAITING;\n mP2Choice = Keys.CHOICE_WAITING;\n\n // Leave announcement for 5 seconds\n mHandler.postDelayed(new Runnable() {\n\n @Override\n public void run() {\n updateUI();\n }\n\n }, 5000);\n }", "void provideNewTurn();", "public Player getPlayerInTurn();", "public static List getActorPorFiltros(Map pref) {\n try {\n List<String> ListaActores = new ArrayList<>();\n GetActoresFilter filtroActores = SerializarPreferenciasActor(pref);\n List<ActorCatastroDto> listAct = getActores(filtroActores).getItem();\n for (int i = 0; i < listAct.size(); i++) {\n ActorCatastroDto ds = new ActorCatastroDto();\n ds = listAct.get(i);\n String Actor = new Gson().toJson(ds);\n ListaActores.add(Actor);\n }\n return ListaActores;\n } catch (Exception e) {\n return null;\n }\n }", "public boolean win(){\r\n for(int row = 0; row<map.length; row++){\r\n for(int col = 0; col<map[0].length; col++){\r\n if(map[row][col].getSafe() == false && (map[row][col].getVisual().equals(square) || map[row][col].getVisual().equals(bomb))){\r\n return false;\r\n }\r\n if(map[row][col].getSafe() == true && map[row][col].getVisual().equals(flag)){\r\n return false;\r\n }\r\n }\r\n }\r\n return true;\r\n }", "public List<Move> validMoves(){\n List<Move> results = new LinkedList<>();\n int kingVal = turn == WHITE ? WHITE_KING : BLACK_KING;\n int kingX = 0, kingY = 0;\n List<Piece> checks = null;\n kingSearch:\n for (int y = 0; y < 8; y++){\n for (int x = 0; x < 8; x++){\n if (board[y][x] == kingVal){\n kingX = x;\n kingY = y;\n checks = inCheck(x,y);\n break kingSearch;\n }\n }\n }\n if (checks.size() > 1){ // must move king\n for (int x = -1; x < 2; x++){\n for (int y = -1; y < 2; y++){\n if (kingX+x >= 0 && kingX + x < 8 && kingY+y >= 0 && kingY+y < 8){\n int val = board[kingY+y][kingX+x];\n if (val == 0 || turn == WHITE && val > WHITE_KING || turn == BLACK && val < BLACK_PAWN){\n // may still be a move into check, must test at end\n results.add(new Move(kingVal, kingX, kingY, kingX+x, kingY+y, val, 0, this));\n }\n }\n }\n }\n } else { // could be in check TODO: split into case of single check and none, identify pin/capture lines\n int queen = turn == WHITE ? WHITE_QUEEN : BLACK_QUEEN;\n int knight = turn == WHITE ? WHITE_KNIGHT : BLACK_KNIGHT;\n int rook = turn == WHITE ? WHITE_ROOK : BLACK_ROOK;\n int bishop = turn == WHITE ? WHITE_BISHOP : BLACK_BISHOP;\n for (int y = 0; y < 8; y++) {\n for (int x = 0; x < 8; x++) {\n int piece = board[y][x];\n if (piece == (turn == WHITE ? WHITE_PAWN : BLACK_PAWN)) { // pawns\n // regular | 2 move\n if (board[y+turn][x] == 0){\n if (y+turn == 0 || y + turn == 7){ // promotion\n results.add(new Move(piece, x, y, x, y + turn, 0, queen, this));\n results.add(new Move(piece, x, y, x, y + turn, 0, knight, this));\n results.add(new Move(piece, x, y, x, y + turn, 0, rook, this));\n results.add(new Move(piece, x, y, x, y + turn, 0, bishop, this));\n }\n else {\n results.add(new Move(piece, x, y, x, y + turn, 0, 0, this));\n if ((y == (turn == WHITE ? 1 : 6)) && board[y + 2 * turn][x] == 0) { // initial 2 move\n results.add(new Move(piece, x, y, x, y + 2*turn, 0, 0, this));\n }\n }\n }\n // capture\n for (int dx = -1; dx <= 1; dx += 2){\n if (x + dx >= 0 && x + dx < 8) {\n int val = board[y+turn][x+dx];\n if (val > 0 && (turn == WHITE ? val > WHITE_KING : val < BLACK_PAWN)){\n if (y + turn == 0 || y + turn == 7){ // promotion\n results.add(new Move(piece, x, y, x+dx, y + turn, val, queen, this));\n results.add(new Move(piece, x, y, x+dx, y + turn, val, knight, this));\n results.add(new Move(piece, x, y, x+dx, y + turn, val, rook, this));\n results.add(new Move(piece, x, y, x+dx, y + turn, val, bishop, this));\n } else {\n results.add(new Move(piece, x, y, x+dx, y + turn, val, 0, this));\n }\n }\n if (val == 0 && y == (turn == WHITE ? 4 : 3) && x+dx == enPassant){ // en passant\n results.add(new Move(piece, x, y, x+dx, y + turn, 0, 0, this));\n }\n }\n }\n\n } else if (piece == knight) { // knights TODO: lookup table\n for (int dx = -1; dx <= 1; dx += 2){\n for (int dy = -2; dy <= 2; dy += 4){\n if (x+dx >= 0 && x + dx < 8 && y + dy >= 0 && y + dy < 8){\n int val = board[y+dy][x+dx];\n if (val == 0 || (turn == WHITE ? val > WHITE_KING : val < BLACK_PAWN)){\n results.add(new Move(piece,x,y,x+dx,y+dy,val,0,this));\n }\n }\n if (x+dy >= 0 && x + dy < 8 && y + dx >= 0 && y + dx < 8){\n int val = board[y+dx][x+dy];\n if (val == 0 || (turn == WHITE ? val > WHITE_KING : val < BLACK_PAWN)){\n results.add(new Move(piece,x,y,x+dy,y+dx,val,0,this));\n }\n }\n }\n }\n } else if (piece == bishop) { // bishops\n for (int dx = -1; dx <= 1; dx += 2){\n for (int dy = -1; dy <= 1; dy += 2){\n int i = 1;\n while (x + dx*i >= 0 && x + dx*i < 8 && y + dy*i >= 0 && y + dy*i < 8){\n int val = board[y+dy*i][x+dx*i];\n if (val == 0){\n results.add(new Move(piece,x,y,x+dx*i,y+dy*i,val,0,this));\n } else {\n if (turn == WHITE ? val > WHITE_KING : val < BLACK_PAWN){\n results.add(new Move(piece,x,y,x+dx*i,y+dy*i,val,0,this));\n }\n break;\n }\n i++;\n }\n }\n }\n } else if (piece == rook) { // rooks\n for (int dx = -1; dx <= 1; dx+= 2){\n for (int ax = 0; ax < 2; ax++){\n int i = 1;\n while (ax==0 ? y+dx*i >= 0 && y+dx*i < 8 : x+dx*i >= 0 && x+dx*i < 8){\n int val = board[y+dx*i*(1-ax)][x+dx*i*ax];\n if (val == 0){\n results.add(new Move(piece,x,y,x+dx*i*ax,y+dx*i*(1-ax),val,0,this));\n } else {\n if (turn == WHITE ? val > WHITE_KING : val < BLACK_PAWN){\n results.add(new Move(piece,x,y,x+dx*i*ax,y+dx*i*(1-ax),val,0,this));\n }\n break;\n }\n i++;\n }\n }\n }\n } else if (piece == (turn == WHITE ? WHITE_QUEEN : BLACK_QUEEN)) { // queens\n // Diagonals - same as bishops\n for (int dx = -1; dx <= 1; dx += 2){\n for (int dy = -1; dy <= 1; dy += 2){\n int i = 1;\n while (x + dx*i >= 0 && x + dx*i < 8 && y + dy*i >= 0 && y + dy*i < 8){\n int val = board[y+dy*i][x+dx*i];\n if (val == 0){\n results.add(new Move(piece,x,y,x+dx*i,y+dy*i,val,0,this));\n } else {\n if (turn == WHITE ? val > WHITE_KING : val < BLACK_PAWN){\n results.add(new Move(piece,x,y,x+dx*i,y+dy*i,val,0,this));\n }\n break;\n }\n i++;\n }\n }\n }\n for (int dx = -1; dx <= 1; dx+= 2){\n for (int ax = 0; ax < 2; ax++){\n int i = 1;\n while (ax==0 ? y+dx*i >= 0 && y+dx*i < 8 : x+dx*i >= 0 && x+dx*i < 8){\n int val = board[y+dx*i*(1-ax)][x+dx*i*ax];\n if (val == 0){\n results.add(new Move(piece,x,y,x+dx*i*ax,y+dx*i*(1-ax),val,0,this));\n } else {\n if (turn == WHITE ? val > WHITE_KING : val < BLACK_PAWN){\n results.add(new Move(piece,x,y,x+dx*i*ax,y+dx*i*(1-ax),val,0,this));\n }\n break;\n }\n i++;\n }\n }\n }\n } else if (piece == (turn == WHITE ? WHITE_KING : BLACK_KING)) { // king\n for (int dx = -1; dx < 2; dx++){\n for (int dy = -1; dy < 2; dy++){\n if ((dx != 0 || dy != 0) && x+dx >= 0 && x + dx < 8 && y + dy >= 0 && y + dy < 8){\n int val = board[y+dy][x+dx];\n if (val == 0 || (turn == WHITE ? val > WHITE_KING : val < BLACK_PAWN)){\n results.add(new Move(piece,x,y,x+dx,y+dy,val,0,this));\n }\n }\n }\n }\n }\n }\n }\n // castle\n if (checks.size() == 0){\n if (turn == WHITE && (castles & 0b11) != 0){//(castles[0] || castles[1])){\n board[0][4] = 0; // remove king to avoid check test collisions with extra king\n if ((castles & WHITE_SHORT) != 0 && board[0][5] == 0 && board[0][6] == 0 && inCheck(5,0).size() == 0){\n //if (castles[0] && board[0][5] == 0 && board[0][6] == 0 && inCheck(5,0).size() == 0){\n results.add(new Move(WHITE_KING, 4, 0, 6, 0, 0, 0, this));\n }\n if ((castles & WHITE_LONG) != 0 && board[0][1] == 0 && board[0][2] == 0 && board[0][3] == 0 &&\n inCheck(3,0).size() == 0){\n //if (castles[1] && board[0][1] == 0 && board[0][2] == 0 && board[0][3] == 0 && inCheck(3,0).size() == 0){\n results.add(new Move(WHITE_KING, 4, 0, 2, 0, 0, 0, this));\n }\n board[0][4] = WHITE_KING;\n }else if (turn == BLACK && (castles & 0b1100) != 0){//(castles[2] || castles[3])) {\n board[7][4] = 0; // remove king to avoid check test collisions with extra king\n //if (castles[2] && board[7][5] == 0 && board[7][6] == 0 && inCheck(5, 7).size() == 0) {\n if ((castles & BLACK_SHORT) != 0 && board[7][5] == 0 && board[7][6] == 0 && inCheck(5, 7).size() == 0) {\n results.add(new Move(BLACK_KING, 4, 7, 6, 7, 0, 0, this));\n }\n //if (castles[3] && board[7][1] == 0 && board[7][2] == 0 && board[7][3] == 0 && inCheck(3, 7).size() == 0) {\n if ((castles & BLACK_LONG) != 0 && board[7][1] == 0 && board[7][2] == 0 && board[7][3] == 0 &&\n inCheck(3, 7).size() == 0) {\n results.add(new Move(BLACK_KING, 4, 7, 2, 7, 0, 0, this));\n }\n board[7][4] = BLACK_KING;\n }\n }\n }\n List<Move> fullLegal = new LinkedList<>();\n for (Move m : results){\n makeMove(m);\n turn = -turn;\n if (m.piece == WHITE_KING || m.piece == BLACK_KING){\n if (inCheck(m.toX,m.toY).size() == 0){\n fullLegal.add(m);\n }\n }else if (inCheck(kingX,kingY).size() == 0){\n fullLegal.add(m);\n }\n turn = -turn;\n undoMove(m);\n }\n Collections.sort(fullLegal, (o1, o2) -> o2.score - o1.score); // greatest score treated as least so appears first\n return fullLegal;\n }", "public HashMap<String, Integer> play(){\n\t\t\n\t\tHashMap<String, Integer> result = new HashMap<String, Integer>();\n\t\tint gamesRandom = 0;\n\t\tint gamesDefault = 0;\n\t\tint draws = 0;\n\t\t\n\t\tfor(int i=1; i<= 100; i++){\n\t\t\tString shape = getRandomShape();\n\t\t\tint winner = getWinner(Shape.valueOf(shape));\n\t\t\tif(winner == RANDOM_PLAYER_INT){\n\t\t\t\tgamesRandom++;\n\t\t\t}\n\t\t\telse if(winner == DEFAULT_PLAYER_INT){\n\t\t\t\tgamesDefault++;\n\t\t\t}\n\t\t\telse{\n\t\t\t\tdraws++;\n\t\t\t}\n\t\t\ttrackGame(shape, i);\n\t\t}\n\t\tresult.put(RANDOM_PLAYER_STR, gamesRandom);\n\t\tresult.put(DEFAULT_PLAYER_STR, gamesDefault);\n\t\tresult.put(DRAW_STR, draws);\n\t\tprintResult(result);\n\t\treturn result;\n\t}", "private boolean winningBoard(char[][] board){\n for(int i = 0; i < boardHeight; i++ ){\n for(int j = 0; j < boardWidth; j++) {\n\n //if white was made it to the other side\n if(board[i][j] == 'P' && i == 0){\n return true;\n }\n\n //if black has made it to the other side\n if(board[i][j] == 'p' && i == boardHeight -1){\n return true;\n }\n }\n }\n //no winners\n return false;\n }", "public List<Player> playMatch(List<Player> arrayListPlayers) {\n\n //instantiate Lists for winners / losers\n List<Player> winners = new ArrayList<>();\n List<Player> losers = new ArrayList<>();\n\n //Pairing up - each Player with the next Player, iterator runs for every 2\n for (int i = 0; i < arrayListPlayers.size(); i += 2) {\n\n System.out.println(arrayListPlayers.get(i).printName() + \" (\" + arrayListPlayers.get(i).score + \") vs \"\n + arrayListPlayers.get((i + 1) % arrayListPlayers.size()).printName() + \" (\" + arrayListPlayers.get(i + 1).score + \")\");\n\n //Extra layer of random scoring, so calculateScore is run with each round\n //Without this, players get an initial score that stay with them through the tournament\n arrayListPlayers.get(i).calculateScore();\n\n //Use score to decipher winner, if (i) score is greater than (i +1) score then add (i) to winners List\n if (arrayListPlayers.get(i).score > arrayListPlayers.get(i + 1).score) {\n winners.add(arrayListPlayers.get(i));\n }\n //And if (i) score is less than (i + 1) score add (i + 1) to winners List\n if (arrayListPlayers.get(i).score < arrayListPlayers.get(i + 1).score) {\n winners.add(arrayListPlayers.get(i + 1));\n\n\n //extra if statement to handle draws, if score is equal add player [0] to winners List, could randomise this?\n } else if\n (arrayListPlayers.get(i).score == arrayListPlayers.get(i + 1).score) {\n winners.add(arrayListPlayers.get(i));\n }\n\n /**\n * Additional if statements for adding Player objects to new List 'losers'\n */\n //Create List of losers (not output)\n if (arrayListPlayers.get(i).score < arrayListPlayers.get(i + 1).score) {\n winners.remove(arrayListPlayers.get(i));\n losers.add(arrayListPlayers.get(i));\n\n } else if (arrayListPlayers.get(i).score > arrayListPlayers.get(i + 1).score) {\n winners.remove(arrayListPlayers.get(i + 1));\n losers.add(arrayListPlayers.get(i + 1));\n }\n }\n\n /**\n * This section of the playRound method outputs the list of winners for each round\n * A sleep function was added in attempt to slow down the output\n */\n\n System.out.println(\"\\n-x-x-x-x-x-x-x W I N N E R S x-x-x-x-x-x-x-\\n\");\n //Loop through winners and attach names\n try {\n sleep(10);\n for (int i = 0; i < winners.size(); i++) {\n //SysOut to console the winners\n System.out.println(winners.get(i).printName() + \" won with \" + winners.get(i).score + \" points\");\n }\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n //Execution completed return winners List<>\n return winners;\n\n }", "public static List<Map<String, Object>> getActorPorFiltrosMap(Map pref) {\n try {\n \n List<Map<String, Object>> ListaActores = new ArrayList<>();\n GetActoresFilter filtroActores = SerializarPreferenciasActor(pref);\n List<ActorCatastroDto> listAct = getActores(filtroActores).getItem();\n\n for (int i = 0; i < listAct.size(); i++) {\n ActorCatastroDto ds = new ActorCatastroDto();\n ds = listAct.get(i);\n Map Actor = buildMapActor(ds);\n ListaActores.add(Actor);\n }\n return ListaActores;\n } catch (Exception e) {\n return null;\n }\n }", "public void haveTurn(int turn)\n {\n boolean playing;\n do{\n System.out.println(\"It is \" + getName() + \"'s turn.\");\n Card book = checkForBooks();\n if(book != null)\n System.out.println(\"Your opponent got a book of \" + book + \"s...\");\n if (hand.size() == 0)\n {\n System.out.print(\"Your opponent's hand is empty.\");\n break;\n }\n Card request = aiRequestLogic();\n Player target = aiRequestTarget(GoFish.Players[turn]);\n System.out.println(\"Your opponent asks \" + target.getName() + \" for cards by the name of \" + request);\n playing = askFor(request, target);\n if (playing)\n System.out.println(\"Your opponent took \" + target.getName() + \"'s \" + request + \"s!\");\n } while(playing);\n\n System.out.println(\"Your opponent goes fishing.\");\n fish();\n }" ]
[ "0.5512035", "0.49490735", "0.49323037", "0.4866966", "0.48111832", "0.4804688", "0.47745532", "0.47217745", "0.4717708", "0.46385965", "0.46298826", "0.46177444", "0.4617444", "0.4613992", "0.46086136", "0.46046305", "0.459061", "0.45891994", "0.45715937", "0.45632327", "0.45521978", "0.45395565", "0.4523265", "0.45217955", "0.45030218", "0.4502719", "0.44975486", "0.44899184", "0.44858286", "0.44842526", "0.44758067", "0.44737378", "0.4468967", "0.4465175", "0.44568676", "0.44568196", "0.44457817", "0.44457817", "0.44432774", "0.44285837", "0.44103074", "0.44000536", "0.43951747", "0.4394645", "0.43914485", "0.43903804", "0.4384563", "0.43815544", "0.43798533", "0.43757987", "0.4373206", "0.43695307", "0.43662235", "0.4363759", "0.43633872", "0.43546247", "0.43534765", "0.4352484", "0.435221", "0.43507585", "0.43501064", "0.434786", "0.43462557", "0.4341862", "0.43416697", "0.43414253", "0.43377373", "0.43341246", "0.43338987", "0.43332198", "0.432929", "0.43237516", "0.4319983", "0.4314853", "0.43080464", "0.43070242", "0.43011388", "0.43003675", "0.43002194", "0.42948914", "0.4290181", "0.42804495", "0.427755", "0.426987", "0.4269102", "0.42511106", "0.4250291", "0.42486623", "0.42454997", "0.4240575", "0.42398295", "0.4236451", "0.42356718", "0.42343932", "0.42305273", "0.42273697", "0.4221589", "0.42182222", "0.4216838", "0.4210772" ]
0.7118682
0
Counts the number of game results matching the given predicate
public long count(Predicate<GameResult> filter) { return results.stream() .filter(filter) .mapToInt(GameResult::getCount) .sum(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int getResultsCount();", "int getResultsCount();", "int findCount();", "public int numMatches();", "public int count(T instance, M matchCondition);", "int getNumberOfResults();", "int countByExample(ScheduleCriteria example);", "Object countTAlgmntBussRules(SearchFilter<TAlgmntBussRule> searchFilter);", "List<Integer> getCounts(SearchQuery... conditions);", "long count(Specification<E> spec);", "int countByExample(CommonQuestionStrategyTypeExample example);", "int findCountByCriteria(String eCriteria, Object... parameters);", "long countByExample(GpPubgPlayerExample example);", "int selectCountByFilter( ResponseFilter filter, Plugin plugin );", "int getScoresCount();", "int getFaintedPokemonCount();", "int countByExample(StudentCriteria example);", "int countByExample(BasicinfoCriteria example);", "long countByExample(FactRoomLogExample example);", "int countByExample(UserGiftCriteria example);", "int findAllCount() ;", "public Long getCount(Filter filter);", "@Override\n public final long countAll(final DataTablePredicate predicate) {\n\treturn (long) getEntityManager()\n\t\t.createQuery(\"select count(*) from \"\n\t\t\t+ searchQuery)\n\t\t.setParameter(\"search\", predicate.getSearch() + \"%\")\n\t\t.getSingleResult();\n }", "long count(String query);", "long count(String query);", "boolean hasCount();", "int count(State state);", "long countByExample(IceAppExample example);", "Object countTAlgmntBussRulesByTAlgmntSalesTeam(SearchFilter<TAlgmntSalesTeam> searchFilter);", "@Nonnull \r\n\tpublic static <T> Observable<Integer> count(\r\n\t\t\t@Nonnull Observable<? extends T> source, \r\n\t\t\t@Nonnull Func1<? super T, Boolean> predicate) {\r\n\t\treturn count(where(source, predicate));\r\n\t}", "int countByExample(TResearchTeachExample example);", "public int getTravelGroupListCount(Map conditions);", "long countByExample(PrefecturesMtExample example);", "long countByExample(TCpySpouseExample example);", "public int countResults() \n {\n return itsResults_size;\n }", "int getDetectionRulesCount();", "public abstract int countAllGroundAtoms(StandardPredicate predicate, List<Short> partitions);", "int getRulesCount();", "boolean isCounting();", "public int countByTitle(String title);", "public int searchRowsCount(SearchCriteria cri);", "Integer count();", "Integer count();", "int countByExample(DishExample example);", "Object getNumberMatched();", "int countByExample(SurveystatusPkeyExample example);", "public int count();", "public int count();", "public int count();", "public int count();", "int getStatsCount();", "int getStatsCount();", "int getStatsCount();", "@Override\n\tpublic int findCounts(DetachedCriteria detachedCriteria) {\n\t\treturn scoreDao.findCounts(detachedCriteria);\n\t}", "public static void main(String[] args) {\n HashMap<String, Boolean> casesToAction = new HashMap<>();\n casesToAction.put(\"a\", true);\n casesToAction.put(\"b\", true);\n casesToAction.put(\"c\", false);\n casesToAction.put(\"d\", true);\n casesToAction.put(\"e\", false);\n\n int expectedSuccessCount = Collections.frequency(casesToAction.values(), true);\n System.out.println(expectedSuccessCount);\n }", "int countByExample(TourstExample example);", "int countByExample(CfgSearchRecommendExample example);", "public Integer getAllShelfCount(String filter, String username);", "int countByExample(CrawlTestExample example);", "int countByExample(CptDataStoreExample example);", "long countByExample(ActivityHongbaoPrizeExample example);", "int countByExample(GoodexistsingleExample example);", "long countByExample(LtsprojectpoExample example);", "int countByExample(Lbm83ChohyokanriPkeyExample example);", "public int numberOfOccorrence();", "int count();", "int count();", "int count();", "int count();", "int count();", "int count();", "long getNumberOfComparisons();", "public int countByStatus(int status);", "int countByExample(SysTeamExample example);", "long count();", "long count();", "long count();", "long count();", "long count();", "long count();", "long count();", "long countByExample(HomeWorkExample example);", "int countByExample(RepStuLearningExample example);", "int getQuestCount();", "int countByExample(SportAlbumPictureExample example);", "long countByExample(TourExample example);", "int countByExample(PruebaExample example);", "public int countAll();", "public int countAll();", "public int countAll();", "public int countAll();", "public int countAll();", "public int countAll();", "public int countAll();", "public int countAll();", "public int countAll();", "public int countAll();", "public int countAll();", "Object countTAlgmntBussRulesByTBussRuleConfig(SearchFilter<TBussRuleConfig> searchFilter);", "Integer countAll();" ]
[ "0.66376555", "0.66376555", "0.66050357", "0.6571496", "0.65405685", "0.6425797", "0.6235993", "0.6214105", "0.62072235", "0.6194532", "0.61670285", "0.61660683", "0.6165504", "0.6156255", "0.6151075", "0.612462", "0.61178243", "0.611141", "0.6067006", "0.60612375", "0.60570407", "0.6028549", "0.60211164", "0.6016222", "0.6016222", "0.60092133", "0.60043895", "0.59979165", "0.59921944", "0.5989093", "0.59788436", "0.59655577", "0.59630316", "0.59626067", "0.59526014", "0.5949438", "0.59442365", "0.5939967", "0.5919128", "0.59185314", "0.59161514", "0.59095967", "0.59095967", "0.59087306", "0.59027755", "0.58973664", "0.5897083", "0.5897083", "0.5897083", "0.5897083", "0.589668", "0.589668", "0.589668", "0.5894814", "0.58932257", "0.58762074", "0.5870741", "0.5859098", "0.58586425", "0.5858222", "0.58493865", "0.5836044", "0.5832414", "0.5826292", "0.58233374", "0.5823259", "0.5823259", "0.5823259", "0.5823259", "0.5823259", "0.5823259", "0.5819469", "0.5811656", "0.5802432", "0.5799973", "0.5799973", "0.5799973", "0.5799973", "0.5799973", "0.5799973", "0.5799973", "0.57887346", "0.57884127", "0.57851624", "0.5770573", "0.5760813", "0.5752457", "0.57459456", "0.57459456", "0.57459456", "0.57459456", "0.57459456", "0.57459456", "0.57459456", "0.57459456", "0.57459456", "0.57459456", "0.57459456", "0.57408434", "0.5736796" ]
0.7703466
0
Computes average win turn among game results matching the given predicate
public Average getAverageWinTurn(Predicate<GameResult> filter) { long sum = results.stream() .filter(filter) .mapToLong(result -> result.getEndTurn() * result.getCount()) .sum(); long count = count(filter); double avg = (double) sum / (double) count; double distanceSum = results.stream() .filter(filter) .mapToDouble(result -> Math.abs(avg - result.getEndTurn()) * result.getCount()) .sum(); double mad = distanceSum / (double) count; // double distanceSqSum = results.stream() // .filter(filter) // .mapToDouble(result -> ((double) result.getEndTurn() - avg) * ((double) result.getEndTurn() - avg) * result.getCount()) // .sum(); // double standardDeviation = Math.sqrt(distanceSum / (double) count); return new Average(avg, mad); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void calculateAverage() {\n\n if (turn == 1) {\n p1.setTotalScore(p1.getTotalScore() + turnScore);\n\n p1.setTotalDarts(p1.getTotalDarts() + 1);\n\n float p1Average = p1.getTotalScore() / p1.getTotalDarts();\n p1.setAverage(p1Average);\n\n } else if (turn == 2) {\n p2.setTotalDarts(p2.getTotalDarts() + 1);\n p2.setTotalScore(p2.getTotalScore() + turnScore);\n\n float p2Average = p2.getTotalScore() / p2.getTotalDarts();\n p2.setAverage(p2Average);\n }\n\n\n }", "private static double countAverageRun(Runner sportsman) {\n double result = 0;\n for (int i = 0; i < sportsman.getNumberOfRuns(); i++) {\n result += sportsman.getDefiniteRunStat(i);\n }\n\n return result / sportsman.getNumberOfRuns();\n }", "public static double doAvgTurnAroundTime() {\n if (count >= 1) {\n return turnaroundTimeTotal / count;\n } else {\n return -1;\n }\n }", "private void calculate(int[][] turns) throws Exception {\n int score = 0;\n for (int i = 0; i < round; i++) {\n int[] t = turns[i];\n if (t[0] == maxSroce) {\n score += (maxSroce + getNext(turns, i, 2));\n situation[i] = Status.STRIKE;\n } else if (t[0] + t[1] == maxSroce) {\n score += (maxSroce + getNext(turns, i, 1));\n situation[i] = Status.SPARE;\n } else {\n score += (t[0] + t[1]);\n situation[i] = Status.MISS;\n }\n this.score[i] = score;\n }\n }", "private void calculateAverages(){\n for (int i=0; i<40; i=i+4){\n totalGoalsScored1 += Integer.parseInt(vectorResults[i]);\n }\n averageGoalsScored1 = totalGoalsScored1/numberItems;\n //Total and average scored goals of team 2\n for (int i=2; i<40; i=i+4){\n totalGoalsScored2 += Integer.parseInt(vectorResults[i]);\n }\n averageGoalsScored2 = totalGoalsScored2/numberItems;\n //Total and average received goals of team 1\n for (int i=1; i<40; i=i+4){\n totalGoalsReceived1 += Integer.parseInt(vectorResults[i]);\n }\n averageGoalsReceived1 = totalGoalsReceived1/numberItems;\n //Total and average received goals of team 2\n for (int i=3; i<40; i=i+4){\n totalGoalsReceived2 += Integer.parseInt(vectorResults[i]);\n }\n averageGoalsReceived2 = totalGoalsReceived2/numberItems;\n }", "@Override\n\tpublic void updateWinAvGames(Player player) {\n\t\tint gamesWon = 0;\n\t\tList<Game> games = listGames(player);\n\t\tfor (int i=0;i<games.size();i++) { \n\t\t\tif(games.get(i).isWon())\n\t\t\t\tgamesWon++;\n\t\t}\n\t\tdouble winAverage=(double) gamesWon / (double) games.size();\n\t\tplayer.setWinAvg(winAverage);\n\t}", "public double getTotalWinAverage() {\n return (double) getTotalWins() / getTotalDeckAmount();\n }", "public List<Integer> getWinTurns(Predicate<GameResult> filter) {\n return results.stream()\n .filter(filter)\n .map(GameResult::getEndTurn)\n .distinct()\n .sorted()\n .collect(Collectors.toList());\n }", "static int calculateScore(Card[] winnings) {\n int score = 0;\n for (Card card : winnings)\n if (card != null)\n score++;\n else\n break;\n return score;\n }", "private double eval(final GameStateModule game) {\n int player = game.getActivePlayer();\n int ourScore = 6*(threeInCol(game, player) + threeInRow(game, player) + threeInPos(game, player) + threeInNeg(game, player))\n + 3*(twoInCol(game, player) + twoInRow(game, player) + twoInPos(game, player) + twoInNeg(game, player));\n int theirScore = 7*(threeInCol(game, 2/player) + threeInRow(game, 2/player) + threeInPos(game, 2/player) + threeInNeg(game, 2/player))\n + 4*(twoInCol(game, 2/player) + twoInRow(game, 2/player) + twoInPos(game, 2/player) + twoInNeg(game, 2/player));\n return ourScore - theirScore;\n }", "void computeResult() {\n // Get the winner (null if draw).\n roundWinner = compareTopCards();\n\n\n if (roundWinner == null) {\n logger.log(\"Round winner: Draw\");\n logger.log(divider);\n // Increment statistic.\n numDraws++;\n\n } else {\n logger.log(\"Round winner: \" + roundWinner.getName());\n\t logger.log(divider);\n this.gameWinner = roundWinner;\n if (roundWinner.getIsHuman()) {\n // Increment statistic.\n humanWonRounds++;\n }\n }\n\n setGameState(GameState.ROUND_RESULT_COMPUTED);\n }", "static private void calculateMissionScore() {\n\n HashMap<String, Boolean> missionStatus = allMissions.missionStatus;\n\n for (String i : missionStatus.keySet()) {\n\n if (missionStatus.get(i) == true) {\n score.addToPoints(250);\n }\n }\n }", "private void doMatchesStats(int week){\r\n \r\n \r\n List<FantasyMatch> fMatches = fmatchBean.findByWeek(week);\r\n for(int i = 0; i < fMatches.size(); i++){\r\n FantasyMatch fm = fMatches.get(i);\r\n FantasyTeam team1 = fm.getTeam1();\r\n FantasyTeam team2 = fm.getTeam2();\r\n int team1Points = 0, team2Points = 0;\r\n \r\n team1Points += retrievePoints(fm.getTeam1QB(), week);\r\n team2Points += retrievePoints(fm.getTeam2QB(), week);\r\n \r\n team1Points += retrievePoints(fm.getTeam1RB1(), week);\r\n team2Points += retrievePoints(fm.getTeam2RB1(), week);\r\n\r\n team1Points += retrievePoints(fm.getTeam1RB2(), week);\r\n team2Points += retrievePoints(fm.getTeam2RB2(), week);\r\n\r\n team1Points += retrievePoints(fm.getTeam1WR1(), week);\r\n team2Points += retrievePoints(fm.getTeam2WR1(), week);\r\n\r\n team1Points += retrievePoints(fm.getTeam1WR2(), week);\r\n team2Points += retrievePoints(fm.getTeam2WR2(), week);\r\n\r\n team1Points += retrievePoints(fm.getTeam1WRRB(), week);\r\n team2Points += retrievePoints(fm.getTeam2WRRB(), week);\r\n\r\n team1Points += retrievePoints(fm.getTeam1TE(), week);\r\n team2Points += retrievePoints(fm.getTeam2TE(), week);\r\n\r\n team1Points += retrievePoints(fm.getTeam1K(), week);\r\n team2Points += retrievePoints(fm.getTeam2K(), week);\r\n\r\n team1Points += retrievePoints(fm.getTeam1DEF(), week);\r\n team2Points += retrievePoints(fm.getTeam2DEF(), week);\r\n \r\n fm.setTeam1Points(team1Points);\r\n fm.setTeam2Points(team2Points);\r\n \r\n if(team1Points > team2Points){\r\n team1.setWins(team1.getWins() + 1);\r\n team2.setLosses(team2.getLosses() + 1);\r\n }\r\n if(team1Points == team2Points){\r\n team1.setDraws(team1.getDraws() + 1);\r\n team2.setDraws(team2.getDraws() + 1);\r\n }\r\n if(team1Points < team2Points){\r\n team1.setLosses(team1.getLosses() + 1);\r\n team2.setWins(team2.getWins() + 1);\r\n }\r\n \r\n team1.setPointsFor(team1.getPointsFor() + team1Points);\r\n team1.setPointsAgainst(team1.getPointsAgainst() + team2Points);\r\n \r\n team2.setPointsFor(team2.getPointsFor() + team2Points);\r\n team2.setPointsAgainst(team2.getPointsAgainst() + team1Points);\r\n \r\n fmatchBean.edit(fm);\r\n ftBean.edit(team1);\r\n ftBean.edit(team2);\r\n }\r\n \r\n List<FantasyLeague> leagues = flBean.findAll();\r\n for(int i = 0; i < leagues.size(); i++){\r\n List<FantasyTeam> teams = ftBean.findByLeague(leagues.get(i));\r\n \r\n //DO SORTING BY WINS\r\n Collections.sort(teams, new TeamWinComparator());\r\n \r\n for(int j = 0; j < teams.size(); j++){\r\n FantasyTeam team = teams.get(j);\r\n team.setPreviousRank(team.getRank());\r\n team.setRank(j + 1); \r\n }\r\n }\r\n \r\n }", "public double getAvgDraws() {\n\t\tdouble result = -1.0, sum = 0.0;\n\t\tint count = 0;\n\t\ttry {\n\t\t\tthis.rs = smt.executeQuery(\"SELECT SUM(drawCnt) FROM tp.gamerecord\");\n\t\t\tif(this.rs.next()) {\n\t\t\t\tsum = this.rs.getDouble(1) ;\n\t\t\t}\n\t\t\tthis.rs = smt.executeQuery(\"SELECT COUNT(id) FROM tp.gamerecord\");\n\t\t\tif(this.rs.next()) {\n\t\t\t\tcount = this.rs.getInt(1);\n\t\t\t\tresult = sum / count;\n\t\t\t}\n\t\t\t\n\t\t} catch (SQLException e) {\n\t\t\tSystem.err.println(\"Query is Failed!\");\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn result;\n\t}", "public double getAverageRegularCardsByWins(int wins) {\n return statistics.getAvgCardsByWins().get(wins);\n }", "public float averageAnswers() {\n\t\tfloat out = 0;\n\t\t\n\t\tIterator<SolveResult> iter = super.iterator();\n\t\t\n\t\twhile(iter.hasNext()) {\n\t\t\tSolveResult thisResult = iter.next();\n\t\t\tfloat clues = ResultSet.clueCount(thisResult.puzzle);\n\t\t\tfloat cardinality = thisResult.puzzle.getCardinality();\n\t\t\tfloat conflicts = thisResult.puzzle.conflictCount();\n\t\t\t\n\t\t\tif(!(cardinality - clues - conflicts < 0)) {\n\t\t\t\tout += ((cardinality - clues - conflicts) / (81 - clues));\n\t\t\t}\n\t\t}\n\t\treturn out / super.size();\n\t}", "public static double getChampionMatchResult(String matchDetails, String accountID, double wins) {\n try {\r\n JSONObject searchResultsObj = new JSONObject(matchDetails);\r\n JSONArray searchResultsItems = searchResultsObj.getJSONArray(\"participantIdentities\");\r\n\r\n for (int i = 0; i < searchResultsItems.length(); i++) {\r\n JSONObject resultItem = searchResultsItems.getJSONObject(i);\r\n\r\n if (resultItem.getJSONObject(\"player\").getString(\"accountId\").equals(accountID)) {\r\n int participantId = resultItem.getInt(\"participantId\"); //store the user's id\r\n\r\n JSONArray teams = searchResultsObj.getJSONArray(\"teams\"); //fetch array of game results\r\n\r\n if (teams.getJSONObject(0).getString(\"win\").equals(\"Win\") && participantId < 5) { //check for user as blue team winning\r\n wins++; //the user won, increment to keep track of how many wins total\r\n }\r\n else if (teams.getJSONObject(0).getString(\"win\").equals(\"Fail\") && participantId > 5) { //check for user as red team winning\r\n wins++; //the user won, increment to keep track of how many wins total\r\n }\r\n else {\r\n //do nothing, the user lost this game\r\n }\r\n break; //break, the user has been found\r\n }\r\n }\r\n return wins;\r\n } catch (JSONException e) {\r\n System.out.println(\"JSON CHAMPION MATCH RESULT EXCEPTION: \" + e);\r\n return -1;\r\n }\r\n }", "public void calculateResult() {\n\t\tfor (GameEngineCallback callback : callbacks) {\n\t\t\t// Roll for house\n\t\t\tthis.rollHouse(INITIAL_DELAY, FINAL_DELAY, DELAY_INCREMENT);\n\t\t\t\n\t\t\tfor (Player player : this.players.values()) {\n\t\t\t\t// Players who are playing must have a bet and a score\n\t\t\t\t// This conditional may not be required in Assignment 2\n\t\t\t\tif (player.getBet() > 0 && player.getRollResult()\n\t\t\t\t\t\t.getTotalScore() > 0) {\n\t\t\t\t\t// Compare rolls, set result and add/subtract points\n\t\t\t\t\tif (this.houseDice.getTotalScore() > player.\n\t\t\t\t\t\t\tgetRollResult().getTotalScore()) {\n\t\t\t\t\t\tGameStatus status = GameEngine.GameStatus.LOST;\t\t\t\t\t\n\t\t\t\t\t\tplayer.setGameResult(status);\n\t\t\t\t\t\t\n\t\t\t\t\t\t// Subtract bet from player points\n\t\t\t\t\t\tint points = player.getPoints() - player.getBet();\n\t\t\t\t\t\tthis.setPlayerPoints(player, points);\n\t\t\t\t\t}\n\t\t\t\t\telse if (houseDice.getTotalScore() == player.\n\t\t\t\t\t\t\tgetRollResult().getTotalScore()) {\n\t\t\t\t\t\tGameStatus status = GameEngine.GameStatus.DREW;\t\t\t\t\t\n\t\t\t\t\t\tplayer.setGameResult(status);\n\t\t\t\t\t\t\n\t\t\t\t\t\t// No change to points on a draw\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tGameStatus status = GameEngine.GameStatus.WON;\t\t\t\t\t\n\t\t\t\t\t\tplayer.setGameResult(status);\n\t\t\t\t\t\t\n\t\t\t\t\t\t// Add bet to player points\n\t\t\t\t\t\tint points = player.getPoints() + player.getBet();\n\t\t\t\t\t\tthis.setPlayerPoints(player, points);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t// Display result\n\t\t\t\t\tcallback.gameResult(this.getPlayer(player.getPlayerId()), \n\t\t\t\t\t\t\tthis.getPlayer(player.getPlayerId()).getGameResult(), this);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public void evaluate(GameState gm, List<ScoredMove> moves) {\n\t\tfloat d = 0;\n\t\tCardSet cs;\n\t\tfloat newBattleListScore = 0;\n\t\t\n\t\tfloat currentHandScore = calcCardSetScore(gm, getHand());\n\t\tfloat currentBattleListScore = calcBattleListScore(gm, gm.getBattleList());\n\t\tfloat unknownCardsScore = calcCardSetScore(gm, getUnknownCards());\n\t\t\n\t\tif (super.getVerbosity()) {\n\t\t\tSystem.out.println(\"Current Hand Score: \" + currentHandScore);\n\t\t\tSystem.out.println(\"Current BattleList Score: \" + currentBattleListScore);\n\t\t\tSystem.out.println(\"UnknownCards Score: \" + unknownCardsScore\n\t\t\t\t+ \" | Count: \" + getUnknownCards().getCount() + \" | Avg/card: \" + \n\t\t\t\tunknownCardsScore/(float)getUnknownCards().getCount());\n\t\t}\n\t\t\n\t\tfor (ScoredMove m: moves) {\n\t\t\tif (m.getMove().getAction() == ACTION.DRAW) {\n\t\t\t\td = calcDrawScore(gm) + currentHandScore + currentBattleListScore;\n\t\t\t}\n\t\t\telse if (m.getMove().getAction() == ACTION.PLAY_ATTACK) {\n\t\t\t\tcs = new CardSet(getHand());\n\t\t\t\tcs.removeCard(m.getMove().getCard());\n\t\t\t\tnewBattleListScore = calcBattleListScore(gm, createNewBattleList(gm, m.getMove()));\n\t\t\t\td= calcCardSetScore(gm, cs) + newBattleListScore; \n\t\t\t}\n\t\t\telse if (m.getMove().getAction() == ACTION.PLAY_MERCHANT_SHIP) {\n\t\t\t\tcs = new CardSet(getHand());\n\t\t\t\tcs.removeCard(m.getMove().getCard());\n\t\t\t\tnewBattleListScore = calcBattleListScore(gm, createNewBattleList(gm, m.getMove()));\n\t\t\t\td= calcCardSetScore(gm, cs) + newBattleListScore;\n\t\t\t}\n\t\t\telse if (m.getMove().getAction() == ACTION.DISCARD) {\n\t\t\t\tcs = new CardSet(getHand());\n\t\t\t\tcs.removeCard(m.getMove().getCard());\n\t\t\t\td = calcCardSetScore(gm, cs) + currentBattleListScore;\n\t\t\t}\n\t\t\t\n\t\t\t// TODO: could be done better somewhere else?\n \t\tif (m.getMove().getAction() != ACTION.PLAY_MERCHANT_SHIP) {\n\t\t\t\td += calcMShipPenaltyScore(gm);\n\t\t\t}\n\t\t\t\n\t\t\tm.setScore(d);\n\t\t\tif (super.getVerbosity()) {\n\t\t\t\tSystem.out.println(m);\n\t\t\t}\n\t\t}\n\t}", "public long count(Predicate<GameResult> filter) {\n return results.stream()\n .filter(filter)\n .mapToInt(GameResult::getCount)\n .sum();\n }", "public static double countAllAverage(Runner[] runners, int numberOfRunners)//cчитаем среднее значение\n {\n int result = 0;\n for (int i = 0; i < numberOfRunners; i++) {\n result += runners[i].getAverageRun();\n }\n\n return result / numberOfRunners;\n }", "public void calcAvg(){\n\t\taverage = hits/atbat;\n\t\t\n\t}", "public double getAverageGoldCardsByWins(int wins) {\n return statistics.getAvgGoldCardsByWins().get(wins);\n }", "public void findAvg()\n {\n for(int i = 0; i <= scores.length-1; i++)\n {\n for (int j = 0; j <= scores[0].length-1; j++)\n {\n total += scores[i][j];\n }\n }\n System.out.println(\"The class average test score is \" + \n total/24 + \".\");\n }", "public int evaluate(int[][] gameBoard) {\n for (int r = 0; r < 3; r++) {\n if (gameBoard[r][0] == gameBoard[r][1] && gameBoard[r][1] == gameBoard[r][2]) {\n if (gameBoard[r][0] == ai)\n return +10;\n else if (gameBoard[r][0] == human)\n return -10;\n }\n }\n // Checking for Columns for victory.\n for (int c = 0; c < 3; c++) {\n if (gameBoard[0][c] == gameBoard[1][c] && gameBoard[1][c] == gameBoard[2][c]) {\n //gameLogic.getWinType();\n if (gameBoard[0][c] == ai)\n return +10;\n else if (gameBoard[0][c] == human)\n return -10;\n }\n }\n // Checking for Diagonals for victory.\n if (gameBoard[0][0] == gameBoard[1][1] && gameBoard[1][1] == gameBoard[2][2]) {\n if (gameBoard[0][0] == ai)\n return +10;\n else if (gameBoard[0][0] == human)\n return -10;\n }\n if (gameBoard[0][2] == gameBoard[1][1] && gameBoard[1][1] == gameBoard[2][0]) {\n if (gameBoard[0][2] == ai)\n return +10;\n else if (gameBoard[0][2] == human)\n return -10;\n }\n // Else if none of them have won then return 0\n return 0;\n }", "public void collectWinnings() {\n\t\tif (hand.checkBlackjack()) {\n\t\t\tdouble win = bet * 1.5;\n\t\t\ttotalMoney += (win + bet);\n\t\t} else {\n\t\t\ttotalMoney += (bet + bet);\n\t\t}\n\t}", "private static int evaluateBoard(final int[][] givenBoard) {\n final int[][] board = cloneBoard(givenBoard);\n\n final int numRows = givenBoard.length;\n final int numCols = givenBoard[0].length;\n\n \n // If the game is complete\n if (!Utils.hasMove(board)) {\n // Find largest absolute move value for player and opponent\n int playerScore = 0;\n int opponentScore = 0;\n for (final int[] row : board) {\n for (final int val : row) {\n if (val > playerScore) playerScore = val;\n if (val < opponentScore) opponentScore = val;\n } \n }\n // Give a big reward + the ammount we won the game by\n return WIN_REWARD + playerScore + opponentScore;\n }\n boardsEvaluated++;\n\n \n // If the game is incomplete, return the diference between the average \n // distance that the player and opponent are from each empty square\n int[][] playerDistances = distanceGrid(board);\n int[][] opponentDistances = distanceGrid(flipBoard(board));\n \n int totalPlayerDistance = 0;\n int totalOpponentDistance = 0;\n \n int maxPlayerDistance = 0;\n int maxOpponentDistance = 0;\n \n \n int largestPlayerMove = 0;\n int smallestOpponentMove = 0;\n \n int numEmptySpaces = 0;\n \n for (int r = 0; r < numRows; r++) {\n for (int c = 0; c < numCols; c++) {\n if (playerDistances[r][c] > 0) {\n totalPlayerDistance += playerDistances[r][c];\n numEmptySpaces++;\n }\n if (opponentDistances[r][c] > 0) {\n totalOpponentDistance += opponentDistances[r][c];\n }\n \n int boardVal = board[r][c];\n if (largestPlayerMove < boardVal) largestPlayerMove = boardVal;\n if (smallestOpponentMove > boardVal) smallestOpponentMove = boardVal;\n \n } \n }\n int averageDistanceDifference = totalOpponentDistance - totalPlayerDistance;\n\n int largestMoveDifference = largestPlayerMove + smallestOpponentMove;\n\n\n return averageDistanceDifference + largestMoveDifference;\n }", "public abstract boolean isRolling(int turnTotal, int opponentScore);", "public long calulateAverageTime()\r\n {\r\n long sum = 0;\r\n long avgTime = 0;\r\n\r\n //Get the sum of all the times \r\n for(long time : this.listOfTimes)\r\n {\r\n sum += time;\r\n }//end for \r\n\r\n //calculate the average time \r\n if(this.gamesCompleted>0)\r\n avgTime = sum / this.gamesCompleted;\r\n else\r\n avgTime = sum;\r\n\r\n return avgTime;\r\n }", "public static int tower(int... result) {\n\n int score = nSame(4, 6, result);\n int firstMatch = score/4;\n\n result = IntStream.of(result).filter(val -> val != firstMatch).toArray();\n score = nSame(2, 6, result);\n int secondMatch = score/2;\n\n if (firstMatch*secondMatch > 0) {\n score = 4*firstMatch + 2*secondMatch;\n } else {\n score = 0;\n }\n\n return score;\n }", "private int evaluate(Board board)\n {\n if (computerWin(board))\n return 4*size;\n else if (playerWin(board))\n return -4*size;\n else if (draw(board))\n return 3*size;\n else\n return count(board, COMPUTER);\n }", "public static double CalculateAverageTurnaround(process[] processes )\n\t{\n\t\tdouble totalTurnaroundTime = 0;\n\t\tfor(int i = 0; i < processes.length; i++)\n\t\t{\n\t\t\ttotalTurnaroundTime = totalTurnaroundTime + calculateTurnaroundTime(processes[i]);\n\t\t}\n\t\t\n\t\treturn totalTurnaroundTime / processes.length;\n\t}", "public String calcWinPercentage(boolean forPlayer) {\n\t\tdouble totalWins = 0;\n\t\t\n\t\tfor(HandStats h : handStats) {\n\t\t\tif(forPlayer) {\n\t\t\t\tif(h.getHandOutcome().equals(\"WIN!!\") || h.getHandOutcome().equals(\"BLACKJACK!!\")) {\n\t\t\t\t\ttotalWins += 1;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tif(h.getHandOutcome().equals(\"LOSE!!\") || h.getHandOutcome().equals(\"BUST!!\")) {\n\t\t\t\t\ttotalWins += 1;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\t \n\t\treturn (decimalFormat.format((totalWins / handStats.size()) * 100) + \"%\");\t\n\t}", "public static int fullHouseYahtzee(int... result) {\n\n int score = nSame(3, 6, result);\n int firstPairVal = score/3;\n\n result = IntStream.of(result).filter(val -> val != firstPairVal).toArray();\n score = nSame(2, 6, result);\n int secondPairVal = score/2;\n\n if (firstPairVal*secondPairVal > 0) {\n score = 25;\n } else {\n score = 0;\n }\n\n return score;\n }", "public int wins(String team) {\n return getTeamByName(team).wins;\r\n }", "public static double averageGameScore(int[][] scores)\n {\n \n int row = 0, col = 0;\n int gametotal = 0, total = 0; //total points scored in a given game and final total\n \n while( col < scores[0].length) //while there are still columns remaining\n {\n \n while ( row < scores.length) //total up the rows for that column\n {\n gametotal = gametotal + scores[row][col];\n row++;\n }\n total = total + gametotal;\n gametotal = 0;\n row = 0;\n col++; \n \n }\n \n total = (total / (scores[0].length)); //compute the average\n \n return total;\n \n }", "double totalMoviesAverageScore() {\n // call totalMovieAverage with no movie name\n // so filter will filter nothing and we'll get all the movies\n return totalMovieAverage(\"\");\n }", "private void calculateOverall()\n {\n ArrayList<Integer> average = new ArrayList<Integer>(1);\n ArrayList<Integer> median = new ArrayList<Integer>(1);\n ArrayList<Integer> mode = new ArrayList<Integer>();\n ArrayList<Integer> stdDev = new ArrayList<Integer>(1);\n \n int avg = 0;\n int med = 90;\n int mod = 90;\n int dev = 0;\n \n int[] modeArray = new int[100];\n \n for (int i = 0; i < 100; i++) {\n \tmodeArray[i] = 0;\n }\n \n for (Integer score : allScores) {\n \tavg += score;\n \tmodeArray[score]++;\n }\n \n for (int i = 0; i < 100; i++) {\n \tif (modeArray[i] > mod) {\n \t\tmod = modeArray[i];\n \t}\n }\n \n avg = avg / allScores.size();\n \n Collections.sort(allScores);\n med = allScores.get(allScores.size() / 2);\n \n for (Integer score : allScores) {\n \tdev += Math.pow(score - avg, 2);\n }\n dev = (int)Math.floor(Math.sqrt(dev / allScores.size()));\n\n // TODO: Perform the actual calculations here\n average.add(avg);\n median.add(med);\n mode.add(mod);\n stdDev.add(dev);\n\n this.overallAnalytics.put(\"Average\", average);\n this.overallAnalytics.put(\"Median\", median);\n this.overallAnalytics.put(\"Mode\", mode);\n this.overallAnalytics.put(\"Standard Deviation\", stdDev);\n }", "Execution getAverageExecutions();", "public int calculateNumberOfMatches(Tournament tournament, Round round) {\r\n\t\tint playersPerMatch = tournament.getTeamSize() * 2; // home and away team\r\n\t\tint possibleMatches = round.getPlayers().size() / playersPerMatch;\r\n\t\treturn Math.min(possibleMatches, tournament.getCourts());\r\n\t}", "@Test\n public void testWinLossRatio(){\n float wins = 0;\n float losses = 0;\n\n realDie1 = new Dice();\n realDie2 = new Dice();\n realDie3 = new Dice();\n\n game = new Game(realDie1, realDie2, realDie3);\n\n when (mockPlayer.getBalance()).thenReturn(100);\n\n int currentGameWins = 0;\n\n for (int i = 0; i < 10000; i++) {\n currentGameWins = game.playRound(mockPlayer, DiceValue.ANCHOR, 10);\n\n if (currentGameWins == 0) {\n losses ++;\n } else {\n wins ++;\n }\n\n }\n System.out.println(\"Wins = \" + wins + \" Losses = \" + losses);\n float ratio = wins/(losses + wins);\n System.out.println(\"Win ratio = \" + ratio);\n }", "public void calculateScores()\r\n {\r\n for(int i = 0; i < gameBoard.getBoardRows(); i++)\r\n for(int j = 0; j < gameBoard.getBoardCols(); j++)\r\n {\r\n if(gameBoard.tilePlayer(i,j) == 0)\r\n currentRedScore = currentRedScore + gameBoard.tileScore(i,j);\r\n if(gameBoard.tilePlayer(i,j) == 1)\r\n currentBlueScore = currentBlueScore + gameBoard.tileScore(i,j);\r\n }\r\n }", "private double evaluate() {\n // check for draws first, most lickely\n if (board.gameState() == MNKGameState.DRAW) return 0;\n else if (board.gameState() == MY_WIN) return 2 * M * N; // 2 times max depth\n else if (board.gameState() == ENEMY_WIN) return -2 * M * N;\n else {\n evaluated++;\n // keep the heuristic evaluation between 1 and -1\n return board.value();\n }\n }", "private void calculateGoalsScoredPerGame(LeagueTableEntry entry) {\r\n\t\tfloat goalsScoredPerGame = (float) entry.getGoalsScored() / entry.getMatchesPlayed();\r\n\t\tentry.setGoalsScoredPerGame(goalsScoredPerGame);\r\n\t}", "private static String calculateScore(Workspace workspace, EventManager eventManager,\n EventTotalManager eventTotalManager, Event event, MarketType marketType, Period period, Market market)\n throws SessionException, NotAuthorizedException {\n String score = null;\n if (event.getType() == CacheableItemType.GAMEEVENT) {\n List<EventTotal> eventTotals = null;\n if (marketType.getEventTotalsTypeId() == Constants.NULL_ID) {\n // Just add the game score\n GameResult result = eventManager.findResultByEventIdAndPeriod(workspace, event.getId(), period);\n if (result != null && result.getValueA() != null && result.getValueB() != null\n && result.getValueA() != -1 && result.getValueB() != -1) {\n String val = result.getValueA() + SEPARATOR + result.getValueB();\n score = val;\n }\n } else {\n // Add the result entered for this market\n Integer homeScore = -1;\n Integer awayScore = -1;\n eventTotals =\n eventTotalManager.findEventTotalsByType(workspace, event.getId(),\n marketType.getEventTotalsTypeId(), period);\n for (EventTotal eventTotal : eventTotals) {\n // heizerf: the scoreType restriction was removed to allow resulting of any scoreType markets\n if (market.getOpponentId() != Constants.NULL_ID) {\n if (eventTotal.getOpponentId() == market.getOpponentId()) {\n // A market total for an opponent will have the form n-0\n homeScore = eventTotal.getTotal();\n awayScore = 0;\n break;\n }\n } else {\n // I am changing this because up till now homeScore could've been the total from EventTotals\n // and not the Team A total, depending on which order the EventTotals were loaded.\n // I discussed this with Eric and Adam Avery, as far as we were able to determine, this is\n // the right way to implement the scores.\n // If you find any problems, feel free to ask me.\n // baloght - ABP-34215 @ 20/05/2014\n if (eventTotal.getOpponentId() == event.getOpponentA().getId()) {\n homeScore = eventTotal.getTotal();\n } else if (eventTotal.getOpponentId() == event.getOpponentB().getId()) {\n awayScore = eventTotal.getTotal();\n }\n }\n }\n\n // This will probably be the ugliest hack I ever did so far, so:\n // Forgive me father, for I have sinned.\n // My only excuse is that I am replacing a hack at least this ugly, plus, it was not even working.\n // My previous fix a few lines above fixed ABP-34215 problem, but ruined something else, as there is\n // a\n // fourth case of score return. Before my first fix, the first and fourth type was mixed up, after\n // my fix the fourth was ignored. Neither of them is good.\n // So, we have scores where:\n // 1st type: Team A eventotal - Team B eventtotal (W/D/W)\n // 2nd type: Team A eventotal - 0 (Total Corners Opponent A O/U)\n // 3rd type: Team B eventotal - 0 (Total Corners Opponent B O/U)\n // 4th type: Total of eventtotal - 0 (Total 3 Points Baskets O/U)\n // Now, the hack is, if we are at this point, and the homeScore and awayScore are both -1, we have\n // to\n // have the 4th type, I found no better way to identify it. Here comes the hack:\n if (homeScore == -1 && awayScore == -1) {\n for (EventTotal eventTotal : eventTotals) {\n if (eventTotal.getOpponentId() == Constants.NULL_ID) {\n homeScore = eventTotal.getTotal();\n awayScore = 0;\n }\n }\n }\n // I swear if there will be one more bug in this piece of code, I will remove the whole thing, and\n // come up with a proper solution, because the original one was a hack itself.\n // baloght - ABP-35188 @ 01/07/2014\n\n // to indicate that there is a problem here\n if (homeScore == null) {\n homeScore = -1;\n }\n if (awayScore == null) {\n awayScore = -1;\n }\n\n if (homeScore > -1 && (awayScore == -1)) {\n awayScore = 0;\n }\n String val = homeScore + SEPARATOR + awayScore;\n score = val;\n }\n\n }\n return score;\n }", "private void calculateGoalDifferencePerGame(LeagueTableEntry entry) {\r\n\t\tfloat goalDifferencePerGame = (float) entry.getGoalDifference() / entry.getMatchesPlayed();\r\n\t\tentry.setGoalDifferencePerGame(goalDifferencePerGame);\r\n\t}", "public int wins(String team) {\n return 0;\n }", "private int checkWinner(int[] arr) {\n for (int i = 0; i <= 6; i += 3) {\n int sum = arr[i] + arr[i + 1] + arr[i + 2];\n if (sum == 3) {\n return 1;\n } else if (sum == -3) {\n return 2;\n }\n }\n\n // Check verticals\n for (int i = 0; i < 3; i++) {\n int sum = arr[i] + arr[i + 3] + arr[i + 6];\n if (sum == 3) {\n return 1;\n } else if (sum == -3) {\n return 2;\n }\n }\n\n // Check diagonals\n int sum = arr[0] + arr[4] + arr[8];\n if (sum == 3) {\n return 1;\n } else if (sum == -3) {\n return 2;\n }\n\n sum = arr[2] + arr[4] + arr[6];\n if (sum == 3) {\n return 1;\n } else if (sum == -3) {\n return 2;\n }\n\n return 0;\n }", "public int addWinningGame() {\n\t\tgamesWon++;\n\t\treturn gamesWon;\n\t}", "public static int villa(int... result) {\n\n int score = nSame(3, 6, result);\n int firstPairVal = score/3;\n\n result = IntStream.of(result).filter(val -> val != firstPairVal).toArray();\n score = nSame(3, 6, result);\n int secondPairVal = score/3;\n\n if (firstPairVal*secondPairVal > 0) {\n score = 3*firstPairVal + 3*secondPairVal;\n } else {\n score = 0;\n }\n\n return score;\n }", "private static int iteration(int considerWinning) {\r\n boolean won = false;\r\n int weeks = 0;\r\n while(won == false) {\r\n int winning[] = calculateLotto();\r\n int collision = Arrays.containsSameValues(USER_LOTTERY, winning);\r\n weeks++;\r\n if(collision == considerWinning) {\r\n\r\n if(weeks < 52) {\r\n System.out.println(\"Got \"+ collision+\" right. Took \"+ weeks + \" weeks.\");\r\n } else {\r\n System.out.println(\"Got \"+ collision+\" right. Took \"+ weeks/52 + \" years.\");\r\n }\r\n\r\n won = true;\r\n }\r\n }\r\n\r\n return (int) weeks / 52;\r\n\r\n }", "public int moveScore(long move) {\r\n return popcount(compute_winning_position(bitboard | move, mask));\r\n }", "public int average() {\n int total = 0;\n\n for (int score : scores) {\n total += score;\n }\n\n return total / scores.length;\n }", "private int calculateScore(){\n int score = 0;\n for(Card card : hand){\n score += card.getScore();\n }\n return score;\n }", "private void calculatePointsPerGame(LeagueTableEntry entry) {\r\n\t\tfloat pointsPerGame = (float) entry.getPoints() / entry.getMatchesPlayed();\r\n\t\tentry.setPointsPerGame(pointsPerGame);\r\n\t}", "public void testScoreboardCaseFour () throws Exception {\n \n // RunID TeamID Prob Time Result\n \n String [] runsData = {\n\n \"1,1,A,1,No\", //20\n \"2,1,A,3,Yes\", //3 (first yes counts Minutes only)\n \"3,1,A,5,No\", //20\n \"4,1,A,7,Yes\", //20 \n \"5,1,A,9,No\", //20\n \n \"6,1,B,11,No\", //20 (all runs count)\n \"7,1,B,13,No\", //20 (all runs count)\n \n \"8,2,A,30,Yes\", //30\n \n \"9,2,B,35,No\", //20 (all runs count)\n \"10,2,B,40,No\", //20 (all runs count)\n \"11,2,B,45,No\", //20 (all runs count)\n \"12,2,B,50,No\", //20 (all runs count)\n \"13,2,B,55,No\", //20 (all runs count)\n\n };\n \n // Rank TeamId Solved Penalty\n \n String [] rankData = {\n \"1,team1,1,23\",\n \"2,team2,1,30\"\n };\n \n // TODO when SA supports count all runs, replace rankData\n \n /**\n * Case 4 tests when all runs are counted, the current SA\n * does not support this scoring method. The commented\n * rankData is the proper results\n */\n \n// Team 1 -- 123 <-- Team 1 is winning again\n// Team 2 -- 130\n \n// String [] rankData = {\n// \"1,team1,1,123\",\n// \"2,team2,1,130\"\n// };\n \n scoreboardTest (2, runsData, rankData);\n }", "public static double evaluate(Player player, State state) {\n\t\treturn Value.playerScore(player, state) - Value.playerScore(player.getOpponent(), state);\n\t}", "protected abstract void calcScores();", "public ArrayList<Double> runExperiment(Controller<MOVE> pacManController,Controller<EnumMap<GHOST,MOVE>> ghostController,int trials)\n {\n \tdouble avgScore=0;\n \tdouble avgTime=0;\n \tdouble maxScore = 0;\n \t\n \tRandom rnd=new Random(0);\n\t\tGame game;\n\t\t\n\t\tfor(int i=0;i<trials;i++)\n\t\t{\n\t\t\tgame=new Game(rnd.nextLong());\n\t\t\tint lastLevel = 0;\n\t\t\t\n\t\t\twhile(!game.gameOver())\n\t\t\t{\t\t\t\t\n\t\t game.advanceGame(pacManController.getMove(game.copy(),System.currentTimeMillis()+DELAY),\n\t\t \t\tghostController.getMove(game.copy(),System.currentTimeMillis()+DELAY));\n\t\t lastLevel = game.getCurrentLevel();\n\t\t\t}\n\t\t\tif(game.getScore() > maxScore){\n\t\t\t\tmaxScore = game.getScore();\n\t\t\t}\n\t\t\t\n\t\t\tavgScore+=game.getScore();\n\t\t\tavgTime+=game.getTotalTime();\n\t\t\t//System.out.println(i+\"\\t\"+game.getScore());\n\t\t}\n\t\t\n\t\tArrayList<Double> ret = new ArrayList<>(3);\n\t\tret.add(avgScore/trials);\n\t\tret.add(avgTime/trials);\n\t\tret.add(maxScore);\n\t\t\n\t\tSystem.out.println(avgScore/trials);\n\t\tSystem.out.println(\"This is the max Score: \" + maxScore);\n\t\treturn ret;\n }", "public static void updateWinRate(MongoDatabaseFactory mongoDatabaseFactory) {\n mongoDatabaseFactory.getMongoCollection(RankedStatsDaoImpl.COLLECTION_NAME).get().aggregate(Arrays.asList(\n new BasicDBObject(\"$unwind\", \"$item.champions\"),\n new BasicDBObject(\"$group\",\n new Document(\"_id\", new Document(\"championId\", \"$item.champions.id\").append(\"played\", \"$item.champions.stats.totalSessionsPlayed\"))\n .append(\"played\", new Document(\"$sum\", \"$item.champions.stats.totalSessionsPlayed\"))\n .append(\"won\", new Document(\"$sum\", \"$item.champions.stats.totalSessionsWon\"))\n .append(\"total\", new Document(\"$sum\", 1))\n ),\n new BasicDBObject(\"$project\", new Document(\"result\", new Document(\"$divide\", new String[]{\"$won\", \"$played\"})).append(\"total\", 1)),\n new BasicDBObject(\"$sort\", new Document(\"_id\", 1)),\n new BasicDBObject(\"$out\", COLLECTION_NAME)\n )).iterator();\n }", "public void calculateScore() {\n\n turnScore();\n\n if (turn == 1) {\n p1.setScore(p1.getScore() - turnScore);\n\n } else if (turn == 2) {\n p2.setScore(p2.getScore() - turnScore);\n\n }\n\n\n }", "protected abstract double relevantScore(Tweet tweet);", "public int evaluate(PentagoBoardState pbs) {\n PentagoBoardState.Piece[][] pieces = pbs.getBoard();\n\n\n int whitescore =0; //keep track of white's total score\n int blackscore = 0;//keep track of black's total score\n\n //Check rows\n for (int x = 0; x <6 ; x++) {\n int countWHori = 0;\n int countBHori = 0;\n\n int blacks = 0;\n int whites = 0;\n\n\n for (int y = 0; y <5 ; y++) {\n //Count how many black and white pieces\n if (pieces[x][y].ordinal() == 0 ) {\n\n //countBHori = countBHori + countvalue;\n blacks++;\n }\n if (pieces[x][y].ordinal() == 1) {\n\n //countWHori = countWHori +countvalue;\n whites++;\n }\n\n //Check for consecutive\n if (pieces[x][y].ordinal() == 0 && pieces[x][y+1].ordinal() == 0 ) {\n\n countBHori = countBHori +consecvalue;\n }\n\n else if (pieces[x][y].ordinal() == 0 && pieces[x][y+1].ordinal() == 2 ) {\n\n countBHori = countBHori + blankspaceconsec;\n }\n else if (pieces[x][y].ordinal() == 2 && pieces[x][y+1].ordinal() == 0 ) {\n\n countBHori = countBHori + blankspaceconsec;\n }\n\n else if (pieces[x][y].ordinal() == 1 && pieces[x][y+1].ordinal() == 1 ) {\n\n countWHori = countWHori +consecvalue;\n }\n\n else if (pieces[x][y].ordinal() == 1 && pieces[x][y+1].ordinal() == 2 ) {\n\n countWHori = countWHori + blankspaceconsec;\n }\n else if (pieces[x][y].ordinal() == 2 && pieces[x][y+1].ordinal() == 1 ) {\n\n countWHori = countWHori + blankspaceconsec;\n }\n\n //Check for disjoint and joint set If * B B W * * then disjoint and * B B * B * Then joint set for B * B\n if (y!=4){\n if (pieces[x][y].ordinal() == 0 && pieces[x][y+1].ordinal() == 0 && pieces[x][y+2].ordinal() == 1){\n countBHori = countBHori +disjointset;\n }\n else if (pieces[x][y].ordinal() == 1 && pieces[x][y+1].ordinal() == 1 && pieces[x][y+2].ordinal() == 0){\n countWHori = countWHori +disjointset;\n }\n if (pieces[x][y].ordinal() == 0 && pieces[x][y+1].ordinal() == 2 && pieces[x][y+2].ordinal() == 0){\n countBHori = countBHori +jointset;\n }\n else if (pieces[x][y].ordinal() == 1 && pieces[x][y+1].ordinal() == 2 && pieces[x][y+2].ordinal() == 1){\n countWHori = countWHori +jointset;\n }\n }\n }\n //check if unwinnable\n if (blacks == 4 && whites==2){\n countBHori += unwinnable;\n }\n if (blacks == 2 && whites==4){\n countWHori += unwinnable;\n }\n if (blacks == 3 && whites==3){\n countWHori += unwinnable;\n countBHori += unwinnable;\n }\n\n\n //Run value for row in evaluation scheme and add to total score\n int valuew = consecutivevalue(countWHori);\n whitescore = whitescore +valuew;\n int valueb = consecutivevalue(countBHori);\n blackscore = blackscore + valueb;\n //System.out.println(\"Black consec hori \" + valueb + \"White consec hori \" + valuew);\n\n }\n\n //Check Verticals\n for (int y = 0; y <6 ; y++) {\n int countWvert = 0;\n int countBvert = 0;\n int blacks = 0;\n int whites = 0;\n\n\n for (int x = 0; x <5 ; x++) {\n if (pieces[x][y].ordinal() == 0) {\n\n //countBvert = countBvert +1;\n blacks++;\n }\n if (pieces[x][y].ordinal() == 1) {\n\n //countWvert = countWvert +1;\n whites++;\n }\n if (pieces[x][y].ordinal() == 0 && pieces[x+1][y].ordinal() == 0 ) {\n\n countBvert = countBvert +consecvalue;\n }\n\n else if (pieces[x][y].ordinal() == 0 && pieces[x+1][y].ordinal() == 2 ) {\n\n countBvert = countBvert + blankspaceconsec;\n }\n else if (pieces[x][y].ordinal() == 2 && pieces[x+1][y].ordinal() == 0 ) {\n\n countBvert = countBvert + blankspaceconsec;\n }\n\n else if (pieces[x][y].ordinal() == 1 && pieces[x+1][y].ordinal() == 1 ) {\n\n countWvert = countWvert +consecvalue;\n }\n\n else if (pieces[x][y].ordinal() == 1 && pieces[x+1][y].ordinal() == 2 ) {\n\n countWvert = countWvert + blankspaceconsec;\n }\n else if (pieces[x][y].ordinal() == 2 && pieces[x+1][y].ordinal() == 1 ) {\n\n countWvert = countWvert + blankspaceconsec;\n }\n\n if (x!=4){\n if (pieces[x][y].ordinal() == 0 && pieces[x+1][y].ordinal() == 0 && pieces[x+1][y].ordinal() == 1){\n countBvert = countBvert +disjointset;\n }\n else if (pieces[x][y].ordinal() == 1 && pieces[x+1][y].ordinal() == 1 && pieces[x+1][y].ordinal() == 0){\n countWvert = countWvert +disjointset;\n }\n if (pieces[x][y].ordinal() == 0 && pieces[x+1][y].ordinal() == 2 && pieces[x+1][y].ordinal() == 0){\n countBvert = countBvert +jointset;\n }\n else if (pieces[x][y].ordinal() == 1 && pieces[x+1][y].ordinal() == 2 && pieces[x+1][y].ordinal() == 1){\n countWvert = countWvert +jointset;\n }\n }\n }\n\n if (blacks == 4 && whites==2){\n countBvert += unwinnable;\n }\n if (blacks == 3 && whites==3){\n countBvert += unwinnable;\n countWvert += unwinnable;\n }\n if (blacks == 2 && whites==4){\n countWvert += unwinnable;\n }\n //System.out.println(\"Black consec vert \" + countBvert + \"White consec \" + countWvert);\n int valuew = consecutivevalue(countWvert);\n whitescore = whitescore +valuew;\n int valueb = consecutivevalue(countBvert);\n blackscore = blackscore + valueb;\n //System.out.println(\"Black consec VERT \" + valueb + \"White consec hori \" + valuew);\n }\n\n //S West N EAST Top\n for (int a = 1; a <6 ; a++) { //loop through all diagonal lines\n int countWdiagSoNe = 0;\n int countBdiagSoNe = 0;\n int x=0;\n int blacks = 0;\n int whites = 0;\n\n\n for (int y = a; y !=0 ; y--) { //loop through one diagonal line\n\n int r = pieces[x][y].ordinal();\n int s =pieces[x+1][y-1].ordinal();\n //System.out.println(\"x \" + x+ \" y \" +y);\n //System.out.println(\"first \" + r+ \" second \" +s);\n if (pieces[x][y].ordinal() == 0) {\n\n //countBdiagSoNe = countBdiagSoNe +2;\n blacks++;\n }\n if (pieces[x][y].ordinal() == 1 ) {\n\n //countWdiagSoNe = countWdiagSoNe +2;\n whites++;\n }\n if (pieces[x][y].ordinal() == 0 && pieces[x+1][y-1].ordinal() == 0 ) {\n\n countBdiagSoNe = countBdiagSoNe +consecvalue;\n }\n\n else if (pieces[x][y].ordinal() == 0 && pieces[x+1][y-1].ordinal() == 2 ) {\n\n countBdiagSoNe = countBdiagSoNe + blankspaceconsec;\n }\n\n else if (pieces[x][y].ordinal() == 2 && pieces[x+1][y-1].ordinal() == 0 ) {\n\n countBdiagSoNe = countBdiagSoNe + blankspaceconsec;\n }\n\n else if (pieces[x][y].ordinal() == 1 && pieces[x+1][y-1].ordinal() == 1 ) {\n\n countWdiagSoNe = countWdiagSoNe +consecvalue;\n }\n\n else if (pieces[x][y].ordinal() == 1 && pieces[x+1][y-1].ordinal() == 2 ) {\n\n countWdiagSoNe = countWdiagSoNe + blankspaceconsec;\n }\n\n else if (pieces[x][y].ordinal() == 2 && pieces[x+1][y-1].ordinal() == 1 ) {\n\n countWdiagSoNe = countWdiagSoNe + blankspaceconsec;\n }\n\n // check for joint and disjoint set at these x y coordinates by looking 2 pieces ahead\n if (x==0 && y==4){\n if (pieces[x][y].ordinal() == 1 && pieces[x+1][y-1].ordinal() == 1 && pieces[x+2][y-2].ordinal() == 0) {\n\n countWdiagSoNe = countWdiagSoNe + disjointset;\n }\n else if (pieces[x][y].ordinal() == 0 && pieces[x+1][y-1].ordinal() == 0 && pieces[x+2][y-2].ordinal() == 1) {\n\n countBdiagSoNe = countBdiagSoNe + disjointset;\n }\n if (pieces[x][y].ordinal() == 1 && pieces[x+1][y-1].ordinal() == 2 && pieces[x+2][y-2].ordinal() == 1) {\n\n countWdiagSoNe = countWdiagSoNe +jointset;\n }\n else if (pieces[x][y].ordinal() == 0 && pieces[x+1][y-1].ordinal() == 2 && pieces[x+2][y-2].ordinal() == 0) {\n\n countBdiagSoNe = countBdiagSoNe + jointset;\n }\n }\n if (x==1 && y==3){\n if (pieces[x][y].ordinal() == 1 && pieces[x+1][y-1].ordinal() == 1 && pieces[x+2][y-2].ordinal() == 0) {\n\n countWdiagSoNe = countWdiagSoNe + disjointset;\n }\n else if (pieces[x][y].ordinal() == 0 && pieces[x+1][y-1].ordinal() == 0 && pieces[x+2][y-2].ordinal() == 1) {\n\n countBdiagSoNe = countBdiagSoNe + disjointset;\n }\n if (pieces[x][y].ordinal() == 1 && pieces[x+1][y-1].ordinal() == 2 && pieces[x+2][y-2].ordinal() == 1) {\n\n countWdiagSoNe = countWdiagSoNe +jointset;\n }\n else if (pieces[x][y].ordinal() == 0 && pieces[x+1][y-1].ordinal() == 2 && pieces[x+2][y-2].ordinal() == 0) {\n\n countBdiagSoNe = countBdiagSoNe + jointset;\n }\n }\n if (x==2 && y==2){\n if (pieces[x][y].ordinal() == 1 && pieces[x+1][y-1].ordinal() == 1 && pieces[x+2][y-2].ordinal() == 0) {\n\n countWdiagSoNe = countWdiagSoNe + disjointset;\n }\n if (pieces[x][y].ordinal() == 0 && pieces[x+1][y-1].ordinal() == 0 && pieces[x+2][y-2].ordinal() == 1) {\n\n countBdiagSoNe = countBdiagSoNe + disjointset;\n }\n if (pieces[x][y].ordinal() == 1 && pieces[x+1][y-1].ordinal() == 2 && pieces[x+2][y-2].ordinal() == 1) {\n\n countWdiagSoNe = countWdiagSoNe +jointset;\n }\n else if (pieces[x][y].ordinal() == 0 && pieces[x+1][y-1].ordinal() == 2 && pieces[x+2][y-2].ordinal() == 0) {\n\n countBdiagSoNe = countBdiagSoNe + jointset;\n }\n }\n if (x==0 && y==5){\n if (pieces[x][y].ordinal() == 1 && pieces[x+1][y-1].ordinal() == 1 && pieces[x+2][y-2].ordinal() == 0) {\n\n countWdiagSoNe = countWdiagSoNe + disjointset;\n }\n if (pieces[x][y].ordinal() == 0 && pieces[x+1][y-1].ordinal() == 0 && pieces[x+2][y-2].ordinal() == 1) {\n\n countBdiagSoNe = countBdiagSoNe + disjointset;\n }\n if (pieces[x][y].ordinal() == 1 && pieces[x+1][y-1].ordinal() == 2 && pieces[x+2][y-2].ordinal() == 1) {\n\n countWdiagSoNe = countWdiagSoNe +jointset;\n }\n else if (pieces[x][y].ordinal() == 0 && pieces[x+1][y-1].ordinal() == 2 && pieces[x+2][y-2].ordinal() == 0) {\n\n countBdiagSoNe = countBdiagSoNe + jointset;\n }\n }\n if (x==1 && y==4){\n if (pieces[x][y].ordinal() == 1 && pieces[x+1][y-1].ordinal() == 1 && pieces[x+2][y-2].ordinal() == 0) {\n\n countWdiagSoNe = countWdiagSoNe + disjointset;\n }\n if (pieces[x][y].ordinal() == 0 && pieces[x+1][y-1].ordinal() == 0 && pieces[x+2][y-2].ordinal() == 1) {\n\n countBdiagSoNe = countBdiagSoNe + disjointset;\n }\n if (pieces[x][y].ordinal() == 1 && pieces[x+1][y-1].ordinal() == 2 && pieces[x+2][y-2].ordinal() == 1) {\n\n countWdiagSoNe = countWdiagSoNe +jointset;\n }\n else if (pieces[x][y].ordinal() == 0 && pieces[x+1][y-1].ordinal() == 2 && pieces[x+2][y-2].ordinal() == 0) {\n\n countBdiagSoNe = countBdiagSoNe + jointset;\n }\n }\n if (x==2 && y==3){\n if (pieces[x][y].ordinal() == 1 && pieces[x+1][y-1].ordinal() == 1 && pieces[x+2][y-2].ordinal() == 0) {\n\n countWdiagSoNe = countWdiagSoNe + disjointset;\n }\n if (pieces[x][y].ordinal() == 0 && pieces[x+1][y-1].ordinal() == 0 && pieces[x+2][y-2].ordinal() == 1) {\n\n countBdiagSoNe = countBdiagSoNe + disjointset;\n }\n if (pieces[x][y].ordinal() == 1 && pieces[x+1][y-1].ordinal() == 2 && pieces[x+2][y-2].ordinal() == 1) {\n\n countWdiagSoNe = countWdiagSoNe +jointset;\n }\n else if (pieces[x][y].ordinal() == 0 && pieces[x+1][y-1].ordinal() == 2 && pieces[x+2][y-2].ordinal() == 0) {\n\n countBdiagSoNe = countBdiagSoNe + jointset;\n }\n }\n if (x==3 && y==2){\n if (pieces[x][y].ordinal() == 1 && pieces[x+1][y-1].ordinal() == 1 && pieces[x+2][y-2].ordinal() == 0) {\n\n countWdiagSoNe = countWdiagSoNe + disjointset;\n }\n if (pieces[x][y].ordinal() == 0 && pieces[x+1][y-1].ordinal() == 0 && pieces[x+2][y-2].ordinal() == 1) {\n\n countBdiagSoNe = countBdiagSoNe + disjointset;\n }\n if (pieces[x][y].ordinal() == 1 && pieces[x+1][y-1].ordinal() == 2 && pieces[x+2][y-2].ordinal() == 1) {\n\n countWdiagSoNe = countWdiagSoNe +jointset;\n }\n else if (pieces[x][y].ordinal() == 0 && pieces[x+1][y-1].ordinal() == 2 && pieces[x+2][y-2].ordinal() == 0) {\n\n countBdiagSoNe = countBdiagSoNe + jointset;\n }\n }\n\n x++;\n\n\n }\n if (blacks == 4 && whites==2){\n countBdiagSoNe += unwinnable;\n }\n if (blacks == 3 && whites==3){\n countBdiagSoNe += unwinnable;\n countWdiagSoNe += unwinnable;\n }\n if (blacks == 2 && whites==4){\n countWdiagSoNe += unwinnable;\n }\n if (a==4 && blacks == 4 && whites==1){\n countBdiagSoNe += unwinnable;\n }\n if (a==4 && blacks == 1 && whites==4){\n countWdiagSoNe += unwinnable;\n }\n\n //System.out.println(\"Black consec vert \" + countBdiagSoNe + \"White consec \" + countWdiagSoNe);\n int valuew = consecutivevalue(countWdiagSoNe);\n whitescore = whitescore +valuew;\n int valueb = consecutivevalue(countBdiagSoNe);\n blackscore = blackscore + valueb;\n //System.out.println(\"Black consec DIAGOMAAL \" + valueb + \" \" + countBdiagSoNe + \"White consec hori \" + valuew + \" \" + countWdiagSoNe);\n }\n //S West N EAST Bot\n for (int a = 1; a <5 ; a++) {\n int countWdiagSoNe = 0;\n int countBdiagSoNe = 0;\n int y=5;\n int blacks = 0;\n int whites = 0;\n\n for (int x = a; x <5 ; x++) {\n\n int r = pieces[x][y].ordinal();\n int s =pieces[x+1][y-1].ordinal();\n //System.out.println(\"x \" + x+ \" y \" +y);\n //System.out.println(\"first \" + r+ \" second \" +s);\n if (pieces[x][y].ordinal() == 0) {\n\n //countBdiagSoNe = countBdiagSoNe +\n blacks++;\n }\n if (pieces[x][y].ordinal() == 1 ) {\n\n //countWdiagSoNe = countWdiagSoNe +2;\n whites++;\n }\n if (pieces[x][y].ordinal() == 0 && pieces[x+1][y-1].ordinal() == 0 ) {\n\n countBdiagSoNe = countBdiagSoNe +consecvalue;\n }\n\n else if (pieces[x][y].ordinal() == 0 && pieces[x+1][y-1].ordinal() == 2 ) {\n\n countBdiagSoNe = countBdiagSoNe + blankspaceconsec;\n }\n\n else if (pieces[x][y].ordinal() == 2 && pieces[x+1][y-1].ordinal() == 0 ) {\n\n countBdiagSoNe = countBdiagSoNe + blankspaceconsec;\n }\n\n else if (pieces[x][y].ordinal() == 1 && pieces[x+1][y-1].ordinal() == 1 ) {\n\n countWdiagSoNe = countWdiagSoNe +consecvalue;\n }\n\n else if (pieces[x][y].ordinal() == 1 && pieces[x+1][y-1].ordinal() == 2 ) {\n\n countWdiagSoNe = countWdiagSoNe + blankspaceconsec;\n }\n\n else if (pieces[x][y].ordinal() == 2 && pieces[x+1][y-1].ordinal() == 1 ) {\n\n countWdiagSoNe = countWdiagSoNe + blankspaceconsec;\n }\n if (x==1 && y==5){\n if (pieces[x][y].ordinal() == 1 && pieces[x+1][y-1].ordinal() == 1 && pieces[x+2][y-2].ordinal() == 0) {\n\n countWdiagSoNe = countWdiagSoNe + disjointset;\n }\n if (pieces[x][y].ordinal() == 0 && pieces[x+1][y-1].ordinal() == 0 && pieces[x+2][y-2].ordinal() == 1) {\n\n countBdiagSoNe = countBdiagSoNe + disjointset;\n }\n if (pieces[x][y].ordinal() == 1 && pieces[x+1][y-1].ordinal() == 2 && pieces[x+2][y-2].ordinal() == 1) {\n\n countWdiagSoNe = countWdiagSoNe +jointset;\n }\n else if (pieces[x][y].ordinal() == 0 && pieces[x+1][y-1].ordinal() == 2 && pieces[x+2][y-2].ordinal() == 0) {\n\n countBdiagSoNe = countBdiagSoNe + jointset;\n }\n }\n if (x==2 && y==4){\n if (pieces[x][y].ordinal() == 1 && pieces[x+1][y-1].ordinal() == 1 && pieces[x+2][y-2].ordinal() == 0) {\n\n countWdiagSoNe = countWdiagSoNe + disjointset;\n }\n if (pieces[x][y].ordinal() == 0 && pieces[x+1][y-1].ordinal() == 0 && pieces[x+2][y-2].ordinal() == 1) {\n\n countBdiagSoNe = countBdiagSoNe + disjointset;\n }\n if (pieces[x][y].ordinal() == 1 && pieces[x+1][y-1].ordinal() == 2 && pieces[x+2][y-2].ordinal() == 1) {\n\n countWdiagSoNe = countWdiagSoNe +jointset;\n }\n else if (pieces[x][y].ordinal() == 0 && pieces[x+1][y-1].ordinal() == 2 && pieces[x+2][y-2].ordinal() == 0) {\n\n countBdiagSoNe = countBdiagSoNe + jointset;\n }\n }\n if (x==3 && y==3){\n if (pieces[x][y].ordinal() == 1 && pieces[x+1][y-1].ordinal() == 1 && pieces[x+2][y-2].ordinal() == 0) {\n\n countWdiagSoNe = countWdiagSoNe + disjointset;\n }\n if (pieces[x][y].ordinal() == 0 && pieces[x+1][y-1].ordinal() == 0 && pieces[x+2][y-2].ordinal() == 1) {\n\n countBdiagSoNe = countBdiagSoNe + disjointset;\n }\n if (pieces[x][y].ordinal() == 1 && pieces[x+1][y-1].ordinal() == 2 && pieces[x+2][y-2].ordinal() == 1) {\n\n countWdiagSoNe = countWdiagSoNe +jointset;\n }\n else if (pieces[x][y].ordinal() == 0 && pieces[x+1][y-1].ordinal() == 2 && pieces[x+2][y-2].ordinal() == 0) {\n\n countBdiagSoNe = countBdiagSoNe + jointset;\n }\n }\n //System.out.println(x + \" y:\" + y +\" Black consec DIAGOMAAL \" + countBdiagSoNe + \"White consec hori \" + countWdiagSoNe);\n y--;\n\n\n }\n if (a==1 && blacks == 4 && whites==1){\n countBdiagSoNe += unwinnable;\n }\n /*if (blacks == 3 && whites==3){\n countBdiagSoNe += unwinnable;\n countWdiagSoNe += unwinnable;\n }*/\n if (a==1&& blacks == 1 && whites==4){\n countWdiagSoNe += unwinnable;\n }\n //System.out.println(\"Black consec vert \" + countBdiagSoNe + \"White consec \" + countWdiagSoNe);\n int valuew = consecutivevalue(countWdiagSoNe);\n whitescore = whitescore +valuew;\n int valueb = consecutivevalue(countBdiagSoNe);\n blackscore = blackscore + valueb;\n //System.out.println(\"Black consec DIAGOMAAL \" + valueb + \" \" + countBdiagSoNe + \"White consec hori \" + valuew + \" \" + countWdiagSoNe);\n }\n\n //NorthWest S EAST Left\n for (int a = 0; a <5 ; a++) {\n int countWdiagNoSe = 0;\n int countBdiagNoSe = 0;\n int y=0;\n int blacks = 0;\n int whites = 0;\n\n for (int x = a; x <5 ; x++) {\n //System.out.println(pbs+\"x \" + x+ \" y \" +y);\n int r = pieces[x][y].ordinal();\n int s =pieces[x+1][y+1].ordinal();\n //System.out.println(\"x \" + x+ \" y \" +y);\n //System.out.println(\"first \" + r+ \" second \" +s);\n if (pieces[x][y].ordinal() == 0) {\n blacks++;\n //countBdiagNoSe = countBdiagNoSe +2;\n }\n if (pieces[x][y].ordinal() == 1) {\n whites++;\n //countWdiagNoSe = countWdiagNoSe +2;\n }\n\n if (pieces[x][y].ordinal() == 0 && pieces[x+1][y+1].ordinal() == 0 ) {\n\n countBdiagNoSe = countBdiagNoSe +consecvalue;\n }\n\n else if (pieces[x][y].ordinal() == 0 && pieces[x+1][y+1].ordinal() == 2 ) {\n\n countBdiagNoSe = countBdiagNoSe + blankspaceconsec;\n }\n\n else if (pieces[x][y].ordinal() == 2 && pieces[x+1][y+1].ordinal() == 0 ) {\n\n countBdiagNoSe = countBdiagNoSe + blankspaceconsec;\n }\n\n else if (pieces[x][y].ordinal() == 1 && pieces[x+1][y+1].ordinal() == 1 ) {\n\n countWdiagNoSe = countWdiagNoSe +consecvalue;\n }\n\n else if (pieces[x][y].ordinal() == 1 && pieces[x+1][y+1].ordinal() == 2 ) {\n\n countWdiagNoSe= countWdiagNoSe + blankspaceconsec;\n }\n\n else if (pieces[x][y].ordinal() == 2 && pieces[x+1][y+1].ordinal() == 1 ) {\n\n countWdiagNoSe = countWdiagNoSe + blankspaceconsec;\n }\n\n if (x==0 && y==0){\n if (pieces[x][y].ordinal() == 1 && pieces[x+1][y+1].ordinal() == 1 && pieces[x+2][y+2].ordinal() == 0) {\n\n countWdiagNoSe = countWdiagNoSe + disjointset;\n }\n if (pieces[x][y].ordinal() == 0 && pieces[x+1][y+1].ordinal() == 0 && pieces[x+2][y+2].ordinal() == 1) {\n\n countBdiagNoSe = countBdiagNoSe + disjointset;\n }\n if (pieces[x][y].ordinal() == 1 && pieces[x+1][y+1].ordinal() == 2 && pieces[x+2][y+2].ordinal() == 1) {\n\n countWdiagNoSe = countWdiagNoSe + jointset;\n }\n else if (pieces[x][y].ordinal() == 0 && pieces[x+1][y+1].ordinal() == 2 && pieces[x+2][y+2].ordinal() == 0) {\n\n countBdiagNoSe = countBdiagNoSe + jointset;\n }\n }\n if (x==1 && y==1){\n if (pieces[x][y].ordinal() == 1 && pieces[x+1][y+1].ordinal() == 1 && pieces[x+2][y+2].ordinal() == 0) {\n\n countWdiagNoSe = countWdiagNoSe + disjointset;\n }\n if (pieces[x][y].ordinal() == 0 && pieces[x+1][y+1].ordinal() == 0 && pieces[x+2][y+2].ordinal() == 1) {\n\n countBdiagNoSe = countBdiagNoSe + disjointset;\n }\n if (pieces[x][y].ordinal() == 1 && pieces[x+1][y+1].ordinal() == 2 && pieces[x+2][y+2].ordinal() == 1) {\n\n countWdiagNoSe = countWdiagNoSe + jointset;\n }\n else if (pieces[x][y].ordinal() == 0 && pieces[x+1][y+1].ordinal() == 2 && pieces[x+2][y+2].ordinal() == 0) {\n\n countBdiagNoSe = countBdiagNoSe + jointset;\n }\n }\n if (x==2 && y==2){\n if (pieces[x][y].ordinal() == 1 && pieces[x+1][y+1].ordinal() == 1 && pieces[x+2][y+2].ordinal() == 0) {\n\n countWdiagNoSe = countWdiagNoSe + disjointset;\n }\n if (pieces[x][y].ordinal() == 0 && pieces[x+1][y+1].ordinal() == 0 && pieces[x+2][y+2].ordinal() == 1) {\n\n countBdiagNoSe = countBdiagNoSe + disjointset;\n }\n if (pieces[x][y].ordinal() == 1 && pieces[x+1][y+1].ordinal() == 2 && pieces[x+2][y+2].ordinal() == 1) {\n\n countWdiagNoSe = countWdiagNoSe + jointset;\n }\n else if (pieces[x][y].ordinal() == 0 && pieces[x+1][y+1].ordinal() == 2 && pieces[x+2][y+2].ordinal() == 0) {\n\n countBdiagNoSe = countBdiagNoSe + jointset;\n }\n }\n if (x==3 && y==3){\n if (pieces[x][y].ordinal() == 1 && pieces[x+1][y+1].ordinal() == 1 && pieces[x+2][y+2].ordinal() == 0) {\n\n countWdiagNoSe = countWdiagNoSe + disjointset;\n }\n if (pieces[x][y].ordinal() == 0 && pieces[x+1][y+1].ordinal() == 0 && pieces[x+2][y+2].ordinal() == 1) {\n\n countBdiagNoSe = countBdiagNoSe + disjointset;\n }\n if (pieces[x][y].ordinal() == 1 && pieces[x+1][y+1].ordinal() == 2 && pieces[x+2][y+2].ordinal() == 1) {\n\n countWdiagNoSe = countWdiagNoSe + jointset;\n }\n else if (pieces[x][y].ordinal() == 0 && pieces[x+1][y+1].ordinal() == 2 && pieces[x+2][y+2].ordinal() == 0) {\n\n countBdiagNoSe = countBdiagNoSe + jointset;\n }\n }\n if (x==1 && y==0){\n if (pieces[x][y].ordinal() == 1 && pieces[x+1][y+1].ordinal() == 1 && pieces[x+2][y+2].ordinal() == 0) {\n\n countWdiagNoSe = countWdiagNoSe + disjointset;\n }\n if (pieces[x][y].ordinal() == 0 && pieces[x+1][y+1].ordinal() == 0 && pieces[x+2][y+2].ordinal() == 1) {\n\n countBdiagNoSe = countBdiagNoSe + disjointset;\n }\n if (pieces[x][y].ordinal() == 1 && pieces[x+1][y+1].ordinal() == 2 && pieces[x+2][y+2].ordinal() == 1) {\n\n countWdiagNoSe = countWdiagNoSe + jointset;\n }\n else if (pieces[x][y].ordinal() == 0 && pieces[x+1][y+1].ordinal() == 2 && pieces[x+2][y+2].ordinal() == 0) {\n\n countBdiagNoSe = countBdiagNoSe + jointset;\n }\n }\n if (x==2 && y==1){\n if (pieces[x][y].ordinal() == 1 && pieces[x+1][y+1].ordinal() == 1 && pieces[x+2][y+2].ordinal() == 0) {\n\n countWdiagNoSe = countWdiagNoSe + disjointset;\n }\n if (pieces[x][y].ordinal() == 0 && pieces[x+1][y+1].ordinal() == 0 && pieces[x+2][y+2].ordinal() == 1) {\n\n countBdiagNoSe = countBdiagNoSe + disjointset;\n }\n if (pieces[x][y].ordinal() == 1 && pieces[x+1][y+1].ordinal() == 2 && pieces[x+2][y+2].ordinal() == 1) {\n\n countWdiagNoSe = countWdiagNoSe + jointset;\n }\n else if (pieces[x][y].ordinal() == 0 && pieces[x+1][y+1].ordinal() == 2 && pieces[x+2][y+2].ordinal() == 0) {\n\n countBdiagNoSe = countBdiagNoSe + jointset;\n }\n }\n if (x==3 && y==2){\n if (pieces[x][y].ordinal() == 1 && pieces[x+1][y+1].ordinal() == 1 && pieces[x+2][y+2].ordinal() == 0) {\n\n countWdiagNoSe = countWdiagNoSe + disjointset;\n }\n if (pieces[x][y].ordinal() == 0 && pieces[x+1][y+1].ordinal() == 0 && pieces[x+2][y+2].ordinal() == 1) {\n\n countBdiagNoSe = countBdiagNoSe + disjointset;\n }\n if (pieces[x][y].ordinal() == 1 && pieces[x+1][y+1].ordinal() == 2 && pieces[x+2][y+2].ordinal() == 1) {\n\n countWdiagNoSe = countWdiagNoSe + jointset;\n }\n else if (pieces[x][y].ordinal() == 0 && pieces[x+1][y+1].ordinal() == 2 && pieces[x+2][y+2].ordinal() == 0) {\n\n countBdiagNoSe = countBdiagNoSe + jointset;\n }\n }\n y++;\n\n\n }\n //System.out.println(\"Black consec vert \" + countBdiagSoNe + \"White consec \" + countWdiagSoNe);\n if (blacks == 4 && whites==2){\n countBdiagNoSe += unwinnable;\n }\n if (a==1 && blacks == 4 && whites==1){\n countBdiagNoSe += unwinnable;\n }\n if (blacks == 3 && whites==3){\n countBdiagNoSe += unwinnable;\n countWdiagNoSe += unwinnable;\n }\n if (blacks == 2 && whites==4){\n countWdiagNoSe += unwinnable;\n }\n if (a==1 && blacks == 1 && whites==4){\n countWdiagNoSe += unwinnable;\n }\n\n int valuew = consecutivevalue(countWdiagNoSe);\n whitescore = whitescore +valuew;\n int valueb = consecutivevalue( countBdiagNoSe);\n blackscore = blackscore + valueb;\n //System.out.println(\"Black consec DIAGOMAAL \" + valueb + \" \" + countBdiagNoSe + \"White consec hori \" + valuew + \" \" + countWdiagNoSe);\n }\n //NorthWest S EAST Right\n for (int a = 1; a <5 ; a++) {\n int countWdiagNoSe = 0;\n int countBdiagNoSe = 0;\n int x=0;\n int blacks = 0;\n int whites = 0;\n\n for (int y = a; y <5 ; y++) {\n //System.out.println(\"x \" + x+ \" y \" +y);\n int r = pieces[x][y].ordinal();\n int s =pieces[x+1][y+1].ordinal();\n //System.out.println(\"x \" + x+ \" y \" +y);\n //System.out.println(\"first \" + r+ \" second \" +s);\n if (pieces[x][y].ordinal() == 0 ) {\n blacks++;\n //countBdiagNoSe = countBdiagNoSe +2;\n }\n if (pieces[x][y].ordinal() == 1) {\n whites++;\n //countWdiagNoSe = countWdiagNoSe +2;\n }\n\n if (pieces[x][y].ordinal() == 0 && pieces[x+1][y+1].ordinal() == 0 ) {\n\n countBdiagNoSe = countBdiagNoSe +consecvalue;\n }\n\n else if (pieces[x][y].ordinal() == 0 && pieces[x+1][y+1].ordinal() == 2 ) {\n\n countBdiagNoSe = countBdiagNoSe + blankspaceconsec;\n }\n\n else if (pieces[x][y].ordinal() == 2 && pieces[x+1][y+1].ordinal() == 0 ) {\n\n countBdiagNoSe = countBdiagNoSe + blankspaceconsec;\n }\n\n else if (pieces[x][y].ordinal() == 1 && pieces[x+1][y+1].ordinal() == 1 ) {\n\n countWdiagNoSe = countWdiagNoSe +consecvalue;\n }\n\n else if (pieces[x][y].ordinal() == 1 && pieces[x+1][y+1].ordinal() == 2 ) {\n\n countWdiagNoSe= countWdiagNoSe + blankspaceconsec;\n }\n\n else if (pieces[x][y].ordinal() == 2 && pieces[x+1][y+1].ordinal() == 1 ) {\n\n countWdiagNoSe = countWdiagNoSe + blankspaceconsec;\n }\n\n if (x==0 && y==1){\n if (pieces[x][y].ordinal() == 1 && pieces[x+1][y+1].ordinal() == 1 && pieces[x+2][y+2].ordinal() == 0) {\n\n countWdiagNoSe = countWdiagNoSe + disjointset;\n }\n if (pieces[x][y].ordinal() == 0 && pieces[x+1][y+1].ordinal() == 0 && pieces[x+2][y+2].ordinal() == 1) {\n\n countBdiagNoSe = countBdiagNoSe + disjointset;\n }\n if (pieces[x][y].ordinal() == 1 && pieces[x+1][y+1].ordinal() == 2 && pieces[x+2][y+2].ordinal() == 1) {\n\n countWdiagNoSe = countWdiagNoSe + jointset;\n }\n else if (pieces[x][y].ordinal() == 0 && pieces[x+1][y+1].ordinal() == 2 && pieces[x+2][y+2].ordinal() == 0) {\n\n countBdiagNoSe = countBdiagNoSe + jointset;\n }\n }\n if (x==1 && y==2){\n if (pieces[x][y].ordinal() == 1 && pieces[x+1][y+1].ordinal() == 1 && pieces[x+2][y+2].ordinal() == 0) {\n\n countWdiagNoSe = countWdiagNoSe + disjointset;\n }\n if (pieces[x][y].ordinal() == 0 && pieces[x+1][y+1].ordinal() == 0 && pieces[x+2][y+2].ordinal() == 1) {\n\n countBdiagNoSe = countBdiagNoSe + disjointset;\n }\n if (pieces[x][y].ordinal() == 1 && pieces[x+1][y+1].ordinal() == 2 && pieces[x+2][y+2].ordinal() == 1) {\n\n countWdiagNoSe = countWdiagNoSe + jointset;\n }\n else if (pieces[x][y].ordinal() == 0 && pieces[x+1][y+1].ordinal() == 2 && pieces[x+2][y+2].ordinal() == 0) {\n\n countBdiagNoSe = countBdiagNoSe + jointset;\n }\n }\n if (x==2 && y==3){\n if (pieces[x][y].ordinal() == 1 && pieces[x+1][y+1].ordinal() == 1 && pieces[x+2][y+2].ordinal() == 0) {\n\n countWdiagNoSe = countWdiagNoSe + disjointset;\n }\n if (pieces[x][y].ordinal() == 0 && pieces[x+1][y+1].ordinal() == 0 && pieces[x+2][y+2].ordinal() == 1) {\n\n countBdiagNoSe = countBdiagNoSe + disjointset;\n }\n if (pieces[x][y].ordinal() == 1 && pieces[x+1][y+1].ordinal() == 2 && pieces[x+2][y+2].ordinal() == 1) {\n\n countWdiagNoSe = countWdiagNoSe + jointset;\n }\n else if (pieces[x][y].ordinal() == 0 && pieces[x+1][y+1].ordinal() == 2 && pieces[x+2][y+2].ordinal() == 0) {\n\n countBdiagNoSe = countBdiagNoSe + jointset;\n }\n }\n x++;\n\n\n }\n if (a==1 && blacks == 1 && whites==4){\n countWdiagNoSe += unwinnable;\n }\n if (a==1 && blacks == 4 && whites==1){\n countBdiagNoSe += unwinnable;\n }\n //System.out.println(\"Black consec vert \" + countBdiagSoNe + \"White consec \" + countWdiagSoNe);\n int valuew = consecutivevalue(countWdiagNoSe);\n whitescore = whitescore +valuew;\n int valueb = consecutivevalue( countBdiagNoSe);\n blackscore = blackscore + valueb;\n //System.out.println(\"Black consec DIAGOMAAL \" + valueb + \" \" + countBdiagNoSe + \"White consec hori \" + valuew + \" \" + countWdiagNoSe);\n }\n\n\n\n\n\n //System.out.println(\"Black consec score \" + blackscore +\" \" + \"White consec scpre \" + whitescore);\n //System.out.println(\"max player is \" + maxplayer + \"My colour is \" + mycolour);\n int i = -123456789;\n if (mycolour == 0){\n //System.out.println(blackscore-whitescore +\" I am black\");\n\n\n i= blackscore-whitescore;\n return i;\n\n }\n else {\n //System.out.println(whitescore-blackscore +\" I am white\");\n i= whitescore-blackscore;\n return i;\n }\n /*\n if(i>0 && i<1000){\n return 100; //i*2;\n }\n else if(i>=1000 && i<10000){\n return 1000; //i*10;\n }\n else if(i>=10000 && i<100000){\n return 10000; //i*50;\n }\n else if(i>=100000){\n return 100000;//i*500;\n }\n else if(i<=0 && i>-100){\n return -100; //i*2;\n }\n else if(i<=-100 && i>-1000){\n return -1000; //i*10;\n }\n else if(i<=-1000 && i>-10000){\n return -10000; //i*50;\n }\n else if(i<=0 && i>-100000){\n return -100000;//i*500;\n }\n\n */\n\n\n }", "public static double averagePPG(int[][] scores, int p)\n {\n \n int row = p; \n double total = 0; \n \n //the column index changes, but the row index stays the same\n for(int col = 0; col < scores[row].length; col++)\n {\n total = total + scores[row][col]; \n }\n \n double average = (total / scores[row].length); //average the total for that row (player)\n return average;\n \n }", "public static int[] calculateScores(String[] resultsToCheck)\n\t{\n\t\tint[] scores = new int[entrants.length];\n\t\t//results = checkResults(preResults);\n\t\tfor(int i = 0; i < resultsToCheck.length; i++)\n\t\t{\n\t\t\tif(!resultsToCheck[i].equals(\"\"))\n\t\t\t{\n\t\t\t\t//for each player\n\t\t\t\tfor(int j = 0; j < entrants.length; j++)\n\t\t\t\t{\n\t\t\t\t\t//if the player's pick for the match is equal to the result\n\t\t\t\t\tif(allPicks.get(j)[i].equals(resultsToCheck[i]))\n\t\t\t\t\t{\n\t\t\t\t\t\t//increase their points by the value of the match\n\t\t\t\t\t\tscores[j] += values[i];\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}else{\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\treturn scores;\n\t}", "public double getAverageExtraPacksByWins(int wins) {\n return statistics.getAvgExtraPacksByWins().get(wins);\n }", "public void scoresForGameModes() {\r\n \tCalculateScore myScore = new CalculateScore();\r\n \tthis.score = myScore.giveScore();\r\n \tif (gamemode == 1) {\r\n \t\treturn;\r\n \t}\r\n \tif (gamemode ==2 ) {\r\n \t\tthis.score = this.score - (10 * (currentGraph.getCNumber() - set.size()));\r\n \t}\r\n \tif (gamemode ==3) {\r\n \t\tthis.score = this.score - (10 * (currentGraph.getCNumber() -set.size()));\r\n \t}\r\n }", "public static void calculateFitness(StrategyPool sp)\r\n\t{\r\n\t\tfor(int i = 0; i<sp.pool.size() ; i++)\r\n\t\t{\r\n\t\t\tfor(int j = 0; j <sp.pool.size() ; j++)\r\n\t\t\t{\r\n\t\t\t\tif(i == j)\r\n\t\t\t\t\t; //do nothing\r\n\t\t\t\telse\r\n\t\t\t\t{\r\n//\t\t\t\t\tSystem.out.println(\"Playing Strategy \" +i +\" against \" +j );\r\n\t\t\t\t\tStrategy p1 = sp.pool.get(i);\r\n\t\t\t\t\tStrategy p2 = sp.pool.get(j);\r\n\t\t\t\t\tint winner = 0;\r\n\t\t\t\t\tfor(int k = 0; k<1000 ; k++)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\twinner = new Game().play(p1,p2);\r\n\t\t\t\t\t\t\tif(winner == 0)\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\tp1.addDrawCount();\r\n\t\t\t\t\t\t\t\tp2.addDrawCount();\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\telse if(winner == 1)\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\tp1.addWinCount();\r\n\t\t\t\t\t\t\t\tp2.addLostCount();\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\telse if(winner ==2)\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\tp1.addLostCount();\r\n\t\t\t\t\t\t\t\tp2.addWinCount();\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\t//switch positions\r\n\t\t\t\t\tp2 = sp.pool.get(i);\r\n\t\t\t\t\tp1 = sp.pool.get(j);\r\n\r\n//\t\t\t\t\tSystem.out.println(\"Playing Strategy \" +j +\" against \" +i );\r\n\t\t\t\t\t\r\n\t\t\t\t\tfor(int k = 0; k<1000 ; k++)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\twinner = new Game().play(p1,p2);\r\n\t\t\t\t\t\tif(winner == 0)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tp1.addDrawCount();\r\n\t\t\t\t\t\t\tp2.addDrawCount();\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse if(winner == 1)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tp1.addWinCount();\r\n\t\t\t\t\t\t\tp2.addLostCount();\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse if(winner ==2)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tp1.addLostCount();\r\n\t\t\t\t\t\t\tp2.addWinCount();\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "private int winnerMoves(int combinedMoveCounter) {\n return (int) (Math.ceil((double) combinedMoveCounter / 2.0));\n }", "private void figureOutProbability() {\n\t\tMysqlDAOFactory mysqlFactory = (MysqlDAOFactory) DAOFactory\n\t\t\t\t.getDAOFactory(DAOFactory.MYSQL);\n\n\t\tstaticPr = new StaticProbability(trialId);\n\t\tstatisticPr = new StatisticProbability(trialId);\n\t\tstaticProbability = staticPr.getProbability();\n\t\tstatisticProbability = statisticPr.getProbability();\n\n\t\tfor (Entry<Integer, BigDecimal> entry : staticProbability.entrySet()) {\n\t\t\ttotalProbability.put(\n\t\t\t\t\tentry.getKey(),\n\t\t\t\t\tentry.getValue().add(statisticProbability.get(entry.getKey())).setScale(2));\n\t\t}\n\n\t\tBigDecimal summaryProbability = BigDecimal.valueOf(0);\n\t\tfor (Entry<Integer, BigDecimal> entry : totalProbability.entrySet()) {\n\t\t\tsummaryProbability = summaryProbability.add(entry.getValue());\n\t\t}\n\t\t\n\t\t// figures out probability\n\t\tfor (Entry<Integer, BigDecimal> entry : totalProbability.entrySet()) {\n\t\t\tentry.setValue(entry.getValue().divide(summaryProbability, 2,\n\t\t\t\t\tBigDecimal.ROUND_HALF_UP));\n\t\t}\n\t\tlog.info(\"Total probability -> \" + totalProbability);\n\t\t\n\t\t// figures out and sets margin\n\t\tfor (Entry<Integer, BigDecimal> entry : totalProbability.entrySet()) {\n\t\t\tBigDecimal probability = entry.getValue();\n\t\t\tBigDecimal winCoefficient = (BigDecimal.valueOf(1.).divide(\n\t\t\t\t\tprobability, 2, BigDecimal.ROUND_HALF_UP))\n\t\t\t\t\t.multiply(BigDecimal.valueOf(1.).subtract(Constants.MARGIN));\n\t\t\tentry.setValue(winCoefficient.setScale(2, BigDecimal.ROUND_HALF_UP));\n\t\t}\n\t\tlog.info(\"Winning coefficient -> \" + totalProbability);\n\t\t\n\t\t// updates info in db\n\t\tTrialHorseDAO trialHorseDAO = mysqlFactory.getTrialHorseDAO();\n\t\tTrialHorseDTO trialHorseDTO = null;\n\t\tfor(Entry<Integer, BigDecimal> entry : totalProbability.entrySet()){\n\t\t\ttrialHorseDTO = trialHorseDAO.findTrialHorseByTrialIdHorseId(trialId, entry.getKey());\n\t\t\ttrialHorseDTO.setWinCoefficient(entry.getValue());\n\t\t\ttrialHorseDAO.updateTrialHorseInfo(trialHorseDTO);\n\t\t}\t\n\t}", "public void calcTroops() {\r\n\t\t//Based on how many troops the player owns this will add to their spendage with a minimum of 2\r\n\t\ttroopSpendage = (players.get(turnCounter).getCountries().size()) / 3;\r\n\t\tif (troopSpendage < 3) {\r\n\t\t\ttroopSpendage = 3;\r\n\t\t}\r\n\t\t//If a player owns an entire continent, they will get a continent bonus to their spendage\r\n\t\t//these counters record how much of a continent the player owns\r\n\t\tint Kjersia = 0;\r\n\t\tint Estoveria = 0;\r\n\t\tint Moa = 0;\r\n\t\tint Shilov = 0;\r\n\t\tint Tormudd = 0;\r\n\t\tint Eschilles = 0;\r\n\t\t\r\n\t\t//increment the corresponding continent counter based on the continent value stored in the country objects the player owns\r\n\t\tfor (Country c:players.get(turnCounter).getCountries()) {\r\n\t\t\tswitch (c.getContinent()) {\r\n\t\t\tcase \"Kjersia\": Kjersia++;\r\n\t\t\t\tbreak;\r\n\t\t\tcase \"Estoveria\": Estoveria++;\r\n\t\t\t\tbreak;\r\n\t\t\tcase \"Moa\": Moa++;\r\n\t\t\t\tbreak;\r\n\t\t\tcase \"Shilov\": Shilov ++;\r\n\t\t\t\tbreak;\r\n\t\t\tcase \"Tormudd\": Tormudd++;\r\n\t\t\t\tbreak;\r\n\t\t\tcase \"Eschilles\": Eschilles++;\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\t\t//If the player owns all countries in a continent (each continent has different numbers of countries), give them a corresponding troop bonus as decided by the rules of the game\r\n\t\tif (Kjersia == 4) {\r\n\t\t\ttroopSpendage += 2;\r\n\t\t}\r\n\t\tif (Estoveria == 8) {\r\n\t\t\ttroopSpendage += 5;\r\n\t\t}\r\n\t\tif (Moa == 9) {\r\n\t\t\ttroopSpendage += 6;\r\n\t\t}\r\n\t\tif (Shilov == 4) {\r\n\t\t\ttroopSpendage += 3;\r\n\t\t}\r\n\t\tif (Tormudd == 5) {\r\n\t\t\ttroopSpendage += 3;\r\n\t\t}\r\n\t\tif (Eschilles == 12) {\r\n\t\t\ttroopSpendage += 7;\r\n\t\t}\r\n\r\n\t\t//If a player owns the card and owns the coresponding country on that card they get one extra troop\r\n\t\tfor(Card C: players.get(turnCounter).getCards()) \r\n\t\t\tfor(Country co: players.get(turnCounter).getCountries())\r\n\t\t\t\tif (C.getCountry().equals(co.getName()))\r\n\t\t\t\t\ttroopSpendage++;\t\t\r\n\t\t\r\n\t\t//Updates the display of how many troops the player has to deploy\r\n\t\ttroopsToDeploy.setText(\"Troops to Deploy: \" + troopSpendage);\r\n\t}", "public int totalGames() {\n return wins + losses + draws;\n }", "private static int getAverageOfPerson(final Collection<Person> persons, Function<Person, Integer> func) {\n BigDecimal sum = BigDecimal.ZERO;\n for (Person p: persons) {\n sum = sum.add(new BigDecimal(func.apply(p)));\n }\n return sum.divide(new BigDecimal(persons.size()), RoundingMode.DOWN).intValue();\n }", "public int play(NumberGame game) {\n\t\tint max = game.getUpperBound();\n\t\tint min = 0;\n\t\tint ans;\n\t\tboolean check = false;\n\t\tdo {\n\t\t\tans = (max + min) / 2;\n\t\t\tcheck = game.guess(ans);\n\t\t\tif (game.getMessage().contains(\"small\")) min = ans;\n\t\t\telse if (game.getMessage().contains(\"large\")) max = ans;\n\t\t} while (!check);\n\t\treturn ans;\n\t}", "private void calculateMode(){\r\n float[][] tally = new float[2][2];\r\n //The \"best\" so far\r\n tally[0][0] = 0; //AER\r\n tally[0][1] = 0; //amount\r\n //Works out the total\r\n tally[1][0] = 0; //AER\r\n tally[1][1] = 0; //amount\r\n\r\n for(Account aAccount: theAccounts){\r\n if(aAccount.getAer() == tally[1][0]){\r\n tally[1][1]++;\r\n }\r\n else{\r\n if(tally[1][1]>tally[0][1]){\r\n tally[0][0] = tally[1][0];\r\n tally[0][1] = tally[1][1];\r\n\r\n }\r\n tally[1][0] = aAccount.getAer();\r\n tally[1][1] = 0;\r\n }\r\n }\r\n float averageAER = tally[0][0];\r\n float averageBond = startingBonds + (startingBonds*averageAER/100);\r\n\r\n Account averageAccount = new Account(startingBonds,averageBond,averageAER);\r\n System.out.println(averageAccount.toString());\r\n\r\n }", "public static double playerScore(Player player, State state) {\n\t\tdouble playerScore = 0;\n\t\tfor(int row = 0; row < state.getGrid().length; row++) {\n\t\t\tfor(int col = 0; col < state.getGrid()[row].length; col++) {\n\t\t\t\tif(state.getGrid()[row][col] == player.getPiece()) {\n\t\t\t\t\tplayerScore += score(player.getPiece(), state, row, col);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn playerScore;\n\t}", "public int getResult() {\n whiteTotal = 0;\n blackTotal = 0;\n rest = 0;\n for (int row = 0; row < BOARD_SIZE; row++) {\n for (int column = 0; column < BOARD_SIZE; column++) {\n if (board[row][column] == BLACK) {\n blackTotal++;\n } else if (board[row][column] == WHITE) {\n whiteTotal++;\n } else {\n rest++;\n }\n }\n }\n int winner = -1;\n if (rest == 0) {\n if (blackTotal < whiteTotal) {\n winner = 1;\n } else if (blackTotal > whiteTotal) {\n winner = 2;\n } else {\n winner = 0;\n }\n }\n\n if (blackTotal == 0 || whiteTotal == 0) {\n\n if (blackTotal != 0) {\n winner = 2;\n } else if (whiteTotal != 0) {\n winner = 1;\n }\n }\n\n if (getValidateMoveList('W', 'B').isEmpty() && getValidateMoveList('B', 'W').isEmpty()) {\n\n if (blackTotal < whiteTotal) {\n winner = 1;\n } else if (blackTotal > whiteTotal) {\n winner = 2;\n } else {\n winner = 0;\n }\n }\n return winner;\n }", "private int evaluateState() {\r\n\r\n\t\t// add up score\r\n\t\t//\r\n\t\tint scoreWhite = 0;\r\n\t\tint scoreBlack = 0;\r\n\t\tfor (Piece piece : this.chessGame.getPieces()) {\r\n\t\t\tif(piece.getColor() == Piece.COLOR_BLACK){\r\n\t\t\t\tscoreBlack +=\r\n\t\t\t\t\tgetScoreForPieceType(piece.getType());\r\n\t\t\t\tscoreBlack +=\r\n\t\t\t\t\tgetScoreForPiecePosition(piece.getRow(),piece.getColumn());\r\n\t\t\t}else if( piece.getColor() == Piece.COLOR_WHITE){\r\n\t\t\t\tscoreWhite +=\r\n\t\t\t\t\tgetScoreForPieceType(piece.getType());\r\n\t\t\t\tscoreWhite +=\r\n\t\t\t\t\tgetScoreForPiecePosition(piece.getRow(),piece.getColumn());\r\n\t\t\t}else{\r\n\t\t\t\tthrow new IllegalStateException(\r\n\t\t\t\t\t\t\"unknown piece color found: \"+piece.getColor());\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t// return evaluation result depending on who's turn it is\r\n\t\tint gameState = this.chessGame.getGameState();\r\n\t\t\r\n\t\tif( gameState == ChessGame.GAME_STATE_BLACK){\r\n\t\t\treturn scoreBlack - scoreWhite;\r\n\t\t\r\n\t\t}else if(gameState == ChessGame.GAME_STATE_WHITE){\r\n\t\t\treturn scoreWhite - scoreBlack;\r\n\t\t\r\n\t\t}else if(gameState == ChessGame.GAME_STATE_END_WHITE_WON\r\n\t\t\t\t|| gameState == ChessGame.GAME_STATE_END_BLACK_WON){\r\n\t\t\treturn Integer.MIN_VALUE + 1;\r\n\t\t\r\n\t\t}else{\r\n\t\t\tthrow new IllegalStateException(\"unknown game state: \"+gameState);\r\n\t\t}\r\n\t}", "public void average(){\n\t\tfor(PlayerWealthDataAccumulator w : _wealthData.values()){\n\t\t\tw.average();\n\t\t}\n\t}", "public static int greedy(int[] dice){\n int[] count = new int[5];\n // so inversely the variable for each score => count[score-1]\n // I handled the count process with a foreach loop\n // it iterates the values of the given array, checks scores and assigns count using a switch case\n for (int score: dice) {\n switch (score){\n case 1 -> count[0]++;\n case 2 -> count[1]++;\n case 3 -> count[2]++;\n case 4 -> count[3]++;\n case 5 -> count[4]++;\n case 6 -> count[5]++;\n }\n } \n\n // > CHECKING IF THERE'S A COUNT OF 3 AND ASSIGNING POINTS\n // A variable to hold the points is needed\n int points = 0;\n //check if there is a count of 3 in the count array, using a fori loop to keep track of the score value being iterated\n for (int i = 0, score = i+1 ; i < count.length; i++) {\n //if found\n if(count[i] > 2){\n // assign points\n // * points system for 3 occurrences\n // Three 1's => 1000 points\n // Three 6's => 600 points\n // Three 5's => 500 points\n // Three 4's => 400 points\n // Three 3's => 300 points\n // - score 1's point is a special case\n // - for the rest, points awarded = score*100\n if(score == 1){\n points += 1000;\n count[i] -= 3;\n }else{\n points += (score *100);\n count[i] -= 3;\n }\n }\n }\n\n // > CHECKING IF THE SCORE 1 AND 5 HAVE OCCURRENCES > 0 AND ASSIGNING POINTS IF TRUE\n //if true\n if(count[0] > 0)\n points += (100* count[0]);\n if(count[4] > 0)\n points += (50 * count[4]);\n return points;\n }", "float getWinLossRatio();", "private int countWinnerScore(LinkedList<Integer> cards){\n int size = cards.size();\n return IntStream.range(0, size)\n .map(i -> cards.get(i) * (size - i))\n .sum();\n }", "private int countWinnerScore(LinkedList<Integer> cards){\n int size = cards.size();\n return IntStream.range(0, size)\n .map(i -> cards.get(i) * (size - i))\n .sum();\n }", "public float calcAverage(){\n if(totalReviews > 0)\n return (float) (totalScore*1.0/totalReviews);\n else return 0;\n }", "public float getAverageScore(GameModel startingState) {\n\n float totalScore = 0;\n for (int i = 0; i < NUM_SIMULATIONS; i++) {\n GameModel copy = GameModel.copyOf(startingState);\n copy.addNumber();\n totalScore += simulateAndGetScore(copy);\n }\n\n return totalScore / NUM_SIMULATIONS;\n }", "@Override\n public double findAverage() {\n double average = 0;\n for (Student key : map.keySet()) {\n average += map.get(key).getValue();\n }\n average /= map.keySet().size();\n return average;\n }", "private Map<StatusEnum, Integer> getStatsForResults(Map<String, StatusEnum> results) {\n Map<StatusEnum, Integer> result = new HashMap<>();\n int passed = 0;\n int failed = 0;\n int skipped = 0;\n int unfinished = 0;\n for (String key : results.keySet()) {\n switch (results.get(key)) {\n case PASSED:\n passed++;\n break;\n case SKIPPED:\n skipped++;\n break;\n case FAILED:\n failed++;\n break;\n case UNFINISHED:\n unfinished++;\n break;\n }\n }\n result.put(StatusEnum.PASSED, passed);\n result.put(StatusEnum.SKIPPED, skipped);\n result.put(StatusEnum.FAILED, failed);\n result.put(StatusEnum.UNFINISHED, unfinished);\n result.put(StatusEnum.TOTAL, passed + skipped + failed + unfinished);\n return result;\n }", "@Override\n protected double compareScoredCriteria(ScoredCriteriaMap wikiScoredCriteria) {\n double[] preferenceScores = ScoredCriteriaMap.unpackScores(wikiScoredCriteria);\n double[] wikiScores = ScoredCriteriaMap.unpackScores(this.getPreferenceScoredCriteriaMap());\n\n // Calculate the sum\n double sum = 0;\n for (int i = 0; i < Criterion.NUMBER_OF; i++) {\n sum = sum + (preferenceScores[i] - wikiScores[i]) * (preferenceScores[i] - wikiScores[i]);\n }\n return (1 / (1 + Math.sqrt(sum)));\n }", "public int checkWin() {\n\t\t// Check rows\n\t\tfor (int i = 0; i < 3; i++) {\n\t\t\tif (Math.abs(rowSum[i]) == 3) {\n\t\t\t\tover = true;\n\t\t\t\treturn rowSum[i] / Math.abs(rowSum[i]);\n\t\t\t}\n\t\t}\n\n\t\t// Check cols\n\t\tfor (int i = 0; i < 3; i++) {\n\t\t\tif (Math.abs(colSum[i]) == 3) {\n\t\t\t\tover = true;\n\t\t\t\treturn colSum[i] / Math.abs(colSum[i]);\n\t\t\t}\n\t\t}\n\n\t\t// Check diags\n\t\tfor (int i = 0; i < 2; i++) {\n\t\t\tif (Math.abs(diagSum[i]) == 3) {\n\t\t\t\tover = true;\n\t\t\t\treturn diagSum[i] / Math.abs(diagSum[i]);\n\t\t\t}\n\t\t}\n\n\t\treturn 0;\n\t}", "public void calculations(){\n\n int temp_size1 = fight_list.get(0).t1.members.size();\n int[] t1_counter = new int[temp_size1 + 1]; //counter for deaths: 0, 1, 2..., party size.\n float t1_avg = 0; //Average number of deaths.\n\n //We don't need to calculate for t2 right now, because t2 is just monsters.\n //temp_size = fight_list.get(0).t2.members.size();\n //int[] t2_counter = new int[temp_size + 1];\n\n for(FightResult fig : this.fight_list){\n int i = 0;\n while(i != fig.t1_deaths){\n i++;\n }\n t1_counter[i]++;\n t1_avg += fig.t1_deaths;\n }//end for\n\n System.out.println(t1_avg);\n System.out.println(Float.toString(t1_avg/fight_list.size()) + \" / \" + Integer.toString(temp_size1));\n\n String axis = \"# of deaths: \\t\";\n int axis_int = 0;\n String t1_results = \"Happened: \\t\";\n for(int i : t1_counter){\n axis += Integer.toString(axis_int++) + \"\\t\";\n t1_results += Integer.toString(i) + \"\\t\";\n }//end for\n System.out.println(axis);\n System.out.println(t1_results);\n\n float tpk_amount = t1_counter[temp_size1]; //by taking the size, we take the item at the end of the array. In this case, the number where everyone dies.\n tpk_amount = (tpk_amount/fight_list.size())*100;\n System.out.println(\"Probability of TPK: \" + Float.toString(tpk_amount) + \" %.\");\n\n System.out.println(\"\\n--------\\n\");\n }", "public void winAccountant()\r\n {\r\n switch (Win)\r\n {case 1: //A tie with scissors\r\n ties++; uSci++; cSci++;\r\n break;\r\n case 2: //A tie with paper\r\n ties++; uPap++; cPap++;\r\n break;\r\n case 3: //A tie with rock\r\n ties++; uRock++; cRock++;\r\n break;\r\n case 4: //A win for user with Scissors\r\n uWins++; uSci++; uSciW++;\r\n cPap++;\r\n break;\r\n case 5: //A win for user with Paper\r\n uWins++; uPap++; uPapW++;\r\n cRock++;\r\n break;\r\n case 6: //A win for user with Rock\r\n uWins++; uRock++; uRockW++;\r\n cSci++;\r\n break;\r\n case 7: //A win for Comp with Scissors\r\n cWins++; cSci++; cSciW++;\r\n uPap++;\r\n break;\r\n case 8: //A win for Comp with Paper\r\n cWins++; cPap++; cPapW++;\r\n uRock++;\r\n break;\r\n case 9: //A win for Comp with Rock\r\n cWins++; cRock++; cRockW++;\r\n uSci++;\r\n break;\r\n default: JOptionPane.showMessageDialog(null,\r\n \"Error: Unknown Win Value - WinCalc.winAccountant 207\", \r\n \"digiRPS - Error\", \r\n JOptionPane.ERROR_MESSAGE);\r\n break;}\r\n \r\n // Update the last three wins\r\n winThree=winTwo;\r\n winTwo=winOne;\r\n winOne=Win;\r\n \r\n }", "public int evaluateWinner() {\n int winner = -1; //-1 house, 0 tie, 1 player\n boolean playerBlackjack = false;\n\n //Player got winnable score\n if (playerScore <= 21) {\n\n //Dealer got a winnable score\n if (dealerScore <= 21) {\n\n //Dealer got blackjack\n if (dealerScore == 21) {\n //Player also got blackjack, tie\n if (playerScore == 21) {\n winner = 0;\n }\n //Player did not have blackjack, loses\n else {\n winner = -1;\n }\n }\n //Player got blackjack, but dealer did not\n else if (playerScore == 21) {\n playerBlackjack = true;\n winner = 1;\n }\n //Tie\n else if (dealerScore == playerScore) {\n winner = 0;\n }\n //Player scored higher than dealer, but did not get blackjack\n else if (playerScore > dealerScore) {\n winner = 1;\n }\n }\n //Dealer went over 21\n else {\n //If player got blackjack\n if (playerScore == 21) {\n playerBlackjack = true;\n }\n\n winner = 1;\n }\n }\n\n //House won\n if (winner == -1) {\n if (playerCash <= 0)\n restartGame();\n else\n return winner;\n }\n //Tie\n else if (winner == 0) {\n playerCash += playerBet;\n return winner;\n }\n //Player won\n else {\n if (playerBlackjack) {\n //Player won, give back original bet AND blackjack earnings\n playerCash += (playerBet + (playerBet * 1.5));\n } else {\n //Player won, give back bet AND earnings\n playerCash += (playerBet + playerBet);\n }\n\n return winner;\n }\n\n return winner;\n }", "double average();", "public static double runExperiment(Controller<MOVE> pacManController,Controller<EnumMap<GHOST,MOVE>> ghostController,int trials)\n {\n \tdouble avgScore=0;\n \t\n \tRandom rnd=new Random(0);\n\t\tGame game;\n\t\t\n\t\tfor(int i=0;i<trials;i++)\n\t\t{\n\t\t\tgame=new Game(rnd.nextLong());\n\t\t\t\n\t\t\twhile(!game.gameOver())\n\t\t\t{\n\t\t game.advanceGame(pacManController.getMove(game.copy(),System.currentTimeMillis()+DELAY),\n\t\t \t\tghostController.getMove(game.copy(),System.currentTimeMillis()+DELAY));\n\t\t\t}\n\t\t\t\n\t\t\tavgScore+=game.getScore();\n\t\t}\n\t\t\n\t\treturn avgScore/trials;\n }", "int score(Player player)\n\t{\n\t\treturn IntStream.range(0, state.size())\n\t\t\t.map(i -> state.get(i) == player.getId() ? (int) Math.pow(2, i) : 0)\n\t\t\t.reduce(0, (a, b) -> a + b);\n\t}", "public double heuristic(game Game){\n // int l[] = {0,1};\n // board b = Game.getBoard();\n // tic smallBoard = b.getState(l); \n \n /* if O wins the game */\n if(Game.getState() == 2){return 99;}\n \n /* X wins the game */\n if(Game.getState() == 1){return -99;}\n \n return 0;\n }", "@Override\n\tpublic void win() {\n\t\t\n\t\tfround[fighter1]++;\n\t fplatz[fighter1]=Math.round((float)fplatz[fighter1]/2); \n\t \n\t\tnextRound();\n\t}", "public static void results(int numGames, int totalGuesses, int bestGame) {\r\n System.out.println(\"Overall results:\");\r\n System.out.println(\" total games = \" + numGames);\r\n System.out.println(\" total guesses = \" + totalGuesses);\r\n System.out.println(\" guesses/game = \" + round1((double) totalGuesses / numGames));\r\n System.out.println(\" best game = \" + bestGame); \r\n }", "public static int gameOver(Node nd){\n\t\tint win;\n\t\tfor(int i=0; i<6; i++){\n\t\t\tfor(int j=0; j<7; j++){\n\t\t\t\tif((win = utilVert(nd,i,j)) != 0){\n\t\t\t\t\tif(win == -512)\n\t\t\t\t\t\treturn -512;\n\t\t\t\t\telse if(win == 512)\n\t\t\t\t\t\treturn 512;\n\t\t\t\t}\n\n\t\t\t\tif((win = utilHori(nd,i,j)) != 0){\n\t\t\t\t\tif(win == -512)\n\t\t\t\t\t\treturn -512;\n\t\t\t\t\telse if(win == 512)\n\t\t\t\t\t\treturn 512;\n\t\t\t\t}\n\n\t\t\t\tif((win = utilRDiag(nd,i,j)) != 0){\n\t\t\t\t\tif(win == -512)\n\t\t\t\t\t\treturn -512;\n\t\t\t\t\telse if(win == 512)\n\t\t\t\t\t\treturn 512;\n\t\t\t\t}\n\n\t\t\t\tif((win = utilLDiag(nd,i,j)) != 0){\n\t\t\t\t\tif(win == -512)\n\t\t\t\t\t\treturn -512;\n\t\t\t\t\telse if(win == 512)\n\t\t\t\t\t\treturn 512;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tif(fullBoard(nd))\n\t\t\treturn 1;\n\n\t\treturn 0;\n\t}", "public void gameOver() {\r\n\t\tSystem.out.println(\"[DEBUG LOG/Game.java] Game is over. Calculating points\");\r\n\t\tstatus = \"over\";\r\n\t\ttry {\r\n\t\t\tupdateBoard();\r\n\t\t} catch (FileNotFoundException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\tupdateEvents(false);\r\n\t\tEmbedBuilder embed = new EmbedBuilder();\r\n\t\tembed.setTitle(\"Game Results\");\r\n\t\tMap<Integer, Integer> scores = new HashMap<Integer, Integer>();\r\n\t\t\r\n\t\tfor (int i = 0; i < players.size(); i++) {\r\n\t\t\tscores.put(i,players.get(i).calculatePoints());\r\n\t\t\t// Utils.getName(players.get(i).getPlayerID(),guild)\r\n\t\t}\r\n\t\t\r\n\t\tList<Entry<Integer, Integer>> sortedList = sortScores(scores);\r\n\t\t\r\n\t\t// If tied, add highest artifact values\r\n\t\tif ((playerCount > 1) && (sortedList.get(0).getValue().equals(sortedList.get(1).getValue()))) {\r\n\t\t\tSystem.out.println(\"[DEBUG LOG/Game.java] Scores were tied\");\r\n\t\t\tint highestScore = sortedList.get(0).getValue();\r\n\t\t\tfor (Map.Entry<Integer, Integer> entry : sortedList) {\r\n\t\t\t\t// Only add artifacts to highest scores\r\n\t\t\t\tif (entry.getValue().equals(highestScore)) {\r\n\t\t\t\t\tscores.put(entry.getKey(),entry.getValue()+players.get(entry.getKey()).getHighestArtifactValue());\r\n\t\t\t\t\tplayers.get(entry.getKey()).setAddedArtifactValue(true);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t// Sort with added artifact values\r\n\t\tsortedList = sortScores(scores);\r\n\t\t\r\n\t\t// Assigns 1st, 2nd, 3rd\r\n\t\tfor (int i = 0; i < sortedList.size(); i++) {\r\n\t\t\tMap.Entry<Integer, Integer> entry = sortedList.get(i);\r\n\t\t\t// If tie, include artifact\r\n\t\t\tString name = Utils.getName(players.get(entry.getKey()).getPlayerID(),guild);\r\n\t\t\tif (players.get(entry.getKey()).getAddedArtifactValue()) {\r\n\t\t\t\tint artifactValue = players.get(entry.getKey()).getHighestArtifactValue();\r\n\t\t\t\tembed.addField(Utils.endGamePlaces[i],\"**\"+name+\"** - ``\"+(entry.getValue()-artifactValue)+\" (\"+artifactValue+\")``\",true);\r\n\t\t\t} else {\r\n\t\t\t\tembed.addField(Utils.endGamePlaces[i],\"**\"+name+\"** - ``\"+entry.getValue()+\"``\",true);\r\n\t\t\t}\r\n\t\t}\r\n\t\tembed.setFooter(\"Credit to Renegade Game Studios\", null);\r\n\t\tgameChannel.sendMessage(embed.build()).queueAfter(dragonAttackingDelay+3000,TimeUnit.MILLISECONDS);\r\n\t\t\r\n\t\tGlobalVars.remove(this);\r\n\t}" ]
[ "0.6315689", "0.6079832", "0.593474", "0.5844353", "0.58284974", "0.57730424", "0.5708726", "0.5637383", "0.55643934", "0.5517709", "0.55023086", "0.54433507", "0.54214543", "0.5416134", "0.5401831", "0.53984964", "0.53979", "0.53696144", "0.53611493", "0.53167194", "0.5307465", "0.530505", "0.5302903", "0.5299344", "0.52991515", "0.52916753", "0.5284368", "0.52294886", "0.5227189", "0.52062917", "0.52050644", "0.51947594", "0.51894844", "0.51760226", "0.51732004", "0.51720965", "0.51696336", "0.51638794", "0.5162396", "0.5159331", "0.515712", "0.5152259", "0.5142946", "0.51407", "0.51353115", "0.51318145", "0.5108615", "0.5099567", "0.50929594", "0.50856364", "0.5077024", "0.5070962", "0.5066579", "0.50529194", "0.50509965", "0.50424916", "0.5042397", "0.50330424", "0.5026806", "0.5026337", "0.5024636", "0.50237846", "0.50221723", "0.5018832", "0.501714", "0.50164926", "0.5014934", "0.5012196", "0.5009075", "0.5005759", "0.5002844", "0.49988118", "0.49921575", "0.49875805", "0.49692476", "0.49489546", "0.49476284", "0.49466506", "0.49439096", "0.49424982", "0.49413314", "0.49388573", "0.49388573", "0.49375993", "0.49358377", "0.49304014", "0.4921747", "0.491477", "0.49100807", "0.48983133", "0.48953262", "0.4894562", "0.48938367", "0.48936093", "0.4891211", "0.48858255", "0.48834994", "0.4874126", "0.48728102", "0.48704544" ]
0.77807194
0
Lists all mulligans taken matching the given predicate
public List<Integer> getMulligans(Predicate<GameResult> filter) { return results.stream() .filter(filter) .map(GameResult::getMulligans) .distinct() .sorted() .collect(Collectors.toList()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private List<Card> chooseMulligan() {\n return this.b.getPlayer(this.b.getLocalteam()).getHand().stream()\n .filter(c -> c.finalStats.get(Stat.COST) > 3 && c.finalStats.get(Stat.SPELLBOOSTABLE) == 0)\n .collect(Collectors.toList());\n }", "static List<List<Card>> multiply(List<List<Card>> runs, Set<Card> operand) {\n List<List<Card>> expandedRuns = new ArrayList<>();\n for (List<Card> run : runs) {\n for (Card card : operand) {\n List<Card> newRun = new ArrayList<>();\n newRun.addAll(run);\n newRun.add(card);\n expandedRuns.add(newRun);\n }\n }\n return expandedRuns;\n }", "List<List<Pixel>> filter(Image img, int multiplier, String operation);", "private List<Double> computeAllUnitsProbabilitiesFromHiddenLayer(List<Double> sample) {\n return Stream.iterate(0, j -> j = j + 1)\n .limit(cfg.numhid)\n .map(j -> equation3.evaluate(j, sample))\n .collect(toList());\n }", "void prettyPrintFactors(ArrayList<Long> list, long num){\n System.out.print(num + \" = \");\n for(int i = 0; i<list.size(); i++){\n if(i == list.size()-1){\n System.out.print(list.get(i) +\"\\n\");\n }\n else{\n System.out.print(list.get(i) + \" * \");\n }\n }\n }", "default Collection<ItemStack> getContentsMatchingSimulated(Predicate<ItemStack> predicate) {\n\t\treturn this.getContentsSimulated().stream().map(ItemStack::copy).filter(predicate).collect(Collectors.toList());\n\t}", "private List<Mapping> linearCombination(SimilarityMatrix mtrx, SimilarityMatrix forbidden)\n\t{\n\t\tMapping mp=null;\n\t\tdouble sim=0;\n\t\tList<Mapping> lst=new ArrayList<Mapping>();\n\t\tCrossCountQuality ccq=new CrossCountQuality(mtrx);\n\t\tSimilarityScoreDefinitness ssh=new SimilarityScoreDefinitness(mtrx);\n\t\tInverseOf invSSD=new InverseOf(ssh);\n\t\tfor(int i=0;i<mtrx.getRows();i++)\n\t\t{\n\t\t\tfor(int j=0;j<mtrx.getColumns();j++)\n\t\t\t{\n\t\t\t\tif (forbidden.getSimilarity(i, j)==1.0)\n\t\t\t\t\tcontinue;\n\t\t\t\tmp=mtrx.get(i, j);\n\t\t\t\tsim=alpha*ccq.getQuality(null, i, j)+beta*(invSSD.getQuality(null, i, j));\n\t\t\t\tmp.setSimilarity(sim);\n\t\t\t\tlst.add(mp);\n\n\t\t\t}\n\t\t}\n\t\treturn lst;\n\t\t\n\t}", "ArrayList<BigInteger> factorize(BigInteger num) {\n ArrayList<BigInteger> result = calcPrimeFactors(num);\n return result;\n }", "public ArrayList<ArrayList<Integer>> permuteUnique(int[] num) {\n HashMap<Integer, Integer> count = new HashMap<Integer, Integer>();\n for(int i = 0; i < num.length; i++) {\n \tif(!count.containsKey(num[i])) count.put(num[i], 1);\n \telse count.put(num[i], count.get(num[i])+1); \t\n }\n \n ArrayList<Integer> numUni = new ArrayList<Integer>(count.size());\n ArrayList<Integer> numCount = new ArrayList<Integer>(count.size());\n for(int e: count.keySet()) {\n \tnumUni.add(e);\n \tnumCount.add(count.get(e)); \t\n }\n \n ArrayList<ArrayList<Integer>> results = new ArrayList<ArrayList<Integer>>();\n ArrayList<Integer> result = new ArrayList<Integer>(num.length);\n permuteUnique(numUni, numCount, result, results);\n return results;\n }", "public static List allPerm(Object input[]) {\r\n List<Object[]> retVal = new ArrayList(Math.factorial(input.length));\r\n allPerm(0, input, retVal);\r\n return retVal;\r\n }", "public int mediansMod(int mod) {\n int sum = 0;\n for (int mid : medians) {\n sum += mid;\n }\n return sum % mod;\n }", "private void mul() {\n\n\t}", "public HashMap<Character, float[][]> calcSquigglePeaks(float ppmTol, String seq, float[] mods, String ionTypes, String filterIonTypes, int maxCharge) {\n\t\tHashMap<Character, float[][]> squigglePeaks = new HashMap<>();\n\n\t\tArrayList<Character> nIonTypes = new ArrayList<>();\n\t\tArrayList<Character> cIonTypes = new ArrayList<>();\n\n\t\tthis.averageFragMass = new double[ionTypes.length()];\n\t\tint iTypeIndx = 0;\n\n\t\tfor (int i = 0; i < ionTypes.length(); i++) {\n\t\t\tchar curIonType = ionTypes.charAt(i);\n\t\t\tif (curIonType == 'a' || curIonType == 'b' || curIonType == 'c')\n\t\t\t\tnIonTypes.add(curIonType);\n\t\t\telse if (curIonType == 'x' || curIonType == 'y' || curIonType == 'z')\n\t\t\t\tcIonTypes.add(curIonType);\n\t\t}\n\n\t\tArrayList<Peak> ps = new ArrayList<>();\n\n\t\t//float iB = 0.0f, iY = 0.0f;\n\t\t//int nB = 0, nY = 0;\n\t\t//int maxCharge = (charge==2)?1:2;\n\t\tfloat [] aaMasses = AAMasses.monoisotopic_masses;\n\t\tfloat [] fragTypeShifts = AAMasses.ionTypeShifts;\n\t\t//float[][] tempPeaks;\n\t\tint cLen = seq.length();\n\n\t\t//int normFac;\n\t\t//if (PTMShepherd.getParam(\"squiggle_norm\").equals(\"1\"))\n\t\t//\tnormFac = 1;\n\t\t//else\n\t\t//normFac = cLen;\n\t\t//normFac = 1;\n\n\t\tArrayList<Float> knownFrags = calculatePeptideFragments(seq, mods, filterIonTypes, maxCharge, 0.0f);\n\t\t/*\n\t\tfor (Character iType : nIonTypes) {\n\t\t\tps = new ArrayList<>();\n\t\t\tnTermMass = fragTypeShifts[iType - 'a'];\n\t\t\tfor (int ccharge = 1; ccharge <= maxCharge; ccharge++) { //loop through charge states\n\t\t\t\tfloat cmass = AAMasses.monoisotopic_nterm_mass + nTermMass; //todo is this appropriate for multiple charge states??\n\t\t\t\tfor (int i = 0; i < cLen - 1; i++) { //loop through positions on the peptide\n\t\t\t\t\tcmass += (aaMasses[seq.charAt(i) - 'A'] + mods[i]) / ccharge;\n\t\t\t\t\tknownFrags.add(cmass);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tfor (Character iType : cIonTypes) {\n\t\t\tps = new ArrayList<>();\n\t\t\tcTermMass = fragTypeShifts[iType - 'x' + 3];\n\t\t\tfor (int ccharge = 1; ccharge <= maxCharge; ccharge++) {\n\t\t\t\tfloat cmass = (cTermMass + ccharge * AAMasses.monoisotopic_nterm_mass) / ccharge;\n\t\t\t\tfor (int i = 0; i < cLen - 1; i++) {\n\t\t\t\t\tcmass += (aaMasses[seq.charAt(cLen - 1 - i) - 'A'] + mods[cLen - 1 - i]) / ccharge;\n\t\t\t\t\tknownFrags.add(cmass);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t*/\n\n\t\tfloat nTermMass;\n\t\tfor (Character iType : nIonTypes) {\n\t\t\tps = new ArrayList<>();\n\t\t\tnTermMass = fragTypeShifts[iType - 'a'];\n\t\t\tfor (int j = 0; j < peakMZ.length; j++) {\n\t\t\t\tboolean skipFlag = false;\n\t\t\t\tdouble trueTol = ppmTol * peakMZ[j] / 1000000;\n\t\t\t\tfor (Float ion : knownFrags) {\n\t\t\t\t\tif (Math.abs(peakMZ[j] - ion) < trueTol) {\n\t\t\t\t\t\tskipFlag = true;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t//if (skipFlag)\n\t\t\t\t//\tcontinue;\n\t\t\t\tArrayList<Peak> cPeaksNaked = new ArrayList<>();\n\t\t\t\t//ArrayList<Peak> cPeaksDmass = new ArrayList<>();\n\t\t\t\tfor (int ccharge = 1; ccharge <= maxCharge; ccharge++) { //loop through charge states\n\t\t\t\t\tfloat cmass = AAMasses.monoisotopic_nterm_mass + nTermMass;\n\t\t\t\t\tfor (int i = 0; i < cLen - 1; i++) { //loop through positions on the peptide\n\t\t\t\t\t\tcmass += (aaMasses[seq.charAt(i) - 'A'] + mods[i]) / ccharge;\n\t\t\t\t\t\tif (skipFlag)\n\t\t\t\t\t\t\tcPeaksNaked.add(new Peak(peakMZ[j] - cmass, 0, (float)trueTol));\n\t\t\t\t\t\telse {\n\t\t\t\t\t\t\tcPeaksNaked.add(new Peak(peakMZ[j] - cmass, peakInt[j], (float)trueTol));\n\t\t\t\t\t\t\tthis.averageFragMass[iTypeIndx] += peakMZ[j];\n\t\t\t\t\t\t}\n\t\t\t\t\t\t//cPeaksDmass.add(new Peak(peakMZ[j] - (cmass + dmass), peakInt[j]));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t//System.out.println(iType+\"\\t\"+ps.size()+\"\\t\"+cPeaksNaked.size());\n\n\t\t\t\t//Collections.sort(cPeaksNaked);\n\t\t\t\t//Collections.sort(cPeaksDmass);\n\t\t\t\tfor(int i = 0; i < cPeaksNaked.size(); i++) {\n\t\t\t\t\tps.add(cPeaksNaked.get(i));\n\t\t\t\t\t//cPeaksDmass.get(i).lossToRemainder(dmass);\n\t\t\t\t\t//ps.add(cPeaksDmass.get(i));\n\t\t\t\t}\n\t\t\t\t//for (Peak p : cPeaks)\n\t\t\t\t//\tSystem.out.println(p.MZ + \"\\t\" + p.Int);\n\t\t\t}\n\t\t\tsquigglePeaks.put(iType, peaksWTolToArray(ps));\n\t\t\tiTypeIndx++;\n\t\t}\n\n\t\tfloat cTermMass;\n\t\tfor (Character iType : cIonTypes) {\n\t\t\tps = new ArrayList<>();\n\t\t\tcTermMass = fragTypeShifts[iType - 'x' + 3];\n\t\t\tfor (int j = 0; j < peakMZ.length; j++) {\n\t\t\t\tboolean skipFlag = false;\n\t\t\t\tfloat trueTol = ppmTol * peakMZ[j] / 1000000;\n\t\t\t\tfor (Float ion : knownFrags) {\n\t\t\t\t\tif (Math.abs(peakMZ[j] - ion) < trueTol) {\n\t\t\t\t\t\tskipFlag = true;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t//if (skipFlag)\n\t\t\t\t//\tcontinue;\n\t\t\t\tArrayList<Peak> cPeaksNaked = new ArrayList<>();\n\t\t\t\tfor (int ccharge = 1; ccharge <= maxCharge; ccharge++) {\n\t\t\t\t\tfloat cmass = (cTermMass + ccharge * AAMasses.monoisotopic_nterm_mass) / ccharge;\n\t\t\t\t\tfor (int i = 0; i < cLen - 1; i++) {\n\t\t\t\t\t\tcmass += (aaMasses[seq.charAt(cLen - 1 - i) - 'A'] + mods[cLen - 1 - i]) / ccharge;\n\t\t\t\t\t\tif (skipFlag)\n\t\t\t\t\t\t\tcPeaksNaked.add(new Peak(peakMZ[j] - cmass, 0, trueTol));\n\t\t\t\t\t\telse {\n\t\t\t\t\t\t\tcPeaksNaked.add(new Peak(peakMZ[j] - cmass, peakInt[j], trueTol));\n\t\t\t\t\t\t\tthis.averageFragMass[iTypeIndx] += peakMZ[j];\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tfor(int i = 0; i < cPeaksNaked.size(); i++)\n\t\t\t\t\tps.add(cPeaksNaked.get(i));\n\t\t\t}\n\t\t\tsquigglePeaks.put(iType, peaksWTolToArray(ps));\n\t\t\tiTypeIndx++;\n\t\t}\n\t\treturn squigglePeaks;\n\t}", "default Collection<ItemStack> getContentsMatching(Predicate<ItemStack> predicate) {\n\t\treturn this.getContents().values().stream().filter(predicate).collect(Collectors.toList());\n\t}", "public ArrayList<ArrayList<Integer>> permuteUnique(int[] num) {\n HashMap<Integer, Integer> count = new HashMap<Integer, Integer>();\n for(int i = 0; i < num.length; i++) {\n \tif(!count.containsKey(num[i])) count.put(num[i], 1);\n \telse count.put(num[i], count.get(num[i])+1); \t\n }\n \n ArrayList<Integer> numUni = new ArrayList<Integer>(count.size());\n ArrayList<Integer> numCount = new ArrayList<Integer>(count.size());\n for(int e: count.keySet()) {\n \tnumUni.add(e);\n \tnumCount.add(count.get(e)); \t\n }\n \n return permuteUnique(numUni, numCount);\n }", "public static void main(String[] args) {\n List<Integer> pr = new ArrayList<>();\n out:\n for (int p = 2; p <= 100; p++) {\n for (int q : pr) {\n if (p % q == 0) {\n continue out;\n }\n }\n pr.add(p);\n }\n Set<List<Integer>> s = new HashSet<>();\n for (int a = 2; a <= 100; a++) {\n List<Integer> l = new ArrayList<>();\n for (int p : pr) {\n int e = 0;\n for (int c = a; c % p == 0; c /= p) {\n e++;\n }\n l.add(e);\n }\n for (int b = 2; b <= 100; b++) {\n List<Integer> m = new ArrayList<>();\n for (int e : l) {\n m.add(b * e);\n }\n s.add(m);\n }\n }\n System.out.println(s.size());\n }", "@Test\r\n\tvoid mapLMethod() {\r\n\t\tMap<String, List<TransactionBean>> postsPerType = transactions.stream()\r\n .collect(Collectors.groupingBy(TransactionBean::getValue));\r\n\t\tSystem.out.println(ToStringBuilder.reflectionToString(postsPerType, new MultilineRecursiveToStringStyle()));\r\n\r\n\t}", "private static CopyOnWriteArrayList<Integer> getAllFactors (int numberUnderTest, CopyOnWriteArrayList<Integer> allFactors) {\n for (int i = 2; i <= numberUnderTest; i++) {\n if (numberUnderTest % i == 0) {\n allFactors.add(i);\n }\n }\n return allFactors;\n }", "public List<List<Integer>> permute(int[] nums) {\n if (nums.length < 2) {\n LinkedList<List<Integer>> res = new LinkedList<>();\n List<Integer> list = Arrays.stream(nums).boxed().collect(Collectors.toList());\n res.add(list);\n return res;\n }\n\n ArrayList<List<Integer>> result = new ArrayList<>();\n ArrayList<Set<Integer>> setList = new ArrayList<>();\n\n //The base set that all the other sets will be \"cloned\" from\n Set<Integer> numSetBase = Arrays.stream(nums).boxed().collect(Collectors.toSet());\n\n //Initialize the custom map-thingy\n for (int i = 0; i < nums.length; i++) {\n List<Integer> temp = new LinkedList<>();\n temp.add(nums[i]);\n result.add(temp); //Key - the list\n\n Set<Integer> newSet = new HashSet<>(numSetBase);\n newSet.remove(nums[i]);\n\n setList.add(newSet); //Add to the set of stuff left\n }\n\n //Iterate\n for (int i = 1; i < nums.length; i++) {\n //Iterate over the whole list\n int initialSize = result.size();\n for (int j = 0; j < initialSize; j++) {\n boolean isFirstElem = true;\n int firstElem = 0;\n //For each unused int in the set entry\n for (int unused: setList.get(j)) {\n if (isFirstElem) {\n firstElem = unused;\n isFirstElem = false;\n } else {\n //Add new entries for the unused nums\n Set<Integer> newSet = new HashSet<>(setList.get(j));\n List<Integer> newList = new LinkedList<>(result.get(j));\n newList.add(unused);\n newSet.remove(unused);\n //Add the new entry\n result.add(newList);\n setList.add(newSet);\n }\n }\n //Modify the first element\n if (!setList.get(j).isEmpty()) {\n result.get(j).add(firstElem);\n setList.get(j).remove(firstElem);\n }\n }\n }\n return result;\n }", "public Artikel [] filter(Predicate<Artikel> predicate) {\n Artikel[] filteredList = new Artikel[key];\n Artikel [] liste = new Artikel[key];\n int i = 0;\n for (Map.Entry<Integer, Artikel> integerArtikelEntry : lager.entrySet()) {\n liste[i] = integerArtikelEntry.getValue();\n i++;\n }\n int p = 0;\n for (i = 0; i < key; i++) {\n if (predicate.test(liste[i])) {\n filteredList[p] = liste [i];\n p++;\n }\n }\n liste = filteredList;\n return liste;\n }", "public static void primePermutationsHM(List<Integer> primes) {\n HashMap<String, List<Integer>> map = new HashMap<>();\n for (int p : primes) {\n int[] nums = new int[4];\n int num = p;\n int i = 0;\n\n while (num > 0) {\n nums[i++] = num % 10;\n num /= 10;\n }\n\n // save the number (p) in a key hashed from the lowest permutation (s) of the number \n Arrays.sort(nums);\n String s = Arrays.toString(nums);\n\n List<Integer> ll = map.getOrDefault(s, new LinkedList<>());\n ll.add(p);\n map.put(s, ll);\n }\n\n // loop through map entries; if at least 3 numbers are found, check for common difference\n for (Map.Entry mEntry : map.entrySet()) {\n List<Integer> numbers = (List<Integer>) mEntry.getValue();\n\n if (numbers.size() >= 3) {\n int[] res = findTripletWithCommonDifference(numbers);\n\n if (res.length == 3) {\n System.out.println(Arrays.toString(res));\n }\n }\n }\n }", "public List<List<Integer>> permute_1(int[] nums) {\n List<List<Integer>> list = new ArrayList<>();\n // Arrays.sort(nums); // not necessary\n backtrack_(list, new ArrayList<>(), nums);\n return list;\n }", "public static void main(String[] args) {\n Scanner in = new Scanner(System.in);\n n = in.nextInt();\n m = in.nextLong();\n initFactorSets();\n long total = 0;\n\n boolean add = true;\n for (ArrayList<Integer> factorSet : factorSets) {\n for (int factor : factorSet) {\n if (add) {\n total += m / factor;\n } else {\n total -= m / factor;\n }\n }\n add = !add;\n }\n System.out.println(total);\n }", "public List<Long> calculatePrimeFactorsOf(long l) {\n\t\t// TODO Write an implementation for this method declaration\n\t\tList<Long> primeList = new ArrayList<Long>();\n\t\t//List<Long> divisorList = new ArrayList<Long>();\n\t\tfor(long i = 2; i <= l; i++) {\n\t\t\twhile(l % i == 0) {\n\t\t\t\tprimeList.add(i);\n\t\t\t\tl = l / i; \n\t\t\t}\n\t\t}\n\n\t\treturn primeList;\n\t}", "public List<List<Integer>> permute(int[] nums) {\n List<List<Integer>> res = new ArrayList<>();\n List<Integer> numList = new ArrayList<>();\n for (int n : nums) numList.add(n);\n permute(numList, 0, res);\n return res;\n }", "public List<MaestroNote> collect(Predicate<? super MaestroNote> predicate) {\n logger.trace(\"Collecting messages\");\n\n final List<MaestroNote> ret = new ArrayList<>(collected.size());\n\n for (final MaestroNote note : collected) {\n if (predicate.test(note)) {\n collected.remove(note);\n ret.add(note);\n }\n }\n\n logger.trace(\"Number of messages collected: {}\", ret.size());\n return ret;\n }", "public List<MultQuestion> multChoiceQuestions(int qid);", "public static void main(String[] args) {\n\t\tList<Integer> numbers = Arrays.asList(9, 10, 3, 4, 7, 3, 4);\n\t\tList<Integer> distinct = numbers.stream().map(i -> i * i).distinct().collect(Collectors.toList());\n\t\tSystem.out.printf(\"Original List : %s, Square Without duplicates : %s %n\", numbers, distinct);\n\t}", "public static void main(String[] args) {\n\t\tint[] num = new int[] { 1, 2, 3 };\r\n\t\tSolution s = new Solution();\r\n\t\tList<List<Integer>> result = s.permute(num);\r\n\t\tfor (int i = 0; i < result.size(); i++) {\r\n\t\t\tSystem.out.println(result.get(i));\r\n//\t\t\tfor (int j = 0; j < result.get(i).size(); j++) {\r\n//\t\t\t\tSystem.out.print(result.get(i).get(j) + \" \");\r\n//\t\t\t}\r\n//\t\t\tSystem.out.println();\r\n\t\t}\r\n\t}", "public abstract Object[] getSimilarityFactors();", "List<S> memberOf(T member);", "List<Matricula> listarMatriculas();", "public abstract List<T> mo2625k();", "public List<List<Integer>> permute(int[] nums) {\n\n if (nums.length == 1){\n List<List<Integer>> _ans = new ArrayList<>();\n List<Integer> cur = new ArrayList<>();\n cur.add(nums[0]);\n _ans.add(cur);\n return _ans;\n }\n\n List<Integer> cur = new ArrayList<>();\n /** NOTE !!! we don't need to set idx param */\n helper(nums, cur);\n\n return this.ans;\n }", "List<Moderator> getAvailableModerators(int digestNum);", "public HashMap<Character, float[][]> safeold_calcSquigglePeaks(float ppmTol, String seq, float[] mods, String ionTypes, int maxCharge) {\n\t\tHashMap<Character, float[][]> squigglePeaks = new HashMap<>();\n\n\t\tArrayList<Character> nIonTypes = new ArrayList<>();\n\t\tArrayList<Character> cIonTypes = new ArrayList<>();\n\n\t\tfor (int i = 0; i < ionTypes.length(); i++) {\n\t\t\tchar curIonType = ionTypes.charAt(i);\n\t\t\tif (curIonType == 'a' || curIonType == 'b' || curIonType == 'c')\n\t\t\t\tnIonTypes.add(curIonType);\n\t\t\telse if (curIonType == 'x' || curIonType == 'y' || curIonType == 'z')\n\t\t\t\tcIonTypes.add(curIonType);\n\t\t}\n\n\t\tArrayList<Peak> ps = new ArrayList<>();\n\n\t\t//float iB = 0.0f, iY = 0.0f;\n\t\t//int nB = 0, nY = 0;\n\t\t//int maxCharge = (charge==2)?1:2;\n\t\tfloat [] aaMasses = AAMasses.monoisotopic_masses;\n\t\tfloat [] fragTypeShifts = AAMasses.ionTypeShifts;\n //float[][] tempPeaks;\n\t\tint cLen = seq.length();\n\n\n\t\t//todo see if removing known frags helps .... it helps ish??\n\t\tArrayList<Float> knownFrags = new ArrayList<>();\n\t\t/* float nTermMass;\n\t\tfor (Character iType : nIonTypes) {\n\t\t\tps = new ArrayList<>();\n\t\t\tnTermMass = fragTypeShifts[iType - 'a'];\n\t\t\tfor (int ccharge = 1; ccharge <= maxCharge; ccharge++) { //loop through charge states\n\t\t\t\tfloat cmass = AAMasses.monoisotopic_nterm_mass + nTermMass;\n\t\t\t\tfor (int i = 0; i < cLen - 1; i++) { //loop through positions on the peptide\n\t\t\t\t\tcmass += (aaMasses[seq.charAt(i) - 'A'] + mods[i]) / ccharge;\n\t\t\t\t\tknownFrags.add(cmass);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tfloat cTermMass;\n\t\tfor (Character iType : cIonTypes) {\n\t\t\tps = new ArrayList<>();\n\t\t\tcTermMass = fragTypeShifts[iType - 'x' + 3];\n\t\t\tfor (int ccharge = 1; ccharge <= maxCharge; ccharge++) {\n\t\t\t\tfloat cmass = (cTermMass + ccharge * AAMasses.monoisotopic_nterm_mass) / ccharge;\n\t\t\t\tfor (int i = 0; i < cLen - 1; i++) {\n\t\t\t\t\tcmass += (aaMasses[seq.charAt(cLen - 1 - i) - 'A'] + mods[cLen - 1 - i]) / ccharge;\n\t\t\t\t\tknownFrags.add(cmass);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t */\n\t\tfloat nTermMass;\n\t\tfor (Character iType : nIonTypes) {\n\t\t ps = new ArrayList<>();\n\t\t\tnTermMass = fragTypeShifts[iType - 'a'];\n\t\t\tfor (int ccharge = 1; ccharge <= maxCharge; ccharge++) { //loop through charge states\n\t\t\t float cmass = AAMasses.monoisotopic_nterm_mass + nTermMass;\n\t\t\t\tfor (int i = 0; i < cLen - 1; i++) { //loop through positions on the peptide\n\t\t\t\t\tcmass += (aaMasses[seq.charAt(i) - 'A'] + mods[i]) / ccharge;\n\t\t\t\t\tfor (int j = 0; j < peakMZ.length; j++) {//loop through peaks in spectrum\n\t\t\t\t\t\t//This block will remove known fragments\n\t\t\t\t\t\t/*\n\t\t\t\t\t\tboolean badFlag = false;\n\t\t\t\t\t\tfor (int k = 0; k < knownFrags.size(); k++) {\n\t\t\t\t\t\t\tif (Math.abs(peakMZ[j] - knownFrags.get(k)) < 0.001) {\n\t\t\t\t\t\t\t\tbadFlag = true;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (!badFlag)\n\t\t\t\t\t\t */\n\t\t\t\t\t\t\tps.add(new Peak(peakMZ[j] - cmass, peakInt[j]));\n\t\t\t\t\t\t//ps.add(new Peak(peakMZ[j] - cmass, peakInt[j] / (i + 1)));\n\t\t\t\t\t}\n }\n\t\t\t}\n\t\t\tsquigglePeaks.put(iType, peaksToArray(ps));\n\t\t}\n\n\t\tfloat cTermMass;\n\t\tfor (Character iType : cIonTypes) {\n ps = new ArrayList<>();\n\t\t\tcTermMass = fragTypeShifts[iType - 'x' + 3];\n\t\t\tfor (int ccharge = 1; ccharge <= maxCharge; ccharge++) {\n float cmass = (cTermMass + ccharge * AAMasses.monoisotopic_nterm_mass) / ccharge;\n for (int i = 0; i < cLen - 1; i++) {\n cmass += (aaMasses[seq.charAt(cLen - 1 - i) - 'A'] + mods[cLen - 1 - i]) / ccharge;\n for (int j = 0; j < peakMZ.length; j++) {//loop through peaks in spectrum\n \t//This block will remove known fragments\n /*\n\t\t\t\t\t\tboolean badFlag = false;\n\t\t\t\t\t\tfor (int k = 0; k < knownFrags.size(); k++) {\n\t\t\t\t\t\t\tif (Math.abs(peakMZ[j] - knownFrags.get(k)) < 0.001) {\n\t\t\t\t\t\t\t\tbadFlag = true;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (!badFlag)\n\n */\n\t\t\t\t\t\t\tps.add(new Peak(peakMZ[j] - cmass, peakInt[j]));\n\t\t\t\t\t\t//ps.add(new Peak(peakMZ[j] - cmass, peakInt[j] / (i + 1)));\n\t\t\t\t\t}\n }\n }\n squigglePeaks.put(iType, peaksToArray(ps));\n\t\t}\n\t\treturn squigglePeaks;\n\t}", "public void setMedianIntensities(boolean areMedians);", "private List<Individual<T>> selectIndividuals(Deme<T> deme) {\n return IntStream.range(0, tournamentSize).mapToObj(i -> selRandomOp.select(deme.getIndividuals()))\n .collect(Collectors.toList());\n }", "void GetAllSuccLeafProduct(HashSet plstSuccPro);", "java.util.List<java.lang.String>\n getBiasPrefixMatchList();", "public final void rulePredicateMultiplication() throws RecognitionException {\n\n \t\tHiddenTokens myHiddenTokenState = ((XtextTokenStream)input).setHiddenTokens(\"RULE_ML_COMMENT\", \"RULE_SL_COMMENT\", \"RULE_WS\");\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../eu.quanticol.caspa.ui/src-gen/eu/quanticol/ui/contentassist/antlr/internal/InternalCASPA.g:620:2: ( ( ( rule__PredicateMultiplication__Group__0 ) ) )\n // ../eu.quanticol.caspa.ui/src-gen/eu/quanticol/ui/contentassist/antlr/internal/InternalCASPA.g:621:1: ( ( rule__PredicateMultiplication__Group__0 ) )\n {\n // ../eu.quanticol.caspa.ui/src-gen/eu/quanticol/ui/contentassist/antlr/internal/InternalCASPA.g:621:1: ( ( rule__PredicateMultiplication__Group__0 ) )\n // ../eu.quanticol.caspa.ui/src-gen/eu/quanticol/ui/contentassist/antlr/internal/InternalCASPA.g:622:1: ( rule__PredicateMultiplication__Group__0 )\n {\n before(grammarAccess.getPredicateMultiplicationAccess().getGroup()); \n // ../eu.quanticol.caspa.ui/src-gen/eu/quanticol/ui/contentassist/antlr/internal/InternalCASPA.g:623:1: ( rule__PredicateMultiplication__Group__0 )\n // ../eu.quanticol.caspa.ui/src-gen/eu/quanticol/ui/contentassist/antlr/internal/InternalCASPA.g:623:2: rule__PredicateMultiplication__Group__0\n {\n pushFollow(FOLLOW_rule__PredicateMultiplication__Group__0_in_rulePredicateMultiplication1137);\n rule__PredicateMultiplication__Group__0();\n\n state._fsp--;\n\n\n }\n\n after(grammarAccess.getPredicateMultiplicationAccess().getGroup()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n \tmyHiddenTokenState.restore();\n\n }\n return ;\n }", "void getPermute(int i, int [] loc) {\n\t\tlocate(permute.get(i), loc);\n\t}", "private static List<List<Integer>> getPermutation(List<Integer> array){\n List<List<Integer>> result = new ArrayList<List<Integer>>();\n getPermutation(array,new ArrayList<>(),result);\n return result;\n }", "public void MedianFinder() {\n lowerPart = new PriorityQueue<>((a, b) -> (b - a));\n higherPart = new PriorityQueue<>();\n count = 0;\n }", "public BigInteger[] multiply_G(BigInteger factor) \r\n{\r\n\tBigInteger[] voher = EXPList.nullVektor;\r\n\tBigInteger[] erg = new BigInteger[2];\r\n\tfor(int i=0;i<=255;i++)\r\n\t{\r\n\t\tif(factor.testBit(i)==true) \r\n\t\t{\r\n\t\t erg = addition(voher,EXPList.list[i]); \r\n\t\t voher = erg;\r\n\t\t} \r\n\t}\r\n\treturn erg; \r\n}", "private ArrayList<Groepen> mogelijkeGroepen(Spelers spelers, int groepen, int[] grootte, int byes, int nobyesmask) {\r\n\r\n\t\tArrayList<Groepen> result = new ArrayList<>();\r\n\t\tint max = (int) Math.pow(2, groepen);\r\n\t\tint mask = max - 1 - nobyesmask;\r\n\t\tfor (int i = 0; i < max; i++) {\r\n\t\t\tint j = i & mask; \r\n\t\t\tint aantalbyes = Integer.bitCount(reversebits(j));\r\n\t\t\tif (aantalbyes == byes) {\r\n\t\t\t\tGroepen maakGroepen = maakGroepen(spelers, groepen, grootte, j);\r\n\t\t\t\tresult.add(maakGroepen);\t\t\t\t\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn result;\r\n\t}", "public void srchMult() {\r\n System.out.println();\r\n System.out.println(\"YANG TERMASUK KELIPATAN 3 ADALAH : \");\r\n for (i = 0; i < array.length; i++) {\r\n if (array[i] %3 == 0) {\r\n System.out.println(array[i]);\r\n }\r\n }\r\n }", "private void calcMedian(SimpleProtein.ProtChain chain) {\n\t\tList<List<Double>> falseValuesList = new LinkedList<>();\n\t\tList<List<Double>> trueValuesList = new LinkedList<>();\n\t\tList<List<Double>> allValuesList = new LinkedList<>();\n\t\t\n\t\tfor (int i = 0; i < chain.resIntensityValueMatrix.length; i++) {\n\t\t\tfalseValuesList.add(new LinkedList<>());\n\t\t\ttrueValuesList.add(new LinkedList<>());\n\t\t\tallValuesList.add(new LinkedList<>());\n\t\t\tfor (int j = 0; j < chain.resIntensityValueMatrix[i].length; j++) {\n\t\t\t\tif (chain.originalPositions[j] != i) {\n\t\t\t\t\tfalseValuesList.get(i).add(chain.resIntensityValueMatrix[i][j]);\n\t\t\t\t\t\n\t\t\t\t} else {\n\t\t\t\t\ttrueValuesList.get(i).add(chain.resIntensityValueMatrix[i][j]);\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\tallValuesList.get(i).add(chain.resIntensityValueMatrix[i][j]);\n\t\t\t}\n\t\t\tCollections.sort(falseValuesList.get(i));\n\t\t\tCollections.sort(trueValuesList.get(i));\n\t\t\tCollections.sort(allValuesList.get(i));\n\t\t}\n\t\tdouble[] falseValuesMedian = new double[falseValuesList.size()];\n\t\tdouble[] trueValuesMedian = new double[trueValuesList.size()];\n\t\tdouble[] allValuesMedian = new double[allValuesList.size()];\n\t\t\n\t\t\n\t\tfor (int i = 0; i < falseValuesList.size(); i++) {\n\t\t\tif (falseValuesList.get(i).size() == 0) {\n\t\t\t\tfalseValuesMedian[i] = 0;\n\t\t\t} else {\n\t\t\t\tint middle = falseValuesList.get(i).size() / 2;\n\t\t\t\tif (falseValuesList.get(i).size() % 2 == 1) {\n\t\t\t\t\tfalseValuesMedian[i] = falseValuesList.get(i).get(middle);\n\t\t\t\t} else {\n\t\t\t\t\tfalseValuesMedian[i] = (falseValuesList.get(i).get(middle - 1) + falseValuesList.get(i).get(middle)) / 2.0;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor (int i = 0; i < allValuesList.size(); i++) {\n\t\t\tif (allValuesList.get(i).size() == 0) {\n\t\t\t\tallValuesMedian[i] = 0;\n\t\t\t} else {\n\t\t\t\tint middle = allValuesList.get(i).size() / 2;\n\t\t\t\tif (allValuesList.get(i).size() % 2 == 1) {\n\t\t\t\t\tallValuesMedian[i] = allValuesList.get(i).get(middle);\n\t\t\t\t} else {\n\t\t\t\t\tallValuesMedian[i] = (allValuesList.get(i).get(middle - 1) + allValuesList.get(i).get(middle)) / 2.0;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor (int i = 0; i < trueValuesList.size(); i++) {\n\t\t\tif (trueValuesList.get(i).size() == 0) {\n\t\t\t\ttrueValuesMedian[i] = 0;\n\t\t\t} else {\n\t\t\t\tint middle = trueValuesList.get(i).size() / 2;\n\t\t\t\tif (trueValuesList.get(i).size() % 2 == 1) {\n\t\t\t\t\ttrueValuesMedian[i] = trueValuesList.get(i).get(middle);\n\t\t\t\t} else {\n\t\t\t\t\ttrueValuesMedian[i] = (trueValuesList.get(i).get(middle - 1) + trueValuesList.get(i).get(middle)) / 2.0;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tchain.medianTrue = trueValuesMedian;\n\t\tchain.medianFalse = falseValuesMedian;\n\t\tchain.allMedian = allValuesMedian;\n\t\t\n\t\tfor (int i = 0; i < chain.signalMaybe.length; i++) {\n\t\t\tchain.signalMaybe[i] = chain.medianTrue[i] - chain.medianFalse[i];\n\t\t}\n\t\t\n\t}", "public static void main(String[] args) {\n\t\tint[] data = {3,5,1,2,8,12,16,15,9,23,18};\n\t\tint[] result = findKNumsAroundMedian(data, 5);\n\t\tfor(int i = 0; i < result.length; i++){\n\t\t\tSystem.out.print(result[i] + \" \");\n\t\t}\n\t}", "public List<List<Integer>> permute(int[] nums) {\n Arrays.sort(nums);\n List<List<Integer>> list = new ArrayList<List<Integer>>();\n list.add(Arrays.stream(nums).boxed().collect(Collectors.toList()));\n addNextPermutation(list, nums);\n\t\treturn list;\n }", "public abstract List<LambdaTerm> containedLambdaTerms(LambdaTerm P);", "public void showAllMu()\r\n {\r\n for (int i = 1; i < T; i++) {\r\n System.out.println(\"mu[\"+(i+1)+\"]^2 : \"+getNu()[i]+\"\\t\\t| nu[\"+(i+1)+\"] : \"+Math.sqrt(getNu()[i]));\r\n }\r\n }", "public static void main(String[] args) {\n\t\tArrayList<Piloto> lst = new ArrayList <Piloto>();\r\n\t\tEvaluador evaluador = new Evaluador(lst);\r\n\t\t\r\n\t\tlst.add(new Piloto(\"Jorge\", \"Gutierrez\", true, 0 ));\r\n\t\tlst.add(new Piloto(\"Nicolas\", \"Perez\", true, 10 ));\r\n\t\tlst.add(new Piloto(\"Santiago\", \"Freire\", false, 0 ));\r\n\t\tlst.add(new Piloto(\"Ana\", \"Gutierrez\", false, 1 ));\r\n\t\tlst.add(new Piloto(\"Victoria\", \"Gutierrez\", true, 0 ));\r\n\t\tlst.add(new Piloto(\"Julia\", \"Freire\", true, 0 ));\r\n\t\tlst.add(new Piloto(\"Carlos\", \"Gutierrez\", true, 1 ));\r\n\t\t\r\n /*\r\n\t\t//le gusta volar y no tiene choques \r\n\t\tfor (Piloto p : evaluador.leGustaVolarNoTieneChoques()) {\r\n System.out.println(p);\r\n }\r\n */\r\n \r\n\t\t//le gusta volar y tiene choques\r\n\t\tfor (Piloto p : evaluador.leGustaVolarTieneChoques()) {\r\n System.out.println(p);\r\n }\r\n \r\n for (Piloto p : evaluador.obtenerTodosPeroParametrizar(true, true)) {\r\n System.out.println(p);\r\n }\r\n \r\n for (Piloto p : evaluador.obtenerTodosPeroParametrizar(p -> (p.leGustaVolar && p.cantidadDeChoques > 0))) {\r\n System.out.println(p);\r\n }\r\n \r\n lst.stream()\r\n .filter(p -> (p.leGustaVolar && p.cantidadDeChoques > 0))\r\n .filter(p -> p.cantidadDeChoques == 10)\r\n .forEach(x -> System.out.println(x));\r\n \r\n\t\t\r\n /*\r\n\t\t//no le gusta volar y no tiene choques\r\n\t\tfor (Piloto p : evaluador.noLeGustaVolarNoTieneChoques()) {\r\n System.out.println(p);\r\n }\r\n\t\t\r\n\t\t//no le gusta volar y tiene choques\r\n\t\tfor (Piloto p : evaluador.noLeGustaVolarTieneChoques()) {\r\n System.out.println(p);\r\n }\r\n\t\t*/\r\n\t\t\r\n\t}", "public static void main(String[] args) {\n\t\tint a = 900;\n\t\tint b = 900;\n\t\tint c =0 ;\n\t\tArrayList<Integer> list = new ArrayList<Integer>();\n\t\twhile(a<=999) {\n\t\t\tb= 900;\n\t\t\twhile(b<=999) {\n\t\t\t\tc = a*b ;\n\t\t\t\tif(palindrome(c)) {\n\t\t\t\t\tlist.add(c);\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\tb++;\n\t\t\t}\n\t\t\ta++;\n\t\t\t\n\t\t}\n\t\tSystem.out.println(list);\n\t\t\n\t\t\n\t\t\n\n\t}", "public List<PlantDTO> fetchPlants(String filter);", "public List<GPairRecord<S, S>> getPairs(final Predicate<Pair<S, S>> predicate) {\n List<GPairRecord<S, S>> pairs = getNonCrossingPairs(predicate);\n pairs.addAll(getCrossingPairs(predicate));\n\n sortPairs(pairs);\n return pairs;\n }", "private List<Integer> multiply(List<Integer> numbers) {\n List<Integer> result = new ArrayList<>();\n for (int number : numbers) {\n if (number != 8 && number != 9) {\n result.add(number);\n }\n if (number == 8 || number == 9) {\n int currentNumber = number * 2;\n result.add(currentNumber);\n }\n }\n return result;\n }", "@Test\n public void testMultasUsuario() {\n System.out.println(\"multasUsuario\");\n Usuario usuario = new UsuariosList().getUsuarios().get(1);\n BibliotecarioController instance = new BibliotecarioController();\n List<Multa> expResult = new ArrayList<>();\n new MultasList().getMultas().stream().filter((m) -> (m.getUsuarioId().equals(usuario))).forEach((m) -> {\n expResult.add(m);\n });\n List<Multa> result = instance.multasUsuario(usuario);\n assertEquals(expResult, result);\n\n }", "void reduceStarsBy(final int amount);", "public List<List<Integer>> permute_2(int[] nums) {\n List<List<Integer>> ans = new ArrayList<>();\n backtrack(new ArrayList<>(), ans, nums);\n return ans;\n }", "public ArrayList<ArrayList<Integer>> permute(int[] num) {\n if(num == null){\n return null;\n }\n return _permute(num, num.length - 1);\n }", "public List<MagicSquare> buildMagicSquares() {\n solutions = new ArrayList<>();\n sampler = new Sampler(Bound.getAllElements(1, totalNumbersCnt));\n\n for (int possibleNumber : sampler.getNumbers(new Bound(1, totalNumbersCnt))) {\n if (sampler.contains(possibleNumber)) {\n buildRow(sampler.getNumber(possibleNumber), 0, 0);\n }\n }\n\n return solutions;\n }", "public ArrayList<String> retrieveAllMajors() {\r\n\t\tArrayList<String> majors = new ArrayList<String>();\r\n\t\tHashMap<String, ArrayList<String>> map = MySQLConnector.executeMySQL(\"select\", \"SELECT * FROM second_major\");\r\n\t\tSet<String> keySet = map.keySet();\r\n\t\tIterator<String> iterator = keySet.iterator();\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\tString major \t= array.get(1);\r\n\t\t\t\r\n\t\t\tmajors.add(major);\r\n\t\t}\r\n\t\t\r\n\t\treturn majors;\r\n\t}", "public List<Long> calculatePrimeFactorsOf(long l) {\n\n\t\tList<Long> primeFactors = new ArrayList<>();\n\t\tfor (long i = 2; i < l; i++) {\n\t\t\tif ((l % i == 0) && (isPrime(i))) {\n\t\t\t\tlong result = l;\n\t\t\t\twhile (result % i == 0) {\n\t\t\t\t\tprimeFactors.add(i);\n\t\t\t\t\tresult /= i;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif (l <= 2) // Catch the case where the number is 2 or 1\n\t\t\tprimeFactors.add(l);\n\t\treturn primeFactors;\n\t}", "List<VarRatio> selectAll();", "public static void main(String [] args){\n\t\tArrayList<Integer> allNums = new ArrayList<>();\n\t\tfor(int i = 0; i < 10; i++){\n\t\t\tallNums.add(i);\n\t\t}\n\t\t//Make into one big number\n\t\t//Proceed to divide it to knock bits off the right hand side\n\t\tboolean miracleFound = false;\n\t\tString tempNum;\n\t\tlong miracleNum = 0;\n\t\twhile(!miracleFound){\n\t\t\t//Make A String from the List And analyse it\n\t\t\ttempNum = \"\";\n\t\t\tfor(int i = 0; i < allNums.size(); i++){\n\t\t\t\ttempNum = tempNum + allNums.get(i);\n\t\t\t\t//System.out.println(\"Tempnum is \" + tempNum + \" and i is \" + i);\n\t\t\t\tif(i > 0){\n\t\t\t\t\tmiracleNum = Long.valueOf(tempNum).longValue();\n\t\t\t\t\tif(miracleNum % (i+1) == 0){ //If it is divisible without remainders\n\t\t\t\t\t\tif((i+1) == 10){\n\t\t\t\t\t\t\tmiracleFound = true;\n\t\t\t\t\t\t\tSystem.out.println(\"Number \" + miracleNum + \" was a miracle number.\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse{\n\t\t\t\t\t\t\tSystem.out.println(miracleNum + \" % \" + (i+1) + \" is 0.\");\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t\tCollections.shuffle(allNums);\n\t\t\t\t\t\ti = allNums.size();\n\t\t\t\t\t\tSystem.out.println(\"Number \" + miracleNum + \" was not a miracle number.\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public void printDivisors(long n, ArrayList < Long > al) {\n for (long i = 1; i <= Math.sqrt(n); i++) {\r\n if (n % i == 0) {\r\n // If divisors are equal, print only one \r\n if (n / i == i) {\r\n al.add(i);\r\n } else // Otherwise print both \r\n {\r\n al.add(i);\r\n al.add(n / i);\r\n }\r\n \r\n }\r\n }\r\n }", "public void filterMapExample() {\n List<String> result = createPeople()\n .stream()\n .filter(predicate)\n .map(Person::getName)\n .map(String::toUpperCase)\n .collect(Collectors.toUnmodifiableList());\n print.accept(result);\n }", "public static void main(String[] args)\n {\n int[] arr = new int[]{1,2,3};\n List<List<Integer>> result = new ArrayList<>();\n Permutation permutation = new Permutation();\n permutation.permuteInteger(arr,result, 0, arr.length);\n\n System.out.println(result);\n }", "private static void banFeature(ArrayList t) {\n\t\tSet setKeys = Utility.vocabHM.keySet();\n\t\tIterator i = setKeys.iterator();\n\t\tSystem.out.print(\"Word cut : [\");\n\t\tint idx = 0;\n\t\twhile (i.hasNext()) {\n\t\t\tString s = (String) i.next();\n\t\t\tInteger df = (Integer) Utility.vocabHM.get(s);\n\n\t\t\tif (t.contains(s)){\n\t\t\t\tSystem.out.print(s+\", \");\n\t\t\t\ti.remove();\n\t\t\t\tidx++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"]\\n ::banned::\"+idx+\" feature.\");\n\t}", "int permute(int p) {\n int index = wrap(p);\n if (_map != null && _map.containsKey(index)) {\n return _map.get(index);\n } else {\n return index;\n }\n }", "public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n int n = scan.nextInt();\n ArrayList<Integer> A = new ArrayList();\n System.out.println(\"Enter the array of size \"+n+\"\\n\");\n for(int i =0;i<n;i++){\n Integer num = scan.nextInt();\n A.add(num);\n }\n Collections.sort(A);\n A.replaceAll(a-> a*a);\n boolean flag = checkPyTriplets(A,n);\n System.out.println(flag);\n }", "public List<TypeCouplerMullion> filterCouplerMullion(Integer type, Integer orientation) {\n\n //List coupler mullions filter\n List<TypeCouplerMullion> couplerMullionsFilter = new ArrayList<TypeCouplerMullion>();\n if (couplerMullions != null) {\n for (TypeCouplerMullion typeCouplerMullion : this.couplerMullions) {\n\n //Filter by Type of coupler mullion\n if (typeCouplerMullion.getType().equals(type) && typeCouplerMullion.getOrientation().equals(orientation))\n couplerMullionsFilter.add(typeCouplerMullion);\n }\n }\n\n return couplerMullionsFilter;\n }", "public void permute(){\n if (pos == last) a.add(in);\n else {\n for (int ii = pos; ii <= last; ii++) {\n in = swap(in, pos, ii);\n pos += 1;\n permute();\n pos -= 1;\n in = swap(in, pos, ii);\n if (a.contains(in)) continue;\n else a.add(in);\n }\n }\n }", "protected List<Topic> doGetSupertypes(Collection<? extends Topic> types, boolean all, int offset, int limit, Comparator<Topic> comparator) {\r\n\t\tList<Topic> cache = HashUtil.getList(getParentIndex().getSupertypes(types, all));\r\n\t\tCollections.sort(cache, comparator);\r\n\t\treturn HashUtil.secureSubList(cache, offset, limit);\r\n\t}", "public static void main(String... args) {\n List<String> list = Arrays.asList(\"aap\", \"noot\", \"mies\");\n List<List<String>> perms = getPermutations(list);\n perms.forEach(System.out::println);\n }", "public static void main(String[] args) {\n List<Integer> numbers = Arrays.asList(1, 9, -9, -32234, 8932489);\n\n //vytvorim si dalsi list integerov a priradim mu .stream Array List numbers\n List<Integer> squeredNumbers = numbers.stream()\n // .filter ako for loop, prejde arrayom numbers ak je cislo vacsie ako tri\n // podmienka pokracuje\n .filter(i -> i > 3)\n // .map zobere hodnotu i ( je to cislo z mapy) a vynasoby ju rovnakou hodnotou\n .map(i -> i * i)\n // .cllect(Collectors.toList();\n .collect(Collectors.toList());\n // vytlacime stream funkciu\n System.out.println(squeredNumbers);\n }", "List<Mallscroerule> selectAll();", "private List<Set<BitSet>> buildPFunction(boolean[][] table, boolean[] coveredMinterms) {\n\n\t\tList<Set<BitSet>> pFunction = new ArrayList<>();\n\n\t\tfor (int i = 0; i < coveredMinterms.length; i++) {\n\n\t\t\tSet<BitSet> currentColumn = new LinkedHashSet<>();\n\n\t\t\tfor (int j = 0; j < table.length; j++) {\n\n\t\t\t\tif (table[j][i] && !coveredMinterms[i]) {\n\t\t\t\t\tBitSet current = new BitSet();\n\t\t\t\t\tcurrent.set(j);\n\t\t\t\t\tcurrentColumn.add(current);\n\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (currentColumn.size() > 0) {\n\t\t\t\tpFunction.add(currentColumn);\n\t\t\t}\n\t\t}\n\t\treturn pFunction;\n\t}", "public Set<String> listPerms(Long userId);", "public static void main(String[] args) {\n\t\tlong input = 600851475143L;\n\t\tList<Long> primeFactors = new ArrayList<Long>();\n\t\tfor (long i = 2; i < Math.sqrt(input); i++) {\n\t\t\tif (input % i == 0) {\n\t\t\t\tif (isPrime(i)) {\n\t\t\t\t\tprimeFactors.add(i);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(primeFactors);\n\n\t}", "public static void main(String[] args) {\n ArrayList<Integer> list=new ArrayList<>();\n list.add(1);\n list.add(2);\n list.add(3);\n list.add(4);\n list.add(5);\n Util res=new Util(list).filter(new Gt(),2).filter(new Gt(),3).filter(new Gt(),4);\n res.dis();\n }", "public static void main(String[] args) {\n\t\tresult = permutation(\"doggie\",\"god\");\r\n\t\tSystem.out.println(result);\r\n\t}", "public static LinkedList merge_mass_tolerance(LinkedList list, boolean ppm, double ppm_val) {\n\t\tHashMap final_map = new HashMap();\n\t\tLinkedList mass_list = new LinkedList();\n\t\tLinkedList final_list = new LinkedList();\n\t\tIterator itr = list.iterator();\n\t\twhile (itr.hasNext()) {\n\t\t\tCOMPOUND compound1 = (COMPOUND)itr.next();\n\t\t\tdouble mass = compound1.MASS.NUM * Math.pow(10, compound1.MASS.E);\n\t\t\tif (final_map.containsKey(mass)) {\n\t\t\t\tCOMPOUND old = (COMPOUND)final_map.get(mass);\n\t\t\t\t//System.out.println(\"Merge1: \" + compound1.TOTALPROB + \"\\t\" + old.TOTALPROB);\n\t\t\t\tcompound1.TOTALPROB = add(compound1.TOTALPROB, old.TOTALPROB);\t\t\t\t\n\t\t\t\tfinal_map.put(mass, compound1);\n\t\t\t} else {\n\t\t\t\tfinal_map.put(mass, compound1);\n\t\t\t\tmass_list.add(mass);\n\t\t\t}\n\t\t}\n\t\tdouble[] double_list = new double[mass_list.size()];\n\t\tint i = 0;\n\t\titr = mass_list.iterator();\n\t\twhile (itr.hasNext()) {\n\t\t\tdouble mass = (Double)itr.next();\n\t\t\tdouble_list[i] = mass;\n\t\t\ti++;\n\t\t}\n\t\tArrays.sort(double_list);\n\t\t//System.out.println(double_list.length);\n\t\t//final_map.clear();\n\t\t\n\t\tdouble mass1 = double_list[0];;\n\t\tfor (i = 1 ;i < double_list.length; i++) {\n\t\t\t\n\t\t\tdouble mass2 = double_list[i];\n\t\t\tCOMPOUND compound1 = (COMPOUND)final_map.get(mass1);\n\t\t\tCOMPOUND compound2 = (COMPOUND)final_map.get(mass2);\n\t\t\tboolean update = false;\n\t\t\tif (ppm) {\n\t\t\t\t//System.out.println(mass1 + \"\\t\" + mass2);\n\t\t\t\t//if (check_within_ppm(compound1.MASS, compound2.MASS, new BIGNUM(10))) {\n\t\t\t\tif (check_within_ppm(compound1.MASS, compound2.MASS, new BIGNUM(ppm_val))) {\n\t\t\t\t\tupdate = true;\n\t\t\t\t\t\n\t\t\t\t\tif (isGreater(compound1.TOTALPROB, compound2.TOTALPROB)) {\n\t\t\t\t\t\t//System.out.println(\"Merge2: \" + compound1.TOTALPROB.getString() + \"\\t\" + compound2.TOTALPROB.getString());\n\t\t\t\t\t\tcompound1.TOTALPROB = add(compound1.TOTALPROB, compound2.TOTALPROB);\n\t\t\t\t\t\tfinal_map.remove(mass2);\n\t\t\t\t\t\tfinal_map.put(mass1, compound1);\t\t\n\t\t\t\t\t\tmass1 = mass1;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tcompound2.TOTALPROB = add(compound1.TOTALPROB, compound2.TOTALPROB);\n\t\t\t\t\t\tfinal_map.remove(mass1);\n\t\t\t\t\t\tfinal_map.put(mass2, compound2);\n\t\t\t\t\t\tmass1 = mass2;\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\t//System.out.println(mass1 + \"\\t\" + mass2);\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t//if (within_distance(compound1.MASS, compound2.MASS, new BIGNUM(0.1))) {\n\t\t\t\tif (within_distance(compound1.MASS, compound2.MASS, new BIGNUM(ppm_val))) {\n\t\t\t\t\tupdate = true;\n\t\t\t\t\tif (isGreater(compound1.TOTALPROB, compound2.TOTALPROB)) {\n\t\t\t\t\t\t//System.out.println(\"Merge2: \" + compound1.TOTALPROB.getString() + \"\\t\" + compound2.TOTALPROB.getString());\n\t\t\t\t\t\tcompound1.TOTALPROB = add(compound1.TOTALPROB, compound2.TOTALPROB);\n\t\t\t\t\t\tfinal_map.remove(mass2);\n\t\t\t\t\t\tfinal_map.put(mass1, compound1);\n\t\t\t\t\t\tmass1 = mass1;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tcompound2.TOTALPROB = add(compound1.TOTALPROB, compound2.TOTALPROB);\n\t\t\t\t\t\tfinal_map.remove(mass1);\n\t\t\t\t\t\tfinal_map.put(mass2, compound2);\n\t\t\t\t\t\tmass1 = mass2;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t//System.out.println(\"Merge2: \" + compound1.TOTALPROB.getString() + \"\\t\" + compound2.TOTALPROB.getString());\n\t\t\t\t\t\n\t\t\t\t} else {\n\t\t\t\t\t//System.out.println(mass1 + \"\\t\" + mass2);\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (!update) {\n\t\t\t\tmass1 = mass2;\n\t\t\t}\n\t\t}\n\t\t//System.out.println(final_map.size());\n\t\ti = 0;\n\t\tdouble_list = new double[final_map.size()];\n\t\titr = final_map.keySet().iterator();\n\t\twhile (itr.hasNext()) {\n\t\t\tdouble mass = (Double)itr.next();\n\t\t\tdouble_list[i] = mass;\n\t\t\ti++;\n\t\t}\n\t\tArrays.sort(double_list);\n\t\tfor (double mass: double_list) {\n\t\t\tfinal_list.add(final_map.get(mass));\n\t\t}\n\n\t\treturn final_list;\n\t}", "private static List<Etudiant> suppressionDoublons(List<Etudiant> etudiants) {\n\t\tList<Etudiant> listEtu = new ArrayList<Etudiant>();\n\t\tfor (int i=0; i<etudiants.size(); i++) {\n\t\t\tEtudiant etudiant = etudiants.get(i);\n\t\t\tif(etudiant.getNom()!=null) {\n\t\t\t\tif (!listEtu.contains(etudiant))\n\t\t\t\t\tlistEtu.add(etudiant);\n\t\t\t}\n\t\t}\n\t\treturn listEtu;\n\t}", "public void permute(int testIndex){\n\t\tif(testIndex == maxNum){//Get one solution\n\t\t\t\tprint();//print the result square\n\t\t\t\tcount++;//count for the solution\n\t\t}else{\n\t\t\tfor(int i = 1; i <= maxNum; i++){//travsing all the number set\n\t\t\t\tm[testIndex] = i;//try each number\n\t\t\t\tif(checking(testIndex)){//call checking function\n\t\t\t\t\tpermute(testIndex + 1);//recursive to next state\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "List<Pair<Member, BigDecimal>> getGrossProductPerMember(StatisticalDTO dto) throws DaoException;", "public void matchingcouple()\r\n\t\t\t{\r\n\t\t\t\tSystem.out.println(\"Output :\");\r\n\t\t\t\t\r\n\t\t\t\tSystem.out.println(\"Following are the matching pairs \");\r\n\t\t\t\t\r\n\t\t\t\tfor(int i=0;i<womenmatchinlist.size();i++)\r\n\t\t\t\t{\r\n\t\t\t\t\r\n\t\t\t\t// print the matching pair from same index of men and women matching list\r\n\t\t\t\tSystem.out.println(menmatchinglist.get(i)+\" is engaged with \"+womenmatchinlist.get(i));\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}", "private void multiplication()\n\t{\n\t\tFun = Function.MULTIPLY; //Function set to determine what action should be taken later.\n\t\t\n\t\t\tsetLeftValue();\n\t\t\tentry.grabFocus();\n\t\t\n\t}", "public void groupingByMappingExample(){\n Map<String, List<Integer>> result = createPeople()\n .stream()\n .collect(groupingBy(Person::getName, mapping(Person::getAge,toList())));\n print.accept(result);\n }", "public static List<Double> selection(PolyPopulation pop, double cutoff) {\n\t\tint lastGenerationNum = pop.getGroupCapacity();\n\t\tList<PolyIndividual> nextGeneration = new ArrayList<>();\n\t\tList<Double> fitList = new ArrayList<>();\n\t\tList<Double> valueList = new ArrayList<>();\n\t\tList<Double> actValueList = new ArrayList<>();\n\t\tdouble max = 0.0;\n\t\tdouble totalFit = 0.0;\n\t\t//calculate the value of each individual in the population\n\t\tfor(int i = 0; i < pop.getGroupCapacity(); i++) {\n\t\t\tdouble val = f(pop.getIndis().get(i).getGenotype());\n\t\t\tvalueList.add(val);\n\t\t\t//get the Max value, use it\n\t\t\tif(i == 0) max = val;\n\t\t\telse if(val > max) max = val;\n\t\t}\n\t\t//based on the value insists now, calculate the fitness of each individual and their total fitness\n\t\tfor(int i = 0; i < pop.getGroupCapacity(); i++) {\n\t\t\tdouble fit = 1/(max - valueList.get(i) + 10);\n\t\t\tfitList.add(fit);\n\t\t\ttotalFit+=fit;\n\t\t}\n\t\t\n\t\twhile(nextGeneration.size() < lastGenerationNum*cutoff) {\t\t\t\n\t\t\tdouble selectionVal = Math.random();\n\t\t\tdouble accumulateVal = 0.0;\n\t\t\tfor(int i = 0; i < pop.getGroupCapacity(); i++) {\n\t\t\t\tif(selectionVal >= accumulateVal && selectionVal < (accumulateVal+fitList.get(i)/totalFit)) {\n\t\t\t\t\tnextGeneration.add(pop.getIndis().get(i));\n\t\t\t\t\tactValueList.add(valueList.get(i));\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\taccumulateVal+=(fitList.get(i)/totalFit);\n\t\t\t}\n\t\t}\n\t\tpop.setIndis(nextGeneration);\n\t\tpop.setGroupCapacity(nextGeneration.size());\n\t\treturn actValueList;\n\t}", "public void processLargeInList(Set values);", "public static List<Integer> productOfElementsWithoutDivision(List<Integer> inputs) {\n // Put inputs to a linked hash map with key == index\n Map<Integer, Integer> mapInputs = inputs.stream()\n .collect(LinkedHashMap::new, (map, ch) -> map.put(map.size(), ch) , Map::putAll);\n Set<Map.Entry<Integer, Integer>> setEntries = mapInputs.entrySet();\n return setEntries.stream().map(entry ->\n setEntries.stream()\n // Filter the map to exclude current value and multiple other inputs\n .filter(calculatedEntry -> !calculatedEntry.getKey().equals(entry.getKey()))\n .map(Map.Entry::getValue)\n .reduce(1, (currentProduct, nextValue) -> currentProduct * nextValue)\n ).collect(Collectors.toList());\n }", "public void generatePowerSets(List<Integer> input) {\n\t\t// validation. 2 power n should be in integer range .\n\t\tif (input.size() >= 31) {\n\t\t\treturn;\n\t\t}\n\t\tInteger maxLimit = 1 << input.size();\n\n\t\tList<Integer> result = new ArrayList<>();\n\t\tint index = 0;\n\t\tint count = 0;\n\t\tfor (int i = 0; i < maxLimit; i++) {\n\t\t\tint j = i;\n\t\t\tresult = new ArrayList<>();\n\t\t\twhile (j > 0) {\n\t\t\t\tindex = getBit(j & ~(j - 1));\n\t\t\t\tj = j & j - 1;\n\t\t\t\tresult.add(input.get(index - 1));\n\t\t\t}\n\t\t\t// print arraylist and get it ready for gc.\n\t\t\tSystem.out.print(count++ + \": \");\n\t\t\tfor (int x : result) {\n\t\t\t\tSystem.out.print(x + \",\");\n\t\t\t}\n\t\t\tSystem.out.println(\"\");\n\t\t\tresult = null;\n\t\t}\n\n\t}", "public List<String> filmsAvecPlat(String plat) {\n\n List<String> factures = nomsFactures();\n List<String> films = new ArrayList<String>();\n\n for (String facture : factures) {\n List<String> filmsFacture = getFilmsFromFacture(plat, facture);\n for (String film : filmsFacture) {\n films.add(film);\n }\n\n }\n\n return films;\n }", "public int searchTweetsKMP(String pattern, List<String> ans) {\n int compCost = 0;\n Assoc<Integer, Integer> holder;\n\n int[] flinks = new int[pattern.length() + 1];\n int flinkcost = StringMatch.buildKMP(pattern, flinks);\n compCost = flinkcost;\n\n for(String tweet : tweets) {\n\n //holder = StringMatch.matchKMP(pattern, tweet);\n holder = StringMatch.matchKMP(pattern.toLowerCase(), tweet.toLowerCase());\n compCost += holder.value - flinkcost;\n\n if(holder.key != -1)\n ans.add(tweet);\n }\n return compCost;\n }", "public static void main(String[] args) {\n\n\t\tArrayList<Integer> numbers = new ArrayList<Integer> ();\n\t\t\n\t\tfor(int i=1; i<=10; i++) {\n\t\t\tnumbers.add(i);\n\t\t}\n\t\t\n\t\tSystem.out.println(\"numbers \" + numbers);\n\t\t\n\t\tnumbers.stream().filter(num-> num%2==0).forEach(s->System.out.println(s));\n\t\tSystem.out.println(\"=========after map==========\");\n\t\tnumbers.stream().map(num->num+5).forEach(s->System.out.println(s));\n\t}", "public float[][] calcImmoniumPeaks(int min, int max, String seq, float[] mods, String filterIonTypes, int maxCharge, float dmass, float tol) {\n\t\tArrayList<Float> knownPeaks = calculatePeptideFragments(seq, mods, filterIonTypes, maxCharge, dmass);\n\t\t//ArrayList<Float> shiftedPeaks = new ArrayList<>();\n\t\t//for (Float peak : knownPeaks) //todo test?\n\t\t//\tshiftedPeaks.add(peak + dmass);\n\t\t//knownPeaks.addAll(shiftedPeaks);\n\n\t\tthis.averageIonMass = 0;\n\t\tArrayList<Peak> ps = new ArrayList<>();\n\t\tfor (int i = 0; i < peakMZ.length; i++) {\n\t\t\tif (peakMZ[i] > max) //todo remove min max\n\t\t\t\tbreak;\n\t\t\tif (peakMZ[i] > min) { //todo remove min max\n\t\t\t\tdouble absTol = peakMZ[i] * tol / 1000000;\n\t\t\t\tboolean skipFlag = false;\n\t\t\t\tfor (Float peak : knownPeaks) {\n\t\t\t\t\tif (Math.abs(peak - peakMZ[i]) < absTol) { //todo ppm tol\n\t\t\t\t\t\tskipFlag = true;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (skipFlag == false) {\n\t\t\t\t\tps.add(new Peak(peakMZ[i], peakInt[i], (float)absTol));\n\t\t\t\t\tthis.averageIonMass += peakMZ[i];\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tfloat[][] peaks = new float[ps.size()][3];\n\t\tfor (int i = 0; i < ps.size(); i++) {\n\t\t\tpeaks[i][0] = ps.get(i).MZ;\n\t\t\tpeaks[i][1] = ps.get(i).Int;\n\t\t\tpeaks[i][2] = ps.get(i).Tol;\n\t\t}\n\t\treturn peaks;\n\t}", "public static Set<Set<Polyomino>> tilings(ArrayList<Polyomino> polyominos_list,Polyomino P, boolean use_all_once, boolean rotations, boolean reflections) {\r\n\t\t\r\n\t\tHashMap<Integer, Square> hmap_P = new HashMap<Integer, Square>();\r\n\t\tSet<Integer> X= new HashSet<Integer>();\r\n\t\tSet<Set<Integer>> C= new HashSet<Set<Integer>>();\t\r\n\t\tSet<Set<Polyomino>> tilings = new HashSet<Set<Polyomino>>();\r\n\t\t\r\n\t\tif (use_all_once) {//quick check to see if there is a tiling of P using each tile exactly once: ( sum of area(tile) ) == area(P)\r\n\t\t\tint total_area=0;\r\n\t\t\tfor (Polyomino q: polyominos_list) total_area+=q.area;\r\n\t\t\tif (!(total_area==P.area)) return tilings;\r\n\t\t}\r\n\t\t\t\t\t\r\n\t\t//index squares of P\r\n\t\tfor (int i=0; i<P.vertices.size();i++) {\r\n\t\t\thmap_P.put(i+1,P.vertices.get(i));\r\n\t\t\tX.add(i+1);\r\n\t\t}\r\n\t\tif (use_all_once) {//we add extra elements to the ground set to ensure each polyomino is used exactly once\r\n\t\t\tfor (int j=0;j<polyominos_list.size();j++) {\r\n\t\t\t\tX.add(P.vertices.size()+j+1);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\t\r\n\t\t//we now define C\r\n\t\t//if A= set of (fixed/one-sided/free) polyominos of area n\r\n\t\t//C= union over Q in A of union of S subset of X corresponding to indices of squares of P covered by some translate of Q\r\n\t\t//to generate C, we iterate over the polyominos Q in A and we see, for each possible translation of Q,\r\n\t\t//if Q fits in P, in which case we record the indices of the squares of P it covers\r\n\t\t\r\n\t\tfor (int k=0; k<polyominos_list.size();k++) {\r\n\t\t\tPolyomino tile=polyominos_list.get(k);\r\n\t\t\t\r\n\t\t\tArrayList<Polyomino> orientations_of_tile=new ArrayList<Polyomino>();\r\n\t\t\tif (rotations && reflections) orientations_of_tile=tile.distinct_symmetries();\r\n\t\t\telse if (rotations) orientations_of_tile=tile.rotations();\r\n\t\t\telse if (reflections) orientations_of_tile=tile.reflections();\r\n\t\t\telse orientations_of_tile.add(tile);//if no rotations, the only possible orientation is the tile as it was given\r\n\t\t\r\n\t\t\tfor (Polyomino Q: orientations_of_tile) {\r\n\t\t\t\t//for each VALID translation of Q, we calculate the indices of squares of P which Q occupies, and add this to C\r\n\t\t\t\t//we choose some square of Q, which we will \"nail\" to the squares of P and see if Q fits in in P in that position\r\n\t\t\t\tSquare nail = Q.vertices.get(0);\r\n\t\t\t\tfor (Square s: P.vertices) {\r\n\t\t\t\t Set<Integer> indices_Q_translated= new HashSet<Integer>();\r\n\t\t\t\t boolean Q_fits_inP=true;\r\n\t\t\t\t\tfor (Square q: Q.vertices) {//lets check if this translation of Q fits in P\r\n\t\t\t\t\t\tSquare translated_q=new Square (q.x+s\r\n\t\t\t\t\t\t\t\t.x-nail.x,q.y+s.y-nail.y);\r\n\t\t\t\t\t\tif (!P.contains(translated_q)) {//check if square translated_q fits is in P\r\n\t\t\t\t\t\t\tQ_fits_inP=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\t\r\n\t\t\t\t\t\thmap_P.forEach((key, value) -> {//get index of square translated_q\r\n\t\t\t\t\t\t if (value.equals(translated_q)) {\r\n\t\t\t\t\t\t \tindices_Q_translated.add(key);\r\n\t\t\t\t\t\t \r\n\t\t\t\t\t\t }\r\n\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 (Q_fits_inP) {\r\n\t\t\t\t\t\t//we add an element which corresponds to putting a one in a dummy column in the exact cover matrix\r\n\t\t\t\t\t\tif (use_all_once) indices_Q_translated.add(k+P.vertices.size()+1); \r\n\t\t\t\t\t\tC.add(indices_Q_translated);\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\t//Initialization step complete, with complexity at least |polyominos_list|*4*area(P)*area(Q)*area(P)\r\n\t\t\r\n\t\tif(!(C.size()==0)) {\r\n\t\t\t\r\n\t\t\tint[][] M=Exact_cover.sets_to_matrix(X,C);\r\n\t\t\r\n\t\t\t//we add n columns (initialized to all zeros) to M where n=polyominos_list.size().\r\n\t\t\t//Each row of M corresponds to some translation of a polyomino Pk in polyominos_list-{P1,...,Pn}\r\n\t\t\t//in a such a row we place a 1 in the column k\r\n\t\t\t//any exact cover of M must then use each Pk exactly once \r\n\r\n\t\t\tDancingLinks dl = new DancingLinks(M);\r\n\t\t\tSet<Set<data_object>> exact_covers_data_objects=dl.exactCover(dl.master_header);\r\n\t\t\t\r\n\t\t\tfor (Set<data_object> cover_data_objects: exact_covers_data_objects) {\r\n\t\t\t\t\r\n\t\t\t\tSet<Set<Integer>> cover_sets=new HashSet<Set<Integer>>();\r\n\t\t\t\tfor (data_object t: cover_data_objects) cover_sets.add(dl.set_of_row.get(t.row_id));\r\n\t\t\t\t\r\n\t\t\t\tSet<Polyomino> T = new HashSet<Polyomino>();//a tiling, i.e a set of polyominos\r\n\t\t\t\t\r\n\t\t\t\tfor (Set<Integer> indices: cover_sets) {\r\n\t\t\t\t\tArrayList<Square> vertices= new ArrayList<Square>();\r\n\t\t\t\t\t//convert indices to corresponding squares of P, \r\n\t\t\t\t\t//and add the corresponding Polyomino R to T\r\n\t\t\t\t\t\r\n\t\t\t\t\tfor (int index: indices) {\r\n\t\t\t\t\t\tif (index<P.vertices.size()+1) {//if not a dummy index (in the case of use_all_once polyominos)\r\n\t\t\t\t\t\t\tvertices.add(hmap_P.get(index));\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\tT.add(new Polyomino(vertices,\"R\"));\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\ttilings.add(T);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn tilings;\r\n\t}", "public static void printPerfectNumbers(){\n\t\tfor(Long x:result){\n\t\t\tSystem.out.println(x);\n\t\t}\n\t}" ]
[ "0.51886815", "0.51469195", "0.4920031", "0.48541135", "0.47195193", "0.47003505", "0.4658819", "0.46122587", "0.45782688", "0.45628703", "0.45313787", "0.45245007", "0.44865876", "0.4480718", "0.44715896", "0.44583276", "0.44466063", "0.44011787", "0.43765354", "0.43585148", "0.43557167", "0.4338277", "0.43349656", "0.4313294", "0.43094015", "0.4287639", "0.4285489", "0.42787656", "0.4278171", "0.42501938", "0.42325783", "0.42242396", "0.42223483", "0.4213588", "0.4198752", "0.41977188", "0.41917428", "0.41886145", "0.41836986", "0.41810876", "0.41761935", "0.41744205", "0.41737267", "0.4172619", "0.41715366", "0.41682485", "0.4165713", "0.41647187", "0.41625667", "0.41589895", "0.4155795", "0.41512105", "0.4140235", "0.4133036", "0.41316414", "0.4131116", "0.41297895", "0.4121104", "0.41187975", "0.41115618", "0.41043642", "0.40964168", "0.40952748", "0.40933856", "0.4092188", "0.4090707", "0.4084735", "0.4074242", "0.40727118", "0.4070565", "0.40663347", "0.40643543", "0.4062821", "0.40596396", "0.4057157", "0.40495256", "0.4045568", "0.40422133", "0.40379938", "0.40305275", "0.40278074", "0.40273955", "0.4020422", "0.4015756", "0.40157133", "0.40066776", "0.40047282", "0.40022764", "0.39961204", "0.39905396", "0.39905235", "0.39852336", "0.39851543", "0.39835024", "0.39834562", "0.39829835", "0.3977406", "0.39747182", "0.39742103", "0.39699718" ]
0.7164455
0
return String.format("%.1f%% (%d/%d)", (100f (float) count / (float) total), count, total);
public String toString() { return String.format("%.1f%%", getPercentage()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private float getPercentage(int count, int total) {\n return ((float) count / total) * 100;\n }", "@Override\n public String toString() {\n return 100 * current / total + \"%\";\n }", "java.lang.String getPercentage();", "public String percentageProgress(float goalSavings, float currGoalPrice) {\n float percentageProgress = (goalSavings / currGoalPrice) * 100;\n DecimalFormat df = new DecimalFormat(\"#.##\");\n df.setRoundingMode(RoundingMode.CEILING);\n return \"[\" + df.format(percentageProgress) + \"%]\";\n }", "public String percentComplete() {\r\n\tdouble percent = ((double) bytesRead / (double) bytesLength);\r\n\tpercent *= 100;\r\n\treturn fmt.format(percent);\r\n }", "public static void main(String[] args) {\n\n String result = NumberFormat.getPercentInstance().format(0.1);// method chaining\n System.out.println(result);\n }", "private float calculateTip( float amount, int percent, int totalPeople ) {\n\t\tfloat result = (float) ((amount * (percent / 100.0 )) / totalPeople);\n\t\treturn result;\n\t}", "int getPercentageHeated();", "@Override\n public String getFormattedValue(float value, AxisBase axis) {\n String percent=Float.toString(value);\n percent = percent.substring(0,percent.length()-2);\n return percent+\"%\";\n }", "private void percent()\n\t{\n\t\tDouble percent;\t\t//holds the right value percentage of the left value\n\t\tString newText = \"\";//Holds the updated text \n\t\tif(calc.getLeftValue ( ) != 0.0 && Fun != null)\n\t\t{\n\t\t\tsetRightValue();\n\t\t\tpercent = calc.getRightValue() * 0.01 * calc.getLeftValue();\n\t\t\tleftValue = calc.getLeftValue();\n\t\t\tnewText += leftValue;\n\t\t\tswitch (Fun)\n\t\t\t{\n\t\t\t\tcase ADD:\n\t\t\t\t\tnewText += \" + \";\n\t\t\t\t\tbreak;\n\t\t\t\tcase SUBTRACT:\n\t\t\t\t\tnewText += \" - \";\n\t\t\t\t\tbreak;\n\t\t\t\tcase DIVIDE:\n\t\t\t\t\tnewText += \" / \";\n\t\t\t\t\tbreak;\n\t\t\t\tcase MULTIPLY:\n\t\t\t\t\tnewText += \" * \";\n\t\t\t\t\tbreak;\n\t\t\t}//end switch\n\t\t\t\n\t\t\tnewText += \" \" + percent;\n\t\t\tentry.setText(newText);\n\t\t\t\n\t\t}//end if\n\t\t\n\t}", "public String getPercentageformat() {\n\t\treturn this.percentageFormat = Math.round(this.percentage) + \"%\";\n\t}", "public static void main(String[] args) {\n \tdouble num1 = 7.15;\n \tdouble num2 = 10.0;\n\t\t// 创建一个数值格式化对象\n\t\tNumberFormat numberFormat = NumberFormat.getInstance();\n\t\tDecimalFormat decimalFormat = new DecimalFormat(\"#.00\");\n\t\t// 设置精确到小数点后2位\n\t\tnumberFormat.setMaximumFractionDigits(2);\n\t\tString result = numberFormat.format((num1 / num2 * 100));\n\t\tSystem.out.println(\"num1和num2的百分比为:\" + result + \"%\");\n\t\tSystem.out.println(\"num1和num2的百分比为:\" + decimalFormat.format(Double.valueOf(result)) + \"%\");\n\t}", "String calculateAttendancePercentage(int attended, int missing)\n {\n int total = attended + missing;\n\n float percent = ((float)attended / (float)total) * 100;\n\n DecimalFormat df = new DecimalFormat(\"#.#\");\n\n // return as a string\n String returnVal = \"Total Attendance: \\n\" + df.format(percent) + \"%\";\n\n return returnVal;\n }", "public double getPercentRem(){\n return ((double)freeSpace / (double)totalSpace) * 100d;\n }", "public static float calculatePercent(float numOfSpecificTrees, float totalTrees){\n\t\tfloat percent= numOfSpecificTrees/totalTrees*100;\n\t\treturn percent;\n\t\t\n\t}", "public float getPercentage(int n, int total) {\n\n float proportion = ((float) n) / ((float) total);\n\n return proportion * 100;\n }", "public void generatePercentage(Breakdown breakdown, double total) {\n\n ArrayList<HashMap<String, Breakdown>> list1 = breakdown.getBreakdown();\n for (HashMap<String, Breakdown> map : list1) {\n\n int count = Integer.parseInt(map.get(\"count\").getMessage());\n int percent = (int) Math.round((count * 100) / total);\n map.put(\"percent\", new Breakdown(\"\" + percent));\n\n }\n\n }", "public static String calculaPercentual(double valor, double total) {\n\n\t\tDecimalFormat fmt = new DecimalFormat(\"0.00\");\n\n\t\ttry {\n\n\t\t\treturn fmt.format((valor * 100) / total);\n\t\t} \n\t\tcatch (Exception e) {\n\n\t\t\treturn \"0,00\";\n\t\t}\n\t}", "public static String getPercent(int numerator, int denominator, Locale locale) {\n //http://docs.oracle.com/javase/tutorial/i18n/format/decimalFormat.html\n NumberFormat nf = NumberFormat.getNumberInstance(locale); //Locale.US, .....\n DecimalFormat df = (DecimalFormat) nf;\n df.applyPattern(\"###.#\");\n if (denominator == 0) {\n return df.format(0) + \"%\";\n }\n float percent = (numerator / (float) denominator) * 100;\n return df.format(percent) + \"%\";\n }", "public static String formatPercent( double percent ) {\n NumberFormat percentFormat = NumberFormat.getPercentInstance();\n \n return percentFormat.format( percent );\n }", "public static String getFormattedPercentage(double value) {\n return NumberFormat.getPercentInstance().format(value);\n }", "int getRemainderPercent();", "private String changeToPercent(String value, int AVG){\n String result;\n double d = Double.parseDouble(value)*100;\n double r = (d/AVG)*100;\n result = String.valueOf(round(r));\n return result;\n }", "public static String formatPercentage(double percentage) {\n return percentageDecimalFormat.format(percentage);\n }", "public static String calcularPercentual(String valor1, String valor2) {\r\n\r\n\t\tBigDecimal bigValor1 = new BigDecimal(valor1);\r\n\t\tBigDecimal bigValor2 = new BigDecimal(valor2 != null ? valor2 : \"1\");\r\n\r\n\t\tBigDecimal numeroCem = new BigDecimal(\"100\");\r\n\r\n\t\tBigDecimal primeiroNumero = bigValor1.multiply(numeroCem);\r\n\r\n\t\tBigDecimal resultado = primeiroNumero.divide(bigValor2, 2, BigDecimal.ROUND_HALF_UP);\r\n\r\n\t\treturn (resultado + \"\");\r\n\t}", "public double toPercent(double x){\n\t\treturn x/ 100;\n\t}", "public double getPercentRem(long used){\n long left = freeSpace - used;\n return ((double)left / (double)totalSpace) * 100d;\n }", "public int getPercentage() {\r\n return Percentage;\r\n }", "private String getProgressString(float progress) {\n if (mIsFloatProgress) {\n return FormatUtils.fastFormat(progress, mScale);\n }\n return String.valueOf(Math.round(progress));\n }", "public double getMainPercentage(){return mainPercentage;}", "public double getPercent() { return this.percentage; }", "public static String getPercentString(long size, long max) {\r\n\t\treturn (int)(((double)size / max) * 100.0d) + \"%\";\r\n\t}", "public Double getProgressPercent();", "private double fillPercent() {\n\t\tdouble percent = 0;\n\t\t\n\t\tfor (LinkedList<WordCode<K, V>> ll : myBuckets) {\n\t\t\tif (ll.size() != 0) percent++;\n\t\t}\n\t\treturn (percent / myBuckets.size()) * 100;\n\t}", "public String calcPushPercentage() {\n\t\tdouble totalPushes = 0;\n\t\t\n\t\tfor(HandStats h : handStats) {\n\t\t\tif(h.getHandOutcome().equals(\"PUSH!!\")) {\n\t\t\t\ttotalPushes += 1;\n\t\t\t}\n\t\t}\n\t\t\t \n\t\treturn (decimalFormat.format((totalPushes / handStats.size()) * 100) + \"%\");\t\n\t}", "public static String formatPercentage(Double percentage) {\n if (percentage == null) return \"\";\n return formatPercentage(percentage.doubleValue());\n }", "public double percentage(double value) {\n return basicCalculation(value, 100, Operator.DIVIDE);\n }", "double greenPercentage();", "public int percent() {\n\t\tdouble meters = meters();\n\t\tif (meters < MIN_METERS) {\n\t\t\treturn 0;\n\t\t}\n\t\treturn (int) (Math.pow((meters - MIN_METERS)\n\t\t\t\t/ (MAX_METERS - MIN_METERS) * Math.pow(100, CURVE),\n\t\t\t\t1.000d / CURVE));\n\t}", "public String getDollarString()\n\t{\n\t\treturn String.format(\"%01.2f\", (float)CurrentValue/100.0f);\n\t}", "private void displaySatistics()\r\n {\r\n DecimalFormat df = new DecimalFormat(\"#.##\");\r\n df.setRoundingMode(RoundingMode.FLOOR);\r\n double goodVal = ((double)this.good / (double)this.attemps) * 100;\r\n double reachVal = ((double)this.reachable / (double)this.attemps) * 100;\r\n double unreachVal = ((double)this.unreachable / (double)this.attemps) * 100;\r\n \r\n this.goodLabel.setText(df.format(goodVal)+ \" %\");\r\n this.reachableLabel.setText(df.format(reachVal) + \" %\");\r\n this.unreachableLabel.setText(df.format(unreachVal) + \" %\");\r\n \r\n }", "Float getFedAnimalsPercentage();", "public float getPercent() {\n return percent;\n }", "public static int getProgressPercentage(long currentDuration, long totalDuration){\r\n Double percentage = (double) 0;\r\n \r\n long currentSeconds = (int) (currentDuration / 1000);\r\n long totalSeconds = (int) (totalDuration / 1000);\r\n \r\n // calculating percentage\r\n percentage =(((double)currentSeconds)/totalSeconds)*100;\r\n \r\n // return percentage\r\n return percentage.intValue();\r\n }", "public String toString(){\n return numerator + \"/\" + denominator;\n }", "private static double printBill(double discountPercent) {\n double total = checkOrder();\n System.out.println();\n double discount;\n if (discountPercent != 0) {\n discount = total * discountPercent / 100;\n System.out.printf(\"%36s%2.0f%%%8s: %8.2f Baht%n\", \"\", discountPercent, \"Discount\", discount);\n total -= discount;\n }\n System.out.printf(\"%41s%2d%%%3s: %8.2f Baht%n\", \"\", 7, \"Vat\", total * 7 / 100);\n total += total * 7 / 100;\n System.out.printf(\"%47s: %8.2f Baht%n\", \"Net total\", total);\n return total;\n }", "String format(double balance);", "public void percentualGordura(){\n\n s0 = 4.95 / denscorp;\n s1 = s0 - 4.50;\n percentgord = s1 * 100;\n\n }", "double redPercentage();", "public float getGoodPercentage(){\n float result;\n try {\n result = ((float)(goodFrameCount)) / (goodFrameCount + badFrameCount)*100;\n Log.d(\"PROCESSING_SERVICE\", \"goodTimePercentage = \"+result);\n } catch(ArithmeticException ex){\n result = 100;\n Log.d(\"PROCESSING_SERVICE\", \"goodTimePercentage = \"+result);\n }\n Log.d(\"PROCESSING_SERVICE\", \"goodTimePercentage = \"+result);\n if(Float.isNaN(result)){\n Log.d(\"PROCESSING_SERVICE\", \"goodTimePercentage = \"+result);\n result=100;\n Log.d(\"PROCESSING_SERVICE\", \"goodTimePercentage = \"+result);\n }\n return result;\n }", "private String changeToPercentEgg(String value, int AVG){\n String result;\n double d = Double.parseDouble(value);\n double r = (d/AVG)*100;\n result = String.valueOf(round(r));\n return result;\n }", "public String getWinnerVotePercent(String state) {\r\n result = table.get(state);\r\n String winnerVotePercentage = result.get(2);// getting winner percentage from array list\r\n \r\n return winnerVotePercentage ;\r\n }", "public java.lang.String getPercentage() {\n java.lang.Object ref = percentage_;\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 percentage_ = s;\n }\n return s;\n }\n }", "public java.lang.String getPercentage() {\n java.lang.Object ref = percentage_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n percentage_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "private String createPercentage(String districtName, String line, HashMap<String, Integer> totalVotesHashMap){\n Integer total_votes = totalVotesHashMap.get(districtName);\n Integer votes = Integer.parseInt(line);\n\n return Double.toString(Math.round(Double.parseDouble(line) /\n Double.parseDouble(Integer.toString(totalVotesHashMap.get(districtName))) *\n 10000.0) / 100.0);\n }", "public static String formatTextCount(int count) throws Exception {\n String formattedCount = \"\";\n if (count >= 10000) {\n if (count % 1000 == 0) {\n formattedCount = \"\" + count / 1000 + \"k\";\n } else {\n double temp = ((double) count) / 1000.0;\n formattedCount = \"\" + (Math.round(temp * 100.0) % 100 == 0 ? Math.round(temp) : Math.round(temp * 100.0) / 100.0) + \"k\";\n }\n } else\n formattedCount = \"\" + count;\n return formattedCount;\n }", "public int getPercentage() {\r\n\r\n\t\treturn (getAmount() - offeredQuantity) / 100;\r\n\r\n\t}", "private double gradeQuiz() {\n int numCorrect = getNumberCorrect();\n double percentage = (numCorrect / numQuestions) * 100;\n return percentage;\n }", "private String getNotificationContent() {\n String format = \"Done %.2f%% - Success: %d - Fail: %d\";\n float percentage = (numberOfDone / numberOfData) * 100;\n return String.format(format, percentage, numberOfDone, numberOfFail);\n }", "public double getHitsPercentual()\n\t{\n\t\t//Convert int to double values\n\t\tdouble doubleHits = hits;\n\t\tdouble doubleTotalProcessedStops = totalProcessedStops;\n\t\t\n\t\t//Hits percentual obtained by Jsprit algorithm\n\t\treturn Math.round(100 * (doubleHits / doubleTotalProcessedStops));\n\t}", "@Override\n\tpublic String StatistiqueNbrRisuqe(){\n float m= accountRepository.NbrStatus(\"a risque\");\n float s=accountRepository.NbrStatus(\"Stable\");\n float res =( m / s)*100;\n return res+\"%\";\n\n\t}", "public String roundoutRatioToThree(double numerator, double denominator ) {\n\t\t\tDecimalFormat f = new DecimalFormat(\"#.###\");\n\t\t\treturn f.format(numerator/denominator); // this is String\n\t\t}", "private static void displayProgression(int progressionType, double firstElement,\n double commonDifOrRatio, int memberCount) {\n if (progressionType == 0) {\n System.out.print(\"\\nArithmetic progression:\");\n printIntOrDouble(firstElement);\n for (int i = 2; i <= memberCount; i++) {\n double curElement = firstElement + commonDifOrRatio * (i - 1);\n printIntOrDouble(curElement);\n }\n } else if (progressionType == 1) {\n System.out.print(\"\\nGeometric progression:\");\n printIntOrDouble(firstElement);\n double curElement = firstElement;\n for (int i = 2; i <= memberCount; i++) {\n curElement *= commonDifOrRatio;\n printIntOrDouble(curElement);\n }\n }\n }", "public int getProgressPercentage(long currentDuration, long totalDuration){\n\t\tDouble percentage = (double) 0;\n\t\t\n\t\tlong currentSeconds = (int) (currentDuration / 1000);\n\t\tlong totalSeconds = (int) (totalDuration / 1000);\n\t\t\n\t\t// calculating percentage\n\t\tpercentage =(((double)currentSeconds)/totalSeconds)*100;\n\t\t\n\t\t// return percentage\n\t\treturn percentage.intValue();\n\t}", "public String getLoserVotePercent(String state) {\r\n result = table.get(state);\r\n String loserVotePercentage = result.get(3);//getting loser percentage from array list\r\n \r\n \r\n return loserVotePercentage;\r\n }", "void spray(double percent)\n {\n roaches = (int) (roaches - (roaches * percent / 100));\n }", "public String generateLabel(CategoryDataset dataset, int series) {\r\n Integer value = dataset.getValue(series, 0).intValue();\r\n Comparable name = dataset.getRowKey(series);\r\n Double percent = ((full / total) * value);\r\n\r\n return name.toString() + \" = \" + value.toString() + \" -> \" + decimalFormat.format(percent) + \"%\";\r\n }", "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 static void main(String[] args) {\n\n\t\tint i = 80;\n\t\tint j = 20;\n\t\t\n\t\tdouble b = (double)(j)/(double)(i);\n\t\tdouble b_1 = b*100;\n\t\tSystem.out.println(b_1+\"%\");\n\t\t\n\t\tdouble b_2 = (double)(j)/(double)(i)*100;\n\t\tSystem.out.println(b_2+\"%\");\n\t\t\n\t\tdouble b_3 = (double)j/i;\n\t\tSystem.out.println(b_3);\n\t\tdouble b_4 =(double) b_3*100;\n\t\tSystem.out.println(b_4+\"%\");\n\t}", "private String calibrate(int count)\n {\n String str = \"\";\n if(count < 10)\n {\n str = \" \" + Integer.toString(count);\n }\n else if(count < 100)\n {\n str = \" \" + Integer.toString(count);\n }\n else if(count < 1000)\n {\n str = \" \" + Integer.toString(count);\n }\n else\n {\n str = Integer.toString(count);\n }\n\n return str;\n }", "public static void main(String[] args) {\n\t\tdouble x = 19923.3288;\n\t\tNumberFormat nf = NumberFormat.getNumberInstance();\n\t\tnf.setMinimumFractionDigits(2);\n\t\tnf.setMaximumFractionDigits(2);\n\t\tSystem.out.println(nf.format(x));\n\t\t\n\t\tdouble grade = .92;\n\t\tNumberFormat pf = NumberFormat.getPercentInstance();\n\t\tSystem.out.println(pf.format(grade));\n\n\t}", "@SuppressLint(\"DefaultLocale\")\n @Override\n public void onSeriesItemAnimationProgress(float percentComplete, float currentPosition) {\n float percentFilled = ((currentPosition - seriesItem1.getMinValue()) / (seriesItem1.getMaxValue() - seriesItem1.getMinValue()));\n //se lo pasamos al TextView\n tvPorciento.setText(String.format(\"%.0f%%\", percentFilled * 100f));\n }", "private static void barGraphPrinter(double total, double remaining) {\n int ratioBase = 58;\n int ratio = (int) Math.ceil((remaining / total) * ratioBase);\n System.out.println(REPRESENTATION_MSG);\n System.out.print(\"\\t\" + LEFT_BRACKET);\n for (int i = 0; i < ratio; i++) {\n System.out.print(X);\n }\n for (int i = ratio; i < 58; i++) {\n System.out.print(SPACE);\n }\n System.out.println(RIGHT_BRACKET);\n }", "private static String decimalFormatLabel(final long value, final long divider,\r\n\t\t\tfinal String unit) {\r\n\t\tfinal double result = divider > 1 ? (double) value / (double) divider\r\n\t\t\t\t: (double) value;\r\n\t\treturn new DecimalFormat(\"#,##0.#\").format(result) + \" \" + unit;\r\n\t}", "void total() {\r\n t=m1+m2+m3;\r\n per=t/3;\r\n System.out.println(\"total :\"+t);\r\n System.out.println(\"persentage:\"+per);\r\n \r\n \r\n }", "public static void main(String[] args) {\n\n int div, num1 = 50, num2 = 3;\n div = num1/num2;\n System.out.println(\"Total \" + div );\n\n }", "public float getPercentage() {\r\n\t\tif(!isValid)\r\n\t\t\treturn -1;\r\n\t\treturn percentage;\r\n\t}", "public double percent(double firstNumber, double secondNumber) {\n\t\tdouble result = firstNumber*(secondNumber/100);\n\t\treturn result;\n\t}", "public static double calculateValueInPercentage(double value) {\r\n return value * 0.01;\r\n }", "double getpercentage() {\n return this.percentage;\n }", "public int getPercentageComplete() {\n\t\tlong rawPercentage = (100*(System.currentTimeMillis() - startingTime))/(duration);\n\t\treturn rawPercentage >= 100 ? 100 : (int) rawPercentage;\n\t}", "public void onclickpercent(View v){\n Button b = (Button) v;\n String temp;\n double t;\n String y;\n displayscreen = screen.getText().toString();\n displayscreen2 = screen2.getText().toString();\n if (displayscreen.equals(\"\") && displayscreen2.equals(\"\")) //handle if display is empty\n return;\n else if (displayscreen.equals(\"\") && !displayscreen2.equals(\"\")) {\n temp = screen2.getText().toString();\n if (temp.contains(\"+\") || temp.contains(\"-\") || temp.contains(\"x\") || temp.contains(\"÷\")){ //handle if user inserts only operators\n return;}\n t = Double.valueOf(temp) /100.0;\n y=df2.format(t);\n screen.setText(y);\n String z=\"%\";\n screen2.setText(temp+z);\n }\n else\n {\n temp = screen.getText().toString();\n t = Double.valueOf(temp) /100.0;\n y=df2.format(t);\n screen.setText(y);\n String z=\"%\";\n screen2.setText(temp+z);\n }\n }", "private double calcScorePercent() {\n\t\tdouble adjustedLab = totalPP * labWeight;\n\t\tdouble adjustedProj = totalPP * projWeight;\n\t\tdouble adjustedExam = totalPP * examWeight;\n\t\tdouble adjustedCodeLab = totalPP * codeLabWeight;\n\t\tdouble adjustedFinal = totalPP * finalWeight;\n\n\t\tlabScore = (labScore / labPP) * adjustedLab;\n\t\tprojScore = (projScore / projPP) * adjustedProj;\n\t\texamScore = (examScore / examPP) * adjustedExam;\n\t\tcodeLabScore = (codeLabScore / codeLabPP) * adjustedCodeLab;\n\t\tfinalExamScore = (finalExamScore / finalExamPP) * adjustedFinal;\n\n//\t\tdouble labPercent = labScore / adjustedLab;\n//\t\tdouble projPercent = projScore / adjustedProj;\n//\t\tdouble examPercent = examScore / adjustedExam;\n//\t\tdouble codeLabPercent = codeLabScore / adjustedCodeLab;\n//\t\tdouble finalPercent = finalExamScore / adjustedFinal;\n\n\t\tdouble totalPercent = (labScore + projScore + examScore + codeLabScore + finalExamScore) / totalPP;\n\t\t\n\t\tscorePercent = totalPercent;\n\t\t\n\t\treturn totalPercent;\n\t}", "@Override\r\n public String toString()\r\n {\r\n this.reduce(); \r\n return \"(\" + numerator + \"/\" + denominator + \")\";\r\n }", "public static String probToString(double prob) {\n return String.format(\"%.2f\", Math.round(prob * 100.0) / 100.0);\n }", "public double getProgress()\n {\n return ((double)getCount() / (double)getGoal());\n }", "public double getPercentComplete() {\n\t\tthis.percent_complete = ((double) lines_produced / (double) height) * 100.0;\n\t\treturn this.percent_complete;\n\t}", "public double getPercent() {\r\n\t\treturn percent;\r\n\t}", "public void divide(int value) {\r\n\t\tif (value == 0) {\r\n\t\t\ttotal = 0;\r\n\t\t}\r\n\t\telse {\r\n\t\t\ttotal /= value;\r\n\t\t}\r\n\t\thistory += \" / \" + value;\r\n\t}", "public void setTotalCount(int total) {\r\n\t\tif(isValid)\r\n\t\t\tpercentage = count / (float) total;\r\n\t}", "public static String formatPercentage(Object number) {\n Objects.requireNonNull(number);\n NumberFormat format = NumberFormat.getNumberInstance();\n format.setMaximumFractionDigits(0);\n\n return format.format(number);\n }", "public Float percentComplete() {\n return this.percentComplete;\n }", "public int getOverallProgressPercent() {\n return overallProgressPercent;\n }", "public String toString(){\n\t\tfloat percent = (this.getNumer()/this.getDenom()) * (float)100;\n\t\tfloat dec = (this.getNumer()/this.getDenom());\n\t\tString words = this.getNumer() + \"/\" + this.getDenom();\n\t\treturn \"Fraction: \" + words + \", Percentage: \" + percent + \", Ratio: \" + dec;\n\t}", "@Override\n public void onProgress(float percent, SpeedTestReport report) {\n System.out.println(\"[PROGRESS] progress : \" + percent + \"%\");\n System.out.println(\"[PROGRESS] rate in octet/s : \" + report.getTransferRateOctet());\n System.out.println(\"[PROGRESS] rate in bit/s : \" + report.getTransferRateBit());\n }", "private static void computePercentage(int numberOfA[], int numberOfB[], int percentageOfB[]) {\n\t\tfor ( int i = 0; i < percentageOfB.length; i++ )\n\t\t\tpercentageOfB[i] = (int) Math.round( numberOfB[i] * 100.0 / ( numberOfB[i] + numberOfA[i] ));\n\t}", "public BigDecimal getPercentageProfitPStd();", "@Override\n public String getSavingsPercentage() {\n\n final String savingsPercent = getElement(getDriver(), By.className(SAVINGS_PERCENTAGE),\n TINY_TIMEOUT).getText();\n setLogString(\"Savings Percentage:\" + savingsPercent + \"%\", true, CustomLogLevel.HIGH);\n return savingsPercent + \"%\";\n }", "public static String percentBar(double hpPercent) {\r\n\t\tif (hpPercent > 0 && hpPercent <= 5) {\r\n\t\t\treturn ChatColor.RED + \"\" + ChatColor.BOLD + \"|\" + ChatColor.GRAY + ChatColor.BOLD + \"|||||||||||||||||||\";\r\n\t\t} else if (hpPercent > 5 && hpPercent <= 10) {\r\n\t\t\treturn ChatColor.RED + \"\" + ChatColor.BOLD + \"||\" + ChatColor.GRAY + ChatColor.BOLD + \"||||||||||||||||||\";\r\n\t\t} else if (hpPercent > 10 && hpPercent <= 15) {\r\n\t\t\treturn ChatColor.RED + \"\" + ChatColor.BOLD + \"|||\" + ChatColor.GRAY + ChatColor.BOLD + \"|||||||||||||||||\";\r\n\t\t} else if (hpPercent > 15 && hpPercent <= 20) {\r\n\t\t\treturn ChatColor.RED + \"\" + ChatColor.BOLD + \"||||\" + ChatColor.GRAY + ChatColor.BOLD + \"||||||||||||||||\";\r\n\t\t} else if (hpPercent > 20 && hpPercent <= 25) {\r\n\t\t\treturn ChatColor.RED + \"\" + ChatColor.BOLD + \"|||||\" + ChatColor.GRAY + ChatColor.BOLD + \"|||||||||||||||\";\r\n\t\t} else if (hpPercent > 25 && hpPercent <= 30) {\r\n\t\t\treturn ChatColor.RED + \"\" + ChatColor.BOLD + \"||||||\" + ChatColor.GRAY + ChatColor.BOLD + \"||||||||||||||\";\r\n\t\t} else if (hpPercent > 30 && hpPercent <= 35) {\r\n\t\t\treturn ChatColor.YELLOW + \"\" + ChatColor.BOLD + \"|||||||\" + ChatColor.GRAY + ChatColor.BOLD + \"|||||||||||||\";\r\n\t\t} else if (hpPercent > 35 && hpPercent <= 40) {\r\n\t\t\treturn ChatColor.YELLOW + \"\" + ChatColor.BOLD + \"||||||||\" + ChatColor.GRAY + ChatColor.BOLD + \"||||||||||||\";\r\n\t\t} else if (hpPercent > 40 && hpPercent <= 45) {\r\n\t\t\treturn ChatColor.YELLOW + \"\" + ChatColor.BOLD + \"|||||||||\" + ChatColor.GRAY + ChatColor.BOLD + \"|||||||||||\";\r\n\t\t} else if (hpPercent > 45 && hpPercent <= 50) {\r\n\t\t\treturn ChatColor.YELLOW + \"\" + ChatColor.BOLD + \"||||||||||\" + ChatColor.GRAY + ChatColor.BOLD + \"||||||||||\";\r\n\t\t} else if (hpPercent > 50 && hpPercent <= 55) {\r\n\t\t\treturn ChatColor.YELLOW + \"\" + ChatColor.BOLD + \"|||||||||||\" + ChatColor.GRAY + ChatColor.BOLD + \"|||||||||\";\r\n\t\t} else if (hpPercent > 55 && hpPercent <= 60) {\r\n\t\t\treturn ChatColor.YELLOW + \"\" + ChatColor.BOLD + \"||||||||||||\" + ChatColor.GRAY + ChatColor.BOLD + \"||||||||\";\r\n\t\t} else if (hpPercent > 60 && hpPercent <= 65) {\r\n\t\t\treturn ChatColor.GREEN + \"\" + ChatColor.BOLD + \"|||||||||||||\" + ChatColor.GRAY + ChatColor.BOLD + \"|||||||\";\r\n\t\t} else if (hpPercent > 65 && hpPercent <= 70) {\r\n\t\t\treturn ChatColor.GREEN + \"\" + ChatColor.BOLD + \"||||||||||||||\" + ChatColor.GRAY + ChatColor.BOLD + \"||||||\";\r\n\t\t} else if (hpPercent > 70 && hpPercent <= 75) {\r\n\t\t\treturn ChatColor.GREEN + \"\" + ChatColor.BOLD + \"|||||||||||||||\" + ChatColor.GRAY + ChatColor.BOLD + \"|||||\";\r\n\t\t} else if (hpPercent > 75 && hpPercent <= 80) {\r\n\t\t\treturn ChatColor.GREEN + \"\" + ChatColor.BOLD + \"||||||||||||||||\" + ChatColor.GRAY + ChatColor.BOLD + \"||||\";\r\n\t\t} else if (hpPercent > 80 && hpPercent <= 85) {\r\n\t\t\treturn ChatColor.GREEN + \"\" + ChatColor.BOLD + \"|||||||||||||||||\" + ChatColor.GRAY + ChatColor.BOLD + \"|||\";\r\n\t\t} else if (hpPercent > 85 && hpPercent <= 90) {\r\n\t\t\treturn ChatColor.GREEN + \"\" + ChatColor.BOLD + \"||||||||||||||||||\" + ChatColor.GRAY + ChatColor.BOLD + \"||\";\r\n\t\t} else if (hpPercent > 90 && hpPercent <= 95) {\r\n\t\t\treturn ChatColor.GREEN + \"\" + ChatColor.BOLD + \"||||||||||||||||||\" + ChatColor.GRAY + ChatColor.BOLD + \"||\";\r\n\t\t} else if (hpPercent > 95 && hpPercent <= 100) {\r\n\t\t\treturn ChatColor.GREEN + \"\" + ChatColor.BOLD + \"|||||||||||||||||||\" + ChatColor.GRAY + ChatColor.BOLD + \"|\";\r\n\t\t} else {\r\n\t\t\treturn ChatColor.GRAY + \"\" + ChatColor.BOLD + \"||||||||||||||||||||\";\r\n\t\t}\r\n\t}", "public double calculateHpPercent();" ]
[ "0.8208374", "0.7572909", "0.7214683", "0.7116265", "0.6838256", "0.6830796", "0.67271173", "0.66598505", "0.6656756", "0.66394365", "0.66030616", "0.6597638", "0.6586087", "0.65624154", "0.65504366", "0.6519044", "0.6463219", "0.64484143", "0.6432634", "0.63296473", "0.6314135", "0.63048637", "0.62478256", "0.61969775", "0.6176801", "0.6161781", "0.61451936", "0.612567", "0.60880464", "0.6082047", "0.60741454", "0.60653055", "0.6048769", "0.60036767", "0.6001015", "0.5993445", "0.59824294", "0.597203", "0.59609306", "0.5956397", "0.5956113", "0.59523654", "0.5947908", "0.59432197", "0.5942853", "0.59397763", "0.5922085", "0.5914247", "0.59068185", "0.5870856", "0.58614695", "0.58387184", "0.58134806", "0.5797869", "0.57904315", "0.5789955", "0.5769477", "0.57692426", "0.5762745", "0.57574594", "0.5739154", "0.5716395", "0.5716169", "0.57147926", "0.570948", "0.57046276", "0.56872874", "0.56811327", "0.56796753", "0.56659514", "0.5665796", "0.5656169", "0.56555456", "0.5651274", "0.56460875", "0.5635695", "0.56310433", "0.5630364", "0.5629691", "0.5622477", "0.5620922", "0.5620572", "0.56125635", "0.5611318", "0.5603183", "0.55924475", "0.5583131", "0.55824864", "0.55816233", "0.557874", "0.5571047", "0.5563268", "0.5561909", "0.55607516", "0.5559033", "0.5540598", "0.5533458", "0.5532994", "0.55266833", "0.5523591" ]
0.6981174
4