scphEditor
Class Expression.Replacement

java.lang.Object
  extended by scphEditor.Expression.Replacement
Enclosing class:
Expression

public class Expression.Replacement
extends java.lang.Object

A Replacement object represents a substitutional change made to an Expression object. Essentially, a change involves first deleting some children, then inserting some new children.


Field Summary
 int at
          The range of replacement begins at this index.
 int deleteCount
          The replacement involves deleting these many children.
 int insertCount
          The replacement involves inserting these many children.
 
Constructor Summary
Expression.Replacement(int a, int dN, int iN)
          Creates a Replacement object.
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

at

public int at
The range of replacement begins at this index.


deleteCount

public int deleteCount
The replacement involves deleting these many children. Note the semantics: delete, then insert.


insertCount

public int insertCount
The replacement involves inserting these many children. Note the semantics: delete, then insert.

Constructor Detail

Expression.Replacement

public Expression.Replacement(int a,
                              int dN,
                              int iN)
Creates a Replacement object.

Parameters:
a - becomes at.
dN - becomes deleteCount.
iN - becomes insertCount.