public final class ClassOrInterfaceType extends Type implements NodeWithName<ClassOrInterfaceType>
ABSOLUTE_BEGIN_LINE, ABSOLUTE_END_LINE
Constructor and Description |
---|
ClassOrInterfaceType() |
ClassOrInterfaceType(ClassOrInterfaceType scope,
String name) |
ClassOrInterfaceType(Range range,
ClassOrInterfaceType scope,
String name,
TypeArguments typeArguments) |
ClassOrInterfaceType(String name) |
Modifier and Type | Method and Description |
---|---|
<R,A> R |
accept(GenericVisitor<R,A> v,
A arg)
Accept method for visitor support.
|
<A> void |
accept(VoidVisitor<A> v,
A arg)
Accept method for visitor support.
|
String |
getName() |
ClassOrInterfaceType |
getScope() |
List<Type> |
getTypeArgs() |
TypeArguments |
getTypeArguments() |
boolean |
isBoxedType() |
boolean |
isUsingDiamondOperator() |
ClassOrInterfaceType |
setName(String name) |
void |
setScope(ClassOrInterfaceType scope) |
void |
setTypeArgs(List<Type> typeArgs)
Allows you to set the generic arguments
|
void |
setTypeArguments(TypeArguments typeArguments) |
PrimitiveType |
toUnboxedType() |
getAnnotations, setAnnotations
addOrphanComment, clone, contains, equals, getAllContainedComments, getBegin, getChildrenNodes, getComment, getData, getEnd, getNodesByType, getOrphanComments, getParentNode, getParentNodeOfType, getRange, hasComment, hashCode, isPositionedAfter, isPositionedBefore, setAsParentNodeOf, setAsParentNodeOf, setBegin, setBlockComment, setComment, setData, setEnd, setLineComment, setParentNode, setRange, toString, toStringWithoutComments, tryAddImportToParentCompilationUnit
public ClassOrInterfaceType()
public ClassOrInterfaceType(String name)
public ClassOrInterfaceType(ClassOrInterfaceType scope, String name)
public ClassOrInterfaceType(Range range, ClassOrInterfaceType scope, String name, TypeArguments typeArguments)
public <R,A> R accept(GenericVisitor<R,A> v, A arg)
Node
public <A> void accept(VoidVisitor<A> v, A arg)
Node
public String getName()
getName
in interface NodeWithName<ClassOrInterfaceType>
public ClassOrInterfaceType getScope()
public TypeArguments getTypeArguments()
public boolean isUsingDiamondOperator()
public boolean isBoxedType()
public PrimitiveType toUnboxedType() throws UnsupportedOperationException
UnsupportedOperationException
public ClassOrInterfaceType setName(String name)
setName
in interface NodeWithName<ClassOrInterfaceType>
public void setScope(ClassOrInterfaceType scope)
public void setTypeArgs(List<Type> typeArgs)
typeArgs
- The list of types of the genericspublic void setTypeArguments(TypeArguments typeArguments)
Copyright © 2007–2016. All rights reserved.