You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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 ofthis.getContentPane()
. so looks like we'd need to walk classtree.another tricky case is:
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:
so keep these in mind.
The text was updated successfully, but these errors were encountered: