Search in sources :

Example 1 with Field

use of apex.jorje.semantic.ast.member.Field in project pmd by pmd.

the class Helper method getFQVariableName.

static String getFQVariableName(final ASTField variable) {
    Field n = variable.getNode();
    StringBuilder sb = new StringBuilder().append(n.getDefiningType().getApexName()).append(":").append(n.getFieldInfo().getName());
    return sb.toString();
}
Also used : ASTField(net.sourceforge.pmd.lang.apex.ast.ASTField) Field(apex.jorje.semantic.ast.member.Field)

Example 2 with Field

use of apex.jorje.semantic.ast.member.Field in project pmd by pmd.

the class Helper method getVariableType.

static String getVariableType(final ASTField variable) {
    Field n = variable.getNode();
    StringBuilder sb = new StringBuilder().append(n.getDefiningType().getApexName()).append(":").append(n.getFieldInfo().getName());
    return sb.toString();
}
Also used : ASTField(net.sourceforge.pmd.lang.apex.ast.ASTField) Field(apex.jorje.semantic.ast.member.Field)

Aggregations

Field (apex.jorje.semantic.ast.member.Field)2 ASTField (net.sourceforge.pmd.lang.apex.ast.ASTField)2