com.jeantessier.diff
Class FeatureDifferences

java.lang.Object
  |
  +--com.jeantessier.diff.RemovableDifferences
        |
        +--com.jeantessier.diff.FeatureDifferences
All Implemented Interfaces:
java.lang.Comparable, Differences
Direct Known Subclasses:
ConstructorDifferences, FieldDifferences, MethodDifferences

public abstract class FeatureDifferences
extends RemovableDifferences

Documents the difference, if any, for a given feature (field, constructor, or method). Its subclasses only differ in which Visitor callback they invoke.

See Also:
Visitor

Constructor Summary
protected FeatureDifferences(java.lang.String name, Feature_info old_feature, Feature_info new_feature)
          Only the DifferencesFactory can create instances of this class.
 
Method Summary
 boolean Inherited()
           
 void Inherited(boolean inherited)
           
 Feature_info NewFeature()
           
protected  void NewFeature(Feature_info new_feature)
           
 Feature_info OldFeature()
           
protected  void OldFeature(Feature_info old_feature)
           
 
Methods inherited from class com.jeantessier.diff.RemovableDifferences
compareTo, IsEmpty, IsModified, IsNew, IsRemoved, Name, NewDeclaration, NewDeclaration, OldDeclaration, OldDeclaration, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.jeantessier.diff.Differences
Accept
 

Constructor Detail

FeatureDifferences

protected FeatureDifferences(java.lang.String name,
                             Feature_info old_feature,
                             Feature_info new_feature)
Only the DifferencesFactory can create instances of this class.
Method Detail

OldFeature

public Feature_info OldFeature()

OldFeature

protected void OldFeature(Feature_info old_feature)

NewFeature

public Feature_info NewFeature()

NewFeature

protected void NewFeature(Feature_info new_feature)

Inherited

public boolean Inherited()

Inherited

public void Inherited(boolean inherited)