public class Identity extends Function
NO_CLASSES| Constructor and Description |
|---|
Identity(String nameInit,
Class typeInit)
Create an Identity.
|
Identity(String nameInit,
Class resultInit,
Class argInit)
Create an Identity.
|
| Modifier and Type | Method and Description |
|---|---|
Class[] |
getExceptionTypes() |
String |
getName()
Gets the Function name.
|
Class[] |
getParameterTypes()
Gets the parameter types of this function.
|
Class |
getReturnType()
Gets the result type.
|
Object |
invoke(Object[] paras)
Takes 1 argument and returns it.
|
void |
translate(Code code)
Generate bytecode equivalent to invoke().
|
public Identity(String nameInit, Class typeInit)
nameInit - the Function nametypeInit - the argument and result typepublic String getName()
public Class getReturnType()
getReturnType in class Functionpublic Class[] getParameterTypes()
FunctiongetParameterTypes in class Functionpublic Class[] getExceptionTypes()
getExceptionTypes in class Functionpublic Object invoke(Object[] paras)
Copyright © 1998–2017 1&1. All rights reserved.