Resource is the interface that represents a .java or .class file and its contents in JavaModel.

Source: NetBeans FAQ