Class ClassType
- java.lang.Object
-
- org.sonar.javascript.tree.symbols.type.ObjectType
-
- org.sonar.javascript.tree.symbols.type.ClassType
-
- All Implemented Interfaces:
Type
public class ClassType extends ObjectType
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.sonar.javascript.tree.symbols.type.ObjectType
ObjectType.BuiltInObjectType, ObjectType.FrameworkType, ObjectType.WebApiType
-
Nested classes/interfaces inherited from interface org.sonar.plugins.javascript.api.symbols.Type
Type.Callability, Type.Kind
-
-
Field Summary
-
Fields inherited from class org.sonar.javascript.tree.symbols.type.ObjectType
callability, classType
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedClassType()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddMethod(IdentifierTree name, FunctionType functionType, Scope scope)static ClassTypecreate()ObjectTypecreateObject()Type.Kindkind()Collection<Symbol>properties()Symbolproperty(String name)-
Methods inherited from class org.sonar.javascript.tree.symbols.type.ObjectType
callability, classType, classType, create, toString
-
-
-
-
Method Detail
-
kind
public Type.Kind kind()
- Specified by:
kindin interfaceType- Overrides:
kindin classObjectType
-
create
public static ClassType create()
-
createObject
public ObjectType createObject()
-
addMethod
public void addMethod(IdentifierTree name, FunctionType functionType, Scope scope)
-
properties
public Collection<Symbol> properties()
-
property
@Nullable public Symbol property(String name)
- Overrides:
propertyin classObjectType
-
-