Module org.htmlunit.corejs
Class ClassNameFormatContext
java.lang.Object
org.htmlunit.corejs.javascript.lc.type.impl.ClassNameFormatContext
- All Implemented Interfaces:
TypeFormatContext
- Author:
- ZZZank
-
Field Summary
Fields inherited from interface org.htmlunit.corejs.javascript.lc.type.TypeFormatContext
CLASS_NAME, DEFAULT, SIMPLE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidappend(StringBuilder builder, TypeInfo type) Format a type and push the result to providedStringBuilder.voidappend(StringBuilder builder, TypeInfo type, boolean declaring) Format a type and push the result to providedStringBuilder.voidappendArray(StringBuilder builder, TypeInfo type) voidappendParameterized(StringBuilder builder, ParameterizedTypeInfo type) voidappendVariable(StringBuilder builder, VariableTypeInfo type, boolean declaring) getClassName(Class<?> c)
-
Constructor Details
-
ClassNameFormatContext
public ClassNameFormatContext()
-
-
Method Details
-
getClassName
- Specified by:
getClassNamein interfaceTypeFormatContext
-
append
Description copied from interface:TypeFormatContextFormat a type and push the result to providedStringBuilder.Note that implementations are encouraged to override
TypeFormatContext.append(StringBuilder, TypeInfo, boolean), instead of this method- Specified by:
appendin interfaceTypeFormatContext- Parameters:
builder- Formatted string oftypewill be pushed to this buildertype- The type to be formatted
-
append
Description copied from interface:TypeFormatContextFormat a type and push the result to providedStringBuilder.- Specified by:
appendin interfaceTypeFormatContext- Parameters:
builder- Formatted string oftypewill be pushed to this buildertype- The type to be formatteddeclaring-trueif the context should format the result as if the type is being declared instead of being used. For example, inE extends Enum<T>, this param istruefor the first E, andfalsefor the second, nested E
-
appendParameterized
- Specified by:
appendParameterizedin interfaceTypeFormatContext
-
appendVariable
- Specified by:
appendVariablein interfaceTypeFormatContextdeclaring-trueif the context should format the result as if the type is being declared instead of being used. For example, inE extends Enum<T>,declaringistruefor the first E, andfalsefor the second, nested E
-
appendArray
- Specified by:
appendArrayin interfaceTypeFormatContexttype-TypeInfo.isArray()will always betruefor this object
-
getFormattedNone
- Specified by:
getFormattedNonein interfaceTypeFormatContext- See Also:
-