Example #1
0
def JavaMemberString(scope, type_defn):
    """Gets the representation of a member name in Java.

  Args:
    scope: a Definition for the scope in which the expression will be written.
    type_defn: a Definition for the type.

  Returns:
    a string representing the type
  """
    return java_utils.GetScopedName(scope, type_defn)
Example #2
0
def JavaMemberString(scope, type_defn):
    """Gets the representation of a member name in Java.

  Args:
    scope: a Definition for the scope in which the expression will be written.
    type_defn: a Definition for the type.

  Returns:
    a string representing the type
  """
    # TODO: Check if we need the check below for Java
    #final_type = type_defn.GetFinalType()
    #if final_type.podtype == 'void':
    #  raise BadVoidUsage
    return java_utils.GetScopedName(scope, type_defn)