Package com.github.tadukoo.java
Class JavaClass
java.lang.Object
com.github.tadukoo.java.JavaClass
- Direct Known Subclasses:
EditableJavaClass,UneditableJavaClass
Java Class is used to represent a class in Java.
- Since:
- Alpha v.0.2 (as old version that is now more like UneditableJavaClass), Alpha v.0.4 (as newer version)
- Version:
- Alpha v.0.4
- Author:
- Logan Ferree (Tadukoo)
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected List<JavaAnnotation>Theannotationson the classprotected StringThe name of the classThefieldson the classThe classes imported by the classInnerclassesinside the classprotected booleanWhether this is an inner class or notprotected booleanWhether this is a static class or notprotected JavadocTheJavadocfor the classprotected List<JavaMethod>Themethodsin the classprotected StringThe name of the package the class is inThe classes imported statically by the classprotected StringThe name of the class this one extends (may be null)protected VisibilityTheVisibilityof the class -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedJavaClass(boolean editable, boolean isInnerClass, String packageName, List<String> imports, List<String> staticImports, Javadoc javadoc, List<JavaAnnotation> annotations, Visibility visibility, boolean isStatic, String className, String superClassName, List<JavaClass> innerClasses, List<JavaField> fields, List<JavaMethod> methods) Constructs a new Java Class with the given parameters -
Method Summary
-
Field Details
-
isInnerClass
protected boolean isInnerClassWhether this is an inner class or not -
packageName
The name of the package the class is in -
imports
The classes imported by the class -
staticImports
The classes imported statically by the class -
javadoc
TheJavadocfor the class -
annotations
Theannotationson the class -
visibility
TheVisibilityof the class -
isStatic
protected boolean isStaticWhether this is a static class or not -
className
The name of the class -
superClassName
The name of the class this one extends (may be null) -
innerClasses
Innerclassesinside the class -
fields
Thefieldson the class -
methods
Themethodsin the class
-
-
Constructor Details
-
JavaClass
protected JavaClass(boolean editable, boolean isInnerClass, String packageName, List<String> imports, List<String> staticImports, Javadoc javadoc, List<JavaAnnotation> annotations, Visibility visibility, boolean isStatic, String className, String superClassName, List<JavaClass> innerClasses, List<JavaField> fields, List<JavaMethod> methods) Constructs a new Java Class with the given parameters- Parameters:
editable- Whether this class is editable or notisInnerClass- Whether this is an inner class or notpackageName- The name of the package the class is inimports- The classes imported by the classstaticImports- The classes imported statically by the classjavadoc- TheJavadocfor the classannotations- Theannotationson the classvisibility- TheVisibilityof the classisStatic- Whether this is a static class or notclassName- The name of the classsuperClassName- The name of the class this one extends (may be null)innerClasses- Innerclassesinside the classfields- Thefieldson the classmethods- Themethodsin the class
-
-
Method Details
-
isEditable
public boolean isEditable()- Returns:
- Whether this class is editable or not
-
isInnerClass
public boolean isInnerClass()- Returns:
- Whether this is an inner class or not
-
getPackageName
- Returns:
- The name of the package the class is in
-
getImports
- Returns:
- The classes imported by the class
-
getStaticImports
- Returns:
- The classes imported statically by the class
-
getJavadoc
- Returns:
- The
Javadocfor the class
-
getAnnotations
- Returns:
- The
annotationson the class
-
getVisibility
- Returns:
- The
Visibilityof the class
-
isStatic
public boolean isStatic()- Returns:
- Whether this class is static or not
-
getClassName
- Returns:
- The name of the class
-
getSuperClassName
- Returns:
- The name of the class this one extends (may be null)
-
getInnerClasses
- Returns:
- Inner
classesinside this class
-
getFields
- Returns:
- The
fieldson the class
-
getMethods
- Returns:
- The
methodsin the class
-
toString
-
equals
-