proto Shorty
The method prototype shorty. The shorty is a string that represents the return type and parameter types of a method in a compact form. The first character represents the return type, and the rest represent parameter types.
方法原型简写。简写是一个表示方法返回类型和参数类型的紧凑形式字符串。每个字符代表一种类型 第一个字符代表返回类型,其余字符代表参数类型。
'V': void
'Z': boolean
'B': byte
'S': short
'C': char
'I': int
'J': long
'F': float
'D': double
'L': Object/Object[]
protoShorty("VL") // void method(Object)
protoShorty("ZLL") // boolean method(Object, Object)
protoShorty("VILFD") // void method(int, Object, long, float, double)
protoShorty("LL") // Object method(Object) - also matches arrays
protoShorty("ILI") // int method(Object, int) - works for arrays too
protoShorty("LIL") // String[] method(int, String[])
Content copied to clipboard
Return
Parameters
shorty
method prototype shorty / 方法原型简写
The method prototype shorty. The shorty is a string that represents the return type and parameter types of a method in a compact form. The first character represents the return type, and the rest represent parameter types.
方法原型简写。简写是一个表示方法返回类型和参数类型的紧凑形式字符串。每个字符代表一种类型 第一个字符代表返回类型,其余字符代表参数类型。