aafbd412创建于 2024年2月18日历史提交
public class Solo<T> {}
Solo<Integer> val = new Solo<Integer>();
Duo<Double, Character> dual = new Duo<Double, Character>(12.2585, 'C');

----------------------------------------------------

[
	["keyword", "public"],
	["keyword", "class"],
	["class-name", ["Solo"]],
	["generics", [
		["punctuation", "<"],
		"T",
		["punctuation", ">"]
	]],
	["punctuation", "{"],
	["punctuation", "}"],
	"\r\nSolo",
	["generics", [
		["punctuation", "<"],
		"Integer",
		["punctuation", ">"]
	]],
	" val ",
	["operator", "="],
	["keyword", "new"],
	["class-name", ["Solo"]],
	["generics", [
		["punctuation", "<"],
		"Integer",
		["punctuation", ">"]
	]],
	["punctuation", "("],
	["punctuation", ")"],
	["punctuation", ";"],
	"\r\nDuo",
	["generics", [
		["punctuation", "<"],
		"Double",
		["punctuation", ","],
		" Character",
		["punctuation", ">"]
	]],
	" dual ",
	["operator", "="],
	["keyword", "new"],
	["class-name", ["Duo"]],
	["generics", [
		["punctuation", "<"],
		"Double",
		["punctuation", ","],
		" Character",
		["punctuation", ">"]
	]],
	["punctuation", "("],
	["number", "12.2585"],
	["punctuation", ","],
	["string", "'C'"],
	["punctuation", ")"],
	["punctuation", ";"]
]

----------------------------------------------------

Checks for generics.