Package deltix.util.jcg
Interface JClass
-
- All Superinterfaces:
JAnnotationContainer
,JMember
,JType
,JVariableContainer
public interface JClass extends JMember, JType, JVariableContainer, JAnnotationContainer
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description JConstructor
addConstructor(int modifiers)
void
addImplementedInterface(JClass cls)
void
addImplementedInterface(java.lang.Class<?> cls)
JMethod
addMethod(int modifiers, JType type, java.lang.String name)
JMethod
addMethod(int modifiers, java.lang.Class<?> type, java.lang.String name)
JMemberVariable
addProperty(int modifiers, java.lang.Class<?> type, java.lang.String name)
JInitMemberVariable
addVar(int modifiers, JType type, JType[] typeArgs, java.lang.String name, JExpr initValue, boolean nullable)
JInitMemberVariable
addVar(int modifiers, JType type, java.lang.String name)
JInitMemberVariable
addVar(int modifiers, JType type, java.lang.String name, JExpr initValue)
JInitMemberVariable
addVar(int modifiers, JType type, java.lang.String name, JExpr initValue, boolean nullable)
JInitMemberVariable
addVar(int modifiers, java.lang.Class<?> type, java.lang.String name)
JInitMemberVariable
addVar(int modifiers, java.lang.Class<?> type, java.lang.String name, JExpr initValue)
JExpr
callSuperMethod(java.lang.String name, JExpr... args)
java.lang.String
fullName()
JMemberVariable
getVar(java.lang.String name)
java.util.List<JMemberVariable>
getVars()
JMemberVariable
inheritedVar(java.lang.String name)
JClass
innerClass(int modifiers, java.lang.String simpleName)
JClass
innerClass(int modifiers, java.lang.String simpleName, JClass parent)
JClass
innerClass(int modifiers, java.lang.String simpleName, java.lang.Class<?> parent)
JExpr
newExpr(JExpr... args)
java.lang.String
packageName()
Returns the package name of this class, or null if top-level package.JMemberVariable
thisVar()
-
Methods inherited from interface deltix.util.jcg.JAnnotationContainer
addAnnotation
-
Methods inherited from interface deltix.util.jcg.JMember
containerClass, modifiers, name
-
Methods inherited from interface deltix.util.jcg.JVariableContainer
addComment, addVar
-
-
-
-
Method Detail
-
packageName
java.lang.String packageName()
Returns the package name of this class, or null if top-level package.
-
fullName
java.lang.String fullName()
-
addImplementedInterface
void addImplementedInterface(java.lang.Class<?> cls)
-
addImplementedInterface
void addImplementedInterface(JClass cls)
-
innerClass
JClass innerClass(int modifiers, java.lang.String simpleName, java.lang.Class<?> parent)
-
innerClass
JClass innerClass(int modifiers, java.lang.String simpleName)
-
addConstructor
JConstructor addConstructor(int modifiers)
-
addMethod
JMethod addMethod(int modifiers, java.lang.Class<?> type, java.lang.String name)
-
addVar
JInitMemberVariable addVar(int modifiers, JType type, java.lang.String name)
- Specified by:
addVar
in interfaceJVariableContainer
-
addVar
JInitMemberVariable addVar(int modifiers, JType type, java.lang.String name, JExpr initValue)
- Specified by:
addVar
in interfaceJVariableContainer
-
addVar
JInitMemberVariable addVar(int modifiers, JType type, java.lang.String name, JExpr initValue, boolean nullable)
-
addVar
JInitMemberVariable addVar(int modifiers, JType type, JType[] typeArgs, java.lang.String name, JExpr initValue, boolean nullable)
-
addVar
JInitMemberVariable addVar(int modifiers, java.lang.Class<?> type, java.lang.String name)
- Specified by:
addVar
in interfaceJVariableContainer
-
addVar
JInitMemberVariable addVar(int modifiers, java.lang.Class<?> type, java.lang.String name, JExpr initValue)
- Specified by:
addVar
in interfaceJVariableContainer
-
addProperty
JMemberVariable addProperty(int modifiers, java.lang.Class<?> type, java.lang.String name)
-
getVar
JMemberVariable getVar(java.lang.String name)
-
getVars
java.util.List<JMemberVariable> getVars()
-
inheritedVar
JMemberVariable inheritedVar(java.lang.String name)
-
thisVar
JMemberVariable thisVar()
-
-