public static ExplicitConstructorCall implicitSuperConstructorCall() { return new ExplicitConstructorCall(ExplicitConstructorCall.ImplicitSuper); }
public static ExplicitConstructorCall implicitSuperConstructorCall() { return new ExplicitConstructorCall(ExplicitConstructorCall.ImplicitSuper); }
public static ExplicitConstructorCall implicitSuperConstructorCall() { return new ExplicitConstructorCall(ExplicitConstructorCall.ImplicitSuper); }
public static ExplicitConstructorCall implicitSuperConstructorCall() { return new ExplicitConstructorCall(ExplicitConstructorCall.ImplicitSuper); }
public static ExplicitConstructorCall implicitSuperConstructorCall() { return new ExplicitConstructorCall(ExplicitConstructorCall.ImplicitSuper); }
public static ExplicitConstructorCall implicitSuperConstructorCall() { return new ExplicitConstructorCall(ExplicitConstructorCall.ImplicitSuper); }
public static ExplicitConstructorCall implicitSuperConstructorCall() { return new ExplicitConstructorCall(ExplicitConstructorCall.ImplicitSuper); }
public static ExplicitConstructorCall implicitSuperConstructorCall() { return new ExplicitConstructorCall(ExplicitConstructorCall.ImplicitSuper); }
public static ExplicitConstructorCall implicitSuperConstructorCall() { return new ExplicitConstructorCall(ExplicitConstructorCall.ImplicitSuper); }
public static ExplicitConstructorCall implicitSuperConstructorCall() { return new ExplicitConstructorCall(ExplicitConstructorCall.ImplicitSuper); }
public static ExplicitConstructorCall implicitSuperConstructorCall() { return new ExplicitConstructorCall(ExplicitConstructorCall.ImplicitSuper); }
/** * If the given ast node is inside an explicit constructor call * then wrap it with a fake constructor call. * Returns the wrapped completion node or the completion node itself. */ protected ASTNode wrapWithExplicitConstructorCallIfNeeded(ASTNode ast) { int selector; if (ast != null && topKnownElementKind(ASSIST_PARSER) == K_SELECTOR && ast instanceof Expression && (((selector = topKnownElementInfo(ASSIST_PARSER)) == THIS_CONSTRUCTOR) || (selector == SUPER_CONSTRUCTOR))) { ExplicitConstructorCall call = new ExplicitConstructorCall( (selector == THIS_CONSTRUCTOR) ? ExplicitConstructorCall.This : ExplicitConstructorCall.Super ); call.arguments = new Expression[] {(Expression)ast}; call.sourceStart = ast.sourceStart; call.sourceEnd = ast.sourceEnd; return call; } else { return ast; } } }
/** * If the given ast node is inside an explicit constructor call * then wrap it with a fake constructor call. * Returns the wrapped completion node or the completion node itself. */ protected ASTNode wrapWithExplicitConstructorCallIfNeeded(ASTNode ast) { int selector; if (ast != null && topKnownElementKind(ASSIST_PARSER) == K_SELECTOR && ast instanceof Expression && (((selector = topKnownElementInfo(ASSIST_PARSER)) == THIS_CONSTRUCTOR) || (selector == SUPER_CONSTRUCTOR))) { ExplicitConstructorCall call = new ExplicitConstructorCall( (selector == THIS_CONSTRUCTOR) ? ExplicitConstructorCall.This : ExplicitConstructorCall.Super ); call.arguments = new Expression[] {(Expression)ast}; call.sourceStart = ast.sourceStart; call.sourceEnd = ast.sourceEnd; return call; } else { return ast; } } }
/** * If the given ast node is inside an explicit constructor call * then wrap it with a fake constructor call. * Returns the wrapped completion node or the completion node itself. */ protected ASTNode wrapWithExplicitConstructorCallIfNeeded(ASTNode ast) { int selector; if (ast != null && topKnownElementKind(ASSIST_PARSER) == K_SELECTOR && ast instanceof Expression && (((selector = topKnownElementInfo(ASSIST_PARSER)) == THIS_CONSTRUCTOR) || (selector == SUPER_CONSTRUCTOR))) { ExplicitConstructorCall call = new ExplicitConstructorCall( (selector == THIS_CONSTRUCTOR) ? ExplicitConstructorCall.This : ExplicitConstructorCall.Super ); call.arguments = new Expression[] {(Expression)ast}; call.sourceStart = ast.sourceStart; call.sourceEnd = ast.sourceEnd; return call; } else { return ast; } } }
@Override public boolean visitAlternateConstructorInvocation(lombok.ast.AlternateConstructorInvocation node) { ExplicitConstructorCall inv = new ExplicitConstructorCall(ExplicitConstructorCall.This); inv.sourceStart = posOfStructure(node, "this", true); inv.sourceEnd = end(node); // inv.modifiers = decl.modifiers & VISIBILITY_MASK; if (!node.astConstructorTypeArguments().isEmpty()) { inv.typeArguments = toArray(TypeReference.class, node.astConstructorTypeArguments()); Position ecjTypeArgsPos = getConversionPositionInfo(node, "typeArguments"); inv.typeArgumentsSourceStart = ecjTypeArgsPos == null ? posOfStructure(node, "<", true) : ecjTypeArgsPos.getStart(); } inv.arguments = toArray(Expression.class, node.astArguments()); return set(node, inv); }
@Override public boolean visitAlternateConstructorInvocation(lombok.ast.AlternateConstructorInvocation node) { ExplicitConstructorCall inv = new ExplicitConstructorCall(ExplicitConstructorCall.This); inv.sourceStart = posOfStructure(node, "this", true); inv.sourceEnd = end(node); // inv.modifiers = decl.modifiers & VISIBILITY_MASK; if (!node.astConstructorTypeArguments().isEmpty()) { inv.typeArguments = toArray(TypeReference.class, node.astConstructorTypeArguments()); Position ecjTypeArgsPos = getConversionPositionInfo(node, "typeArguments"); inv.typeArgumentsSourceStart = ecjTypeArgsPos == null ? posOfStructure(node, "<", true) : ecjTypeArgsPos.getStart(); } inv.arguments = toArray(Expression.class, node.astArguments()); return set(node, inv); }
@Override public boolean visitAlternateConstructorInvocation(lombok.ast.AlternateConstructorInvocation node) { ExplicitConstructorCall inv = new ExplicitConstructorCall(ExplicitConstructorCall.This); inv.sourceStart = posOfStructure(node, "this", true); inv.sourceEnd = end(node); // inv.modifiers = decl.modifiers & VISIBILITY_MASK; if (!node.astConstructorTypeArguments().isEmpty()) { inv.typeArguments = toArray(TypeReference.class, node.astConstructorTypeArguments()); Position ecjTypeArgsPos = getConversionPositionInfo(node, "typeArguments"); inv.typeArgumentsSourceStart = ecjTypeArgsPos == null ? posOfStructure(node, "<", true) : ecjTypeArgsPos.getStart(); } inv.arguments = toArray(Expression.class, node.astArguments()); return set(node, inv); }
@Override public boolean visitSuperConstructorInvocation(lombok.ast.SuperConstructorInvocation node) { ExplicitConstructorCall inv = new ExplicitConstructorCall(ExplicitConstructorCall.Super); inv.sourceStart = start(node); inv.sourceEnd = end(node); // inv.modifiers = decl.modifiers & VISIBILITY_MASK; if (!node.astConstructorTypeArguments().isEmpty()) { inv.typeArguments = toArray(TypeReference.class, node.astConstructorTypeArguments()); Position ecjTypeArgsPos = getConversionPositionInfo(node, "typeArguments"); inv.typeArgumentsSourceStart = ecjTypeArgsPos == null ? posOfStructure(node, "<", true) : ecjTypeArgsPos.getStart(); } inv.arguments = toArray(Expression.class, node.astArguments()); inv.qualification = toExpression(node.astQualifier()); return set(node, inv); }
@Override public boolean visitSuperConstructorInvocation(lombok.ast.SuperConstructorInvocation node) { ExplicitConstructorCall inv = new ExplicitConstructorCall(ExplicitConstructorCall.Super); inv.sourceStart = start(node); inv.sourceEnd = end(node); // inv.modifiers = decl.modifiers & VISIBILITY_MASK; if (!node.astConstructorTypeArguments().isEmpty()) { inv.typeArguments = toArray(TypeReference.class, node.astConstructorTypeArguments()); Position ecjTypeArgsPos = getConversionPositionInfo(node, "typeArguments"); inv.typeArgumentsSourceStart = ecjTypeArgsPos == null ? posOfStructure(node, "<", true) : ecjTypeArgsPos.getStart(); } inv.arguments = toArray(Expression.class, node.astArguments()); inv.qualification = toExpression(node.astQualifier()); return set(node, inv); }
@Override public boolean visitSuperConstructorInvocation(lombok.ast.SuperConstructorInvocation node) { ExplicitConstructorCall inv = new ExplicitConstructorCall(ExplicitConstructorCall.Super); inv.sourceStart = start(node); inv.sourceEnd = end(node); // inv.modifiers = decl.modifiers & VISIBILITY_MASK; if (!node.astConstructorTypeArguments().isEmpty()) { inv.typeArguments = toArray(TypeReference.class, node.astConstructorTypeArguments()); Position ecjTypeArgsPos = getConversionPositionInfo(node, "typeArguments"); inv.typeArgumentsSourceStart = ecjTypeArgsPos == null ? posOfStructure(node, "<", true) : ecjTypeArgsPos.getStart(); } inv.arguments = toArray(Expression.class, node.astArguments()); inv.qualification = toExpression(node.astQualifier()); return set(node, inv); }