Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 4 of 4

Thread: Find the important class in ".mse" file using Java program

  1. #1
    Junior Member
    Join Date
    Mar 2012
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question Find the important class in ".mse" file using Java program

    Actually my process is to find the important class from list of classes in ".mse" file, (FAMIX file) through java code?

    Plz anyone help me with answer bcoz past 3 days i was trying a lot.... N its very urgent to complete in 2 days....

    So plz help me out friends.....



    With Regards,
    Ashwarth


  2. #2
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,139
    Thanks
    65
    Thanked 2,720 Times in 2,670 Posts

    Default Re: Find the important class in ".mse" file using Java program

    What is the internal format for a .mse file?
    How do you know which class is the "important class"?

  3. #3
    Junior Member
    Join Date
    Mar 2012
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: Find the important class in ".mse" file using Java program

    dis is d format of file.. i want to find the important class that too through java code
    .mse File content:



    (

    (FAMIX.JavaSourceLanguage)
    (FAMIX.Namespace (id: 9)
    (name '')
    )

    (FAMIX.Package (id: 5)
    (name '_unknown_package_')
    )

    (FAMIX.Package (id: 7)
    (name 'src::')
    )

    (FAMIX.Module (id: 2)
    (parentPackage (ref: 5))
    (name '_unknown_file')
    )

    (FAMIX.FileAnchor (id: 114)
    (fileName '_unknown_path')
    )

    (FAMIX.Class (id: 3)
    (sourceAnchor (ref: 114))
    (isStub true)
    (parentPackage (ref: 5))
    (name '_unknown_type')
    )

    (FAMIX.FileAnchor (id: 115)
    (fileName '_unknown_path')
    )

    (FAMIX.Class (id: 12)
    (sourceAnchor (ref: 115))
    (isStub true)
    (parentPackage (ref: 5))
    (name 'Object')
    )

    (FAMIX.FileAnchor (id: 116)
    (fileName '_unknown_path')
    )

    (FAMIX.Class (id: 20)
    (sourceAnchor (ref: 116))
    (isStub true)
    (parentPackage (ref: 5))
    (name 'String')
    )

    (FAMIX.FileAnchor (id: 117)
    (fileName '_unknown_path')
    )

    (FAMIX.Class (id: 22)
    (sourceAnchor (ref: 117))
    (isStub true)
    (parentPackage (ref: 5))
    (name 'System')
    )

    (FAMIX.PrimitiveType (id: 36)
    (name '_unknown_file.void')
    )

    (FAMIX.PrimitiveType (id: 39)
    (name '_unknown_file.int')
    )

    (FAMIX.FileAnchor (id: 118)
    (fileName '_unknown_path')
    )

    (FAMIX.Class (id: 59)
    (sourceAnchor (ref: 118))
    (isStub true)
    (parentPackage (ref: 5))
    (name 'FileInputStream')
    )

    (FAMIX.FileAnchor (id: 119)
    (fileName '_unknown_path')
    )

    (FAMIX.Class (id: 61)
    (sourceAnchor (ref: 119))
    (isStub true)
    (parentPackage (ref: 5))
    (name 'DataInputStream')
    )

    (FAMIX.FileAnchor (id: 120)
    (fileName '_unknown_path')
    )

    (FAMIX.Class (id: 63)
    (sourceAnchor (ref: 120))
    (isStub true)
    (parentPackage (ref: 5))
    (name 'BufferedReader')
    )

    (FAMIX.FileAnchor (id: 121)
    (fileName '_unknown_path')
    )

    (FAMIX.Class (id: 68)
    (sourceAnchor (ref: 121))
    (isStub true)
    (parentPackage (ref: 5))
    (name 'Exception')
    )

    (FAMIX.FileAnchor (id: 122)
    (fileName '_unknown_path')
    )

    (FAMIX.Class (id: 88)
    (sourceAnchor (ref: 122))
    (isStub true)
    (parentPackage (ref: 5))
    (name 'InputStreamReader')
    )

    (FAMIX.FileAnchor (id: 123)
    (fileName 'src/sample.java')
    (startLine 1)
    (endLine 10)
    (startColumn 0)
    (endColumn 1)
    )

    (FAMIX.Class (id: 11)
    (sourceAnchor (ref: 123))
    (parentPackage (ref: 7))
    (container (ref: 9))
    (name 'sample')
    )

    (FAMIX.Inheritance (id: 124)
    (subclass (ref: 11))
    (superclass (ref: 12))
    )

    (FAMIX.FileAnchor (id: 125)
    (fileName 'src/sample.java')
    (startLine 11)
    (endLine 20)
    (startColumn 0)
    (endColumn 1)
    )

    (FAMIX.Class (id: 18)
    (sourceAnchor (ref: 125))
    (parentPackage (ref: 7))
    (container (ref: 9))
    (name 'sample2')
    )

    (FAMIX.Inheritance (id: 126)
    (subclass (ref: 18))
    (superclass (ref: 12))
    )

    (FAMIX.FileAnchor (id: 127)
    (fileName 'src/metrics.java')
    (startLine 2)
    (endLine 67)
    (startColumn 0)
    (endColumn 1)
    )

    (FAMIX.Class (id: 54)
    (sourceAnchor (ref: 127))
    (parentPackage (ref: 7))
    (container (ref: 9))
    (name 'metrics')
    )

    (FAMIX.Inheritance (id: 128)
    (subclass (ref: 54))
    (superclass (ref: 12))
    )

    (FAMIX.FileAnchor (id: 129)
    (fileName 'src/methodCall.java')
    (startLine 1)
    (endLine 11)
    (startColumn 0)
    (endColumn 1)
    )

    (FAMIX.Class (id: 16)
    (sourceAnchor (ref: 129))
    (parentPackage (ref: 7))
    (container (ref: 9))
    (name 'methodCall')
    )

    (FAMIX.Inheritance (id: 130)
    (subclass (ref: 16))
    (superclass (ref: 12))
    )

    (FAMIX.Attribute (id: 21)
    (name 'out')
    (parentType (ref: 22))
    (declaredType (ref: 3))
    (isPackage true)
    )

    (FAMIX.FileAnchor (id: 131)
    (fileName '_unknown_path')
    )

    (FAMIX.Method (id: 26)
    (sourceAnchor (ref: 131))
    (parentType (ref: 3))
    (declaredType (ref: 3))
    (name 'println')
    (signature 'println()')
    (isPackage true)
    )

    (FAMIX.FileAnchor (id: 132)
    (fileName '_unknown_path')
    )

    (FAMIX.Method (id: 78)
    (sourceAnchor (ref: 132))
    (parentType (ref: 3))
    (declaredType (ref: 3))
    (name 'readLine')
    (signature 'readLine()')
    (isPackage true)
    )

    (FAMIX.FileAnchor (id: 133)
    (fileName '_unknown_path')
    )

    (FAMIX.Method (id: 79)
    (sourceAnchor (ref: 133))
    (parentType (ref: 3))
    (declaredType (ref: 3))
    (name 'length')
    (signature 'length()')
    (isPackage true)
    )

    (FAMIX.FileAnchor (id: 134)
    (fileName '_unknown_path')
    )

    (FAMIX.Method (id: 80)
    (sourceAnchor (ref: 134))
    (parentType (ref: 3))
    (declaredType (ref: 3))
    (name 'close')
    (signature 'close()')
    (isPackage true)
    )

    (FAMIX.FileAnchor (id: 135)
    (fileName '_unknown_path')
    )

    (FAMIX.Method (id: 81)
    (sourceAnchor (ref: 135))
    (parentType (ref: 3))
    (declaredType (ref: 3))
    (name 'getMessage')
    (signature 'getMessage()')
    (isPackage true)
    )

    (FAMIX.FileAnchor (id: 136)
    (fileName '_unknown_path')
    )

    (FAMIX.Method (id: 92)
    (sourceAnchor (ref: 136))
    (parentType (ref: 59))
    (declaredType (ref: 3))
    (name 'FileInputStream')
    (signature 'FileInputStream()')
    (isPackage true)
    )

    (FAMIX.FileAnchor (id: 137)
    (fileName '_unknown_path')
    )

    (FAMIX.Method (id: 94)
    (sourceAnchor (ref: 137))
    (parentType (ref: 61))
    (declaredType (ref: 3))
    (name 'DataInputStream')
    (signature 'DataInputStream()')
    (isPackage true)
    )

    (FAMIX.FileAnchor (id: 138)
    (fileName '_unknown_path')
    )

    (FAMIX.Method (id: 85)
    (sourceAnchor (ref: 138))
    (parentType (ref: 63))
    (declaredType (ref: 3))
    (name 'BufferedReader')
    (signature 'BufferedReader()')
    (isPackage true)
    )

    (FAMIX.FileAnchor (id: 139)
    (fileName '_unknown_path')
    )

    (FAMIX.Method (id: 87)
    (sourceAnchor (ref: 139))
    (parentType (ref: 88))
    (declaredType (ref: 3))
    (name 'InputStreamReader')
    (signature 'InputStreamReader()')
    (isPackage true)
    )

    (FAMIX.FileAnchor (id: 140)
    (fileName 'src/sample.java')
    (startLine 2)
    (endLine 9)
    (startColumn 1)
    (endColumn 2)
    )

    (FAMIX.Method (id: 13)
    (sourceAnchor (ref: 140))
    (parentType (ref: 11))
    (declaredType (ref: 36))
    (name 'main')
    (signature 'main(_unknown_path::String)')
    (hasClassScope true)
    (isPublic true)
    )

    (FAMIX.FileAnchor (id: 141)
    (fileName 'src/sample.java')
    (startLine 12)
    (endLine 15)
    (startColumn 1)
    (endColumn 2)
    )

    (FAMIX.Method (id: 29)
    (sourceAnchor (ref: 141))
    (parentType (ref: 18))
    (declaredType (ref: 39))
    (name 'mul')
    (signature 'mul(_unknown_file::int,_unknown_file::int)')
    (isPublic true)
    )

    (FAMIX.FileAnchor (id: 142)
    (fileName 'src/sample.java')
    (startLine 16)
    (endLine 19)
    (startColumn 1)
    (endColumn 2)
    )

    (FAMIX.Method (id: 30)
    (sourceAnchor (ref: 142))
    (parentType (ref: 18))
    (declaredType (ref: 39))
    (name 'div')
    (signature 'div(_unknown_file::int,_unknown_file::int)')
    (isPublic true)
    )

    (FAMIX.FileAnchor (id: 143)
    (fileName 'src/metrics.java')
    (startLine 4)
    (endLine 66)
    (startColumn 1)
    (endColumn 3)
    )

    (FAMIX.Method (id: 55)
    (sourceAnchor (ref: 143))
    (parentType (ref: 54))
    (declaredType (ref: 36))
    (name 'main')
    (signature 'main(_unknown_path::String)')
    (hasClassScope true)
    (isPublic true)
    )

    (FAMIX.CaughtException (id: 144)
    (definingMethod (ref: 55))
    (exceptionClass (ref: 68))
    )

    (FAMIX.FileAnchor (id: 145)
    (fileName 'src/methodCall.java')
    (startLine 2)
    (endLine 5)
    (startColumn 1)
    (endColumn 2)
    )

    (FAMIX.Method (id: 27)
    (sourceAnchor (ref: 145))
    (parentType (ref: 16))
    (declaredType (ref: 39))
    (name 'add')
    (signature 'add(_unknown_file::int,_unknown_file::int)')
    (isPublic true)
    )

    (FAMIX.FileAnchor (id: 146)
    (fileName 'src/methodCall.java')
    (startLine 6)
    (endLine 9)
    (startColumn 1)
    (endColumn 2)
    )

    (FAMIX.Method (id: 28)
    (sourceAnchor (ref: 146))
    (parentType (ref: 16))
    (declaredType (ref: 39))
    (name 'sub')
    (signature 'sub(_unknown_file::int,_unknown_file::int)')
    (isPublic true)
    )

    (FAMIX.Parameter (id: 19)
    (name 'args')
    (parentBehaviouralEntity (ref: 13))
    (declaredType (ref: 20))
    (position 0)
    )

    (FAMIX.Parameter (id: 38)
    (name 'a')
    (parentBehaviouralEntity (ref: 29))
    (declaredType (ref: 39))
    (position 0)
    )

    (FAMIX.Parameter (id: 40)
    (name 'b')
    (parentBehaviouralEntity (ref: 29))
    (declaredType (ref: 39))
    (position 1)
    )

    (FAMIX.Parameter (id: 46)
    (name 'a')
    (parentBehaviouralEntity (ref: 30))
    (declaredType (ref: 39))
    (position 0)
    )

    (FAMIX.Parameter (id: 48)
    (name 'b')
    (parentBehaviouralEntity (ref: 30))
    (declaredType (ref: 39))
    (position 1)
    )

    (FAMIX.Parameter (id: 69)
    (name 'args')
    (parentBehaviouralEntity (ref: 55))
    (declaredType (ref: 20))
    (position 0)
    )

    (FAMIX.Parameter (id: 99)
    (name 'a')
    (parentBehaviouralEntity (ref: 27))
    (declaredType (ref: 39))
    (position 0)
    )

    (FAMIX.Parameter (id: 101)
    (name 'b')
    (parentBehaviouralEntity (ref: 27))
    (declaredType (ref: 39))
    (position 1)
    )

    (FAMIX.Parameter (id: 107)
    (name 'a')
    (parentBehaviouralEntity (ref: 28))
    (declaredType (ref: 39))
    (position 0)
    )

    (FAMIX.Parameter (id: 109)
    (name 'b')
    (parentBehaviouralEntity (ref: 28))
    (declaredType (ref: 39))
    (position 1)
    )

    (FAMIX.LocalVariable (id: 15)
    (name 'method')
    (declaredType (ref: 16))
    (parentBehaviouralEntity (ref: 13))
    )

    (FAMIX.LocalVariable (id: 17)
    (name 'sam')
    (declaredType (ref: 18))
    (parentBehaviouralEntity (ref: 13))
    )

    (FAMIX.LocalVariable (id: 57)
    (name 'ft')
    (declaredType (ref: 20))
    (parentBehaviouralEntity (ref: 55))
    )

    (FAMIX.LocalVariable (id: 58)
    (name 'fstream')
    (declaredType (ref: 59))
    (parentBehaviouralEntity (ref: 55))
    )

    (FAMIX.LocalVariable (id: 60)
    (name 'in')
    (declaredType (ref: 61))
    (parentBehaviouralEntity (ref: 55))
    )

    (FAMIX.LocalVariable (id: 62)
    (name 'br')
    (declaredType (ref: 63))
    (parentBehaviouralEntity (ref: 55))
    )

    (FAMIX.LocalVariable (id: 64)
    (name 'count')
    (declaredType (ref: 39))
    (parentBehaviouralEntity (ref: 55))
    )

    (FAMIX.LocalVariable (id: 66)
    (name 'line')
    (declaredType (ref: 20))
    (parentBehaviouralEntity (ref: 55))
    )

    (FAMIX.LocalVariable (id: 67)
    (name 'e')
    (declaredType (ref: 68))
    (parentBehaviouralEntity (ref: 55))
    )

    (FAMIX.Access
    (variable (ref: 21))
    (accessor (ref: 13))
    (isWrite false)
    )

    (FAMIX.Access
    (variable (ref: 21))
    (accessor (ref: 13))
    (isWrite false)
    )

    (FAMIX.Access
    (variable (ref: 21))
    (accessor (ref: 13))
    (isWrite false)
    )

    (FAMIX.Access
    (variable (ref: 21))
    (accessor (ref: 13))
    (isWrite false)
    )

    (FAMIX.Access
    (variable (ref: 15))
    (accessor (ref: 13))
    (isWrite false)
    )

    (FAMIX.Access
    (variable (ref: 15))
    (accessor (ref: 13))
    (isWrite false)
    )

    (FAMIX.Access
    (variable (ref: 17))
    (accessor (ref: 13))
    (isWrite false)
    )

    (FAMIX.Access
    (variable (ref: 17))
    (accessor (ref: 13))
    (isWrite false)
    )

    (FAMIX.Access
    (variable (ref: 40))
    (accessor (ref: 29))
    (isWrite false)
    )

    (FAMIX.Access
    (variable (ref: 38))
    (accessor (ref: 29))
    (isWrite false)
    )

    (FAMIX.Access
    (variable (ref: 46))
    (accessor (ref: 30))
    (isWrite false)
    )

    (FAMIX.Access
    (variable (ref: 48))
    (accessor (ref: 30))
    (isWrite false)
    )

    (FAMIX.Access
    (variable (ref: 21))
    (accessor (ref: 55))
    (isWrite false)
    )

    (FAMIX.Access
    (variable (ref: 21))
    (accessor (ref: 55))
    (isWrite false)
    )

    (FAMIX.Access
    (variable (ref: 66))
    (accessor (ref: 55))
    (isWrite true)
    )

    (FAMIX.Access
    (variable (ref: 66))
    (accessor (ref: 55))
    (isWrite true)
    )

    (FAMIX.Access
    (variable (ref: 58))
    (accessor (ref: 55))
    (isWrite false)
    )

    (FAMIX.Access
    (variable (ref: 64))
    (accessor (ref: 55))
    (isWrite false)
    )

    (FAMIX.Access
    (variable (ref: 64))
    (accessor (ref: 55))
    (isWrite false)
    )

    (FAMIX.Access
    (variable (ref: 67))
    (accessor (ref: 55))
    (isWrite false)
    )

    (FAMIX.Access
    (variable (ref: 60))
    (accessor (ref: 55))
    (isWrite false)
    )

    (FAMIX.Access
    (variable (ref: 60))
    (accessor (ref: 55))
    (isWrite false)
    )

    (FAMIX.Access
    (variable (ref: 57))
    (accessor (ref: 55))
    (isWrite false)
    )

    (FAMIX.Access
    (variable (ref: 62))
    (accessor (ref: 55))
    (isWrite false)
    )

    (FAMIX.Access
    (variable (ref: 101))
    (accessor (ref: 27))
    (isWrite false)
    )

    (FAMIX.Access
    (variable (ref: 99))
    (accessor (ref: 27))
    (isWrite false)
    )

    (FAMIX.Access
    (variable (ref: 107))
    (accessor (ref: 28))
    (isWrite false)
    )

    (FAMIX.Access
    (variable (ref: 109))
    (accessor (ref: 28))
    (isWrite false)
    )

    (FAMIX.Invocation
    (sender (ref: 13))
    (candidates (ref: 29))
    (receiver (ref: 17))
    (signature 'mul(_unknown_file::int,_unknown_file::int)')
    )

    (FAMIX.Invocation
    (sender (ref: 13))
    (candidates (ref: 30))
    (receiver (ref: 17))
    (signature 'div(_unknown_file::int,_unknown_file::int)')
    )

    (FAMIX.Invocation
    (sender (ref: 13))
    (candidates (ref: 27))
    (receiver (ref: 15))
    (signature 'add(_unknown_file::int,_unknown_file::int)')
    )

    (FAMIX.Invocation
    (sender (ref: 13))
    (candidates (ref: 28))
    (receiver (ref: 15))
    (signature 'sub(_unknown_file::int,_unknown_file::int)')
    )

    (FAMIX.Invocation
    (sender (ref: 13))
    (candidates (ref: 26))
    (signature 'println()')
    )

    (FAMIX.Invocation
    (sender (ref: 13))
    (candidates (ref: 26))
    (signature 'println()')
    )

    (FAMIX.Invocation
    (sender (ref: 13))
    (candidates (ref: 26))
    (signature 'println()')
    )

    (FAMIX.Invocation
    (sender (ref: 13))
    (candidates (ref: 26))
    (signature 'println()')
    )

    (FAMIX.Invocation
    (sender (ref: 55))
    (candidates (ref: 81))
    (receiver (ref: 67))
    (signature 'getMessage()')
    )

    (FAMIX.Invocation
    (sender (ref: 55))
    (candidates (ref: 78))
    (receiver (ref: 62))
    (signature 'readLine()')
    )

    (FAMIX.Invocation
    (sender (ref: 55))
    (candidates (ref: 79))
    (receiver (ref: 66))
    (signature 'length()')
    )

    (FAMIX.Invocation
    (sender (ref: 55))
    (candidates (ref: 85))
    (signature 'BufferedReader()')
    )

    (FAMIX.Invocation
    (sender (ref: 55))
    (candidates (ref: 87))
    (signature 'InputStreamReader()')
    )

    (FAMIX.Invocation
    (sender (ref: 55))
    (candidates (ref: 80))
    (receiver (ref: 60))
    (signature 'close()')
    )

    (FAMIX.Invocation
    (sender (ref: 55))
    (candidates (ref: 26))
    (signature 'println()')
    )

    (FAMIX.Invocation
    (sender (ref: 55))
    (candidates (ref: 26))
    (signature 'println()')
    )

    (FAMIX.Invocation
    (sender (ref: 55))
    (candidates (ref: 92))
    (signature 'FileInputStream()')
    )

    (FAMIX.Invocation
    (sender (ref: 55))
    (candidates (ref: 94))
    (signature 'DataInputStream()')
    )

    )

  4. #4
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,139
    Thanks
    65
    Thanked 2,720 Times in 2,670 Posts

    Default Re: Find the important class in ".mse" file using Java program

    What is the format of the file? I see data in groups of four lines with an ending ). What data is on each line?

    How do you find the "important class"?

    If the file is a text file, then you will be able to read it easily and scan each line looking for what you want to find.

Similar Threads

  1. [SOLVED] Card Program"War" Class help
    By Usoda in forum What's Wrong With My Code?
    Replies: 7
    Last Post: February 16th, 2012, 08:43 PM
  2. Replies: 3
    Last Post: December 7th, 2011, 02:03 AM
  3. Replies: 7
    Last Post: August 13th, 2011, 01:22 AM
  4. Replies: 8
    Last Post: August 9th, 2011, 08:25 PM
  5. "java.lang.NoSuchMethodError: main" and "fatal exception occured."
    By joachim89 in forum What's Wrong With My Code?
    Replies: 2
    Last Post: January 10th, 2010, 08:35 AM