Tasks #2348

Use reflections for nested RST types

Added by D. Wigand almost 9 years ago. Updated almost 9 years ago.

Status:FeedbackStart date:07/21/2015
Priority:NormalDue date:
Assignee:D. Wigand% Done:

100%

Category:-
Target version:-

Description

In order to use reflections for instantiating RST in java, the full package path is required.
For example to instantiate rst.kinematics.JointAngles the following path is needed: rst.kinematics.JointAnglesType$JointAngles. In order to ensure that nested types also work, Arne suggested to make use of domain knowledge regarding the structure of the dotted rst path. Since the package path is always lower case, the first upper case token has to be the parent type (confirmed by Johannes):
rst.euroc.ColoredPoseSet.ColoredPose.Color -> rst.euroc.ColoredPoseSetType$ColoredPoseSet$ColoredPose$Color


Related issues

Related to RSB SCXML Engine - Tasks #2337: Create parser for RST types Feedback 07/01/2015

Associated revisions

Revision 67babaff
Added by D. Wigand almost 9 years ago

Fixed reflection package path. refs #2348

History

#1 Updated by D. Wigand almost 9 years ago

  • Related to Tasks #2337: Create parser for RST types added

#2 Updated by D. Wigand almost 9 years ago

  • Description updated (diff)
  • Status changed from In Progress to Feedback
  • % Done changed from 0 to 100

Seems to be working

Also available in: Atom PDF