Package jadex.bridge.modelinfo
Class UnparsedExpression
- java.lang.Object
-
- jadex.bridge.modelinfo.UnparsedExpression
-
- Direct Known Subclasses:
Argument
,ProvidedServiceImplementation
public class UnparsedExpression extends java.lang.Object
An unparsed expression for being able to transfer to other nodes. idea: allow storing also imports in the expression for later evaluation
-
-
Field Summary
Fields Modifier and Type Field Description protected ClassInfo
clazz
The clazz info.protected java.lang.String
language
The language.protected java.lang.String
name
The name.protected java.lang.Object
parsed
The parsed expression (cached for speed, but not transmitted).protected java.lang.String
value
The value.
-
Constructor Summary
Constructors Constructor Description UnparsedExpression()
Create a new expression.UnparsedExpression(java.lang.String name, java.lang.Class<?> clazz, java.lang.String value)
Create a new expression.UnparsedExpression(java.lang.String name, java.lang.Class<?> clazz, java.lang.String value, java.lang.String language)
Create a new expression.UnparsedExpression(java.lang.String name, java.lang.String value)
Create a new expression.UnparsedExpression(java.lang.String name, java.lang.String classname, java.lang.String value, java.lang.String language)
Create a new expression.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ClassInfo
getClazz()
Get the clazz.java.lang.String
getLanguage()
Get the language.java.lang.String
getName()
Get the name.java.lang.Object
getParsed()
Get the parsed.java.lang.String
getValue()
Get the value.void
setClazz(ClassInfo clazz)
Set the clazz.void
setLanguage(java.lang.String language)
Set the language.void
setName(java.lang.String name)
Set the name.void
setParsedExp(java.lang.Object parsed)
Set the parsed.void
setValue(java.lang.String value)
Set the value.java.lang.String
toString()
Get the string representation.
-
-
-
Field Detail
-
name
protected java.lang.String name
The name.
-
clazz
protected ClassInfo clazz
The clazz info.
-
value
protected java.lang.String value
The value.
-
language
protected java.lang.String language
The language.
-
parsed
protected java.lang.Object parsed
The parsed expression (cached for speed, but not transmitted).
-
-
Constructor Detail
-
UnparsedExpression
public UnparsedExpression()
Create a new expression.
-
UnparsedExpression
public UnparsedExpression(java.lang.String name, java.lang.String value)
Create a new expression.
-
UnparsedExpression
public UnparsedExpression(java.lang.String name, java.lang.Class<?> clazz, java.lang.String value)
Create a new expression.
-
UnparsedExpression
public UnparsedExpression(java.lang.String name, java.lang.Class<?> clazz, java.lang.String value, java.lang.String language)
Create a new expression.
-
UnparsedExpression
public UnparsedExpression(java.lang.String name, java.lang.String classname, java.lang.String value, java.lang.String language)
Create a new expression.
-
-
Method Detail
-
getName
public java.lang.String getName()
Get the name.- Returns:
- The name.
-
setName
public void setName(java.lang.String name)
Set the name.- Parameters:
name
- The name to set.
-
getClazz
public ClassInfo getClazz()
Get the clazz.- Returns:
- the clazz.
-
setClazz
public void setClazz(ClassInfo clazz)
Set the clazz.- Parameters:
clazz
- The clazz to set.
-
getValue
public java.lang.String getValue()
Get the value.- Returns:
- The value.
-
setValue
public void setValue(java.lang.String value)
Set the value.- Parameters:
value
- The value to set.
-
getLanguage
public java.lang.String getLanguage()
Get the language.- Returns:
- The language.
-
setLanguage
public void setLanguage(java.lang.String language)
Set the language.- Parameters:
language
- The language.
-
getParsed
public java.lang.Object getParsed()
Get the parsed.- Returns:
- The parsed.
-
setParsedExp
public void setParsedExp(java.lang.Object parsed)
Set the parsed.- Parameters:
parsed
- The parsed to set. // changed name to exclude from transfer
-
toString
public java.lang.String toString()
Get the string representation.- Overrides:
toString
in classjava.lang.Object
-
-