java-disassembler icon indicating copy to clipboard operation
java-disassembler copied to clipboard

Extracting fully qualified names from tokens

Open rcx opened this issue 7 years ago • 0 comments

Consider this. this.getContentPane().setLayout(gridBagLayout); suppose the user has setLayout selected, how do we know which class the method belongs to? we need to look at return type of this.getContentPane(). so looks like we'd need to walk classtree.

another tricky case is:

object
.method()

we would need to look at the previous line. so keep that in mind.

Yet another tricky case is a constructor. That's a special one since you'd be looking for <init> instead.

there are several types of identifiers:

  • local variables
  • field names from code or from declaration
  • method names from code or from declaration
  • class names from code or from declaration

so keep these in mind.

rcx avatar Jun 25 '18 08:06 rcx