update ClassElement and MethodDefinition interfaces