class LambdaAST extends AST
Определение лямбды
Пример парсинг выражения
a:int , b:int => a+b
Дерево AST:
LambdaAST -| ParamAST IdentifierAST IdentifierTok a -|-| IdentifierAST IdentifierTok a -|-| TypeNameAST int -| ParamAST IdentifierAST IdentifierTok b -|-| IdentifierAST IdentifierTok b -|-| TypeNameAST int -| BinaryAST + -|-| IdentifierAST IdentifierTok a -|-| IdentifierAST IdentifierTok b
Пример парсинг выражения
a:int , b:int , r :: int => a+b
Дерево AST:
LambdaAST recursion: ParamAST IdentifierAST IdentifierTok r -| ParamAST IdentifierAST IdentifierTok a -|-| IdentifierAST IdentifierTok a -|-| TypeNameAST int -| ParamAST IdentifierAST IdentifierTok b -|-| IdentifierAST IdentifierTok b -|-| TypeNameAST int -| ParamAST IdentifierAST IdentifierTok r -|-| IdentifierAST IdentifierTok r -|-| TypeNameAST int -| BinaryAST + -|-| IdentifierAST IdentifierTok a -|-| IdentifierAST IdentifierTok b
Пример парсинг выражения
() => a+b
Дерево AST:
LambdaAST -| BinaryAST + -|-| IdentifierAST IdentifierTok a -|-| IdentifierAST IdentifierTok b
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- LambdaAST
- AST
- Tok
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Instance Constructors
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
begin(): PTR
Возвращает указатель на начало лексемы
- val body: AST
-
def
children(): List[AST]
Возвращает список дочерних узлов
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native() @HotSpotIntrinsicCandidate()
-
def
end(): PTR
Возвращает указатель на конец лексемы
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- val params: List[ParamAST]
- val recursion: Option[ParamAST]
-
def
replace(what: AST, to: AST): LambdaAST
Клонирование и замена дочернего узла
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- LambdaAST → AnyRef → Any
-
def
tree: ASTIterator
Итератор по дереву AST
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
Deprecated Value Members
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] ) @Deprecated @deprecated
- Deprecated
(Since version ) see corresponding Javadoc for more information.