de.uni_bremen.st.rcf.model
Class Fragments

java.lang.Object
  extended by de.uni_bremen.st.rcf.model.Relation<Fragment>
      extended by de.uni_bremen.st.rcf.model.Fragments
All Implemented Interfaces:
Iterable<Fragment>

public class Fragments
extends Relation<Fragment>

The Fragment relation.

Author:
harder

Method Summary
 Fragment addFragment(File file, int beginLine, int endLine, int beginColumn, int endColumn, int numTokens)
          Adds a new Fragment to the relation SourcePosition objects, required by the fragment will be created as well.
 Fragment addFragment(String filePath, Version version, int beginLine, int endLine, int beginColumn, int endColumn, int numTokens)
           
 Attribute getClientIdAttribute()
           
 Attribute getCloneClassesAttribute()
           
 Attribute getClonePairsAttribute()
           
 Attribute getEndAttribute()
           
 Attribute getIdAttribute()
           
 Attribute getNumTokensAttribute()
           
 Attribute getPredecessorsAttribute()
           
 Attribute getStartAttribute()
           
 Attribute getSuccessorsAttribute()
           
 
Methods inherited from class de.uni_bremen.st.rcf.model.Relation
addAttribute, addEnumAttribute, addListAttribute, addReferenceAttribute, addReferenceListAttribute, addScalarAttribute, append, equals, getAttribute, getAttributes, getEntry, getEntryType, getFirstEntry, getName, getRCF, hasAttribute, iterator, size
 
Methods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getIdAttribute

public Attribute getIdAttribute()

getClientIdAttribute

public Attribute getClientIdAttribute()

getStartAttribute

public Attribute getStartAttribute()

getEndAttribute

public Attribute getEndAttribute()

getNumTokensAttribute

public Attribute getNumTokensAttribute()

getPredecessorsAttribute

public Attribute getPredecessorsAttribute()

getSuccessorsAttribute

public Attribute getSuccessorsAttribute()

getCloneClassesAttribute

public Attribute getCloneClassesAttribute()

getClonePairsAttribute

public Attribute getClonePairsAttribute()

addFragment

public Fragment addFragment(File file,
                            int beginLine,
                            int endLine,
                            int beginColumn,
                            int endColumn,
                            int numTokens)
Adds a new Fragment to the relation SourcePosition objects, required by the fragment will be created as well. The version of newly created fragments will be set to the version of the delivered file. This will always create a new fragment even if a fragment with exactly the same attribute values does exist.

Parameters:
file - The file of the Fragment. Must not be null.
beginLine - The first line of the fragment. Must be greater or equal 0.
endLine - The last line of the fragment. Must be greater or equal 0.
beginColumn - The first column of the fragment. Must be freater or equal 0.
endColumn - The first column after the fragment in the last line of the fragment. Must be greater or equal 0.
numTokens - The number of tokens contained in the fragment. Must be greater or equal 0.
Returns:
The newly created fragment.

addFragment

public Fragment addFragment(String filePath,
                            Version version,
                            int beginLine,
                            int endLine,
                            int beginColumn,
                            int endColumn,
                            int numTokens)


Copyright © 2011. All Rights Reserved.