} else if (arg instanceof SimpleName) {
SimpleName name = (SimpleName) arg;
// System.err.println("TODO -> Name: " + name);
VariableDeclaration varDecl = LapseView.name2decl(name, unit, resource);
if (varDecl instanceof SingleVariableDeclaration) {
SingleVariableDeclaration decl = (SingleVariableDeclaration) varDecl;
if (decl.getInitializer() != null && decl.getInitializer() instanceof StringLiteral) {
StringLiteral l = (StringLiteral) decl.getInitializer();
return true;
}
} else {
VariableDeclarationFragment decl = (VariableDeclarationFragment) varDecl;
if (decl.getInitializer() != null) {
return isStringContant(decl.getInitializer(), unit, resource);
}
}
} else if (arg instanceof MethodInvocation) {
MethodInvocation inv = (MethodInvocation) arg;
if (inv.getName().getIdentifier().equals("toString")) {