|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.futureshocked.classloader.MethodDescriptionUtil
public class MethodDescriptionUtil
Small utility class that will parse a code style method declaration and
populate instance variables with the class name, method, and description.
This is useful for generating the appropriate description, without having to
know the correct format.
Field Summary | |
---|---|
private java.lang.String |
description
The method description. |
private java.lang.String |
fullClassName
The full class name, including pacakge. |
private java.lang.String |
method
The name of the method. |
private static java.util.HashMap |
types
HashMap that maps code style tpyes to description types |
Constructor Summary | |
---|---|
MethodDescriptionUtil(java.lang.String codeStyleMethod)
Constructor that populates the instance variables based on the code style method declaration given in the constructor. |
Method Summary | |
---|---|
java.lang.String |
getClassName()
|
java.lang.String |
getDescription()
|
java.lang.String |
getMethodName()
|
java.lang.String |
getTypeDescriptor(java.lang.String type)
Given a code style type, returns a description style type. |
void |
parseCodeStyleMethod(java.lang.String code)
Parses a code style method declaration, and populates the instance variables. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static java.util.HashMap types
private java.lang.String fullClassName
private java.lang.String method
private java.lang.String description
Constructor Detail |
---|
public MethodDescriptionUtil(java.lang.String codeStyleMethod)
codeStyleMethod
- A method declarationMethod Detail |
---|
public void parseCodeStyleMethod(java.lang.String code)
code
- A method declarationpublic java.lang.String getTypeDescriptor(java.lang.String type)
type
- A type as would be declared in Java source code - ie: int,
char, float, java.lang.String, etc.
public java.lang.String getClassName()
public java.lang.String getMethodName()
public java.lang.String getDescription()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |