Class ClassTool.ConstructorSub
java.lang.Object
org.apache.velocity.tools.generic.ClassTool.Sub<ClassTool.ConstructorSub>
org.apache.velocity.tools.generic.ClassTool.CallableSub<ClassTool.ConstructorSub>
org.apache.velocity.tools.generic.ClassTool.ConstructorSub
- All Implemented Interfaces:
Comparable<ClassTool.ConstructorSub>
- Enclosing class:
ClassTool
public static class ClassTool.ConstructorSub
extends ClassTool.CallableSub<ClassTool.ConstructorSub>
A simplified wrapping interface for inspecting features
of a
Constructor in an inspected Class.- Since:
- VelocityTools 2.0
- Version:
- $Id: ClassTool.java 463298 2006-10-12 16:10:32Z henning $
- Author:
- Nathan Bubna
-
Field Summary
FieldsFields inherited from class ClassTool.CallableSub
javadocRef, signature, uniqueName -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected AnnotatedElementprotected intgetName()Class[]protected StringbooleanReturns true if the final parameter for the constructor was declared as a vararg.Methods inherited from class ClassTool.CallableSub
getJavadocRef, getParameterCount, getSignature, getUniqueName, signature, takesParametersMethods inherited from class ClassTool.Sub
compareTo, equals, getAnnotations, hashCode, isAbstract, isDeprecated, isFinal, isInterface, isNative, isPrivate, isProtected, isPublic, isStatic, isStrict, isSynchronized, isTransient, isVolatile, toString
-
Field Details
-
constructor
-
-
Constructor Details
-
ConstructorSub
Constructor inspector constructor- Parameters:
constructor- constructor to inspect
-
-
Method Details
-
getElement
- Specified by:
getElementin classClassTool.Sub<ClassTool.ConstructorSub>- Returns:
- inspected element
-
getName
- Specified by:
getNamein classClassTool.Sub<ClassTool.ConstructorSub>- Returns:
- inspected constructor name
-
getParameters
- Specified by:
getParametersin classClassTool.CallableSub<ClassTool.ConstructorSub>- Returns:
- inspected constructor parameters
-
isVarArgs
public boolean isVarArgs()Returns true if the final parameter for the constructor was declared as a vararg.- Specified by:
isVarArgsin classClassTool.CallableSub<ClassTool.ConstructorSub>- Returns:
- whether the inspected constructor is vararg
-
getModifiers
protected int getModifiers()- Specified by:
getModifiersin classClassTool.Sub<ClassTool.ConstructorSub>- Returns:
- inspected constructor modifiers
-
getSubType
- Specified by:
getSubTypein classClassTool.Sub<ClassTool.ConstructorSub>- Returns:
- inspector type, aka "constructor"
-