2017-02-21 71 views

回答

0

類型的節點的結合給出了這樣的信息用於可變

例如:

SimpleName simpleName = //initialize variable; 
if (simpleName.resolveBinding() instanceof VariableBinding){ 
    // simpleName is a variable identifier 
} 
if (simpleName.resolveBinding() instanceof MethodBinding){ 
    // simpleName is a method identifier 
}