EvaluatedDeclaration decl ) {
EvaluatedType evalType = null ;
AttributeType atype = null ;
if (decl instanceof EvaluatedMethodDeclaration) {
EvaluatedMethodDeclaration method =
(EvaluatedMethodDeclaration)decl ;
final List<EvaluatedType> atypes = method.parameterTypes() ;
if (method.returnType().equals( EvaluatedType.EVOID )) {
if (atypes.size() != 1) {
return null ;
}
atype = AttributeType.SETTER ;
evalType = atypes.get(0) ;
} else {
if (atypes.size() != 0) {
return null ;
}
atype = AttributeType.GETTER ;
evalType = method.returnType() ;
}
} else if (decl instanceof EvaluatedFieldDeclaration) {
EvaluatedFieldDeclaration field = (EvaluatedFieldDeclaration)decl ;
evalType = field.fieldType() ;