use of apex.jorje.semantic.ast.expression.NewKeyValueObjectExpression in project pmd by pmd.
the class Helper method getFQVariableName.
static String getFQVariableName(final ASTNewKeyValueObjectExpression variable) {
NewKeyValueObjectExpression n = variable.getNode();
TypeRef typeRef = n.getTypeRef();
String objType = typeRef.getNames().get(0).getValue();
StringBuilder sb = new StringBuilder().append(n.getDefiningType().getApexName()).append(":").append(objType);
return sb.toString();
}
Aggregations