Giter Club home page Giter Club logo

the-attic's Introduction

The-Attic

This is where I put random/unrelated, but useful stuff.

ClassDescriber

A Java class intended to be used ONLY FOR DEBUGGING. This class has methods to obtain information about constructors, methods and fields an object has.

Usage

Use ClassDescriber.describe(Object obj) for a summary about the object. You can also use describeConstructors(Object), describeMethods(Object), and describeVars(Object) for summarizing constructors, methods, and fields the object has. describeVars also attempts to get the values of public variables of the object, which is especially handy if you are debugging something you can write a patch to, but cannot set up proper debugging tools.

Example

ClassDescriber.describe((byte)42) returns:

Class: java.lang.Byte

Constructors: java.lang.Byte(byte arg0) java.lang.Byte(java.lang.String arg0)

Methods: equals(java.lang.Object arg0) toString(void) toString(byte arg0) hashCode(byte arg0) hashCode(void) compareTo(java.lang.Byte arg0) compareTo(java.lang.Object arg0) byteValue(void) shortValue(void) intValue(void) longValue(void) floatValue(void) doubleValue(void) valueOf(java.lang.String arg0, int arg1) valueOf(java.lang.String arg0) valueOf(byte arg0) decode(java.lang.String arg0) compare(byte arg0, byte arg1) toUnsignedInt(byte arg0) toUnsignedLong(byte arg0) parseByte(java.lang.String arg0) parseByte(java.lang.String arg0, int arg1) compareUnsigned(byte arg0, byte arg1) wait(long arg0) wait(long arg0, int arg1) wait(void) getClass(void) notify(void) notifyAll(void)

Fields: public static final byte MIN_VALUE = -128 public static final byte MAX_VALUE = 127 public static final java.lang.Class TYPE = byte private final byte value public static final int SIZE = 8 public static final int BYTES = 1 private static final long serialVersionUID

the-attic's People

Contributors

pranavgade20 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.