Class LexicalScope
- java.lang.Object
-
- net.sourceforge.pmd.lang.java.types.LexicalScope
-
-
Field Summary
Fields Modifier and Type Field Description static LexicalScope
EMPTY
The empty scope contains no vars.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LexicalScope
andThen(List<? extends JTypeVar> vars)
Return a new scope which contains the given tvars.@Nullable JTypeVar
apply(@NonNull String var)
Returns the type var with the given name, or null.protected Map<T,R>
getMap()
boolean
isEmpty()
String
toString()
-
-
-
Field Detail
-
EMPTY
public static final LexicalScope EMPTY
The empty scope contains no vars.
-
-
Method Detail
-
apply
public @Nullable JTypeVar apply(@NonNull String var)
Returns the type var with the given name, or null.
-
andThen
public LexicalScope andThen(List<? extends JTypeVar> vars)
Return a new scope which contains the given tvars. They shadow tvars that were in this scope.
-
getMap
protected Map<T,R> getMap()
-
isEmpty
public boolean isEmpty()
-
-