Java Code Examples for org.apache.uima.cas.impl.CASImpl#traceFSs()

The following examples show how to use org.apache.uima.cas.impl.CASImpl#traceFSs() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: IntegerArrayList.java    From uima-uimaj with Apache License 2.0 5 votes vote down vote up
/** @generated
 * @param jcas JCas to which this Feature Structure belongs 
 */
public IntegerArrayList(JCas jcas) {
  super(jcas);
  intArrayList = new IntVector();
  if (CASImpl.traceFSs) { // tracing done after array setting, skipped in super class
    _casView.traceFSCreate(this);
  }
}
 
Example 2
Source File: ByteArray.java    From uima-uimaj with Apache License 2.0 5 votes vote down vote up
/**
 * used by generator
 * Make a new ByteArray of given size
 * @param c -
 * @param t -
 * @param length the length of the array in bytes
 */
public ByteArray(TypeImpl t, CASImpl c, int length) {
  super(t, c);  
  theArray = new byte[length];
  if (CASImpl.traceFSs) { // tracing done after array setting, skipped in super class
    _casView.traceFSCreate(this);
  }
  if (_casView.isId2Fs()) {
    _casView.adjustLastFsV2size_nonHeapStoredArrays(); 
  }     
}
 
Example 3
Source File: FSHashSet.java    From uima-uimaj with Apache License 2.0 5 votes vote down vote up
public FSHashSet(HashSet<T> set, JCas jcas) {
  super(jcas);
  fsHashSet = set;

  if (CASImpl.traceFSs) { // tracing done after array setting, skipped in super class
    _casView.traceFSCreate(this);
  }   
}
 
Example 4
Source File: FSArrayList.java    From uima-uimaj with Apache License 2.0 5 votes vote down vote up
/** Internal - constructor used by generator 
 * @generated
 * @param casImpl the CAS this Feature Structure belongs to
 * @param type the type of this Feature Structure 
 */
public FSArrayList(TypeImpl type, CASImpl casImpl) {
  super(type, casImpl);
  if (CASImpl.traceFSs) { // tracing done after array setting, skipped in super class
    _casView.traceFSCreate(this);
  }
  fsArrayList = new ArrayList<>();
}
 
Example 5
Source File: ShortArray.java    From uima-uimaj with Apache License 2.0 5 votes vote down vote up
/**
 * Make a new ShortArray of given size
 * @param jcas The JCas
 * @param length The number of elements in the new array
 */
public ShortArray(JCas jcas, int length) {
  super(jcas);
  theArray = new short[length];
  if (CASImpl.traceFSs) { // tracing done after array setting, skipped in super class
    _casView.traceFSCreate(this);
  }
  if (_casView.isId2Fs()) {
    _casView.adjustLastFsV2size_nonHeapStoredArrays(); 
  }     
}
 
Example 6
Source File: LongArray.java    From uima-uimaj with Apache License 2.0 5 votes vote down vote up
/**
 * used by generator
 * Make a new LongArray of given size
 * @param c -
 * @param t -
 * @param length the length of the array in bytes
 */
public LongArray(TypeImpl t, CASImpl c, int length) {
  super(t, c);  
  theArray = new long[length];
  if (CASImpl.traceFSs) { // tracing done after array setting, skipped in super class
    _casView.traceFSCreate(this);
  }
  if (_casView.isId2Fs()) {
    _casView.adjustLastFsV2size_nonHeapStoredArrays(); 
  }     
}
 
Example 7
Source File: IntegerArray.java    From uima-uimaj with Apache License 2.0 5 votes vote down vote up
/**
 * Make a new IntegerArray of given size
 * @param jcas The JCas
 * @param length The number of elements in the new array
 */  
public IntegerArray(JCas jcas, int length) {
  super(jcas);
  theArray = new int[length];
  if (CASImpl.traceFSs) { // tracing done after array setting, skipped in super class
    _casView.traceFSCreate(this);
  }
  if (_casView.isId2Fs()) {
    _casView.adjustLastFsV2Size_arrays(length);
  }    
}
 
Example 8
Source File: LongArray.java    From uima-uimaj with Apache License 2.0 5 votes vote down vote up
/**
 * Make a new LongArray of given size
 * @param jcas The JCas
 * @param length The number of elements in the new array
 */
public LongArray(JCas jcas, int length) {
  super(jcas);
  theArray = new long[length];
  if (CASImpl.traceFSs) { // tracing done after array setting, skipped in super class
    _casView.traceFSCreate(this);
  }
  if (_casView.isId2Fs()) {
    _casView.adjustLastFsV2size_nonHeapStoredArrays(); 
  }     
}
 
Example 9
Source File: FSArray.java    From uima-uimaj with Apache License 2.0 5 votes vote down vote up
/**
 * Make a new FSArray of given size
 * @param jcas The JCas
 * @param length The number of elements in the new array
 */
public FSArray(JCas jcas, int length) {
  super(jcas);
  _casView.validateArraySize(length);
  theArray = new TOP[length];

  if (CASImpl.traceFSs) { // tracing done after array setting, skipped in super class
    _casView.traceFSCreate(this);
  }
  if (_casView.isId2Fs()) {
    _casView.adjustLastFsV2Size_arrays(length);
  }    
}
 
Example 10
Source File: IntegerArrayList.java    From uima-uimaj with Apache License 2.0 5 votes vote down vote up
/**
 * Make a new ArrayList with an initial size 
 * @param jcas The JCas
 * @param length initial size
 */
public IntegerArrayList(JCas jcas, int length) {
  super(jcas);
  _casView.validateArraySize(length);
  intArrayList = new IntVector(length);

  if (CASImpl.traceFSs) { // tracing done after array setting, skipped in super class
    _casView.traceFSCreate(this);
  }
}
 
Example 11
Source File: JavaObjectArray.java    From uima-uimaj with Apache License 2.0 5 votes vote down vote up
/**
 * Make a new FSArray of given size
 * @param jcas The JCas
 * @param length The number of elements in the new array
 */
public JavaObjectArray(JCas jcas, int length) {
  super(jcas);
  theArray = new Object[length];
  if (CASImpl.traceFSs) { // tracing done after array setting, skipped in super class
    _casView.traceFSCreate(this);
  }
  if (CASImpl.IS_USE_V2_IDS) {
    _casView.adjustLastFsV2size(length);
  }    
}
 
Example 12
Source File: IntegerArrayList.java    From uima-uimaj with Apache License 2.0 5 votes vote down vote up
/** Internal - constructor used by generator 
 * @generated
 * @param casImpl the CAS this Feature Structure belongs to
 * @param type the type of this Feature Structure 
 */
public IntegerArrayList(TypeImpl type, CASImpl casImpl) {
  super(type, casImpl);
  intArrayList = new IntVector();
  if (CASImpl.traceFSs) { // tracing done after array setting, skipped in super class
    _casView.traceFSCreate(this);
  }
}
 
Example 13
Source File: FSHashSet.java    From uima-uimaj with Apache License 2.0 5 votes vote down vote up
public FSHashSet(HashSet<T> set, TypeImpl type, CASImpl casImpl) {
  super(type, casImpl);
  fsHashSet = set;

  if (CASImpl.traceFSs) { // tracing done after array setting, skipped in super class
    _casView.traceFSCreate(this);
  }    
}
 
Example 14
Source File: BooleanArray.java    From uima-uimaj with Apache License 2.0 5 votes vote down vote up
/**
 * Called by generator 
 * @param c -
 * @param t -
 * @param l -
 */
public BooleanArray(TypeImpl t, CASImpl c, int l) {
  super(t, c);
  theArray = new boolean[l];
  if (CASImpl.traceFSs) { // tracing done after array setting, skipped in super class
    _casView.traceFSCreate(this);
  }
  if (_casView.isId2Fs()) {
    _casView.adjustLastFsV2size_nonHeapStoredArrays(); 
  }     
}
 
Example 15
Source File: FSHashSet.java    From uima-uimaj with Apache License 2.0 5 votes vote down vote up
public FSHashSet(HashSet<T> set, JCas jcas, int length) {
  super(jcas);
  _casView.validateArraySize(length);
  fsHashSet = set;

  if (CASImpl.traceFSs) { // tracing done after array setting, skipped in super class
    _casView.traceFSCreate(this);
  }
}
 
Example 16
Source File: FloatArray.java    From uima-uimaj with Apache License 2.0 5 votes vote down vote up
/**
 * used by generator
 * Make a new FloatArray of given size
 * @param c -
 * @param t -
 * @param length the length of the array in bytes
 */
public FloatArray(TypeImpl t, CASImpl c, int length) {
  super(t, c);  
  theArray = new float[length];
  if (CASImpl.traceFSs) { // tracing done after array setting, skipped in super class
    _casView.traceFSCreate(this);
  }
  if (_casView.isId2Fs()) {
    _casView.adjustLastFsV2Size_arrays(length);
  }    
}
 
Example 17
Source File: FloatArray.java    From uima-uimaj with Apache License 2.0 5 votes vote down vote up
/**
 * Make a new FloatArray of given size
 * @param jcas the JCas
 * @param length the size of the array
 */
public FloatArray(JCas jcas, int length) {
  super(jcas);
  theArray = new float[length];
  if (CASImpl.traceFSs) { // tracing done after array setting, skipped in super class
    _casView.traceFSCreate(this);
  }
  if (_casView.isId2Fs()) {
    _casView.adjustLastFsV2Size_arrays(length);
  }    
}
 
Example 18
Source File: StringArray.java    From uima-uimaj with Apache License 2.0 5 votes vote down vote up
/**
 * used by generator
 * Make a new StringArray of given size
 * @param c -
 * @param t -
 * @param length the length of the array in bytes
 */
public StringArray(TypeImpl t, CASImpl c, int length) {
  super(t, c);  
  theArray = new String[length];
  if (CASImpl.traceFSs) { // tracing done after array setting, skipped in super class
    _casView.traceFSCreate(this);
  }
  if (_casView.isId2Fs()) {
    _casView.adjustLastFsV2Size_arrays(length);
  }    
}
 
Example 19
Source File: StringArray.java    From uima-uimaj with Apache License 2.0 5 votes vote down vote up
/**
 * Make a new StringArray of given size
 * @param jcas The JCas
 * @param length The number of elements in the new array
 */
public StringArray(JCas jcas, int length) {
  super(jcas);
  theArray = new String[length];
  if (CASImpl.traceFSs) { // tracing done after array setting, skipped in super class
    _casView.traceFSCreate(this);
  }
  if (_casView.isId2Fs()) {
    _casView.adjustLastFsV2Size_arrays(length);
  }    
}
 
Example 20
Source File: JavaObjectArray.java    From uima-uimaj with Apache License 2.0 5 votes vote down vote up
/**
 * used by generator
 * Make a new FSArray of given size
 * @param c -
 * @param t -
 * @param length the length of the array
 */
public JavaObjectArray(TypeImpl t, CASImpl c, int length) {
  super(t, c);  
  theArray = new Object[length];
  if (CASImpl.traceFSs) { // tracing done after array setting, skipped in super class
    _casView.traceFSCreate(this);
  }
  if (CASImpl.IS_USE_V2_IDS) {
    _casView.adjustLastFsV2size(length);
  }    
}