org.apache.uima.cas.impl.TypeImpl Java Examples

The following examples show how to use org.apache.uima.cas.impl.TypeImpl. 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: FeatureStructureClassGen.java    From uima-uimaj with Apache License 2.0 6 votes vote down vote up
private void addArrayFeatureGetSet() {
  for (boolean isGet : GET_SET) {
    MethodNode mn = new MethodNode(ASM5, ACC_PUBLIC,
        fi.getGetterSetterName(isGet),
        isGet ? "(I)" + rangeArrayElementJavaDescriptor
              : "(I" + rangeArrayElementJavaDescriptor + ")V",
        null, null);
    InsnList il = mn.instructions;
    il.add(new VarInsnNode(ALOAD,  0));
    il.add(new FieldInsnNode(GETFIELD, typeJavaClassName, featureFieldName, rangeJavaDescriptor));
    il.add(new VarInsnNode(ILOAD,  1));
    if (isGet) {
      il.add(new InsnNode(getArrayLoadInst(fi)));
      il.add(new InsnNode(getReturnInst(fi)));
    } else {
      il.add(new VarInsnNode(getArrayLoadInst(fi), 2));  // load the value to be set into the array slot
      il.add(new InsnNode(getArrayStoreInst(fi)));
      il.add(new InsnNode(RETURN));
    }
    
    final boolean is2slotValue = ((TypeImpl) fi.getRange()).isLongOrDouble();
    mn.maxStack = isGet ? 2 : (is2slotValue ? 4 : 3);
    mn.maxLocals = isGet ? 2 : (is2slotValue ? 4 : 3);
    cn.methods.add(mn);
  }
}
 
Example #2
Source File: JsonCasSerializer.java    From uima-uimaj with Apache License 2.0 6 votes vote down vote up
/**
 * _feature_types : { "featName" : "_ref" or "_byte_array, ... }
 * 
 * @param type the type for which to generate the feature context info 
 * @throws IOException 
 */
private void addJsonFeatContext(TypeImpl type) throws IOException {
  final FeatureImpl[] feats = type.getFeatureImpls();
  startedFeatureTypes = false;
   
  for (FeatureImpl feat : feats) {
    final int fsClass = CasSerializerSupport.classifyType(feat.getRangeImpl());
    SerializedString featKind = featureTypeLabel(fsClass);
    if (null != featKind) {
      maybeDoStartFeatureTypes();
      jg.writeFieldName(getSerializedString(feat.getShortName())); 
      jg.writeString(featKind);
    }  
  }
  if (startedFeatureTypes) {
    jg.writeEndObject();
  } 
}
 
Example #3
Source File: CasCopier.java    From uima-uimaj with Apache License 2.0 5 votes vote down vote up
private TypeImpl getTargetType(TypeImpl srcTi) {
  if (srcTsi == tgtTsi) {
    return srcTi;
  }
  int srcTypeCode = srcTi.getCode();
  TypeImpl r = src2TgtType.get(srcTypeCode);
  if (r == null) {
    r = tgtTsi.getType(srcTi.getName());
    src2TgtType.put(srcTypeCode, (null == r) ? MISSING_TYPE : r);
  }
  return (r == MISSING_TYPE) ? null : r;
}
 
Example #4
Source File: FeatureStructureClassGen.java    From uima-uimaj with Apache License 2.0 5 votes vote down vote up
private int getArrayStoreInst(FeatureImpl feature) {     // store into array
  switch (((TypeImpl) feature.getRange()).getCode()) {
  case TypeSystemImpl.booleanTypeCode : return BASTORE;
  case TypeSystemImpl.byteTypeCode    : return BASTORE;
  case TypeSystemImpl.shortTypeCode   : return SASTORE;
  case TypeSystemImpl.intTypeCode     : return IASTORE;
  case TypeSystemImpl.longTypeCode    : return LASTORE;
  case TypeSystemImpl.floatTypeCode   : return FASTORE;
  case TypeSystemImpl.doubleTypeCode  : return DASTORE;
  default                             : return AASTORE;
  }
}
 
Example #5
Source File: Int2FS.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 Int2FS(TypeImpl type, CASImpl casImpl) {
  super(type, casImpl);
  int2FS = new Int2ObjHashMap<>(TOP.class);

  if (CASImpl.traceFSs) { // tracing done after array setting, skipped in super class
    _casView.traceFSCreate(this);
  }    
}
 
Example #6
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 #7
Source File: AnnotationBase.java    From uima-uimaj with Apache License 2.0 5 votes vote down vote up
/**
 * used by generator
 * Make a new AnnotationBase
 * @param c -
 * @param t -
 */

public AnnotationBase(TypeImpl t, CASImpl c) {
  super(t, c);
  if (_casView.isBaseCas()) {
    throw new CASRuntimeException(CASRuntimeException.DISALLOW_CREATE_ANNOTATION_IN_BASE_CAS, this.getClass().getName());
  }
  // no journaling, no index corruption checking
  _setRefValueCommon(wrapGetIntCatchException(_FH_sofa), _casView.getSofaRef());
}
 
Example #8
Source File: UiucKnownTitle_Type.java    From ambiverse-nlu with Apache License 2.0 4 votes vote down vote up
/** initialize variables to correspond with Cas Type and Features
*
* @param jcas JCas
* @param casType Type 
*/
public UiucKnownTitle_Type(JCas jcas, Type casType) {
  super(jcas, casType);
  casImpl.getFSClassRegistry().addGeneratorForType((TypeImpl)this.casType, getFSGenerator());

}
 
Example #9
Source File: UiucVincentNgPeopleTitles_Type.java    From ambiverse-nlu with Apache License 2.0 4 votes vote down vote up
/** initialize variables to correspond with Cas Type and Features
*
* @param jcas JCas
* @param casType Type 
*/
public UiucVincentNgPeopleTitles_Type(JCas jcas, Type casType) {
  super(jcas, casType);
  casImpl.getFSClassRegistry().addGeneratorForType((TypeImpl)this.casType, getFSGenerator());

}
 
Example #10
Source File: Head_Type.java    From bluima with Apache License 2.0 4 votes vote down vote up
/** initialize variables to correspond with Cas Type and Features
* @generated
* @param jcas JCas
* @param casType Type 
*/
public Head_Type(JCas jcas, Type casType) {
  super(jcas, casType);
  casImpl.getFSClassRegistry().addGeneratorForType((TypeImpl)this.casType, getFSGenerator());

}
 
Example #11
Source File: RelationMention_Type.java    From bluima with Apache License 2.0 4 votes vote down vote up
/** initialize variables to correspond with Cas Type and Features
* @generated
* @param jcas JCas
* @param casType Type 
*/
public RelationMention_Type(JCas jcas, Type casType) {
  super(jcas, casType);
  casImpl.getFSClassRegistry().addGeneratorForType((TypeImpl)this.casType, getFSGenerator());

 
  casFeat_tense = jcas.getRequiredFeatureDE(casType, "tense", "uima.cas.String", featOkTst);
  casFeatCode_tense  = (null == casFeat_tense) ? JCas.INVALID_FEATURE_CODE : ((FeatureImpl)casFeat_tense).getCode();

 
  casFeat_modality = jcas.getRequiredFeatureDE(casType, "modality", "uima.cas.String", featOkTst);
  casFeatCode_modality  = (null == casFeat_modality) ? JCas.INVALID_FEATURE_CODE : ((FeatureImpl)casFeat_modality).getCode();

 
  casFeat_arguments = jcas.getRequiredFeatureDE(casType, "arguments", "uima.cas.FSArray", featOkTst);
  casFeatCode_arguments  = (null == casFeat_arguments) ? JCas.INVALID_FEATURE_CODE : ((FeatureImpl)casFeat_arguments).getCode();

 
  casFeat_polarity = jcas.getRequiredFeatureDE(casType, "polarity", "uima.cas.String", featOkTst);
  casFeatCode_polarity  = (null == casFeat_polarity) ? JCas.INVALID_FEATURE_CODE : ((FeatureImpl)casFeat_polarity).getCode();

}
 
Example #12
Source File: UiucOrdinalNumber_Type.java    From ambiverse-nlu with Apache License 2.0 4 votes vote down vote up
/** initialize variables to correspond with Cas Type and Features
*
* @param jcas JCas
* @param casType Type 
*/
public UiucOrdinalNumber_Type(JCas jcas, Type casType) {
  super(jcas, casType);
  casImpl.getFSClassRegistry().addGeneratorForType((TypeImpl)this.casType, getFSGenerator());

}
 
Example #13
Source File: Neuromodulator_Type.java    From bluima with Apache License 2.0 4 votes vote down vote up
/** initialize variables to correspond with Cas Type and Features
* @generated
* @param jcas JCas
* @param casType Type 
*/
public Neuromodulator_Type(JCas jcas, Type casType) {
  super(jcas, casType);
  casImpl.getFSClassRegistry().addGeneratorForType((TypeImpl)this.casType, getFSGenerator());

}
 
Example #14
Source File: GEN_AFF_Inverse_Type.java    From bluima with Apache License 2.0 4 votes vote down vote up
/** initialize variables to correspond with Cas Type and Features
* @generated
* @param jcas JCas
* @param casType Type 
*/
public GEN_AFF_Inverse_Type(JCas jcas, Type casType) {
  super(jcas, casType);
  casImpl.getFSClassRegistry().addGeneratorForType((TypeImpl)this.casType, getFSGenerator());

}
 
Example #15
Source File: NamedEntityCandidate_Type.java    From ambiverse-nlu with Apache License 2.0 4 votes vote down vote up
/** initialize variables to correspond with Cas Type and Features
*
* @param jcas JCas
* @param casType Type 
*/
public NamedEntityCandidate_Type(JCas jcas, Type casType) {
  super(jcas, casType);
  casImpl.getFSClassRegistry().addGeneratorForType((TypeImpl)this.casType, getFSGenerator());

}
 
Example #16
Source File: Timex2Mention_Type.java    From bluima with Apache License 2.0 4 votes vote down vote up
/** initialize variables to correspond with Cas Type and Features
* @generated
* @param jcas JCas
* @param casType Type 
*/
public Timex2Mention_Type(JCas jcas, Type casType) {
  super(jcas, casType);
  casImpl.getFSClassRegistry().addGeneratorForType((TypeImpl)this.casType, getFSGenerator());

}
 
Example #17
Source File: GeneTranscription_Type.java    From bluima with Apache License 2.0 4 votes vote down vote up
/** initialize variables to correspond with Cas Type and Features
* @generated
* @param jcas JCas
* @param casType Type 
*/
public GeneTranscription_Type(JCas jcas, Type casType) {
  super(jcas, casType);
  casImpl.getFSClassRegistry().addGeneratorForType((TypeImpl)this.casType, getFSGenerator());

}
 
Example #18
Source File: Neurotransmitter_Type.java    From bluima with Apache License 2.0 4 votes vote down vote up
/** initialize variables to correspond with Cas Type and Features
* @generated
* @param jcas JCas
* @param casType Type 
*/
public Neurotransmitter_Type(JCas jcas, Type casType) {
  super(jcas, casType);
  casImpl.getFSClassRegistry().addGeneratorForType((TypeImpl)this.casType, getFSGenerator());

}
 
Example #19
Source File: TheontologyDictTerm_Type.java    From bluima with Apache License 2.0 4 votes vote down vote up
/** initialize variables to correspond with Cas Type and Features
* @generated
* @param jcas JCas
* @param casType Type 
*/
public TheontologyDictTerm_Type(JCas jcas, Type casType) {
  super(jcas, casType);
  casImpl.getFSClassRegistry().addGeneratorForType((TypeImpl)this.casType, getFSGenerator());

}
 
Example #20
Source File: UiucWikiManMadeObjectNamesRedirect_Type.java    From ambiverse-nlu with Apache License 2.0 4 votes vote down vote up
/** initialize variables to correspond with Cas Type and Features
*
* @param jcas JCas
* @param casType Type 
*/
public UiucWikiManMadeObjectNamesRedirect_Type(JCas jcas, Type casType) {
  super(jcas, casType);
  casImpl.getFSClassRegistry().addGeneratorForType((TypeImpl)this.casType, getFSGenerator());

}
 
Example #21
Source File: GeneRegulationTemplate_Type.java    From bluima with Apache License 2.0 4 votes vote down vote up
/** initialize variables to correspond with Cas Type and Features
* @generated
* @param jcas JCas
* @param casType Type 
*/
public GeneRegulationTemplate_Type(JCas jcas, Type casType) {
  super(jcas, casType);
  casImpl.getFSClassRegistry().addGeneratorForType((TypeImpl)this.casType, getFSGenerator());

 
  casFeat_relation = jcas.getRequiredFeatureDE(casType, "relation", "de.julielab.jules.types.bootstrep.RegulationOfGeneExpression", featOkTst);
  casFeatCode_relation  = (null == casFeat_relation) ? JCas.INVALID_FEATURE_CODE : ((FeatureImpl)casFeat_relation).getCode();

 
  casFeat_ligand = jcas.getRequiredFeatureDE(casType, "ligand", "de.julielab.jules.types.Chemicals", featOkTst);
  casFeatCode_ligand  = (null == casFeat_ligand) ? JCas.INVALID_FEATURE_CODE : ((FeatureImpl)casFeat_ligand).getCode();

 
  casFeat_cellGrowthCondition = jcas.getRequiredFeatureDE(casType, "cellGrowthCondition", "de.julielab.jules.types.bootstrep.CellGrowthCondition", featOkTst);
  casFeatCode_cellGrowthCondition  = (null == casFeat_cellGrowthCondition) ? JCas.INVALID_FEATURE_CODE : ((FeatureImpl)casFeat_cellGrowthCondition).getCode();

 
  casFeat_investigationTechnique = jcas.getRequiredFeatureDE(casType, "investigationTechnique", "de.julielab.jules.types.bootstrep.InvestigationTechnique", featOkTst);
  casFeatCode_investigationTechnique  = (null == casFeat_investigationTechnique) ? JCas.INVALID_FEATURE_CODE : ((FeatureImpl)casFeat_investigationTechnique).getCode();

}
 
Example #22
Source File: UiucKnownName_Type.java    From ambiverse-nlu with Apache License 2.0 4 votes vote down vote up
/** initialize variables to correspond with Cas Type and Features
*
* @param jcas JCas
* @param casType Type 
*/
public UiucKnownName_Type(JCas jcas, Type casType) {
  super(jcas, casType);
  casImpl.getFSClassRegistry().addGeneratorForType((TypeImpl)this.casType, getFSGenerator());

}
 
Example #23
Source File: ProteinSubstructure_Type.java    From bluima with Apache License 2.0 4 votes vote down vote up
/** initialize variables to correspond with Cas Type and Features
* @generated
* @param jcas JCas
* @param casType Type 
*/
public ProteinSubstructure_Type(JCas jcas, Type casType) {
  super(jcas, casType);
  casImpl.getFSClassRegistry().addGeneratorForType((TypeImpl)this.casType, getFSGenerator());

}
 
Example #24
Source File: UiucKnownCorporations_Type.java    From ambiverse-nlu with Apache License 2.0 4 votes vote down vote up
/** initialize variables to correspond with Cas Type and Features
*
* @param jcas JCas
* @param casType Type 
*/
public UiucKnownCorporations_Type(JCas jcas, Type casType) {
  super(jcas, casType);
  casImpl.getFSClassRegistry().addGeneratorForType((TypeImpl)this.casType, getFSGenerator());

}
 
Example #25
Source File: Cell_Type.java    From bluima with Apache License 2.0 4 votes vote down vote up
/** initialize variables to correspond with Cas Type and Features
* @generated
* @param jcas JCas
* @param casType Type 
*/
public Cell_Type(JCas jcas, Type casType) {
  super(jcas, casType);
  casImpl.getFSClassRegistry().addGeneratorForType((TypeImpl)this.casType, getFSGenerator());

}
 
Example #26
Source File: WordForm_Type.java    From bluima with Apache License 2.0 4 votes vote down vote up
/** initialize variables to correspond with Cas Type and Features
* @generated
* @param jcas JCas
* @param casType Type 
*/
public WordForm_Type(JCas jcas, Type casType) {
  super(jcas, casType);
  casImpl.getFSClassRegistry().addGeneratorForType((TypeImpl)this.casType, getFSGenerator());

 
  casFeat_lemma = jcas.getRequiredFeatureDE(casType, "lemma", "uima.cas.String", featOkTst);
  casFeatCode_lemma  = (null == casFeat_lemma) ? JCas.INVALID_FEATURE_CODE : ((FeatureImpl)casFeat_lemma).getCode();

 
  casFeat_POS = jcas.getRequiredFeatureDE(casType, "POS", "uima.cas.String", featOkTst);
  casFeatCode_POS  = (null == casFeat_POS) ? JCas.INVALID_FEATURE_CODE : ((FeatureImpl)casFeat_POS).getCode();

 
  casFeat_probability = jcas.getRequiredFeatureDE(casType, "probability", "uima.cas.Double", featOkTst);
  casFeatCode_probability  = (null == casFeat_probability) ? JCas.INVALID_FEATURE_CODE : ((FeatureImpl)casFeat_probability).getCode();

 
  casFeat_suffix = jcas.getRequiredFeatureDE(casType, "suffix", "uima.cas.String", featOkTst);
  casFeatCode_suffix  = (null == casFeat_suffix) ? JCas.INVALID_FEATURE_CODE : ((FeatureImpl)casFeat_suffix).getCode();

}
 
Example #27
Source File: ValueMention_Type.java    From bluima with Apache License 2.0 4 votes vote down vote up
/** initialize variables to correspond with Cas Type and Features
* @generated
* @param jcas JCas
* @param casType Type 
*/
public ValueMention_Type(JCas jcas, Type casType) {
  super(jcas, casType);
  casImpl.getFSClassRegistry().addGeneratorForType((TypeImpl)this.casType, getFSGenerator());

}
 
Example #28
Source File: CasComparer.java    From uima-uimaj with Apache License 2.0 4 votes vote down vote up
/**
 * 
 * @param fs1
 * @param fs2
 * @param visited when called for sorting FSs, is sortCompareSeen(cleared); 
 *                when called for comparing for equality, holds FSs already compared in other views
 * @return
 */
private int compare1(TOP fs1, TOP fs2, Set<TOP> visited) {
  if (!isSortUse) {  // only do null check for non- sort use
    if (fs1 == null && fs2 == null) {
      return 0;
    }
    if (fs1 == null) return chkEqual(-1, "fs1 was null and fs2 was not");
    if (fs2 == null) return chkEqual(1,  "fs2 was null and fs1 was not");
  }
  
  boolean wasPresent1 = !visited.add(fs1);
  boolean wasPresent2 = !visited.add(fs2);
  
  if (wasPresent1 && wasPresent2) {
    return 0;  // already checked and found equal
  }
  
  if (!wasPresent1 && !wasPresent2) {
    int r;
    TypeImpl t1, t2;
    if (0 != (r = compStr((t1 = (TypeImpl) fs1.getType()).getName(), (t2 = (TypeImpl) fs2.getType()).getName()))) {
      return chkEqual(r, "Types of FSs are different: Type1 = %s, Type2 = %s", t1, t2);
    }
    // types are the same
    
    if (CAS.TYPE_NAME_SOFA.equals(t1.getName())) {
      if (isSortUse) {
        return Integer.compare(((Sofa)fs1).getSofaNum(), ((Sofa)fs2).getSofaNum());
      }
      return 0;  // skip comparing sofa so this routine can be used for cas copier testing
    }

    if (t1.isArray()) {
      final int len1 = ((CommonArrayFS)fs1).size();
      if (0 != (r = Integer.compare(len1, ((CommonArrayFS)fs2).size()))) {
        return r;
      }
      
      SlotKind kind = t1.getComponentSlotKind();
      
      switch(kind) {
      case Slot_BooleanRef: return compareAllArrayElements(len1, i -> Boolean.compare(((BooleanArray  )fs1).get(i), ((BooleanArray)fs2).get(i)), "Miscompare Boolean Arrays %n%s%n%s", fs1, fs2);
      case Slot_ByteRef:    return compareAllArrayElements(len1, i -> Byte   .compare(((ByteArray     )fs1).get(i), ((ByteArray   )fs2).get(i)), "Miscompare Byte Arrays %n%s%n%s"   , fs1, fs2);
      case Slot_ShortRef:   return compareAllArrayElements(len1, i -> Short  .compare(((ShortArray    )fs1).get(i), ((ShortArray  )fs2).get(i)), "Miscompare Short Arrays %n%s%n%s"  , fs1, fs2);
      case Slot_Int:     return compareAllArrayElements   (len1, i -> Integer.compare(((IntegerArray  )fs1).get(i), ((IntegerArray)fs2).get(i)), "Miscompare Integer Arrays %n%s%n%s", fs1, fs2);
      case Slot_LongRef:    return compareAllArrayElements(len1, i -> Long   .compare(((LongArray     )fs1).get(i), ((LongArray   )fs2).get(i)), "Miscompare Long Arrays %n%s%n%s", fs1, fs2);
      case Slot_Float:   return compareAllArrayElements   (len1, i -> Integer.compare(Float.floatToRawIntBits   (((FloatArray )fs1).get(i)), 
                                                                                      Float.floatToRawIntBits   (((FloatArray )fs2).get(i))),    "Miscompare Float Arrays %n%s%n%s", fs1, fs2);
      case Slot_DoubleRef:  return compareAllArrayElements(len1, i -> Long   .compare(Double.doubleToRawLongBits(((DoubleArray)fs1).get(i)), 
                                                                                      Double.doubleToRawLongBits(((DoubleArray)fs2).get(i))),    "Miscompare Double Arrays %n%s%n%s", fs1, fs2);
      case Slot_HeapRef: return    compareAllArrayElements(len1, i ->        compare1((TOP)((FSArray<?>       )fs1).get(i), (TOP)((FSArray<?> )fs2).get(i), visited), "Miscompare FS Arrays %n%s%n%s", fs1, fs2);
      case Slot_StrRef:  return    compareAllArrayElements(len1, i -> Misc.compareStrings(((StringArray   )fs1).get(i), ((StringArray )fs2).get(i)), "Miscompare String Arrays %n%s%n%s", fs1, fs2);
      default: 
        Misc.internalError(); return 0;  // only to avoid a compile error
      }        
    }
    
    ts = fs1.getCAS().getTypeSystem();
    return compareFeatures(fs1, fs2, t1.getFeatureImpls(), t2.getFeatureImpls(), visited);           
  }
  
  // getting here: one was already traversed, the other not.  Possible use case:
  //   fs1 is a list with a loop; fs2 is a list without a loop
  //   arbitrarily return the one with a loop first
  
  if (fs1 instanceof EmptyList) { 
    return 0;  // allow different or shared EmptyList instances to compare equal
    // because some deserializers or user code can create them as shared or not
  }
  if (wasPresent1) {
    return chkEqual(-1, "First element had a ref loop %s%n, second didn't so far %s", fs1, fs2);
  }
  return chkEqual(-1, "Second element had a ref loop %s%n, first didn't so far %s", fs2, fs1);
  
}
 
Example #29
Source File: Parse_Type.java    From newsleak with GNU Affero General Public License v3.0 4 votes vote down vote up
/** initialize variables to correspond with Cas Type and Features
* @generated
* @param jcas JCas
* @param casType Type 
*/
public Parse_Type(JCas jcas, Type casType) {
  super(jcas, casType);
  casImpl.getFSClassRegistry().addGeneratorForType((TypeImpl)this.casType, getFSGenerator());

 
  casFeat_parseType = jcas.getRequiredFeatureDE(casType, "parseType", "uima.cas.String", featOkTst);
  casFeatCode_parseType  = (null == casFeat_parseType) ? JCas.INVALID_FEATURE_CODE : ((FeatureImpl)casFeat_parseType).getCode();

 
  casFeat_children = jcas.getRequiredFeatureDE(casType, "children", "uima.cas.FSArray", featOkTst);
  casFeatCode_children  = (null == casFeat_children) ? JCas.INVALID_FEATURE_CODE : ((FeatureImpl)casFeat_children).getCode();

 
  casFeat_prob = jcas.getRequiredFeatureDE(casType, "prob", "uima.cas.Double", featOkTst);
  casFeatCode_prob  = (null == casFeat_prob) ? JCas.INVALID_FEATURE_CODE : ((FeatureImpl)casFeat_prob).getCode();

}
 
Example #30
Source File: EtAlInlineReference_Type.java    From bluima with Apache License 2.0 4 votes vote down vote up
/** initialize variables to correspond with Cas Type and Features
* @generated
* @param jcas JCas
* @param casType Type 
*/
public EtAlInlineReference_Type(JCas jcas, Type casType) {
  super(jcas, casType);
  casImpl.getFSClassRegistry().addGeneratorForType((TypeImpl)this.casType, getFSGenerator());

}