@Override public String getName() { return _genericMethodDefinition.getName(); }
@Override public String getName() { return _methodInfo.getName(); }
@Override public String getName() { return _baseMethod.getName(); }
@Override public String getName() { return _genericMethodDefinition.getName(); }
@Override public String getName() { return _genericMethodDefinition.getName(); }
public static RuntimeException notGenericMethod(final MethodInfo method) { return new UnsupportedOperationException( format( "Type '%s' is not a generic method.", method.getName() ) ); }
public static RuntimeException notGenericMethod(final MethodInfo method) { return new UnsupportedOperationException( format( "Type '%s' is not a generic method.", method.getName() ) ); }
public static RuntimeException notGenericMethod(final MethodInfo method) { return new UnsupportedOperationException( format( "Type '%s' is not a generic method.", method.getName() ) ); }
public static RuntimeException notGenericMethodDefinition(final MethodInfo method) { return new UnsupportedOperationException( format( "Type '%s' is not a generic method definition.", method.getName() ) ); }
public static RuntimeException notGenericMethodDefinition(final MethodInfo method) { return new UnsupportedOperationException( format( "Type '%s' is not a generic method definition.", method.getName() ) ); }
public static RuntimeException notGenericMethodDefinition(final MethodInfo method) { return new UnsupportedOperationException( format( "Type '%s' is not a generic method definition.", method.getName() ) ); }
public InterfaceMethodReference getInterfaceMethodReference(final MethodInfo method) { final TypeInfo typeInfo = getTypeInfo(method.getDeclaringType()); final NameAndTypeDescriptor nameAndDescriptor = getNameAndTypeDescriptor( method.getName(), method.getErasedSignature() ); _lookupKey.set(Tag.InterfaceMethodReference, typeInfo.index, nameAndDescriptor.index); Entry entry = _entryMap.get(_lookupKey); if (entry == null) { entry = new InterfaceMethodReference(this, typeInfo.index, nameAndDescriptor.index); } _lookupKey.clear(); return (InterfaceMethodReference)entry; }
public InterfaceMethodReference getInterfaceMethodReference(final MethodInfo method) { final TypeInfo typeInfo = getTypeInfo(method.getDeclaringType()); final NameAndTypeDescriptor nameAndDescriptor = getNameAndTypeDescriptor( method.getName(), method.getErasedSignature() ); _lookupKey.set(Tag.InterfaceMethodReference, typeInfo.index, nameAndDescriptor.index); Entry entry = _entryMap.get(_lookupKey); if (entry == null) { entry = new InterfaceMethodReference(this, typeInfo.index, nameAndDescriptor.index); } _lookupKey.clear(); return (InterfaceMethodReference)entry; }
public InterfaceMethodReference getInterfaceMethodReference(final MethodInfo method) { final TypeInfo typeInfo = getTypeInfo(method.getDeclaringType()); final NameAndTypeDescriptor nameAndDescriptor = getNameAndTypeDescriptor( method.getName(), method.getErasedSignature() ); _lookupKey.set(Tag.InterfaceMethodReference, typeInfo.index, nameAndDescriptor.index); Entry entry = _entryMap.get(_lookupKey); if (entry == null) { entry = new InterfaceMethodReference(this, typeInfo.index, nameAndDescriptor.index); } _lookupKey.clear(); return (InterfaceMethodReference)entry; }
public MethodInfo findBaseMethod(final Type<?> relativeTo) { VerifyArgument.notNull(relativeTo, "relativeTo"); final Type<?> declaringType = getDeclaringType(); if (!relativeTo.isAssignableFrom(declaringType)) { throw Error.invalidAncestorType(relativeTo, declaringType); } if (isStatic() || isPrivate()) { return null; } final ParameterList parameters = getParameters(); return relativeTo.getMethod( getName(), BindingFlags.AllInstance, getCallingConvention(), parameters.getParameterTypes().toArray(new Type[parameters.size()]) ); }
private void writeAnnotation(final AnnotationBuilder<? extends Annotation> a) { _dataBuffer.putShort(_typeBuilder.getUtf8StringToken(a.getAnnotationType().getSignature())); _dataBuffer.putShort(a.getValues().size()); final MethodList attributes = a.getAttributes(); final ReadOnlyList<Object> values = a.getValues(); for (int i = 0, n = attributes.size(); i < n; i++) { final MethodInfo attribute = attributes.get(i); _dataBuffer.putShort(_typeBuilder.getUtf8StringToken(attribute.getName())); writeAttributeType(values.get(i)); } }
public MethodInfo findBaseMethod(final Type<?> relativeTo) { VerifyArgument.notNull(relativeTo, "relativeTo"); final Type<?> declaringType = getDeclaringType(); if (!relativeTo.isAssignableFrom(declaringType)) { throw Error.invalidAncestorType(relativeTo, declaringType); } if (isStatic() || isPrivate() || declaringType.isInterface()) { return null; } final ParameterList parameters = getParameters(); return relativeTo.getMethod( getName(), BindingFlags.AllInstance, getCallingConvention(), parameters.getParameterTypes().toArray(new Type[parameters.size()]) ); }
private void writeAnnotation(final AnnotationBuilder<? extends Annotation> a) { _dataBuffer.putShort(_typeBuilder.getUtf8StringToken(a.getAnnotationType().getSignature())); _dataBuffer.putShort(a.getValues().size()); final MethodList attributes = a.getAttributes(); final ReadOnlyList<Object> values = a.getValues(); for (int i = 0, n = attributes.size(); i < n; i++) { final MethodInfo attribute = attributes.get(i); _dataBuffer.putShort(_typeBuilder.getUtf8StringToken(attribute.getName())); writeAttributeType(values.get(i)); } }
private void writeAnnotation(final AnnotationBuilder<? extends Annotation> a) { _dataBuffer.putShort(_typeBuilder.getUtf8StringToken(a.getAnnotationType().getSignature())); _dataBuffer.putShort(a.getValues().size()); final MethodList attributes = a.getAttributes(); final ReadOnlyList<Object> values = a.getValues(); for (int i = 0, n = attributes.size(); i < n; i++) { final MethodInfo attribute = attributes.get(i); _dataBuffer.putShort(_typeBuilder.getUtf8StringToken(attribute.getName())); writeAttributeType(values.get(i)); } }
public MethodInfo findBaseMethod(final Type<?> relativeTo) { VerifyArgument.notNull(relativeTo, "relativeTo"); final Type<?> declaringType = getDeclaringType(); if (!relativeTo.isAssignableFrom(declaringType)) { throw Error.invalidAncestorType(relativeTo, declaringType); } if (isStatic() || isPrivate() || declaringType.isInterface()) { return null; } final ParameterList parameters = getParameters(); return relativeTo.getMethod( getName(), BindingFlags.AllInstance, getCallingConvention(), parameters.getParameterTypes().toArray(new Type[parameters.size()]) ); }