@Override public Type<?> visit(final Type<?> type) { return visit(type, TypeBindings.empty()); }
@Override public MethodInfo visitMethod(final Type<?> declaringType, final MethodInfo method, final TypeBindings bindings) { final Type<?> oldReturnType = method.getReturnType(); final Type<?> returnType = visit(oldReturnType, bindings); final ParameterList oldParameters = method.getParameters(); final ParameterList newParameters = visitParameters(oldParameters, bindings); final TypeList oldThrownTypes = method.getThrownTypes(); final Type<?>[] newThrownTypes = new Type<?>[oldThrownTypes.size()]; final Type<?> newThrownType = visit(oldThrownType, bindings);
_erasedMethodDefinition = ErasedType.GenericEraser.visitMethod( actualDeclaringType, this.isGenericMethod() ? this.getGenericMethodDefinition()
private void ensureNestedTypes() { if (_nestedTypes == null) { synchronized (CACHE_LOCK) { if (_nestedTypes == null) { _nestedTypes = GenericEraser.visit( _originalType.getDeclaredTypes() ); } } } }
private void ensureNestedTypes() { if (_nestedTypes == null) { synchronized (CACHE_LOCK) { if (_nestedTypes == null) { _nestedTypes = GenericEraser.visit( _originalType.getDeclaredTypes() ); } } } }
@Override public Type<?> visitTypeParameter(final Type<?> type, final TypeBindings bindings) { return visit(type.getExtendsBound()); }
private void ensureInterfaces() { if (_interfaces == null) { synchronized (CACHE_LOCK) { if (_interfaces == null) { _interfaces = GenericEraser.visit(_originalType.getExplicitInterfaces()); } } } }
private void ensureNestedTypes() { if (_nestedTypes == null) { synchronized (CACHE_LOCK) { if (_nestedTypes == null) { _nestedTypes = GenericEraser.visit( _originalType.getDeclaredTypes() ); } } } }
@Override public Type<?> visit(final Type<?> type) { return visit(type, TypeBindings.empty()); }
@Override public Type<?> visitWildcardType(final Type<?> type, final TypeBindings bindings) { return visit(type.getExtendsBound()); }
@Override public Type<?> visitWildcardType(final Type<?> type, final TypeBindings bindings) { return visit(type.getExtendsBound()); }
@Override public Type<?> visit(final Type<?> type) { return visit(type, TypeBindings.empty()); }
private void ensureInterfaces() { if (_interfaces == null) { synchronized (CACHE_LOCK) { if (_interfaces == null) { _interfaces = GenericEraser.visit(_originalType.getExplicitInterfaces()); } } } }
private void ensureInterfaces() { if (_interfaces == null) { synchronized (CACHE_LOCK) { if (_interfaces == null) { _interfaces = GenericEraser.visit(_originalType.getExplicitInterfaces()); } } } }
@Override public Type<?> visitTypeParameter(final Type<?> type, final TypeBindings bindings) { return visit(type.getExtendsBound()); }
@Override public Type<?> visitWildcardType(final Type<?> type, final TypeBindings bindings) { return visit(type.getExtendsBound()); }
@Override public Type<?> visitTypeParameter(final Type<?> type, final TypeBindings bindings) { return visit(type.getExtendsBound()); }
private void ensureBaseType() { if (_baseType == null) { synchronized (CACHE_LOCK) { if (_baseType == null) { final Type genericBaseType = _originalType.getBaseType(); if (genericBaseType == null || genericBaseType == NullType) { _baseType = NullType; } else { _baseType = GenericEraser.visit(genericBaseType); } } } } }
private void ensureBaseType() { if (_baseType == null) { synchronized (CACHE_LOCK) { if (_baseType == null) { final Type genericBaseType = _originalType.getBaseType(); if (genericBaseType == null || genericBaseType == NullType) { _baseType = NullType; } else { _baseType = GenericEraser.visit(genericBaseType); } } } } }
private void ensureBaseType() { if (_baseType == null) { synchronized (CACHE_LOCK) { if (_baseType == null) { final Type genericBaseType = _originalType.getBaseType(); if (genericBaseType == null || genericBaseType == NullType) { _baseType = NullType; } else { _baseType = GenericEraser.visit(genericBaseType); } } } } }