public class GetSetVectorHelper extends Object
| Constructor and Description |
|---|
GetSetVectorHelper() |
| Modifier and Type | Method and Description |
|---|---|
static void |
read(TypeProtos.MajorType type,
com.sun.codemodel.JExpression vector,
com.sun.codemodel.JBlock eval,
ClassGenerator.HoldingContainer out,
com.sun.codemodel.JCodeModel model,
com.sun.codemodel.JExpression indexVariable)
Generates the code to read a vector into a holder.
|
static com.sun.codemodel.JInvocation |
write(TypeProtos.MajorType type,
com.sun.codemodel.JVar vector,
ClassGenerator.HoldingContainer in,
com.sun.codemodel.JExpression indexVariable,
String setMethodName) |
public static void read(TypeProtos.MajorType type, com.sun.codemodel.JExpression vector, com.sun.codemodel.JBlock eval, ClassGenerator.HoldingContainer out, com.sun.codemodel.JCodeModel model, com.sun.codemodel.JExpression indexVariable)
NullableBigIntHolder out3 = new NullableBigIntHolder();
{
out3 .isSet = vv0 [((leftIndex)>>> 16)].getAccessor().isSet(((leftIndex)& 65535));
if (out3 .isSet == 1) {
out3 .value = vv0 [((leftIndex)>>> 16)].getAccessor().get(((leftIndex)& 65535));
}
}public static com.sun.codemodel.JInvocation write(TypeProtos.MajorType type, com.sun.codemodel.JVar vector, ClassGenerator.HoldingContainer in, com.sun.codemodel.JExpression indexVariable, String setMethodName)
Copyright © 2022 The Apache Software Foundation. All rights reserved.