Rearrange where the java entries are displayed

This commit is contained in:
oakes
2014-03-31 14:26:58 -04:00
parent baeaca0af6
commit fbadf6cb6d
2 changed files with 71 additions and 76 deletions

View File

@@ -1,70 +1,70 @@
{"Align" {"align" :static-fields} {"Align" {"align" :static-fields}
"Animation" {"play-mode" :static-fields "Animation" {"play-mode" :static-fields
"animation!" :methods} "animation" :methods}
"AnimationController" {"animation-controller!" :methods} "AnimationController" {"animation-controller" :methods}
"Application" {"app!" :methods} "Application" {"app!" :methods}
"Array" {"gdx-array!" :methods} "Array" {"gdx-array" :methods}
"ArrayMap" {"gdx-array-map!" :methods} "ArrayMap" {"gdx-array-map" :methods}
"AssetManager" {"asset-manager" :methods} "AssetManager" {"asset-manager" :methods}
"AtlasTmxMapLoader" {"loader :atlas-tmx-map" :methods} "AtlasTmxMapLoader" {"loader :atlas-tmx-map" :methods}
"Audio" {"audio!" :methods} "Audio" {"audio!" :methods}
"Bezier" {"bezier!" :methods} "Bezier" {"bezier" :methods}
"BitmapFont" {"bitmap-font" :constructors} "BitmapFont" {"bitmap-font" :constructors}
"BitmapFontLoader" {"loader :bitmap-font" :methods} "BitmapFontLoader" {"loader :bitmap-font" :methods}
"BlendingAttribute" {"attribute :blending" :constructors "BlendingAttribute" {"attribute :blending" :constructors
"attribute-type :blending" :static-fields "attribute-type :blending" :static-fields
"attribute! :blending" :static-methods} "attribute! :blending" :static-methods}
"Body" {"body!" :methods} "Body" {"create-body!" :methods}
"BodyDef" {"body-def" :fields} "BodyDef" {"body-def" :fields}
"Bresenham2" {"bresenham-2!" :methods} "Bresenham2" {"bresenham-2" :methods}
"BSpline" {"b-spline!" :methods} "BSpline" {"b-spline" :methods}
"Button.ButtonStyle" {"style :button" :constructors} "Button.ButtonStyle" {"style :button" :constructors}
"CatmullRomSpline" {"catmull-rom-spline!" :methods} "CatmullRomSpline" {"catmull-rom-spline" :methods}
"Circle" {"circle!" :methods} "Circle" {"circle" :methods}
"Color" {"color" :static-fields} "Color" {"color" :static-fields}
"ColorAttribute" {"attribute :color" :constructors "ColorAttribute" {"attribute :color" :constructors
"attribute-type :color" :static-fields "attribute-type :color" :static-fields
"attribute! :color" :static-methods} "attribute! :color" :static-methods}
"Contact" {"contact!" :methods} "Contact" {"contact!" :methods}
"ConvexHull" {"convex-hull!" :methods} "ConvexHull" {"convex-hull" :methods}
"ChainShape" {"chain-shape!" :methods} "ChainShape" {"chain-shape" :methods}
"CheckBox" {"check-box!" :methods} "CheckBox" {"check-box" :methods}
"CheckBox.CheckBoxStyle" {"style :check-box" :constructors} "CheckBox.CheckBoxStyle" {"style :check-box" :constructors}
"CircleShape" {"circle-shape!" :methods} "CircleShape" {"circle-shape" :methods}
"CubemapAttribute" {"attribute :cubemap" :constructors "CubemapAttribute" {"attribute :cubemap" :constructors
"attribute-type :cubemap" :static-fields "attribute-type :cubemap" :static-fields
"attribute! :cubemap" :static-methods} "attribute! :cubemap" :static-methods}
"DelaunayTriangulator" {"delauny-triangulator!" :methods} "DelaunayTriangulator" {"delauny-triangulator" :methods}
"DepthTestAttribute" {"attribute :depth-test" :constructors "DepthTestAttribute" {"attribute :depth-test" :constructors
"attribute-type :depth-test" :static-fields "attribute-type :depth-test" :static-fields
"attribute! :depth-test" :static-methods} "attribute! :depth-test" :static-methods}
"Dialog" {"dialog!" :methods} "Dialog" {"dialog" :methods}
"DistanceJointDef" {"joint-def :distance" :fields} "DistanceJointDef" {"joint-def :distance" :fields}
"EarClippingTriangulator" {"ear-clipping-triangulator!" :methods} "EarClippingTriangulator" {"ear-clipping-triangulator" :methods}
"EdgeShape" {"edge-shape!" :methods} "EdgeShape" {"edge-shape" :methods}
"Ellipse" {"ellipse!" :methods} "Ellipse" {"ellipse" :methods}
"Environment" {"environment!" :methods} "Environment" {"environment" :methods}
"Files" {"files!" :methods} "Files" {"files!" :methods}
"Fixture" {"fixture!" :methods} "Fixture" {"fixture!" :methods}
"FixtureDef" {"fixture-def" :fields} "FixtureDef" {"fixture-def" :fields}
"FloatAttribute" {"attribute :float" :constructors "FloatAttribute" {"attribute :float" :constructors
"attribute-type :float" :static-fields "attribute-type :float" :static-fields
"attribute! :float" :static-methods} "attribute! :float" :static-methods}
"FloatCounter" {"float-counter!" :methods} "FloatCounter" {"float-counter" :methods}
"FrictionJointDef" {"joint-def :friction" :fields} "FrictionJointDef" {"joint-def :friction" :fields}
"Frustum" {"frustum!" :methods} "Frustum" {"frustum" :methods}
"GearJointDef" {"joint-def :gear" :fields} "GearJointDef" {"joint-def :gear" :fields}
"GeometryUtils" {"geometry!" :static-methods} "GeometryUtils" {"geometry!" :static-methods}
"Graphics" {"graphics!" :methods} "Graphics" {"graphics!" :methods}
"GridPoint2" {"grid-point-2!" :methods} "GridPoint2" {"grid-point-2" :methods}
"GridPoint3" {"grid-point-3!" :methods} "GridPoint3" {"grid-point-3" :methods}
"GL20" {"gl!" :methods} "GL20" {"gl!" :methods}
"HexagonalTiledMapRenderer" {"hexagonal-tiled-map!" :methods} "HexagonalTiledMapRenderer" {"hexagonal-tiled-map" :methods}
"HorizontalGroup" {"horizontal!" :methods} "HorizontalGroup" {"horizontal" :methods}
"Image" {"image!" :methods} "Image" {"image" :methods}
"ImageButton" {"image-button!" :methods} "ImageButton" {"image-button" :methods}
"ImageButton.ImageButtonStyle" {"style :image-button" :constructors} "ImageButton.ImageButtonStyle" {"style :image-button" :constructors}
"ImageTextButton" {"image-text-button!" :methods} "ImageTextButton" {"image-text-button" :methods}
"ImageTextButton.ImageTextButtonStyle" {"style :image-text-button" :constructors} "ImageTextButton.ImageTextButtonStyle" {"style :image-text-button" :constructors}
"Input" {"input!" :methods} "Input" {"input!" :methods}
"Input.Keys" {"key-word" :static-fields} "Input.Keys" {"key-word" :static-fields}
@@ -73,80 +73,80 @@
"IntAttribute" {"attribute :int" :constructors "IntAttribute" {"attribute :int" :constructors
"attribute-type :int" :static-fields "attribute-type :int" :static-fields
"attribute! :int" :static-methods} "attribute! :int" :static-methods}
"IsometricStaggeredTiledMapRenderer" {"isometric-staggered-tiled-map!" :methods} "IsometricStaggeredTiledMapRenderer" {"isometric-staggered-tiled-map" :methods}
"IsometricTiledMapRenderer" {"isometric-tiled-map!" :methods} "IsometricTiledMapRenderer" {"isometric-tiled-map" :methods}
"Joint" {"joint!" :methods} "Joint" {"create-joint!" :methods}
"Label" {"label!" :methods} "Label" {"label" :methods}
"Material" {"material!" :methods} "Material" {"material" :methods}
"MathUtils" {"math!" :static-methods} "MathUtils" {"math!" :static-methods}
"Matrix3" {"matrix-3!" :methods} "Matrix3" {"matrix-3" :methods}
"Matrix4" {"matrix-4!" :methods} "Matrix4" {"matrix-4" :methods}
"ModelBatch" {"model-batch!" :methods} "ModelBatch" {"model-batch" :methods}
"ModelBuilder" {"model-builder!" :methods} "ModelBuilder" {"model-builder" :methods}
"ModelInstance" {"model!" :methods} "ModelInstance" {"model" :methods}
"ModelLoader" {"loader :model" :methods} "ModelLoader" {"loader :model" :methods}
"MouseJointDef" {"joint-def :mouse" :fields} "MouseJointDef" {"joint-def :mouse" :fields}
"MusicLoader" {"loader :music" :methods} "MusicLoader" {"loader :music" :methods}
"Net" {"net!" :methods} "Net" {"net!" :methods}
"NinePatch" {"nine-patch!" :methods} "NinePatch" {"nine-patch" :methods}
"NinePatchDrawable" {"drawable :nine-patch" :constructors} "NinePatchDrawable" {"drawable :nine-patch" :constructors}
"OrthogonalTiledMapRenderer" {"orthogonal-tiled-map!" :methods} "OrthogonalTiledMapRenderer" {"orthogonal-tiled-map" :methods}
"OrthographicCamera" {"orthographic!" :methods} "OrthographicCamera" {"orthographic" :methods}
"ParticleEffect" {"particle-effect!" :methods} "ParticleEffect" {"particle-effect" :methods}
"PerspectiveCamera" {"perspective!" :methods} "PerspectiveCamera" {"perspective" :methods}
"PixmapLoader" {"loader :pixmap" :methods} "PixmapLoader" {"loader :pixmap" :methods}
"Plane" {"plane!" :methods} "Plane" {"plane" :methods}
"Plane.PlaneSide" {"plane-side" :static-fields} "Plane.PlaneSide" {"plane-side" :static-fields}
"Polygon" {"polygon!" :methods} "Polygon" {"polygon" :methods}
"PolygonShape" {"polygon-shape!" :methods} "PolygonShape" {"polygon-shape" :methods}
"Polyline" {"polyline!" :methods} "Polyline" {"polyline" :methods}
"PrismaticJointDef" {"joint-def :prismatic" :fields} "PrismaticJointDef" {"joint-def :prismatic" :fields}
"ProgressBar.ProgressBarStyle" {"style :progress-bar" :constructors} "ProgressBar.ProgressBarStyle" {"style :progress-bar" :constructors}
"PulleyJointDef" {"joint-def :pulley" :fields} "PulleyJointDef" {"joint-def :pulley" :fields}
"Quaternion" {"quaternion!" :methods} "Quaternion" {"quaternion" :methods}
"Rectangle" {"rectangle!" :methods} "Rectangle" {"rectangle" :methods}
"RevoluteJointDef" {"joint-def :revolute" :fields} "RevoluteJointDef" {"joint-def :revolute" :fields}
"RopeJointDef" {"joint-def :rope" :fields} "RopeJointDef" {"joint-def :rope" :fields}
"Scaling" {"scaling" :static-fields} "Scaling" {"scaling" :static-fields}
"ScrollPane" {"scroll-pane!" :methods} "ScrollPane" {"scroll-pane" :methods}
"ScrollPane.ScrollPaneStyle" {"style :scroll-pane" :constructors} "ScrollPane.ScrollPaneStyle" {"style :scroll-pane" :constructors}
"SelectBox" {"select-box!" :methods} "SelectBox" {"select-box" :methods}
"SelectBox.SelectBoxStyle" {"style :select-box" :constructors} "SelectBox.SelectBoxStyle" {"style :select-box" :constructors}
"Skin" {"skin" :methods} "Skin" {"skin" :methods}
"SkinLoader" {"loader :skin" :methods} "SkinLoader" {"loader :skin" :methods}
"Slider" {"slider!" :methods} "Slider" {"slider" :methods}
"Sound" {"sound!" :methods} "Sound" {"sound!" :methods}
"SoundLoader" {"loader :sound" :methods} "SoundLoader" {"loader :sound" :methods}
"SplitPane.SplitPaneStyle" {"style :split-pane" :constructors} "SplitPane.SplitPaneStyle" {"style :split-pane" :constructors}
"SpriteDrawable" {"drawable :sprite" :constructors} "SpriteDrawable" {"drawable :sprite" :constructors}
"Stack" {"stack!" :methods} "Stack" {"stack" :methods}
"Stage" {"stage!" :methods} "Stage" {"stage" :methods}
"Table" {"table!" :methods} "Table" {"table" :methods}
"TextureAtlas" {"texture-atlas!" :methods} "TextureAtlas" {"texture-atlas" :methods}
"TextureAttribute" {"attribute :texture" :constructors "TextureAttribute" {"attribute :texture" :constructors
"attribute-type :texture" :static-fields "attribute-type :texture" :static-fields
"attribute! :texture" :static-methods} "attribute! :texture" :static-methods}
"TextButton" {"text-button!" :methods} "TextButton" {"text-button" :methods}
"TextButton.TextButtonStyle" {"style :text-button" :constructors} "TextButton.TextButtonStyle" {"style :text-button" :constructors}
"TextField" {"text-field!" :methods} "TextField" {"text-field" :methods}
"TextField.TextFieldStyle" {"style :text-field" :constructors} "TextField.TextFieldStyle" {"style :text-field" :constructors}
"TextureLoader" {"loader :texture" :methods} "TextureLoader" {"loader :texture" :methods}
"TextureRegion" {"texture!" :methods} "TextureRegion" {"texture" :methods}
"TextureRegionDrawable" {"drawable :texture-region" :constructors} "TextureRegionDrawable" {"drawable :texture-region" :constructors}
"Tree" {"tree!" :methods} "Tree" {"tree" :methods}
"TmxMapLoader" {"loader :tmx-map" :methods} "TmxMapLoader" {"loader :tmx-map" :methods}
"Touchpad.TouchpadStyle" {"style :touchpad" :constructors} "Touchpad.TouchpadStyle" {"style :touchpad" :constructors}
"TiledMap" {"tiled-map!" :methods} "TiledMap" {"tiled-map" :methods}
"TiledMapTileLayer" {"tiled-map-layer!" :methods} "TiledMapTileLayer" {"tiled-map-layer" :methods}
"TiledMapTileLayer.Cell" {"tiled-map-cell!" :methods} "TiledMapTileLayer.Cell" {"tiled-map-cell" :methods}
"Tree.TreeStyle" {"style :tree" :constructors} "Tree.TreeStyle" {"style :tree" :constructors}
"Vector2" {"vector-2!" :methods} "Vector2" {"vector-2" :methods}
"Vector3" {"vector-3!" :methods} "Vector3" {"vector-3" :methods}
"VertexAttributes.Usage" {"usage" :static-fields} "VertexAttributes.Usage" {"usage" :static-fields}
"VerticalGroup" {"vertical!" :methods} "VerticalGroup" {"vertical" :methods}
"WeldJointDef" {"joint-def :weld" :fields} "WeldJointDef" {"joint-def :weld" :fields}
"WheelJointDef" {"joint-def :wheel" :fields} "WheelJointDef" {"joint-def :wheel" :fields}
"Window" {"window!" :methods} "Window" {"window" :methods}
"Window.WindowStyle" {"style :window" :constructors} "Window.WindowStyle" {"style :window" :constructors}
"WindowedMean" {"windowed-mean!" :methods} "WindowedMean" {"windowed-mean" :methods}
"World" {"box-2d!" :methods}} "World" {"box-2d" :methods}}

View File

@@ -71,11 +71,6 @@
(map #(vector (first %) (parse-class-entry c (second %)))) (map #(vector (first %) (parse-class-entry c (second %))))
(into {}))) (into {})))
(defn match?
[doc-name sym-name]
(or (= doc-name sym-name)
(.startsWith doc-name (str sym-name " "))))
(defn process-group (defn process-group
[{:keys [type raw] :as group} doc-map] [{:keys [type raw] :as group} doc-map]
(let [form (read-string raw) (let [form (read-string raw)
@@ -85,7 +80,7 @@
(assoc group (assoc group
:name (str n) :name (str n)
:java (->> doc-map :java (->> doc-map
(filter #(match? (first %) (str n))) (filter #(.startsWith (first %) (str n)))
(sort-by first) (sort-by first)
vec))))) vec)))))