Giter VIP home page Giter VIP logo

classprinter's Introduction

ClassPrinter

General

ClassPrinter is a Java Utility that lets you print fields, constructors, methods and inner classes of a class using reflection.

How to use?

public static void printClass(Class<?> clazz, boolean comment)

Example

Code

printClass(java.awt.Point, true);

Output

/**
 * java.awt.Point
*/

package java.awt;

public class Point extends Point2D implements Serializable {

	/**
	 * 3 Fields
	*/
	public int x = 0;
	public int y = 0;
	private static final long serialVersionUID = -5276940640259749850;

	/**
	 * 3 Constructors
	*/
	public Point(int arg0, int arg1);
	public Point(Point arg0);
	public Point();

	/**
	 * 10 Methods
	*/
	public boolean equals(Object arg0);
	public String toString();
	@Transient
	public Point getLocation();
	public double getX();
	public double getY();
	public void setLocation(Point arg0);
	public void setLocation(int arg0, int arg1);
	public void setLocation(double arg0, double arg1);
	public void move(int arg0, int arg1);
	public void translate(int arg0, int arg1);

	/**
	 * 0 Inner Classes
	*/
}

classprinter's People

Contributors

j-christl avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.