public static MethodTypeSignature getMethodTypeSignature(IMethod method) throws InvalidClassFileException { if (method instanceof ShrikeCTMethod) { ShrikeCTMethod sm = (ShrikeCTMethod) method; return sm.getMethodTypeSignature(); } else { return null; } }
public static MethodTypeSignature getMethodTypeSignature(IMethod method) throws InvalidClassFileException { if (method instanceof ShrikeCTMethod) { ShrikeCTMethod sm = (ShrikeCTMethod) method; return sm.getMethodTypeSignature(); } else { return null; } }
public static FormalTypeParameter[] getTypeParameters(IMethod method) throws InvalidClassFileException { if (method instanceof ShrikeCTMethod) { ShrikeCTMethod sm = (ShrikeCTMethod) method; if (sm.getMethodTypeSignature() == null) { return null; } else { return sm.getMethodTypeSignature().getFormalTypeParameters(); } } else { return null; } } }
public static FormalTypeParameter[] getTypeParameters(IMethod method) throws InvalidClassFileException { if (method instanceof ShrikeCTMethod) { ShrikeCTMethod sm = (ShrikeCTMethod) method; if (sm.getMethodTypeSignature() == null) { return null; } else { return sm.getMethodTypeSignature().getFormalTypeParameters(); } } else { return null; } } }
/** * @return {@link TypeSignature} for arguments, which includes information about generic types */ public static TypeSignature[] getArguments(IMethod method) throws InvalidClassFileException { if (method instanceof ShrikeCTMethod) { ShrikeCTMethod sm = (ShrikeCTMethod) method; if (sm.getMethodTypeSignature() == null) { return null; } else { return sm.getMethodTypeSignature().getArguments(); } } else { return null; } }
/** * @return {@link TypeSignature} for arguments, which includes information about generic types */ public static TypeSignature[] getArguments(IMethod method) throws InvalidClassFileException { if (method instanceof ShrikeCTMethod) { ShrikeCTMethod sm = (ShrikeCTMethod) method; if (sm.getMethodTypeSignature() == null) { return null; } else { return sm.getMethodTypeSignature().getArguments(); } } else { return null; } }