@Override public String getContainerQualifiedName() { if (container instanceof ResolvedReferenceTypeDeclaration) { return ((ResolvedReferenceTypeDeclaration) container).getQualifiedName(); } else { return ((ResolvedMethodLikeDeclaration) container).getQualifiedSignature(); } }
@Override public String getContainerId() { if (container instanceof ResolvedReferenceTypeDeclaration) { return ((ResolvedReferenceTypeDeclaration) container).getId(); } else { return ((ResolvedMethodLikeDeclaration) container).getQualifiedSignature(); } }
private static ResolvedType getMethodsExplicitAndVariadicParameterType(ResolvedMethodDeclaration method, int i) { int numberOfParams = method.getNumberOfParams(); if (i < numberOfParams) { return method.getParam(i).getType(); } else if (method.hasVariadicParameter()) { return method.getParam(numberOfParams - 1).getType(); } else { return null; } }
protected static boolean isExactMatch(ResolvedMethodLikeDeclaration method, List<ResolvedType> argumentsTypes) { for (int i = 0; i < method.getNumberOfParams(); i++) { if (!method.getParam(i).getType().equals(argumentsTypes.get(i))) { return false; } } return true; }
private List<ResolvedType> formalParameterTypes(ResolvedMethodDeclaration methodDeclaration) { List<ResolvedType> types = new LinkedList<>(); for (int i=0;i<methodDeclaration.getNumberOfParams();i++) { types.add(methodDeclaration.getParam(i).getType()); } return types; }
@Override public String getContainerQualifiedName() { if (this.container instanceof ResolvedReferenceTypeDeclaration) { return ((ResolvedReferenceTypeDeclaration) this.container).getQualifiedName(); } else if (this.container instanceof ResolvedMethodLikeDeclaration) { return ((ResolvedMethodLikeDeclaration) this.container).getQualifiedName(); } throw new UnsupportedOperationException(); }
@Override public String getName() { return this.classDeclaration.getName(); }
@Override public String getName() { return this.declaringType.getName(); }
protected static boolean isExactMatch(ResolvedMethodLikeDeclaration method, List<ResolvedType> argumentsTypes) { for (int i = 0; i < method.getNumberOfParams(); i++) { if (!method.getParam(i).getType().equals(argumentsTypes.get(i))) { return false; } } return true; }
@Override public String getContainerQualifiedName() { if (container instanceof ResolvedReferenceTypeDeclaration) { return ((ResolvedReferenceTypeDeclaration) container).getQualifiedName(); } else { return ((ResolvedMethodLikeDeclaration) container).getQualifiedSignature(); } }
@Override public String getContainerQualifiedName() { if (this.container instanceof ResolvedReferenceTypeDeclaration) { return ((ResolvedReferenceTypeDeclaration) this.container).getQualifiedName(); } else if (this.container instanceof ResolvedMethodLikeDeclaration) { return ((ResolvedMethodLikeDeclaration) this.container).getQualifiedName(); } throw new UnsupportedOperationException(); }
@Override public String getContainerId() { if (container instanceof ResolvedReferenceTypeDeclaration) { return ((ResolvedReferenceTypeDeclaration) container).getId(); } else { return ((ResolvedMethodLikeDeclaration) container).getQualifiedSignature(); } }
@Override public String getName() { return classDeclaration.getName(); }
@Override public String getName() { return declaringType.getName(); }
protected static boolean isExactMatch(ResolvedMethodLikeDeclaration method, List<ResolvedType> argumentsTypes) { for (int i = 0; i < method.getNumberOfParams(); i++) { if (!method.getParam(i).getType().equals(argumentsTypes.get(i))) { return false; } } return true; }
@Override public String getContainerQualifiedName() { if (container instanceof ResolvedReferenceTypeDeclaration) { return ((ResolvedReferenceTypeDeclaration) container).getQualifiedName(); } else { return ((ResolvedMethodLikeDeclaration) container).getQualifiedSignature(); } }
@Override public String getContainerQualifiedName() { if (this.container instanceof ResolvedReferenceTypeDeclaration) { return ((ResolvedReferenceTypeDeclaration) this.container).getQualifiedName(); } else if (this.container instanceof ResolvedMethodLikeDeclaration) { return ((ResolvedMethodLikeDeclaration) this.container).getQualifiedName(); } throw new UnsupportedOperationException(); }
@Override public String getContainerId() { if (container instanceof ResolvedReferenceTypeDeclaration) { return ((ResolvedReferenceTypeDeclaration) container).getId(); } else { return ((ResolvedMethodLikeDeclaration) container).getQualifiedSignature(); } }
@Override public String getName() { return this.classDeclaration.getName(); }
@Override public String getName() { return classDeclaration.getName(); }