Package org.jtool.cfg

Class CFGReceiver


public class CFGReceiver extends CFGStatement
A node for a receiver on a method call or a field access.
  • Constructor Details

    • CFGReceiver

      public CFGReceiver(org.eclipse.jdt.core.dom.ASTNode node, CFGNode.Kind kind)
      Creates a new object that represents a receiver on a method call. This method is not intended to be invoked by clients.
      Parameters:
      node - the AST node correspond to this node
      kind - the kind of this node
  • Method Details

    • setName

      public void setName(String name)
      Sets the name of an instance specified by this receiver node. This method is not intended to be invoked by clients.
      Parameters:
      name - the instance name to be set
    • getName

      public String getName()
      Returns the name of an instance specified by this receiver node.
      Returns:
      the instance name of this receiver
    • setMethodCall

      public void setMethodCall(CFGMethodCall methodCall)
      Sets a method call node having this receiver.
      Parameters:
      methodCall - the method call node
    • getMethodCall

      public CFGMethodCall getMethodCall()
      Returns a method call node having this receiver.
      Returns:
      the the method call node
    • explicitType

      public String explicitType()
      Returns the explicit type of of the receiver.
      Returns:
      the receiver type, or null if the receiver does not have an explicit type
    • stringLiteral

      public String stringLiteral()
      Returns the type of the receiver.
      Returns:
      the receiver type (java.lang.String), or null if the receiver is not a string literal
    • typeLiteral

      public String typeLiteral()
      Returns the type of the receiver.
      Returns:
      the receiver type (java.lang.Class), or null if the receiver is not a type literal
    • castType

      public String castType()
      Returns the type of the receiver.
      Returns:
      the cast receiver type, or null if the receiver is not cast