Parameters: be - the binary expression targetType - the type of the result Returns: the transformed expression or the original if no transformation was performed public static ConstantExpression transformBinar圜onstantExpression( BinaryExpression be, ClassNode targetType).Parameters: targetType - the candidate type type - the type we are checking against recurse - true if we can have multi-dimension arrays should be false for annotation member types Returns: true if the type equals the targetType or array thereof public static boolean isTypeOrArrayOfType( ClassNode targetType, ClassNode type, boolean recurse).Parameters: targetType - the candidate type recurse - true if we can have multi-dimension arrays should be false for annotation member types Returns: true if the type equals the targetType or array thereof public static boolean isNumberOrArrayOfNumber( ClassNode targetType, boolean recurse).Wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll Inherited Methods Methods inherited from class Given a list of constants, transform each item in the list. TransformListOfConstants( ListExpression origList, ClassNode attrType) The attribute values of annotations must be primitive, String or Enum constants. TransformInlineConstants( Expression exp) TransformInlineConstants( Expression exp, ClassNode attrType)Ĭonverts simple expressions of constants into pre-evaluated simple constants. Into the simplified ConstantExpression(42) at compile time. Turns expressions of the form ConstantExpression(40) + ConstantExpression(2) TransformBinar圜onstantExpression( BinaryExpression be, ClassNode targetType) IsTypeOrArrayOfType( ClassNode targetType, ClassNode type, boolean recurse)ĭetermine if a type matches another type (or array thereof). IsNumberOrArrayOfNumber( ClassNode targetType, boolean recurse)ĭetermine if a type is derived from Number (or array thereof).
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |