Top Description Methods
org.eclipse.persistence.jpa.jpql.tools

public Interface TextEdit

Known Direct Implementers
org.eclipse.persistence.jpa.jpql.tools.DefaultTextEdit

A TextEdit contains the information of a change that can be made to the JPQL query after performing a refactoring operation. TextRange objects are stored in a RefactoringDelta.
Author
Pascal Filion
Since
2.4
Version
2.4
See Also
BasicRefactoringTool

Method Summary

Modifier and TypeMethod and Description
public int

Returns:

The old value's length
getLength
()

Returns the length of the text to replace with the new value.

public String

Returns:

The value to replace the old value
getNewValue
()

Returns the new value that should replace the old value.

public int

Returns:

The location of the old value within the text
getOffset
()

Returns the location of the old value within the text.

public String

Returns:

The value to replace
getOldValue
()

Returns the value that was found within the text that should be replaced by the new value.

Method Detail

getLengthback to summary
public int getLength()

Returns the length of the text to replace with the new value.

Returns:int

The old value's length

getNewValueback to summary
public String getNewValue()

Returns the new value that should replace the old value.

Returns:String

The value to replace the old value

getOffsetback to summary
public int getOffset()

Returns the location of the old value within the text.

Returns:int

The location of the old value within the text

getOldValueback to summary
public String getOldValue()

Returns the value that was found within the text that should be replaced by the new value.

Returns:String

The value to replace