Class NestedClass
java.lang.Object
org.netbeans.spi.project.NestedClass
Structure representing an identification of a nested class in a file.
NestedClass
can be used to represent nested classes within parent class
Example:
If we have following structure: ParentClass (parent-of) ChildClass1 (parent-of) ChildClass2,
for ChildClass1 className field would contain "ChildClass1" and topLevelClassName would contain "ParentClass",
for ChildClass2 className field would contain "ChildClass1.ChildClass2" and topLevelClassName would contain "ParentClass"
- Since:
- 1.99
-
Constructor Summary
ConstructorsConstructorDescriptionNestedClass
(String className, String topLevelClassName, org.openide.filesystems.FileObject file) Creates a new instance holding the specified identification of a nested class. -
Method Summary
-
Constructor Details
-
NestedClass
public NestedClass(String className, String topLevelClassName, org.openide.filesystems.FileObject file) Creates a new instance holding the specified identification of a nested class.- Parameters:
className
- name of a class inside the filetopLevelClassName
- top level name of a class inside the filefile
- file to be kept in the object- Throws:
IllegalArgumentException
- if the file or class name isnull
- Since:
- 1.99
-
-
Method Details
-
getFile
public org.openide.filesystems.FileObject getFile()Returns the file identification.- Returns:
- file held by this object
- Since:
- 1.99
-
getClassName
Returns name of a nested class within a file.- Returns:
- class name held by this object
- Since:
- 1.99
-
getTopLevelClassName
Returns name of a top level class within a file.- Returns:
- top level class name held by this object
- Since:
- 1.99
-
getFQN
-
getFQN
-
hashCode
-
equals
-