Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference
11g Release 1 (11.1.1.6.0)

E13403-07

oracle.jdeveloper.java.dependency
Class ClassDeclaration

java.lang.Object
  extended by oracle.ide.dependency.IdDeclaration
      extended by oracle.jdeveloper.java.dependency.ClassDeclaration
All Implemented Interfaces:
Declaration, SourceDeclaration

public class ClassDeclaration
extends IdDeclaration

The declaration of a Java class.


Field Summary
 
Fields inherited from class oracle.ide.dependency.IdDeclaration
id
 
Method Summary
 void finalize()
           
 java.lang.String getClassName()
          Get the fully qualified name of the declared class.
 int getEndOffset()
          Get the end offset of the declaration in the source file.
 Project getProject()
          Get the project containing the source file this declaration appears in.
 int getStartOffset()
          Get the start offset of the declaration in the source file.
 java.net.URL getURL()
          Get the URL containing this declaration, if there is one.
 Workspace getWorkspace()
          Get the workspace containing the source file this declaration appears in.
 void show()
          Show this declaration to the user.
 
Methods inherited from class oracle.ide.dependency.IdDeclaration
canDelete, delete, equals, findDeclaration, getDeclarationId, hashCode
 
Methods inherited from class java.lang.Object
clone, getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface oracle.ide.dependency.Declaration
canDelete, delete
 

Method Detail

getClassName

public java.lang.String getClassName()
Get the fully qualified name of the declared class.

Returns:
the fully qualified class name

getWorkspace

public Workspace getWorkspace()
Description copied from interface: SourceDeclaration
Get the workspace containing the source file this declaration appears in.

Specified by:
getWorkspace in interface SourceDeclaration
Returns:
the workspace

getProject

public Project getProject()
Description copied from interface: SourceDeclaration
Get the project containing the source file this declaration appears in.

Specified by:
getProject in interface SourceDeclaration
Returns:
the project

getURL

public java.net.URL getURL()
Description copied from interface: Declaration
Get the URL containing this declaration, if there is one.

Specified by:
getURL in interface Declaration
Returns:
the URL, or null if there is no URL associated with this declaration

getStartOffset

public int getStartOffset()
Description copied from interface: SourceDeclaration
Get the start offset of the declaration in the source file.

Specified by:
getStartOffset in interface SourceDeclaration
Returns:
the start offset

getEndOffset

public int getEndOffset()
Description copied from interface: SourceDeclaration
Get the end offset of the declaration in the source file.

Specified by:
getEndOffset in interface SourceDeclaration
Returns:
the end offset

finalize

public void finalize()
Overrides:
finalize in class java.lang.Object

show

public void show()
Description copied from interface: Declaration
Show this declaration to the user. For example, this might open an editor with the declaration selected.

Specified by:
show in interface Declaration

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference
11g Release 1 (11.1.1.6.0)

E13403-07

Copyright © 1997, 2011, Oracle. All rights reserved.