public MethodExtraInfo(MethodNode method) { this.isStatic = (method.access & Opcodes.ACC_STATIC) != 0; this.returnType = typeWithoutGenerics(normalize(Type.getReturnType(method.desc))); }
public Type getReturnType() { return Type.getReturnType(desc); }
public Type getReturnType() { return Type.getReturnType(desc); }
public InitialContextMV(int access, String desc, MethodVisitor mv, String classname, String methodname, String methoddesc) { super(ASM7, access, desc, mv); this.returnType = Type.getReturnType(desc); }
public CallOrRunMV(int access, String name, String desc, MethodVisitor mv) { super(ASM7, access, desc, mv); this.name = name; this.desc = desc; this.returnType = Type.getReturnType(desc); }
public ApiCallResponseObjectInitMV(String className, int access, String name, String desc, MethodVisitor mv) { super(ASM7, access, desc, mv); this.className = className; this.name = name; this.desc = desc; this.returnType = Type.getReturnType(desc); }
public GetKeyBytesMV(int access, String className, String name, String desc, MethodVisitor mv) { super(ASM7, access, desc, mv); this.className = className; this.name = name; this.desc = desc; this.returnType = Type.getReturnType(desc); }
public FacotoryMV(int access, String name, String desc, MethodVisitor mv) { super(ASM7, access, desc, mv); this.name = name; this.desc = desc; this.returnType = Type.getReturnType(desc); }
public CapReturnMV(int access, String desc, MethodVisitor mv, String classname, String methodname, String methoddesc, boolean isStatic) { super(ASM7, access, desc, mv); this.returnType = Type.getReturnType(desc); this.className = classname; this.methodName = methodname; this.methodDesc = methoddesc; this.isStatic = isStatic; }
public DataSourceMV(int access, String desc, MethodVisitor mv, String className, String methodName) { super(ASM7,access, desc, mv); this.returnType = Type.getReturnType(desc); this.className = className; this.methodName = methodName; this.methodDesc = desc; }
public SendCommandMV(int access, String name, String desc, MethodVisitor mv) { super(ASM7, access, desc, mv); this.name = name; this.desc = desc; this.returnType = Type.getReturnType(desc); }
public MethodBodyInsertor(MethodVisitor mv, String className, String desc, boolean isStatic, String methodId, String name, int access) { super(Opcodes.ASM5, mv, access, name, desc); this.className = className; this.returnType = Type.getReturnType(desc); Type[] argsType = Type.getArgumentTypes(desc); for (Type type : argsType) { paramsTypeClass.add(type); } this.isStatic = isStatic; this.methodId = methodId; }
private Method build(MtdInfo mapTo) { Type[] ts = Type.getArgumentTypes(mapTo.desc); String ss[] = new String[ts.length]; for (int i = 0; i < ss.length; i++) { ss[i] = ts[i].getDescriptor(); } return new Method(mapTo.owner, mapTo.name, ss, Type.getReturnType(mapTo.desc).getDescriptor()); }
IrMethod populate(String owner, MethodNode source) { IrMethod target = new IrMethod(); target.name = source.name; target.owner = "L" + owner + ";"; target.ret = Type.getReturnType(source.desc).getDescriptor(); Type[] args = Type.getArgumentTypes(source.desc); String sArgs[] = new String[args.length]; target.args = sArgs; for (int i = 0; i < args.length; i++) { sArgs[i] = args[i].getDescriptor(); } target.isStatic = 0 != (source.access & Opcodes.ACC_STATIC); return target; }
public static MethodSignature parse(String internalString) { int parenStart = internalString.indexOf('('); int methodStart = internalString.lastIndexOf('/', parenStart); String className = internalString.substring(0, methodStart).replace('/', '.'); String methodName = internalString.substring(methodStart + 1, parenStart); String methodDescriptor = internalString.substring(parenStart); Type[] argumentTypes = Type.getArgumentTypes(methodDescriptor); String[] paramTypes = new String[argumentTypes.length]; for (int i = 0; i < argumentTypes.length; i++) { paramTypes[i] = argumentTypes[i].getClassName(); } final String returnType = Type.getReturnType(methodDescriptor).getClassName(); return new MethodSignature(className, methodName, paramTypes, returnType); }
String remapParams(String desc) { StringBuilder buf = new StringBuilder(); buf.append("("); for (Type type : Type.getArgumentTypes(desc)) { buf.append(remapParamType(type)); } buf.append(")"); buf.append(remapParamType(Type.getReturnType(desc))); return buf.toString(); }
public StExecuteMV(int access, String desc, MethodVisitor mv, String owner, String name) { super(ASM7, access, desc, mv); this.returnType = Type.getReturnType(desc); this.desc = desc; this.methodType = methodType(name); }
public PsExecuteMV(int access, String desc, MethodVisitor mv, String owner,String name) { super(ASM7,access, desc, mv); this.owner = owner; this.returnType = Type.getReturnType(desc); this.desc = desc; this.methodType = StExecuteMV.methodType(name); } private Label startFinally = new Label();
public static void main(String[] args) { Type type = Type.getReturnType("(Z)[I"); System.out.println("type = " + type.getSort()); System.out.println("dim = " + type.getDimensions()); System.out.println("element = " + type.getElementType()); }
private void addMethodDesc(String desc) { addTypes(desc); addType(Type.getReturnType(desc)); }