@Override public boolean isGenericType() { return _elementType.isGenericType(); }
public StringBuilder appendErasedSignature(final StringBuilder sb) { if (isGenericType() && !isGenericTypeDefinition()) { return getGenericTypeDefinition().appendErasedSignature(sb); } return _appendErasedClassSignature(sb); }
@Override public boolean isGenericType() { return _elementType.isGenericType(); }
public StringBuilder appendErasedSignature(final StringBuilder sb) { if (isGenericType() && !isGenericTypeDefinition()) { return getGenericTypeDefinition().appendErasedSignature(sb); } return _appendErasedClassSignature(sb); }
@Override public boolean isGenericType() { return _elementType.isGenericType(); }
@Override public Void visitClassType(final Type<?> type, final MemberInfo scope) { super.visitClassType(type, scope); _frames.push(new VerifierFrame(FrameType.TYPE_SIGNATURE, type)); if (type.isGenericTypeDefinition()) { visit(type.getGenericTypeParameters(), scope, FrameType.TYPE_VARIABLE); } else if (type.isGenericType()) { visit(type.getTypeArguments(), scope, FrameType.TYPE_ARGUMENT); } _frames.pop(); return null; }
public Type getGenericTypeDefinition() { if (isGenericType()) { throw ContractUtils.unreachable(); } throw Error.notGenericType(this); }
public Type getGenericTypeDefinition() { if (isGenericType()) { throw ContractUtils.unreachable(); } throw Error.notGenericType(this); }
ErasedType(final Type baseType) { VerifyArgument.notNull(baseType, "baseType"); _originalType = baseType.isGenericType() ? baseType.getGenericTypeDefinition() : baseType; }
ErasedType(final Type baseType) { VerifyArgument.notNull(baseType, "baseType"); _originalType = baseType.isGenericType() ? baseType.getGenericTypeDefinition() : baseType; }
public boolean isGenericTypeDefinition() { if (!isGenericType()) { return false; } final TypeBindings typeArguments = getTypeBindings(); return !typeArguments.isEmpty() && !typeArguments.hasBoundParameters(); }
public TypeList getTypeArguments() { if (isGenericType()) { return getTypeBindings().getBoundTypes(); } // throw Error.notGenericType(this); return TypeList.empty(); }
public TypeList getGenericTypeParameters() { if (isGenericType()) { return getTypeBindings().getGenericParameters(); } throw Error.notGenericType(this); }
public TypeList getGenericTypeParameters() { if (isGenericType()) { return getTypeBindings().getGenericParameters(); } throw Error.notGenericType(this); }
public boolean isGenericTypeDefinition() { if (!isGenericType()) { return false; } final TypeBindings typeArguments = getTypeBindings(); return !typeArguments.isEmpty() && !typeArguments.hasBoundParameters(); }
public TypeList getGenericTypeParameters() { if (isGenericType()) { return getTypeBindings().getGenericParameters(); } throw Error.notGenericType(this); }
public TypeList getTypeArguments() { if (isGenericType()) { return getTypeBindings().getBoundTypes(); } // throw Error.notGenericType(this); return TypeList.empty(); }
public void add(final Type type) { final TypeList typeArguments; if (type.isGenericType()) { typeArguments = type.getTypeBindings().getBoundTypes(); } else { typeArguments = TypeList.empty(); } put(key(type, typeArguments), type); }
public void add(final Type type) { final TypeList typeArguments; if (type.isGenericType()) { typeArguments = type.getTypeBindings().getBoundTypes(); } else { typeArguments = TypeList.empty(); } put(key(type.getErasedClass(), typeArguments), type); }
public void add(final Type type) { final TypeList typeArguments; if (type.isGenericType()) { typeArguments = type.getTypeBindings().getBoundTypes(); } else { typeArguments = TypeList.empty(); } put(key(type.getErasedClass(), typeArguments), type); }