6.16.7. Java Tangler

The Java tangler is the same as the c++ tangler, except there are no #line directives. This is because I don't know enough about Java to write a Java tangler. Help!
Start python section to interscript/tanglers/java.py[1 /1 ]
     1: #line 357 "tanglers.ipk"
     2: from interscript.tanglers.base import tangler_base
     3: from interscript.tanglers.cpp import cpp_comment_tangler
     4: from interscript.tanglers.c import c_string_tangler
     5: import re
     6: class java_tangler(tangler_base):
     7:   def __init__(self,sink,weaver):
     8:     tangler_base.__init__(self,sink,weaver)
     9:     self.matchid = re.compile('^[^A-Za-z_]*([A-Za-z_][A-Za-z_0-9]*)(.*)$')
    10:     self.language = 'java'
    11: 
    12:   def write_comment(self,line):
    13:     self._writeline('// '+line)
    14: 
    15:   def start_section(self, file, count):
    16:     data = '//#line '+str(count)+' '+'"'+file+'"'
    17:     self._writeline(data)
    18:     if self.weaver:
    19:       self.weaver.echotangle(self.sink.lines_written,data)
    20: 
    21:   def get_comment_tangler(self):
    22:     return cpp_comment_tangler(self.sink)
    23: 
    24:   def get_string_tangler(self,eol,width):
    25:     return c_string_tangler(self.sink,self.weaver,eol,width)
    26: 
End python section to interscript/tanglers/java.py[1]