javaprec
Class SourceFileFilter

java.lang.Object
  |
  +--javaprec.SourceFileFilter
All Implemented Interfaces:
java.io.FileFilter

public class SourceFileFilter
extends java.lang.Object
implements java.io.FileFilter

SourceFileFilter - is a FileFilter that filters out all files except *.java files

Title: Runtime Java Class Editor - editor Package

Package Description: Edit & Select methods from all currently executing objects in enclosing programme

Copyright: James D Bloom Copyright (c) 2003

Version:
1.0
Author:
James D Bloom

Field Summary
private static java.lang.String extension
           
private static java.lang.String fullDescription
           
 
Constructor Summary
SourceFileFilter()
          Creates a file filter that accepts the default file type of java source files.
 
Method Summary
 boolean accept(java.io.File file)
          Returns true if the file is a java source file, false if it shouldn't
 java.lang.String getDescription()
          Returns the human readable description of this filter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

extension

private static java.lang.String extension

fullDescription

private static java.lang.String fullDescription
Constructor Detail

SourceFileFilter

public SourceFileFilter()
Creates a file filter that accepts the default file type of java source files.

Method Detail

accept

public boolean accept(java.io.File file)
Returns true if the file is a java source file, false if it shouldn't

Specified by:
accept in interface java.io.FileFilter
Parameters:
file - input File
Returns:
true if this file is a java source file

getDescription

public java.lang.String getDescription()
Returns the human readable description of this filter

Returns:
a String containing the human readable description of this filter