Package org.eclipse.jdt.internal.compiler.ast

Examples of org.eclipse.jdt.internal.compiler.ast.MessageSend


  }
}
protected void consumeMethodInvocationPrimaryWithTypeArguments() {
  super.consumeMethodInvocationPrimaryWithTypeArguments();
  popElement(K_SELECTOR);
  MessageSend messageSend = (MessageSend)this.expressionStack[this.expressionPtr];
  if (messageSend == this.assistNode){
    this.lastCheckPoint = messageSend.sourceEnd + 1;
  }
}
View Full Code Here


  }
}
protected void consumeMethodInvocationSuper() {
  super.consumeMethodInvocationSuper();
  popElement(K_SELECTOR);
  MessageSend messageSend = (MessageSend)this.expressionStack[this.expressionPtr];
  if (messageSend == this.assistNode){
    this.lastCheckPoint = messageSend.sourceEnd + 1;
  }
}
View Full Code Here

  }
}
protected void consumeMethodInvocationSuperWithTypeArguments() {
  super.consumeMethodInvocationSuperWithTypeArguments();
  popElement(K_SELECTOR);
  MessageSend messageSend = (MessageSend)this.expressionStack[this.expressionPtr];
  if (messageSend == this.assistNode){
    this.lastCheckPoint = messageSend.sourceEnd + 1;
  }
}
View Full Code Here

      nameSourceEnd);
}
public void missingTypeInMethod(ASTNode astNode, MethodBinding method) {
  int nameSourceStart, nameSourceEnd;
  if (astNode instanceof MessageSend) {
    MessageSend messageSend = astNode instanceof MessageSend ? (MessageSend) (astNode) : null;
    nameSourceStart = (int) (messageSend.nameSourcePosition >>> 32);
    nameSourceEnd = (int) messageSend.nameSourcePosition;
  } else {
    nameSourceStart = astNode.sourceStart;
    nameSourceEnd = astNode.sourceEnd;
View Full Code Here

      location.sourceEnd);
}

public void dereferencingNullableExpression(Expression expression) {
  if (expression instanceof MessageSend) {
    MessageSend send = (MessageSend) expression;
    messageSendPotentialNullReference(send.binding, send);
    return;
  }
  char[][] nullableName = this.options.nullableAnnotationName;
  char[] nullableShort = nullableName[nullableName.length-1];
View Full Code Here

}
protected MessageSend newMessageSend() {
  // '(' ArgumentListopt ')'
  // the arguments are on the expression stack

  MessageSend m = new MessageSend();
  int length;
  if ((length = this.expressionLengthStack[this.expressionLengthPtr--]) != 0) {
    this.expressionPtr -= length;
    System.arraycopy(
      this.expressionStack,
View Full Code Here

      length);
  }
  return m;
}
protected MessageSend newMessageSendWithTypeArguments() {
  MessageSend m = new MessageSend();
  int length;
  if ((length = this.expressionLengthStack[this.expressionLengthPtr--]) != 0) {
    this.expressionPtr -= length;
    System.arraycopy(
      this.expressionStack,
View Full Code Here

protected void consumeMethodInvocationName() {
  // MethodInvocation ::= Name '(' ArgumentListopt ')'

  // when the name is only an identifier...we have a message send to "this" (implicit)

  MessageSend m = newMessageSend();
  m.sourceEnd = this.rParenPos;
  m.sourceStart =
    (int) ((m.nameSourcePosition = this.identifierPositionStack[this.identifierPtr]) >>> 32);
  m.selector = this.identifierStack[this.identifierPtr--];
  if (this.identifierLengthStack[this.identifierLengthPtr] == 1) {
View Full Code Here

protected void consumeMethodInvocationNameWithTypeArguments() {
  // MethodInvocation ::= Name '.' TypeArguments 'Identifier' '(' ArgumentListopt ')'

  // when the name is only an identifier...we have a message send to "this" (implicit)

  MessageSend m = newMessageSendWithTypeArguments();
  m.sourceEnd = this.rParenPos;
  m.sourceStart =
    (int) ((m.nameSourcePosition = this.identifierPositionStack[this.identifierPtr]) >>> 32);
  m.selector = this.identifierStack[this.identifierPtr--];
  this.identifierLengthPtr--;
View Full Code Here

}
protected void consumeMethodInvocationPrimary() {
  //optimize the push/pop
  //MethodInvocation ::= Primary '.' 'Identifier' '(' ArgumentListopt ')'

  MessageSend m = newMessageSend();
  m.sourceStart =
    (int) ((m.nameSourcePosition = this.identifierPositionStack[this.identifierPtr]) >>> 32);
  m.selector = this.identifierStack[this.identifierPtr--];
  this.identifierLengthPtr--;
  m.receiver = this.expressionStack[this.expressionPtr];
View Full Code Here

TOP

Related Classes of org.eclipse.jdt.internal.compiler.ast.MessageSend

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.