public class ClassName extends Object implements ClassNameOrParameterizedTypeName, Comparable<ClassName>, Callee, EnclosingElement
clone, finalize, getClass, notify, notifyAll, wait, wait, waitnoType, withTypeArgument, withTypeArgument, withTypeArguments, withTypeArgumentsisVoid, of, ofUncheckedisVarArgsacceptCodeWriternestedClass, toStringpublic static ClassName object()
public static ClassName of(TypeElement element)
public static ClassName ofUnchecked(TypeElement element)
public final String acceptJavaFileImportSet(JavaFileImportSet set)
acceptJavaFileImportSet in interface TypeNamepublic final <R,P> R acceptTypeNameVisitor(TypeNameVisitor<R,P> visitor, P p)
acceptTypeNameVisitor in interface TypeNamepublic final TypeName arrayCreationTypeName()
arrayCreationTypeName in interface TypeNamepublic final CastExpression cast(UnaryExpressionNotPlusMinus expression)
cast in interface ReferenceTypeNamepublic final int compareTo(ClassName o)
compareTo in interface Comparable<ClassName>public final ExpressionName id(Identifier id)
public final ExpressionName id(String id)
public final MethodInvocation invoke(String methodName)
public final MethodInvocation invoke(String methodName, Argument a1)
public final MethodInvocation invoke(String methodName, Argument a1, Argument a2)
public final MethodInvocation invoke(String methodName, Argument a1, Argument a2, Argument a3)
public final MethodInvocation invoke(String methodName, Argument a1, Argument a2, Argument a3, Argument a4)
public final MethodInvocation invoke(String methodName, Iterable<? extends Argument> args)
public final MethodInvocation invoke(TypeWitness witness, String methodName)
public final MethodInvocation invoke(TypeWitness witness, String methodName, Argument a1)
public final MethodInvocation invoke(TypeWitness witness, String methodName, Argument a1, Argument a2)
public final MethodInvocation invoke(TypeWitness witness, String methodName, Argument a1, Argument a2, Argument a3)
public final MethodInvocation invoke(TypeWitness witness, String methodName, Argument a1, Argument a2, Argument a3, Argument a4)
public final MethodInvocation invoke(TypeWitness witness, String methodName, Iterable<? extends Argument> args)
public final boolean isJavaLangObject()
isJavaLangObject in interface TypeNamepublic final PackageName packageName()
packageName in interface EnclosingElementpublic final MethodReference ref(String methodName)
ref in interface MethodReferenceReferenceExpressionpublic final MethodReference ref(TypeWitness witness, String methodName)
ref in interface MethodReferenceReferenceExpressionpublic final String simpleName()
public final ArrayTypeName toArrayTypeName()
toArrayTypeName in interface ReferenceTypeNamepublic final Optional<ClassName> toClassName()
toClassName in interface TypeNamepublic final ClassName toClassNameUnchecked()
toClassNameUnchecked in interface TypeNamepublic final ParameterizedTypeName withTypeArgument(TypeName type)
withTypeArgument in interface ClassNameOrParameterizedTypeNamepublic final CodeWriter acceptCodeWriter(CodeWriter w)
acceptCodeWriter in interface CodeElementpublic final boolean isVarArgs()
isVarArgs in interface ParameterTypeNameCopyright © 2019 Objectos Software LTDA. All rights reserved.