Java Code Examples for org.apache.uima.cas.impl.TypeSystemImpl#booleanTypeCode()
The following examples show how to use
org.apache.uima.cas.impl.TypeSystemImpl#booleanTypeCode() .
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 | 5 votes |
private int getReturnInst(FeatureImpl feature) { switch (((TypeImpl) feature.getRange()).getCode()) { case TypeSystemImpl.booleanTypeCode : return IRETURN; case TypeSystemImpl.byteTypeCode : return IRETURN; case TypeSystemImpl.shortTypeCode : return IRETURN; case TypeSystemImpl.intTypeCode : return IRETURN; case TypeSystemImpl.longTypeCode : return LRETURN; case TypeSystemImpl.floatTypeCode : return FRETURN; case TypeSystemImpl.doubleTypeCode : return DRETURN; default : return ARETURN; } }
Example 2
Source File: FeatureStructureClassGen.java From uima-uimaj with Apache License 2.0 | 5 votes |
private int getLoadInst(int typeCode) { switch (typeCode) { case TypeSystemImpl.booleanTypeCode : return ILOAD; case TypeSystemImpl.byteTypeCode : return ILOAD; case TypeSystemImpl.shortTypeCode : return ILOAD; case TypeSystemImpl.intTypeCode : return ILOAD; case TypeSystemImpl.longTypeCode : return LLOAD; case TypeSystemImpl.floatTypeCode : return FLOAD; case TypeSystemImpl.doubleTypeCode : return DLOAD; default : return ALOAD; } }
Example 3
Source File: FeatureStructureClassGen.java From uima-uimaj with Apache License 2.0 | 5 votes |
private int getArrayLoadInst(FeatureImpl feature) { // load from array switch (((TypeImpl) feature.getRange()).getCode()) { case TypeSystemImpl.booleanTypeCode : return BALOAD; case TypeSystemImpl.byteTypeCode : return BALOAD; case TypeSystemImpl.shortTypeCode : return SALOAD; case TypeSystemImpl.intTypeCode : return IALOAD; case TypeSystemImpl.longTypeCode : return LALOAD; case TypeSystemImpl.floatTypeCode : return FALOAD; case TypeSystemImpl.doubleTypeCode : return DALOAD; default : return AALOAD; } }
Example 4
Source File: FeatureStructureClassGen.java From uima-uimaj with Apache License 2.0 | 5 votes |
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; } }