Commit e54bfdc3 authored by Lubomir Bulej's avatar Lubomir Bulej

FieldInfo: getType() renamed to getDescriptor(), as it really returns a String...

FieldInfo: getType() renamed to getDescriptor(), as it really returns a String descriptor of the type.
MethodInfo: get*Type() or get*Types() renamed to get*Descriptor() or get*Descriptors() for the same reason as in case of FieldInfo.
ArrayShadowClass, ObjectShadowClass: updated to reflect the changes.
parent 74d75809
...@@ -152,7 +152,7 @@ public class ArrayShadowClass extends ShadowClass { ...@@ -152,7 +152,7 @@ public class ArrayShadowClass extends ShadowClass {
for (final MethodInfo methodInfo : __superClass.getMethods ()) { for (final MethodInfo methodInfo : __superClass.getMethods ()) {
if (methodName.equals (methodInfo.getName ()) if (methodName.equals (methodInfo.getName ())
&& Arrays.equals (argumentNames, methodInfo.getParameterTypes ()) && Arrays.equals (argumentNames, methodInfo.getParameterDescriptors ())
) { ) {
return methodInfo; return methodInfo;
} }
......
...@@ -41,7 +41,7 @@ public class FieldInfo { ...@@ -41,7 +41,7 @@ public class FieldInfo {
} }
public String getType () { public String getDescriptor () {
return __type; return __type;
} }
......
...@@ -58,17 +58,17 @@ public class MethodInfo { ...@@ -58,17 +58,17 @@ public class MethodInfo {
} }
public String getReturnType () { public String getReturnDescriptor () {
return __returnType; return __returnType;
} }
public String [] getParameterTypes () { public String [] getParameterDescriptors () {
return Arrays.copyOf (__parameterTypes, __parameterTypes.length); return Arrays.copyOf (__parameterTypes, __parameterTypes.length);
} }
public String [] getExceptionTypes () { public String [] getExceptionDescriptors () {
return Arrays.copyOf (__exceptionTypes, __exceptionTypes.length); return Arrays.copyOf (__exceptionTypes, __exceptionTypes.length);
} }
......
...@@ -241,7 +241,7 @@ class ObjectShadowClass extends ShadowClass { ...@@ -241,7 +241,7 @@ class ObjectShadowClass extends ShadowClass {
) throws NoSuchMethodException { ) throws NoSuchMethodException {
for (final MethodInfo methodInfo : public_methods) { for (final MethodInfo methodInfo : public_methods) {
if (methodName.equals (methodInfo.getName ()) && if (methodName.equals (methodInfo.getName ()) &&
Arrays.equals (argumentNames, methodInfo.getParameterTypes ()) Arrays.equals (argumentNames, methodInfo.getParameterDescriptors ())
) { ) {
return methodInfo; return methodInfo;
} }
...@@ -291,7 +291,7 @@ class ObjectShadowClass extends ShadowClass { ...@@ -291,7 +291,7 @@ class ObjectShadowClass extends ShadowClass {
) throws NoSuchMethodException { ) throws NoSuchMethodException {
for (final MethodInfo methodInfo : methods) { for (final MethodInfo methodInfo : methods) {
if (methodName.equals (methodInfo.getName ()) && if (methodName.equals (methodInfo.getName ()) &&
Arrays.equals (argumentNames, methodInfo.getParameterTypes ()) Arrays.equals (argumentNames, methodInfo.getParameterDescriptors ())
) { ) {
return methodInfo; return methodInfo;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment