diff --git a/scripts/cn1playground/common/src/main/java/bsh/cn1/GeneratedCN1Access.java b/scripts/cn1playground/common/src/main/java/bsh/cn1/GeneratedCN1Access.java index aedbea3e8e..8caaa58d2b 100644 --- a/scripts/cn1playground/common/src/main/java/bsh/cn1/GeneratedCN1Access.java +++ b/scripts/cn1playground/common/src/main/java/bsh/cn1/GeneratedCN1Access.java @@ -78,6 +78,9 @@ import bsh.cn1.gen.GeneratedAccess_java_net; import bsh.cn1.gen.GeneratedAccess_java_nio_charset; import bsh.cn1.gen.GeneratedAccess_java_text; +import bsh.cn1.gen.GeneratedAccess_java_time; +import bsh.cn1.gen.GeneratedAccess_java_time_format; +import bsh.cn1.gen.GeneratedAccess_java_time_temporal; import bsh.cn1.gen.GeneratedAccess_java_util; import bsh.cn1.gen.GeneratedAccess_java_util_concurrent; @@ -735,6 +738,20 @@ public final class GeneratedCN1Access implements CN1Access { "java.text.Format", "java.text.ParseException", "java.text.SimpleDateFormat", + "java.time.Clock", + "java.time.Duration", + "java.time.Instant", + "java.time.LocalDate", + "java.time.LocalDateTime", + "java.time.LocalTime", + "java.time.OffsetDateTime", + "java.time.Period", + "java.time.ZoneId", + "java.time.ZoneOffset", + "java.time.ZonedDateTime", + "java.time.format.DateTimeFormatter", + "java.time.format.DateTimeParseException", + "java.time.temporal.TemporalAccessor", "java.util.AbstractCollection", "java.util.AbstractList", "java.util.AbstractMap", @@ -811,6 +828,7 @@ private static Map> buildClassIndex() { fillClassIndex8(index); fillClassIndex9(index); fillClassIndex10(index); + fillClassIndex11(index); return index; } @@ -1490,6 +1508,20 @@ private static void fillClassIndex10(Map> index) { index.put("java.text.Format", java.text.Format.class); index.put("java.text.ParseException", java.text.ParseException.class); index.put("java.text.SimpleDateFormat", java.text.SimpleDateFormat.class); + index.put("java.time.Clock", java.time.Clock.class); + index.put("java.time.Duration", java.time.Duration.class); + index.put("java.time.Instant", java.time.Instant.class); + index.put("java.time.LocalDate", java.time.LocalDate.class); + index.put("java.time.LocalDateTime", java.time.LocalDateTime.class); + index.put("java.time.LocalTime", java.time.LocalTime.class); + index.put("java.time.OffsetDateTime", java.time.OffsetDateTime.class); + index.put("java.time.Period", java.time.Period.class); + index.put("java.time.ZoneId", java.time.ZoneId.class); + index.put("java.time.ZoneOffset", java.time.ZoneOffset.class); + index.put("java.time.ZonedDateTime", java.time.ZonedDateTime.class); + index.put("java.time.format.DateTimeFormatter", java.time.format.DateTimeFormatter.class); + index.put("java.time.format.DateTimeParseException", java.time.format.DateTimeParseException.class); + index.put("java.time.temporal.TemporalAccessor", java.time.temporal.TemporalAccessor.class); index.put("java.util.AbstractCollection", java.util.AbstractCollection.class); index.put("java.util.AbstractList", java.util.AbstractList.class); index.put("java.util.AbstractMap", java.util.AbstractMap.class); @@ -1535,6 +1567,9 @@ private static void fillClassIndex10(Map> index) { index.put("java.util.RandomAccess", java.util.RandomAccess.class); index.put("java.util.Set", java.util.Set.class); index.put("java.util.SortedMap", java.util.SortedMap.class); + } + + private static void fillClassIndex11(Map> index) { index.put("java.util.SortedSet", java.util.SortedSet.class); index.put("java.util.Stack", java.util.Stack.class); index.put("java.util.StringTokenizer", java.util.StringTokenizer.class); @@ -1560,6 +1595,7 @@ private static Map buildMethodIndex() { fillMethodIndex8(index); fillMethodIndex9(index); fillMethodIndex10(index); + fillMethodIndex11(index); return index; } @@ -1647,7 +1683,7 @@ private static void fillMethodIndex1(Map index) { index.put("com.codename1.components.MediaPlayer", splitMembers("add(...)addAll(...)addComponent(...)addDragFinishedListener(...)addDragOverListener(...)addDropListener(...)addFocusListener(...)addLongPressListener(...)addPointerDraggedListener(...)addPointerPressedListener(...)addPointerReleasedListener(...)addPullToRefresh(...)addScrollListener(...)addStateChangeListener(...)animate()animateHierarchy(...)animateHierarchyAndWait(...)animateHierarchyFade(...)animateHierarchyFadeAndWait(...)animateLayout(...)animateLayoutAndWait(...)animateLayoutFade(...)animateLayoutFadeAndWait(...)animateUnlayout(...)animateUnlayoutAndWait(...)announceForAccessibility(...)applyRTL(...)bindProperty(...)blocksSideSwipe()clearClientProperties()contains(...)containsOrOwns(...)createAnimateHierarchy(...)createAnimateHierarchyFade(...)createAnimateLayout(...)createAnimateLayoutFade(...)createAnimateLayoutFadeAndWait(...)createAnimateUnlayout(...)createReplaceTransition(...)createStyleAnimation(...)drop(...)findDropTargetAt(...)findFirstFocusable()flushReplace()forceRevalidate()getAbsoluteX()getAbsoluteY()getAccessibilityText()getAllStyles()getAnimationManager()getBackIcon()getBaseline(...)getBaselineResizeBehavior()getBindablePropertyNames()getBindablePropertyTypes()getBottomGap()getBoundPropertyValue(...)getBounds(...)getChildrenAsList(...)getClientProperty(...)getClosestComponentTo(...)getCloudBoundProperty()getCloudDestinationProperty()getComponentAt(...)getComponentCount()getComponentForm()getComponentIndex(...)getComponentState()getCursor()getDataSource()getDirtyRegion()getDisabledStyle()getDragTransparency()getDraggedx()getDraggedy()getEditingDelegate()getFwdIcon()getHeight()getInlineAllStyles()getInlineDisabledStyles()getInlinePressedStyles()getInlineSelectedStyles()getInlineStylesTheme()getInlineUnselectedStyles()getInnerHeight()getInnerPreferredH()getInnerPreferredW()getInnerWidth()getInnerX()getInnerY()getLabelForComponent()getLayout()getLayoutHeight()getLayoutWidth()getLeadComponent()getLeadParent()getMedia()getName()getNativeOverlay()getNextFocusDown()getNextFocusLeft()getNextFocusRight()getNextFocusUp()getOuterHeight()getOuterPreferredH()getOuterPreferredW()getOuterWidth()getOuterX()getOuterY()getOwner()getParent()getPauseIcon()getPlayIcon()getPreferredH()getPreferredSize()getPreferredSizeStr()getPreferredTabIndex()getPreferredW()getPressedStyle()getPropertyNames()getPropertyTypeNames()getPropertyTypes()getPropertyValue(...)getResponderAt(...)getSafeAreaRoot()getSameHeight()getSameWidth()getScrollAnimationSpeed()getScrollDimension()getScrollIncrement()getScrollOpacity()getScrollOpacityChangeSpeed()getScrollX()getScrollY()getScrollable()getSeekBarUIID()getSelectCommandText()getSelectedRect()getSelectedStyle()getSideGap()getStyle()getTabIndex()getTensileLength()getTextSelectionSupport()getTooltip()getUIID()getUIManager()getUnselectedStyle()getVisibleBounds(...)getWidth()getX()getY()growShrink(...)handlesInput()hasFixedPreferredSize()hasFocus()hideControls()invalidate()isAlwaysTensile()isAutoplay()isBlockLead()isCellRenderer()isChildOf(...)isDraggable()isDropTarget()isEditable()isEditing()isEnabled()isFlatten()isFocusable()isGrabsPointerEvents()isHidden()isHidden(...)isHideInLandscape()isHideInPortrait()isHideNativeVideoControls()isIgnorePointerEvents()isLoop()isMaximize()isOnTopMode()isOpaque()isOwnedBy(...)isPinchBlocksDragAndDrop()isRTL()isRippleEffect()isSafeArea()isSafeAreaRoot()isScrollVisible()isScrollableX()isScrollableY()isSeekBar()isSmoothScrolling()isSnapToGrid()isSurface()isTactileTouch()isTensileDragEnabled()isTraversable()isVisible()iterator()iterator(...)keyPressed(...)keyReleased(...)keyRepeated(...)layoutContainer()longPointerPress(...)morph(...)morphAndWait(...)paint(...)paintBackgrounds(...)paintComponent(...)paintComponentBackground(...)paintIntersectingComponentsAbove(...)paintLock(...)paintLockRelease()paintRippleOverlay(...)paintShadows(...)pointerDragged(...)pointerHover(...)pointerHoverPressed(...)pointerHoverReleased(...)pointerPressed(...)pointerReleased(...)putClientProperty(...)refreshTheme()refreshTheme(...)remove()removeAll()removeComponent(...)removeDragFinishedListener(...)removeDragOverListener(...)removeDropListener(...)removeFocusListener(...)removeLongPressListener(...)removePointerDraggedListener(...)removePointerPressedListener(...)removePointerReleasedListener(...)removeScrollListener(...)removeStateChangeListener(...)repaint()repaint(...)replace(...)replaceAndWait(...)requestFocus()respondsToPointerEvents()revalidate()revalidateLater()revalidateWithAnimationSafety()run()scrollComponentToVisible(...)scrollRectToVisible(...)setAccessibilityText(...)setAlwaysTensile(...)setAutoplay(...)setBackIcon(...)setBlockLead(...)setBoundPropertyValue(...)setCellRenderer(...)setCloudBoundProperty(...)setCloudDestinationProperty(...)setComponentState(...)setCursor(...)setDataSource(...)setDirtyRegion(...)setDisabledStyle(...)setDragTransparency(...)setDraggable(...)setDropTarget(...)setEditingDelegate(...)setEnabled(...)setFlatten(...)setFocus(...)setFocusable(...)setFwdIcon(...)setGrabsPointerEvents(...)setHandlesInput(...)setHeight(...)setHidden(...)setHideInLandscape(...)setHideInPortrait(...)setHideNativeVideoControls(...)setIgnorePointerEvents(...)setInlineAllStyles(...)setInlineDisabledStyles(...)setInlinePressedStyles(...)setInlineSelectedStyles(...)setInlineStylesTheme(...)setInlineUnselectedStyles(...)setIsScrollVisible(...)setLabelForComponent(...)setLayout(...)setLeadComponent(...)setLoop(...)setMaxIcon(...)setMaximize(...)setName(...)setNextFocusDown(...)setNextFocusLeft(...)setNextFocusRight(...)setNextFocusUp(...)setOnTopMode(...)setOpaque(...)setOwner(...)setPauseIcon(...)setPinchBlocksDragAndDrop(...)setPlayIcon(...)setPreferredH(...)setPreferredSize(...)setPreferredSizeStr(...)setPreferredTabIndex(...)setPreferredW(...)setPressedStyle(...)setPropertyValue(...)setRTL(...)setRippleEffect(...)setSafeArea(...)setSafeAreaRoot(...)setScrollAnimationSpeed(...)setScrollIncrement(...)setScrollOpacityChangeSpeed(...)setScrollSize(...)setScrollVisible(...)setScrollable(...)setScrollableX(...)setScrollableY(...)setSeekBar(...)setSeekBarUIID(...)setSelectCommandText(...)setSelectedStyle(...)setShouldCalcPreferredSize(...)setSize(...)setSmoothScrolling(...)setSnapToGrid(...)setTabIndex(...)setTactileTouch(...)setTensileDragEnabled(...)setTensileLength(...)setTooltip(...)setTraversable(...)setUIID(...)setUIManager(...)setUnselectedStyle(...)setVisible(...)setWidth(...)setX(...)setY(...)showControls()startEditingAsync()stopEditing(...)stripMarginAndPadding()styleChanged(...)toImage()toString()unbindProperty(...)updateTabIndices(...)usesNativeVideoControls()visibleBoundsContains(...)")); index.put("com.codename1.components.MultiButton", splitMembers("add(...)addActionListener(...)addAll(...)addComponent(...)addDragFinishedListener(...)addDragOverListener(...)addDropListener(...)addFocusListener(...)addLongPressListener(...)addPointerDraggedListener(...)addPointerPressedListener(...)addPointerReleasedListener(...)addPullToRefresh(...)addScrollListener(...)addStateChangeListener(...)animate()animateHierarchy(...)animateHierarchyAndWait(...)animateHierarchyFade(...)animateHierarchyFadeAndWait(...)animateLayout(...)animateLayoutAndWait(...)animateLayoutFade(...)animateLayoutFadeAndWait(...)animateUnlayout(...)animateUnlayoutAndWait(...)announceForAccessibility(...)applyRTL(...)bindProperty(...)blocksSideSwipe()clearClientProperties()contains(...)containsOrOwns(...)createAnimateHierarchy(...)createAnimateHierarchyFade(...)createAnimateLayout(...)createAnimateLayoutFade(...)createAnimateLayoutFadeAndWait(...)createAnimateUnlayout(...)createReplaceTransition(...)createStyleAnimation(...)drop(...)findDropTargetAt(...)findFirstFocusable()flushReplace()forceRevalidate()getAbsoluteX()getAbsoluteY()getAccessibilityText()getAllStyles()getAnimationManager()getBadgeStyleComponent()getBadgeText()getBaseline(...)getBaselineResizeBehavior()getBindablePropertyNames()getBindablePropertyTypes()getBottomGap()getBoundPropertyValue(...)getBounds(...)getChildrenAsList(...)getClientProperty(...)getClosestComponentTo(...)getCloudBoundProperty()getCloudDestinationProperty()getCommand()getComponentAt(...)getComponentCount()getComponentForm()getComponentIndex(...)getComponentState()getCursor()getDirtyRegion()getDisabledIcon()getDisabledStyle()getDragTransparency()getDraggedx()getDraggedy()getEditingDelegate()getEmblem()getEmblemName()getEmblemPosition()getEmblemUIID()getGap()getGroup()getHeight()getIcon()getIconComponent()getIconFromState()getIconName()getIconPosition()getIconStyleComponent()getIconUIID()getInlineAllStyles()getInlineDisabledStyles()getInlinePressedStyles()getInlineSelectedStyles()getInlineStylesTheme()getInlineUnselectedStyles()getInnerHeight()getInnerPreferredH()getInnerPreferredW()getInnerWidth()getInnerX()getInnerY()getLabelForComponent()getLayout()getLayoutHeight()getLayoutWidth()getLeadComponent()getLeadParent()getMaskName()getName()getNameLine1()getNameLine2()getNameLine3()getNameLine4()getNativeOverlay()getNextFocusDown()getNextFocusLeft()getNextFocusRight()getNextFocusUp()getOuterHeight()getOuterPreferredH()getOuterPreferredW()getOuterWidth()getOuterX()getOuterY()getOwner()getParent()getPreferredH()getPreferredSize()getPreferredSizeStr()getPreferredTabIndex()getPreferredW()getPressedIcon()getPressedStyle()getPropertyNames()getPropertyTypeNames()getPropertyTypes()getPropertyValue(...)getResponderAt(...)getRolloverIcon()getRolloverPressedIcon()getSafeAreaRoot()getSameHeight()getSameWidth()getScrollAnimationSpeed()getScrollDimension()getScrollIncrement()getScrollOpacity()getScrollOpacityChangeSpeed()getScrollX()getScrollY()getScrollable()getSelectCommandText()getSelectedRect()getSelectedStyle()getSideGap()getStyle()getTabIndex()getTensileLength()getText()getTextLine1()getTextLine2()getTextLine3()getTextLine4()getTextLines()getTextPosition()getTextSelectionSupport()getTooltip()getUIID()getUIIDLine1()getUIIDLine2()getUIIDLine3()getUIIDLine4()getUIManager()getUnselectedStyle()getVisibleBounds(...)getWidth()getX()getY()growShrink(...)handlesInput()hasFixedPreferredSize()hasFocus()invalidate()isAlwaysTensile()isBlockLead()isCellRenderer()isCheckBox()isChildOf(...)isDraggable()isDropTarget()isEditable()isEditing()isEnabled()isFlatten()isFocusable()isGrabsPointerEvents()isHidden()isHidden(...)isHideInLandscape()isHideInPortrait()isHorizontalLayout()isIgnorePointerEvents()isInvertFirstTwoEntries()isLinesTogetherMode()isOpaque()isOwnedBy(...)isPinchBlocksDragAndDrop()isRTL()isRadioButton()isRippleEffect()isSafeArea()isSafeAreaRoot()isScrollVisible()isScrollableX()isScrollableY()isSelected()isShouldLocalize()isSmoothScrolling()isSnapToGrid()isSurface()isTactileTouch()isTensileDragEnabled()isTraversable()isVisible()iterator()iterator(...)keyPressed(...)keyReleased(...)keyRepeated(...)layoutContainer()longPointerPress(...)morph(...)morphAndWait(...)paint(...)paintBackgrounds(...)paintComponent(...)paintComponentBackground(...)paintIntersectingComponentsAbove(...)paintLock(...)paintLockRelease()paintRippleOverlay(...)paintShadows(...)pointerDragged(...)pointerHover(...)pointerHoverPressed(...)pointerHoverReleased(...)pointerPressed(...)pointerReleased(...)putClientProperty(...)refreshTheme()refreshTheme(...)remove()removeActionListener(...)removeAll()removeComponent(...)removeDragFinishedListener(...)removeDragOverListener(...)removeDropListener(...)removeFocusListener(...)removeLongPressListener(...)removePointerDraggedListener(...)removePointerPressedListener(...)removePointerReleasedListener(...)removeScrollListener(...)removeStateChangeListener(...)repaint()repaint(...)replace(...)replaceAndWait(...)requestFocus()respondsToPointerEvents()revalidate()revalidateLater()revalidateWithAnimationSafety()scrollComponentToVisible(...)scrollRectToVisible(...)setAccessibilityText(...)setAlwaysTensile(...)setBadgeText(...)setBadgeUIID(...)setBlockLead(...)setBoundPropertyValue(...)setCellRenderer(...)setCheckBox(...)setCloudBoundProperty(...)setCloudDestinationProperty(...)setCommand(...)setComponentState(...)setCursor(...)setDirtyRegion(...)setDisabledIcon(...)setDisabledStyle(...)setDragTransparency(...)setDraggable(...)setDropTarget(...)setEditingDelegate(...)setEmblem(...)setEmblemName(...)setEmblemPosition(...)setEmblemUIID(...)setEnabled(...)setFlatten(...)setFocus(...)setFocusable(...)setFontIcon(...)setGap(...)setGrabsPointerEvents(...)setGroup(...)setHandlesInput(...)setHeight(...)setHidden(...)setHideInLandscape(...)setHideInPortrait(...)setHorizontalLayout(...)setIcon(...)setIconName(...)setIconPosition(...)setIconUIID(...)setIgnorePointerEvents(...)setInlineAllStyles(...)setInlineDisabledStyles(...)setInlinePressedStyles(...)setInlineSelectedStyles(...)setInlineStylesTheme(...)setInlineUnselectedStyles(...)setInvertFirstTwoEntries(...)setIsScrollVisible(...)setLabelForComponent(...)setLayout(...)setLeadComponent(...)setLinesTogetherMode(...)setMaskName(...)setMaterialIcon(...)setName(...)setNameLine1(...)setNameLine2(...)setNameLine3(...)setNameLine4(...)setNextFocusDown(...)setNextFocusLeft(...)setNextFocusRight(...)setNextFocusUp(...)setOpaque(...)setOwner(...)setPinchBlocksDragAndDrop(...)setPreferredH(...)setPreferredSize(...)setPreferredSizeStr(...)setPreferredTabIndex(...)setPreferredW(...)setPressedIcon(...)setPressedStyle(...)setPropertyValue(...)setRTL(...)setRadioButton(...)setRippleEffect(...)setRolloverIcon(...)setRolloverPressedIcon(...)setSafeArea(...)setSafeAreaRoot(...)setScrollAnimationSpeed(...)setScrollIncrement(...)setScrollOpacityChangeSpeed(...)setScrollSize(...)setScrollVisible(...)setScrollable(...)setScrollableX(...)setScrollableY(...)setSelectCommandText(...)setSelected(...)setSelectedStyle(...)setShouldCalcPreferredSize(...)setShouldLocalize(...)setSize(...)setSmoothScrolling(...)setSnapToGrid(...)setTabIndex(...)setTactileTouch(...)setTensileDragEnabled(...)setTensileLength(...)setText(...)setTextLine1(...)setTextLine2(...)setTextLine3(...)setTextLine4(...)setTextLines(...)setTextPosition(...)setTooltip(...)setTraversable(...)setUIID(...)setUIIDLine1(...)setUIIDLine2(...)setUIIDLine3(...)setUIIDLine4(...)setUIManager(...)setUnselectedStyle(...)setVisible(...)setWidth(...)setX(...)setY(...)startEditingAsync()stopEditing(...)stripMarginAndPadding()styleChanged(...)toImage()toString()unbindProperty(...)updateTabIndices(...)visibleBoundsContains(...)")); index.put("com.codename1.components.OnOffSwitch", splitMembers("add(...)addActionListener(...)addAll(...)addComponent(...)addDragFinishedListener(...)addDragOverListener(...)addDropListener(...)addFocusListener(...)addLongPressListener(...)addPointerDraggedListener(...)addPointerPressedListener(...)addPointerReleasedListener(...)addPullToRefresh(...)addScrollListener(...)addStateChangeListener(...)animate()animateHierarchy(...)animateHierarchyAndWait(...)animateHierarchyFade(...)animateHierarchyFadeAndWait(...)animateLayout(...)animateLayoutAndWait(...)animateLayoutFade(...)animateLayoutFadeAndWait(...)animateUnlayout(...)animateUnlayoutAndWait(...)announceForAccessibility(...)applyRTL(...)bindProperty(...)blocksSideSwipe()clearClientProperties()contains(...)containsOrOwns(...)createAnimateHierarchy(...)createAnimateHierarchyFade(...)createAnimateLayout(...)createAnimateLayoutFade(...)createAnimateLayoutFadeAndWait(...)createAnimateUnlayout(...)createReplaceTransition(...)createStyleAnimation(...)drop(...)findDropTargetAt(...)findFirstFocusable()flushReplace()forceRevalidate()getAbsoluteX()getAbsoluteY()getAccessibilityText()getActionListeners()getAllStyles()getAnimationManager()getBaseline(...)getBaselineResizeBehavior()getBindablePropertyNames()getBindablePropertyTypes()getBottomGap()getBoundPropertyValue(...)getBounds(...)getChildrenAsList(...)getClientProperty(...)getClosestComponentTo(...)getCloudBoundProperty()getCloudDestinationProperty()getComponentAt(...)getComponentCount()getComponentForm()getComponentIndex(...)getComponentState()getCursor()getDirtyRegion()getDisabledStyle()getDragTransparency()getDraggedx()getDraggedy()getEditingDelegate()getHeight()getInlineAllStyles()getInlineDisabledStyles()getInlinePressedStyles()getInlineSelectedStyles()getInlineStylesTheme()getInlineUnselectedStyles()getInnerHeight()getInnerPreferredH()getInnerPreferredW()getInnerWidth()getInnerX()getInnerY()getLabelForComponent()getLayout()getLayoutHeight()getLayoutWidth()getLeadComponent()getLeadParent()getListeners()getName()getNativeOverlay()getNextFocusDown()getNextFocusLeft()getNextFocusRight()getNextFocusUp()getOff()getOn()getOuterHeight()getOuterPreferredH()getOuterPreferredW()getOuterWidth()getOuterX()getOuterY()getOwner()getParent()getPreferredH()getPreferredSize()getPreferredSizeStr()getPreferredTabIndex()getPreferredW()getPressedStyle()getPropertyNames()getPropertyTypeNames()getPropertyTypes()getPropertyValue(...)getResponderAt(...)getSafeAreaRoot()getSameHeight()getSameWidth()getScrollAnimationSpeed()getScrollDimension()getScrollIncrement()getScrollOpacity()getScrollOpacityChangeSpeed()getScrollX()getScrollY()getScrollable()getSelectCommandText()getSelectedRect()getSelectedStyle()getSideGap()getStyle()getSwitchMaskImage()getSwitchOffImage()getSwitchOnImage()getTabIndex()getTensileLength()getTextSelectionSupport()getTooltip()getUIID()getUIManager()getUnselectedStyle()getVisibleBounds(...)getWidth()getX()getY()growShrink(...)handlesInput()hasFixedPreferredSize()hasFocus()invalidate()isAlwaysTensile()isBlockLead()isCellRenderer()isChildOf(...)isDraggable()isDropTarget()isEditable()isEditing()isEnabled()isFlatten()isFocusable()isGrabsPointerEvents()isHidden()isHidden(...)isHideInLandscape()isHideInPortrait()isIgnorePointerEvents()isNoTextMode()isOpaque()isOwnedBy(...)isPinchBlocksDragAndDrop()isRTL()isRippleEffect()isSafeArea()isSafeAreaRoot()isScrollVisible()isScrollableX()isScrollableY()isSmoothScrolling()isSnapToGrid()isSurface()isTactileTouch()isTensileDragEnabled()isTraversable()isValue()isVisible()iterator()iterator(...)keyPressed(...)keyReleased(...)keyRepeated(...)layoutContainer()longPointerPress(...)morph(...)morphAndWait(...)paint(...)paintBackgrounds(...)paintComponent(...)paintComponentBackground(...)paintIntersectingComponentsAbove(...)paintLock(...)paintLockRelease()paintRippleOverlay(...)paintShadows(...)pointerDragged(...)pointerHover(...)pointerHoverPressed(...)pointerHoverReleased(...)pointerPressed(...)pointerReleased(...)putClientProperty(...)refreshTheme()refreshTheme(...)remove()removeActionListener(...)removeAll()removeComponent(...)removeDragFinishedListener(...)removeDragOverListener(...)removeDropListener(...)removeFocusListener(...)removeLongPressListener(...)removePointerDraggedListener(...)removePointerPressedListener(...)removePointerReleasedListener(...)removeScrollListener(...)removeStateChangeListener(...)repaint()repaint(...)replace(...)replaceAndWait(...)requestFocus()respondsToPointerEvents()revalidate()revalidateLater()revalidateWithAnimationSafety()scrollComponentToVisible(...)scrollRectToVisible(...)setAccessibilityText(...)setAlwaysTensile(...)setBlockLead(...)setBoundPropertyValue(...)setCellRenderer(...)setCloudBoundProperty(...)setCloudDestinationProperty(...)setComponentState(...)setCursor(...)setDirtyRegion(...)setDisabledStyle(...)setDragTransparency(...)setDraggable(...)setDropTarget(...)setEditingDelegate(...)setEnabled(...)setFlatten(...)setFocus(...)setFocusable(...)setGrabsPointerEvents(...)setHandlesInput(...)setHeight(...)setHidden(...)setHideInLandscape(...)setHideInPortrait(...)setIgnorePointerEvents(...)setInlineAllStyles(...)setInlineDisabledStyles(...)setInlinePressedStyles(...)setInlineSelectedStyles(...)setInlineStylesTheme(...)setInlineUnselectedStyles(...)setIsScrollVisible(...)setLabelForComponent(...)setLayout(...)setLeadComponent(...)setName(...)setNextFocusDown(...)setNextFocusLeft(...)setNextFocusRight(...)setNextFocusUp(...)setNoTextMode(...)setOff(...)setOn(...)setOpaque(...)setOwner(...)setPinchBlocksDragAndDrop(...)setPreferredH(...)setPreferredSize(...)setPreferredSizeStr(...)setPreferredTabIndex(...)setPreferredW(...)setPressedStyle(...)setPropertyValue(...)setRTL(...)setRippleEffect(...)setSafeArea(...)setSafeAreaRoot(...)setScrollAnimationSpeed(...)setScrollIncrement(...)setScrollOpacityChangeSpeed(...)setScrollSize(...)setScrollVisible(...)setScrollable(...)setScrollableX(...)setScrollableY(...)setSelectCommandText(...)setSelectedStyle(...)setShouldCalcPreferredSize(...)setSize(...)setSmoothScrolling(...)setSnapToGrid(...)setSwitchMaskImage(...)setSwitchOffImage(...)setSwitchOnImage(...)setTabIndex(...)setTactileTouch(...)setTensileDragEnabled(...)setTensileLength(...)setTooltip(...)setTraversable(...)setUIID(...)setUIManager(...)setUnselectedStyle(...)setValue(...)setVisible(...)setWidth(...)setX(...)setY(...)startEditingAsync()stopEditing(...)stripMarginAndPadding()styleChanged(...)toImage()toString()unbindProperty(...)updateTabIndices(...)visibleBoundsContains(...)")); - index.put("com.codename1.components.Progress", splitMembers("actionPerformed(...)add(...)addAll(...)addCommand(...)addCommandListener(...)addComponent(...)addDragFinishedListener(...)addDragOverListener(...)addDropListener(...)addFocusListener(...)addGameKeyListener(...)addKeyListener(...)addLongPressListener(...)addOrientationListener(...)addPasteListener(...)addPointerDraggedListener(...)addPointerPressedListener(...)addPointerReleasedListener(...)addPullToRefresh(...)addScrollListener(...)addShowListener(...)addSizeChangedListener(...)addStateChangeListener(...)animate()animateHierarchy(...)animateHierarchyAndWait(...)animateHierarchyFade(...)animateHierarchyFadeAndWait(...)animateLayout(...)animateLayoutAndWait(...)animateLayoutFade(...)animateLayoutFadeAndWait(...)animateUnlayout(...)animateUnlayoutAndWait(...)announceForAccessibility(...)applyRTL(...)bindProperty(...)blocksSideSwipe()clearClientProperties()clearComponentsAwaitingRelease()contains(...)containsOrOwns(...)createAnimateHierarchy(...)createAnimateHierarchyFade(...)createAnimateLayout(...)createAnimateLayoutFade(...)createAnimateLayoutFadeAndWait(...)createAnimateUnlayout(...)createReplaceTransition(...)createStyleAnimation(...)deregisterAnimated(...)dispatchCommand(...)dispatchPaste(...)dispose()drop(...)findCurrentlyEditingComponent()findDropTargetAt(...)findFirstFocusable()findNextFocusHorizontal(...)findNextFocusVertical(...)flushReplace()forceRevalidate()getAbsoluteX()getAbsoluteY()getAccessibilityText()getAllStyles()getAnimationManager()getBackCommand()getBaseline(...)getBaselineResizeBehavior()getBindablePropertyNames()getBindablePropertyTypes()getBlurBackgroundRadius()getBottomGap()getBoundPropertyValue(...)getBounds(...)getChildrenAsList(...)getClearCommand()getClientProperty(...)getClosestComponentTo(...)getCloudBoundProperty()getCloudDestinationProperty()getCommand(...)getCommandCount()getComponentAt(...)getComponentCount()getComponentForm()getComponentIndex(...)getComponentState()getContentPane()getCurrentInputDevice()getCursor()getDefaultCommand()getDialogComponent()getDialogPosition()getDialogPreferredSize()getDialogStyle()getDialogType()getDialogUIID()getDirtyRegion()getDisabledStyle()getDragRegionStatus(...)getDragTransparency()getDraggedx()getDraggedy()getEditOnShow()getEditingDelegate()getFocused()getFormLayeredPane(...)getGlassPane()getHeight()getInlineAllStyles()getInlineDisabledStyles()getInlinePressedStyles()getInlineSelectedStyles()getInlineStylesTheme()getInlineUnselectedStyles()getInnerHeight()getInnerPreferredH()getInnerPreferredW()getInnerWidth()getInnerX()getInnerY()getInvisibleAreaUnderVKB()getLabelForComponent()getLayeredPane()getLayeredPane(...)getLayout()getLayoutHeight()getLayoutWidth()getLeadComponent()getLeadParent()getMenuBar()getMenuStyle()getName()getNativeOverlay()getNextComponent(...)getNextFocusDown()getNextFocusLeft()getNextFocusRight()getNextFocusUp()getOuterHeight()getOuterPreferredH()getOuterPreferredW()getOuterWidth()getOuterX()getOuterY()getOwner()getParent()getPopupDirectionBiasPortrait()getPreferredH()getPreferredSize()getPreferredSizeStr()getPreferredTabIndex()getPreferredW()getPressedStyle()getPreviousComponent(...)getPropertyNames()getPropertyTypeNames()getPropertyTypes()getPropertyValue(...)getResponderAt(...)getSafeArea()getSafeAreaRoot()getSameHeight()getSameWidth()getScrollAnimationSpeed()getScrollDimension()getScrollIncrement()getScrollOpacity()getScrollOpacityChangeSpeed()getScrollX()getScrollY()getScrollable()getSelectCommandText()getSelectedRect()getSelectedStyle()getSideGap()getSoftButton(...)getSoftButtonCount()getSourceCommand()getStyle()getTabIndex()getTabIterator(...)getTensileLength()getTextSelection()getTextSelectionSupport()getTintColor()getTitle()getTitleArea()getTitleComponent()getTitleStyle()getToolbar()getTooltip()getTransitionInAnimator()getTransitionOutAnimator()getUIID()getUIManager()getUnselectedStyle()getVisibleBounds(...)getWidth()getX()getY()grabAnimationLock()growOrShrink()growShrink(...)handlesInput()hasFixedPreferredSize()hasFocus()hasMedia()invalidate()isAlwaysTensile()isAutoDispose()isAutoShow()isBlockLead()isCellRenderer()isChildOf(...)isCyclicFocus()isDisposeOnCompletion()isDisposeWhenPointerOutOfBounds()isDragRegion(...)isDraggable()isDropTarget()isEditable()isEditing()isEnableCursors()isEnabled()isFlatten()isFocusScrolling()isFocusable()isFormBottomPaddingEditingMode()isGrabsPointerEvents()isHidden()isHidden(...)isHideInLandscape()isHideInPortrait()isIgnorePointerEvents()isMinimizeOnBack()isOpaque()isOwnedBy(...)isPinchBlocksDragAndDrop()isRTL()isRippleEffect()isSafeArea()isSafeAreaRoot()isScrollVisible()isScrollable()isScrollableX()isScrollableY()isSingleFocusMode()isSmoothScrolling()isSnapToGrid()isSurface()isTactileTouch()isTensileDragEnabled()isTraversable()isVisible()iterator()iterator(...)keyPressed(...)keyReleased(...)keyRepeated(...)layoutContainer()longPointerPress(...)morph(...)morphAndWait(...)paint(...)paintBackground(...)paintBackgrounds(...)paintComponent(...)paintComponentBackground(...)paintIntersectingComponentsAbove(...)paintLock(...)paintLockRelease()paintRippleOverlay(...)paintShadows(...)placeButtonCommands(...)pointerDragged(...)pointerHover(...)pointerHoverPressed(...)pointerHoverReleased(...)pointerPressed(...)pointerReleased(...)putClientProperty(...)refreshTheme()refreshTheme(...)registerAnimated(...)releaseAnimationLock()remove()removeAll()removeAllCommands()removeAllShowListeners()removeCommand(...)removeCommandListener(...)removeComponent(...)removeDragFinishedListener(...)removeDragOverListener(...)removeDropListener(...)removeFocusListener(...)removeGameKeyListener(...)removeKeyListener(...)removeLongPressListener(...)removeOrientationListener(...)removePasteListener(...)removePointerDraggedListener(...)removePointerPressedListener(...)removePointerReleasedListener(...)removeScrollListener(...)removeShowListener(...)removeSizeChangedListener(...)removeStateChangeListener(...)repaint()repaint(...)replace(...)replaceAndWait(...)requestFocus()respondsToPointerEvents()revalidate()revalidateLater()revalidateWithAnimationSafety()scrollComponentToVisible(...)scrollRectToVisible(...)setAccessibilityText(...)setAllowEnableLayoutOnPaint(...)setAlwaysTensile(...)setAutoDispose(...)setAutoShow(...)setBackCommand(...)setBgImage(...)setBlockLead(...)setBlurBackgroundRadius(...)setBoundPropertyValue(...)setCellRenderer(...)setClearCommand(...)setCloudBoundProperty(...)setCloudDestinationProperty(...)setComponentState(...)setCurrentInputDevice(...)setCursor(...)setCyclicFocus(...)setDefaultCommand(...)setDialogPosition(...)setDialogStyle(...)setDialogType(...)setDialogUIID(...)setDirtyRegion(...)setDisabledStyle(...)setDisposeOnCompletion(...)setDisposeWhenPointerOutOfBounds(...)setDragTransparency(...)setDraggable(...)setDropTarget(...)setEditOnShow(...)setEditingDelegate(...)setEnableCursors(...)setEnabled(...)setFlatten(...)setFocus(...)setFocusScrolling(...)setFocusable(...)setFocused(...)setFormBottomPaddingEditingMode(...)setGlassPane(...)setGrabsPointerEvents(...)setHandlesInput(...)setHeight(...)setHidden(...)setHideInLandscape(...)setHideInPortrait(...)setIgnorePointerEvents(...)setInlineAllStyles(...)setInlineDisabledStyles(...)setInlinePressedStyles(...)setInlineSelectedStyles(...)setInlineStylesTheme(...)setInlineUnselectedStyles(...)setIsScrollVisible(...)setLabelForComponent(...)setLayout(...)setLeadComponent(...)setMenuBar(...)setMenuCellRenderer(...)setMenuTransitions(...)setMinimizeOnBack(...)setName(...)setNextFocusDown(...)setNextFocusLeft(...)setNextFocusRight(...)setNextFocusUp(...)setOpaque(...)setOverrideInvisibleAreaUnderVKB(...)setOwner(...)setPinchBlocksDragAndDrop(...)setPopupDirectionBiasPortrait(...)setPreferredH(...)setPreferredSize(...)setPreferredSizeStr(...)setPreferredTabIndex(...)setPreferredW(...)setPressedStyle(...)setPreviousForm(...)setPropertyValue(...)setRTL(...)setRippleEffect(...)setSafeArea(...)setSafeAreaChanged()setSafeAreaRoot(...)setScrollAnimationSpeed(...)setScrollIncrement(...)setScrollOpacityChangeSpeed(...)setScrollSize(...)setScrollVisible(...)setScrollable(...)setScrollableX(...)setScrollableY(...)setSelectCommandText(...)setSelectedStyle(...)setShouldCalcPreferredSize(...)setSize(...)setSmoothScrolling(...)setSnapToGrid(...)setSourceCommand(...)setTabIndex(...)setTactileTouch(...)setTensileDragEnabled(...)setTensileLength(...)setTimeout(...)setTintColor(...)setTitle(...)setTitleComponent(...)setTitleStyle(...)setToolBar(...)setToolbar(...)setTooltip(...)setTransitionInAnimator(...)setTransitionOutAnimator(...)setTraversable(...)setUIID(...)setUIIDByPopupPosition(...)setUIManager(...)setUnselectedStyle(...)setVisible(...)setWidth(...)setX(...)setY(...)show()show(...)showAtPosition(...)showBack()showDialog()showModeless()showPacked(...)showPopupDialog(...)showStetched(...)showStretched(...)startEditingAsync()stopEditing(...)stripMarginAndPadding()styleChanged(...)toImage()toString()unbindProperty(...)updateTabIndices(...)visibleBoundsContains(...)wasDisposedDueToOutOfBoundsTouch()wasDisposedDueToRotation()")); + index.put("com.codename1.components.Progress", splitMembers("actionPerformed(...)add(...)addAll(...)addCommand(...)addCommandListener(...)addComponent(...)addDragFinishedListener(...)addDragOverListener(...)addDropListener(...)addFocusListener(...)addGameKeyListener(...)addKeyListener(...)addLongPressListener(...)addOrientationListener(...)addPasteListener(...)addPointerDraggedListener(...)addPointerPressedListener(...)addPointerReleasedListener(...)addPullToRefresh(...)addScrollListener(...)addShowListener(...)addSizeChangedListener(...)addStateChangeListener(...)animate()animateHierarchy(...)animateHierarchyAndWait(...)animateHierarchyFade(...)animateHierarchyFadeAndWait(...)animateLayout(...)animateLayoutAndWait(...)animateLayoutFade(...)animateLayoutFadeAndWait(...)animateUnlayout(...)animateUnlayoutAndWait(...)announceForAccessibility(...)applyRTL(...)bindProperty(...)blocksSideSwipe()clearClientProperties()clearComponentsAwaitingRelease()contains(...)containsOrOwns(...)createAnimateHierarchy(...)createAnimateHierarchyFade(...)createAnimateLayout(...)createAnimateLayoutFade(...)createAnimateLayoutFadeAndWait(...)createAnimateUnlayout(...)createReplaceTransition(...)createStyleAnimation(...)deregisterAnimated(...)dispatchCommand(...)dispatchPaste(...)dispose()drop(...)findCurrentlyEditingComponent()findDropTargetAt(...)findFirstFocusable()findNextFocusHorizontal(...)findNextFocusVertical(...)flushReplace()forceRevalidate()getAbsoluteX()getAbsoluteY()getAccessibilityText()getAllStyles()getAnimationManager()getBackCommand()getBaseline(...)getBaselineResizeBehavior()getBindablePropertyNames()getBindablePropertyTypes()getBlurBackgroundRadius()getBottomGap()getBoundPropertyValue(...)getBounds(...)getChildrenAsList(...)getClearCommand()getClientProperty(...)getClosestComponentTo(...)getCloudBoundProperty()getCloudDestinationProperty()getCommand(...)getCommandCount()getComponentAt(...)getComponentCount()getComponentForm()getComponentIndex(...)getComponentState()getContentPane()getCurrentInputDevice()getCursor()getDefaultCommand()getDialogComponent()getDialogPosition()getDialogPreferredSize()getDialogStyle()getDialogType()getDialogUIID()getDirtyRegion()getDisabledStyle()getDragRegionStatus(...)getDragTransparency()getDraggedx()getDraggedy()getEditOnShow()getEditingDelegate()getFocused()getFormLayeredPane(...)getGlassPane()getHeight()getInlineAllStyles()getInlineDisabledStyles()getInlinePressedStyles()getInlineSelectedStyles()getInlineStylesTheme()getInlineUnselectedStyles()getInnerHeight()getInnerPreferredH()getInnerPreferredW()getInnerWidth()getInnerX()getInnerY()getInvisibleAreaUnderVKB()getLabelForComponent()getLayeredPane()getLayeredPane(...)getLayout()getLayoutHeight()getLayoutWidth()getLeadComponent()getLeadParent()getMenuBar()getMenuStyle()getName()getNativeOverlay()getNextComponent(...)getNextFocusDown()getNextFocusLeft()getNextFocusRight()getNextFocusUp()getOuterHeight()getOuterPreferredH()getOuterPreferredW()getOuterWidth()getOuterX()getOuterY()getOwner()getParent()getPopupDirectionBiasPortrait()getPreferredH()getPreferredSize()getPreferredSizeStr()getPreferredTabIndex()getPreferredW()getPressedStyle()getPreviousComponent(...)getPropertyNames()getPropertyTypeNames()getPropertyTypes()getPropertyValue(...)getResponderAt(...)getSafeArea()getSafeAreaRoot()getSameHeight()getSameWidth()getScrollAnimationSpeed()getScrollDimension()getScrollIncrement()getScrollOpacity()getScrollOpacityChangeSpeed()getScrollX()getScrollY()getScrollable()getSelectCommandText()getSelectedRect()getSelectedStyle()getSideGap()getSoftButton(...)getSoftButtonCount()getSourceCommand()getStyle()getTabIndex()getTabIterator(...)getTensileLength()getTextSelection()getTextSelectionSupport()getTintColor()getTitle()getTitleArea()getTitleComponent()getTitleStyle()getToolbar()getTooltip()getTransitionInAnimator()getTransitionOutAnimator()getUIID()getUIManager()getUnselectedStyle()getVisibleBounds(...)getWidth()getX()getY()grabAnimationLock()growOrShrink()growShrink(...)handlesInput()hasFixedPreferredSize()hasFocus()hasMedia()invalidate()isAlwaysTensile()isAutoDispose()isAutoShow()isBlockLead()isCellRenderer()isChildOf(...)isCyclicFocus()isDisposeOnCompletion()isDisposeWhenPointerOutOfBounds()isDragRegion(...)isDraggable()isDropTarget()isEditable()isEditing()isEnableCursors()isEnabled()isFlatten()isFocusScrolling()isFocusable()isFormBottomPaddingEditingMode()isGrabsPointerEvents()isHidden()isHidden(...)isHideInLandscape()isHideInPortrait()isIgnorePointerEvents()isMinimizeOnBack()isOpaque()isOwnedBy(...)isPinchBlocksDragAndDrop()isRTL()isRippleEffect()isSafeArea()isSafeAreaRoot()isScrollVisible()isScrollable()isScrollableX()isScrollableY()isSingleFocusMode()isSmoothScrolling()isSnapToGrid()isSurface()isTactileTouch()isTensileDragEnabled()isTraversable()isVisible()iterator()iterator(...)keyPressed(...)keyReleased(...)keyRepeated(...)layoutContainer()longPointerPress(...)morph(...)morphAndWait(...)paint(...)paintBackground(...)paintBackgrounds(...)paintComponent(...)paintComponentBackground(...)paintIntersectingComponentsAbove(...)paintLock(...)paintLockRelease()paintRippleOverlay(...)paintShadows(...)placeButtonCommands(...)pointerDragged(...)pointerHover(...)pointerHoverPressed(...)pointerHoverReleased(...)pointerPressed(...)pointerReleased(...)putClientProperty(...)refreshTheme()refreshTheme(...)registerAnimated(...)releaseAnimationLock()remove()removeAll()removeAllCommands()removeAllShowListeners()removeCommand(...)removeCommandListener(...)removeComponent(...)removeDragFinishedListener(...)removeDragOverListener(...)removeDropListener(...)removeFocusListener(...)removeGameKeyListener(...)removeKeyListener(...)removeLongPressListener(...)removeOrientationListener(...)removePasteListener(...)removePointerDraggedListener(...)removePointerPressedListener(...)removePointerReleasedListener(...)removeScrollListener(...)removeShowListener(...)removeSizeChangedListener(...)removeStateChangeListener(...)repaint()repaint(...)replace(...)replaceAndWait(...)requestFocus()respondsToPointerEvents()revalidate()revalidateLater()revalidateWithAnimationSafety()scrollComponentToVisible(...)scrollRectToVisible(...)setAccessibilityText(...)setAllowEnableLayoutOnPaint(...)setAlwaysTensile(...)setAutoDispose(...)setAutoShow(...)setBackCommand(...)setBgImage(...)setBlockLead(...)setBlurBackgroundRadius(...)setBoundPropertyValue(...)setCellRenderer(...)setClearCommand(...)setCloudBoundProperty(...)setCloudDestinationProperty(...)setComponentState(...)setCurrentInputDevice(...)setCursor(...)setCyclicFocus(...)setDefaultCommand(...)setDialogPosition(...)setDialogStyle(...)setDialogUIID(...)setDirtyRegion(...)setDisabledStyle(...)setDisposeOnCompletion(...)setDisposeWhenPointerOutOfBounds(...)setDragTransparency(...)setDraggable(...)setDropTarget(...)setEditOnShow(...)setEditingDelegate(...)setEnableCursors(...)setEnabled(...)setFlatten(...)setFocus(...)setFocusScrolling(...)setFocusable(...)setFocused(...)setFormBottomPaddingEditingMode(...)setGlassPane(...)setGrabsPointerEvents(...)setHandlesInput(...)setHeight(...)setHidden(...)setHideInLandscape(...)setHideInPortrait(...)setIgnorePointerEvents(...)setInlineAllStyles(...)setInlineDisabledStyles(...)setInlinePressedStyles(...)setInlineSelectedStyles(...)setInlineStylesTheme(...)setInlineUnselectedStyles(...)setIsScrollVisible(...)setLabelForComponent(...)setLayout(...)setLeadComponent(...)setMenuBar(...)setMenuCellRenderer(...)setMenuTransitions(...)setMinimizeOnBack(...)setName(...)setNextFocusDown(...)setNextFocusLeft(...)setNextFocusRight(...)setNextFocusUp(...)setOpaque(...)setOverrideInvisibleAreaUnderVKB(...)setOwner(...)setPinchBlocksDragAndDrop(...)setPopupDirectionBiasPortrait(...)setPreferredH(...)setPreferredSize(...)setPreferredSizeStr(...)setPreferredTabIndex(...)setPreferredW(...)setPressedStyle(...)setPreviousForm(...)setPropertyValue(...)setRTL(...)setRippleEffect(...)setSafeArea(...)setSafeAreaChanged()setSafeAreaRoot(...)setScrollAnimationSpeed(...)setScrollIncrement(...)setScrollOpacityChangeSpeed(...)setScrollSize(...)setScrollVisible(...)setScrollable(...)setScrollableX(...)setScrollableY(...)setSelectCommandText(...)setSelectedStyle(...)setShouldCalcPreferredSize(...)setSize(...)setSmoothScrolling(...)setSnapToGrid(...)setSourceCommand(...)setTabIndex(...)setTactileTouch(...)setTensileDragEnabled(...)setTensileLength(...)setTintColor(...)setTitle(...)setTitleComponent(...)setTitleStyle(...)setToolBar(...)setToolbar(...)setTooltip(...)setTransitionInAnimator(...)setTransitionOutAnimator(...)setTraversable(...)setUIID(...)setUIIDByPopupPosition(...)setUIManager(...)setUnselectedStyle(...)setVisible(...)setWidth(...)setX(...)setY(...)show()show(...)showAtPosition(...)showBack()showModeless()showPacked(...)showPopupDialog(...)showStetched(...)showStretched(...)startEditingAsync()stopEditing(...)stripMarginAndPadding()styleChanged(...)toImage()toString()unbindProperty(...)updateTabIndices(...)visibleBoundsContains(...)wasDisposedDueToOutOfBoundsTouch()wasDisposedDueToRotation()")); index.put("com.codename1.components.RSSReader", splitMembers("addActionListener(...)addDragFinishedListener(...)addDragOverListener(...)addDropListener(...)addFocusListener(...)addItem(...)addLongPressListener(...)addPointerDraggedListener(...)addPointerPressedListener(...)addPointerReleasedListener(...)addPullToRefresh(...)addScrollListener(...)addSelectionListener(...)addStateChangeListener(...)animate()announceForAccessibility(...)bindProperty(...)blocksSideSwipe()clearClientProperties()contains(...)containsOrOwns(...)createStyleAnimation(...)drop(...)getAbsoluteX()getAbsoluteY()getAccessibilityText()getActionListeners()getAllStyles()getAnimationManager()getBaseline(...)getBaselineResizeBehavior()getBindablePropertyNames()getBindablePropertyTypes()getBottomGap()getBoundPropertyValue(...)getBounds(...)getClientProperty(...)getCloudBoundProperty()getCloudDestinationProperty()getComponentForm()getComponentState()getCurrentSelected()getCursor()getDirtyRegion()getDisabledStyle()getDragTransparency()getDraggedx()getDraggedy()getEditingDelegate()getFixedSelection()getHeight()getHint()getHintIcon()getIconPlaceholder()getInlineAllStyles()getInlineDisabledStyles()getInlinePressedStyles()getInlineSelectedStyles()getInlineStylesTheme()getInlineUnselectedStyles()getInnerHeight()getInnerPreferredH()getInnerPreferredW()getInnerWidth()getInnerX()getInnerY()getItemGap()getLabelForComponent()getLimit()getListSizeCalculationSampleCount()getListeners()getMaxElementHeight()getMinElementHeight()getModel()getName()getNativeOverlay()getNextFocusDown()getNextFocusLeft()getNextFocusRight()getNextFocusUp()getOrientation()getOuterHeight()getOuterPreferredH()getOuterPreferredW()getOuterWidth()getOuterX()getOuterY()getOwner()getParent()getPreferredH()getPreferredSize()getPreferredSizeStr()getPreferredTabIndex()getPreferredW()getPressedStyle()getProgressTitle()getPropertyNames()getPropertyTypeNames()getPropertyTypes()getPropertyValue(...)getRenderer()getRenderingPrototype()getSameHeight()getSameWidth()getScrollAnimationSpeed()getScrollDimension()getScrollOpacity()getScrollOpacityChangeSpeed()getScrollX()getScrollY()getScrollable()getSelectCommandText()getSelectedIndex()getSelectedItem()getSelectedRect()getSelectedStyle()getSideGap()getStyle()getTabIndex()getTargetContainer()getTensileLength()getTextSelectionSupport()getTooltip()getUIID()getUIManager()getURL()getUnselectedStyle()getVisibleBounds(...)getWidth()getX()getY()growShrink(...)handlesInput()hasFixedPreferredSize()hasFocus()isAddBackToTaget()isAlwaysTensile()isBlockLead()isBlockList()isCellRenderer()isChildOf(...)isCommandList()isDraggable()isDropTarget()isEditable()isEditing()isEnabled()isFlatten()isFocusable()isGrabsPointerEvents()isHidden()isHidden(...)isHideInLandscape()isHideInPortrait()isIgnoreFocusComponentWhenUnfocused()isIgnorePointerEvents()isLongPointerPressActionEnabled()isMutableRendererBackgrounds()isNumericKeyActions()isOpaque()isOwnedBy(...)isPinchBlocksDragAndDrop()isRTL()isRippleEffect()isScrollVisible()isScrollableX()isScrollableY()isSmoothScrolling()isSnapToGrid()isTactileTouch()isTensileDragEnabled()isTraversable()isVisible()keyPressed(...)keyReleased(...)keyRepeated(...)longPointerPress(...)paint(...)paintBackgrounds(...)paintComponent(...)paintIntersectingComponentsAbove(...)paintLock(...)paintLockRelease()paintRippleOverlay(...)paintShadows(...)pointerDragged(...)pointerHover(...)pointerHoverPressed(...)pointerHoverReleased(...)pointerPressed(...)pointerReleased(...)putClientProperty(...)refreshTheme()refreshTheme(...)remove()removeActionListener(...)removeDragFinishedListener(...)removeDragOverListener(...)removeDropListener(...)removeFocusListener(...)removeLongPressListener(...)removePointerDraggedListener(...)removePointerPressedListener(...)removePointerReleasedListener(...)removeScrollListener(...)removeSelectionListener(...)removeStateChangeListener(...)repaint()repaint(...)requestFocus()respondsToPointerEvents()scrollRectToVisible(...)sendRequest()setAccessibilityText(...)setAddBackToTaget(...)setAlwaysTensile(...)setBlockLead(...)setBlockList(...)setBoundPropertyValue(...)setCellRenderer(...)setCloudBoundProperty(...)setCloudDestinationProperty(...)setCommandList(...)setComponentState(...)setCursor(...)setDirtyRegion(...)setDisabledStyle(...)setDragTransparency(...)setDraggable(...)setDropTarget(...)setEditingDelegate(...)setEnabled(...)setFireOnClick(...)setFixedSelection(...)setFlatten(...)setFocus(...)setFocusable(...)setGrabsPointerEvents(...)setHandlesInput(...)setHeight(...)setHidden(...)setHideInLandscape(...)setHideInPortrait(...)setHint(...)setHintIcon(...)setIconPlaceholder(...)setIgnoreFocusComponentWhenUnfocused(...)setIgnorePointerEvents(...)setInlineAllStyles(...)setInlineDisabledStyles(...)setInlinePressedStyles(...)setInlineSelectedStyles(...)setInlineStylesTheme(...)setInlineUnselectedStyles(...)setInputOnFocus(...)setIsScrollVisible(...)setItemGap(...)setLabelForComponent(...)setLimit(...)setListCellRenderer(...)setListSizeCalculationSampleCount(...)setLongPointerPressActionEnabled(...)setMaxElementHeight(...)setMinElementHeight(...)setModel(...)setMutableRendererBackgrounds(...)setName(...)setNextFocusDown(...)setNextFocusLeft(...)setNextFocusRight(...)setNextFocusUp(...)setNumericKeyActions(...)setOpaque(...)setOrientation(...)setOwner(...)setPaintFocusBehindList(...)setPinchBlocksDragAndDrop(...)setPreferredH(...)setPreferredSize(...)setPreferredSizeStr(...)setPreferredTabIndex(...)setPreferredW(...)setPressedStyle(...)setProgressTitle(...)setPropertyValue(...)setRTL(...)setRenderer(...)setRenderingPrototype(...)setRippleEffect(...)setScrollAnimationSpeed(...)setScrollOpacityChangeSpeed(...)setScrollSize(...)setScrollToSelected(...)setScrollVisible(...)setSelectCommandText(...)setSelectedIndex(...)setSelectedItem(...)setSelectedStyle(...)setShouldCalcPreferredSize(...)setSize(...)setSmoothScrolling(...)setSnapToGrid(...)setTabIndex(...)setTactileTouch(...)setTargetContainer(...)setTensileDragEnabled(...)setTensileLength(...)setTooltip(...)setTraversable(...)setUIID(...)setURL(...)setUnselectedStyle(...)setVisible(...)setWidth(...)setX(...)setY(...)size()startEditingAsync()stopEditing(...)stripMarginAndPadding()styleChanged(...)toImage()toString()unbindProperty(...)visibleBoundsContains(...)setMoreDescription(...)setMoreTitle(...)")); index.put("com.codename1.components.RadioButtonList", splitMembers("actionPerformed(...)add(...)addActionListener(...)addAll(...)addComponent(...)addDecorator(...)addDragFinishedListener(...)addDragOverListener(...)addDropListener(...)addFocusListener(...)addLongPressListener(...)addPointerDraggedListener(...)addPointerPressedListener(...)addPointerReleasedListener(...)addPullToRefresh(...)addScrollListener(...)addStateChangeListener(...)animate()animateHierarchy(...)animateHierarchyAndWait(...)animateHierarchyFade(...)animateHierarchyFadeAndWait(...)animateLayout(...)animateLayoutAndWait(...)animateLayoutFade(...)animateLayoutFadeAndWait(...)animateUnlayout(...)animateUnlayoutAndWait(...)announceForAccessibility(...)applyRTL(...)bindProperty(...)blocksSideSwipe()clearClientProperties()contains(...)containsOrOwns(...)createAnimateHierarchy(...)createAnimateHierarchyFade(...)createAnimateLayout(...)createAnimateLayoutFade(...)createAnimateLayoutFadeAndWait(...)createAnimateUnlayout(...)createReplaceTransition(...)createStyleAnimation(...)dataChanged(...)drop(...)findDropTargetAt(...)findFirstFocusable()flushReplace()forceRevalidate()getAbsoluteX()getAbsoluteY()getAccessibilityText()getAllStyles()getAnimationManager()getBaseline(...)getBaselineResizeBehavior()getBindablePropertyNames()getBindablePropertyTypes()getBottomGap()getBoundPropertyValue(...)getBounds(...)getChildrenAsList(...)getClientProperty(...)getClosestComponentTo(...)getCloudBoundProperty()getCloudDestinationProperty()getComponentAt(...)getComponentCount()getComponentForm()getComponentIndex(...)getComponentState()getCursor()getDirtyRegion()getDisabledStyle()getDragTransparency()getDraggedx()getDraggedy()getEditingDelegate()getHeight()getInlineAllStyles()getInlineDisabledStyles()getInlinePressedStyles()getInlineSelectedStyles()getInlineStylesTheme()getInlineUnselectedStyles()getInnerHeight()getInnerPreferredH()getInnerPreferredW()getInnerWidth()getInnerX()getInnerY()getLabelForComponent()getLayout()getLayoutHeight()getLayoutWidth()getLeadComponent()getLeadParent()getModel()getMultiListModel()getName()getNativeOverlay()getNextFocusDown()getNextFocusLeft()getNextFocusRight()getNextFocusUp()getOuterHeight()getOuterPreferredH()getOuterPreferredW()getOuterWidth()getOuterX()getOuterY()getOwner()getParent()getPreferredH()getPreferredSize()getPreferredSizeStr()getPreferredTabIndex()getPreferredW()getPressedStyle()getPropertyNames()getPropertyTypeNames()getPropertyTypes()getPropertyValue(...)getResponderAt(...)getSafeAreaRoot()getSameHeight()getSameWidth()getScrollAnimationSpeed()getScrollDimension()getScrollIncrement()getScrollOpacity()getScrollOpacityChangeSpeed()getScrollX()getScrollY()getScrollable()getSelectCommandText()getSelectedRect()getSelectedStyle()getSideGap()getStyle()getTabIndex()getTensileLength()getTextSelectionSupport()getTooltip()getUIID()getUIManager()getUnselectedStyle()getVisibleBounds(...)getWidth()getX()getY()growShrink(...)handlesInput()hasFixedPreferredSize()hasFocus()invalidate()isAlwaysTensile()isBlockLead()isCellRenderer()isChildOf(...)isDraggable()isDropTarget()isEditable()isEditing()isEnabled()isFlatten()isFocusable()isGrabsPointerEvents()isHidden()isHidden(...)isHideInLandscape()isHideInPortrait()isIgnorePointerEvents()isOpaque()isOwnedBy(...)isPinchBlocksDragAndDrop()isRTL()isRippleEffect()isSafeArea()isSafeAreaRoot()isScrollVisible()isScrollableX()isScrollableY()isSmoothScrolling()isSnapToGrid()isSurface()isTactileTouch()isTensileDragEnabled()isTraversable()isVisible()iterator()iterator(...)keyPressed(...)keyReleased(...)keyRepeated(...)layoutContainer()longPointerPress(...)morph(...)morphAndWait(...)paint(...)paintBackgrounds(...)paintComponent(...)paintComponentBackground(...)paintIntersectingComponentsAbove(...)paintLock(...)paintLockRelease()paintRippleOverlay(...)paintShadows(...)pointerDragged(...)pointerHover(...)pointerHoverPressed(...)pointerHoverReleased(...)pointerPressed(...)pointerReleased(...)putClientProperty(...)refresh()refreshTheme()refreshTheme(...)remove()removeActionListener(...)removeAll()removeComponent(...)removeDecorator(...)removeDragFinishedListener(...)removeDragOverListener(...)removeDropListener(...)removeFocusListener(...)removeLongPressListener(...)removePointerDraggedListener(...)removePointerPressedListener(...)removePointerReleasedListener(...)removeScrollListener(...)removeStateChangeListener(...)repaint()repaint(...)replace(...)replaceAndWait(...)requestFocus()respondsToPointerEvents()revalidate()revalidateLater()revalidateWithAnimationSafety()scrollComponentToVisible(...)scrollRectToVisible(...)selectionChanged(...)setAccessibilityText(...)setAlwaysTensile(...)setBlockLead(...)setBoundPropertyValue(...)setCellRenderer(...)setCellUIID(...)setCloudBoundProperty(...)setCloudDestinationProperty(...)setComponentState(...)setCursor(...)setDirtyRegion(...)setDisabledStyle(...)setDragTransparency(...)setDraggable(...)setDropTarget(...)setEditingDelegate(...)setEnabled(...)setFlatten(...)setFocus(...)setFocusable(...)setGrabsPointerEvents(...)setHandlesInput(...)setHeight(...)setHidden(...)setHideInLandscape(...)setHideInPortrait(...)setIgnorePointerEvents(...)setInlineAllStyles(...)setInlineDisabledStyles(...)setInlinePressedStyles(...)setInlineSelectedStyles(...)setInlineStylesTheme(...)setInlineUnselectedStyles(...)setIsScrollVisible(...)setLabelForComponent(...)setLayout(...)setLeadComponent(...)setModel(...)setName(...)setNextFocusDown(...)setNextFocusLeft(...)setNextFocusRight(...)setNextFocusUp(...)setOpaque(...)setOwner(...)setPinchBlocksDragAndDrop(...)setPreferredH(...)setPreferredSize(...)setPreferredSizeStr(...)setPreferredTabIndex(...)setPreferredW(...)setPressedStyle(...)setPropertyValue(...)setRTL(...)setRippleEffect(...)setSafeArea(...)setSafeAreaRoot(...)setScrollAnimationSpeed(...)setScrollIncrement(...)setScrollOpacityChangeSpeed(...)setScrollSize(...)setScrollVisible(...)setScrollable(...)setScrollableX(...)setScrollableY(...)setSelectCommandText(...)setSelectedStyle(...)setShouldCalcPreferredSize(...)setSize(...)setSmoothScrolling(...)setSnapToGrid(...)setTabIndex(...)setTactileTouch(...)setTensileDragEnabled(...)setTensileLength(...)setTooltip(...)setTraversable(...)setUIID(...)setUIManager(...)setUnselectedStyle(...)setVisible(...)setWidth(...)setX(...)setY(...)startEditingAsync()stopEditing(...)stripMarginAndPadding()styleChanged(...)toImage()toString()unbindProperty(...)updateTabIndices(...)visibleBoundsContains(...)")); index.put("com.codename1.components.ReplaceableImage", splitMembers("addActionListener(...)animate()applyMask(...)applyMaskAutoScale(...)asyncLock(...)createMask()dispose()fill(...)fireChangedEvent()flipHorizontally(...)flipVertically(...)getGraphics()getHeight()getImage()getImageData()getImageName()getRGB()getRGB(...)getRGBCached()getSVGDocument()getWidth()isAnimation()isLocked()isOpaque()isSVG()lock()mirror()modifyAlpha(...)modifyAlphaWithTranslucency(...)removeActionListener(...)replace(...)requiresDrawImage()rotate(...)rotate180Degrees(...)rotate270Degrees(...)rotate90Degrees(...)scale(...)scaled(...)scaledEncoded(...)scaledHeight(...)scaledLargerRatio(...)scaledSmallerRatio(...)scaledWidth(...)setImageName(...)subImage(...)toRGB(...)unlock()create(...)")); @@ -1890,7 +1926,7 @@ private static void fillMethodIndex4(Map index) { index.put("com.codename1.ui.ComponentImage", splitMembers("addActionListener(...)animate()applyMask(...)applyMaskAutoScale(...)asyncLock(...)createMask()disablePulsingAnimation()dispose()enablePulsingAnimation(...)fill(...)fireChangedEvent()flipHorizontally(...)flipVertically(...)getComponent()getGraphics()getHeight()getImage()getImageName()getRGB()getRGB(...)getRGBCached()getSVGDocument()getWidth()isAnimation()isLocked()isOpaque()isPulsingAnimationEnabled()isSVG()lock()mirror()modifyAlpha(...)modifyAlphaWithTranslucency(...)removeActionListener(...)requiresDrawImage()rotate(...)rotate180Degrees(...)rotate270Degrees(...)rotate90Degrees(...)scale(...)scaled(...)scaledHeight(...)scaledLargerRatio(...)scaledSmallerRatio(...)scaledWidth(...)setAnimation(...)setImageName(...)subImage(...)toEncodedImage()toRGB(...)unlock()")); index.put("com.codename1.ui.ComponentSelector", splitMembers("add(...)addActionListener(...)addAll(...)addDataChangedListener(...)addDragOverListener(...)addDropListener(...)addFocusListener(...)addLongPressListener(...)addPointerDraggedListener(...)addPointerPressedListener(...)addPointerReleasedListener(...)addScrollListener(...)addStyleListener(...)addTags(...)animateHierarchy(...)animateHierarchyAndWait(...)animateHierarchyFade(...)animateHierarchyFadeAndWait(...)animateLayout(...)animateLayoutAndWait(...)animateLayoutFade(...)animateLayoutFadeAndWait(...)animateStyle(...)animateUnlayout(...)animateUnlayoutAndWait(...)append(...)applyRTL(...)asComponent()asList()clear()clear(...)clearClientProperties()closest(...)contains(...)containsAll(...)containsInSubtree(...)createProxyStyle()each(...)equals(...)fadeIn()fadeIn(...)fadeInAndWait()fadeInAndWait(...)fadeOut()fadeOut(...)fadeOutAndWait(...)filter(...)find(...)findFirstFocusable()first()firstChild()forceRevalidate()getAllStyles()getAnimationManager()getClientProperty(...)getComponentAt(...)getComponentForm()getDisabledStyle()getParent()getPressedStyle()getSelectedStyle()getStyle()getStyle(...)getText()getUnselectedStyle()growShrink(...)hashCode()invalidate()isEmpty()isHidden()isIgnorePointerEvents()isVisible()iterator()lastChild()layoutContainer()map(...)merge(...)nextSibling()paint(...)paintBackgrounds(...)paintComponent(...)paintLockRelease()parent(...)parents(...)prevSibling()putClientProperty(...)refreshTheme()refreshTheme(...)remove()remove(...)removeActionListener(...)removeAll()removeAll(...)removeDataChangedListener(...)removeDragOverListener(...)removeDropListener(...)removeFocusListener(...)removeLongPressListener(...)removePointerDraggedListener(...)removePointerPressedListener(...)removePointerReleasedListener(...)removeScrollListener(...)removeStyleListener(...)removeStyleListeners()removeTags(...)repaint()repaint(...)replace(...)replaceAndWait(...)requestFocus()retainAll(...)revalidate()scrollComponentToVisible(...)selectAllStyles()selectDisabledStyle()selectPressedStyle()selectSelectedStyle()selectUnselectedStyle()set3DText(...)set3DTextNorth(...)setAlignment(...)setAutoSizeMode(...)setBackgroundGradientEndColor(...)setBackgroundGradientRelativeSize(...)setBackgroundGradientRelativeX(...)setBackgroundGradientRelativeY(...)setBackgroundGradientStartColor(...)setBackgroundType(...)setBgColor(...)setBgImage(...)setBgPainter(...)setBgTransparency(...)setBorder(...)setCellRenderer(...)setCommand(...)setComponentState(...)setCursor(...)setDirtyRegion(...)setDisabledIcon(...)setDisabledStyle(...)setDoneListener(...)setDraggable(...)setDropTarget(...)setEditable(...)setEnabled(...)setEndsWith3Points(...)setFgColor(...)setFlatten(...)setFocusable(...)setFont(...)setFontSize(...)setFontSizeMillimeters(...)setFontSizePercent(...)setGap(...)setGrabsPointerEvents(...)setHeight(...)setHidden(...)setHideInPortait(...)setIcon(...)setIconUIID(...)setIgnorePointerEvents(...)setLabelForComponent(...)setLayout(...)setLeadComponent(...)setLegacyRenderer(...)setMargin(...)setMarginMillimeters(...)setMarginPercent(...)setMask(...)setMaskName(...)setMaterialIcon(...)setName(...)setOpacity(...)setOverline(...)setPadding(...)setPaddingMillimeters(...)setPaddingPercent(...)setPreferredH(...)setPreferredSize(...)setPreferredW(...)setPressedIcon(...)setPressedStyle(...)setPropertyValue(...)setRTL(...)setRolloverIcon(...)setRolloverPressedIcon(...)setSameHeight()setSameWidth()setScrollAnimationSpeed(...)setScrollIncrement(...)setScrollOpacityChangeSpeed(...)setScrollSize(...)setScrollVisible(...)setScrollableX(...)setScrollableY(...)setSelectCommandText(...)setSelectedStyle(...)setShiftMillimeters(...)setShiftText(...)setShouldCalcPreferredSize(...)setShouldLocalize(...)setShowEvenIfBlank(...)setSize(...)setSmoothScrolling(...)setSnapToGrid(...)setStrikeThru(...)setTactileTouch(...)setTensileLength(...)setText(...)setTextDecoration(...)setTextPosition(...)setTickerEnabled(...)setUIID(...)setUnderline(...)setUnselectedStyle(...)setVerticalAlignment(...)setVisible(...)setWidth(...)setX(...)setY(...)size()slideDown()slideDown(...)slideDownAndWait(...)slideUp()slideUp(...)slideUpAndWait(...)startTicker(...)stopTicker()stripMarginAndPadding()toArray()toString()$(...)select(...)")); index.put("com.codename1.ui.Container", splitMembers("add(...)addAll(...)addComponent(...)addDragFinishedListener(...)addDragOverListener(...)addDropListener(...)addFocusListener(...)addLongPressListener(...)addPointerDraggedListener(...)addPointerPressedListener(...)addPointerReleasedListener(...)addPullToRefresh(...)addScrollListener(...)addStateChangeListener(...)animate()animateHierarchy(...)animateHierarchyAndWait(...)animateHierarchyFade(...)animateHierarchyFadeAndWait(...)animateLayout(...)animateLayoutAndWait(...)animateLayoutFade(...)animateLayoutFadeAndWait(...)animateUnlayout(...)animateUnlayoutAndWait(...)announceForAccessibility(...)applyRTL(...)bindProperty(...)blocksSideSwipe()clearClientProperties()contains(...)containsOrOwns(...)createAnimateHierarchy(...)createAnimateHierarchyFade(...)createAnimateLayout(...)createAnimateLayoutFade(...)createAnimateLayoutFadeAndWait(...)createAnimateUnlayout(...)createReplaceTransition(...)createStyleAnimation(...)drop(...)findDropTargetAt(...)findFirstFocusable()flushReplace()forceRevalidate()getAbsoluteX()getAbsoluteY()getAccessibilityText()getAllStyles()getAnimationManager()getBaseline(...)getBaselineResizeBehavior()getBindablePropertyNames()getBindablePropertyTypes()getBottomGap()getBoundPropertyValue(...)getBounds(...)getChildrenAsList(...)getClientProperty(...)getClosestComponentTo(...)getCloudBoundProperty()getCloudDestinationProperty()getComponentAt(...)getComponentCount()getComponentForm()getComponentIndex(...)getComponentState()getCursor()getDirtyRegion()getDisabledStyle()getDragTransparency()getDraggedx()getDraggedy()getEditingDelegate()getHeight()getInlineAllStyles()getInlineDisabledStyles()getInlinePressedStyles()getInlineSelectedStyles()getInlineStylesTheme()getInlineUnselectedStyles()getInnerHeight()getInnerPreferredH()getInnerPreferredW()getInnerWidth()getInnerX()getInnerY()getLabelForComponent()getLayout()getLayoutHeight()getLayoutWidth()getLeadComponent()getLeadParent()getName()getNativeOverlay()getNextFocusDown()getNextFocusLeft()getNextFocusRight()getNextFocusUp()getOuterHeight()getOuterPreferredH()getOuterPreferredW()getOuterWidth()getOuterX()getOuterY()getOwner()getParent()getPreferredH()getPreferredSize()getPreferredSizeStr()getPreferredTabIndex()getPreferredW()getPressedStyle()getPropertyNames()getPropertyTypeNames()getPropertyTypes()getPropertyValue(...)getResponderAt(...)getSafeAreaRoot()getSameHeight()getSameWidth()getScrollAnimationSpeed()getScrollDimension()getScrollIncrement()getScrollOpacity()getScrollOpacityChangeSpeed()getScrollX()getScrollY()getScrollable()getSelectCommandText()getSelectedRect()getSelectedStyle()getSideGap()getStyle()getTabIndex()getTensileLength()getTextSelectionSupport()getTooltip()getUIID()getUIManager()getUnselectedStyle()getVisibleBounds(...)getWidth()getX()getY()growShrink(...)handlesInput()hasFixedPreferredSize()hasFocus()invalidate()isAlwaysTensile()isBlockLead()isCellRenderer()isChildOf(...)isDraggable()isDropTarget()isEditable()isEditing()isEnabled()isFlatten()isFocusable()isGrabsPointerEvents()isHidden()isHidden(...)isHideInLandscape()isHideInPortrait()isIgnorePointerEvents()isOpaque()isOwnedBy(...)isPinchBlocksDragAndDrop()isRTL()isRippleEffect()isSafeArea()isSafeAreaRoot()isScrollVisible()isScrollableX()isScrollableY()isSmoothScrolling()isSnapToGrid()isSurface()isTactileTouch()isTensileDragEnabled()isTraversable()isVisible()iterator()iterator(...)keyPressed(...)keyReleased(...)keyRepeated(...)layoutContainer()longPointerPress(...)morph(...)morphAndWait(...)paint(...)paintBackgrounds(...)paintComponent(...)paintComponentBackground(...)paintIntersectingComponentsAbove(...)paintLock(...)paintLockRelease()paintRippleOverlay(...)paintShadows(...)pointerDragged(...)pointerHover(...)pointerHoverPressed(...)pointerHoverReleased(...)pointerPressed(...)pointerReleased(...)putClientProperty(...)refreshTheme()refreshTheme(...)remove()removeAll()removeComponent(...)removeDragFinishedListener(...)removeDragOverListener(...)removeDropListener(...)removeFocusListener(...)removeLongPressListener(...)removePointerDraggedListener(...)removePointerPressedListener(...)removePointerReleasedListener(...)removeScrollListener(...)removeStateChangeListener(...)repaint()repaint(...)replace(...)replaceAndWait(...)requestFocus()respondsToPointerEvents()revalidate()revalidateLater()revalidateWithAnimationSafety()scrollComponentToVisible(...)scrollRectToVisible(...)setAccessibilityText(...)setAlwaysTensile(...)setBlockLead(...)setBoundPropertyValue(...)setCellRenderer(...)setCloudBoundProperty(...)setCloudDestinationProperty(...)setComponentState(...)setCursor(...)setDirtyRegion(...)setDisabledStyle(...)setDragTransparency(...)setDraggable(...)setDropTarget(...)setEditingDelegate(...)setEnabled(...)setFlatten(...)setFocus(...)setFocusable(...)setGrabsPointerEvents(...)setHandlesInput(...)setHeight(...)setHidden(...)setHideInLandscape(...)setHideInPortrait(...)setIgnorePointerEvents(...)setInlineAllStyles(...)setInlineDisabledStyles(...)setInlinePressedStyles(...)setInlineSelectedStyles(...)setInlineStylesTheme(...)setInlineUnselectedStyles(...)setIsScrollVisible(...)setLabelForComponent(...)setLayout(...)setLeadComponent(...)setName(...)setNextFocusDown(...)setNextFocusLeft(...)setNextFocusRight(...)setNextFocusUp(...)setOpaque(...)setOwner(...)setPinchBlocksDragAndDrop(...)setPreferredH(...)setPreferredSize(...)setPreferredSizeStr(...)setPreferredTabIndex(...)setPreferredW(...)setPressedStyle(...)setPropertyValue(...)setRTL(...)setRippleEffect(...)setSafeArea(...)setSafeAreaRoot(...)setScrollAnimationSpeed(...)setScrollIncrement(...)setScrollOpacityChangeSpeed(...)setScrollSize(...)setScrollVisible(...)setScrollable(...)setScrollableX(...)setScrollableY(...)setSelectCommandText(...)setSelectedStyle(...)setShouldCalcPreferredSize(...)setSize(...)setSmoothScrolling(...)setSnapToGrid(...)setTabIndex(...)setTactileTouch(...)setTensileDragEnabled(...)setTensileLength(...)setTooltip(...)setTraversable(...)setUIID(...)setUIManager(...)setUnselectedStyle(...)setVisible(...)setWidth(...)setX(...)setY(...)startEditingAsync()stopEditing(...)stripMarginAndPadding()styleChanged(...)toImage()toString()unbindProperty(...)updateTabIndices(...)visibleBoundsContains(...)encloseIn(...)")); - index.put("com.codename1.ui.Dialog", splitMembers("add(...)addAll(...)addCommand(...)addCommandListener(...)addComponent(...)addDragFinishedListener(...)addDragOverListener(...)addDropListener(...)addFocusListener(...)addGameKeyListener(...)addKeyListener(...)addLongPressListener(...)addOrientationListener(...)addPasteListener(...)addPointerDraggedListener(...)addPointerPressedListener(...)addPointerReleasedListener(...)addPullToRefresh(...)addScrollListener(...)addShowListener(...)addSizeChangedListener(...)addStateChangeListener(...)animate()animateHierarchy(...)animateHierarchyAndWait(...)animateHierarchyFade(...)animateHierarchyFadeAndWait(...)animateLayout(...)animateLayoutAndWait(...)animateLayoutFade(...)animateLayoutFadeAndWait(...)animateUnlayout(...)animateUnlayoutAndWait(...)announceForAccessibility(...)applyRTL(...)bindProperty(...)blocksSideSwipe()clearClientProperties()clearComponentsAwaitingRelease()contains(...)containsOrOwns(...)createAnimateHierarchy(...)createAnimateHierarchyFade(...)createAnimateLayout(...)createAnimateLayoutFade(...)createAnimateLayoutFadeAndWait(...)createAnimateUnlayout(...)createReplaceTransition(...)createStyleAnimation(...)deregisterAnimated(...)dispatchCommand(...)dispatchPaste(...)dispose()drop(...)findCurrentlyEditingComponent()findDropTargetAt(...)findFirstFocusable()findNextFocusHorizontal(...)findNextFocusVertical(...)flushReplace()forceRevalidate()getAbsoluteX()getAbsoluteY()getAccessibilityText()getAllStyles()getAnimationManager()getBackCommand()getBaseline(...)getBaselineResizeBehavior()getBindablePropertyNames()getBindablePropertyTypes()getBlurBackgroundRadius()getBottomGap()getBoundPropertyValue(...)getBounds(...)getChildrenAsList(...)getClearCommand()getClientProperty(...)getClosestComponentTo(...)getCloudBoundProperty()getCloudDestinationProperty()getCommand(...)getCommandCount()getComponentAt(...)getComponentCount()getComponentForm()getComponentIndex(...)getComponentState()getContentPane()getCurrentInputDevice()getCursor()getDefaultCommand()getDialogComponent()getDialogPosition()getDialogPreferredSize()getDialogStyle()getDialogType()getDialogUIID()getDirtyRegion()getDisabledStyle()getDragRegionStatus(...)getDragTransparency()getDraggedx()getDraggedy()getEditOnShow()getEditingDelegate()getFocused()getFormLayeredPane(...)getGlassPane()getHeight()getInlineAllStyles()getInlineDisabledStyles()getInlinePressedStyles()getInlineSelectedStyles()getInlineStylesTheme()getInlineUnselectedStyles()getInnerHeight()getInnerPreferredH()getInnerPreferredW()getInnerWidth()getInnerX()getInnerY()getInvisibleAreaUnderVKB()getLabelForComponent()getLayeredPane()getLayeredPane(...)getLayout()getLayoutHeight()getLayoutWidth()getLeadComponent()getLeadParent()getMenuBar()getMenuStyle()getName()getNativeOverlay()getNextComponent(...)getNextFocusDown()getNextFocusLeft()getNextFocusRight()getNextFocusUp()getOuterHeight()getOuterPreferredH()getOuterPreferredW()getOuterWidth()getOuterX()getOuterY()getOwner()getParent()getPopupDirectionBiasPortrait()getPreferredH()getPreferredSize()getPreferredSizeStr()getPreferredTabIndex()getPreferredW()getPressedStyle()getPreviousComponent(...)getPropertyNames()getPropertyTypeNames()getPropertyTypes()getPropertyValue(...)getResponderAt(...)getSafeArea()getSafeAreaRoot()getSameHeight()getSameWidth()getScrollAnimationSpeed()getScrollDimension()getScrollIncrement()getScrollOpacity()getScrollOpacityChangeSpeed()getScrollX()getScrollY()getScrollable()getSelectCommandText()getSelectedRect()getSelectedStyle()getSideGap()getSoftButton(...)getSoftButtonCount()getSourceCommand()getStyle()getTabIndex()getTabIterator(...)getTensileLength()getTextSelection()getTextSelectionSupport()getTintColor()getTitle()getTitleArea()getTitleComponent()getTitleStyle()getToolbar()getTooltip()getTransitionInAnimator()getTransitionOutAnimator()getUIID()getUIManager()getUnselectedStyle()getVisibleBounds(...)getWidth()getX()getY()grabAnimationLock()growOrShrink()growShrink(...)handlesInput()hasFixedPreferredSize()hasFocus()hasMedia()invalidate()isAlwaysTensile()isAutoDispose()isBlockLead()isCellRenderer()isChildOf(...)isCyclicFocus()isDisposeWhenPointerOutOfBounds()isDragRegion(...)isDraggable()isDropTarget()isEditable()isEditing()isEnableCursors()isEnabled()isFlatten()isFocusScrolling()isFocusable()isFormBottomPaddingEditingMode()isGrabsPointerEvents()isHidden()isHidden(...)isHideInLandscape()isHideInPortrait()isIgnorePointerEvents()isMinimizeOnBack()isOpaque()isOwnedBy(...)isPinchBlocksDragAndDrop()isRTL()isRippleEffect()isSafeArea()isSafeAreaRoot()isScrollVisible()isScrollable()isScrollableX()isScrollableY()isSingleFocusMode()isSmoothScrolling()isSnapToGrid()isSurface()isTactileTouch()isTensileDragEnabled()isTraversable()isVisible()iterator()iterator(...)keyPressed(...)keyReleased(...)keyRepeated(...)layoutContainer()longPointerPress(...)morph(...)morphAndWait(...)paint(...)paintBackground(...)paintBackgrounds(...)paintComponent(...)paintComponentBackground(...)paintIntersectingComponentsAbove(...)paintLock(...)paintLockRelease()paintRippleOverlay(...)paintShadows(...)placeButtonCommands(...)pointerDragged(...)pointerHover(...)pointerHoverPressed(...)pointerHoverReleased(...)pointerPressed(...)pointerReleased(...)putClientProperty(...)refreshTheme()refreshTheme(...)registerAnimated(...)releaseAnimationLock()remove()removeAll()removeAllCommands()removeAllShowListeners()removeCommand(...)removeCommandListener(...)removeComponent(...)removeDragFinishedListener(...)removeDragOverListener(...)removeDropListener(...)removeFocusListener(...)removeGameKeyListener(...)removeKeyListener(...)removeLongPressListener(...)removeOrientationListener(...)removePasteListener(...)removePointerDraggedListener(...)removePointerPressedListener(...)removePointerReleasedListener(...)removeScrollListener(...)removeShowListener(...)removeSizeChangedListener(...)removeStateChangeListener(...)repaint()repaint(...)replace(...)replaceAndWait(...)requestFocus()respondsToPointerEvents()revalidate()revalidateLater()revalidateWithAnimationSafety()scrollComponentToVisible(...)scrollRectToVisible(...)setAccessibilityText(...)setAllowEnableLayoutOnPaint(...)setAlwaysTensile(...)setAutoDispose(...)setBackCommand(...)setBgImage(...)setBlockLead(...)setBlurBackgroundRadius(...)setBoundPropertyValue(...)setCellRenderer(...)setClearCommand(...)setCloudBoundProperty(...)setCloudDestinationProperty(...)setComponentState(...)setCurrentInputDevice(...)setCursor(...)setCyclicFocus(...)setDefaultCommand(...)setDialogPosition(...)setDialogStyle(...)setDialogType(...)setDialogUIID(...)setDirtyRegion(...)setDisabledStyle(...)setDisposeWhenPointerOutOfBounds(...)setDragTransparency(...)setDraggable(...)setDropTarget(...)setEditOnShow(...)setEditingDelegate(...)setEnableCursors(...)setEnabled(...)setFlatten(...)setFocus(...)setFocusScrolling(...)setFocusable(...)setFocused(...)setFormBottomPaddingEditingMode(...)setGlassPane(...)setGrabsPointerEvents(...)setHandlesInput(...)setHeight(...)setHidden(...)setHideInLandscape(...)setHideInPortrait(...)setIgnorePointerEvents(...)setInlineAllStyles(...)setInlineDisabledStyles(...)setInlinePressedStyles(...)setInlineSelectedStyles(...)setInlineStylesTheme(...)setInlineUnselectedStyles(...)setIsScrollVisible(...)setLabelForComponent(...)setLayout(...)setLeadComponent(...)setMenuBar(...)setMenuCellRenderer(...)setMenuTransitions(...)setMinimizeOnBack(...)setName(...)setNextFocusDown(...)setNextFocusLeft(...)setNextFocusRight(...)setNextFocusUp(...)setOpaque(...)setOverrideInvisibleAreaUnderVKB(...)setOwner(...)setPinchBlocksDragAndDrop(...)setPopupDirectionBiasPortrait(...)setPreferredH(...)setPreferredSize(...)setPreferredSizeStr(...)setPreferredTabIndex(...)setPreferredW(...)setPressedStyle(...)setPreviousForm(...)setPropertyValue(...)setRTL(...)setRippleEffect(...)setSafeArea(...)setSafeAreaChanged()setSafeAreaRoot(...)setScrollAnimationSpeed(...)setScrollIncrement(...)setScrollOpacityChangeSpeed(...)setScrollSize(...)setScrollVisible(...)setScrollable(...)setScrollableX(...)setScrollableY(...)setSelectCommandText(...)setSelectedStyle(...)setShouldCalcPreferredSize(...)setSize(...)setSmoothScrolling(...)setSnapToGrid(...)setSourceCommand(...)setTabIndex(...)setTactileTouch(...)setTensileDragEnabled(...)setTensileLength(...)setTimeout(...)setTintColor(...)setTitle(...)setTitleComponent(...)setTitleStyle(...)setToolBar(...)setToolbar(...)setTooltip(...)setTransitionInAnimator(...)setTransitionOutAnimator(...)setTraversable(...)setUIID(...)setUIIDByPopupPosition(...)setUIManager(...)setUnselectedStyle(...)setVisible(...)setWidth(...)setX(...)setY(...)show()show(...)showAtPosition(...)showBack()showDialog()showModeless()showPacked(...)showPopupDialog(...)showStetched(...)showStretched(...)startEditingAsync()stopEditing(...)stripMarginAndPadding()styleChanged(...)toImage()toString()unbindProperty(...)updateTabIndices(...)visibleBoundsContains(...)wasDisposedDueToOutOfBoundsTouch()wasDisposedDueToRotation()getDefaultBlurBackgroundRadius()getDefaultDialogPosition()getDefaultDialogType()isAutoAdjustDialogSize()isCommandsAsButtons()isDefaultDisposeWhenPointerOutOfBounds()isDisableStaticDialogScrolling()setAutoAdjustDialogSize(...)setCommandsAsButtons(...)setDefaultBlurBackgroundRadius(...)setDefaultDialogPosition(...)setDefaultDialogType(...)setDefaultDisposeWhenPointerOutOfBounds(...)setDisableStaticDialogScrolling(...)")); + index.put("com.codename1.ui.Dialog", splitMembers("add(...)addAll(...)addCommand(...)addCommandListener(...)addComponent(...)addDragFinishedListener(...)addDragOverListener(...)addDropListener(...)addFocusListener(...)addGameKeyListener(...)addKeyListener(...)addLongPressListener(...)addOrientationListener(...)addPasteListener(...)addPointerDraggedListener(...)addPointerPressedListener(...)addPointerReleasedListener(...)addPullToRefresh(...)addScrollListener(...)addShowListener(...)addSizeChangedListener(...)addStateChangeListener(...)animate()animateHierarchy(...)animateHierarchyAndWait(...)animateHierarchyFade(...)animateHierarchyFadeAndWait(...)animateLayout(...)animateLayoutAndWait(...)animateLayoutFade(...)animateLayoutFadeAndWait(...)animateUnlayout(...)animateUnlayoutAndWait(...)announceForAccessibility(...)applyRTL(...)bindProperty(...)blocksSideSwipe()clearClientProperties()clearComponentsAwaitingRelease()contains(...)containsOrOwns(...)createAnimateHierarchy(...)createAnimateHierarchyFade(...)createAnimateLayout(...)createAnimateLayoutFade(...)createAnimateLayoutFadeAndWait(...)createAnimateUnlayout(...)createReplaceTransition(...)createStyleAnimation(...)deregisterAnimated(...)dispatchCommand(...)dispatchPaste(...)dispose()drop(...)findCurrentlyEditingComponent()findDropTargetAt(...)findFirstFocusable()findNextFocusHorizontal(...)findNextFocusVertical(...)flushReplace()forceRevalidate()getAbsoluteX()getAbsoluteY()getAccessibilityText()getAllStyles()getAnimationManager()getBackCommand()getBaseline(...)getBaselineResizeBehavior()getBindablePropertyNames()getBindablePropertyTypes()getBlurBackgroundRadius()getBottomGap()getBoundPropertyValue(...)getBounds(...)getChildrenAsList(...)getClearCommand()getClientProperty(...)getClosestComponentTo(...)getCloudBoundProperty()getCloudDestinationProperty()getCommand(...)getCommandCount()getComponentAt(...)getComponentCount()getComponentForm()getComponentIndex(...)getComponentState()getContentPane()getCurrentInputDevice()getCursor()getDefaultCommand()getDialogComponent()getDialogPosition()getDialogPreferredSize()getDialogStyle()getDialogType()getDialogUIID()getDirtyRegion()getDisabledStyle()getDragRegionStatus(...)getDragTransparency()getDraggedx()getDraggedy()getEditOnShow()getEditingDelegate()getFocused()getFormLayeredPane(...)getGlassPane()getHeight()getInlineAllStyles()getInlineDisabledStyles()getInlinePressedStyles()getInlineSelectedStyles()getInlineStylesTheme()getInlineUnselectedStyles()getInnerHeight()getInnerPreferredH()getInnerPreferredW()getInnerWidth()getInnerX()getInnerY()getInvisibleAreaUnderVKB()getLabelForComponent()getLayeredPane()getLayeredPane(...)getLayout()getLayoutHeight()getLayoutWidth()getLeadComponent()getLeadParent()getMenuBar()getMenuStyle()getName()getNativeOverlay()getNextComponent(...)getNextFocusDown()getNextFocusLeft()getNextFocusRight()getNextFocusUp()getOuterHeight()getOuterPreferredH()getOuterPreferredW()getOuterWidth()getOuterX()getOuterY()getOwner()getParent()getPopupDirectionBiasPortrait()getPreferredH()getPreferredSize()getPreferredSizeStr()getPreferredTabIndex()getPreferredW()getPressedStyle()getPreviousComponent(...)getPropertyNames()getPropertyTypeNames()getPropertyTypes()getPropertyValue(...)getResponderAt(...)getSafeArea()getSafeAreaRoot()getSameHeight()getSameWidth()getScrollAnimationSpeed()getScrollDimension()getScrollIncrement()getScrollOpacity()getScrollOpacityChangeSpeed()getScrollX()getScrollY()getScrollable()getSelectCommandText()getSelectedRect()getSelectedStyle()getSideGap()getSoftButton(...)getSoftButtonCount()getSourceCommand()getStyle()getTabIndex()getTabIterator(...)getTensileLength()getTextSelection()getTextSelectionSupport()getTintColor()getTitle()getTitleArea()getTitleComponent()getTitleStyle()getToolbar()getTooltip()getTransitionInAnimator()getTransitionOutAnimator()getUIID()getUIManager()getUnselectedStyle()getVisibleBounds(...)getWidth()getX()getY()grabAnimationLock()growOrShrink()growShrink(...)handlesInput()hasFixedPreferredSize()hasFocus()hasMedia()invalidate()isAlwaysTensile()isAutoDispose()isBlockLead()isCellRenderer()isChildOf(...)isCyclicFocus()isDisposeWhenPointerOutOfBounds()isDragRegion(...)isDraggable()isDropTarget()isEditable()isEditing()isEnableCursors()isEnabled()isFlatten()isFocusScrolling()isFocusable()isFormBottomPaddingEditingMode()isGrabsPointerEvents()isHidden()isHidden(...)isHideInLandscape()isHideInPortrait()isIgnorePointerEvents()isMinimizeOnBack()isOpaque()isOwnedBy(...)isPinchBlocksDragAndDrop()isRTL()isRippleEffect()isSafeArea()isSafeAreaRoot()isScrollVisible()isScrollable()isScrollableX()isScrollableY()isSingleFocusMode()isSmoothScrolling()isSnapToGrid()isSurface()isTactileTouch()isTensileDragEnabled()isTraversable()isVisible()iterator()iterator(...)keyPressed(...)keyReleased(...)keyRepeated(...)layoutContainer()longPointerPress(...)morph(...)morphAndWait(...)paint(...)paintBackground(...)paintBackgrounds(...)paintComponent(...)paintComponentBackground(...)paintIntersectingComponentsAbove(...)paintLock(...)paintLockRelease()paintRippleOverlay(...)paintShadows(...)placeButtonCommands(...)pointerDragged(...)pointerHover(...)pointerHoverPressed(...)pointerHoverReleased(...)pointerPressed(...)pointerReleased(...)putClientProperty(...)refreshTheme()refreshTheme(...)registerAnimated(...)releaseAnimationLock()remove()removeAll()removeAllCommands()removeAllShowListeners()removeCommand(...)removeCommandListener(...)removeComponent(...)removeDragFinishedListener(...)removeDragOverListener(...)removeDropListener(...)removeFocusListener(...)removeGameKeyListener(...)removeKeyListener(...)removeLongPressListener(...)removeOrientationListener(...)removePasteListener(...)removePointerDraggedListener(...)removePointerPressedListener(...)removePointerReleasedListener(...)removeScrollListener(...)removeShowListener(...)removeSizeChangedListener(...)removeStateChangeListener(...)repaint()repaint(...)replace(...)replaceAndWait(...)requestFocus()respondsToPointerEvents()revalidate()revalidateLater()revalidateWithAnimationSafety()scrollComponentToVisible(...)scrollRectToVisible(...)setAccessibilityText(...)setAllowEnableLayoutOnPaint(...)setAlwaysTensile(...)setAutoDispose(...)setBackCommand(...)setBgImage(...)setBlockLead(...)setBlurBackgroundRadius(...)setBoundPropertyValue(...)setCellRenderer(...)setClearCommand(...)setCloudBoundProperty(...)setCloudDestinationProperty(...)setComponentState(...)setCurrentInputDevice(...)setCursor(...)setCyclicFocus(...)setDialogPosition(...)setDialogStyle(...)setDialogUIID(...)setDirtyRegion(...)setDisabledStyle(...)setDisposeWhenPointerOutOfBounds(...)setDragTransparency(...)setDraggable(...)setDropTarget(...)setEditOnShow(...)setEditingDelegate(...)setEnableCursors(...)setEnabled(...)setFlatten(...)setFocus(...)setFocusScrolling(...)setFocusable(...)setFocused(...)setFormBottomPaddingEditingMode(...)setGlassPane(...)setGrabsPointerEvents(...)setHandlesInput(...)setHeight(...)setHidden(...)setHideInLandscape(...)setHideInPortrait(...)setIgnorePointerEvents(...)setInlineAllStyles(...)setInlineDisabledStyles(...)setInlinePressedStyles(...)setInlineSelectedStyles(...)setInlineStylesTheme(...)setInlineUnselectedStyles(...)setIsScrollVisible(...)setLabelForComponent(...)setLayout(...)setLeadComponent(...)setMenuBar(...)setMenuCellRenderer(...)setMenuTransitions(...)setMinimizeOnBack(...)setName(...)setNextFocusDown(...)setNextFocusLeft(...)setNextFocusRight(...)setNextFocusUp(...)setOpaque(...)setOverrideInvisibleAreaUnderVKB(...)setOwner(...)setPinchBlocksDragAndDrop(...)setPopupDirectionBiasPortrait(...)setPreferredH(...)setPreferredSize(...)setPreferredSizeStr(...)setPreferredTabIndex(...)setPreferredW(...)setPressedStyle(...)setPreviousForm(...)setPropertyValue(...)setRTL(...)setRippleEffect(...)setSafeArea(...)setSafeAreaChanged()setSafeAreaRoot(...)setScrollAnimationSpeed(...)setScrollIncrement(...)setScrollOpacityChangeSpeed(...)setScrollSize(...)setScrollVisible(...)setScrollable(...)setScrollableX(...)setScrollableY(...)setSelectCommandText(...)setSelectedStyle(...)setShouldCalcPreferredSize(...)setSize(...)setSmoothScrolling(...)setSnapToGrid(...)setSourceCommand(...)setTabIndex(...)setTactileTouch(...)setTensileDragEnabled(...)setTensileLength(...)setTintColor(...)setTitle(...)setTitleComponent(...)setTitleStyle(...)setToolBar(...)setToolbar(...)setTooltip(...)setTransitionInAnimator(...)setTransitionOutAnimator(...)setTraversable(...)setUIID(...)setUIIDByPopupPosition(...)setUIManager(...)setUnselectedStyle(...)setVisible(...)setWidth(...)setX(...)setY(...)show()show(...)showAtPosition(...)showBack()showModeless()showPacked(...)showPopupDialog(...)showStetched(...)showStretched(...)startEditingAsync()stopEditing(...)stripMarginAndPadding()styleChanged(...)toImage()toString()unbindProperty(...)updateTabIndices(...)visibleBoundsContains(...)wasDisposedDueToOutOfBoundsTouch()wasDisposedDueToRotation()getDefaultBlurBackgroundRadius()getDefaultDialogPosition()getDefaultDialogType()isAutoAdjustDialogSize()isCommandsAsButtons()isDefaultDisposeWhenPointerOutOfBounds()isDisableStaticDialogScrolling()setAutoAdjustDialogSize(...)setCommandsAsButtons(...)setDefaultBlurBackgroundRadius(...)setDefaultDialogPosition(...)setDefaultDialogType(...)setDefaultDisposeWhenPointerOutOfBounds(...)setDisableStaticDialogScrolling(...)")); index.put("com.codename1.ui.Display", splitMembers("addCompletionHandler(...)addEdtErrorHandler(...)addMessageListener(...)addVirtualKeyboardListener(...)addWindowListener(...)announceForAccessibility(...)areMutableImagesFast()callSerially(...)callSeriallyAndWait(...)callSeriallyOnIdle(...)canDial()canExecute(...)canForceOrientation()canInstallOnHomescreen()cancelLocalNotification(...)captureAudio(...)capturePhoto(...)captureScreen()captureVideo(...)convertBidiLogicalToVisual(...)convertToPixels(...)copyToClipboard(...)createBackgroundMedia(...)createBackgroundMediaAsync(...)createContact(...)createMedia(...)createMediaAsync(...)createMediaRecorder(...)createSoftWeakRef(...)createThread(...)delete(...)deleteContact(...)deregisterPush()dial(...)dismissNotification(...)dispatchMessage(...)editString(...)execute(...)exists(...)exitApplication()exitFullScreen()extractHardRef(...)fireVirtualKeyboardEvent(...)fireWindowEvent(...)flashBacklight(...)gaussianBlurImage(...)getAllContacts(...)getAvailableRecordingMimeTypes()getCharLocation(...)getCodeScanner()getCommandBehavior()getContactById(...)getCrashReporter()getCurrent()getDatabasePath(...)getDefaultVirtualKeyboard()getDensityStr()getDesktopSize()getDeviceDensity()getDisplayHeight()getDisplaySafeArea(...)getDisplayWidth()getDragSpeed(...)getDragStartPercentage()getFrameRate()getGameAction(...)getImageIO()getInAppPurchase()getInAppPurchase(...)getInitialWindowSizeHintPercent()getInvisibleAreaUnderVKB()getKeyCode(...)getKeyboardType()getLargerTextScale()getLineSeparator()getLinkedContactIds(...)getLocalizationManager()getLocationManager()getLongPointerPressInterval()getMediaRecorderingMimeType()getMsisdn()getPasteDataFromClipboard()getPlatformName()getPlatformOverrides()getPluginSupport()getPreferredBackgroundFetchInterval(...)getProjectBuildHints()getProperty(...)getSMSSupport()getSharedJavascriptContext()getShowDuringEditBehavior()getStackTrace(...)getSupportedVirtualKeyboard()getUdid()getVirtualKeyboardListener()getWindowBounds()hasCamera()hasDragOccured()hasNativeTheme()hideNotify()installNativeTheme()invokeAndBlock(...)invokeWithoutBlocking(...)isAllowMinimizing()isAltGraphKeyDown()isAltKeyDown()isAutoFoldVKBOnFormSwitch()isBackgroundFetchSupported()isBadgingSupported()isBidiAlgorithm()isBuiltinSoundAvailable(...)isBuiltinSoundsEnabled()isCallDetectionSupported()isClickTouchScreen()isContactsPermissionGranted()isControlKeyDown()isDarkMode()isDatabaseCustomPathSupported()isDesktop()isEdt()isEnableAsyncStackTraces()isFullScreenSupported()isGalleryTypeSupported(...)isGaussianBlurSupported()isGetAllContactsFast()isInCall()isInFullScreenMode()isInTransition()isJailbrokenDevice()isLargerTextEnabled()isMetaKeyDown()isMinimized()isMultiKeyMode()isMultiTouch()isNativeCommands()isNativeInputSupported()isNativePickerTypeSupported(...)isNativeShareSupported()isNativeTitle()isNativeVideoPlayerControlsIncluded()isNotificationSupported()isOpenNativeNavigationAppSupported()isPortrait()isPureTouch()isRTL(...)isRightMouseButtonDown()isScreenSaverDisableSupported()isScrollWheeling()isShiftKeyDown()isSimulator()isTablet()isThirdSoftButton()isTouchScreenDevice()isVirtualKeyboardShowing()keyPressed(...)keyReleased(...)lockOrientation(...)minimizeApplication()notifyPushCompletion()notifyStatusBar(...)numAlphaLevels()numColors()onCanInstallOnHomescreen(...)onEditingComplete(...)openGallery(...)openImageGallery(...)openNativeNavigationApp(...)openOrCreate(...)platformUsesInputMode()playBuiltinSound(...)pointerDragged(...)pointerHover(...)pointerHoverPressed(...)pointerHoverReleased(...)pointerPressed(...)pointerReleased(...)postMessage(...)promptInstallOnHomescreen()refreshContacts()refreshNativeTitle()registerPush()registerPush(...)registerVirtualKeyboard(...)removeCompletionHandler(...)removeEdtErrorHandler(...)removeMessageListener(...)removeVirtualKeyboardListener(...)removeWindowListener(...)requestFullScreen()restoreMinimizedApplication()restoreToBookmark()scheduleBackgroundTask(...)scheduleLocalNotification(...)screenshot(...)sendMessage(...)sendSMS(...)setAllowMinimizing(...)setAutoFoldVKBOnFormSwitch(...)setBadgeNumber(...)setBidiAlgorithm(...)setBookmark(...)setBuiltinSoundsEnabled(...)setCommandBehavior(...)setCrashReporter(...)setDarkMode(...)setDefaultVirtualKeyboard(...)setDragStartPercentage(...)setEnableAsyncStackTraces(...)setFramerate(...)setInitialWindowSizeHintPercent(...)setInterval(...)setLongPointerPressInterval(...)setMultiKeyMode(...)setNativeCommands(...)setNoSleep(...)setPollingFrequency(...)setPreferredBackgroundFetchInterval(...)setProjectBuildHint(...)setProperty(...)setPureTouch(...)setScreenSaverEnabled(...)setShowDuringEditBehavior(...)setShowVirtualKeyboard(...)setThirdSoftButton(...)setTimeout(...)setTouchScreenDevice(...)setTransitionYield(...)setVirtualKeyboardListener(...)setWindowSize(...)share(...)shouldRenderSelection()shouldRenderSelection(...)showNativePicker(...)showNativeScreen(...)showNotify()sizeChanged(...)startRemoteControl()startThread(...)stopEditing(...)stopRemoteControl()unlockOrientation()vibrate(...)deinitialize()getInstance()init(...)isInitialized()")); index.put("com.codename1.ui.DynamicImage", splitMembers("addActionListener(...)animate()applyMask(...)applyMaskAutoScale(...)asyncLock(...)createMask()dispose()fill(...)fireChangedEvent()flipHorizontally(...)flipVertically(...)getGraphics()getHeight()getImage()getImageName()getRGB()getRGB(...)getRGBCached()getSVGDocument()getStyle()getWidth()isAnimation()isLocked()isOpaque()isSVG()lock()mirror()modifyAlpha(...)modifyAlphaWithTranslucency(...)removeActionListener(...)requiresDrawImage()rotate(...)rotate180Degrees(...)rotate270Degrees(...)rotate90Degrees(...)scale(...)scaled(...)scaledHeight(...)scaledLargerRatio(...)scaledSmallerRatio(...)scaledWidth(...)setImageName(...)setStyle(...)subImage(...)toRGB(...)unlock()setIcon(...)")); index.put("com.codename1.ui.Editable", splitMembers("isEditable()isEditing()startEditingAsync()stopEditing(...)")); @@ -2239,6 +2275,20 @@ private static void fillMethodIndex10(Map index) { index.put("java.text.Format", splitMembers("")); index.put("java.text.ParseException", splitMembers("")); index.put("java.text.SimpleDateFormat", splitMembers("")); + index.put("java.time.Clock", splitMembers("")); + index.put("java.time.Duration", splitMembers("")); + index.put("java.time.Instant", splitMembers("")); + index.put("java.time.LocalDate", splitMembers("")); + index.put("java.time.LocalDateTime", splitMembers("")); + index.put("java.time.LocalTime", splitMembers("")); + index.put("java.time.OffsetDateTime", splitMembers("")); + index.put("java.time.Period", splitMembers("")); + index.put("java.time.ZoneId", splitMembers("")); + index.put("java.time.ZoneOffset", splitMembers("")); + index.put("java.time.ZonedDateTime", splitMembers("")); + index.put("java.time.format.DateTimeFormatter", splitMembers("")); + index.put("java.time.format.DateTimeParseException", splitMembers("")); + index.put("java.time.temporal.TemporalAccessor", splitMembers("")); index.put("java.util.AbstractCollection", splitMembers("")); index.put("java.util.AbstractList", splitMembers("")); index.put("java.util.AbstractMap", splitMembers("")); @@ -2284,6 +2334,9 @@ private static void fillMethodIndex10(Map index) { index.put("java.util.RandomAccess", splitMembers("")); index.put("java.util.Set", splitMembers("")); index.put("java.util.SortedMap", splitMembers("")); + } + + private static void fillMethodIndex11(Map index) { index.put("java.util.SortedSet", splitMembers("")); index.put("java.util.Stack", splitMembers("")); index.put("java.util.StringTokenizer", splitMembers("")); @@ -2309,6 +2362,7 @@ private static Map buildFieldIndex() { fillFieldIndex8(index); fillFieldIndex9(index); fillFieldIndex10(index); + fillFieldIndex11(index); return index; } @@ -2988,6 +3042,20 @@ private static void fillFieldIndex10(Map index) { index.put("java.text.Format", splitMembers("")); index.put("java.text.ParseException", splitMembers("")); index.put("java.text.SimpleDateFormat", splitMembers("")); + index.put("java.time.Clock", splitMembers("")); + index.put("java.time.Duration", splitMembers("")); + index.put("java.time.Instant", splitMembers("")); + index.put("java.time.LocalDate", splitMembers("")); + index.put("java.time.LocalDateTime", splitMembers("")); + index.put("java.time.LocalTime", splitMembers("")); + index.put("java.time.OffsetDateTime", splitMembers("")); + index.put("java.time.Period", splitMembers("")); + index.put("java.time.ZoneId", splitMembers("")); + index.put("java.time.ZoneOffset", splitMembers("")); + index.put("java.time.ZonedDateTime", splitMembers("")); + index.put("java.time.format.DateTimeFormatter", splitMembers("")); + index.put("java.time.format.DateTimeParseException", splitMembers("")); + index.put("java.time.temporal.TemporalAccessor", splitMembers("")); index.put("java.util.AbstractCollection", splitMembers("")); index.put("java.util.AbstractList", splitMembers("")); index.put("java.util.AbstractMap", splitMembers("")); @@ -3033,6 +3101,9 @@ private static void fillFieldIndex10(Map index) { index.put("java.util.RandomAccess", splitMembers("")); index.put("java.util.Set", splitMembers("")); index.put("java.util.SortedMap", splitMembers("")); + } + + private static void fillFieldIndex11(Map index) { index.put("java.util.SortedSet", splitMembers("")); index.put("java.util.Stack", splitMembers("")); index.put("java.util.StringTokenizer", splitMembers("")); @@ -3293,6 +3364,15 @@ public Object construct(Class type, Object[] args) throws Exception { if ("java.text".equals(packageName)) { return GeneratedAccess_java_text.construct(type, args); } + if ("java.time".equals(packageName)) { + return GeneratedAccess_java_time.construct(type, args); + } + if ("java.time.format".equals(packageName)) { + return GeneratedAccess_java_time_format.construct(type, args); + } + if ("java.time.temporal".equals(packageName)) { + return GeneratedAccess_java_time_temporal.construct(type, args); + } if ("java.util".equals(packageName)) { return GeneratedAccess_java_util.construct(type, args); } @@ -3527,6 +3607,15 @@ public Object invokeStatic(Class type, String name, Object[] args) throws Exc if ("java.text".equals(packageName)) { return GeneratedAccess_java_text.invokeStatic(type, name, args); } + if ("java.time".equals(packageName)) { + return GeneratedAccess_java_time.invokeStatic(type, name, args); + } + if ("java.time.format".equals(packageName)) { + return GeneratedAccess_java_time_format.invokeStatic(type, name, args); + } + if ("java.time.temporal".equals(packageName)) { + return GeneratedAccess_java_time_temporal.invokeStatic(type, name, args); + } if ("java.util".equals(packageName)) { return GeneratedAccess_java_util.invokeStatic(type, name, args); } @@ -3912,6 +4001,21 @@ public Object invoke(Object target, String name, Object[] args) throws Exception } catch (CN1AccessException ex) { unsupported = ex; } + try { + return GeneratedAccess_java_time.invoke(target, name, args); + } catch (CN1AccessException ex) { + unsupported = ex; + } + try { + return GeneratedAccess_java_time_format.invoke(target, name, args); + } catch (CN1AccessException ex) { + unsupported = ex; + } + try { + return GeneratedAccess_java_time_temporal.invoke(target, name, args); + } catch (CN1AccessException ex) { + unsupported = ex; + } try { return GeneratedAccess_java_util.invoke(target, name, args); } catch (CN1AccessException ex) { @@ -4165,6 +4269,15 @@ public Object getStaticField(Class type, String name) throws Exception { if ("java.text".equals(packageName)) { return GeneratedAccess_java_text.getStaticField(type, name); } + if ("java.time".equals(packageName)) { + return GeneratedAccess_java_time.getStaticField(type, name); + } + if ("java.time.format".equals(packageName)) { + return GeneratedAccess_java_time_format.getStaticField(type, name); + } + if ("java.time.temporal".equals(packageName)) { + return GeneratedAccess_java_time_temporal.getStaticField(type, name); + } if ("java.util".equals(packageName)) { return GeneratedAccess_java_util.getStaticField(type, name); } @@ -4547,6 +4660,21 @@ public Object getField(Object target, String name) throws Exception { } catch (CN1AccessException ex) { unsupported = ex; } + try { + return GeneratedAccess_java_time.getField(target, name); + } catch (CN1AccessException ex) { + unsupported = ex; + } + try { + return GeneratedAccess_java_time_format.getField(target, name); + } catch (CN1AccessException ex) { + unsupported = ex; + } + try { + return GeneratedAccess_java_time_temporal.getField(target, name); + } catch (CN1AccessException ex) { + unsupported = ex; + } try { return GeneratedAccess_java_util.getField(target, name); } catch (CN1AccessException ex) { @@ -4862,6 +4990,18 @@ public void setStaticField(Class type, String name, Object value) throws Exce GeneratedAccess_java_text.setStaticField(type, name, value); return; } + if ("java.time".equals(packageName)) { + GeneratedAccess_java_time.setStaticField(type, name, value); + return; + } + if ("java.time.format".equals(packageName)) { + GeneratedAccess_java_time_format.setStaticField(type, name, value); + return; + } + if ("java.time.temporal".equals(packageName)) { + GeneratedAccess_java_time_temporal.setStaticField(type, name, value); + return; + } if ("java.util".equals(packageName)) { GeneratedAccess_java_util.setStaticField(type, name, value); return; @@ -5320,6 +5460,24 @@ public void setField(Object target, String name, Object value) throws Exception } catch (CN1AccessException ex) { unsupported = ex; } + try { + GeneratedAccess_java_time.setField(target, name, value); + return; + } catch (CN1AccessException ex) { + unsupported = ex; + } + try { + GeneratedAccess_java_time_format.setField(target, name, value); + return; + } catch (CN1AccessException ex) { + unsupported = ex; + } + try { + GeneratedAccess_java_time_temporal.setField(target, name, value); + return; + } catch (CN1AccessException ex) { + unsupported = ex; + } try { GeneratedAccess_java_util.setField(target, name, value); return; diff --git a/scripts/cn1playground/common/src/main/java/bsh/cn1/gen/GeneratedAccess_com_codename1_components.java b/scripts/cn1playground/common/src/main/java/bsh/cn1/gen/GeneratedAccess_com_codename1_components.java index c02b97b067..8a0b21a2ef 100644 --- a/scripts/cn1playground/common/src/main/java/bsh/cn1/gen/GeneratedAccess_com_codename1_components.java +++ b/scripts/cn1playground/common/src/main/java/bsh/cn1/gen/GeneratedAccess_com_codename1_components.java @@ -36639,12 +36639,6 @@ private static Object invoke21(com.codename1.components.Progress typedTarget, St typedTarget.setDialogStyle((com.codename1.ui.plaf.Style) adaptedArgs[0]); return null; } } - if ("setDialogType".equals(name)) { - if (matches(safeArgs, new Class[]{java.lang.Integer.class}, false)) { - Object[] adaptedArgs = adaptArgs(safeArgs, new Class[]{java.lang.Integer.class}, false); - typedTarget.setDialogType(((Number) adaptedArgs[0]).intValue()); return null; - } - } if ("setDialogUIID".equals(name)) { if (matches(safeArgs, new Class[]{java.lang.String.class}, false)) { Object[] adaptedArgs = adaptArgs(safeArgs, new Class[]{java.lang.String.class}, false); @@ -37140,12 +37134,6 @@ private static Object invoke21(com.codename1.components.Progress typedTarget, St typedTarget.setTensileLength(((Number) adaptedArgs[0]).intValue()); return null; } } - if ("setTimeout".equals(name)) { - if (matches(safeArgs, new Class[]{java.lang.Long.class}, false)) { - Object[] adaptedArgs = adaptArgs(safeArgs, new Class[]{java.lang.Long.class}, false); - typedTarget.setTimeout(((Number) adaptedArgs[0]).longValue()); return null; - } - } if ("setTintColor".equals(name)) { if (matches(safeArgs, new Class[]{java.lang.Integer.class}, false)) { Object[] adaptedArgs = adaptArgs(safeArgs, new Class[]{java.lang.Integer.class}, false); @@ -37290,11 +37278,6 @@ private static Object invoke21(com.codename1.components.Progress typedTarget, St typedTarget.showBack(); return null; } } - if ("showDialog".equals(name)) { - if (safeArgs.length == 0) { - return typedTarget.showDialog(); - } - } if ("showModeless".equals(name)) { if (safeArgs.length == 0) { typedTarget.showModeless(); return null; diff --git a/scripts/cn1playground/common/src/main/java/bsh/cn1/gen/GeneratedAccess_com_codename1_ui.java b/scripts/cn1playground/common/src/main/java/bsh/cn1/gen/GeneratedAccess_com_codename1_ui.java index 8734c1783d..274b4fb8ee 100644 --- a/scripts/cn1playground/common/src/main/java/bsh/cn1/gen/GeneratedAccess_com_codename1_ui.java +++ b/scripts/cn1playground/common/src/main/java/bsh/cn1/gen/GeneratedAccess_com_codename1_ui.java @@ -13445,12 +13445,6 @@ private static Object invoke4(com.codename1.ui.Dialog typedTarget, String name, typedTarget.setCyclicFocus(((Boolean) adaptedArgs[0]).booleanValue()); return null; } } - if ("setDefaultCommand".equals(name)) { - if (matches(safeArgs, new Class[]{com.codename1.ui.Command.class}, false)) { - Object[] adaptedArgs = adaptArgs(safeArgs, new Class[]{com.codename1.ui.Command.class}, false); - typedTarget.setDefaultCommand((com.codename1.ui.Command) adaptedArgs[0]); return null; - } - } if ("setDialogPosition".equals(name)) { if (matches(safeArgs, new Class[]{java.lang.String.class}, false)) { Object[] adaptedArgs = adaptArgs(safeArgs, new Class[]{java.lang.String.class}, false); @@ -13463,12 +13457,6 @@ private static Object invoke4(com.codename1.ui.Dialog typedTarget, String name, typedTarget.setDialogStyle((com.codename1.ui.plaf.Style) adaptedArgs[0]); return null; } } - if ("setDialogType".equals(name)) { - if (matches(safeArgs, new Class[]{java.lang.Integer.class}, false)) { - Object[] adaptedArgs = adaptArgs(safeArgs, new Class[]{java.lang.Integer.class}, false); - typedTarget.setDialogType(((Number) adaptedArgs[0]).intValue()); return null; - } - } if ("setDialogUIID".equals(name)) { if (matches(safeArgs, new Class[]{java.lang.String.class}, false)) { Object[] adaptedArgs = adaptArgs(safeArgs, new Class[]{java.lang.String.class}, false); @@ -13958,12 +13946,6 @@ private static Object invoke4(com.codename1.ui.Dialog typedTarget, String name, typedTarget.setTensileLength(((Number) adaptedArgs[0]).intValue()); return null; } } - if ("setTimeout".equals(name)) { - if (matches(safeArgs, new Class[]{java.lang.Long.class}, false)) { - Object[] adaptedArgs = adaptArgs(safeArgs, new Class[]{java.lang.Long.class}, false); - typedTarget.setTimeout(((Number) adaptedArgs[0]).longValue()); return null; - } - } if ("setTintColor".equals(name)) { if (matches(safeArgs, new Class[]{java.lang.Integer.class}, false)) { Object[] adaptedArgs = adaptArgs(safeArgs, new Class[]{java.lang.Integer.class}, false); @@ -14108,11 +14090,6 @@ private static Object invoke4(com.codename1.ui.Dialog typedTarget, String name, typedTarget.showBack(); return null; } } - if ("showDialog".equals(name)) { - if (safeArgs.length == 0) { - return typedTarget.showDialog(); - } - } if ("showModeless".equals(name)) { if (safeArgs.length == 0) { typedTarget.showModeless(); return null; diff --git a/scripts/cn1playground/common/src/main/java/bsh/cn1/gen/GeneratedAccess_java_time.java b/scripts/cn1playground/common/src/main/java/bsh/cn1/gen/GeneratedAccess_java_time.java new file mode 100644 index 0000000000..cb93c0b39c --- /dev/null +++ b/scripts/cn1playground/common/src/main/java/bsh/cn1/gen/GeneratedAccess_java_time.java @@ -0,0 +1,1393 @@ +package bsh.cn1.gen; + +import bsh.cn1.CN1AccessException; + +public final class GeneratedAccess_java_time { + private GeneratedAccess_java_time() { + } + + public static Class findClass(String name) { + int lastDot = name == null ? -1 : name.lastIndexOf('.'); + if (lastDot < 0 || lastDot == name.length() - 1) { + return null; + } + return findClassBySimpleName(name.substring(lastDot + 1)); + } + + public static Class findClassBySimpleName(String simpleName) { + Class found0 = findClassChunk0(simpleName); + if (found0 != null) { + return found0; + } + return null; + } + + + private static Class findClassChunk0(String simpleName) { + if ("Clock".equals(simpleName)) { + return java.time.Clock.class; + } + if ("Duration".equals(simpleName)) { + return java.time.Duration.class; + } + if ("Instant".equals(simpleName)) { + return java.time.Instant.class; + } + if ("LocalDate".equals(simpleName)) { + return java.time.LocalDate.class; + } + if ("LocalDateTime".equals(simpleName)) { + return java.time.LocalDateTime.class; + } + if ("LocalTime".equals(simpleName)) { + return java.time.LocalTime.class; + } + if ("OffsetDateTime".equals(simpleName)) { + return java.time.OffsetDateTime.class; + } + if ("Period".equals(simpleName)) { + return java.time.Period.class; + } + if ("ZoneId".equals(simpleName)) { + return java.time.ZoneId.class; + } + if ("ZoneOffset".equals(simpleName)) { + return java.time.ZoneOffset.class; + } + if ("ZonedDateTime".equals(simpleName)) { + return java.time.ZonedDateTime.class; + } + return null; + } + public static Object construct(Class type, Object[] args) throws Exception { + Object[] safeArgs = safeArgs(args); + throw unsupportedConstruct(type, safeArgs); + } + + public static Object invokeStatic(Class type, String name, Object[] args) throws Exception { + Object[] safeArgs = safeArgs(args); + if (type == java.time.Clock.class) return invokeStatic0(name, safeArgs); + if (type == java.time.Duration.class) return invokeStatic1(name, safeArgs); + if (type == java.time.Instant.class) return invokeStatic2(name, safeArgs); + if (type == java.time.LocalDate.class) return invokeStatic3(name, safeArgs); + if (type == java.time.LocalDateTime.class) return invokeStatic4(name, safeArgs); + if (type == java.time.LocalTime.class) return invokeStatic5(name, safeArgs); + if (type == java.time.OffsetDateTime.class) return invokeStatic6(name, safeArgs); + if (type == java.time.Period.class) return invokeStatic7(name, safeArgs); + if (type == java.time.ZoneId.class) return invokeStatic8(name, safeArgs); + if (type == java.time.ZoneOffset.class) return invokeStatic9(name, safeArgs); + if (type == java.time.ZonedDateTime.class) return invokeStatic10(name, safeArgs); + throw unsupportedStatic(type, name, safeArgs); + } + + private static Object invokeStatic0(String name, Object[] safeArgs) throws Exception { + if ("fixed".equals(name)) { + if (matches(safeArgs, new Class[]{java.time.Instant.class, java.time.ZoneId.class}, false)) { + Object[] adaptedArgs = adaptArgs(safeArgs, new Class[]{java.time.Instant.class, java.time.ZoneId.class}, false); + return java.time.Clock.fixed((java.time.Instant) adaptedArgs[0], (java.time.ZoneId) adaptedArgs[1]); + } + } + if ("systemDefaultZone".equals(name)) { + if (safeArgs.length == 0) { + return java.time.Clock.systemDefaultZone(); + } + } + if ("systemUTC".equals(name)) { + if (safeArgs.length == 0) { + return java.time.Clock.systemUTC(); + } + } + throw unsupportedStatic(java.time.Clock.class, name, safeArgs); + } + + private static Object invokeStatic1(String name, Object[] safeArgs) throws Exception { + if ("ofDays".equals(name)) { + if (matches(safeArgs, new Class[]{java.lang.Long.class}, false)) { + Object[] adaptedArgs = adaptArgs(safeArgs, new Class[]{java.lang.Long.class}, false); + return java.time.Duration.ofDays(((Number) adaptedArgs[0]).longValue()); + } + } + if ("ofHours".equals(name)) { + if (matches(safeArgs, new Class[]{java.lang.Long.class}, false)) { + Object[] adaptedArgs = adaptArgs(safeArgs, new Class[]{java.lang.Long.class}, false); + return java.time.Duration.ofHours(((Number) adaptedArgs[0]).longValue()); + } + } + if ("ofMillis".equals(name)) { + if (matches(safeArgs, new Class[]{java.lang.Long.class}, false)) { + Object[] adaptedArgs = adaptArgs(safeArgs, new Class[]{java.lang.Long.class}, false); + return java.time.Duration.ofMillis(((Number) adaptedArgs[0]).longValue()); + } + } + if ("ofMinutes".equals(name)) { + if (matches(safeArgs, new Class[]{java.lang.Long.class}, false)) { + Object[] adaptedArgs = adaptArgs(safeArgs, new Class[]{java.lang.Long.class}, false); + return java.time.Duration.ofMinutes(((Number) adaptedArgs[0]).longValue()); + } + } + if ("ofSeconds".equals(name)) { + if (matches(safeArgs, new Class[]{java.lang.Long.class}, false)) { + Object[] adaptedArgs = adaptArgs(safeArgs, new Class[]{java.lang.Long.class}, false); + return java.time.Duration.ofSeconds(((Number) adaptedArgs[0]).longValue()); + } + if (matches(safeArgs, new Class[]{java.lang.Long.class, java.lang.Long.class}, false)) { + Object[] adaptedArgs = adaptArgs(safeArgs, new Class[]{java.lang.Long.class, java.lang.Long.class}, false); + return java.time.Duration.ofSeconds(((Number) adaptedArgs[0]).longValue(), ((Number) adaptedArgs[1]).longValue()); + } + } + throw unsupportedStatic(java.time.Duration.class, name, safeArgs); + } + + private static Object invokeStatic2(String name, Object[] safeArgs) throws Exception { + if ("now".equals(name)) { + if (safeArgs.length == 0) { + return java.time.Instant.now(); + } + } + if ("ofEpochMilli".equals(name)) { + if (matches(safeArgs, new Class[]{java.lang.Long.class}, false)) { + Object[] adaptedArgs = adaptArgs(safeArgs, new Class[]{java.lang.Long.class}, false); + return java.time.Instant.ofEpochMilli(((Number) adaptedArgs[0]).longValue()); + } + } + if ("ofEpochSecond".equals(name)) { + if (matches(safeArgs, new Class[]{java.lang.Long.class}, false)) { + Object[] adaptedArgs = adaptArgs(safeArgs, new Class[]{java.lang.Long.class}, false); + return java.time.Instant.ofEpochSecond(((Number) adaptedArgs[0]).longValue()); + } + if (matches(safeArgs, new Class[]{java.lang.Long.class, java.lang.Long.class}, false)) { + Object[] adaptedArgs = adaptArgs(safeArgs, new Class[]{java.lang.Long.class, java.lang.Long.class}, false); + return java.time.Instant.ofEpochSecond(((Number) adaptedArgs[0]).longValue(), ((Number) adaptedArgs[1]).longValue()); + } + } + if ("parse".equals(name)) { + if (matches(safeArgs, new Class[]{java.lang.CharSequence.class}, false)) { + Object[] adaptedArgs = adaptArgs(safeArgs, new Class[]{java.lang.CharSequence.class}, false); + return java.time.Instant.parse((java.lang.CharSequence) adaptedArgs[0]); + } + } + throw unsupportedStatic(java.time.Instant.class, name, safeArgs); + } + + private static Object invokeStatic3(String name, Object[] safeArgs) throws Exception { + if ("now".equals(name)) { + if (safeArgs.length == 0) { + return java.time.LocalDate.now(); + } + if (matches(safeArgs, new Class[]{java.time.Clock.class}, false)) { + Object[] adaptedArgs = adaptArgs(safeArgs, new Class[]{java.time.Clock.class}, false); + return java.time.LocalDate.now((java.time.Clock) adaptedArgs[0]); + } + } + if ("of".equals(name)) { + if (matches(safeArgs, new Class[]{java.lang.Integer.class, java.lang.Integer.class, java.lang.Integer.class}, false)) { + Object[] adaptedArgs = adaptArgs(safeArgs, new Class[]{java.lang.Integer.class, java.lang.Integer.class, java.lang.Integer.class}, false); + return java.time.LocalDate.of(((Number) adaptedArgs[0]).intValue(), ((Number) adaptedArgs[1]).intValue(), ((Number) adaptedArgs[2]).intValue()); + } + } + if ("ofEpochDay".equals(name)) { + if (matches(safeArgs, new Class[]{java.lang.Long.class}, false)) { + Object[] adaptedArgs = adaptArgs(safeArgs, new Class[]{java.lang.Long.class}, false); + return java.time.LocalDate.ofEpochDay(((Number) adaptedArgs[0]).longValue()); + } + } + if ("parse".equals(name)) { + if (matches(safeArgs, new Class[]{java.lang.CharSequence.class}, false)) { + Object[] adaptedArgs = adaptArgs(safeArgs, new Class[]{java.lang.CharSequence.class}, false); + return java.time.LocalDate.parse((java.lang.CharSequence) adaptedArgs[0]); + } + if (matches(safeArgs, new Class[]{java.lang.CharSequence.class, java.time.format.DateTimeFormatter.class}, false)) { + Object[] adaptedArgs = adaptArgs(safeArgs, new Class[]{java.lang.CharSequence.class, java.time.format.DateTimeFormatter.class}, false); + return java.time.LocalDate.parse((java.lang.CharSequence) adaptedArgs[0], (java.time.format.DateTimeFormatter) adaptedArgs[1]); + } + } + throw unsupportedStatic(java.time.LocalDate.class, name, safeArgs); + } + + private static Object invokeStatic4(String name, Object[] safeArgs) throws Exception { + if ("now".equals(name)) { + if (safeArgs.length == 0) { + return java.time.LocalDateTime.now(); + } + if (matches(safeArgs, new Class[]{java.time.Clock.class}, false)) { + Object[] adaptedArgs = adaptArgs(safeArgs, new Class[]{java.time.Clock.class}, false); + return java.time.LocalDateTime.now((java.time.Clock) adaptedArgs[0]); + } + } + if ("of".equals(name)) { + if (matches(safeArgs, new Class[]{java.time.LocalDate.class, java.time.LocalTime.class}, false)) { + Object[] adaptedArgs = adaptArgs(safeArgs, new Class[]{java.time.LocalDate.class, java.time.LocalTime.class}, false); + return java.time.LocalDateTime.of((java.time.LocalDate) adaptedArgs[0], (java.time.LocalTime) adaptedArgs[1]); + } + if (matches(safeArgs, new Class[]{java.lang.Integer.class, java.lang.Integer.class, java.lang.Integer.class, java.lang.Integer.class, java.lang.Integer.class}, false)) { + Object[] adaptedArgs = adaptArgs(safeArgs, new Class[]{java.lang.Integer.class, java.lang.Integer.class, java.lang.Integer.class, java.lang.Integer.class, java.lang.Integer.class}, false); + return java.time.LocalDateTime.of(((Number) adaptedArgs[0]).intValue(), ((Number) adaptedArgs[1]).intValue(), ((Number) adaptedArgs[2]).intValue(), ((Number) adaptedArgs[3]).intValue(), ((Number) adaptedArgs[4]).intValue()); + } + if (matches(safeArgs, new Class[]{java.lang.Integer.class, java.lang.Integer.class, java.lang.Integer.class, java.lang.Integer.class, java.lang.Integer.class, java.lang.Integer.class}, false)) { + Object[] adaptedArgs = adaptArgs(safeArgs, new Class[]{java.lang.Integer.class, java.lang.Integer.class, java.lang.Integer.class, java.lang.Integer.class, java.lang.Integer.class, java.lang.Integer.class}, false); + return java.time.LocalDateTime.of(((Number) adaptedArgs[0]).intValue(), ((Number) adaptedArgs[1]).intValue(), ((Number) adaptedArgs[2]).intValue(), ((Number) adaptedArgs[3]).intValue(), ((Number) adaptedArgs[4]).intValue(), ((Number) adaptedArgs[5]).intValue()); + } + if (matches(safeArgs, new Class[]{java.lang.Integer.class, java.lang.Integer.class, java.lang.Integer.class, java.lang.Integer.class, java.lang.Integer.class, java.lang.Integer.class, java.lang.Integer.class}, false)) { + Object[] adaptedArgs = adaptArgs(safeArgs, new Class[]{java.lang.Integer.class, java.lang.Integer.class, java.lang.Integer.class, java.lang.Integer.class, java.lang.Integer.class, java.lang.Integer.class, java.lang.Integer.class}, false); + return java.time.LocalDateTime.of(((Number) adaptedArgs[0]).intValue(), ((Number) adaptedArgs[1]).intValue(), ((Number) adaptedArgs[2]).intValue(), ((Number) adaptedArgs[3]).intValue(), ((Number) adaptedArgs[4]).intValue(), ((Number) adaptedArgs[5]).intValue(), ((Number) adaptedArgs[6]).intValue()); + } + } + if ("ofInstant".equals(name)) { + if (matches(safeArgs, new Class[]{java.time.Instant.class, java.time.ZoneId.class}, false)) { + Object[] adaptedArgs = adaptArgs(safeArgs, new Class[]{java.time.Instant.class, java.time.ZoneId.class}, false); + return java.time.LocalDateTime.ofInstant((java.time.Instant) adaptedArgs[0], (java.time.ZoneId) adaptedArgs[1]); + } + } + if ("parse".equals(name)) { + if (matches(safeArgs, new Class[]{java.lang.CharSequence.class}, false)) { + Object[] adaptedArgs = adaptArgs(safeArgs, new Class[]{java.lang.CharSequence.class}, false); + return java.time.LocalDateTime.parse((java.lang.CharSequence) adaptedArgs[0]); + } + if (matches(safeArgs, new Class[]{java.lang.CharSequence.class, java.time.format.DateTimeFormatter.class}, false)) { + Object[] adaptedArgs = adaptArgs(safeArgs, new Class[]{java.lang.CharSequence.class, java.time.format.DateTimeFormatter.class}, false); + return java.time.LocalDateTime.parse((java.lang.CharSequence) adaptedArgs[0], (java.time.format.DateTimeFormatter) adaptedArgs[1]); + } + } + throw unsupportedStatic(java.time.LocalDateTime.class, name, safeArgs); + } + + private static Object invokeStatic5(String name, Object[] safeArgs) throws Exception { + if ("now".equals(name)) { + if (safeArgs.length == 0) { + return java.time.LocalTime.now(); + } + if (matches(safeArgs, new Class[]{java.time.Clock.class}, false)) { + Object[] adaptedArgs = adaptArgs(safeArgs, new Class[]{java.time.Clock.class}, false); + return java.time.LocalTime.now((java.time.Clock) adaptedArgs[0]); + } + } + if ("of".equals(name)) { + if (matches(safeArgs, new Class[]{java.lang.Integer.class, java.lang.Integer.class}, false)) { + Object[] adaptedArgs = adaptArgs(safeArgs, new Class[]{java.lang.Integer.class, java.lang.Integer.class}, false); + return java.time.LocalTime.of(((Number) adaptedArgs[0]).intValue(), ((Number) adaptedArgs[1]).intValue()); + } + if (matches(safeArgs, new Class[]{java.lang.Integer.class, java.lang.Integer.class, java.lang.Integer.class}, false)) { + Object[] adaptedArgs = adaptArgs(safeArgs, new Class[]{java.lang.Integer.class, java.lang.Integer.class, java.lang.Integer.class}, false); + return java.time.LocalTime.of(((Number) adaptedArgs[0]).intValue(), ((Number) adaptedArgs[1]).intValue(), ((Number) adaptedArgs[2]).intValue()); + } + if (matches(safeArgs, new Class[]{java.lang.Integer.class, java.lang.Integer.class, java.lang.Integer.class, java.lang.Integer.class}, false)) { + Object[] adaptedArgs = adaptArgs(safeArgs, new Class[]{java.lang.Integer.class, java.lang.Integer.class, java.lang.Integer.class, java.lang.Integer.class}, false); + return java.time.LocalTime.of(((Number) adaptedArgs[0]).intValue(), ((Number) adaptedArgs[1]).intValue(), ((Number) adaptedArgs[2]).intValue(), ((Number) adaptedArgs[3]).intValue()); + } + } + if ("ofNanoOfDay".equals(name)) { + if (matches(safeArgs, new Class[]{java.lang.Long.class}, false)) { + Object[] adaptedArgs = adaptArgs(safeArgs, new Class[]{java.lang.Long.class}, false); + return java.time.LocalTime.ofNanoOfDay(((Number) adaptedArgs[0]).longValue()); + } + } + if ("ofSecondOfDay".equals(name)) { + if (matches(safeArgs, new Class[]{java.lang.Long.class}, false)) { + Object[] adaptedArgs = adaptArgs(safeArgs, new Class[]{java.lang.Long.class}, false); + return java.time.LocalTime.ofSecondOfDay(((Number) adaptedArgs[0]).longValue()); + } + } + if ("parse".equals(name)) { + if (matches(safeArgs, new Class[]{java.lang.CharSequence.class}, false)) { + Object[] adaptedArgs = adaptArgs(safeArgs, new Class[]{java.lang.CharSequence.class}, false); + return java.time.LocalTime.parse((java.lang.CharSequence) adaptedArgs[0]); + } + if (matches(safeArgs, new Class[]{java.lang.CharSequence.class, java.time.format.DateTimeFormatter.class}, false)) { + Object[] adaptedArgs = adaptArgs(safeArgs, new Class[]{java.lang.CharSequence.class, java.time.format.DateTimeFormatter.class}, false); + return java.time.LocalTime.parse((java.lang.CharSequence) adaptedArgs[0], (java.time.format.DateTimeFormatter) adaptedArgs[1]); + } + } + throw unsupportedStatic(java.time.LocalTime.class, name, safeArgs); + } + + private static Object invokeStatic6(String name, Object[] safeArgs) throws Exception { + if ("of".equals(name)) { + if (matches(safeArgs, new Class[]{java.time.LocalDateTime.class, java.time.ZoneOffset.class}, false)) { + Object[] adaptedArgs = adaptArgs(safeArgs, new Class[]{java.time.LocalDateTime.class, java.time.ZoneOffset.class}, false); + return java.time.OffsetDateTime.of((java.time.LocalDateTime) adaptedArgs[0], (java.time.ZoneOffset) adaptedArgs[1]); + } + if (matches(safeArgs, new Class[]{java.time.LocalDate.class, java.time.LocalTime.class, java.time.ZoneOffset.class}, false)) { + Object[] adaptedArgs = adaptArgs(safeArgs, new Class[]{java.time.LocalDate.class, java.time.LocalTime.class, java.time.ZoneOffset.class}, false); + return java.time.OffsetDateTime.of((java.time.LocalDate) adaptedArgs[0], (java.time.LocalTime) adaptedArgs[1], (java.time.ZoneOffset) adaptedArgs[2]); + } + } + if ("ofInstant".equals(name)) { + if (matches(safeArgs, new Class[]{java.time.Instant.class, java.time.ZoneId.class}, false)) { + Object[] adaptedArgs = adaptArgs(safeArgs, new Class[]{java.time.Instant.class, java.time.ZoneId.class}, false); + return java.time.OffsetDateTime.ofInstant((java.time.Instant) adaptedArgs[0], (java.time.ZoneId) adaptedArgs[1]); + } + } + if ("parse".equals(name)) { + if (matches(safeArgs, new Class[]{java.lang.CharSequence.class}, false)) { + Object[] adaptedArgs = adaptArgs(safeArgs, new Class[]{java.lang.CharSequence.class}, false); + return java.time.OffsetDateTime.parse((java.lang.CharSequence) adaptedArgs[0]); + } + if (matches(safeArgs, new Class[]{java.lang.CharSequence.class, java.time.format.DateTimeFormatter.class}, false)) { + Object[] adaptedArgs = adaptArgs(safeArgs, new Class[]{java.lang.CharSequence.class, java.time.format.DateTimeFormatter.class}, false); + return java.time.OffsetDateTime.parse((java.lang.CharSequence) adaptedArgs[0], (java.time.format.DateTimeFormatter) adaptedArgs[1]); + } + } + throw unsupportedStatic(java.time.OffsetDateTime.class, name, safeArgs); + } + + private static Object invokeStatic7(String name, Object[] safeArgs) throws Exception { + if ("of".equals(name)) { + if (matches(safeArgs, new Class[]{java.lang.Integer.class, java.lang.Integer.class, java.lang.Integer.class}, false)) { + Object[] adaptedArgs = adaptArgs(safeArgs, new Class[]{java.lang.Integer.class, java.lang.Integer.class, java.lang.Integer.class}, false); + return java.time.Period.of(((Number) adaptedArgs[0]).intValue(), ((Number) adaptedArgs[1]).intValue(), ((Number) adaptedArgs[2]).intValue()); + } + } + if ("ofDays".equals(name)) { + if (matches(safeArgs, new Class[]{java.lang.Integer.class}, false)) { + Object[] adaptedArgs = adaptArgs(safeArgs, new Class[]{java.lang.Integer.class}, false); + return java.time.Period.ofDays(((Number) adaptedArgs[0]).intValue()); + } + } + if ("ofMonths".equals(name)) { + if (matches(safeArgs, new Class[]{java.lang.Integer.class}, false)) { + Object[] adaptedArgs = adaptArgs(safeArgs, new Class[]{java.lang.Integer.class}, false); + return java.time.Period.ofMonths(((Number) adaptedArgs[0]).intValue()); + } + } + if ("ofYears".equals(name)) { + if (matches(safeArgs, new Class[]{java.lang.Integer.class}, false)) { + Object[] adaptedArgs = adaptArgs(safeArgs, new Class[]{java.lang.Integer.class}, false); + return java.time.Period.ofYears(((Number) adaptedArgs[0]).intValue()); + } + } + throw unsupportedStatic(java.time.Period.class, name, safeArgs); + } + + private static Object invokeStatic8(String name, Object[] safeArgs) throws Exception { + if ("of".equals(name)) { + if (matches(safeArgs, new Class[]{java.lang.String.class}, false)) { + Object[] adaptedArgs = adaptArgs(safeArgs, new Class[]{java.lang.String.class}, false); + return java.time.ZoneId.of((java.lang.String) adaptedArgs[0]); + } + } + if ("systemDefault".equals(name)) { + if (safeArgs.length == 0) { + return java.time.ZoneId.systemDefault(); + } + } + throw unsupportedStatic(java.time.ZoneId.class, name, safeArgs); + } + + private static Object invokeStatic9(String name, Object[] safeArgs) throws Exception { + if ("of".equals(name)) { + if (matches(safeArgs, new Class[]{java.lang.String.class}, false)) { + Object[] adaptedArgs = adaptArgs(safeArgs, new Class[]{java.lang.String.class}, false); + return java.time.ZoneOffset.of((java.lang.String) adaptedArgs[0]); + } + } + if ("ofHours".equals(name)) { + if (matches(safeArgs, new Class[]{java.lang.Integer.class}, false)) { + Object[] adaptedArgs = adaptArgs(safeArgs, new Class[]{java.lang.Integer.class}, false); + return java.time.ZoneOffset.ofHours(((Number) adaptedArgs[0]).intValue()); + } + } + if ("ofHoursMinutes".equals(name)) { + if (matches(safeArgs, new Class[]{java.lang.Integer.class, java.lang.Integer.class}, false)) { + Object[] adaptedArgs = adaptArgs(safeArgs, new Class[]{java.lang.Integer.class, java.lang.Integer.class}, false); + return java.time.ZoneOffset.ofHoursMinutes(((Number) adaptedArgs[0]).intValue(), ((Number) adaptedArgs[1]).intValue()); + } + } + if ("ofTotalSeconds".equals(name)) { + if (matches(safeArgs, new Class[]{java.lang.Integer.class}, false)) { + Object[] adaptedArgs = adaptArgs(safeArgs, new Class[]{java.lang.Integer.class}, false); + return java.time.ZoneOffset.ofTotalSeconds(((Number) adaptedArgs[0]).intValue()); + } + } + throw unsupportedStatic(java.time.ZoneOffset.class, name, safeArgs); + } + + private static Object invokeStatic10(String name, Object[] safeArgs) throws Exception { + if ("now".equals(name)) { + if (safeArgs.length == 0) { + return java.time.ZonedDateTime.now(); + } + if (matches(safeArgs, new Class[]{java.time.Clock.class}, false)) { + Object[] adaptedArgs = adaptArgs(safeArgs, new Class[]{java.time.Clock.class}, false); + return java.time.ZonedDateTime.now((java.time.Clock) adaptedArgs[0]); + } + } + if ("of".equals(name)) { + if (matches(safeArgs, new Class[]{java.time.LocalDateTime.class, java.time.ZoneId.class}, false)) { + Object[] adaptedArgs = adaptArgs(safeArgs, new Class[]{java.time.LocalDateTime.class, java.time.ZoneId.class}, false); + return java.time.ZonedDateTime.of((java.time.LocalDateTime) adaptedArgs[0], (java.time.ZoneId) adaptedArgs[1]); + } + if (matches(safeArgs, new Class[]{java.time.LocalDate.class, java.time.LocalTime.class, java.time.ZoneId.class}, false)) { + Object[] adaptedArgs = adaptArgs(safeArgs, new Class[]{java.time.LocalDate.class, java.time.LocalTime.class, java.time.ZoneId.class}, false); + return java.time.ZonedDateTime.of((java.time.LocalDate) adaptedArgs[0], (java.time.LocalTime) adaptedArgs[1], (java.time.ZoneId) adaptedArgs[2]); + } + } + if ("ofInstant".equals(name)) { + if (matches(safeArgs, new Class[]{java.time.Instant.class, java.time.ZoneId.class}, false)) { + Object[] adaptedArgs = adaptArgs(safeArgs, new Class[]{java.time.Instant.class, java.time.ZoneId.class}, false); + return java.time.ZonedDateTime.ofInstant((java.time.Instant) adaptedArgs[0], (java.time.ZoneId) adaptedArgs[1]); + } + } + if ("parse".equals(name)) { + if (matches(safeArgs, new Class[]{java.lang.CharSequence.class}, false)) { + Object[] adaptedArgs = adaptArgs(safeArgs, new Class[]{java.lang.CharSequence.class}, false); + return java.time.ZonedDateTime.parse((java.lang.CharSequence) adaptedArgs[0]); + } + if (matches(safeArgs, new Class[]{java.lang.CharSequence.class, java.time.format.DateTimeFormatter.class}, false)) { + Object[] adaptedArgs = adaptArgs(safeArgs, new Class[]{java.lang.CharSequence.class, java.time.format.DateTimeFormatter.class}, false); + return java.time.ZonedDateTime.parse((java.lang.CharSequence) adaptedArgs[0], (java.time.format.DateTimeFormatter) adaptedArgs[1]); + } + } + throw unsupportedStatic(java.time.ZonedDateTime.class, name, safeArgs); + } + + public static Object invoke(Object target, String name, Object[] args) throws Exception { + Object[] safeArgs = safeArgs(args); + CN1AccessException unsupported = null; + if (target instanceof java.time.ZoneOffset) { + try { + return invoke0((java.time.ZoneOffset) target, name, safeArgs); + } catch (CN1AccessException ex) { + unsupported = ex; + } + } + if (target instanceof java.time.Clock) { + try { + return invoke1((java.time.Clock) target, name, safeArgs); + } catch (CN1AccessException ex) { + unsupported = ex; + } + } + if (target instanceof java.time.Duration) { + try { + return invoke2((java.time.Duration) target, name, safeArgs); + } catch (CN1AccessException ex) { + unsupported = ex; + } + } + if (target instanceof java.time.Instant) { + try { + return invoke3((java.time.Instant) target, name, safeArgs); + } catch (CN1AccessException ex) { + unsupported = ex; + } + } + if (target instanceof java.time.LocalDate) { + try { + return invoke4((java.time.LocalDate) target, name, safeArgs); + } catch (CN1AccessException ex) { + unsupported = ex; + } + } + if (target instanceof java.time.LocalDateTime) { + try { + return invoke5((java.time.LocalDateTime) target, name, safeArgs); + } catch (CN1AccessException ex) { + unsupported = ex; + } + } + if (target instanceof java.time.LocalTime) { + try { + return invoke6((java.time.LocalTime) target, name, safeArgs); + } catch (CN1AccessException ex) { + unsupported = ex; + } + } + if (target instanceof java.time.OffsetDateTime) { + try { + return invoke7((java.time.OffsetDateTime) target, name, safeArgs); + } catch (CN1AccessException ex) { + unsupported = ex; + } + } + if (target instanceof java.time.Period) { + try { + return invoke8((java.time.Period) target, name, safeArgs); + } catch (CN1AccessException ex) { + unsupported = ex; + } + } + if (target instanceof java.time.ZoneId) { + try { + return invoke9((java.time.ZoneId) target, name, safeArgs); + } catch (CN1AccessException ex) { + unsupported = ex; + } + } + if (target instanceof java.time.ZonedDateTime) { + try { + return invoke10((java.time.ZonedDateTime) target, name, safeArgs); + } catch (CN1AccessException ex) { + unsupported = ex; + } + } + if (unsupported != null) { + throw unsupported; + } + throw unsupportedInstance(target, name, safeArgs); + } + + private static Object invoke0(java.time.ZoneOffset typedTarget, String name, Object[] safeArgs) throws Exception { + if ("equals".equals(name)) { + if (matches(safeArgs, new Class[]{java.lang.Object.class}, false)) { + Object[] adaptedArgs = adaptArgs(safeArgs, new Class[]{java.lang.Object.class}, false); + return typedTarget.equals((java.lang.Object) adaptedArgs[0]); + } + } + if ("getId".equals(name)) { + if (safeArgs.length == 0) { + return typedTarget.getId(); + } + } + if ("getTotalSeconds".equals(name)) { + if (safeArgs.length == 0) { + return typedTarget.getTotalSeconds(); + } + } + if ("hashCode".equals(name)) { + if (safeArgs.length == 0) { + return typedTarget.hashCode(); + } + } + if ("toString".equals(name)) { + if (safeArgs.length == 0) { + return typedTarget.toString(); + } + } + throw unsupportedInstance(typedTarget, name, safeArgs); + } + + private static Object invoke1(java.time.Clock typedTarget, String name, Object[] safeArgs) throws Exception { + if ("getZone".equals(name)) { + if (safeArgs.length == 0) { + return typedTarget.getZone(); + } + } + if ("instant".equals(name)) { + if (safeArgs.length == 0) { + return typedTarget.instant(); + } + } + if ("millis".equals(name)) { + if (safeArgs.length == 0) { + return typedTarget.millis(); + } + } + throw unsupportedInstance(typedTarget, name, safeArgs); + } + + private static Object invoke2(java.time.Duration typedTarget, String name, Object[] safeArgs) throws Exception { + if ("compareTo".equals(name)) { + if (matches(safeArgs, new Class[]{java.time.Duration.class}, false)) { + Object[] adaptedArgs = adaptArgs(safeArgs, new Class[]{java.time.Duration.class}, false); + return typedTarget.compareTo((java.time.Duration) adaptedArgs[0]); + } + } + if ("equals".equals(name)) { + if (matches(safeArgs, new Class[]{java.lang.Object.class}, false)) { + Object[] adaptedArgs = adaptArgs(safeArgs, new Class[]{java.lang.Object.class}, false); + return typedTarget.equals((java.lang.Object) adaptedArgs[0]); + } + } + if ("getNano".equals(name)) { + if (safeArgs.length == 0) { + return typedTarget.getNano(); + } + } + if ("getSeconds".equals(name)) { + if (safeArgs.length == 0) { + return typedTarget.getSeconds(); + } + } + if ("hashCode".equals(name)) { + if (safeArgs.length == 0) { + return typedTarget.hashCode(); + } + } + if ("minus".equals(name)) { + if (matches(safeArgs, new Class[]{java.time.Duration.class}, false)) { + Object[] adaptedArgs = adaptArgs(safeArgs, new Class[]{java.time.Duration.class}, false); + return typedTarget.minus((java.time.Duration) adaptedArgs[0]); + } + } + if ("plus".equals(name)) { + if (matches(safeArgs, new Class[]{java.time.Duration.class}, false)) { + Object[] adaptedArgs = adaptArgs(safeArgs, new Class[]{java.time.Duration.class}, false); + return typedTarget.plus((java.time.Duration) adaptedArgs[0]); + } + } + if ("toMillis".equals(name)) { + if (safeArgs.length == 0) { + return typedTarget.toMillis(); + } + } + if ("toString".equals(name)) { + if (safeArgs.length == 0) { + return typedTarget.toString(); + } + } + throw unsupportedInstance(typedTarget, name, safeArgs); + } + + private static Object invoke3(java.time.Instant typedTarget, String name, Object[] safeArgs) throws Exception { + if ("compareTo".equals(name)) { + if (matches(safeArgs, new Class[]{java.time.Instant.class}, false)) { + Object[] adaptedArgs = adaptArgs(safeArgs, new Class[]{java.time.Instant.class}, false); + return typedTarget.compareTo((java.time.Instant) adaptedArgs[0]); + } + } + if ("equals".equals(name)) { + if (matches(safeArgs, new Class[]{java.lang.Object.class}, false)) { + Object[] adaptedArgs = adaptArgs(safeArgs, new Class[]{java.lang.Object.class}, false); + return typedTarget.equals((java.lang.Object) adaptedArgs[0]); + } + } + if ("getEpochSecond".equals(name)) { + if (safeArgs.length == 0) { + return typedTarget.getEpochSecond(); + } + } + if ("getNano".equals(name)) { + if (safeArgs.length == 0) { + return typedTarget.getNano(); + } + } + if ("hashCode".equals(name)) { + if (safeArgs.length == 0) { + return typedTarget.hashCode(); + } + } + if ("minusMillis".equals(name)) { + if (matches(safeArgs, new Class[]{java.lang.Long.class}, false)) { + Object[] adaptedArgs = adaptArgs(safeArgs, new Class[]{java.lang.Long.class}, false); + return typedTarget.minusMillis(((Number) adaptedArgs[0]).longValue()); + } + } + if ("minusSeconds".equals(name)) { + if (matches(safeArgs, new Class[]{java.lang.Long.class}, false)) { + Object[] adaptedArgs = adaptArgs(safeArgs, new Class[]{java.lang.Long.class}, false); + return typedTarget.minusSeconds(((Number) adaptedArgs[0]).longValue()); + } + } + if ("plusMillis".equals(name)) { + if (matches(safeArgs, new Class[]{java.lang.Long.class}, false)) { + Object[] adaptedArgs = adaptArgs(safeArgs, new Class[]{java.lang.Long.class}, false); + return typedTarget.plusMillis(((Number) adaptedArgs[0]).longValue()); + } + } + if ("plusSeconds".equals(name)) { + if (matches(safeArgs, new Class[]{java.lang.Long.class}, false)) { + Object[] adaptedArgs = adaptArgs(safeArgs, new Class[]{java.lang.Long.class}, false); + return typedTarget.plusSeconds(((Number) adaptedArgs[0]).longValue()); + } + } + if ("toEpochMilli".equals(name)) { + if (safeArgs.length == 0) { + return typedTarget.toEpochMilli(); + } + } + if ("toString".equals(name)) { + if (safeArgs.length == 0) { + return typedTarget.toString(); + } + } + throw unsupportedInstance(typedTarget, name, safeArgs); + } + + private static Object invoke4(java.time.LocalDate typedTarget, String name, Object[] safeArgs) throws Exception { + if ("atStartOfDay".equals(name)) { + if (matches(safeArgs, new Class[]{java.time.ZoneId.class}, false)) { + Object[] adaptedArgs = adaptArgs(safeArgs, new Class[]{java.time.ZoneId.class}, false); + return typedTarget.atStartOfDay((java.time.ZoneId) adaptedArgs[0]); + } + } + if ("atTime".equals(name)) { + if (matches(safeArgs, new Class[]{java.time.LocalTime.class}, false)) { + Object[] adaptedArgs = adaptArgs(safeArgs, new Class[]{java.time.LocalTime.class}, false); + return typedTarget.atTime((java.time.LocalTime) adaptedArgs[0]); + } + if (matches(safeArgs, new Class[]{java.lang.Integer.class, java.lang.Integer.class}, false)) { + Object[] adaptedArgs = adaptArgs(safeArgs, new Class[]{java.lang.Integer.class, java.lang.Integer.class}, false); + return typedTarget.atTime(((Number) adaptedArgs[0]).intValue(), ((Number) adaptedArgs[1]).intValue()); + } + if (matches(safeArgs, new Class[]{java.lang.Integer.class, java.lang.Integer.class, java.lang.Integer.class}, false)) { + Object[] adaptedArgs = adaptArgs(safeArgs, new Class[]{java.lang.Integer.class, java.lang.Integer.class, java.lang.Integer.class}, false); + return typedTarget.atTime(((Number) adaptedArgs[0]).intValue(), ((Number) adaptedArgs[1]).intValue(), ((Number) adaptedArgs[2]).intValue()); + } + if (matches(safeArgs, new Class[]{java.lang.Integer.class, java.lang.Integer.class, java.lang.Integer.class, java.lang.Integer.class}, false)) { + Object[] adaptedArgs = adaptArgs(safeArgs, new Class[]{java.lang.Integer.class, java.lang.Integer.class, java.lang.Integer.class, java.lang.Integer.class}, false); + return typedTarget.atTime(((Number) adaptedArgs[0]).intValue(), ((Number) adaptedArgs[1]).intValue(), ((Number) adaptedArgs[2]).intValue(), ((Number) adaptedArgs[3]).intValue()); + } + } + if ("equals".equals(name)) { + if (matches(safeArgs, new Class[]{java.lang.Object.class}, false)) { + Object[] adaptedArgs = adaptArgs(safeArgs, new Class[]{java.lang.Object.class}, false); + return typedTarget.equals((java.lang.Object) adaptedArgs[0]); + } + } + if ("format".equals(name)) { + if (matches(safeArgs, new Class[]{java.time.format.DateTimeFormatter.class}, false)) { + Object[] adaptedArgs = adaptArgs(safeArgs, new Class[]{java.time.format.DateTimeFormatter.class}, false); + return typedTarget.format((java.time.format.DateTimeFormatter) adaptedArgs[0]); + } + } + if ("getDayOfMonth".equals(name)) { + if (safeArgs.length == 0) { + return typedTarget.getDayOfMonth(); + } + } + if ("getMonthValue".equals(name)) { + if (safeArgs.length == 0) { + return typedTarget.getMonthValue(); + } + } + if ("getYear".equals(name)) { + if (safeArgs.length == 0) { + return typedTarget.getYear(); + } + } + if ("hashCode".equals(name)) { + if (safeArgs.length == 0) { + return typedTarget.hashCode(); + } + } + if ("isLeapYear".equals(name)) { + if (safeArgs.length == 0) { + return typedTarget.isLeapYear(); + } + } + if ("lengthOfMonth".equals(name)) { + if (safeArgs.length == 0) { + return typedTarget.lengthOfMonth(); + } + } + if ("minusDays".equals(name)) { + if (matches(safeArgs, new Class[]{java.lang.Long.class}, false)) { + Object[] adaptedArgs = adaptArgs(safeArgs, new Class[]{java.lang.Long.class}, false); + return typedTarget.minusDays(((Number) adaptedArgs[0]).longValue()); + } + } + if ("plusDays".equals(name)) { + if (matches(safeArgs, new Class[]{java.lang.Long.class}, false)) { + Object[] adaptedArgs = adaptArgs(safeArgs, new Class[]{java.lang.Long.class}, false); + return typedTarget.plusDays(((Number) adaptedArgs[0]).longValue()); + } + } + if ("plusMonths".equals(name)) { + if (matches(safeArgs, new Class[]{java.lang.Long.class}, false)) { + Object[] adaptedArgs = adaptArgs(safeArgs, new Class[]{java.lang.Long.class}, false); + return typedTarget.plusMonths(((Number) adaptedArgs[0]).longValue()); + } + } + if ("plusYears".equals(name)) { + if (matches(safeArgs, new Class[]{java.lang.Long.class}, false)) { + Object[] adaptedArgs = adaptArgs(safeArgs, new Class[]{java.lang.Long.class}, false); + return typedTarget.plusYears(((Number) adaptedArgs[0]).longValue()); + } + } + if ("toEpochDay".equals(name)) { + if (safeArgs.length == 0) { + return typedTarget.toEpochDay(); + } + } + if ("toString".equals(name)) { + if (safeArgs.length == 0) { + return typedTarget.toString(); + } + } + throw unsupportedInstance(typedTarget, name, safeArgs); + } + + private static Object invoke5(java.time.LocalDateTime typedTarget, String name, Object[] safeArgs) throws Exception { + if ("equals".equals(name)) { + if (matches(safeArgs, new Class[]{java.lang.Object.class}, false)) { + Object[] adaptedArgs = adaptArgs(safeArgs, new Class[]{java.lang.Object.class}, false); + return typedTarget.equals((java.lang.Object) adaptedArgs[0]); + } + } + if ("format".equals(name)) { + if (matches(safeArgs, new Class[]{java.time.format.DateTimeFormatter.class}, false)) { + Object[] adaptedArgs = adaptArgs(safeArgs, new Class[]{java.time.format.DateTimeFormatter.class}, false); + return typedTarget.format((java.time.format.DateTimeFormatter) adaptedArgs[0]); + } + } + if ("getDayOfMonth".equals(name)) { + if (safeArgs.length == 0) { + return typedTarget.getDayOfMonth(); + } + } + if ("getHour".equals(name)) { + if (safeArgs.length == 0) { + return typedTarget.getHour(); + } + } + if ("getMinute".equals(name)) { + if (safeArgs.length == 0) { + return typedTarget.getMinute(); + } + } + if ("getMonthValue".equals(name)) { + if (safeArgs.length == 0) { + return typedTarget.getMonthValue(); + } + } + if ("getNano".equals(name)) { + if (safeArgs.length == 0) { + return typedTarget.getNano(); + } + } + if ("getSecond".equals(name)) { + if (safeArgs.length == 0) { + return typedTarget.getSecond(); + } + } + if ("getYear".equals(name)) { + if (safeArgs.length == 0) { + return typedTarget.getYear(); + } + } + if ("hashCode".equals(name)) { + if (safeArgs.length == 0) { + return typedTarget.hashCode(); + } + } + if ("plusDays".equals(name)) { + if (matches(safeArgs, new Class[]{java.lang.Long.class}, false)) { + Object[] adaptedArgs = adaptArgs(safeArgs, new Class[]{java.lang.Long.class}, false); + return typedTarget.plusDays(((Number) adaptedArgs[0]).longValue()); + } + } + if ("plusHours".equals(name)) { + if (matches(safeArgs, new Class[]{java.lang.Long.class}, false)) { + Object[] adaptedArgs = adaptArgs(safeArgs, new Class[]{java.lang.Long.class}, false); + return typedTarget.plusHours(((Number) adaptedArgs[0]).longValue()); + } + } + if ("plusMinutes".equals(name)) { + if (matches(safeArgs, new Class[]{java.lang.Long.class}, false)) { + Object[] adaptedArgs = adaptArgs(safeArgs, new Class[]{java.lang.Long.class}, false); + return typedTarget.plusMinutes(((Number) adaptedArgs[0]).longValue()); + } + } + if ("plusSeconds".equals(name)) { + if (matches(safeArgs, new Class[]{java.lang.Long.class}, false)) { + Object[] adaptedArgs = adaptArgs(safeArgs, new Class[]{java.lang.Long.class}, false); + return typedTarget.plusSeconds(((Number) adaptedArgs[0]).longValue()); + } + } + if ("toInstant".equals(name)) { + if (matches(safeArgs, new Class[]{java.time.ZoneOffset.class}, false)) { + Object[] adaptedArgs = adaptArgs(safeArgs, new Class[]{java.time.ZoneOffset.class}, false); + return typedTarget.toInstant((java.time.ZoneOffset) adaptedArgs[0]); + } + } + if ("toLocalDate".equals(name)) { + if (safeArgs.length == 0) { + return typedTarget.toLocalDate(); + } + } + if ("toLocalTime".equals(name)) { + if (safeArgs.length == 0) { + return typedTarget.toLocalTime(); + } + } + if ("toString".equals(name)) { + if (safeArgs.length == 0) { + return typedTarget.toString(); + } + } + throw unsupportedInstance(typedTarget, name, safeArgs); + } + + private static Object invoke6(java.time.LocalTime typedTarget, String name, Object[] safeArgs) throws Exception { + if ("compareTo".equals(name)) { + if (matches(safeArgs, new Class[]{java.time.LocalTime.class}, false)) { + Object[] adaptedArgs = adaptArgs(safeArgs, new Class[]{java.time.LocalTime.class}, false); + return typedTarget.compareTo((java.time.LocalTime) adaptedArgs[0]); + } + } + if ("equals".equals(name)) { + if (matches(safeArgs, new Class[]{java.lang.Object.class}, false)) { + Object[] adaptedArgs = adaptArgs(safeArgs, new Class[]{java.lang.Object.class}, false); + return typedTarget.equals((java.lang.Object) adaptedArgs[0]); + } + } + if ("format".equals(name)) { + if (matches(safeArgs, new Class[]{java.time.format.DateTimeFormatter.class}, false)) { + Object[] adaptedArgs = adaptArgs(safeArgs, new Class[]{java.time.format.DateTimeFormatter.class}, false); + return typedTarget.format((java.time.format.DateTimeFormatter) adaptedArgs[0]); + } + } + if ("getHour".equals(name)) { + if (safeArgs.length == 0) { + return typedTarget.getHour(); + } + } + if ("getMinute".equals(name)) { + if (safeArgs.length == 0) { + return typedTarget.getMinute(); + } + } + if ("getNano".equals(name)) { + if (safeArgs.length == 0) { + return typedTarget.getNano(); + } + } + if ("getSecond".equals(name)) { + if (safeArgs.length == 0) { + return typedTarget.getSecond(); + } + } + if ("hashCode".equals(name)) { + if (safeArgs.length == 0) { + return typedTarget.hashCode(); + } + } + if ("plusHours".equals(name)) { + if (matches(safeArgs, new Class[]{java.lang.Long.class}, false)) { + Object[] adaptedArgs = adaptArgs(safeArgs, new Class[]{java.lang.Long.class}, false); + return typedTarget.plusHours(((Number) adaptedArgs[0]).longValue()); + } + } + if ("plusMinutes".equals(name)) { + if (matches(safeArgs, new Class[]{java.lang.Long.class}, false)) { + Object[] adaptedArgs = adaptArgs(safeArgs, new Class[]{java.lang.Long.class}, false); + return typedTarget.plusMinutes(((Number) adaptedArgs[0]).longValue()); + } + } + if ("plusSeconds".equals(name)) { + if (matches(safeArgs, new Class[]{java.lang.Long.class}, false)) { + Object[] adaptedArgs = adaptArgs(safeArgs, new Class[]{java.lang.Long.class}, false); + return typedTarget.plusSeconds(((Number) adaptedArgs[0]).longValue()); + } + } + if ("toNanoOfDay".equals(name)) { + if (safeArgs.length == 0) { + return typedTarget.toNanoOfDay(); + } + } + if ("toSecondOfDay".equals(name)) { + if (safeArgs.length == 0) { + return typedTarget.toSecondOfDay(); + } + } + if ("toString".equals(name)) { + if (safeArgs.length == 0) { + return typedTarget.toString(); + } + } + throw unsupportedInstance(typedTarget, name, safeArgs); + } + + private static Object invoke7(java.time.OffsetDateTime typedTarget, String name, Object[] safeArgs) throws Exception { + if ("compareTo".equals(name)) { + if (matches(safeArgs, new Class[]{java.time.OffsetDateTime.class}, false)) { + Object[] adaptedArgs = adaptArgs(safeArgs, new Class[]{java.time.OffsetDateTime.class}, false); + return typedTarget.compareTo((java.time.OffsetDateTime) adaptedArgs[0]); + } + } + if ("equals".equals(name)) { + if (matches(safeArgs, new Class[]{java.lang.Object.class}, false)) { + Object[] adaptedArgs = adaptArgs(safeArgs, new Class[]{java.lang.Object.class}, false); + return typedTarget.equals((java.lang.Object) adaptedArgs[0]); + } + } + if ("format".equals(name)) { + if (matches(safeArgs, new Class[]{java.time.format.DateTimeFormatter.class}, false)) { + Object[] adaptedArgs = adaptArgs(safeArgs, new Class[]{java.time.format.DateTimeFormatter.class}, false); + return typedTarget.format((java.time.format.DateTimeFormatter) adaptedArgs[0]); + } + } + if ("getOffset".equals(name)) { + if (safeArgs.length == 0) { + return typedTarget.getOffset(); + } + } + if ("hashCode".equals(name)) { + if (safeArgs.length == 0) { + return typedTarget.hashCode(); + } + } + if ("toInstant".equals(name)) { + if (safeArgs.length == 0) { + return typedTarget.toInstant(); + } + } + if ("toLocalDateTime".equals(name)) { + if (safeArgs.length == 0) { + return typedTarget.toLocalDateTime(); + } + } + if ("toString".equals(name)) { + if (safeArgs.length == 0) { + return typedTarget.toString(); + } + } + throw unsupportedInstance(typedTarget, name, safeArgs); + } + + private static Object invoke8(java.time.Period typedTarget, String name, Object[] safeArgs) throws Exception { + if ("getDays".equals(name)) { + if (safeArgs.length == 0) { + return typedTarget.getDays(); + } + } + if ("getMonths".equals(name)) { + if (safeArgs.length == 0) { + return typedTarget.getMonths(); + } + } + if ("getYears".equals(name)) { + if (safeArgs.length == 0) { + return typedTarget.getYears(); + } + } + if ("toString".equals(name)) { + if (safeArgs.length == 0) { + return typedTarget.toString(); + } + } + throw unsupportedInstance(typedTarget, name, safeArgs); + } + + private static Object invoke9(java.time.ZoneId typedTarget, String name, Object[] safeArgs) throws Exception { + if ("equals".equals(name)) { + if (matches(safeArgs, new Class[]{java.lang.Object.class}, false)) { + Object[] adaptedArgs = adaptArgs(safeArgs, new Class[]{java.lang.Object.class}, false); + return typedTarget.equals((java.lang.Object) adaptedArgs[0]); + } + } + if ("getId".equals(name)) { + if (safeArgs.length == 0) { + return typedTarget.getId(); + } + } + if ("hashCode".equals(name)) { + if (safeArgs.length == 0) { + return typedTarget.hashCode(); + } + } + if ("toString".equals(name)) { + if (safeArgs.length == 0) { + return typedTarget.toString(); + } + } + throw unsupportedInstance(typedTarget, name, safeArgs); + } + + private static Object invoke10(java.time.ZonedDateTime typedTarget, String name, Object[] safeArgs) throws Exception { + if ("equals".equals(name)) { + if (matches(safeArgs, new Class[]{java.lang.Object.class}, false)) { + Object[] adaptedArgs = adaptArgs(safeArgs, new Class[]{java.lang.Object.class}, false); + return typedTarget.equals((java.lang.Object) adaptedArgs[0]); + } + } + if ("format".equals(name)) { + if (matches(safeArgs, new Class[]{java.time.format.DateTimeFormatter.class}, false)) { + Object[] adaptedArgs = adaptArgs(safeArgs, new Class[]{java.time.format.DateTimeFormatter.class}, false); + return typedTarget.format((java.time.format.DateTimeFormatter) adaptedArgs[0]); + } + } + if ("getOffset".equals(name)) { + if (safeArgs.length == 0) { + return typedTarget.getOffset(); + } + } + if ("getZone".equals(name)) { + if (safeArgs.length == 0) { + return typedTarget.getZone(); + } + } + if ("hashCode".equals(name)) { + if (safeArgs.length == 0) { + return typedTarget.hashCode(); + } + } + if ("toInstant".equals(name)) { + if (safeArgs.length == 0) { + return typedTarget.toInstant(); + } + } + if ("toLocalDateTime".equals(name)) { + if (safeArgs.length == 0) { + return typedTarget.toLocalDateTime(); + } + } + if ("toString".equals(name)) { + if (safeArgs.length == 0) { + return typedTarget.toString(); + } + } + throw unsupportedInstance(typedTarget, name, safeArgs); + } + + public static Object getStaticField(Class type, String name) throws Exception { + if (type == java.time.LocalTime.class) { + if ("MIDNIGHT".equals(name)) return java.time.LocalTime.MIDNIGHT; + } + if (type == java.time.ZoneOffset.class) { + if ("UTC".equals(name)) return java.time.ZoneOffset.UTC; + } + throw unsupportedStaticField(type, name); + } + + public static Object getField(Object target, String name) throws Exception { + throw unsupportedField(target, name); + } + + public static void setStaticField(Class type, String name, Object value) throws Exception { + throw unsupportedStaticFieldWrite(type, name, value); + } + + public static void setField(Object target, String name, Object value) throws Exception { + throw unsupportedFieldWrite(target, name, value); + } + + private static Object[] safeArgs(Object[] args) { + return args == null ? new Object[0] : args; + } + + private static Object[] adaptArgs(Object[] args, Class[] paramTypes, boolean varArgs) { + if (args == null || args.length == 0) { + return args == null ? new Object[0] : args; + } + Object[] adapted = args.clone(); + if (!varArgs) { + for (int i = 0; i < Math.min(adapted.length, paramTypes.length); i++) { + adapted[i] = adaptValue(adapted[i], paramTypes[i]); + } + return adapted; + } + if (paramTypes.length == 0) { + return adapted; + } + int fixedCount = paramTypes.length - 1; + for (int i = 0; i < Math.min(fixedCount, adapted.length); i++) { + adapted[i] = adaptValue(adapted[i], paramTypes[i]); + } + Class componentType = paramTypes[paramTypes.length - 1].getComponentType(); + for (int i = fixedCount; i < adapted.length; i++) { + adapted[i] = adaptValue(adapted[i], componentType); + } + return adapted; + } + + private static boolean isSamInterface(Class type) { + if (type == com.codename1.util.OnComplete.class) { + return true; + } + if (type == com.codename1.util.SuccessCallback.class) { + return true; + } + if (type == com.codename1.util.FailureCallback.class) { + return true; + } + if (type == com.codename1.ui.events.ActionListener.class) { + return true; + } + if (type == java.lang.Runnable.class) { + return true; + } + if (type == com.codename1.ui.events.DataChangedListener.class) { + return true; + } + if (type == com.codename1.ui.events.SelectionListener.class) { + return true; + } + return false; + } + + private static Object adaptLambdaValue(final bsh.cn1.CN1LambdaSupport.LambdaValue lambda, Class type) { + if (type == com.codename1.util.OnComplete.class) { + return new com.codename1.util.OnComplete() { + public void completed(java.lang.Object arg0) { + try { + lambda.invoke(new Object[]{arg0}); + } catch (bsh.EvalError ex) { + throw new RuntimeException(ex); + } + } + }; + } + if (type == com.codename1.util.SuccessCallback.class) { + return new com.codename1.util.SuccessCallback() { + public void onSucess(java.lang.Object arg0) { + try { + lambda.invoke(new Object[]{arg0}); + } catch (bsh.EvalError ex) { + throw new RuntimeException(ex); + } + } + }; + } + if (type == com.codename1.util.FailureCallback.class) { + return new com.codename1.util.FailureCallback() { + public void onError(java.lang.Object arg0, java.lang.Throwable arg1, int arg2, java.lang.String arg3) { + try { + lambda.invoke(new Object[]{arg0, arg1, arg2, arg3}); + } catch (bsh.EvalError ex) { + throw new RuntimeException(ex); + } + } + }; + } + if (type == com.codename1.ui.events.ActionListener.class) { + return new com.codename1.ui.events.ActionListener() { + public void actionPerformed(com.codename1.ui.events.ActionEvent arg0) { + try { + lambda.invoke(new Object[]{arg0}); + } catch (bsh.EvalError ex) { + throw new RuntimeException(ex); + } + } + }; + } + if (type == java.lang.Runnable.class) { + return new java.lang.Runnable() { + public void run() { + try { + lambda.invoke(new Object[0]); + } catch (bsh.EvalError ex) { + throw new RuntimeException(ex); + } + } + }; + } + if (type == com.codename1.ui.events.DataChangedListener.class) { + return new com.codename1.ui.events.DataChangedListener() { + public void dataChanged(int arg0, int arg1) { + try { + lambda.invoke(new Object[]{arg0, arg1}); + } catch (bsh.EvalError ex) { + throw new RuntimeException(ex); + } + } + }; + } + if (type == com.codename1.ui.events.SelectionListener.class) { + return new com.codename1.ui.events.SelectionListener() { + public void selectionChanged(int arg0, int arg1) { + try { + lambda.invoke(new Object[]{arg0, arg1}); + } catch (bsh.EvalError ex) { + throw new RuntimeException(ex); + } + } + }; + } + return lambda; + } + + private static Object adaptValue(Object value, Class type) { + if (!(value instanceof bsh.cn1.CN1LambdaSupport.LambdaValue)) { + return value; + } + return adaptLambdaValue((bsh.cn1.CN1LambdaSupport.LambdaValue) value, type); + } + + private static boolean matches(Object[] args, Class[] paramTypes, boolean varArgs) { + if (!varArgs) { + if (args.length != paramTypes.length) { + return false; + } + for (int i = 0; i < paramTypes.length; i++) { + if (!matchesType(args[i], paramTypes[i])) { + return false; + } + } + return true; + } + if (paramTypes.length == 0) { + return true; + } + int fixedCount = paramTypes.length - 1; + if (args.length < fixedCount) { + return false; + } + for (int i = 0; i < fixedCount; i++) { + if (!matchesType(args[i], paramTypes[i])) { + return false; + } + } + Class componentType = paramTypes[paramTypes.length - 1].getComponentType(); + for (int i = fixedCount; i < args.length; i++) { + if (!matchesType(args[i], componentType)) { + return false; + } + } + return true; + } + + private static boolean matchesType(Object value, Class type) { + if (type == Object.class) { + return true; + } + if (value == null) { + return !type.isPrimitive(); + } + if (type.isArray()) { + return type.isInstance(value); + } + if ("boolean".equals(type.getName()) || type == Boolean.class) { + return value instanceof Boolean; + } + if ("char".equals(type.getName()) || type == Character.class) { + return value instanceof Character; + } + if ("byte".equals(type.getName()) || type == Byte.class || "short".equals(type.getName()) || type == Short.class + || "int".equals(type.getName()) || type == Integer.class || "long".equals(type.getName()) || type == Long.class + || "float".equals(type.getName()) || type == Float.class || "double".equals(type.getName()) || type == Double.class) { + return value instanceof Number; + } + if (value instanceof bsh.cn1.CN1LambdaSupport.LambdaValue) { + return isSamInterface(type); + } + return type.isInstance(value); + } + + private static CN1AccessException unsupportedConstruct(Class type, Object[] args) { + return new CN1AccessException("Generated constructor dispatch not implemented for " + type.getName() + describeArgs(args)); + } + + private static CN1AccessException unsupportedStatic(Class type, String name, Object[] args) { + return new CN1AccessException("Generated static dispatch not implemented for " + type.getName() + "." + name + describeArgs(args)); + } + + private static CN1AccessException unsupportedInstance(Object target, String name, Object[] args) { + return new CN1AccessException("Generated instance dispatch not implemented for " + target.getClass().getName() + "." + name + describeArgs(args)); + } + + private static CN1AccessException unsupportedStaticField(Class type, String name) { + return new CN1AccessException("Generated static field access not implemented for " + type.getName() + "." + name); + } + + private static CN1AccessException unsupportedField(Object target, String name) { + return new CN1AccessException("Generated field access not implemented for " + target.getClass().getName() + "." + name); + } + + private static CN1AccessException unsupportedStaticFieldWrite(Class type, String name, Object value) { + return new CN1AccessException("Generated static field write not implemented for " + type.getName() + "." + name + " value=" + describeValue(value)); + } + + private static CN1AccessException unsupportedFieldWrite(Object target, String name, Object value) { + return new CN1AccessException("Generated field write not implemented for " + target.getClass().getName() + "." + name + " value=" + describeValue(value)); + } + + private static String describeArgs(Object[] args) { + if (args == null || args.length == 0) { + return "()"; + } + StringBuilder sb = new StringBuilder("("); + for (int i = 0; i < args.length; i++) { + if (i > 0) { + sb.append(", "); + } + sb.append(describeValue(args[i])); + } + sb.append(')'); + return sb.toString(); + } + + private static String describeValue(Object value) { + return value == null ? "null" : value.getClass().getName(); + } +} diff --git a/scripts/cn1playground/common/src/main/java/bsh/cn1/gen/GeneratedAccess_java_time_format.java b/scripts/cn1playground/common/src/main/java/bsh/cn1/gen/GeneratedAccess_java_time_format.java new file mode 100644 index 0000000000..992167b749 --- /dev/null +++ b/scripts/cn1playground/common/src/main/java/bsh/cn1/gen/GeneratedAccess_java_time_format.java @@ -0,0 +1,391 @@ +package bsh.cn1.gen; + +import bsh.cn1.CN1AccessException; + +public final class GeneratedAccess_java_time_format { + private GeneratedAccess_java_time_format() { + } + + public static Class findClass(String name) { + int lastDot = name == null ? -1 : name.lastIndexOf('.'); + if (lastDot < 0 || lastDot == name.length() - 1) { + return null; + } + return findClassBySimpleName(name.substring(lastDot + 1)); + } + + public static Class findClassBySimpleName(String simpleName) { + Class found0 = findClassChunk0(simpleName); + if (found0 != null) { + return found0; + } + return null; + } + + + private static Class findClassChunk0(String simpleName) { + if ("DateTimeFormatter".equals(simpleName)) { + return java.time.format.DateTimeFormatter.class; + } + if ("DateTimeParseException".equals(simpleName)) { + return java.time.format.DateTimeParseException.class; + } + return null; + } + public static Object construct(Class type, Object[] args) throws Exception { + Object[] safeArgs = safeArgs(args); + if (type == java.time.format.DateTimeParseException.class) { + if (matches(safeArgs, new Class[]{java.lang.String.class, java.lang.CharSequence.class, java.lang.Integer.class}, false)) { + Object[] adaptedArgs = adaptArgs(safeArgs, new Class[]{java.lang.String.class, java.lang.CharSequence.class, java.lang.Integer.class}, false); + return new java.time.format.DateTimeParseException((java.lang.String) adaptedArgs[0], (java.lang.CharSequence) adaptedArgs[1], ((Number) adaptedArgs[2]).intValue()); + } + } + throw unsupportedConstruct(type, safeArgs); + } + + public static Object invokeStatic(Class type, String name, Object[] args) throws Exception { + Object[] safeArgs = safeArgs(args); + if (type == java.time.format.DateTimeFormatter.class) return invokeStatic0(name, safeArgs); + throw unsupportedStatic(type, name, safeArgs); + } + + private static Object invokeStatic0(String name, Object[] safeArgs) throws Exception { + if ("ofPattern".equals(name)) { + if (matches(safeArgs, new Class[]{java.lang.String.class}, false)) { + Object[] adaptedArgs = adaptArgs(safeArgs, new Class[]{java.lang.String.class}, false); + return java.time.format.DateTimeFormatter.ofPattern((java.lang.String) adaptedArgs[0]); + } + if (matches(safeArgs, new Class[]{java.lang.String.class, java.util.Locale.class}, false)) { + Object[] adaptedArgs = adaptArgs(safeArgs, new Class[]{java.lang.String.class, java.util.Locale.class}, false); + return java.time.format.DateTimeFormatter.ofPattern((java.lang.String) adaptedArgs[0], (java.util.Locale) adaptedArgs[1]); + } + } + throw unsupportedStatic(java.time.format.DateTimeFormatter.class, name, safeArgs); + } + + public static Object invoke(Object target, String name, Object[] args) throws Exception { + Object[] safeArgs = safeArgs(args); + CN1AccessException unsupported = null; + if (target instanceof java.time.format.DateTimeFormatter) { + try { + return invoke0((java.time.format.DateTimeFormatter) target, name, safeArgs); + } catch (CN1AccessException ex) { + unsupported = ex; + } + } + if (target instanceof java.time.format.DateTimeParseException) { + try { + return invoke1((java.time.format.DateTimeParseException) target, name, safeArgs); + } catch (CN1AccessException ex) { + unsupported = ex; + } + } + if (unsupported != null) { + throw unsupported; + } + throw unsupportedInstance(target, name, safeArgs); + } + + private static Object invoke0(java.time.format.DateTimeFormatter typedTarget, String name, Object[] safeArgs) throws Exception { + if ("format".equals(name)) { + if (matches(safeArgs, new Class[]{java.time.temporal.TemporalAccessor.class}, false)) { + Object[] adaptedArgs = adaptArgs(safeArgs, new Class[]{java.time.temporal.TemporalAccessor.class}, false); + return typedTarget.format((java.time.temporal.TemporalAccessor) adaptedArgs[0]); + } + } + if ("parse".equals(name)) { + if (matches(safeArgs, new Class[]{java.lang.CharSequence.class}, false)) { + Object[] adaptedArgs = adaptArgs(safeArgs, new Class[]{java.lang.CharSequence.class}, false); + return typedTarget.parse((java.lang.CharSequence) adaptedArgs[0]); + } + } + throw unsupportedInstance(typedTarget, name, safeArgs); + } + + private static Object invoke1(java.time.format.DateTimeParseException typedTarget, String name, Object[] safeArgs) throws Exception { + if ("getErrorIndex".equals(name)) { + if (safeArgs.length == 0) { + return typedTarget.getErrorIndex(); + } + } + if ("getParsedString".equals(name)) { + if (safeArgs.length == 0) { + return typedTarget.getParsedString(); + } + } + throw unsupportedInstance(typedTarget, name, safeArgs); + } + + public static Object getStaticField(Class type, String name) throws Exception { + if (type == java.time.format.DateTimeFormatter.class) { + if ("ISO_INSTANT".equals(name)) return java.time.format.DateTimeFormatter.ISO_INSTANT; + if ("ISO_LOCAL_DATE".equals(name)) return java.time.format.DateTimeFormatter.ISO_LOCAL_DATE; + if ("ISO_LOCAL_DATE_TIME".equals(name)) return java.time.format.DateTimeFormatter.ISO_LOCAL_DATE_TIME; + if ("ISO_LOCAL_TIME".equals(name)) return java.time.format.DateTimeFormatter.ISO_LOCAL_TIME; + if ("ISO_OFFSET_DATE_TIME".equals(name)) return java.time.format.DateTimeFormatter.ISO_OFFSET_DATE_TIME; + if ("ISO_ZONED_DATE_TIME".equals(name)) return java.time.format.DateTimeFormatter.ISO_ZONED_DATE_TIME; + } + throw unsupportedStaticField(type, name); + } + + public static Object getField(Object target, String name) throws Exception { + throw unsupportedField(target, name); + } + + public static void setStaticField(Class type, String name, Object value) throws Exception { + throw unsupportedStaticFieldWrite(type, name, value); + } + + public static void setField(Object target, String name, Object value) throws Exception { + throw unsupportedFieldWrite(target, name, value); + } + + private static Object[] safeArgs(Object[] args) { + return args == null ? new Object[0] : args; + } + + private static Object[] adaptArgs(Object[] args, Class[] paramTypes, boolean varArgs) { + if (args == null || args.length == 0) { + return args == null ? new Object[0] : args; + } + Object[] adapted = args.clone(); + if (!varArgs) { + for (int i = 0; i < Math.min(adapted.length, paramTypes.length); i++) { + adapted[i] = adaptValue(adapted[i], paramTypes[i]); + } + return adapted; + } + if (paramTypes.length == 0) { + return adapted; + } + int fixedCount = paramTypes.length - 1; + for (int i = 0; i < Math.min(fixedCount, adapted.length); i++) { + adapted[i] = adaptValue(adapted[i], paramTypes[i]); + } + Class componentType = paramTypes[paramTypes.length - 1].getComponentType(); + for (int i = fixedCount; i < adapted.length; i++) { + adapted[i] = adaptValue(adapted[i], componentType); + } + return adapted; + } + + private static boolean isSamInterface(Class type) { + if (type == com.codename1.util.OnComplete.class) { + return true; + } + if (type == com.codename1.util.SuccessCallback.class) { + return true; + } + if (type == com.codename1.util.FailureCallback.class) { + return true; + } + if (type == com.codename1.ui.events.ActionListener.class) { + return true; + } + if (type == java.lang.Runnable.class) { + return true; + } + if (type == com.codename1.ui.events.DataChangedListener.class) { + return true; + } + if (type == com.codename1.ui.events.SelectionListener.class) { + return true; + } + return false; + } + + private static Object adaptLambdaValue(final bsh.cn1.CN1LambdaSupport.LambdaValue lambda, Class type) { + if (type == com.codename1.util.OnComplete.class) { + return new com.codename1.util.OnComplete() { + public void completed(java.lang.Object arg0) { + try { + lambda.invoke(new Object[]{arg0}); + } catch (bsh.EvalError ex) { + throw new RuntimeException(ex); + } + } + }; + } + if (type == com.codename1.util.SuccessCallback.class) { + return new com.codename1.util.SuccessCallback() { + public void onSucess(java.lang.Object arg0) { + try { + lambda.invoke(new Object[]{arg0}); + } catch (bsh.EvalError ex) { + throw new RuntimeException(ex); + } + } + }; + } + if (type == com.codename1.util.FailureCallback.class) { + return new com.codename1.util.FailureCallback() { + public void onError(java.lang.Object arg0, java.lang.Throwable arg1, int arg2, java.lang.String arg3) { + try { + lambda.invoke(new Object[]{arg0, arg1, arg2, arg3}); + } catch (bsh.EvalError ex) { + throw new RuntimeException(ex); + } + } + }; + } + if (type == com.codename1.ui.events.ActionListener.class) { + return new com.codename1.ui.events.ActionListener() { + public void actionPerformed(com.codename1.ui.events.ActionEvent arg0) { + try { + lambda.invoke(new Object[]{arg0}); + } catch (bsh.EvalError ex) { + throw new RuntimeException(ex); + } + } + }; + } + if (type == java.lang.Runnable.class) { + return new java.lang.Runnable() { + public void run() { + try { + lambda.invoke(new Object[0]); + } catch (bsh.EvalError ex) { + throw new RuntimeException(ex); + } + } + }; + } + if (type == com.codename1.ui.events.DataChangedListener.class) { + return new com.codename1.ui.events.DataChangedListener() { + public void dataChanged(int arg0, int arg1) { + try { + lambda.invoke(new Object[]{arg0, arg1}); + } catch (bsh.EvalError ex) { + throw new RuntimeException(ex); + } + } + }; + } + if (type == com.codename1.ui.events.SelectionListener.class) { + return new com.codename1.ui.events.SelectionListener() { + public void selectionChanged(int arg0, int arg1) { + try { + lambda.invoke(new Object[]{arg0, arg1}); + } catch (bsh.EvalError ex) { + throw new RuntimeException(ex); + } + } + }; + } + return lambda; + } + + private static Object adaptValue(Object value, Class type) { + if (!(value instanceof bsh.cn1.CN1LambdaSupport.LambdaValue)) { + return value; + } + return adaptLambdaValue((bsh.cn1.CN1LambdaSupport.LambdaValue) value, type); + } + + private static boolean matches(Object[] args, Class[] paramTypes, boolean varArgs) { + if (!varArgs) { + if (args.length != paramTypes.length) { + return false; + } + for (int i = 0; i < paramTypes.length; i++) { + if (!matchesType(args[i], paramTypes[i])) { + return false; + } + } + return true; + } + if (paramTypes.length == 0) { + return true; + } + int fixedCount = paramTypes.length - 1; + if (args.length < fixedCount) { + return false; + } + for (int i = 0; i < fixedCount; i++) { + if (!matchesType(args[i], paramTypes[i])) { + return false; + } + } + Class componentType = paramTypes[paramTypes.length - 1].getComponentType(); + for (int i = fixedCount; i < args.length; i++) { + if (!matchesType(args[i], componentType)) { + return false; + } + } + return true; + } + + private static boolean matchesType(Object value, Class type) { + if (type == Object.class) { + return true; + } + if (value == null) { + return !type.isPrimitive(); + } + if (type.isArray()) { + return type.isInstance(value); + } + if ("boolean".equals(type.getName()) || type == Boolean.class) { + return value instanceof Boolean; + } + if ("char".equals(type.getName()) || type == Character.class) { + return value instanceof Character; + } + if ("byte".equals(type.getName()) || type == Byte.class || "short".equals(type.getName()) || type == Short.class + || "int".equals(type.getName()) || type == Integer.class || "long".equals(type.getName()) || type == Long.class + || "float".equals(type.getName()) || type == Float.class || "double".equals(type.getName()) || type == Double.class) { + return value instanceof Number; + } + if (value instanceof bsh.cn1.CN1LambdaSupport.LambdaValue) { + return isSamInterface(type); + } + return type.isInstance(value); + } + + private static CN1AccessException unsupportedConstruct(Class type, Object[] args) { + return new CN1AccessException("Generated constructor dispatch not implemented for " + type.getName() + describeArgs(args)); + } + + private static CN1AccessException unsupportedStatic(Class type, String name, Object[] args) { + return new CN1AccessException("Generated static dispatch not implemented for " + type.getName() + "." + name + describeArgs(args)); + } + + private static CN1AccessException unsupportedInstance(Object target, String name, Object[] args) { + return new CN1AccessException("Generated instance dispatch not implemented for " + target.getClass().getName() + "." + name + describeArgs(args)); + } + + private static CN1AccessException unsupportedStaticField(Class type, String name) { + return new CN1AccessException("Generated static field access not implemented for " + type.getName() + "." + name); + } + + private static CN1AccessException unsupportedField(Object target, String name) { + return new CN1AccessException("Generated field access not implemented for " + target.getClass().getName() + "." + name); + } + + private static CN1AccessException unsupportedStaticFieldWrite(Class type, String name, Object value) { + return new CN1AccessException("Generated static field write not implemented for " + type.getName() + "." + name + " value=" + describeValue(value)); + } + + private static CN1AccessException unsupportedFieldWrite(Object target, String name, Object value) { + return new CN1AccessException("Generated field write not implemented for " + target.getClass().getName() + "." + name + " value=" + describeValue(value)); + } + + private static String describeArgs(Object[] args) { + if (args == null || args.length == 0) { + return "()"; + } + StringBuilder sb = new StringBuilder("("); + for (int i = 0; i < args.length; i++) { + if (i > 0) { + sb.append(", "); + } + sb.append(describeValue(args[i])); + } + sb.append(')'); + return sb.toString(); + } + + private static String describeValue(Object value) { + return value == null ? "null" : value.getClass().getName(); + } +} diff --git a/scripts/cn1playground/common/src/main/java/bsh/cn1/gen/GeneratedAccess_java_time_temporal.java b/scripts/cn1playground/common/src/main/java/bsh/cn1/gen/GeneratedAccess_java_time_temporal.java new file mode 100644 index 0000000000..197fee80c2 --- /dev/null +++ b/scripts/cn1playground/common/src/main/java/bsh/cn1/gen/GeneratedAccess_java_time_temporal.java @@ -0,0 +1,315 @@ +package bsh.cn1.gen; + +import bsh.cn1.CN1AccessException; + +public final class GeneratedAccess_java_time_temporal { + private GeneratedAccess_java_time_temporal() { + } + + public static Class findClass(String name) { + int lastDot = name == null ? -1 : name.lastIndexOf('.'); + if (lastDot < 0 || lastDot == name.length() - 1) { + return null; + } + return findClassBySimpleName(name.substring(lastDot + 1)); + } + + public static Class findClassBySimpleName(String simpleName) { + Class found0 = findClassChunk0(simpleName); + if (found0 != null) { + return found0; + } + return null; + } + + + private static Class findClassChunk0(String simpleName) { + if ("TemporalAccessor".equals(simpleName)) { + return java.time.temporal.TemporalAccessor.class; + } + return null; + } + public static Object construct(Class type, Object[] args) throws Exception { + Object[] safeArgs = safeArgs(args); + throw unsupportedConstruct(type, safeArgs); + } + + public static Object invokeStatic(Class type, String name, Object[] args) throws Exception { + Object[] safeArgs = safeArgs(args); + throw unsupportedStatic(type, name, safeArgs); + } + + public static Object invoke(Object target, String name, Object[] args) throws Exception { + Object[] safeArgs = safeArgs(args); + CN1AccessException unsupported = null; + if (unsupported != null) { + throw unsupported; + } + throw unsupportedInstance(target, name, safeArgs); + } + + public static Object getStaticField(Class type, String name) throws Exception { + throw unsupportedStaticField(type, name); + } + + public static Object getField(Object target, String name) throws Exception { + throw unsupportedField(target, name); + } + + public static void setStaticField(Class type, String name, Object value) throws Exception { + throw unsupportedStaticFieldWrite(type, name, value); + } + + public static void setField(Object target, String name, Object value) throws Exception { + throw unsupportedFieldWrite(target, name, value); + } + + private static Object[] safeArgs(Object[] args) { + return args == null ? new Object[0] : args; + } + + private static Object[] adaptArgs(Object[] args, Class[] paramTypes, boolean varArgs) { + if (args == null || args.length == 0) { + return args == null ? new Object[0] : args; + } + Object[] adapted = args.clone(); + if (!varArgs) { + for (int i = 0; i < Math.min(adapted.length, paramTypes.length); i++) { + adapted[i] = adaptValue(adapted[i], paramTypes[i]); + } + return adapted; + } + if (paramTypes.length == 0) { + return adapted; + } + int fixedCount = paramTypes.length - 1; + for (int i = 0; i < Math.min(fixedCount, adapted.length); i++) { + adapted[i] = adaptValue(adapted[i], paramTypes[i]); + } + Class componentType = paramTypes[paramTypes.length - 1].getComponentType(); + for (int i = fixedCount; i < adapted.length; i++) { + adapted[i] = adaptValue(adapted[i], componentType); + } + return adapted; + } + + private static boolean isSamInterface(Class type) { + if (type == com.codename1.util.OnComplete.class) { + return true; + } + if (type == com.codename1.util.SuccessCallback.class) { + return true; + } + if (type == com.codename1.util.FailureCallback.class) { + return true; + } + if (type == com.codename1.ui.events.ActionListener.class) { + return true; + } + if (type == java.lang.Runnable.class) { + return true; + } + if (type == com.codename1.ui.events.DataChangedListener.class) { + return true; + } + if (type == com.codename1.ui.events.SelectionListener.class) { + return true; + } + return false; + } + + private static Object adaptLambdaValue(final bsh.cn1.CN1LambdaSupport.LambdaValue lambda, Class type) { + if (type == com.codename1.util.OnComplete.class) { + return new com.codename1.util.OnComplete() { + public void completed(java.lang.Object arg0) { + try { + lambda.invoke(new Object[]{arg0}); + } catch (bsh.EvalError ex) { + throw new RuntimeException(ex); + } + } + }; + } + if (type == com.codename1.util.SuccessCallback.class) { + return new com.codename1.util.SuccessCallback() { + public void onSucess(java.lang.Object arg0) { + try { + lambda.invoke(new Object[]{arg0}); + } catch (bsh.EvalError ex) { + throw new RuntimeException(ex); + } + } + }; + } + if (type == com.codename1.util.FailureCallback.class) { + return new com.codename1.util.FailureCallback() { + public void onError(java.lang.Object arg0, java.lang.Throwable arg1, int arg2, java.lang.String arg3) { + try { + lambda.invoke(new Object[]{arg0, arg1, arg2, arg3}); + } catch (bsh.EvalError ex) { + throw new RuntimeException(ex); + } + } + }; + } + if (type == com.codename1.ui.events.ActionListener.class) { + return new com.codename1.ui.events.ActionListener() { + public void actionPerformed(com.codename1.ui.events.ActionEvent arg0) { + try { + lambda.invoke(new Object[]{arg0}); + } catch (bsh.EvalError ex) { + throw new RuntimeException(ex); + } + } + }; + } + if (type == java.lang.Runnable.class) { + return new java.lang.Runnable() { + public void run() { + try { + lambda.invoke(new Object[0]); + } catch (bsh.EvalError ex) { + throw new RuntimeException(ex); + } + } + }; + } + if (type == com.codename1.ui.events.DataChangedListener.class) { + return new com.codename1.ui.events.DataChangedListener() { + public void dataChanged(int arg0, int arg1) { + try { + lambda.invoke(new Object[]{arg0, arg1}); + } catch (bsh.EvalError ex) { + throw new RuntimeException(ex); + } + } + }; + } + if (type == com.codename1.ui.events.SelectionListener.class) { + return new com.codename1.ui.events.SelectionListener() { + public void selectionChanged(int arg0, int arg1) { + try { + lambda.invoke(new Object[]{arg0, arg1}); + } catch (bsh.EvalError ex) { + throw new RuntimeException(ex); + } + } + }; + } + return lambda; + } + + private static Object adaptValue(Object value, Class type) { + if (!(value instanceof bsh.cn1.CN1LambdaSupport.LambdaValue)) { + return value; + } + return adaptLambdaValue((bsh.cn1.CN1LambdaSupport.LambdaValue) value, type); + } + + private static boolean matches(Object[] args, Class[] paramTypes, boolean varArgs) { + if (!varArgs) { + if (args.length != paramTypes.length) { + return false; + } + for (int i = 0; i < paramTypes.length; i++) { + if (!matchesType(args[i], paramTypes[i])) { + return false; + } + } + return true; + } + if (paramTypes.length == 0) { + return true; + } + int fixedCount = paramTypes.length - 1; + if (args.length < fixedCount) { + return false; + } + for (int i = 0; i < fixedCount; i++) { + if (!matchesType(args[i], paramTypes[i])) { + return false; + } + } + Class componentType = paramTypes[paramTypes.length - 1].getComponentType(); + for (int i = fixedCount; i < args.length; i++) { + if (!matchesType(args[i], componentType)) { + return false; + } + } + return true; + } + + private static boolean matchesType(Object value, Class type) { + if (type == Object.class) { + return true; + } + if (value == null) { + return !type.isPrimitive(); + } + if (type.isArray()) { + return type.isInstance(value); + } + if ("boolean".equals(type.getName()) || type == Boolean.class) { + return value instanceof Boolean; + } + if ("char".equals(type.getName()) || type == Character.class) { + return value instanceof Character; + } + if ("byte".equals(type.getName()) || type == Byte.class || "short".equals(type.getName()) || type == Short.class + || "int".equals(type.getName()) || type == Integer.class || "long".equals(type.getName()) || type == Long.class + || "float".equals(type.getName()) || type == Float.class || "double".equals(type.getName()) || type == Double.class) { + return value instanceof Number; + } + if (value instanceof bsh.cn1.CN1LambdaSupport.LambdaValue) { + return isSamInterface(type); + } + return type.isInstance(value); + } + + private static CN1AccessException unsupportedConstruct(Class type, Object[] args) { + return new CN1AccessException("Generated constructor dispatch not implemented for " + type.getName() + describeArgs(args)); + } + + private static CN1AccessException unsupportedStatic(Class type, String name, Object[] args) { + return new CN1AccessException("Generated static dispatch not implemented for " + type.getName() + "." + name + describeArgs(args)); + } + + private static CN1AccessException unsupportedInstance(Object target, String name, Object[] args) { + return new CN1AccessException("Generated instance dispatch not implemented for " + target.getClass().getName() + "." + name + describeArgs(args)); + } + + private static CN1AccessException unsupportedStaticField(Class type, String name) { + return new CN1AccessException("Generated static field access not implemented for " + type.getName() + "." + name); + } + + private static CN1AccessException unsupportedField(Object target, String name) { + return new CN1AccessException("Generated field access not implemented for " + target.getClass().getName() + "." + name); + } + + private static CN1AccessException unsupportedStaticFieldWrite(Class type, String name, Object value) { + return new CN1AccessException("Generated static field write not implemented for " + type.getName() + "." + name + " value=" + describeValue(value)); + } + + private static CN1AccessException unsupportedFieldWrite(Object target, String name, Object value) { + return new CN1AccessException("Generated field write not implemented for " + target.getClass().getName() + "." + name + " value=" + describeValue(value)); + } + + private static String describeArgs(Object[] args) { + if (args == null || args.length == 0) { + return "()"; + } + StringBuilder sb = new StringBuilder("("); + for (int i = 0; i < args.length; i++) { + if (i > 0) { + sb.append(", "); + } + sb.append(describeValue(args[i])); + } + sb.append(')'); + return sb.toString(); + } + + private static String describeValue(Object value) { + return value == null ? "null" : value.getClass().getName(); + } +} diff --git a/scripts/cn1playground/common/src/main/java/com/codenameone/playground/CN1Playground.java b/scripts/cn1playground/common/src/main/java/com/codenameone/playground/CN1Playground.java index b6dc09d914..9d2f8f4dff 100644 --- a/scripts/cn1playground/common/src/main/java/com/codenameone/playground/CN1Playground.java +++ b/scripts/cn1playground/common/src/main/java/com/codenameone/playground/CN1Playground.java @@ -13,6 +13,7 @@ import com.codename1.ui.Component; import com.codename1.ui.Container; import com.codename1.ui.Display; +import com.codename1.ui.FontImage; import com.codename1.ui.Form; import com.codename1.ui.Label; import com.codename1.ui.Tabs; @@ -75,6 +76,7 @@ public void runApp() { if (toolbar.getTitleComponent() != null) { toolbar.getTitleComponent().setUIID("PlaygroundTitle"); } + toolbar.addMaterialCommandToRightBar("", FontImage.MATERIAL_DOWNLOAD, e -> downloadProject()); editor = new PlaygroundBrowserEditor(PlaygroundBrowserEditor.Mode.JAVA, currentScript, websiteDarkMode, this::handleSourceChanged); cssEditor = new PlaygroundBrowserEditor(PlaygroundBrowserEditor.Mode.CSS, currentCss, websiteDarkMode, this::handleCssChanged); @@ -155,14 +157,72 @@ private Container createPreviewRoot() { } private Component createMainContent(Tabs tabs, Container previewPanel) { - if (CN.getDisplayWidth() >= 900) { + int width = CN.getDisplayWidth(); + if (width >= 900) { return new SplitPane(SplitPane.HORIZONTAL_SPLIT, tabs, previewPanel, "25%", "50%", "75%"); } + if (CN.isPortrait()) { + Tabs mobileTabs = new Tabs(); + mobileTabs.setUIID("PlaygroundEditorTabs"); + mobileTabs.addTab("Editor", tabs); + mobileTabs.addTab("Preview", previewPanel); + applyWebsiteTheme(mobileTabs, websiteDarkMode); + return mobileTabs; + } Container stacked = new Container(new GridLayout(2, 1)); stacked.addAll(tabs, previewPanel); return stacked; } + private void downloadProject() { + try { + String script = currentScript == null ? "" : currentScript; + String css = currentCss == null ? "" : currentCss; + PlaygroundProjectExporter.ExportedProject project = PlaygroundProjectExporter.build(script, css); + triggerBrowserDownload(project.fileName, project.base64Zip); + } catch (RuntimeException ex) { + Log.e(ex); + } + } + + private void triggerBrowserDownload(String fileName, String base64Zip) { + BrowserComponent js = CN.getSharedJavascriptContext(); + if (js == null) { + Display.getInstance().copyToClipboard(base64Zip); + return; + } + String safeName = escapeJsString(fileName); + String safeData = escapeJsString(base64Zip); + js.execute( + "callback.onSuccess((function(){" + + "try {" + + "var data = '" + safeData + "';" + + "var bytes = atob(data);" + + "var arr = new Uint8Array(bytes.length);" + + "for (var i = 0; i < bytes.length; i++) { arr[i] = bytes.charCodeAt(i); }" + + "var blob = new Blob([arr], {type:'application/zip'});" + + "var url = URL.createObjectURL(blob);" + + "var link = document.createElement('a');" + + "link.href = url;" + + "link.download = '" + safeName + "';" + + "document.body.appendChild(link);" + + "link.click();" + + "document.body.removeChild(link);" + + "setTimeout(function(){ URL.revokeObjectURL(url); }, 2000);" + + "return true;" + + "} catch (e) { return false; }" + + "})())", + res -> {} + ); + } + + private String escapeJsString(String text) { + if (text == null) { + return ""; + } + return text.replace("\\", "\\\\").replace("'", "\\'").replace("\n", "\\n").replace("\r", ""); + } + private void runScript(Form form) { UITimer.timer(1, false, form, () -> executeRunScript(form)); } diff --git a/scripts/cn1playground/common/src/main/java/com/codenameone/playground/PlaygroundProjectExporter.java b/scripts/cn1playground/common/src/main/java/com/codenameone/playground/PlaygroundProjectExporter.java new file mode 100644 index 0000000000..635e8b0afb --- /dev/null +++ b/scripts/cn1playground/common/src/main/java/com/codenameone/playground/PlaygroundProjectExporter.java @@ -0,0 +1,210 @@ +package com.codenameone.playground; + +import com.codename1.util.Base64; + +import java.io.ByteArrayOutputStream; +import java.io.IOException; +import java.util.LinkedHashSet; +import java.util.zip.ZipEntry; +import java.util.zip.ZipOutputStream; +import java.util.regex.Matcher; +import java.util.regex.Pattern; + +final class PlaygroundProjectExporter { + static final class ExportedProject { + final String fileName; + final String base64Zip; + + ExportedProject(String fileName, String base64Zip) { + this.fileName = fileName; + this.base64Zip = base64Zip; + } + } + + private static final String PACKAGE_NAME = "com.cn1playground"; + private static final String CLASS_NAME = "MyApplication"; + private static final Pattern IMPORT_PATTERN = Pattern.compile("(?m)^\\s*import\\s+[^;]+;\\s*$"); + private static final Pattern PACKAGE_PATTERN = Pattern.compile("(?m)^\\s*package\\s+[^;]+;\\s*$"); + + private PlaygroundProjectExporter() { + } + + static ExportedProject build(String script, String customCss) { + String javaSource = buildJavaSource(script == null ? "" : script); + String themeCss = buildThemeCss(customCss == null ? "" : customCss); + byte[] zip = buildZip(javaSource, themeCss); + String base64 = Base64.encodeNoNewline(zip); + return new ExportedProject("cn1-playground-app.zip", base64); + } + + private static byte[] buildZip(String javaSource, String themeCss) { + try { + ByteArrayOutputStream baos = new ByteArrayOutputStream(); + ZipOutputStream zos = new ZipOutputStream(baos); + putEntry(zos, "README.md", "# Playground App\n\nGenerated from CN1 Playground.".getBytes("UTF-8")); + putEntry(zos, "common/src/main/java/com/cn1playground/MyApplication.java", javaSource.getBytes("UTF-8")); + putEntry(zos, "common/src/main/css/theme.css", themeCss.getBytes("UTF-8")); + zos.close(); + return baos.toByteArray(); + } catch (IOException ex) { + throw new IllegalStateException("Unable to generate playground project zip", ex); + } + } + + private static void putEntry(ZipOutputStream zos, String path, byte[] data) throws IOException { + ZipEntry entry = new ZipEntry(path); + zos.putNextEntry(entry); + zos.write(data); + zos.closeEntry(); + } + + private static String buildThemeCss(String customCss) { + String normalized = customCss == null ? "" : customCss.trim(); + if (normalized.length() == 0) { + return ""; + } + return "\n/* Appended from CN1 Playground */\n" + normalized + "\n"; + } + + private static String buildJavaSource(String script) { + if (isLifecycleClass(script)) { + String noPackage = PACKAGE_PATTERN.matcher(script).replaceAll("").trim(); + return "package " + PACKAGE_NAME + ";\n\n" + noPackage + "\n"; + } + + LinkedHashSet imports = collectImports(script); + String body = stripPackageAndImports(script).trim(); + String[] splitBody = splitSnippetBody(body); + String setup = splitBody[0]; + String finalExpression = splitBody[1]; + + StringBuilder out = new StringBuilder(); + out.append("package ").append(PACKAGE_NAME).append(";\n\n"); + out.append("import com.codename1.ui.Component;\n"); + out.append("import com.codename1.ui.Form;\n"); + out.append("import com.codename1.ui.layouts.BorderLayout;\n"); + for (String line : imports) { + if (line.contains("com.codenameone.playground")) { + continue; + } + out.append(line).append("\n"); + } + out.append("\n"); + out.append("public class ").append(CLASS_NAME).append(" {\n"); + out.append(" private Form current;\n\n"); + out.append(" public void init(Object context) {}\n\n"); + out.append(" public void start() {\n"); + out.append(" if (current != null) {\n"); + out.append(" current.show();\n"); + out.append(" return;\n"); + out.append(" }\n"); + out.append(" Form form = new Form(\"Playground App\", new BorderLayout());\n"); + if (setup.length() > 0) { + out.append(indent(setup, " ")).append("\n"); + } + out.append(" form.add(BorderLayout.CENTER, ").append(finalExpression).append(");\n"); + out.append(" current = form;\n"); + out.append(" form.show();\n"); + out.append(" }\n\n"); + out.append(" public void stop() {\n"); + out.append(" current = com.codename1.ui.CN.getCurrentForm();\n"); + out.append(" }\n\n"); + out.append(" public void destroy() {}\n"); + out.append("}\n"); + return out.toString(); + } + + private static boolean isLifecycleClass(String script) { + if (script == null) { + return false; + } + String normalized = script; + return normalized.indexOf(" class ") >= 0 && normalized.indexOf("void start(") >= 0; + } + + private static LinkedHashSet collectImports(String script) { + LinkedHashSet imports = new LinkedHashSet(); + if (script == null || script.length() == 0) { + return imports; + } + Matcher matcher = IMPORT_PATTERN.matcher(script); + while (matcher.find()) { + imports.add(matcher.group().trim()); + } + return imports; + } + + private static String stripPackageAndImports(String script) { + if (script == null) { + return ""; + } + String out = PACKAGE_PATTERN.matcher(script).replaceAll(""); + return IMPORT_PATTERN.matcher(out).replaceAll(""); + } + + private static String[] splitSnippetBody(String body) { + if (body == null || body.length() == 0) { + return new String[]{"", "new com.codename1.ui.Label(\"Hello from Playground\")"}; + } + + String trimmed = body.trim(); + int semicolon = trimmed.lastIndexOf(';'); + if (semicolon < 0 || semicolon == trimmed.length() - 1) { + return new String[]{"", sanitizeFinalExpression(trimmed)}; + } + + String before = trimmed.substring(0, semicolon).trim(); + String lastStatement = trimmed.substring(semicolon + 1).trim(); + if (lastStatement.length() > 0) { + return new String[]{trimmed, "new com.codename1.ui.Label(\"Playground snippet complete\")"}; + } + + int prev = before.lastIndexOf(';'); + String setup = prev >= 0 ? before.substring(0, prev + 1).trim() : ""; + String finalStatement = prev >= 0 ? before.substring(prev + 1).trim() : before; + String finalExpression = sanitizeFinalExpression(finalStatement); + return new String[]{setup, finalExpression}; + } + + private static String sanitizeFinalExpression(String statement) { + String out = statement == null ? "" : statement.trim(); + if (out.startsWith("return ")) { + out = out.substring("return ".length()).trim(); + } + if (out.endsWith(";")) { + out = out.substring(0, out.length() - 1).trim(); + } + if (out.length() == 0) { + return "new com.codename1.ui.Label(\"Hello from Playground\")"; + } + return out; + } + + private static String indent(String text, String indent) { + StringBuilder out = new StringBuilder(); + int start = 0; + while (start <= text.length()) { + int end = text.indexOf('\n', start); + if (end < 0) { + end = text.length(); + } + String line = text.substring(start, end); + if (line.trim().length() == 0) { + if (end >= text.length()) { + break; + } + start = end + 1; + continue; + } + out.append(indent).append(line.trim()); + if (end < text.length()) { + out.append("\n"); + } + if (end >= text.length()) { + break; + } + start = end + 1; + } + return out.toString(); + } +} diff --git a/scripts/cn1playground/tools/generate-cn1-access-registry.sh b/scripts/cn1playground/tools/generate-cn1-access-registry.sh index 49ceba6528..f57da212c1 100755 --- a/scripts/cn1playground/tools/generate-cn1-access-registry.sh +++ b/scripts/cn1playground/tools/generate-cn1-access-registry.sh @@ -8,4 +8,40 @@ BUILD_DIR="$ROOT/target/cn1-access-tool" mkdir -p "$BUILD_DIR" javac -d "$BUILD_DIR" "$SRC" -java -cp "$BUILD_DIR" com.codenameone.playground.tools.GenerateCN1AccessRegistry "$OUT" + +resolve_runtime_classpath() { + if [ -n "${CN1_RUNTIME_CLASSPATH:-}" ]; then + printf "%s" "$CN1_RUNTIME_CLASSPATH" + return + fi + + latest_core="" + if [ -d "$HOME/.m2/repository/com/codenameone/codenameone-core" ]; then + latest_core="$(find "$HOME/.m2/repository/com/codenameone/codenameone-core" -name 'codenameone-core-*.jar' | sort | tail -n 1)" + fi + if [ -n "$latest_core" ]; then + printf "%s" "$latest_core" + return + fi + + updates_core="" + if [ -d "$HOME/.codenameone" ]; then + updates_core="$(find "$HOME/.codenameone" -name 'CodenameOne.jar' | sort | tail -n 1)" + fi + if [ -n "$updates_core" ]; then + printf "%s" "$updates_core" + fi +} + +RUNTIME_CP="$(resolve_runtime_classpath)" +TOOL_CP="$BUILD_DIR" +if [ -z "$RUNTIME_CP" ]; then + echo "ERROR: No CN1 runtime classpath found." >&2 + echo "Set CN1_RUNTIME_CLASSPATH or install codenameone-core/CodenameOne.jar locally before regenerating." >&2 + exit 1 +fi +TOOL_CP="$TOOL_CP:$RUNTIME_CP" + +echo "Using runtime validation classpath: $RUNTIME_CP" >&2 +JAVA_OPTS="-Dcn1playground.validateCn1Runtime=true" +java $JAVA_OPTS -cp "$TOOL_CP" com.codenameone.playground.tools.GenerateCN1AccessRegistry "$OUT" diff --git a/scripts/cn1playground/tools/src/main/java/com/codenameone/playground/tools/GenerateCN1AccessRegistry.java b/scripts/cn1playground/tools/src/main/java/com/codenameone/playground/tools/GenerateCN1AccessRegistry.java index b3a76bdbb5..5bfb0e0673 100644 --- a/scripts/cn1playground/tools/src/main/java/com/codenameone/playground/tools/GenerateCN1AccessRegistry.java +++ b/scripts/cn1playground/tools/src/main/java/com/codenameone/playground/tools/GenerateCN1AccessRegistry.java @@ -52,6 +52,11 @@ public final class GenerateCN1AccessRegistry { "com.codenameone.playground.", "java." }; + private static final String[] RUNTIME_VALIDATED_PACKAGE_PREFIXES = new String[]{ + "java.", + "com.codename1." + }; + private static final boolean VALIDATE_CN1_RUNTIME = Boolean.getBoolean("cn1playground.validateCn1Runtime"); private GenerateCN1AccessRegistry() { } @@ -368,10 +373,10 @@ private static ApiClass buildApiClass(SourceClass sourceClass, Set known } private static ApiClass validateAgainstRuntime(ApiClass apiClass) { - if (apiClass == null || !apiClass.packageName.startsWith("java.")) { + if (apiClass == null || !shouldValidateAgainstRuntime(apiClass.packageName)) { return apiClass; } - if (!isSupportedJavaClass(apiClass.qualifiedName)) { + if (apiClass.packageName.startsWith("java.") && !isSupportedJavaClass(apiClass.qualifiedName)) { return null; } Class runtimeClass = loadRuntimeClass(apiClass.qualifiedName); @@ -428,9 +433,12 @@ private static List validateInheritedAgainstRuntime(List api } private static ApiClass validateMethodsAgainstRuntime(ApiClass apiClass) { + if (apiClass == null || !shouldValidateAgainstRuntime(apiClass.packageName)) { + return apiClass; + } Class runtimeClass = loadRuntimeClass(apiClass.qualifiedName); if (runtimeClass == null) { - return apiClass; + return null; } List staticMethods = new ArrayList(); @@ -468,6 +476,21 @@ private static List resolveInheritedMembers(List apiClasses) return new ArrayList(resolved.values()); } + private static boolean shouldValidateAgainstRuntime(String packageName) { + if (packageName == null) { + return false; + } + for (String prefix : RUNTIME_VALIDATED_PACKAGE_PREFIXES) { + if ("com.codename1.".equals(prefix) && !VALIDATE_CN1_RUNTIME) { + continue; + } + if (packageName.startsWith(prefix)) { + return true; + } + } + return false; + } + private static ApiClass resolveInheritedMembers(ApiClass apiClass, Map classIndex, Map resolved, Set visiting, Map> typeHierarchy) { ApiClass existing = resolved.get(apiClass.qualifiedName);