public TypeList getTypeArguments() { return getTypeBindings().getBoundTypes(); }
public TypeList getTypeArguments() { return getTypeBindings().getBoundTypes(); }
public TypeList getTypeArguments() { return getTypeBindings().getBoundTypes(); }
@Override public boolean isEquivalentTo(final Type other) { if (other == this) { return true; } if (other == null) { return false; } if (other == _definition) { return _typeBindings.getBoundTypes().isEquivalentTo(_definition.getGenericTypeParameters()); } if (other instanceof TypeBuilderInstantiation) { final TypeBuilderInstantiation tbi = (TypeBuilderInstantiation) other; return tbi._definition == _definition && _typeBindings.getBoundTypes().isEquivalentTo(tbi._typeBindings.getBoundTypes()); } return _definition.isCreated() && _definition.createType().makeGenericType(_typeBindings.getBoundTypes()).isEquivalentTo(other); } }
public TypeList getTypeArguments() { if (isGenericType()) { return getTypeBindings().getBoundTypes(); } // throw Error.notGenericType(this); return TypeList.empty(); }
public TypeList getTypeArguments() { if (isGenericType()) { return getTypeBindings().getBoundTypes(); } // throw Error.notGenericType(this); return TypeList.empty(); }
public TypeList getTypeArguments() { if (isGenericType()) { return getTypeBindings().getBoundTypes(); } // throw Error.notGenericType(this); return TypeList.empty(); }
protected StringBuilder _appendClassDescription(final StringBuilder sb) { StringBuilder s = sb; s.append(getClassFullName()); if (isGenericType()) { final TypeList typeArguments = getTypeBindings().getBoundTypes(); final int count = typeArguments.size(); if (count > 0) { s.append('<'); //noinspection ForLoopReplaceableByForEach for (int i = 0; i < count; ++i) { s = typeArguments.get(i)._appendErasedClassSignature(s); } s.append('>'); } } return s; }
protected StringBuilder _appendClassDescription(final StringBuilder sb) { StringBuilder s = sb; s.append(getClassFullName()); if (isGenericType()) { final TypeList typeArguments = getTypeBindings().getBoundTypes(); final int count = typeArguments.size(); if (count > 0) { s.append('<'); //noinspection ForLoopReplaceableByForEach for (int i = 0; i < count; ++i) { s = typeArguments.get(i)._appendErasedClassSignature(s); } s.append('>'); } } return s; }
protected StringBuilder _appendClassDescription(final StringBuilder sb) { StringBuilder s = sb; s.append(getClassFullName()); if (isGenericType()) { final TypeList typeArguments = getTypeBindings().getBoundTypes(); final int count = typeArguments.size(); if (count > 0) { s.append('<'); //noinspection ForLoopReplaceableByForEach for (int i = 0; i < count; ++i) { s = typeArguments.get(i)._appendErasedClassSignature(s); } s.append('>'); } } return s; }
public StringBuilder appendBriefDescription(final StringBuilder sb) { StringBuilder s = _appendClassName(sb, true, true); if (isGenericType()) { final TypeList typeArguments = getTypeBindings().getBoundTypes(); final int count = typeArguments.size(); if (count > 0) { s.append('<'); //noinspection ForLoopReplaceableByForEach for (int i = 0; i < count; ++i) { if (i != 0) { s.append(", "); } s = typeArguments.get(i).appendBriefDescription(s); } s.append('>'); } } return s; }
public StringBuilder appendBriefDescription(final StringBuilder sb) { StringBuilder s = _appendClassName(sb, true, true); if (isGenericType()) { final TypeList typeArguments = getTypeBindings().getBoundTypes(); final int count = typeArguments.size(); if (count > 0) { s.append('<'); //noinspection ForLoopReplaceableByForEach for (int i = 0; i < count; ++i) { if (i != 0) { s.append(", "); } s = typeArguments.get(i).appendBriefDescription(s); } s.append('>'); } } return s; }
public StringBuilder appendSimpleDescription(final StringBuilder sb) { StringBuilder s = _appendClassName(sb, false, false); if (isGenericType()) { final TypeList typeArguments = getTypeBindings().getBoundTypes(); final int count = typeArguments.size(); if (count > 0) { s.append('<'); //noinspection ForLoopReplaceableByForEach for (int i = 0; i < count; ++i) { if (i != 0) { s.append(", "); } s = typeArguments.get(i).appendSimpleDescription(s); } s.append('>'); } } return s; }
public StringBuilder appendBriefDescription(final StringBuilder sb) { StringBuilder s = _appendClassName(sb, true, true); if (isGenericType()) { final TypeList typeArguments = getTypeBindings().getBoundTypes(); final int count = typeArguments.size(); if (count > 0) { s.append('<'); //noinspection ForLoopReplaceableByForEach for (int i = 0; i < count; ++i) { if (i != 0) { s.append(", "); } s = typeArguments.get(i).appendBriefDescription(s); } s.append('>'); } } return s; }
public StringBuilder appendSimpleDescription(final StringBuilder sb) { StringBuilder s = _appendClassName(sb, false, false); if (isGenericType()) { final TypeList typeArguments = getTypeBindings().getBoundTypes(); final int count = typeArguments.size(); if (count > 0) { s.append('<'); //noinspection ForLoopReplaceableByForEach for (int i = 0; i < count; ++i) { if (i != 0) { s.append(", "); } s = typeArguments.get(i).appendSimpleDescription(s); } s.append('>'); } } return s; }
public StringBuilder appendSimpleDescription(final StringBuilder sb) { StringBuilder s = _appendClassName(sb, false, false); if (isGenericType()) { final TypeList typeArguments = getTypeBindings().getBoundTypes(); final int count = typeArguments.size(); if (count > 0) { s.append('<'); //noinspection ForLoopReplaceableByForEach for (int i = 0; i < count; ++i) { if (i != 0) { s.append(", "); } s = typeArguments.get(i).appendSimpleDescription(s); } s.append('>'); } } return s; }
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); }
@Override public Type<?> visitClassType(final Type<?> type, final TypeBindings bindings) { if (bindings.containsGenericParameter(type)) { return bindings.getBoundType(type); } final TypeBindings oldTypeBindings = type.getTypeBindings(); final TypeBindings newTypeBindings = visitTypeBindings(oldTypeBindings, bindings); if (oldTypeBindings != newTypeBindings) { return type.getGenericTypeDefinition().makeGenericType(newTypeBindings.getBoundTypes()); } return 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); }