I have a macro that is using method/property signatures to generate appropriate functionality. I have a section of code like:
if method.kind_of? Member
signature = Member(method).signature
if signature
puts "Reading signature #{signature} for #{
method.name}"
reader = SignatureReader.new(signature.toString)
visitor = BaseSignatureVisitor.new(1)
reader.accept visitor
signatureStruct = visitor.getParameters
else
end
else
puts "Method #{
method.name} is of type #{method.getClass}"
nil
end
(In this example member is of type JVMMethod, and it may be a public property or getter method).
With public properties Member(method).signature is always nil. I haven't checked the actual bytecode to see if this is because of javac's output (i.e. the signature is actually retrievable) or if Mirah just isn't pulling this in.
Is there any way to pull in the signature for public properties?
Thanks for any pointers.
Best regards
Steve
--
Steve Hannah
Web Lite Solutions Corp.