@Override public ResolvedTypeParameterDeclaration asTypeParameter() { if (this.typeDeclaration instanceof JavaParserTypeVariableDeclaration) { JavaParserTypeVariableDeclaration javaParserTypeVariableDeclaration = (JavaParserTypeVariableDeclaration) this.typeDeclaration; return javaParserTypeVariableDeclaration.asTypeParameter(); } throw new UnsupportedOperationException(this.typeDeclaration.getClass().getCanonicalName()); }
@Override public String getQualifiedName() { return getName(); }
@Override public boolean isAssignableBy(ResolvedReferenceTypeDeclaration other) { return isAssignableBy(new ReferenceTypeImpl(other, typeSolver)); }
for (com.github.javaparser.ast.type.TypeParameter typeParameter : this.wrappedNode.getTypeParameters()) { if (typeParameter.getName().getId().equals(name)) { return SymbolReference.solved(new JavaParserTypeVariableDeclaration(typeParameter, typeSolver));
for (com.github.javaparser.ast.type.TypeParameter typeParameter : this.wrappedNode.getTypeParameters()) { if (typeParameter.getName().getId().equals(name)) { return SymbolReference.solved(new JavaParserTypeVariableDeclaration(typeParameter, typeSolver));
@Override public ResolvedTypeParameterDeclaration asTypeParameter() { if (this.typeDeclaration instanceof JavaParserTypeVariableDeclaration) { JavaParserTypeVariableDeclaration javaParserTypeVariableDeclaration = (JavaParserTypeVariableDeclaration) this.typeDeclaration; return javaParserTypeVariableDeclaration.asTypeParameter(); } throw new UnsupportedOperationException(this.typeDeclaration.getClass().getCanonicalName()); }
@Override public String getQualifiedName() { return getName(); }
@Override public boolean isAssignableBy(ResolvedReferenceTypeDeclaration other) { return isAssignableBy(new ReferenceTypeImpl(other, typeSolver)); }
for (com.github.javaparser.ast.type.TypeParameter typeParameter : typeParameters) { if (typeParameter.getName().getId().equals(name)) { return SymbolReference.solved(new JavaParserTypeVariableDeclaration(typeParameter, typeSolver));
@Override public ResolvedTypeParameterDeclaration asTypeParameter() { if (this.typeDeclaration instanceof JavaParserTypeVariableDeclaration) { JavaParserTypeVariableDeclaration javaParserTypeVariableDeclaration = (JavaParserTypeVariableDeclaration) this.typeDeclaration; return javaParserTypeVariableDeclaration.asTypeParameter(); } throw new UnsupportedOperationException(this.typeDeclaration.getClass().getCanonicalName()); }
@Override public String getQualifiedName() { return getName(); }
@Override public boolean isAssignableBy(ResolvedReferenceTypeDeclaration other) { return isAssignableBy(new ReferenceTypeImpl(other, typeSolver)); }
@Override public Optional<ResolvedReferenceTypeDeclaration> containerType() { return asTypeParameter().containerType(); } }
@Override public Optional<ResolvedReferenceTypeDeclaration> containerType() { return asTypeParameter().containerType(); } }
@Override public Optional<ResolvedReferenceTypeDeclaration> containerType() { return asTypeParameter().containerType(); }
} else { JavaParserTypeVariableDeclaration javaParserTypeVariableDeclaration = (JavaParserTypeVariableDeclaration) typeDeclaration; return new ResolvedTypeVariable(javaParserTypeVariableDeclaration.asTypeParameter());
} else { JavaParserTypeVariableDeclaration javaParserTypeVariableDeclaration = (JavaParserTypeVariableDeclaration) typeDeclaration; return new ResolvedTypeVariable(javaParserTypeVariableDeclaration.asTypeParameter());
} else { JavaParserTypeVariableDeclaration javaParserTypeVariableDeclaration = (JavaParserTypeVariableDeclaration) typeDeclaration; return new ResolvedTypeVariable(javaParserTypeVariableDeclaration.asTypeParameter());