public class PythonLanguageFeatureParser extends java.lang.Object implements ILanguageFeatureParser
Constructor and Description |
---|
PythonLanguageFeatureParser() |
Modifier and Type | Method and Description |
---|---|
java.util.List<IToken> |
getDeclaredVariableNames(ShallowEntity entity)
Returns all variable names that are declared in the given entity.
|
ELanguage |
getLanguage()
Returns that language the feature parsers are implemented for.
|
boolean |
isBuiltInName(java.lang.String name)
Returns whether the given name is a built-in name.
|
boolean |
isDefinedOnClass(ShallowEntity entity)
Returns true if the given
ShallowEntity is a method defined on a
class. |
boolean |
isMethod(ShallowEntity entity)
Returns true if the given
ShallowEntity is a method. |
public PythonLanguageFeatureParser()
public boolean isBuiltInName(java.lang.String name)
public java.util.List<IToken> getDeclaredVariableNames(ShallowEntity entity)
PythonVariableNameExtractor
.public boolean isDefinedOnClass(ShallowEntity entity)
ShallowEntity
is a method defined on a
class. Otherwise, returns false.public boolean isMethod(ShallowEntity entity)
ShallowEntity
is a method.public ELanguage getLanguage()
getLanguage
in interface ILanguageFeatureParser