Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK
11g Release 2 (11.1.2.2.0)

E17493-03


oracle.jdeveloper.java.dependency
Class FieldDeclaration

java.lang.Object
  extended by oracle.ide.dependency.IdDeclaration
      extended by oracle.jdeveloper.java.dependency.FieldDeclaration

All Implemented Interfaces:
Declaration, SourceDeclaration

public class FieldDeclaration
extends IdDeclaration

The declaration of a Java field.


Field Summary

 

Fields inherited from class oracle.ide.dependency.IdDeclaration
id

 

Constructor Summary
FieldDeclaration(java.lang.String id, Workspace workspace, Project project, SourceElement element, java.lang.String fqClassName, java.lang.String fieldName)
           

 

Method Summary
 void finalize()
           
 java.lang.String getClassName()
          Get the fully qualified name of the class containing this method.
 int getEndOffset()
          Get the end offset of the declaration in the source file.
 java.lang.String getFieldName()
          Get the name of the declared field.
 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

 

Constructor Detail

FieldDeclaration

public FieldDeclaration(java.lang.String id,
                        Workspace workspace,
                        Project project,
                        SourceElement element,
                        java.lang.String fqClassName,
                        java.lang.String fieldName)

Method Detail

getClassName

public java.lang.String getClassName()
Get the fully qualified name of the class containing this method.
Returns:
the fully qualified class name

getFieldName

public java.lang.String getFieldName()
Get the name of the declared field.
Returns:
the field 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

Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK
11g Release 2 (11.1.2.2.0)

E17493-03


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