Java Doc for IClass.java in  » Scripting » jacl » org » codehaus » janino » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Scripting » jacl » org.codehaus.janino 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.codehaus.janino.IClass

All known Subclasses:   org.codehaus.janino.ClassFileIClass,  org.codehaus.janino.ReflectionIClass,
IClass
abstract public class IClass (Code)
A simplified equivalent to "java.lang.reflect".

Inner Class :public interface IMember
Inner Class :abstract public class IInvocable implements IMember
Inner Class :abstract public class IConstructor extends IInvocable
Inner Class :abstract public class IMethod extends IInvocable
Inner Class :abstract public class IField implements IMember

Field Summary
final public static  IClassBOOLEAN
    
final public static  IClassBYTE
    
final public static  IClassCHAR
    
final public static  IClassDOUBLE
    
final public static  IClassFLOAT
    
final public static  IClassINT
    
final public static  IClassLONG
    
final public static  IMethod[]NO_IMETHODS
    
final public static  IClassSHORT
    
final public static  IClassVOID
    
protected  IField[]declaredIFields
    
 MapdeclaredIMethodCache
    
protected  IMethod[]declaredIMethods
    


Method Summary
 IClass[]findMemberType(String optionalName)
     If optionalName is null, find all IClass es visible in the scope of the current class.

If optionalName is not null, find the member IClass es that has the given name.

abstract public  AccessgetAccess()
    
public  IClassgetArrayIClass(int n, IClass objectType)
     Get an IClass that represents an n-dimensional array of this type.
public  IClassgetArrayIClass(IClass objectType)
     Get an IClass that represents an array of this type.
final public  IClassgetComponentType()
     Returns the component type of the array.
Returns "null" for classes, interfaces, primitive types and "void".
abstract protected  IClassgetComponentType2()
    
final public  IClass[]getDeclaredIClasses()
     Returns the classes and interfaces declared as members of the class (but not inherited classes and interfaces).
Returns an empty array for an array, primitive type or "void".
abstract protected  IClass[]getDeclaredIClasses2()
    
final public  IConstructor[]getDeclaredIConstructors()
     Returns all the constructors declared by the class represented by the type.
abstract protected  IConstructor[]getDeclaredIConstructors2()
    
final public  IField[]getDeclaredIFields()
     Returns the fields of a class or interface (but not inherited fields).
Returns an empty array for an array, primitive type or "void".
abstract protected  IField[]getDeclaredIFields2()
    
final public  IMethod[]getDeclaredIMethods()
     Returns the methods of the class or interface (but not inherited methods).
Returns an empty array for an array, primitive type or "void".
final public  IMethod[]getDeclaredIMethods(String methodName)
     Returns all methods with the given name declared in the class or interface (but not inherited methods).
Returns an empty array if no methods with that name are declared.
abstract protected  IMethod[]getDeclaredIMethods2()
    
final public  IClassgetDeclaringIClass()
     If this class is a member class, return the declaring class, otherwise return null.
abstract protected  IClassgetDeclaringIClass2()
    
final public  StringgetDescriptor()
     Returns the field descriptor for the type as defined by JVMS 4.3.2.
abstract protected  StringgetDescriptor2()
    
public static  String[]getDescriptors(IClass[] iClasses)
     Convenience method that determines the field descriptors of an array of IClass es.
final public  IClass[]getInterfaces()
     Returns the interfaces implemented by the class.
Returns the superinterfaces of the interface.
Returns "Cloneable" and "Serializable" for arrays.
Returns an empty array for primitive types and "void".
abstract protected  IClass[]getInterfaces2()
    
final public  IClassgetOuterIClass()
    
abstract protected  IClassgetOuterIClass2()
    
final public  IClassgetSuperclass()
     Returns the superclass of the class.
Returns "null" for class "Object", interfaces, arrays, primitive types and "void".
abstract protected  IClassgetSuperclass2()
    
public  IField[]getSyntheticIFields()
     Returns the synthetic fields of an anonymous or local class, in the order in which they are passed to all constructors.
public  booleanimplementsInterface(IClass that)
     If this represents a class: Return true if this class directly or indirectly implements that interface.
abstract public  booleanisAbstract()
    
abstract public  booleanisArray()
     Returns "true" if this type represents an array.
public  booleanisAssignableFrom(IClass that)
     Determine if "this" is assignable from "that".
abstract public  booleanisFinal()
    
abstract public  booleanisInterface()
     Returns "true" if this type represents an interface.
abstract public  booleanisPrimitive()
     Returns "true" if this type represents a primitive type or "void".
abstract public  booleanisPrimitiveNumeric()
     Returns "true" if this type represents "byte", "short", "int", "long", "char", "float" or "double".
public  booleanisSubclassOf(IClass that)
     Returns true if this class is an immediate or non-immediate subclass of that class.
public  StringtoString()
     Returns a string representation for this object.

Field Detail
BOOLEAN
final public static IClass BOOLEAN(Code)



BYTE
final public static IClass BYTE(Code)



CHAR
final public static IClass CHAR(Code)



DOUBLE
final public static IClass DOUBLE(Code)



FLOAT
final public static IClass FLOAT(Code)



INT
final public static IClass INT(Code)



LONG
final public static IClass LONG(Code)



NO_IMETHODS
final public static IMethod[] NO_IMETHODS(Code)



SHORT
final public static IClass SHORT(Code)



VOID
final public static IClass VOID(Code)



declaredIFields
protected IField[] declaredIFields(Code)



declaredIMethodCache
Map declaredIMethodCache(Code)



declaredIMethods
protected IMethod[] declaredIMethods(Code)





Method Detail
findMemberType
IClass[] findMemberType(String optionalName) throws CompileException(Code)
If optionalName is null, find all IClass es visible in the scope of the current class.

If optionalName is not null, find the member IClass es that has the given name. If the name is ambiguous (i.e. if more than one superclass, interface of enclosing type declares a type with that name), then the size of the returned array is greater than one.

Examines superclasses, interfaces and enclosing type declarations. an array of IClasses in unspecified order, possibly of length zero




getAccess
abstract public Access getAccess()(Code)



getArrayIClass
public IClass getArrayIClass(int n, IClass objectType)(Code)
Get an IClass that represents an n-dimensional array of this type.
Parameters:
  n - dimension count
Parameters:
  objectType - Required because the superclass of an array class is Object by definition



getArrayIClass
public IClass getArrayIClass(IClass objectType)(Code)
Get an IClass that represents an array of this type.
Parameters:
  objectType - Required because the superclass of an array class is Object by definition



getComponentType
final public IClass getComponentType()(Code)
Returns the component type of the array.
Returns "null" for classes, interfaces, primitive types and "void".



getComponentType2
abstract protected IClass getComponentType2()(Code)



getDeclaredIClasses
final public IClass[] getDeclaredIClasses() throws CompileException(Code)
Returns the classes and interfaces declared as members of the class (but not inherited classes and interfaces).
Returns an empty array for an array, primitive type or "void".



getDeclaredIClasses2
abstract protected IClass[] getDeclaredIClasses2() throws CompileException(Code)



getDeclaredIConstructors
final public IConstructor[] getDeclaredIConstructors()(Code)
Returns all the constructors declared by the class represented by the type. If the class has a default constructor, it is included.

Returns an array with zero elements for an interface, array, primitive type or "void".




getDeclaredIConstructors2
abstract protected IConstructor[] getDeclaredIConstructors2()(Code)



getDeclaredIFields
final public IField[] getDeclaredIFields()(Code)
Returns the fields of a class or interface (but not inherited fields).
Returns an empty array for an array, primitive type or "void".



getDeclaredIFields2
abstract protected IField[] getDeclaredIFields2()(Code)



getDeclaredIMethods
final public IMethod[] getDeclaredIMethods()(Code)
Returns the methods of the class or interface (but not inherited methods).
Returns an empty array for an array, primitive type or "void".



getDeclaredIMethods
final public IMethod[] getDeclaredIMethods(String methodName)(Code)
Returns all methods with the given name declared in the class or interface (but not inherited methods).
Returns an empty array if no methods with that name are declared. an array of IMethods that must not be modified



getDeclaredIMethods2
abstract protected IMethod[] getDeclaredIMethods2()(Code)



getDeclaringIClass
final public IClass getDeclaringIClass() throws CompileException(Code)
If this class is a member class, return the declaring class, otherwise return null.



getDeclaringIClass2
abstract protected IClass getDeclaringIClass2() throws CompileException(Code)



getDescriptor
final public String getDescriptor()(Code)
Returns the field descriptor for the type as defined by JVMS 4.3.2.



getDescriptor2
abstract protected String getDescriptor2()(Code)



getDescriptors
public static String[] getDescriptors(IClass[] iClasses)(Code)
Convenience method that determines the field descriptors of an array of IClass es.
See Also:   IClass.getDescriptor()



getInterfaces
final public IClass[] getInterfaces() throws CompileException(Code)
Returns the interfaces implemented by the class.
Returns the superinterfaces of the interface.
Returns "Cloneable" and "Serializable" for arrays.
Returns an empty array for primitive types and "void".



getInterfaces2
abstract protected IClass[] getInterfaces2() throws CompileException(Code)



getOuterIClass
final public IClass getOuterIClass() throws CompileException(Code)
The following types have an "outer class":
  • Anonymous classes declared in a non-static method of a class
  • Local classes declared in a non-static method of a class
  • Non-static member classes



getOuterIClass2
abstract protected IClass getOuterIClass2() throws CompileException(Code)



getSuperclass
final public IClass getSuperclass() throws CompileException(Code)
Returns the superclass of the class.
Returns "null" for class "Object", interfaces, arrays, primitive types and "void".



getSuperclass2
abstract protected IClass getSuperclass2() throws CompileException(Code)



getSyntheticIFields
public IField[] getSyntheticIFields()(Code)
Returns the synthetic fields of an anonymous or local class, in the order in which they are passed to all constructors.



implementsInterface
public boolean implementsInterface(IClass that) throws CompileException(Code)
If this represents a class: Return true if this class directly or indirectly implements that interface.

If this represents an interface: Return true if this interface directly or indirectly extends that interface.




isAbstract
abstract public boolean isAbstract()(Code)
Whether the class may be instantiated (JVMS 4.1 access_flags) true if instantiation is prohibited



isArray
abstract public boolean isArray()(Code)
Returns "true" if this type represents an array.



isAssignableFrom
public boolean isAssignableFrom(IClass that) throws CompileException(Code)
Determine if "this" is assignable from "that". This is true if "this" is identical with "that" (JLS2 5.1.1), or if "that" is widening-primitive-convertible to "this" (JLS2 5.1.2), or if "that" is widening-reference-convertible to "this" (JLS2 5.1.4).



isFinal
abstract public boolean isFinal()(Code)
Whether subclassing is allowed (JVMS 4.1 access_flags) true if subclassing is prohibited



isInterface
abstract public boolean isInterface()(Code)
Returns "true" if this type represents an interface.



isPrimitive
abstract public boolean isPrimitive()(Code)
Returns "true" if this type represents a primitive type or "void".



isPrimitiveNumeric
abstract public boolean isPrimitiveNumeric()(Code)
Returns "true" if this type represents "byte", "short", "int", "long", "char", "float" or "double".



isSubclassOf
public boolean isSubclassOf(IClass that) throws CompileException(Code)
Returns true if this class is an immediate or non-immediate subclass of that class.



toString
public String toString()(Code)
Returns a string representation for this object.



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.