Class AstType
- java.lang.Object
-
- com.strobel.core.Freezable
-
- com.strobel.decompiler.languages.java.ast.AstNode
-
- com.strobel.decompiler.languages.java.ast.AstType
-
- All Implemented Interfaces:
UserDataStore
,IFreezable
,INode
,java.lang.Cloneable
- Direct Known Subclasses:
AstType.NullAstType
,AstType.PatternPlaceholder
,ComposedType
,IntersectionType
,SimpleType
,UnionType
,WildcardType
public abstract class AstType extends AstNode
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static class
AstType.NullAstType
private static class
AstType.PatternPlaceholder
-
Field Summary
Fields Modifier and Type Field Description static AstType[]
EMPTY_TYPES
static AstType
NULL
-
Fields inherited from class com.strobel.decompiler.languages.java.ast.AstNode
AST_NODE_USED_FLAGS, flags, FROZEN_BIT, ROLE_INDEX_MASK, ROOT_ROLE
-
Fields inherited from interface com.strobel.decompiler.patterns.INode
CHILD_ITERATOR
-
-
Constructor Summary
Constructors Constructor Description AstType()
-
Method Summary
-
Methods inherited from class com.strobel.decompiler.languages.java.ast.AstNode
acceptVisitor, addChild, addChildUnsafe, contains, contains, copyUserDataFrom, debugToString, freezeCore, getAncestors, getAncestors, getAncestorsAndSelf, getChildByRole, getChildren, getChildrenByRole, getDescendants, getDescendantsAndSelf, getEndLocation, getFirstChild, getLastChild, getNextNode, getNextSibling, getNextSibling, getParent, getParent, getPreviousNode, getPreviousSibling, getPreviousSibling, getRegion, getStartLocation, getText, getText, getUserData, hasChildren, insertChildAfter, insertChildBefore, insertChildBeforeUnsafe, insertChildrenAfter, insertChildrenBefore, isAncestorOf, isAncestorOf, isDescendantOf, isInside, isInside, isLoop, isNull, isReference, isUnconditionalBranch, makeOptional, match, matches, matches, matchesCollection, matchString, putUserData, putUserDataIfAbsent, remove, replace, replaceWith, replaceWith, setChildByRole, setRole, setRoleUnsafe, toString, withName
-
Methods inherited from class com.strobel.core.Freezable
canFreeze, freeze, freezeIfUnfrozen, isFrozen, tryFreeze, verifyFrozen, verifyNotFrozen
-
-
-
-
Method Detail
-
getNodeType
public NodeType getNodeType()
- Specified by:
getNodeType
in classAstNode
-
toTypeReference
public TypeReference toTypeReference()
-
makeArrayType
public AstType makeArrayType()
-
classOf
public ClassOfExpression classOf()
-
invoke
public InvocationExpression invoke(java.lang.String methodName, Expression... arguments)
-
invoke
public InvocationExpression invoke(java.lang.String methodName, java.lang.Iterable<Expression> arguments)
-
invoke
public InvocationExpression invoke(java.lang.String methodName, java.lang.Iterable<AstType> typeArguments, Expression... arguments)
-
invoke
public InvocationExpression invoke(java.lang.String methodName, java.lang.Iterable<AstType> typeArguments, java.lang.Iterable<Expression> arguments)
-
invoke
public InvocationExpression invoke(MethodReference methodReference, Expression... arguments)
-
invoke
public InvocationExpression invoke(MethodReference methodReference, java.lang.Iterable<Expression> arguments)
-
invoke
public InvocationExpression invoke(MethodReference methodReference, java.lang.Iterable<AstType> typeArguments, Expression... arguments)
-
invoke
public InvocationExpression invoke(MethodReference methodReference, java.lang.Iterable<AstType> typeArguments, java.lang.Iterable<Expression> arguments)
-
member
public MemberReferenceExpression member(java.lang.String memberName)
-
member
public MemberReferenceExpression member(FieldReference member)
-
makeReference
public TypeReferenceExpression makeReference()
-
makeNew
public ObjectCreationExpression makeNew()
-
makeNew
public ObjectCreationExpression makeNew(Expression... arguments)
-
makeNew
public ObjectCreationExpression makeNew(java.lang.Iterable<Expression> arguments)
-
-