cn.wensiqun.asmsupport.block.operator
接口 ValueOperator

所有已知子接口:
IBlockOperators, ICInitBody, IEnumCInitBody, IEnumInitBody, IInitBody
所有已知实现类:
Catch, CInitBody, CommonMethodBody, ControlBlock, DoWhileLoop, Else, ElseIF, EnumCInitBody, EnumInitBody, Finally, ForEachLoop, IF, InitBody, MethodBodyForModify, ProgramBlock, SeriesBlock, StaticMethodBody, SuperMethodBody, Synchronized, Try, WhileLoop

public interface ValueOperator


方法摘要
 ArrayValue newArray(ArrayClass aClass, Parameterized... allocateDims)
           
 ArrayValue newArrayWithValue(ArrayClass aClass, Object arrayObject)
          create a unknow dim array
 ArrayValue newArrayWithValue(ArrayClass aClass, Parameterized[] values)
          execute new array operator, cannot support more than 4 dim array, becuase we not need more than 4 dim array in really business service
for example:
java code:
new int[]{2} asmsupport code:
newArray(AClassGetter.getArrayClass(int[].class), new Parameterized[]{getValue(1)});
 ArrayValue newArrayWithValue(ArrayClass aClass, Parameterized[][] values)
          create a two dim array
 ArrayValue newArrayWithValue(ArrayClass aClass, Parameterized[][][] values)
          create a three dim array
 ArrayValue newArrayWithValue(ArrayClass aClass, Parameterized[][][][] values)
          create a four dim array
 

方法详细信息

newArray

ArrayValue newArray(ArrayClass aClass,
                    Parameterized... allocateDims)
参数:
aClass -
allocateDims -
返回:
另请参见:
IBlockOperators#createArrayVariable(String, ArrayClass, Parameterized, Parameterized...)

newArrayWithValue

ArrayValue newArrayWithValue(ArrayClass aClass,
                             Parameterized[] values)
execute new array operator, cannot support more than 4 dim array, becuase we not need more than 4 dim array in really business service
for example:
 java code:
new int[]{2}
asmsupport code:
 newArray(AClassGetter.getArrayClass(int[].class), new Parameterized[]{getValue(1)});
 

参数:
aClass -
values -
返回:

newArrayWithValue

ArrayValue newArrayWithValue(ArrayClass aClass,
                             Parameterized[][] values)
create a two dim array

参数:
aClass -
values -
返回:

newArrayWithValue

ArrayValue newArrayWithValue(ArrayClass aClass,
                             Parameterized[][][] values)
create a three dim array

参数:
aClass -
values -
返回:

newArrayWithValue

ArrayValue newArrayWithValue(ArrayClass aClass,
                             Parameterized[][][][] values)
create a four dim array

参数:
aClass -
values -
返回:

newArrayWithValue

ArrayValue newArrayWithValue(ArrayClass aClass,
                             Object arrayObject)
create a unknow dim array

参数:
aClass -
arrayObject - Parameterized array
返回:


Copyright © 2013. All Rights Reserved.