No, Java does not provide the ability to do what you describe.