Search in sources :

Example 1 with NewKeyValueObjectExpression

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();
}
Also used : TypeRef(apex.jorje.data.ast.TypeRef) NewKeyValueObjectExpression(apex.jorje.semantic.ast.expression.NewKeyValueObjectExpression) ASTNewKeyValueObjectExpression(net.sourceforge.pmd.lang.apex.ast.ASTNewKeyValueObjectExpression)

Aggregations

TypeRef (apex.jorje.data.ast.TypeRef)1 NewKeyValueObjectExpression (apex.jorje.semantic.ast.expression.NewKeyValueObjectExpression)1 ASTNewKeyValueObjectExpression (net.sourceforge.pmd.lang.apex.ast.ASTNewKeyValueObjectExpression)1