}
@Override
public void visit(StaticMethodInvocation node) {
super.visit(node);
Expression classNameExpression = node.getClassName();
String className = CodeUtils.extractQualifiedName(classNameExpression);
if (!VIEW_CLASS.equals(className) && !VIEW_MODEL_CLASS.equals(className)) {
return;
}
FunctionInvocation fi = node.getMethod();
String invokedMethodName = CodeUtils.extractFunctionName(fi);
if (!FORGE_METHOD.equals(invokedMethodName)) {
return;
}
// get method parameters
List<Expression> parameters = fi.getParameters();
Expression e = null;
if (!parameters.isEmpty()) {
e = parameters.get(0);
}
String path = ""; // NOI18N
if (e instanceof Scalar) {