private function exprClass(Node $class_name) {
    $colon_node = new PartialNode();
    $this->mustMatch(T_DOUBLE_COLON, $colon_node);
    if ($this->currentType === T_STRING) {
      $class_constant = $this->mustMatchToken(T_STRING);
      if ($this->currentType === '(') {
        return $this->classMethodCall($class_name, $colon_node, $class_constant);
      }
      else {
        return $this->classConstant($class_name, $colon_node, $class_constant);
      }
    }
    elseif ($this->currentType === T_CLASS) {
      return $this->classNameScalar($class_name, $colon_node);
    }
    else {
      return $this->classVariable($class_name, $colon_node);
    }
  }
private function exprClass(Node $class_name) {
    $colon_node = new PartialNode();
    $this->mustMatch(T_DOUBLE_COLON, $colon_node);
    if ($this->currentType === T_STRING) {
      $class_constant = $this->mustMatchToken(T_STRING);
      if ($this->currentType === '(') {
        return $this->classMethodCall($class_name, $colon_node, $class_constant);
      }
      else {
        return $this->classConstant($class_name, $colon_node, $class_constant);
      }
    }
    elseif ($this->currentType === T_CLASS) {
      return $this->classNameScalar($class_name, $colon_node);
    }
    else {
      return $this->classVariable($class_name, $colon_node);
    }
  }
private function exprClass ( Node $ class_name ) { $ colon_node = new PartialNode ( ) ; $ this -> mustMatch ( T_DOUBLE_COLON , $ colon_node ) ; if ( $ this -> currentType === T_STRING ) { $ class_constant = $ this -> mustMatchToken ( T_STRING ) ; if ( $ this -> currentType === '(' ) { return $ this -> classMethodCall ( $ class_name , $ colon_node , $ class_constant ) ; } else { return $ this -> classConstant ( $ class_name , $ colon_node , $ class_constant ) ; } } elseif ( $ this -> currentType === T_CLASS ) { return $ this -> classNameScalar ( $ class_name , $ colon_node ) ; } else { return $ this -> classVariable ( $ class_name , $ colon_node ) ; } }
Parse expression operand given class name.
@param Node $class_name
@return Node
Parse expression operand given class name .