docstring_tokens
list | code_tokens
list |
---|---|
[
"creates",
"a",
"nullable",
"and",
"undefine",
"-",
"able",
"value",
"of",
"the",
"given",
"type"
]
| [
"return",
"create",
"union",
"type",
"(",
"type",
",",
"get",
"native",
"type",
"(",
"j",
"s",
"type",
"native",
"void",
"type",
")",
",",
"get",
"native",
"type",
"(",
"j",
"s",
"type",
"native",
"null",
"type",
")",
")",
";"
]
|
[
"creates",
"a",
"union",
"type",
"whose",
"variants",
"are",
"the",
"arguments"
]
| [
"union",
"type",
"builder",
"builder",
"=",
"union",
"type",
"builder",
"create",
"(",
"this",
")",
";",
"for",
"(",
"j",
"s",
"type",
"type",
":",
"variants",
")",
"{",
"builder",
"add",
"alternate",
"(",
"type",
")",
";",
"}",
"return",
"builder",
"build",
"(",
")",
";"
]
|
[
"creates",
"a",
"union",
"type",
"whose",
"variants",
"are",
"the",
"built",
"-",
"in",
"types",
"specified",
"by",
"the",
"arguments"
]
| [
"union",
"type",
"builder",
"builder",
"=",
"union",
"type",
"builder",
"create",
"(",
"this",
")",
";",
"for",
"(",
"j",
"s",
"type",
"native",
"type",
"id",
":",
"variants",
")",
"{",
"builder",
"add",
"alternate",
"(",
"get",
"native",
"type",
"(",
"type",
"id",
")",
")",
";",
"}",
"return",
"builder",
"build",
"(",
")",
";"
]
|
[
"creates",
"an",
"enum",
"type"
]
| [
"return",
"new",
"enum",
"type",
"(",
"this",
",",
"name",
",",
"source",
",",
"elements",
"type",
")",
";"
]
|
[
"creates",
"an",
"arrow",
"type",
"an",
"abstract",
"representation",
"of",
"the",
"parameters",
"and",
"return",
"value",
"of",
"a",
"function"
]
| [
"return",
"new",
"arrow",
"type",
"(",
"this",
",",
"parameters",
"node",
",",
"return",
"type",
")",
";"
]
|
[
"creates",
"an",
"arrow",
"type",
"with",
"an",
"unknown",
"return",
"type"
]
| [
"return",
"new",
"arrow",
"type",
"(",
"this",
",",
"parameters",
"node",
",",
"null",
")",
";"
]
|
[
"creates",
"an",
"arrow",
"type",
"with",
"no",
"parameters",
"and",
"an",
"unknown",
"return",
"type"
]
| [
"return",
"new",
"arrow",
"type",
"(",
"this",
",",
"create",
"empty",
"params",
"(",
")",
",",
"null",
")",
";"
]
|
[
"creates",
"an",
"empty",
"parameter",
"list",
"node"
]
| [
"return",
"new",
"node",
"(",
"token",
"param",
"list",
")",
";"
]
|
[
"creates",
"a",
"function",
"type"
]
| [
"return",
"create",
"function",
"type",
"(",
"return",
"type",
",",
"create",
"parameters",
"(",
"parameter",
"types",
")",
")",
";"
]
|
[
"creates",
"a",
"function",
"type",
"the",
"last",
"parameter",
"type",
"of",
"the",
"function",
"is",
"considered",
"a",
"variable",
"length",
"argument"
]
| [
"return",
"create",
"function",
"type",
"(",
"return",
"type",
",",
"create",
"parameters",
"with",
"var",
"args",
"(",
"parameter",
"types",
")",
")",
";"
]
|
[
"creates",
"a",
"function",
"type",
"the",
"last",
"parameter",
"type",
"of",
"the",
"function",
"is",
"considered",
"a",
"variable",
"length",
"argument"
]
| [
"return",
"create",
"native",
"function",
"type",
"(",
"return",
"type",
",",
"create",
"parameters",
"with",
"var",
"args",
"(",
"parameter",
"types",
")",
")",
";"
]
|
[
"creates",
"a",
"function",
"type",
"in",
"which",
"{",
"@",
"code",
"this",
"}",
"refers",
"to",
"an",
"object",
"instance"
]
| [
"node",
"params",
"node",
"=",
"create",
"parameters",
"(",
"parameter",
"types",
"to",
"array",
"(",
"new",
"j",
"s",
"type",
"[",
"parameter",
"types",
"size",
"(",
")",
"]",
")",
")",
";",
"return",
"new",
"function",
"builder",
"(",
"this",
")",
"with",
"params",
"node",
"(",
"params",
"node",
")",
"with",
"return",
"type",
"(",
"return",
"type",
")",
"with",
"type",
"of",
"this",
"(",
"instance",
"type",
")",
"build",
"(",
")",
";"
]
|
[
"creates",
"a",
"tree",
"hierarchy",
"representing",
"a",
"typed",
"argument",
"list"
]
| [
"return",
"create",
"parameters",
"(",
"false",
",",
"parameter",
"types",
")",
";"
]
|
[
"creates",
"a",
"tree",
"hierarchy",
"representing",
"a",
"typed",
"argument",
"list"
]
| [
"function",
"param",
"builder",
"builder",
"=",
"new",
"function",
"param",
"builder",
"(",
"this",
")",
";",
"int",
"max",
"=",
"parameter",
"types",
"length",
"-",
"1",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"=",
"max",
";",
"i",
"+",
"+",
")",
"{",
"if",
"(",
"last",
"var",
"args",
"&",
"&",
"i",
"=",
"=",
"max",
")",
"{",
"builder",
"add",
"var",
"args",
"(",
"parameter",
"types",
"[",
"i",
"]",
")",
";",
"}",
"else",
"{",
"builder",
"add",
"required",
"params",
"(",
"parameter",
"types",
"[",
"i",
"]",
")",
";",
"}",
"}",
"return",
"builder",
"build",
"(",
")",
";"
]
|
[
"creates",
"a",
"tree",
"hierarchy",
"representing",
"a",
"typed",
"argument",
"list",
"the",
"last",
"parameter",
"type",
"is",
"considered",
"a",
"variable",
"length",
"argument"
]
| [
"return",
"create",
"parameters",
"(",
"true",
",",
"parameter",
"types",
")",
";"
]
|
[
"creates",
"a",
"tree",
"hierarchy",
"representing",
"a",
"typed",
"parameter",
"list",
"in",
"which",
"every",
"parameter",
"is",
"optional"
]
| [
"function",
"param",
"builder",
"builder",
"=",
"new",
"function",
"param",
"builder",
"(",
"this",
")",
";",
"builder",
"add",
"optional",
"params",
"(",
"parameter",
"types",
")",
";",
"return",
"builder",
"build",
"(",
")",
";"
]
|
[
"creates",
"a",
"new",
"function",
"type",
"based",
"on",
"an",
"existing",
"function",
"type",
"but",
"with",
"a",
"new",
"return",
"type"
]
| [
"return",
"new",
"function",
"builder",
"(",
"this",
")",
"copy",
"from",
"other",
"function",
"(",
"existing",
"function",
"type",
")",
"with",
"return",
"type",
"(",
"return",
"type",
")",
"build",
"(",
")",
";"
]
|
[
"create",
"an",
"object",
"type"
]
| [
"return",
"new",
"prototype",
"object",
"type",
"(",
"this",
",",
"name",
",",
"implicit",
"prototype",
")",
";"
]
|
[
"set",
"the",
"implicit",
"prototype",
"if",
"it",
"s",
"possible",
"to",
"do",
"so",
"there",
"are",
"a",
"few",
"different",
"reasons",
"why",
"this",
"could",
"be",
"a",
"no",
"-",
"op",
":",
"for",
"example",
"numbers",
"can",
"t",
"be",
"implicit",
"prototypes",
"and",
"we",
"don",
"t",
"want",
"to",
"change",
"the",
"implicit",
"prototype",
"if",
"other",
"classes",
"have",
"already",
"subclassed",
"this",
"one"
]
| [
"if",
"(",
"type",
"instanceof",
"prototype",
"object",
"type",
")",
"{",
"prototype",
"object",
"type",
"po",
"type",
"=",
"(",
"prototype",
"object",
"type",
")",
"type",
";",
"po",
"type",
"clear",
"cached",
"values",
"(",
")",
";",
"po",
"type",
"set",
"implicit",
"prototype",
"(",
"new",
"implicit",
"proto",
")",
";",
"}"
]
|
[
"creates",
"a",
"constructor",
"function",
"type"
]
| [
"check",
"argument",
"(",
"source",
"=",
"=",
"null",
"|",
"|",
"source",
"is",
"function",
"(",
")",
"|",
"|",
"source",
"is",
"class",
"(",
")",
")",
";",
"return",
"new",
"function",
"builder",
"(",
"this",
")",
"for",
"constructor",
"(",
")",
"with",
"name",
"(",
"name",
")",
"with",
"source",
"node",
"(",
"source",
")",
"with",
"params",
"node",
"(",
"parameters",
")",
"with",
"return",
"type",
"(",
"return",
"type",
")",
"with",
"template",
"keys",
"(",
"template",
"keys",
")",
"with",
"is",
"abstract",
"(",
"is",
"abstract",
")",
"build",
"(",
")",
";"
]
|
[
"creates",
"an",
"interface",
"function",
"type"
]
| [
"function",
"type",
"fn",
"=",
"new",
"function",
"builder",
"(",
"this",
")",
"for",
"interface",
"(",
")",
"with",
"name",
"(",
"name",
")",
"with",
"source",
"node",
"(",
"source",
")",
"with",
"empty",
"params",
"(",
")",
"with",
"template",
"keys",
"(",
"template",
"keys",
")",
"build",
"(",
")",
";",
"if",
"(",
"struct",
")",
"{",
"fn",
"set",
"struct",
"(",
")",
";",
"}",
"return",
"fn",
";"
]
|
[
"creates",
"a",
"template",
"type",
"map",
"from",
"the",
"specified",
"list",
"of",
"template",
"keys",
"and",
"template",
"value",
"types"
]
| [
"if",
"(",
"template",
"keys",
"=",
"=",
"null",
")",
"{",
"template",
"keys",
"=",
"immutable",
"list",
"of",
"(",
")",
";",
"}",
"if",
"(",
"template",
"values",
"=",
"=",
"null",
")",
"{",
"template",
"values",
"=",
"immutable",
"list",
"of",
"(",
")",
";",
"}",
"return",
"(",
"template",
"keys",
"is",
"empty",
"(",
")",
"&",
"&",
"template",
"values",
"is",
"empty",
"(",
")",
")",
"?",
"empty",
"template",
"type",
"map",
":",
"new",
"template",
"type",
"map",
"(",
"this",
",",
"template",
"keys",
",",
"template",
"values",
")",
";"
]
|
[
"creates",
"a",
"templatized",
"instance",
"of",
"the",
"specified",
"type",
"only",
"object",
"types",
"can",
"currently",
"be",
"templatized",
";",
"extend",
"the",
"logic",
"in",
"this",
"function",
"when",
"more",
"types",
"can",
"be",
"templatized"
]
| [
"immutable",
"list",
"builder",
"<",
"j",
"s",
"type",
">",
"builder",
"=",
"immutable",
"list",
"builder",
"(",
")",
";",
"template",
"type",
"map",
"base",
"template",
"type",
"map",
"=",
"base",
"type",
"get",
"template",
"type",
"map",
"(",
")",
";",
"for",
"(",
"template",
"type",
"key",
":",
"base",
"template",
"type",
"map",
"get",
"unfilled",
"template",
"keys",
"(",
")",
")",
"{",
"j",
"s",
"type",
"templatized",
"type",
"=",
"templatized",
"types",
"contains",
"key",
"(",
"key",
")",
"?",
"templatized",
"types",
"get",
"(",
"key",
")",
":",
"get",
"native",
"type",
"(",
"unknown",
"type",
")",
";",
"builder",
"add",
"(",
"templatized",
"type",
")",
";",
"}",
"return",
"create",
"templatized",
"type",
"(",
"base",
"type",
",",
"builder",
"build",
"(",
")",
")",
";"
]
|
[
"creates",
"a",
"templatized",
"instance",
"of",
"the",
"specified",
"type",
"only",
"object",
"types",
"can",
"currently",
"be",
"templatized",
";",
"extend",
"the",
"logic",
"in",
"this",
"function",
"when",
"more",
"types",
"can",
"be",
"templatized"
]
| [
"return",
"create",
"templatized",
"type",
"(",
"base",
"type",
",",
"immutable",
"list",
"copy",
"of",
"(",
"templatized",
"types",
")",
")",
";"
]
|
[
"creates",
"a",
"named",
"type"
]
| [
"return",
"new",
"named",
"type",
"(",
"scope",
",",
"this",
",",
"reference",
",",
"source",
"name",
",",
"lineno",
",",
"charno",
")",
";"
]
|
[
"identifies",
"the",
"name",
"of",
"a",
"typedef",
"or",
"enum",
"before",
"we",
"actually",
"declare",
"it"
]
| [
"check",
"not",
"null",
"(",
"name",
")",
";",
"non",
"nullable",
"type",
"names",
"add",
"(",
"name",
")",
";"
]
|
[
"registers",
"template",
"types",
"on",
"the",
"given",
"scope",
"root",
"this",
"takes",
"a",
"node",
"rather",
"than",
"a",
"static",
"scope",
"because",
"at",
"the",
"time",
"it",
"is",
"called",
"the",
"scope",
"has",
"not",
"yet",
"been",
"created"
]
| [
"for",
"(",
"template",
"type",
"key",
":",
"keys",
")",
"{",
"scoped",
"name",
"table",
"put",
"(",
"scope",
"root",
",",
"key",
"get",
"reference",
"name",
"(",
")",
",",
"key",
")",
";",
"}"
]
|
[
"returns",
"a",
"new",
"scope",
"that",
"includes",
"the",
"given",
"template",
"names",
"for",
"type",
"resolution",
"purposes"
]
| [
"return",
"new",
"synthetic",
"template",
"scope",
"(",
"scope",
",",
"templates",
")",
";"
]
|
[
"init"
]
| []
|
[
"start",
"workers"
]
| [
"sender",
"pool",
"=",
"use",
"aync",
"handler",
"?",
"executors",
"new",
"fixed",
"thread",
"pool",
"(",
"context",
"get",
"conf",
"(",
")",
"get",
"int",
"(",
"angel",
"conf",
"angel",
"matrixtransfer",
"server",
"sender",
"pool",
"size",
",",
"angel",
"conf",
"default",
"angel",
"matrixtransfer",
"server",
"sender",
"pool",
"size",
")",
")",
":",
"null",
";",
"worker",
"pool",
"=",
"use",
"aync",
"handler",
"?",
"executors",
"new",
"fixed",
"thread",
"pool",
"(",
"context",
"get",
"conf",
"(",
")",
"get",
"int",
"(",
"angel",
"conf",
"angel",
"matrixtransfer",
"server",
"worker",
"pool",
"size",
",",
"angel",
"conf",
"default",
"angel",
"matrixtransfer",
"server",
"worker",
"pool",
"size",
")",
")",
":",
"null",
";"
]
|
[
"stop"
]
| [
"if",
"(",
"sender",
"pool",
"!",
"=",
"null",
")",
"{",
"sender",
"pool",
"shutdown",
"now",
"(",
")",
";",
"}",
"if",
"(",
"worker",
"pool",
"!",
"=",
"null",
")",
"{",
"worker",
"pool",
"shutdown",
"now",
"(",
")",
";",
"}"
]
|
[
"register",
"a",
"netty",
"channel"
]
| [
"channel",
"states",
"put",
"(",
"channel",
",",
"new",
"atomic",
"boolean",
"(",
"false",
")",
")",
";"
]
|
[
"unregister",
"a",
"netty",
"channel"
]
| [
"channel",
"states",
"remove",
"(",
"channel",
")",
";"
]
|
[
"handler",
"rpc",
"request"
]
| [
"byte",
"buf",
"in",
"=",
"(",
"byte",
"buf",
")",
"msg",
";",
"int",
"client",
"id",
"=",
"in",
"read",
"int",
"(",
")",
";",
"int",
"token",
"=",
"in",
"read",
"int",
"(",
")",
";",
"int",
"seq",
"id",
"=",
"in",
"read",
"int",
"(",
")",
";",
"int",
"method",
"id",
"=",
"in",
"read",
"int",
"(",
")",
";",
"transport",
"method",
"method",
"=",
"transport",
"method",
"type",
"id",
"to",
"type",
"map",
"get",
"(",
"method",
"id",
")",
";",
"if",
"(",
"is",
"data",
"request",
"(",
"method",
")",
")",
"{",
"total",
"increment",
"and",
"get",
"(",
")",
";",
"running",
"context",
"before",
"(",
"client",
"id",
",",
"seq",
"id",
")",
";",
"running",
"context",
"relase",
"token",
"(",
"client",
"id",
",",
"token",
")",
";",
"}",
"boolean",
"use",
"async",
"=",
"need",
"async",
"(",
"method",
",",
"in",
")",
";",
"in",
"reset",
"reader",
"index",
"(",
")",
";",
"if",
"(",
"use",
"async",
")",
"{",
"worker",
"pool",
"execute",
"(",
"new",
"processor",
"(",
"(",
"byte",
"buf",
")",
"msg",
",",
"ctx",
")",
")",
";",
"}",
"else",
"{",
"handle",
"(",
"ctx",
",",
"msg",
",",
"true",
")",
";",
"}"
]
|
[
"check",
"the",
"request",
"is",
"a",
"simple",
"request",
":",
"has",
"short",
"processing",
"time"
]
| [
"if",
"(",
"!",
"use",
"aync",
"handler",
")",
"{",
"return",
"false",
";",
"}",
"if",
"(",
"method",
"=",
"=",
"transport",
"method",
"get",
"clocks",
"|",
"|",
"method",
"=",
"=",
"transport",
"method",
"update",
"clock",
")",
"{",
"return",
"false",
";",
"}",
"else",
"if",
"(",
"method",
"=",
"=",
"transport",
"method",
"index",
"get",
"row",
"|",
"|",
"method",
"=",
"=",
"transport",
"method",
"index",
"get",
"rows",
"|",
"|",
"method",
"=",
"=",
"transport",
"method",
"update",
")",
"{",
"partition",
"request",
"request",
"=",
"new",
"partition",
"request",
"(",
")",
";",
"request",
"deserialize",
"(",
"in",
")",
";",
"if",
"(",
"request",
"get",
"handle",
"elem",
"num",
"(",
")",
"<",
"=",
"sync",
"threshold",
")",
"{",
"return",
"false",
";",
"}",
"}",
"return",
"true",
";"
]
|
[
"send",
"the",
"rpc",
"result"
]
| [
"if",
"(",
"!",
"use",
"sync",
"&",
"&",
"use",
"aync",
"handler",
")",
"{",
"sender",
"pool",
"execute",
"(",
"new",
"sender",
"(",
"client",
"id",
",",
"seq",
"id",
",",
"method",
",",
"ctx",
",",
"result",
")",
")",
";",
"}",
"else",
"{",
"send",
"(",
"client",
"id",
",",
"seq",
"id",
",",
"method",
",",
"ctx",
",",
"result",
")",
";",
"}"
]
|
[
"is",
"the",
"ps",
"the",
"master",
"ps",
"for",
"a",
"partition"
]
| [
"return",
"!",
"part",
"loc",
"ps",
"locs",
"is",
"empty",
"(",
")",
"&",
"&",
"part",
"loc",
"ps",
"locs",
"get",
"(",
"0",
")",
"ps",
"id",
"equals",
"(",
"context",
"get",
"p",
"s",
"attempt",
"id",
"(",
")",
"get",
"ps",
"id",
"(",
")",
")",
";"
]
|
[
"get",
"clocks",
"for",
"all",
"matrices",
"partition"
]
| [
"map",
"<",
"partition",
"key",
",",
"integer",
">",
"clocks",
"=",
"context",
"get",
"clock",
"vector",
"manager",
"(",
")",
"get",
"part",
"clocks",
"from",
"cache",
"(",
")",
";",
"return",
"new",
"get",
"clocks",
"response",
"(",
"response",
"type",
"success",
",",
"null",
",",
"clocks",
")",
";"
]
|
[
"sets",
"the",
"current",
"state",
"of",
"this",
"piston"
]
| [
"set",
"data",
"(",
"(",
"byte",
")",
"(",
"powered",
"?",
"(",
"get",
"data",
"(",
")",
"|",
"0x",
"8",
")",
":",
"(",
"get",
"data",
"(",
")",
"&",
"~",
"0x",
"8",
")",
")",
")",
";"
]
|
[
"checks",
"if",
"this",
"piston",
"base",
"is",
"sticky",
"and",
"returns",
"true",
"if",
"so"
]
| [
"return",
"this",
"get",
"item",
"type",
"(",
")",
"=",
"=",
"material",
"piston",
"sticky",
"base",
";"
]
|
[
"check",
"the",
"indentation",
"of",
"the",
"conditional",
"expression"
]
| [
"final",
"detail",
"a",
"s",
"t",
"cond",
"ast",
"=",
"get",
"main",
"ast",
"(",
")",
"find",
"first",
"token",
"(",
"token",
"types",
"lparen",
")",
"get",
"next",
"sibling",
"(",
")",
";",
"final",
"indent",
"level",
"expected",
"=",
"new",
"indent",
"level",
"(",
"get",
"indent",
"(",
")",
",",
"get",
"basic",
"offset",
"(",
")",
")",
";",
"check",
"expression",
"subtree",
"(",
"cond",
"ast",
",",
"expected",
",",
"false",
",",
"false",
")",
";"
]
|
[
"returns",
"right",
"parenthesis",
"of",
"if",
"statement"
]
| [
"return",
"literal",
"if",
"ast",
"find",
"first",
"token",
"(",
"token",
"types",
"rparen",
")",
";"
]
|
[
"{"
]
| [
"return",
"meta",
"size",
"(",
")",
";"
]
|
[
"{"
]
| [
"return",
"parameter",
"(",
"param",
")",
"is",
"signed",
"(",
")",
";"
]
|
[
"{"
]
| [
"return",
"parameter",
"(",
"param",
")",
"precision",
"(",
")",
";"
]
|
[
"{"
]
| [
"return",
"parameter",
"(",
"param",
")",
"scale",
"(",
")",
";"
]
|
[
"{"
]
| [
"return",
"parameter",
"(",
"param",
")",
"type",
"(",
")",
";"
]
|
[
"{"
]
| [
"return",
"parameter",
"(",
"param",
")",
"type",
"name",
"(",
")",
";"
]
|
[
"{"
]
| [
"return",
"parameter",
"(",
"param",
")",
"type",
"class",
"(",
")",
";"
]
|
[
"{"
]
| [
"return",
"iface",
"!",
"=",
"null",
"&",
"&",
"iface",
"is",
"assignable",
"from",
"(",
"jdbc",
"thin",
"parameter",
"metadata",
"class",
")",
";"
]
|
[
"map",
"from",
"chunk",
"-",
"index",
"to",
"chunk",
"these",
"wrappers",
"are",
"making",
"custom",
"chunks"
]
| [
"public",
"abstract",
"chunk",
"chunk",
"for",
"chunk",
"idx",
"(",
"int",
"cidx",
")",
";"
]
|
[
"appends",
"a",
"space",
"to",
"this",
"query"
]
| [
"return",
"append",
"(",
"\"",
"\"",
")",
";"
]
|
[
"appends",
"an",
"object",
"to",
"this",
"query"
]
| [
"query",
"append",
"(",
"object",
")",
";",
"return",
"cast",
"this",
"(",
")",
";"
]
|
[
"appends",
"the",
"object",
"only",
"if",
"its",
"not",
"null"
]
| [
"if",
"(",
"object",
"!",
"=",
"null",
")",
"{",
"append",
"(",
"object",
")",
";",
"}",
"return",
"cast",
"this",
"(",
")",
";"
]
|
[
"appends",
"an",
"{",
"@",
"link",
"s",
"q",
"lite",
"type",
"}",
"to",
"this",
"query",
"based",
"on",
"the",
"class",
"passed",
"in"
]
| [
"return",
"append",
"s",
"q",
"lite",
"type",
"(",
"s",
"q",
"lite",
"type",
"get",
"(",
"type",
")",
")",
";"
]
|
[
"appends",
"the",
"{",
"@",
"link",
"s",
"q",
"lite",
"type",
"}",
"to",
"this",
"query"
]
| [
"return",
"append",
"(",
"sq",
"lite",
"type",
"name",
"(",
")",
")",
";"
]
|
[
"appends",
"a",
"value",
"only",
"if",
"it",
"s",
"not",
"empty",
"or",
"null"
]
| [
"if",
"(",
"value",
"!",
"=",
"null",
"&",
"&",
"value",
"length",
"(",
")",
">",
"0",
")",
"{",
"if",
"(",
"name",
"!",
"=",
"null",
")",
"{",
"append",
"(",
"name",
")",
";",
"}",
"append",
"space",
"separated",
"(",
"value",
")",
";",
"}",
"return",
"cast",
"this",
"(",
")",
";"
]
|
[
"only",
"appends",
"the",
"text",
"if",
"it",
"is",
"not",
"null",
"or",
"empty"
]
| [
"if",
"(",
"string",
"!",
"=",
"null",
"&",
"&",
"!",
"string",
"is",
"empty",
"(",
")",
")",
"{",
"append",
"(",
"string",
")",
";",
"}",
"return",
"cast",
"this",
"(",
")",
";"
]
|
[
"quotes",
"the",
"identifier",
"if",
"its",
"not",
"already",
"quoted"
]
| [
"if",
"(",
"name",
"!",
"=",
"null",
"&",
"&",
"!",
"is",
"quoted",
"(",
"name",
")",
")",
"{",
"return",
"quote",
"(",
"name",
")",
";",
"}",
"else",
"{",
"return",
"name",
";",
"}"
]
|
[
"helper",
"method",
"to",
"check",
"if",
"name",
"is",
"quoted"
]
| [
"return",
"(",
"quote",
"pattern",
"matcher",
"(",
"name",
")",
"find",
"(",
")",
")",
";"
]
|
[
"returns",
"a",
"string",
"containing",
"the",
"tokens",
"joined",
"by",
"delimiters"
]
| [
"string",
"builder",
"sb",
"=",
"new",
"string",
"builder",
"(",
")",
";",
"boolean",
"first",
"time",
"=",
"true",
";",
"for",
"(",
"object",
"token",
":",
"tokens",
")",
"{",
"if",
"(",
"first",
"time",
")",
"{",
"first",
"time",
"=",
"false",
";",
"}",
"else",
"{",
"sb",
"append",
"(",
"delimiter",
")",
";",
"}",
"sb",
"append",
"(",
"token",
")",
";",
"}",
"return",
"sb",
"to",
"string",
"(",
")",
";"
]
|
[
"returns",
"a",
"string",
"containing",
"the",
"tokens",
"joined",
"by",
"delimiters"
]
| [
"string",
"builder",
"sb",
"=",
"new",
"string",
"builder",
"(",
")",
";",
"boolean",
"first",
"time",
"=",
"true",
";",
"for",
"(",
"object",
"token",
":",
"tokens",
")",
"{",
"if",
"(",
"first",
"time",
")",
"{",
"first",
"time",
"=",
"false",
";",
"}",
"else",
"{",
"sb",
"append",
"(",
"delimiter",
")",
";",
"}",
"sb",
"append",
"(",
"token",
")",
";",
"}",
"return",
"sb",
"to",
"string",
"(",
")",
";"
]
|
[
"<",
"p",
">",
"the",
"path",
"to",
"the",
"user",
"for",
"more",
"information",
"about",
"paths",
"see",
"<",
"a",
"href",
"=",
"http",
":",
"/",
"/",
"docs",
"aws",
"amazon",
"com",
"/",
"iam",
"/",
"latest",
"/",
"user",
"guide",
"/",
"using",
"identifiers",
"html",
">",
"iam",
"identifiers",
"<",
"/",
"a",
">",
"in",
"the",
"<",
"i",
">",
"using",
"iam",
"<",
"/",
"i",
">",
"guide",
"<",
"/",
"p",
">"
]
| [
"set",
"path",
"(",
"path",
")",
";",
"return",
"this",
";"
]
|
[
"<",
"p",
">",
"the",
"friendly",
"name",
"identifying",
"the",
"user",
"<",
"/",
"p",
">"
]
| [
"set",
"user",
"name",
"(",
"user",
"name",
")",
";",
"return",
"this",
";"
]
|
[
"<",
"p",
">",
"the",
"stable",
"and",
"unique",
"string",
"identifying",
"the",
"user",
"for",
"more",
"information",
"about",
"i",
"ds",
"see",
"<",
"a",
"href",
"=",
"http",
":",
"/",
"/",
"docs",
"aws",
"amazon",
"com",
"/",
"iam",
"/",
"latest",
"/",
"user",
"guide",
"/",
"using",
"identifiers",
"html",
">",
"iam",
"identifiers",
"<",
"/",
"a",
">",
"in",
"the",
"<",
"i",
">",
"using",
"iam",
"<",
"/",
"i",
">",
"guide",
"<",
"/",
"p",
">"
]
| [
"set",
"user",
"id",
"(",
"user",
"id",
")",
";",
"return",
"this",
";"
]
|
[
"<",
"p",
">",
"the",
"date",
"and",
"time",
"in",
"<",
"a",
"href",
"=",
"http",
":",
"/",
"/",
"www",
"iso",
"org",
"/",
"iso",
"/",
"iso",
"8",
"6",
"0",
"1",
">",
"iso",
"8601",
"date",
"-",
"time",
"format",
"<",
"/",
"a",
">",
"when",
"the",
"user",
"was",
"created",
"<",
"/",
"p",
">"
]
| [
"set",
"create",
"date",
"(",
"create",
"date",
")",
";",
"return",
"this",
";"
]
|
[
"<",
"p",
">",
"a",
"list",
"of",
"the",
"inline",
"policies",
"embedded",
"in",
"the",
"user",
"<",
"/",
"p",
">"
]
| [
"if",
"(",
"user",
"policy",
"list",
"=",
"=",
"null",
")",
"{",
"user",
"policy",
"list",
"=",
"new",
"com",
"amazonaws",
"internal",
"sdk",
"internal",
"list",
"<",
"policy",
"detail",
">",
"(",
")",
";",
"}",
"return",
"user",
"policy",
"list",
";"
]
|
[
"<",
"p",
">",
"a",
"list",
"of",
"the",
"inline",
"policies",
"embedded",
"in",
"the",
"user",
"<",
"/",
"p",
">"
]
| [
"if",
"(",
"user",
"policy",
"list",
"=",
"=",
"null",
")",
"{",
"this",
"user",
"policy",
"list",
"=",
"null",
";",
"return",
";",
"}",
"this",
"user",
"policy",
"list",
"=",
"new",
"com",
"amazonaws",
"internal",
"sdk",
"internal",
"list",
"<",
"policy",
"detail",
">",
"(",
"user",
"policy",
"list",
")",
";"
]
|
[
"<",
"p",
">",
"a",
"list",
"of",
"the",
"inline",
"policies",
"embedded",
"in",
"the",
"user",
"<",
"/",
"p",
">",
"<",
"p",
">",
"<",
"b",
">",
"note",
":",
"<",
"/",
"b",
">",
"this",
"method",
"appends",
"the",
"values",
"to",
"the",
"existing",
"list",
"(",
"if",
"any",
")",
"use",
"{",
"@",
"link",
"#",
"set",
"user",
"policy",
"list",
"(",
"java",
"util",
"collection",
")",
"}",
"or",
"{",
"@",
"link",
"#",
"with",
"user",
"policy",
"list",
"(",
"java",
"util",
"collection",
")",
"}",
"if",
"you",
"want",
"to",
"override",
"the",
"existing",
"values",
"<",
"/",
"p",
">"
]
| [
"if",
"(",
"this",
"user",
"policy",
"list",
"=",
"=",
"null",
")",
"{",
"set",
"user",
"policy",
"list",
"(",
"new",
"com",
"amazonaws",
"internal",
"sdk",
"internal",
"list",
"<",
"policy",
"detail",
">",
"(",
"user",
"policy",
"list",
"length",
")",
")",
";",
"}",
"for",
"(",
"policy",
"detail",
"ele",
":",
"user",
"policy",
"list",
")",
"{",
"this",
"user",
"policy",
"list",
"add",
"(",
"ele",
")",
";",
"}",
"return",
"this",
";"
]
|
[
"<",
"p",
">",
"a",
"list",
"of",
"the",
"inline",
"policies",
"embedded",
"in",
"the",
"user",
"<",
"/",
"p",
">"
]
| [
"set",
"user",
"policy",
"list",
"(",
"user",
"policy",
"list",
")",
";",
"return",
"this",
";"
]
|
[
"<",
"p",
">",
"a",
"list",
"of",
"iam",
"groups",
"that",
"the",
"user",
"is",
"in",
"<",
"/",
"p",
">"
]
| [
"if",
"(",
"group",
"list",
"=",
"=",
"null",
")",
"{",
"group",
"list",
"=",
"new",
"com",
"amazonaws",
"internal",
"sdk",
"internal",
"list",
"<",
"string",
">",
"(",
")",
";",
"}",
"return",
"group",
"list",
";"
]
|
[
"<",
"p",
">",
"a",
"list",
"of",
"iam",
"groups",
"that",
"the",
"user",
"is",
"in",
"<",
"/",
"p",
">"
]
| [
"if",
"(",
"group",
"list",
"=",
"=",
"null",
")",
"{",
"this",
"group",
"list",
"=",
"null",
";",
"return",
";",
"}",
"this",
"group",
"list",
"=",
"new",
"com",
"amazonaws",
"internal",
"sdk",
"internal",
"list",
"<",
"string",
">",
"(",
"group",
"list",
")",
";"
]
|
[
"<",
"p",
">",
"a",
"list",
"of",
"iam",
"groups",
"that",
"the",
"user",
"is",
"in",
"<",
"/",
"p",
">",
"<",
"p",
">",
"<",
"b",
">",
"note",
":",
"<",
"/",
"b",
">",
"this",
"method",
"appends",
"the",
"values",
"to",
"the",
"existing",
"list",
"(",
"if",
"any",
")",
"use",
"{",
"@",
"link",
"#",
"set",
"group",
"list",
"(",
"java",
"util",
"collection",
")",
"}",
"or",
"{",
"@",
"link",
"#",
"with",
"group",
"list",
"(",
"java",
"util",
"collection",
")",
"}",
"if",
"you",
"want",
"to",
"override",
"the",
"existing",
"values",
"<",
"/",
"p",
">"
]
| [
"if",
"(",
"this",
"group",
"list",
"=",
"=",
"null",
")",
"{",
"set",
"group",
"list",
"(",
"new",
"com",
"amazonaws",
"internal",
"sdk",
"internal",
"list",
"<",
"string",
">",
"(",
"group",
"list",
"length",
")",
")",
";",
"}",
"for",
"(",
"string",
"ele",
":",
"group",
"list",
")",
"{",
"this",
"group",
"list",
"add",
"(",
"ele",
")",
";",
"}",
"return",
"this",
";"
]
|
[
"<",
"p",
">",
"a",
"list",
"of",
"iam",
"groups",
"that",
"the",
"user",
"is",
"in",
"<",
"/",
"p",
">"
]
| [
"set",
"group",
"list",
"(",
"group",
"list",
")",
";",
"return",
"this",
";"
]
|
[
"<",
"p",
">",
"a",
"list",
"of",
"the",
"managed",
"policies",
"attached",
"to",
"the",
"user",
"<",
"/",
"p",
">",
"<",
"p",
">",
"<",
"b",
">",
"note",
":",
"<",
"/",
"b",
">",
"this",
"method",
"appends",
"the",
"values",
"to",
"the",
"existing",
"list",
"(",
"if",
"any",
")",
"use",
"{",
"@",
"link",
"#",
"set",
"attached",
"managed",
"policies",
"(",
"java",
"util",
"collection",
")",
"}",
"or",
"{",
"@",
"link",
"#",
"with",
"attached",
"managed",
"policies",
"(",
"java",
"util",
"collection",
")",
"}",
"if",
"you",
"want",
"to",
"override",
"the",
"existing",
"values",
"<",
"/",
"p",
">"
]
| [
"if",
"(",
"this",
"attached",
"managed",
"policies",
"=",
"=",
"null",
")",
"{",
"set",
"attached",
"managed",
"policies",
"(",
"new",
"com",
"amazonaws",
"internal",
"sdk",
"internal",
"list",
"<",
"attached",
"policy",
">",
"(",
"attached",
"managed",
"policies",
"length",
")",
")",
";",
"}",
"for",
"(",
"attached",
"policy",
"ele",
":",
"attached",
"managed",
"policies",
")",
"{",
"this",
"attached",
"managed",
"policies",
"add",
"(",
"ele",
")",
";",
"}",
"return",
"this",
";"
]
|
[
"<",
"p",
">",
"a",
"list",
"of",
"the",
"managed",
"policies",
"attached",
"to",
"the",
"user",
"<",
"/",
"p",
">"
]
| [
"set",
"attached",
"managed",
"policies",
"(",
"attached",
"managed",
"policies",
")",
";",
"return",
"this",
";"
]
|
[
"<",
"p",
">",
"the",
"arn",
"of",
"the",
"policy",
"used",
"to",
"set",
"the",
"permissions",
"boundary",
"for",
"the",
"user",
"<",
"/",
"p",
">",
"<",
"p",
">",
"for",
"more",
"information",
"about",
"permissions",
"boundaries",
"see",
"<",
"a",
"href",
"=",
"https",
":",
"/",
"/",
"docs",
"aws",
"amazon",
"com",
"/",
"iam",
"/",
"latest",
"/",
"user",
"guide",
"/",
"access",
"policies",
"boundaries",
"html",
">",
"permissions",
"boundaries",
"for",
"iam",
"identities",
"<",
"/",
"a",
">",
"in",
"the",
"<",
"i",
">",
"iam",
"user",
"guide",
"<",
"/",
"i",
">",
"<",
"/",
"p",
">"
]
| [
"set",
"permissions",
"boundary",
"(",
"permissions",
"boundary",
")",
";",
"return",
"this",
";"
]
|
[
"<",
"p",
">",
"the",
"unique",
"name",
"of",
"the",
"typed",
"link",
"attribute",
"<",
"/",
"p",
">"
]
| [
"set",
"name",
"(",
"name",
")",
";",
"return",
"this",
";"
]
|
[
"<",
"p",
">",
"the",
"type",
"of",
"the",
"attribute",
"<",
"/",
"p",
">"
]
| [
"set",
"type",
"(",
"type",
")",
";",
"return",
"this",
";"
]
|
[
"<",
"p",
">",
"the",
"type",
"of",
"the",
"attribute",
"<",
"/",
"p",
">"
]
| [
"this",
"type",
"=",
"type",
"to",
"string",
"(",
")",
";",
"return",
"this",
";"
]
|
[
"<",
"p",
">",
"the",
"default",
"value",
"of",
"the",
"attribute",
"(",
"if",
"configured",
")",
"<",
"/",
"p",
">"
]
| [
"set",
"default",
"value",
"(",
"default",
"value",
")",
";",
"return",
"this",
";"
]
|
[
"<",
"p",
">",
"whether",
"the",
"attribute",
"is",
"mutable",
"or",
"not",
"<",
"/",
"p",
">"
]
| [
"set",
"is",
"immutable",
"(",
"is",
"immutable",
")",
";",
"return",
"this",
";"
]
|
[
"<",
"p",
">",
"validation",
"rules",
"that",
"are",
"attached",
"to",
"the",
"attribute",
"definition",
"<",
"/",
"p",
">"
]
| [
"set",
"rules",
"(",
"rules",
")",
";",
"return",
"this",
";"
]
|
[
"removes",
"all",
"the",
"entries",
"added",
"into",
"rules"
]
| [
"this",
"rules",
"=",
"null",
";",
"return",
"this",
";"
]
|
[
"<",
"p",
">",
"the",
"required",
"behavior",
"of",
"the",
"<",
"code",
">",
"typed",
"link",
"attribute",
"definition",
"<",
"/",
"code",
">",
"<",
"/",
"p",
">"
]
| [
"set",
"required",
"behavior",
"(",
"required",
"behavior",
")",
";",
"return",
"this",
";"
]
|
[
"<",
"p",
">",
"the",
"required",
"behavior",
"of",
"the",
"<",
"code",
">",
"typed",
"link",
"attribute",
"definition",
"<",
"/",
"code",
">",
"<",
"/",
"p",
">"
]
| [
"this",
"required",
"behavior",
"=",
"required",
"behavior",
"to",
"string",
"(",
")",
";",
"return",
"this",
";"
]
|
[
"check",
"whether",
"the",
"types",
"that",
"jca",
"injection",
"knows"
]
| [
"if",
"(",
"clz",
"equals",
"(",
"string",
"class",
")",
")",
"{",
"return",
"true",
";",
"}",
"else",
"if",
"(",
"clz",
"equals",
"(",
"byte",
"class",
")",
"|",
"|",
"clz",
"equals",
"(",
"byte",
"class",
")",
")",
"{",
"return",
"true",
";",
"}",
"else",
"if",
"(",
"clz",
"equals",
"(",
"short",
"class",
")",
"|",
"|",
"clz",
"equals",
"(",
"short",
"class",
")",
")",
"{",
"return",
"true",
";",
"}",
"else",
"if",
"(",
"clz",
"equals",
"(",
"int",
"class",
")",
"|",
"|",
"clz",
"equals",
"(",
"integer",
"class",
")",
")",
"{",
"return",
"true",
";",
"}",
"else",
"if",
"(",
"clz",
"equals",
"(",
"long",
"class",
")",
"|",
"|",
"clz",
"equals",
"(",
"long",
"class",
")",
")",
"{",
"return",
"true",
";",
"}",
"else",
"if",
"(",
"clz",
"equals",
"(",
"float",
"class",
")",
"|",
"|",
"clz",
"equals",
"(",
"float",
"class",
")",
")",
"{",
"return",
"true",
";",
"}",
"else",
"if",
"(",
"clz",
"equals",
"(",
"double",
"class",
")",
"|",
"|",
"clz",
"equals",
"(",
"double",
"class",
")",
")",
"{",
"return",
"true",
";",
"}",
"else",
"if",
"(",
"clz",
"equals",
"(",
"boolean",
"class",
")",
"|",
"|",
"clz",
"equals",
"(",
"boolean",
"class",
")",
")",
"{",
"return",
"true",
";",
"}",
"else",
"if",
"(",
"clz",
"equals",
"(",
"char",
"class",
")",
"|",
"|",
"clz",
"equals",
"(",
"character",
"class",
")",
")",
"{",
"return",
"true",
";",
"}",
"else",
"if",
"(",
"clz",
"equals",
"(",
"inet",
"address",
"class",
")",
")",
"{",
"return",
"true",
";",
"}",
"else",
"if",
"(",
"clz",
"equals",
"(",
"class",
"class",
")",
")",
"{",
"return",
"true",
";",
"}",
"else",
"if",
"(",
"clz",
"equals",
"(",
"properties",
"class",
")",
")",
"{",
"return",
"true",
";",
"}",
"return",
"false",
";"
]
|
[
"connects",
"to",
"the",
"pdi",
"repository"
]
| [
"return",
"repository",
"factory",
"connect",
"(",
"repository",
"name",
")",
";"
]
|
[
"gets",
"the",
"type",
"of",
"this",
"item"
]
| [
"return",
"get",
"type",
"0",
"(",
"get",
"type",
"id",
"(",
")",
")",
";"
]
|
[
"gets",
"the",
"type",
"id",
"of",
"this",
"item"
]
| [
"return",
"type",
";"
]
|
[
"sets",
"the",
"type",
"id",
"of",
"this",
"item",
"<",
"p",
">",
"note",
"that",
"in",
"doing",
"so",
"you",
"will",
"reset",
"the",
"material",
"data",
"for",
"this",
"stack"
]
| [
"this",
"type",
"=",
"type",
";",
"if",
"(",
"this",
"meta",
"!",
"=",
"null",
")",
"{",
"this",
"meta",
"=",
"bukkit",
"get",
"item",
"factory",
"(",
")",
"as",
"meta",
"for",
"(",
"meta",
",",
"get",
"type",
"0",
"(",
")",
")",
";",
"}",
"create",
"data",
"(",
"(",
"byte",
")",
"0",
")",
";"
]
|
[
"gets",
"the",
"material",
"data",
"for",
"this",
"stack",
"of",
"items"
]
| [
"material",
"mat",
"=",
"get",
"type",
"(",
")",
";",
"if",
"(",
"data",
"=",
"=",
"null",
"&",
"&",
"mat",
"!",
"=",
"null",
"&",
"&",
"mat",
"get",
"data",
"(",
")",
"!",
"=",
"null",
")",
"{",
"data",
"=",
"mat",
"get",
"new",
"data",
"(",
"(",
"byte",
")",
"this",
"get",
"durability",
"(",
")",
")",
";",
"}",
"return",
"data",
";"
]
|
[
"sets",
"the",
"durability",
"of",
"this",
"item"
]
| [
"this",
"durability",
"=",
"durability",
";"
]
|
[
"gets",
"the",
"durability",
"of",
"this",
"item"
]
| [
"return",
"durability",
";"
]
|
[
"get",
"the",
"maximum",
"stacksize",
"for",
"the",
"material",
"hold",
"in",
"this",
"item",
"stack",
"(",
"returns",
"-",
"1",
"if",
"it",
"has",
"no",
"idea",
")"
]
| [
"material",
"material",
"=",
"get",
"type",
"(",
")",
";",
"if",
"(",
"material",
"!",
"=",
"null",
")",
"{",
"return",
"material",
"get",
"max",
"stack",
"size",
"(",
")",
";",
"}",
"return",
"-",
"1",
";"
]
|
[
"this",
"method",
"is",
"the",
"same",
"as",
"equals",
"but",
"does",
"not",
"consider",
"stack",
"size",
"(",
"amount",
")"
]
| [
"if",
"(",
"stack",
"=",
"=",
"null",
")",
"{",
"return",
"false",
";",
"}",
"if",
"(",
"stack",
"=",
"=",
"this",
")",
"{",
"return",
"true",
";",
"}",
"return",
"get",
"type",
"id",
"(",
")",
"=",
"=",
"stack",
"get",
"type",
"id",
"(",
")",
"&",
"&",
"get",
"durability",
"(",
")",
"=",
"=",
"stack",
"get",
"durability",
"(",
")",
"&",
"&",
"has",
"item",
"meta",
"(",
")",
"=",
"=",
"stack",
"has",
"item",
"meta",
"(",
")",
"&",
"&",
"(",
"has",
"item",
"meta",
"(",
")",
"?",
"bukkit",
"get",
"item",
"factory",
"(",
")",
"equals",
"(",
"get",
"item",
"meta",
"(",
")",
",",
"stack",
"get",
"item",
"meta",
"(",
")",
")",
":",
"true",
")",
";"
]
|
[
"checks",
"if",
"this",
"item",
"stack",
"contains",
"the",
"given",
"{",
"@",
"link",
"enchantment",
"}"
]
| [
"return",
"meta",
"=",
"=",
"null",
"?",
"false",
":",
"meta",
"has",
"enchant",
"(",
"ench",
")",
";"
]
|
[
"gets",
"the",
"level",
"of",
"the",
"specified",
"enchantment",
"on",
"this",
"item",
"stack"
]
| [
"return",
"meta",
"=",
"=",
"null",
"?",
"0",
":",
"meta",
"get",
"enchant",
"level",
"(",
"ench",
")",
";"
]
|
[
"gets",
"a",
"map",
"containing",
"all",
"enchantments",
"and",
"their",
"levels",
"on",
"this",
"item"
]
| [
"return",
"meta",
"=",
"=",
"null",
"?",
"immutable",
"map",
"<",
"enchantment",
",",
"integer",
">",
"of",
"(",
")",
":",
"meta",
"get",
"enchants",
"(",
")",
";"
]
|
[
"adds",
"the",
"specified",
"enchantments",
"to",
"this",
"item",
"stack",
"in",
"an",
"unsafe",
"manner",
"<",
"p",
">",
"this",
"method",
"is",
"the",
"same",
"as",
"calling",
"{",
"@",
"link",
"#",
"add",
"unsafe",
"enchantment",
"(",
"org",
"bukkit",
"enchantments",
"enchantment",
"int",
")",
"}",
"for",
"each",
"element",
"of",
"the",
"map"
]
| [
"for",
"(",
"map",
"entry",
"<",
"enchantment",
",",
"integer",
">",
"entry",
":",
"enchantments",
"entry",
"set",
"(",
")",
")",
"{",
"add",
"unsafe",
"enchantment",
"(",
"entry",
"get",
"key",
"(",
")",
",",
"entry",
"get",
"value",
"(",
")",
")",
";",
"}"
]
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.