private static ResolveResult resolveType(final AstType type) { if (type == null || type.isNull()) { return null; } return resolveType(type.toTypeReference()); }
void writePrivateImplementationType(final AstType privateImplementationType) { if (!privateImplementationType.isNull()) { privateImplementationType.acceptVisitor(this, null); writeToken(Roles.DOT); } }
void writePrivateImplementationType(final AstType privateImplementationType) { if (!privateImplementationType.isNull()) { privateImplementationType.acceptVisitor(this, null); writeToken(Roles.DOT); } }
private static ResolveResult resolveType(final AstType type) { if (type == null || type.isNull()) { return null; } return resolveType(type.toTypeReference()); }
private static ResolveResult resolveType(final AstType type) { if (type == null || type.isNull()) { return null; } return resolveType(type.toTypeReference()); }
void writePrivateImplementationType(final AstType privateImplementationType) { if (!privateImplementationType.isNull()) { privateImplementationType.acceptVisitor(this, null); writeToken(Roles.DOT); } }
private static boolean lambdaNeedsParenthesis(final LambdaExpression lambda) { return lambda.getParameters().size() != 1 || !lambda.getParameters().firstOrNullObject().getType().isNull(); }
private static boolean lambdaNeedsParenthesis(final LambdaExpression lambda) { return lambda.getParameters().size() != 1 || !lambda.getParameters().firstOrNullObject().getType().isNull(); }
private static boolean lambdaNeedsParenthesis(final LambdaExpression lambda) { return lambda.getParameters().size() != 1 || !lambda.getParameters().firstOrNullObject().getType().isNull(); }
@Override public Void visitTypeParameterDeclaration(final TypeParameterDeclaration node, final Void ignored) { startNode(node); writeAnnotations(node.getAnnotations(), false); node.getNameToken().acceptVisitor(this, ignored); final AstType extendsBound = node.getExtendsBound(); if (extendsBound != null && !extendsBound.isNull()) { writeKeyword(Roles.EXTENDS_KEYWORD); extendsBound.acceptVisitor(this, ignored); } endNode(node); return null; }
@Override public Void visitTypeParameterDeclaration(final TypeParameterDeclaration node, final Void ignored) { startNode(node); writeAnnotations(node.getAnnotations(), false); node.getNameToken().acceptVisitor(this, ignored); final AstType extendsBound = node.getExtendsBound(); if (extendsBound != null && !extendsBound.isNull()) { writeKeyword(Roles.EXTENDS_KEYWORD); extendsBound.acceptVisitor(this, ignored); } endNode(node); return null; }
@Override public Void visitTypeParameterDeclaration(final TypeParameterDeclaration node, final Void ignored) { startNode(node); writeAnnotations(node.getAnnotations(), false); node.getNameToken().acceptVisitor(this, ignored); final AstType extendsBound = node.getExtendsBound(); if (extendsBound != null && !extendsBound.isNull()) { writeKeyword(Roles.EXTENDS_KEYWORD); extendsBound.acceptVisitor(this, ignored); } endNode(node); return null; }
@Override public Void visitParameterDeclaration(final ParameterDeclaration node, final Void ignored) { final boolean hasType = !node.getType().isNull(); startNode(node); writeAnnotations(node.getAnnotations(), false); if (hasType) { writeModifiers(node.getModifiers()); node.getType().acceptVisitor(this, ignored); if (!StringUtilities.isNullOrEmpty(node.getName())) { space(); } } if (!StringUtilities.isNullOrEmpty(node.getName())) { node.getNameToken().acceptVisitor(this, ignored); } endNode(node); return null; }
@Override public Void visitParameterDeclaration(final ParameterDeclaration node, final Void ignored) { final boolean hasType = !node.getType().isNull(); startNode(node); writeAnnotations(node.getAnnotations(), false); if (hasType) { writeModifiers(node.getModifiers()); node.getType().acceptVisitor(this, ignored); if (!StringUtilities.isNullOrEmpty(node.getName())) { space(); } } if (!StringUtilities.isNullOrEmpty(node.getName())) { node.getNameToken().acceptVisitor(this, ignored); } endNode(node); return null; }
@Override public Void visitParameterDeclaration(final ParameterDeclaration node, final Void ignored) { final boolean hasType = !node.getType().isNull(); startNode(node); writeAnnotations(node.getAnnotations(), false); if (hasType) { writeModifiers(node.getModifiers()); node.getType().acceptVisitor(this, ignored); if (!StringUtilities.isNullOrEmpty(node.getName())) { space(); } } if (!StringUtilities.isNullOrEmpty(node.getName())) { node.getNameToken().acceptVisitor(this, ignored); } endNode(node); return null; }
final AstType castType = cast.getType(); if (castType != null && !castType.isNull()) { final TypeReference typeReference = castType.getUserData(Keys.TYPE_REFERENCE);
final AstType castType = cast.getType(); if (castType != null && !castType.isNull()) { final TypeReference typeReference = castType.getUserData(Keys.TYPE_REFERENCE);
final AstType castType = cast.getType(); if (castType != null && !castType.isNull()) { final TypeReference typeReference = castType.getUserData(Keys.TYPE_REFERENCE);
if (baseType != null && !baseType.isNull() && referencesType(baseType, localType)) { return true;
if (baseType != null && !baseType.isNull() && referencesType(baseType, localType)) { return true;