|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectuchicago.src.sim.parameter.rpl.JavaClass
public class JavaClass
Represents a Java class when references in the RPLCompiler.
| Constructor Summary | |
|---|---|
JavaClass(java.lang.Class clazz)
Creates a JavaClass for the specified class. |
|
| Method Summary | |
|---|---|
java.lang.String |
getShortName()
Gets the short unqualified name of the class represented by this JavaClass. |
java.lang.Class |
getStaticFieldType(java.lang.String fieldName)
Returns the type of the named static field. |
java.lang.Object |
getStaticFieldValue(java.lang.String fieldName)
Returns the value of the named static field. |
boolean |
hasStaticField(java.lang.String fieldName)
Returns true if the specified fieldName is a static field in the class represented by this JavaClass. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JavaClass(java.lang.Class clazz)
clazz - the Class to create this JavaClass for.| Method Detail |
|---|
public java.lang.String getShortName()
public boolean hasStaticField(java.lang.String fieldName)
fieldName - the name of the fieldpublic java.lang.Class getStaticFieldType(java.lang.String fieldName)
fieldName - the name of the field
java.util.NoSuchElementException - if the named field is not found.public java.lang.Object getStaticFieldValue(java.lang.String fieldName)
fieldName - the name of the field
java.util.NoSuchElementException - if the named field is not found.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||