createGetter

Create a getter for this field, will only work if this field declares only 1 identifier and if this field is already added to a ClassOrInterfaceDeclaration

Return

the MethodDeclaration created

Throws

if there is more than 1 variable identifier or if this field isn't attached to a class or enum